1 | <?php |
||
23 | final class PaymentIntent extends Intent implements CreatableFromArray, ContainsMetadata |
||
24 | { |
||
25 | use LivemodeTrait; |
||
26 | use MetadataTrait; |
||
27 | |||
28 | const CAPTURE_METHOD_AUTOMATIC = 'automatic'; |
||
29 | const CAPTURE_METHOD_MANUAL = 'manual'; |
||
30 | |||
31 | const CONFIRMATION_METHOD_AUTOMATIC = 'automatic'; |
||
32 | const CONFIRMATION_METHOD_MANUAL = 'manual'; |
||
33 | |||
34 | /** |
||
35 | * @var ?string |
||
36 | */ |
||
37 | private $id; |
||
38 | |||
39 | /** |
||
40 | * @var Money |
||
41 | */ |
||
42 | private $amount; |
||
43 | |||
44 | /** |
||
45 | * @var Money |
||
46 | */ |
||
47 | private $amountCapturable; |
||
48 | |||
49 | /** |
||
50 | * @var Money |
||
51 | */ |
||
52 | private $amountReceived; |
||
53 | |||
54 | /** |
||
55 | * @var ?string |
||
56 | */ |
||
57 | private $applicationId; |
||
58 | |||
59 | /** |
||
60 | * @var ?Money |
||
61 | */ |
||
62 | private $applicationFeeAmount; |
||
63 | |||
64 | /** |
||
65 | * @var ?\DateTimeImmutable |
||
66 | */ |
||
67 | private $canceledAt; |
||
68 | |||
69 | /** |
||
70 | * @var ?string |
||
71 | */ |
||
72 | private $cancellationReason; |
||
73 | |||
74 | /** |
||
75 | * @var string |
||
76 | */ |
||
77 | private $captureMethod; |
||
78 | |||
79 | /** |
||
80 | * @var ChargeCollection |
||
81 | */ |
||
82 | private $charges; |
||
83 | |||
84 | /** |
||
85 | * @var string |
||
86 | */ |
||
87 | private $clientSecret; |
||
88 | |||
89 | /** |
||
90 | * @var string |
||
91 | */ |
||
92 | private $confirmationMethod; |
||
93 | |||
94 | /** |
||
95 | * @var \DateTimeImmutable |
||
96 | */ |
||
97 | private $createdAt; |
||
98 | |||
99 | /** |
||
100 | * @var Currency |
||
101 | */ |
||
102 | private $currency; |
||
103 | |||
104 | /** |
||
105 | * @var string |
||
106 | */ |
||
107 | private $customerId; |
||
108 | |||
109 | /** |
||
110 | * @var string |
||
111 | */ |
||
112 | private $description; |
||
113 | |||
114 | /** |
||
115 | * @var string |
||
116 | */ |
||
117 | private $invoiceId; |
||
118 | |||
119 | /** |
||
120 | * @var ?LastPaymentError |
||
121 | */ |
||
122 | private $lastPaymentError; |
||
123 | |||
124 | /** |
||
125 | * @var ?string |
||
126 | */ |
||
127 | private $onBehalfOfId; |
||
128 | |||
129 | /** |
||
130 | * @var ?string |
||
131 | */ |
||
132 | private $paymentMethodId; |
||
133 | |||
134 | /** |
||
135 | * @var array |
||
136 | */ |
||
137 | private $paymentMethodTypes; |
||
138 | |||
139 | /** |
||
140 | * @var ?string |
||
141 | */ |
||
142 | private $receiptEmail; |
||
143 | |||
144 | /** |
||
145 | * @var ?string |
||
146 | */ |
||
147 | private $reviewId; |
||
148 | |||
149 | /** |
||
150 | * @var ?Shipping |
||
151 | */ |
||
152 | private $shipping; |
||
153 | |||
154 | /** |
||
155 | * @var ?string |
||
156 | */ |
||
157 | private $statementDescriptor; |
||
158 | |||
159 | /** |
||
160 | * @var ?TransferData |
||
161 | */ |
||
162 | private $transferData; |
||
163 | |||
164 | /** |
||
165 | * @var ?string |
||
166 | */ |
||
167 | private $transferGroup; |
||
168 | |||
169 | 3 | public static function createFromArray(array $data): self |
|
207 | |||
208 | 1 | public function getId(): string |
|
212 | |||
213 | 1 | public function getAmount(): Money |
|
217 | |||
218 | 1 | public function getAmountCapturable(): Money |
|
222 | |||
223 | 1 | public function getAmountReceived(): Money |
|
227 | |||
228 | 1 | public function getApplicationId(): ?string |
|
232 | |||
233 | 1 | public function getApplicationFeeAmount(): ?Money |
|
237 | |||
238 | 1 | public function getCanceledAt(): \DateTimeInterface |
|
242 | |||
243 | 1 | public function getCancellationReason(): ?string |
|
247 | |||
248 | 1 | public function getCaptureMethod(): string |
|
252 | |||
253 | 1 | public function getCharges(): ChargeCollection |
|
257 | |||
258 | 1 | public function getClientSecret(): string |
|
262 | |||
263 | 1 | public function getConfirmationMethod(): string |
|
267 | |||
268 | 1 | public function getCreatedAt(): \DateTimeInterface |
|
272 | |||
273 | 1 | public function getCurrency(): Currency |
|
277 | |||
278 | 1 | public function getCustomerId(): ?string |
|
282 | |||
283 | 1 | public function getDescription(): ?string |
|
287 | |||
288 | 1 | public function getInvoiceId(): ?string |
|
292 | |||
293 | 1 | public function getLastPaymentError(): ?LastPaymentError |
|
297 | |||
298 | 1 | public function getOnBehalfOfId(): ?string |
|
302 | |||
303 | 1 | public function getPaymentMethodId(): ?string |
|
307 | |||
308 | 1 | public function getPaymentMethodTypes(): array |
|
312 | |||
313 | 1 | public function getReceiptEmail(): ?string |
|
317 | |||
318 | 1 | public function getReviewId(): ?string |
|
322 | |||
323 | 1 | public function getShipping(): ?Shipping |
|
327 | |||
328 | 1 | public function getStatementDescriptor(): ?string |
|
332 | |||
333 | 1 | public function getTransferData(): ?TransferData |
|
337 | |||
338 | 1 | public function getTransferGroup(): ?string |
|
342 | } |
||
343 |
Our type inference engine has found an assignment to a property that is incompatible with the declared type of that property.
Either this assignment is in error or the assigned type should be added to the documentation/type hint for that property..