Skip to content

Commit ad97f08

Browse files
Added getInvoice and importInvoice methods
2 parents 0cd0210 + de2a907 commit ad97f08

File tree

10 files changed

+684
-0
lines changed

10 files changed

+684
-0
lines changed
Lines changed: 192 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,192 @@
1+
<?php
2+
3+
/**
4+
* PHP version 7.3
5+
*
6+
* @category ApiGetInvoiceResponse
7+
* @package RetailCrm\Api\Model\Entity\Payments
8+
*/
9+
10+
namespace RetailCrm\Api\Model\Entity\Payments;
11+
12+
use RetailCrm\Api\Component\Serializer\Annotation as JMS;
13+
use RetailCrm\Api\Model\Response\SuccessResponse;
14+
15+
class ApiGetInvoiceResponse
16+
{
17+
/**
18+
* @var string
19+
*
20+
* @JMS\Type("string")
21+
* @JMS\SerializedName("createdAt")
22+
*/
23+
public $createdAt;
24+
25+
/**
26+
* @var int
27+
*
28+
* @JMS\Type("integer")
29+
* @JMS\SerializedName("customerId")
30+
*/
31+
public $customerId;
32+
33+
/**
34+
* @var int
35+
*
36+
* @JMS\Type("integer")
37+
* @JMS\SerializedName("orderId")
38+
*/
39+
public $orderId;
40+
41+
/**
42+
* @var string
43+
*
44+
* @JMS\Type("string")
45+
* @JMS\SerializedName("paymentId")
46+
*/
47+
public $paymentId;
48+
49+
/**
50+
* @var string
51+
*
52+
* @JMS\Type("string")
53+
* @JMS\SerializedName("amount")
54+
*/
55+
public $amount;
56+
57+
/**
58+
* @var string
59+
*
60+
* @JMS\Type("string")
61+
* @JMS\SerializedName("currency")
62+
*/
63+
public $currency;
64+
65+
/**
66+
* @var string
67+
*
68+
* @JMS\Type("string")
69+
* @JMS\SerializedName("email")
70+
*/
71+
public $email;
72+
73+
/**
74+
* @var string
75+
*
76+
* @JMS\Type("string")
77+
* @JMS\SerializedName("phone")
78+
*/
79+
public $phone;
80+
81+
/**
82+
* @var string
83+
*
84+
* @JMS\Type("string")
85+
* @JMS\SerializedName("status")
86+
*/
87+
public $status;
88+
89+
/**
90+
* @var string
91+
*
92+
* @JMS\Type("string")
93+
* @JMS\SerializedName("statusMessage")
94+
*/
95+
public $statusMessage;
96+
97+
/**
98+
* @var string
99+
*
100+
* @JMS\Type("string")
101+
* @JMS\SerializedName("externalId")
102+
*/
103+
public $externalId;
104+
105+
/**
106+
* @var string
107+
*
108+
* @JMS\Type("string")
109+
* @JMS\SerializedName("invoiceUuid")
110+
*/
111+
public $invoiceUuid;
112+
113+
/**
114+
* @var string
115+
*
116+
* @JMS\Type("string")
117+
* @JMS\SerializedName("invoiceType")
118+
*/
119+
public $invoiceType;
120+
121+
/**
122+
* @var string
123+
*
124+
* @JMS\Type("string")
125+
* @JMS\SerializedName("link")
126+
*/
127+
public $link;
128+
129+
/**
130+
* @var string
131+
*
132+
* @JMS\Type("string")
133+
* @JMS\SerializedName("errorMsg")
134+
*/
135+
public $errorMsg;
136+
137+
/**
138+
* @var string
139+
*
140+
* @JMS\Type("string")
141+
* @JMS\SerializedName("paidAt")
142+
*/
143+
public $paidAt;
144+
145+
/**
146+
* @var string
147+
*
148+
* @JMS\Type("string")
149+
* @JMS\SerializedName("expiredAt")
150+
*/
151+
public $expiredAt;
152+
153+
/**
154+
* @var string
155+
*
156+
* @JMS\Type("string")
157+
* @JMS\SerializedName("cancellationDetails")
158+
*/
159+
public $cancellationDetails;
160+
161+
/**
162+
* @var bool
163+
*
164+
* @JMS\Type("bool")
165+
* @JMS\SerializedName("refundable")
166+
*/
167+
public $refundable;
168+
169+
/**
170+
* @var bool
171+
*
172+
* @JMS\Type("bool")
173+
* @JMS\SerializedName("cancellable")
174+
*/
175+
public $cancellable;
176+
177+
/**
178+
* @var \RetailCrm\Api\Model\Entity\Payments\PaymentRefund[]
179+
*
180+
* @JMS\Type("array<RetailCrm\Api\Model\Entity\Payments\PaymentRefund>")
181+
* @JMS\SerializedName("refunds")
182+
*/
183+
public $refunds;
184+
185+
/**
186+
* @var float
187+
*
188+
* @JMS\Type("float")
189+
* @JMS\SerializedName("discountAmount")
190+
*/
191+
public $discountAmount;
192+
}
Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
<?php
2+
3+
/**
4+
* PHP version 7.3
5+
*
6+
* @category ApiImportInvoicePaymentRefund
7+
* @package RetailCrm\Api\Model\Entity\Payments
8+
*/
9+
10+
namespace RetailCrm\Api\Model\Entity\Payments;
11+
12+
use RetailCrm\Api\Component\Serializer\Annotation as JMS;
13+
14+
/**
15+
* Class ApiImportInvoicePaymentRefund
16+
*
17+
* @category ApiImportInvoicePaymentRefund
18+
* @package RetailCrm\Api\Model\Entity\Payments
19+
*/
20+
class ApiImportInvoicePaymentRefund extends PaymentRefund
21+
{
22+
/**
23+
* @var string
24+
*
25+
* @JMS\Type("string")
26+
* @JMS\SerializedName("status")
27+
*/
28+
public $status;
29+
30+
/**
31+
* @var string
32+
*
33+
* @JMS\Type("string")
34+
* @JMS\SerializedName("comment")
35+
*/
36+
public $comment;
37+
38+
/**
39+
* @var float
40+
*
41+
* @JMS\Type("float")
42+
* @JMS\SerializedName("amount")
43+
*/
44+
public $amount;
45+
}
Lines changed: 101 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,101 @@
1+
<?php
2+
3+
/**
4+
* PHP version 7.3
5+
*
6+
* @category ApiImportInvoiceRequest
7+
* @package RetailCrm\Api\Model\Entity\Payments
8+
*/
9+
10+
namespace RetailCrm\Api\Model\Entity\Payments;
11+
12+
use RetailCrm\Api\Component\Serializer\Annotation as JMS;
13+
14+
/**
15+
* Class ApiImportInvoiceRequest
16+
*
17+
* @category ApiImportInvoiceRequest
18+
* @package RetailCrm\Api\Model\Entity\Payments
19+
*/
20+
class ApiImportInvoiceRequest
21+
{
22+
/**
23+
* @var int
24+
*
25+
* @JMS\Type("int")
26+
* @JMS\SerializedName("paymentId")
27+
*/
28+
public $paymentId;
29+
30+
/**
31+
* @var string
32+
*
33+
* @JMS\Type("string")
34+
* @JMS\SerializedName("externalId")
35+
*/
36+
public $externalId;
37+
38+
/**
39+
* @var float
40+
*
41+
* @JMS\Type("float")
42+
* @JMS\SerializedName("amount")
43+
*/
44+
public $amount;
45+
46+
/**
47+
* @var string
48+
*
49+
* @JMS\Type("string")
50+
* @JMS\SerializedName("currency")
51+
*/
52+
public $currency;
53+
54+
/**
55+
* @var string
56+
*
57+
* @JMS\Type("string")
58+
* @JMS\SerializedName("status")
59+
*/
60+
public $status;
61+
62+
/**
63+
* @var string
64+
*
65+
* @JMS\Type("string")
66+
* @JMS\SerializedName("createdAt")
67+
*/
68+
public $createdAt;
69+
70+
/**
71+
* @var string
72+
*
73+
* @JMS\Type("string")
74+
* @JMS\SerializedName("paidAt")
75+
*/
76+
public $paidAt;
77+
78+
/**
79+
* @var float
80+
*
81+
* @JMS\Type("float")
82+
* @JMS\SerializedName("discountAmount")
83+
*/
84+
public $discountAmount;
85+
86+
/**
87+
* @var \RetailCrm\Api\Model\Entity\Payments\ApiImportInvoicePaymentRefund[]
88+
*
89+
* @JMS\Type("array<RetailCrm\Api\Model\Entity\Payments\ApiImportInvoicePaymentRefund>")
90+
* @JMS\SerializedName("refunds")
91+
*/
92+
public $refunds;
93+
94+
/**
95+
* @var bool
96+
*
97+
* @JMS\Type("bool")
98+
* @JMS\SerializedName("refundable")
99+
*/
100+
public $refundable;
101+
}
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
<?php
2+
3+
/**
4+
* PHP version 7.3
5+
*
6+
* @category ApiImportInvoiceResponse
7+
* @package RetailCrm\Api\Model\Entity\Payments
8+
*/
9+
10+
namespace RetailCrm\Api\Model\Entity\Payments;
11+
12+
use RetailCrm\Api\Component\Serializer\Annotation as JMS;
13+
14+
/**
15+
* Class ApiImportInvoiceResponse
16+
*
17+
* @category ApiImportInvoiceResponse
18+
* @package RetailCrm\Api\Model\Entity\Payments
19+
*/
20+
class ApiImportInvoiceResponse
21+
{
22+
/**
23+
* @var string
24+
*
25+
* @JMS\Type("string")
26+
* @JMS\SerializedName("invoiceUuid")
27+
*/
28+
public $invoiceUuid;
29+
}

0 commit comments

Comments
 (0)