PaymentInfoType::setRefundSourceCodeType()   A
last analyzed

Complexity

Conditions 3
Paths 2

Size

Total Lines 8
Code Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 3
eloc 4
c 1
b 0
f 0
nc 2
nop 1
dl 0
loc 8
rs 10
1
<?php
2
3
namespace PayPal\StructType;
4
5
use \WsdlToPhp\PackageBase\AbstractStructBase;
6
7
/**
8
 * This class stands for PaymentInfoType StructType
9
 * Meta information extracted from the WSDL
10
 * - documentation: Receipt ID Character length and limitations: 16 digits in xxxx-xxxx-xxxx-xxxx format | Its Ebay transaction id. EbayTransactionID will returned for immediate pay item transaction in ECA | A transaction identification number.
11
 * Character length and limits: 19 single-byte characters maximum | PaymentInfoType Payment information.
12
 * @subpackage Structs
13
 * @author WsdlToPhp <[email protected]>
14
 */
15
class PaymentInfoType extends AbstractStructBase
16
{
17
    /**
18
     * The TransactionID
19
     * Meta information extracted from the WSDL
20
     * - minOccurs: 0
21
     * - ref: ns:TransactionID
22
     * @var string
23
     */
24
    public $TransactionID;
25
    /**
26
     * The EbayTransactionID
27
     * Meta information extracted from the WSDL
28
     * - minOccurs: 0
29
     * - ref: ns:EbayTransactionID
30
     * @var string
31
     */
32
    public $EbayTransactionID;
33
    /**
34
     * The ParentTransactionID
35
     * Meta information extracted from the WSDL
36
     * - documentation: Parent or related transaction identification number. This field is populated for the following transaction types: ReversalCapture of an authorized transaction.Reauthorization of a transaction.Capture of an order. The value of
37
     * ParentTransactionID is the original OrderID.Authorization of an order. The value of ParentTransactionID is the original OrderID.Capture of an order authorization.Void of an order. The value of ParentTransactionID is the original OrderID. Character
38
     * length and limits: 19 single-byte characters maximum | TransactionId - Type for a PayPal Transaction ID.
39
     * - base: xs:string
40
     * - minOccurs: 0
41
     * @var string
42
     */
43
    public $ParentTransactionID;
44
    /**
45
     * The ReceiptID
46
     * Meta information extracted from the WSDL
47
     * - minOccurs: 0
48
     * - ref: ns:ReceiptID
49
     * @var string
50
     */
51
    public $ReceiptID;
52
    /**
53
     * The TransactionType
54
     * Meta information extracted from the WSDL
55
     * - documentation: The type of transaction cart: Transaction created via the PayPal Shopping Cart feature or by Express Checkout with multiple purchased item express-checkout: Transaction created by Express Checkout with a single purchased items
56
     * send-money: Transaction created by customer from the Send Money tab on the PayPal website. web-accept: Transaction created by customer via Buy Now, Donation, or Auction Smart Logos. subscr-*: Transaction created by customer via Subscription. eot
57
     * means "end of subscription term." merch-pmt: preapproved payment. mass-pay: Transaction created via MassPay. virtual-terminal: Transaction created via merchant virtual terminal. credit: Transaction created via merchant virtual terminal or API to
58
     * credit a customer.
59
     * @var string
60
     */
61
    public $TransactionType;
62
    /**
63
     * The PaymentType
64
     * Meta information extracted from the WSDL
65
     * - documentation: The type of payment
66
     * - minOccurs: 0
67
     * @var string
68
     */
69
    public $PaymentType;
70
    /**
71
     * The RefundSourceCodeType
72
     * Meta information extracted from the WSDL
73
     * - documentation: The type of funding source
74
     * - minOccurs: 0
75
     * @var string
76
     */
77
    public $RefundSourceCodeType;
78
    /**
79
     * The ExpectedeCheckClearDate
80
     * Meta information extracted from the WSDL
81
     * - documentation: eCheck latest expected clear date
82
     * - minOccurs: 0
83
     * @var string
84
     */
85
    public $ExpectedeCheckClearDate;
86
    /**
87
     * The PaymentDate
88
     * Meta information extracted from the WSDL
89
     * - documentation: Date and time of payment
90
     * - minOccurs: 0
91
     * @var string
92
     */
93
    public $PaymentDate;
94
    /**
95
     * The GrossAmount
96
     * Meta information extracted from the WSDL
97
     * - documentation: Full amount of the customer's payment, before transaction fee is subtracted
98
     * - minOccurs: 0
99
     * @var \PayPal\StructType\BasicAmountType
100
     */
101
    public $GrossAmount;
102
    /**
103
     * The FeeAmount
104
     * Meta information extracted from the WSDL
105
     * - documentation: Transaction fee associated with the payment
106
     * - minOccurs: 0
107
     * @var \PayPal\StructType\BasicAmountType
108
     */
109
    public $FeeAmount;
110
    /**
111
     * The SettlementFeeAmount
112
     * Meta information extracted from the WSDL
113
     * - documentation: Settlement Transaction fee associated with the payment
114
     * - minOccurs: 0
115
     * @var \PayPal\StructType\BasicAmountType
116
     */
117
    public $SettlementFeeAmount;
118
    /**
119
     * The FinancingFeeAmount
120
     * Meta information extracted from the WSDL
121
     * - documentation: Transaction financing fee associated with the payment.
122
     * - minOccurs: 0
123
     * @var \PayPal\StructType\BasicAmountType
124
     */
125
    public $FinancingFeeAmount;
126
    /**
127
     * The FinancingTotalCost
128
     * Meta information extracted from the WSDL
129
     * - documentation: Total overall cost associated with this financing transaction.
130
     * - minOccurs: 0
131
     * @var \PayPal\StructType\BasicAmountType
132
     */
133
    public $FinancingTotalCost;
134
    /**
135
     * The FinancingMonthlyPayment
136
     * Meta information extracted from the WSDL
137
     * - documentation: Monthly payment for this financing transaction.
138
     * - minOccurs: 0
139
     * @var \PayPal\StructType\BasicAmountType
140
     */
141
    public $FinancingMonthlyPayment;
142
    /**
143
     * The FinancingTerm
144
     * Meta information extracted from the WSDL
145
     * - documentation: The length of this financing term, in months.
146
     * - minOccurs: 0
147
     * @var string
148
     */
149
    public $FinancingTerm;
150
    /**
151
     * The IsFinancing
152
     * Meta information extracted from the WSDL
153
     * - minOccurs: 0
154
     * @var string
155
     */
156
    public $IsFinancing;
157
    /**
158
     * The FinancingDiscountAmount
159
     * Meta information extracted from the WSDL
160
     * - documentation: Discount Amount for buyer, if paid in one installment.
161
     * - minOccurs: 0
162
     * @var \PayPal\StructType\BasicAmountType
163
     */
164
    public $FinancingDiscountAmount;
165
    /**
166
     * The RegularTakeFeeAmount
167
     * Meta information extracted from the WSDL
168
     * - documentation: Fee of Regular take rate on the transaction amount. It could be equal to FeeAmount, if not installment.
169
     * - minOccurs: 0
170
     * @var \PayPal\StructType\BasicAmountType
171
     */
172
    public $RegularTakeFeeAmount;
173
    /**
174
     * The SettleAmount
175
     * Meta information extracted from the WSDL
176
     * - documentation: Amount deposited into the account's primary balance after a currency conversion from automatic conversion through your Payment Receiving Preferences or manual conversion through manually accepting a payment. This amount is calculated
177
     * after fees and taxes have been assessed.
178
     * - minOccurs: 0
179
     * @var \PayPal\StructType\BasicAmountType
180
     */
181
    public $SettleAmount;
182
    /**
183
     * The TaxAmount
184
     * Meta information extracted from the WSDL
185
     * - documentation: Amount of tax for transaction
186
     * - minOccurs: 0
187
     * @var \PayPal\StructType\BasicAmountType
188
     */
189
    public $TaxAmount;
190
    /**
191
     * The ExchangeRate
192
     * Meta information extracted from the WSDL
193
     * - documentation: Exchange rate for transaction
194
     * - minOccurs: 0
195
     * @var string
196
     */
197
    public $ExchangeRate;
198
    /**
199
     * The PaymentStatus
200
     * Meta information extracted from the WSDL
201
     * - documentation: The status of the payment: None: No status Created: A giropay payment has been initiated. Canceled-Reversal: A reversal has been canceled. For example, you won a dispute with the customer, and the funds for the transaction that was
202
     * reversed have been returned to you. Completed: The payment has been completed, and the funds have been added successfully to your account balance. Denied: You denied the payment. This happens only if the payment was previously pending because of
203
     * possible reasons described for the PendingReason element. Expired: This authorization has expired and cannot be captured. Failed: The payment has failed. This happens only if the payment was made from your customer's bank account. In-Progress: The
204
     * transaction is in process of authorization and capture. Partially-Refunded: The transaction has been partially refunded. Pending: The payment is pending. See "PendingReason" for more information. Refunded: You refunded the payment. Reversed: A
205
     * payment was reversed due to a chargeback or other type of reversal. The funds have been removed from your account balance and returned to the buyer. The reason for the reversal is specified in the ReasonCode element. Processed: A payment has been
206
     * accepted. Voided: This authorization has been voided. Completed-Funds-Held: The payment has been completed, and the funds have been added successfully to your pending balance. See the "HoldDecision" field for more information.
207
     * @var string
208
     */
209
    public $PaymentStatus;
210
    /**
211
     * The PendingReason
212
     * Meta information extracted from the WSDL
213
     * - documentation: The reason the payment is pending: none: No pending reason address: The payment is pending because your customer did not include a confirmed shipping address and your Payment Receiving Preferences is set such that you want to
214
     * manually accept or deny each of these payments. To change your preference, go to the Preferences section of your Profile. authorization: You set PaymentAction to Authorization on SetExpressCheckoutRequest and have not yet captured funds. echeck: The
215
     * payment is pending because it was made by an eCheck that has not yet cleared. intl: The payment is pending because you hold a non-U.S. account and do not have a withdrawal mechanism. You must manually accept or deny this payment from your Account
216
     * Overview. multi-currency: You do not have a balance in the currency sent, and you do not have your Payment Receiving Preferences set to automatically convert and accept this payment. You must manually accept or deny this payment. unilateral: The
217
     * payment is pending because it was made to an email address that is not yet registered or confirmed. upgrade: The payment is pending because it was made via credit card and you must upgrade your account to Business or Premier status in order to
218
     * receive the funds. upgrade can also mean that you have reached the monthly limit for transactions on your account. verify: The payment is pending because you are not yet verified. You must verify your account before you can accept this payment.
219
     * regulatory-review: This payment is pending while we make sure it meets regulatory requirements. We'll contact you again in 24-72 hours with the outcome of our review. other: The payment is pending for a reason other than those listed above. For more
220
     * information, contact PayPal Customer Service.
221
     * - minOccurs: 0
222
     * @var string
223
     */
224
    public $PendingReason;
225
    /**
226
     * The ReasonCode
227
     * Meta information extracted from the WSDL
228
     * - documentation: The reason for a reversal if TransactionType is reversal: none: No reason code chargeback: A reversal has occurred on this transaction due to a chargeback by your customer. guarantee: A reversal has occurred on this transaction due
229
     * to your customer triggering a money-back guarantee. buyer-complaint: A reversal has occurred on this transaction due to a complaint about the transaction from your customer. refund: A reversal has occurred on this transaction because you have given
230
     * the customer a refund. other: A reversal has occurred on this transaction due to a reason not listed above.
231
     * - minOccurs: 0
232
     * @var string
233
     */
234
    public $ReasonCode;
235
    /**
236
     * The HoldDecision
237
     * Meta information extracted from the WSDL
238
     * - documentation: HoldDecision is returned in the response only if PaymentStatus is Completed-Funds-Held. The reason the funds are kept in pending balance: newsellerpaymenthold: The seller is new. paymenthold: A hold is placed on your transaction due
239
     * to a reason not listed above.
240
     * - minOccurs: 0
241
     * @var string
242
     */
243
    public $HoldDecision;
244
    /**
245
     * The ShippingMethod
246
     * Meta information extracted from the WSDL
247
     * - documentation: Shipping method selected by the user during check-out.
248
     * - minOccurs: 0
249
     * @var string
250
     */
251
    public $ShippingMethod;
252
    /**
253
     * The ProtectionEligibility
254
     * Meta information extracted from the WSDL
255
     * - documentation: Protection Eligibility for this Transaction - None, SPP or ESPP
256
     * - minOccurs: 0
257
     * @var string
258
     */
259
    public $ProtectionEligibility;
260
    /**
261
     * The ProtectionEligibilityType
262
     * Meta information extracted from the WSDL
263
     * - documentation: Protection Eligibility details for this Transaction
264
     * - minOccurs: 0
265
     * @var string
266
     */
267
    public $ProtectionEligibilityType;
268
    /**
269
     * The ReceiptReferenceNumber
270
     * Meta information extracted from the WSDL
271
     * - documentation: Receipt Reference Number for this Transaction
272
     * - minOccurs: 0
273
     * @var string
274
     */
275
    public $ReceiptReferenceNumber;
276
    /**
277
     * The POSTransactionType
278
     * Meta information extracted from the WSDL
279
     * - documentation: The type of POS transaction F: Forced post transaction. POS merchant can send transactions at a later point if connectivity is lost. S: Single call checkout, and this is to identify PayPal Lite API usage.
280
     * - minOccurs: 0
281
     * @var string
282
     */
283
    public $POSTransactionType;
284
    /**
285
     * The ShipAmount
286
     * Meta information extracted from the WSDL
287
     * - documentation: Amount of shipping charged on transaction
288
     * - minOccurs: 0
289
     * @var string
290
     */
291
    public $ShipAmount;
292
    /**
293
     * The ShipHandleAmount
294
     * Meta information extracted from the WSDL
295
     * - documentation: Amount of ship handling charged on transaction
296
     * - minOccurs: 0
297
     * @var string
298
     */
299
    public $ShipHandleAmount;
300
    /**
301
     * The ShipDiscount
302
     * Meta information extracted from the WSDL
303
     * - documentation: Amount of shipping discount on transaction
304
     * - minOccurs: 0
305
     * @var string
306
     */
307
    public $ShipDiscount;
308
    /**
309
     * The InsuranceAmount
310
     * Meta information extracted from the WSDL
311
     * - documentation: Amount of Insurance amount on transaction
312
     * - minOccurs: 0
313
     * @var string
314
     */
315
    public $InsuranceAmount;
316
    /**
317
     * The Subject
318
     * Meta information extracted from the WSDL
319
     * - documentation: Subject as entered in the transaction
320
     * - minOccurs: 0
321
     * @var string
322
     */
323
    public $Subject;
324
    /**
325
     * The StoreID
326
     * Meta information extracted from the WSDL
327
     * - documentation: StoreID as entered in the transaction
328
     * - minOccurs: 0
329
     * @var string
330
     */
331
    public $StoreID;
332
    /**
333
     * The TerminalID
334
     * Meta information extracted from the WSDL
335
     * - documentation: TerminalID as entered in the transaction
336
     * - minOccurs: 0
337
     * @var string
338
     */
339
    public $TerminalID;
340
    /**
341
     * The SellerDetails
342
     * Meta information extracted from the WSDL
343
     * - documentation: Details about the seller. Optional
344
     * - maxOccurs: 1
345
     * - minOccurs: 0
346
     * @var \PayPal\StructType\SellerDetailsType
347
     */
348
    public $SellerDetails;
349
    /**
350
     * The PaymentRequestID
351
     * Meta information extracted from the WSDL
352
     * - documentation: Unique identifier and mandatory for each bucket in case of split payement
353
     * - minOccurs: 0
354
     * @var string
355
     */
356
    public $PaymentRequestID;
357
    /**
358
     * The FMFDetails
359
     * Meta information extracted from the WSDL
360
     * - documentation: Thes are filters that could result in accept/deny/pending action.
361
     * - maxOccurs: 1
362
     * - minOccurs: 0
363
     * @var \PayPal\StructType\FMFDetailsType
364
     */
365
    public $FMFDetails;
366
    /**
367
     * The EnhancedPaymentInfo
368
     * Meta information extracted from the WSDL
369
     * - documentation: This will be enhanced info for the payment: Example: UATP details
370
     * - maxOccurs: 1
371
     * - minOccurs: 0
372
     * @var \PayPal\StructType\EnhancedPaymentInfoType
373
     */
374
    public $EnhancedPaymentInfo;
375
    /**
376
     * The PaymentError
377
     * Meta information extracted from the WSDL
378
     * - documentation: This will indicate the payment status for individual payment request in case of split payment
379
     * - maxOccurs: 1
380
     * - minOccurs: 0
381
     * @var \PayPal\StructType\ErrorType
382
     */
383
    public $PaymentError;
384
    /**
385
     * The InstrumentDetails
386
     * Meta information extracted from the WSDL
387
     * - documentation: Type of the payment instrument.
388
     * - minOccurs: 0
389
     * @var \PayPal\StructType\InstrumentDetailsType
390
     */
391
    public $InstrumentDetails;
392
    /**
393
     * The OfferDetails
394
     * Meta information extracted from the WSDL
395
     * - documentation: Offer Details.
396
     * - minOccurs: 0
397
     * @var \PayPal\StructType\OfferDetailsType
398
     */
399
    public $OfferDetails;
400
    /**
401
     * The BinEligibility
402
     * Meta information extracted from the WSDL
403
     * - documentation: This field indicates whether the credit card number used for this transaction is in a particular bin range registered with PayPal by the merchant. This filed is optional and will be present if merchant has a registered bin range. The
404
     * value of this field will be "true" if merchant has a registered bin range and the credit card used in the transaction is within the registered bin range. The value of this field will be false if merchant has a registered bin range and credit card
405
     * used in the transaction outside registered bin range or the transaction is not done using a credit card.
406
     * - minOccurs: 0
407
     * @var string
408
     */
409
    public $BinEligibility;
410
    /**
411
     * The SoftDescriptor
412
     * Meta information extracted from the WSDL
413
     * - documentation: This information holds business name and other data describing the transaction. This information is usually displayed in the CC account holder's statement.
414
     * - minOccurs: 0
415
     * @var string
416
     */
417
    public $SoftDescriptor;
418
    /**
419
     * The SoftDescriptorCity
420
     * Meta information extracted from the WSDL
421
     * - documentation: CC Information about how consumer should contact the merchant. This information is usually displayed in the CC account holder's statement.
422
     * - minOccurs: 0
423
     * @var string
424
     */
425
    public $SoftDescriptorCity;
426
    /**
427
     * Constructor method for PaymentInfoType
428
     * @uses PaymentInfoType::setTransactionID()
429
     * @uses PaymentInfoType::setEbayTransactionID()
430
     * @uses PaymentInfoType::setParentTransactionID()
431
     * @uses PaymentInfoType::setReceiptID()
432
     * @uses PaymentInfoType::setTransactionType()
433
     * @uses PaymentInfoType::setPaymentType()
434
     * @uses PaymentInfoType::setRefundSourceCodeType()
435
     * @uses PaymentInfoType::setExpectedeCheckClearDate()
436
     * @uses PaymentInfoType::setPaymentDate()
437
     * @uses PaymentInfoType::setGrossAmount()
438
     * @uses PaymentInfoType::setFeeAmount()
439
     * @uses PaymentInfoType::setSettlementFeeAmount()
440
     * @uses PaymentInfoType::setFinancingFeeAmount()
441
     * @uses PaymentInfoType::setFinancingTotalCost()
442
     * @uses PaymentInfoType::setFinancingMonthlyPayment()
443
     * @uses PaymentInfoType::setFinancingTerm()
444
     * @uses PaymentInfoType::setIsFinancing()
445
     * @uses PaymentInfoType::setFinancingDiscountAmount()
446
     * @uses PaymentInfoType::setRegularTakeFeeAmount()
447
     * @uses PaymentInfoType::setSettleAmount()
448
     * @uses PaymentInfoType::setTaxAmount()
449
     * @uses PaymentInfoType::setExchangeRate()
450
     * @uses PaymentInfoType::setPaymentStatus()
451
     * @uses PaymentInfoType::setPendingReason()
452
     * @uses PaymentInfoType::setReasonCode()
453
     * @uses PaymentInfoType::setHoldDecision()
454
     * @uses PaymentInfoType::setShippingMethod()
455
     * @uses PaymentInfoType::setProtectionEligibility()
456
     * @uses PaymentInfoType::setProtectionEligibilityType()
457
     * @uses PaymentInfoType::setReceiptReferenceNumber()
458
     * @uses PaymentInfoType::setPOSTransactionType()
459
     * @uses PaymentInfoType::setShipAmount()
460
     * @uses PaymentInfoType::setShipHandleAmount()
461
     * @uses PaymentInfoType::setShipDiscount()
462
     * @uses PaymentInfoType::setInsuranceAmount()
463
     * @uses PaymentInfoType::setSubject()
464
     * @uses PaymentInfoType::setStoreID()
465
     * @uses PaymentInfoType::setTerminalID()
466
     * @uses PaymentInfoType::setSellerDetails()
467
     * @uses PaymentInfoType::setPaymentRequestID()
468
     * @uses PaymentInfoType::setFMFDetails()
469
     * @uses PaymentInfoType::setEnhancedPaymentInfo()
470
     * @uses PaymentInfoType::setPaymentError()
471
     * @uses PaymentInfoType::setInstrumentDetails()
472
     * @uses PaymentInfoType::setOfferDetails()
473
     * @uses PaymentInfoType::setBinEligibility()
474
     * @uses PaymentInfoType::setSoftDescriptor()
475
     * @uses PaymentInfoType::setSoftDescriptorCity()
476
     * @param string $transactionID
477
     * @param string $ebayTransactionID
478
     * @param string $parentTransactionID
479
     * @param string $receiptID
480
     * @param string $transactionType
481
     * @param string $paymentType
482
     * @param string $refundSourceCodeType
483
     * @param string $expectedeCheckClearDate
484
     * @param string $paymentDate
485
     * @param \PayPal\StructType\BasicAmountType $grossAmount
486
     * @param \PayPal\StructType\BasicAmountType $feeAmount
487
     * @param \PayPal\StructType\BasicAmountType $settlementFeeAmount
488
     * @param \PayPal\StructType\BasicAmountType $financingFeeAmount
489
     * @param \PayPal\StructType\BasicAmountType $financingTotalCost
490
     * @param \PayPal\StructType\BasicAmountType $financingMonthlyPayment
491
     * @param string $financingTerm
492
     * @param string $isFinancing
493
     * @param \PayPal\StructType\BasicAmountType $financingDiscountAmount
494
     * @param \PayPal\StructType\BasicAmountType $regularTakeFeeAmount
495
     * @param \PayPal\StructType\BasicAmountType $settleAmount
496
     * @param \PayPal\StructType\BasicAmountType $taxAmount
497
     * @param string $exchangeRate
498
     * @param string $paymentStatus
499
     * @param string $pendingReason
500
     * @param string $reasonCode
501
     * @param string $holdDecision
502
     * @param string $shippingMethod
503
     * @param string $protectionEligibility
504
     * @param string $protectionEligibilityType
505
     * @param string $receiptReferenceNumber
506
     * @param string $pOSTransactionType
507
     * @param string $shipAmount
508
     * @param string $shipHandleAmount
509
     * @param string $shipDiscount
510
     * @param string $insuranceAmount
511
     * @param string $subject
512
     * @param string $storeID
513
     * @param string $terminalID
514
     * @param \PayPal\StructType\SellerDetailsType $sellerDetails
515
     * @param string $paymentRequestID
516
     * @param \PayPal\StructType\FMFDetailsType $fMFDetails
517
     * @param \PayPal\StructType\EnhancedPaymentInfoType $enhancedPaymentInfo
518
     * @param \PayPal\StructType\ErrorType $paymentError
519
     * @param \PayPal\StructType\InstrumentDetailsType $instrumentDetails
520
     * @param \PayPal\StructType\OfferDetailsType $offerDetails
521
     * @param string $binEligibility
522
     * @param string $softDescriptor
523
     * @param string $softDescriptorCity
524
     */
525
    public function __construct($transactionID = null, $ebayTransactionID = null, $parentTransactionID = null, $receiptID = null, $transactionType = null, $paymentType = null, $refundSourceCodeType = null, $expectedeCheckClearDate = null, $paymentDate = null, \PayPal\StructType\BasicAmountType $grossAmount = null, \PayPal\StructType\BasicAmountType $feeAmount = null, \PayPal\StructType\BasicAmountType $settlementFeeAmount = null, \PayPal\StructType\BasicAmountType $financingFeeAmount = null, \PayPal\StructType\BasicAmountType $financingTotalCost = null, \PayPal\StructType\BasicAmountType $financingMonthlyPayment = null, $financingTerm = null, $isFinancing = null, \PayPal\StructType\BasicAmountType $financingDiscountAmount = null, \PayPal\StructType\BasicAmountType $regularTakeFeeAmount = null, \PayPal\StructType\BasicAmountType $settleAmount = null, \PayPal\StructType\BasicAmountType $taxAmount = null, $exchangeRate = null, $paymentStatus = null, $pendingReason = null, $reasonCode = null, $holdDecision = null, $shippingMethod = null, $protectionEligibility = null, $protectionEligibilityType = null, $receiptReferenceNumber = null, $pOSTransactionType = null, $shipAmount = null, $shipHandleAmount = null, $shipDiscount = null, $insuranceAmount = null, $subject = null, $storeID = null, $terminalID = null, \PayPal\StructType\SellerDetailsType $sellerDetails = null, $paymentRequestID = null, \PayPal\StructType\FMFDetailsType $fMFDetails = null, \PayPal\StructType\EnhancedPaymentInfoType $enhancedPaymentInfo = null, \PayPal\StructType\ErrorType $paymentError = null, \PayPal\StructType\InstrumentDetailsType $instrumentDetails = null, \PayPal\StructType\OfferDetailsType $offerDetails = null, $binEligibility = null, $softDescriptor = null, $softDescriptorCity = null)
526
    {
527
        $this
528
            ->setTransactionID($transactionID)
529
            ->setEbayTransactionID($ebayTransactionID)
530
            ->setParentTransactionID($parentTransactionID)
531
            ->setReceiptID($receiptID)
532
            ->setTransactionType($transactionType)
533
            ->setPaymentType($paymentType)
534
            ->setRefundSourceCodeType($refundSourceCodeType)
535
            ->setExpectedeCheckClearDate($expectedeCheckClearDate)
536
            ->setPaymentDate($paymentDate)
537
            ->setGrossAmount($grossAmount)
538
            ->setFeeAmount($feeAmount)
539
            ->setSettlementFeeAmount($settlementFeeAmount)
540
            ->setFinancingFeeAmount($financingFeeAmount)
541
            ->setFinancingTotalCost($financingTotalCost)
542
            ->setFinancingMonthlyPayment($financingMonthlyPayment)
543
            ->setFinancingTerm($financingTerm)
544
            ->setIsFinancing($isFinancing)
545
            ->setFinancingDiscountAmount($financingDiscountAmount)
546
            ->setRegularTakeFeeAmount($regularTakeFeeAmount)
547
            ->setSettleAmount($settleAmount)
548
            ->setTaxAmount($taxAmount)
549
            ->setExchangeRate($exchangeRate)
550
            ->setPaymentStatus($paymentStatus)
551
            ->setPendingReason($pendingReason)
552
            ->setReasonCode($reasonCode)
553
            ->setHoldDecision($holdDecision)
554
            ->setShippingMethod($shippingMethod)
555
            ->setProtectionEligibility($protectionEligibility)
556
            ->setProtectionEligibilityType($protectionEligibilityType)
557
            ->setReceiptReferenceNumber($receiptReferenceNumber)
558
            ->setPOSTransactionType($pOSTransactionType)
559
            ->setShipAmount($shipAmount)
560
            ->setShipHandleAmount($shipHandleAmount)
561
            ->setShipDiscount($shipDiscount)
562
            ->setInsuranceAmount($insuranceAmount)
563
            ->setSubject($subject)
564
            ->setStoreID($storeID)
565
            ->setTerminalID($terminalID)
566
            ->setSellerDetails($sellerDetails)
567
            ->setPaymentRequestID($paymentRequestID)
568
            ->setFMFDetails($fMFDetails)
569
            ->setEnhancedPaymentInfo($enhancedPaymentInfo)
570
            ->setPaymentError($paymentError)
571
            ->setInstrumentDetails($instrumentDetails)
572
            ->setOfferDetails($offerDetails)
573
            ->setBinEligibility($binEligibility)
574
            ->setSoftDescriptor($softDescriptor)
575
            ->setSoftDescriptorCity($softDescriptorCity);
576
    }
577
    /**
578
     * Get TransactionID value
579
     * @return string|null
580
     */
581
    public function getTransactionID()
582
    {
583
        return $this->TransactionID;
584
    }
585
    /**
586
     * Set TransactionID value
587
     * @param string $transactionID
588
     * @return \PayPal\StructType\PaymentInfoType
589
     */
590
    public function setTransactionID($transactionID = null)
591
    {
592
        // validation for constraint: string
593
        if (!is_null($transactionID) && !is_string($transactionID)) {
0 ignored issues
show
introduced by
The condition is_string($transactionID) is always true.
Loading history...
594
            throw new \InvalidArgumentException(sprintf('Invalid value %s, please provide a string, %s given', var_export($transactionID, true), gettype($transactionID)), __LINE__);
595
        }
596
        $this->TransactionID = $transactionID;
597
        return $this;
598
    }
599
    /**
600
     * Get EbayTransactionID value
601
     * @return string|null
602
     */
603
    public function getEbayTransactionID()
604
    {
605
        return $this->EbayTransactionID;
606
    }
607
    /**
608
     * Set EbayTransactionID value
609
     * @param string $ebayTransactionID
610
     * @return \PayPal\StructType\PaymentInfoType
611
     */
612
    public function setEbayTransactionID($ebayTransactionID = null)
613
    {
614
        // validation for constraint: string
615
        if (!is_null($ebayTransactionID) && !is_string($ebayTransactionID)) {
0 ignored issues
show
introduced by
The condition is_string($ebayTransactionID) is always true.
Loading history...
616
            throw new \InvalidArgumentException(sprintf('Invalid value %s, please provide a string, %s given', var_export($ebayTransactionID, true), gettype($ebayTransactionID)), __LINE__);
617
        }
618
        $this->EbayTransactionID = $ebayTransactionID;
619
        return $this;
620
    }
621
    /**
622
     * Get ParentTransactionID value
623
     * @return string|null
624
     */
625
    public function getParentTransactionID()
626
    {
627
        return $this->ParentTransactionID;
628
    }
629
    /**
630
     * Set ParentTransactionID value
631
     * @param string $parentTransactionID
632
     * @return \PayPal\StructType\PaymentInfoType
633
     */
634
    public function setParentTransactionID($parentTransactionID = null)
635
    {
636
        // validation for constraint: string
637
        if (!is_null($parentTransactionID) && !is_string($parentTransactionID)) {
0 ignored issues
show
introduced by
The condition is_string($parentTransactionID) is always true.
Loading history...
638
            throw new \InvalidArgumentException(sprintf('Invalid value %s, please provide a string, %s given', var_export($parentTransactionID, true), gettype($parentTransactionID)), __LINE__);
639
        }
640
        $this->ParentTransactionID = $parentTransactionID;
641
        return $this;
642
    }
643
    /**
644
     * Get ReceiptID value
645
     * @return string|null
646
     */
647
    public function getReceiptID()
648
    {
649
        return $this->ReceiptID;
650
    }
651
    /**
652
     * Set ReceiptID value
653
     * @param string $receiptID
654
     * @return \PayPal\StructType\PaymentInfoType
655
     */
656
    public function setReceiptID($receiptID = null)
657
    {
658
        // validation for constraint: string
659
        if (!is_null($receiptID) && !is_string($receiptID)) {
0 ignored issues
show
introduced by
The condition is_string($receiptID) is always true.
Loading history...
660
            throw new \InvalidArgumentException(sprintf('Invalid value %s, please provide a string, %s given', var_export($receiptID, true), gettype($receiptID)), __LINE__);
661
        }
662
        $this->ReceiptID = $receiptID;
663
        return $this;
664
    }
665
    /**
666
     * Get TransactionType value
667
     * @return string|null
668
     */
669
    public function getTransactionType()
670
    {
671
        return $this->TransactionType;
672
    }
673
    /**
674
     * Set TransactionType value
675
     * @uses \PayPal\EnumType\PaymentTransactionCodeType::valueIsValid()
676
     * @uses \PayPal\EnumType\PaymentTransactionCodeType::getValidValues()
677
     * @throws \InvalidArgumentException
678
     * @param string $transactionType
679
     * @return \PayPal\StructType\PaymentInfoType
680
     */
681
    public function setTransactionType($transactionType = null)
682
    {
683
        // validation for constraint: enumeration
684
        if (!\PayPal\EnumType\PaymentTransactionCodeType::valueIsValid($transactionType)) {
685
            throw new \InvalidArgumentException(sprintf('Invalid value(s) %s, please use one of: %s from enumeration class \PayPal\EnumType\PaymentTransactionCodeType', is_array($transactionType) ? implode(', ', $transactionType) : var_export($transactionType, true), implode(', ', \PayPal\EnumType\PaymentTransactionCodeType::getValidValues())), __LINE__);
0 ignored issues
show
introduced by
The condition is_array($transactionType) is always false.
Loading history...
686
        }
687
        $this->TransactionType = $transactionType;
688
        return $this;
689
    }
690
    /**
691
     * Get PaymentType value
692
     * @return string|null
693
     */
694
    public function getPaymentType()
695
    {
696
        return $this->PaymentType;
697
    }
698
    /**
699
     * Set PaymentType value
700
     * @uses \PayPal\EnumType\PaymentCodeType::valueIsValid()
701
     * @uses \PayPal\EnumType\PaymentCodeType::getValidValues()
702
     * @throws \InvalidArgumentException
703
     * @param string $paymentType
704
     * @return \PayPal\StructType\PaymentInfoType
705
     */
706
    public function setPaymentType($paymentType = null)
707
    {
708
        // validation for constraint: enumeration
709
        if (!\PayPal\EnumType\PaymentCodeType::valueIsValid($paymentType)) {
710
            throw new \InvalidArgumentException(sprintf('Invalid value(s) %s, please use one of: %s from enumeration class \PayPal\EnumType\PaymentCodeType', is_array($paymentType) ? implode(', ', $paymentType) : var_export($paymentType, true), implode(', ', \PayPal\EnumType\PaymentCodeType::getValidValues())), __LINE__);
0 ignored issues
show
introduced by
The condition is_array($paymentType) is always false.
Loading history...
711
        }
712
        $this->PaymentType = $paymentType;
713
        return $this;
714
    }
715
    /**
716
     * Get RefundSourceCodeType value
717
     * @return string|null
718
     */
719
    public function getRefundSourceCodeType()
720
    {
721
        return $this->RefundSourceCodeType;
722
    }
723
    /**
724
     * Set RefundSourceCodeType value
725
     * @uses \PayPal\EnumType\RefundSourceCodeType::valueIsValid()
726
     * @uses \PayPal\EnumType\RefundSourceCodeType::getValidValues()
727
     * @throws \InvalidArgumentException
728
     * @param string $refundSourceCodeType
729
     * @return \PayPal\StructType\PaymentInfoType
730
     */
731
    public function setRefundSourceCodeType($refundSourceCodeType = null)
732
    {
733
        // validation for constraint: enumeration
734
        if (!\PayPal\EnumType\RefundSourceCodeType::valueIsValid($refundSourceCodeType)) {
735
            throw new \InvalidArgumentException(sprintf('Invalid value(s) %s, please use one of: %s from enumeration class \PayPal\EnumType\RefundSourceCodeType', is_array($refundSourceCodeType) ? implode(', ', $refundSourceCodeType) : var_export($refundSourceCodeType, true), implode(', ', \PayPal\EnumType\RefundSourceCodeType::getValidValues())), __LINE__);
0 ignored issues
show
introduced by
The condition is_array($refundSourceCodeType) is always false.
Loading history...
736
        }
737
        $this->RefundSourceCodeType = $refundSourceCodeType;
738
        return $this;
739
    }
740
    /**
741
     * Get ExpectedeCheckClearDate value
742
     * @return string|null
743
     */
744
    public function getExpectedeCheckClearDate()
745
    {
746
        return $this->ExpectedeCheckClearDate;
747
    }
748
    /**
749
     * Set ExpectedeCheckClearDate value
750
     * @param string $expectedeCheckClearDate
751
     * @return \PayPal\StructType\PaymentInfoType
752
     */
753
    public function setExpectedeCheckClearDate($expectedeCheckClearDate = null)
754
    {
755
        // validation for constraint: string
756
        if (!is_null($expectedeCheckClearDate) && !is_string($expectedeCheckClearDate)) {
0 ignored issues
show
introduced by
The condition is_string($expectedeCheckClearDate) is always true.
Loading history...
757
            throw new \InvalidArgumentException(sprintf('Invalid value %s, please provide a string, %s given', var_export($expectedeCheckClearDate, true), gettype($expectedeCheckClearDate)), __LINE__);
758
        }
759
        $this->ExpectedeCheckClearDate = $expectedeCheckClearDate;
760
        return $this;
761
    }
762
    /**
763
     * Get PaymentDate value
764
     * @return string|null
765
     */
766
    public function getPaymentDate()
767
    {
768
        return $this->PaymentDate;
769
    }
770
    /**
771
     * Set PaymentDate value
772
     * @param string $paymentDate
773
     * @return \PayPal\StructType\PaymentInfoType
774
     */
775
    public function setPaymentDate($paymentDate = null)
776
    {
777
        // validation for constraint: string
778
        if (!is_null($paymentDate) && !is_string($paymentDate)) {
0 ignored issues
show
introduced by
The condition is_string($paymentDate) is always true.
Loading history...
779
            throw new \InvalidArgumentException(sprintf('Invalid value %s, please provide a string, %s given', var_export($paymentDate, true), gettype($paymentDate)), __LINE__);
780
        }
781
        $this->PaymentDate = $paymentDate;
782
        return $this;
783
    }
784
    /**
785
     * Get GrossAmount value
786
     * @return \PayPal\StructType\BasicAmountType|null
787
     */
788
    public function getGrossAmount()
789
    {
790
        return $this->GrossAmount;
791
    }
792
    /**
793
     * Set GrossAmount value
794
     * @param \PayPal\StructType\BasicAmountType $grossAmount
795
     * @return \PayPal\StructType\PaymentInfoType
796
     */
797
    public function setGrossAmount(\PayPal\StructType\BasicAmountType $grossAmount = null)
798
    {
799
        $this->GrossAmount = $grossAmount;
800
        return $this;
801
    }
802
    /**
803
     * Get FeeAmount value
804
     * @return \PayPal\StructType\BasicAmountType|null
805
     */
806
    public function getFeeAmount()
807
    {
808
        return $this->FeeAmount;
809
    }
810
    /**
811
     * Set FeeAmount value
812
     * @param \PayPal\StructType\BasicAmountType $feeAmount
813
     * @return \PayPal\StructType\PaymentInfoType
814
     */
815
    public function setFeeAmount(\PayPal\StructType\BasicAmountType $feeAmount = null)
816
    {
817
        $this->FeeAmount = $feeAmount;
818
        return $this;
819
    }
820
    /**
821
     * Get SettlementFeeAmount value
822
     * @return \PayPal\StructType\BasicAmountType|null
823
     */
824
    public function getSettlementFeeAmount()
825
    {
826
        return $this->SettlementFeeAmount;
827
    }
828
    /**
829
     * Set SettlementFeeAmount value
830
     * @param \PayPal\StructType\BasicAmountType $settlementFeeAmount
831
     * @return \PayPal\StructType\PaymentInfoType
832
     */
833
    public function setSettlementFeeAmount(\PayPal\StructType\BasicAmountType $settlementFeeAmount = null)
834
    {
835
        $this->SettlementFeeAmount = $settlementFeeAmount;
836
        return $this;
837
    }
838
    /**
839
     * Get FinancingFeeAmount value
840
     * @return \PayPal\StructType\BasicAmountType|null
841
     */
842
    public function getFinancingFeeAmount()
843
    {
844
        return $this->FinancingFeeAmount;
845
    }
846
    /**
847
     * Set FinancingFeeAmount value
848
     * @param \PayPal\StructType\BasicAmountType $financingFeeAmount
849
     * @return \PayPal\StructType\PaymentInfoType
850
     */
851
    public function setFinancingFeeAmount(\PayPal\StructType\BasicAmountType $financingFeeAmount = null)
852
    {
853
        $this->FinancingFeeAmount = $financingFeeAmount;
854
        return $this;
855
    }
856
    /**
857
     * Get FinancingTotalCost value
858
     * @return \PayPal\StructType\BasicAmountType|null
859
     */
860
    public function getFinancingTotalCost()
861
    {
862
        return $this->FinancingTotalCost;
863
    }
864
    /**
865
     * Set FinancingTotalCost value
866
     * @param \PayPal\StructType\BasicAmountType $financingTotalCost
867
     * @return \PayPal\StructType\PaymentInfoType
868
     */
869
    public function setFinancingTotalCost(\PayPal\StructType\BasicAmountType $financingTotalCost = null)
870
    {
871
        $this->FinancingTotalCost = $financingTotalCost;
872
        return $this;
873
    }
874
    /**
875
     * Get FinancingMonthlyPayment value
876
     * @return \PayPal\StructType\BasicAmountType|null
877
     */
878
    public function getFinancingMonthlyPayment()
879
    {
880
        return $this->FinancingMonthlyPayment;
881
    }
882
    /**
883
     * Set FinancingMonthlyPayment value
884
     * @param \PayPal\StructType\BasicAmountType $financingMonthlyPayment
885
     * @return \PayPal\StructType\PaymentInfoType
886
     */
887
    public function setFinancingMonthlyPayment(\PayPal\StructType\BasicAmountType $financingMonthlyPayment = null)
888
    {
889
        $this->FinancingMonthlyPayment = $financingMonthlyPayment;
890
        return $this;
891
    }
892
    /**
893
     * Get FinancingTerm value
894
     * @return string|null
895
     */
896
    public function getFinancingTerm()
897
    {
898
        return $this->FinancingTerm;
899
    }
900
    /**
901
     * Set FinancingTerm value
902
     * @param string $financingTerm
903
     * @return \PayPal\StructType\PaymentInfoType
904
     */
905
    public function setFinancingTerm($financingTerm = null)
906
    {
907
        // validation for constraint: string
908
        if (!is_null($financingTerm) && !is_string($financingTerm)) {
0 ignored issues
show
introduced by
The condition is_string($financingTerm) is always true.
Loading history...
909
            throw new \InvalidArgumentException(sprintf('Invalid value %s, please provide a string, %s given', var_export($financingTerm, true), gettype($financingTerm)), __LINE__);
910
        }
911
        $this->FinancingTerm = $financingTerm;
912
        return $this;
913
    }
914
    /**
915
     * Get IsFinancing value
916
     * @return string|null
917
     */
918
    public function getIsFinancing()
919
    {
920
        return $this->IsFinancing;
921
    }
922
    /**
923
     * Set IsFinancing value
924
     * @param string $isFinancing
925
     * @return \PayPal\StructType\PaymentInfoType
926
     */
927
    public function setIsFinancing($isFinancing = null)
928
    {
929
        // validation for constraint: string
930
        if (!is_null($isFinancing) && !is_string($isFinancing)) {
0 ignored issues
show
introduced by
The condition is_string($isFinancing) is always true.
Loading history...
931
            throw new \InvalidArgumentException(sprintf('Invalid value %s, please provide a string, %s given', var_export($isFinancing, true), gettype($isFinancing)), __LINE__);
932
        }
933
        $this->IsFinancing = $isFinancing;
934
        return $this;
935
    }
936
    /**
937
     * Get FinancingDiscountAmount value
938
     * @return \PayPal\StructType\BasicAmountType|null
939
     */
940
    public function getFinancingDiscountAmount()
941
    {
942
        return $this->FinancingDiscountAmount;
943
    }
944
    /**
945
     * Set FinancingDiscountAmount value
946
     * @param \PayPal\StructType\BasicAmountType $financingDiscountAmount
947
     * @return \PayPal\StructType\PaymentInfoType
948
     */
949
    public function setFinancingDiscountAmount(\PayPal\StructType\BasicAmountType $financingDiscountAmount = null)
950
    {
951
        $this->FinancingDiscountAmount = $financingDiscountAmount;
952
        return $this;
953
    }
954
    /**
955
     * Get RegularTakeFeeAmount value
956
     * @return \PayPal\StructType\BasicAmountType|null
957
     */
958
    public function getRegularTakeFeeAmount()
959
    {
960
        return $this->RegularTakeFeeAmount;
961
    }
962
    /**
963
     * Set RegularTakeFeeAmount value
964
     * @param \PayPal\StructType\BasicAmountType $regularTakeFeeAmount
965
     * @return \PayPal\StructType\PaymentInfoType
966
     */
967
    public function setRegularTakeFeeAmount(\PayPal\StructType\BasicAmountType $regularTakeFeeAmount = null)
968
    {
969
        $this->RegularTakeFeeAmount = $regularTakeFeeAmount;
970
        return $this;
971
    }
972
    /**
973
     * Get SettleAmount value
974
     * @return \PayPal\StructType\BasicAmountType|null
975
     */
976
    public function getSettleAmount()
977
    {
978
        return $this->SettleAmount;
979
    }
980
    /**
981
     * Set SettleAmount value
982
     * @param \PayPal\StructType\BasicAmountType $settleAmount
983
     * @return \PayPal\StructType\PaymentInfoType
984
     */
985
    public function setSettleAmount(\PayPal\StructType\BasicAmountType $settleAmount = null)
986
    {
987
        $this->SettleAmount = $settleAmount;
988
        return $this;
989
    }
990
    /**
991
     * Get TaxAmount value
992
     * @return \PayPal\StructType\BasicAmountType|null
993
     */
994
    public function getTaxAmount()
995
    {
996
        return $this->TaxAmount;
997
    }
998
    /**
999
     * Set TaxAmount value
1000
     * @param \PayPal\StructType\BasicAmountType $taxAmount
1001
     * @return \PayPal\StructType\PaymentInfoType
1002
     */
1003
    public function setTaxAmount(\PayPal\StructType\BasicAmountType $taxAmount = null)
1004
    {
1005
        $this->TaxAmount = $taxAmount;
1006
        return $this;
1007
    }
1008
    /**
1009
     * Get ExchangeRate value
1010
     * @return string|null
1011
     */
1012
    public function getExchangeRate()
1013
    {
1014
        return $this->ExchangeRate;
1015
    }
1016
    /**
1017
     * Set ExchangeRate value
1018
     * @param string $exchangeRate
1019
     * @return \PayPal\StructType\PaymentInfoType
1020
     */
1021
    public function setExchangeRate($exchangeRate = null)
1022
    {
1023
        // validation for constraint: string
1024
        if (!is_null($exchangeRate) && !is_string($exchangeRate)) {
0 ignored issues
show
introduced by
The condition is_string($exchangeRate) is always true.
Loading history...
1025
            throw new \InvalidArgumentException(sprintf('Invalid value %s, please provide a string, %s given', var_export($exchangeRate, true), gettype($exchangeRate)), __LINE__);
1026
        }
1027
        $this->ExchangeRate = $exchangeRate;
1028
        return $this;
1029
    }
1030
    /**
1031
     * Get PaymentStatus value
1032
     * @return string|null
1033
     */
1034
    public function getPaymentStatus()
1035
    {
1036
        return $this->PaymentStatus;
1037
    }
1038
    /**
1039
     * Set PaymentStatus value
1040
     * @uses \PayPal\EnumType\PaymentStatusCodeType::valueIsValid()
1041
     * @uses \PayPal\EnumType\PaymentStatusCodeType::getValidValues()
1042
     * @throws \InvalidArgumentException
1043
     * @param string $paymentStatus
1044
     * @return \PayPal\StructType\PaymentInfoType
1045
     */
1046
    public function setPaymentStatus($paymentStatus = null)
1047
    {
1048
        // validation for constraint: enumeration
1049
        if (!\PayPal\EnumType\PaymentStatusCodeType::valueIsValid($paymentStatus)) {
1050
            throw new \InvalidArgumentException(sprintf('Invalid value(s) %s, please use one of: %s from enumeration class \PayPal\EnumType\PaymentStatusCodeType', is_array($paymentStatus) ? implode(', ', $paymentStatus) : var_export($paymentStatus, true), implode(', ', \PayPal\EnumType\PaymentStatusCodeType::getValidValues())), __LINE__);
0 ignored issues
show
introduced by
The condition is_array($paymentStatus) is always false.
Loading history...
1051
        }
1052
        $this->PaymentStatus = $paymentStatus;
1053
        return $this;
1054
    }
1055
    /**
1056
     * Get PendingReason value
1057
     * @return string|null
1058
     */
1059
    public function getPendingReason()
1060
    {
1061
        return $this->PendingReason;
1062
    }
1063
    /**
1064
     * Set PendingReason value
1065
     * @uses \PayPal\EnumType\PendingStatusCodeType::valueIsValid()
1066
     * @uses \PayPal\EnumType\PendingStatusCodeType::getValidValues()
1067
     * @throws \InvalidArgumentException
1068
     * @param string $pendingReason
1069
     * @return \PayPal\StructType\PaymentInfoType
1070
     */
1071
    public function setPendingReason($pendingReason = null)
1072
    {
1073
        // validation for constraint: enumeration
1074
        if (!\PayPal\EnumType\PendingStatusCodeType::valueIsValid($pendingReason)) {
1075
            throw new \InvalidArgumentException(sprintf('Invalid value(s) %s, please use one of: %s from enumeration class \PayPal\EnumType\PendingStatusCodeType', is_array($pendingReason) ? implode(', ', $pendingReason) : var_export($pendingReason, true), implode(', ', \PayPal\EnumType\PendingStatusCodeType::getValidValues())), __LINE__);
0 ignored issues
show
introduced by
The condition is_array($pendingReason) is always false.
Loading history...
1076
        }
1077
        $this->PendingReason = $pendingReason;
1078
        return $this;
1079
    }
1080
    /**
1081
     * Get ReasonCode value
1082
     * @return string|null
1083
     */
1084
    public function getReasonCode()
1085
    {
1086
        return $this->ReasonCode;
1087
    }
1088
    /**
1089
     * Set ReasonCode value
1090
     * @uses \PayPal\EnumType\ReversalReasonCodeType::valueIsValid()
1091
     * @uses \PayPal\EnumType\ReversalReasonCodeType::getValidValues()
1092
     * @throws \InvalidArgumentException
1093
     * @param string $reasonCode
1094
     * @return \PayPal\StructType\PaymentInfoType
1095
     */
1096
    public function setReasonCode($reasonCode = null)
1097
    {
1098
        // validation for constraint: enumeration
1099
        if (!\PayPal\EnumType\ReversalReasonCodeType::valueIsValid($reasonCode)) {
1100
            throw new \InvalidArgumentException(sprintf('Invalid value(s) %s, please use one of: %s from enumeration class \PayPal\EnumType\ReversalReasonCodeType', is_array($reasonCode) ? implode(', ', $reasonCode) : var_export($reasonCode, true), implode(', ', \PayPal\EnumType\ReversalReasonCodeType::getValidValues())), __LINE__);
0 ignored issues
show
introduced by
The condition is_array($reasonCode) is always false.
Loading history...
1101
        }
1102
        $this->ReasonCode = $reasonCode;
1103
        return $this;
1104
    }
1105
    /**
1106
     * Get HoldDecision value
1107
     * @return string|null
1108
     */
1109
    public function getHoldDecision()
1110
    {
1111
        return $this->HoldDecision;
1112
    }
1113
    /**
1114
     * Set HoldDecision value
1115
     * @param string $holdDecision
1116
     * @return \PayPal\StructType\PaymentInfoType
1117
     */
1118
    public function setHoldDecision($holdDecision = null)
1119
    {
1120
        // validation for constraint: string
1121
        if (!is_null($holdDecision) && !is_string($holdDecision)) {
0 ignored issues
show
introduced by
The condition is_string($holdDecision) is always true.
Loading history...
1122
            throw new \InvalidArgumentException(sprintf('Invalid value %s, please provide a string, %s given', var_export($holdDecision, true), gettype($holdDecision)), __LINE__);
1123
        }
1124
        $this->HoldDecision = $holdDecision;
1125
        return $this;
1126
    }
1127
    /**
1128
     * Get ShippingMethod value
1129
     * @return string|null
1130
     */
1131
    public function getShippingMethod()
1132
    {
1133
        return $this->ShippingMethod;
1134
    }
1135
    /**
1136
     * Set ShippingMethod value
1137
     * @param string $shippingMethod
1138
     * @return \PayPal\StructType\PaymentInfoType
1139
     */
1140
    public function setShippingMethod($shippingMethod = null)
1141
    {
1142
        // validation for constraint: string
1143
        if (!is_null($shippingMethod) && !is_string($shippingMethod)) {
0 ignored issues
show
introduced by
The condition is_string($shippingMethod) is always true.
Loading history...
1144
            throw new \InvalidArgumentException(sprintf('Invalid value %s, please provide a string, %s given', var_export($shippingMethod, true), gettype($shippingMethod)), __LINE__);
1145
        }
1146
        $this->ShippingMethod = $shippingMethod;
1147
        return $this;
1148
    }
1149
    /**
1150
     * Get ProtectionEligibility value
1151
     * @return string|null
1152
     */
1153
    public function getProtectionEligibility()
1154
    {
1155
        return $this->ProtectionEligibility;
1156
    }
1157
    /**
1158
     * Set ProtectionEligibility value
1159
     * @param string $protectionEligibility
1160
     * @return \PayPal\StructType\PaymentInfoType
1161
     */
1162
    public function setProtectionEligibility($protectionEligibility = null)
1163
    {
1164
        // validation for constraint: string
1165
        if (!is_null($protectionEligibility) && !is_string($protectionEligibility)) {
0 ignored issues
show
introduced by
The condition is_string($protectionEligibility) is always true.
Loading history...
1166
            throw new \InvalidArgumentException(sprintf('Invalid value %s, please provide a string, %s given', var_export($protectionEligibility, true), gettype($protectionEligibility)), __LINE__);
1167
        }
1168
        $this->ProtectionEligibility = $protectionEligibility;
1169
        return $this;
1170
    }
1171
    /**
1172
     * Get ProtectionEligibilityType value
1173
     * @return string|null
1174
     */
1175
    public function getProtectionEligibilityType()
1176
    {
1177
        return $this->ProtectionEligibilityType;
1178
    }
1179
    /**
1180
     * Set ProtectionEligibilityType value
1181
     * @param string $protectionEligibilityType
1182
     * @return \PayPal\StructType\PaymentInfoType
1183
     */
1184
    public function setProtectionEligibilityType($protectionEligibilityType = null)
1185
    {
1186
        // validation for constraint: string
1187
        if (!is_null($protectionEligibilityType) && !is_string($protectionEligibilityType)) {
0 ignored issues
show
introduced by
The condition is_string($protectionEligibilityType) is always true.
Loading history...
1188
            throw new \InvalidArgumentException(sprintf('Invalid value %s, please provide a string, %s given', var_export($protectionEligibilityType, true), gettype($protectionEligibilityType)), __LINE__);
1189
        }
1190
        $this->ProtectionEligibilityType = $protectionEligibilityType;
1191
        return $this;
1192
    }
1193
    /**
1194
     * Get ReceiptReferenceNumber value
1195
     * @return string|null
1196
     */
1197
    public function getReceiptReferenceNumber()
1198
    {
1199
        return $this->ReceiptReferenceNumber;
1200
    }
1201
    /**
1202
     * Set ReceiptReferenceNumber value
1203
     * @param string $receiptReferenceNumber
1204
     * @return \PayPal\StructType\PaymentInfoType
1205
     */
1206
    public function setReceiptReferenceNumber($receiptReferenceNumber = null)
1207
    {
1208
        // validation for constraint: string
1209
        if (!is_null($receiptReferenceNumber) && !is_string($receiptReferenceNumber)) {
0 ignored issues
show
introduced by
The condition is_string($receiptReferenceNumber) is always true.
Loading history...
1210
            throw new \InvalidArgumentException(sprintf('Invalid value %s, please provide a string, %s given', var_export($receiptReferenceNumber, true), gettype($receiptReferenceNumber)), __LINE__);
1211
        }
1212
        $this->ReceiptReferenceNumber = $receiptReferenceNumber;
1213
        return $this;
1214
    }
1215
    /**
1216
     * Get POSTransactionType value
1217
     * @return string|null
1218
     */
1219
    public function getPOSTransactionType()
1220
    {
1221
        return $this->POSTransactionType;
1222
    }
1223
    /**
1224
     * Set POSTransactionType value
1225
     * @uses \PayPal\EnumType\POSTransactionCodeType::valueIsValid()
1226
     * @uses \PayPal\EnumType\POSTransactionCodeType::getValidValues()
1227
     * @throws \InvalidArgumentException
1228
     * @param string $pOSTransactionType
1229
     * @return \PayPal\StructType\PaymentInfoType
1230
     */
1231
    public function setPOSTransactionType($pOSTransactionType = null)
1232
    {
1233
        // validation for constraint: enumeration
1234
        if (!\PayPal\EnumType\POSTransactionCodeType::valueIsValid($pOSTransactionType)) {
1235
            throw new \InvalidArgumentException(sprintf('Invalid value(s) %s, please use one of: %s from enumeration class \PayPal\EnumType\POSTransactionCodeType', is_array($pOSTransactionType) ? implode(', ', $pOSTransactionType) : var_export($pOSTransactionType, true), implode(', ', \PayPal\EnumType\POSTransactionCodeType::getValidValues())), __LINE__);
0 ignored issues
show
introduced by
The condition is_array($pOSTransactionType) is always false.
Loading history...
1236
        }
1237
        $this->POSTransactionType = $pOSTransactionType;
1238
        return $this;
1239
    }
1240
    /**
1241
     * Get ShipAmount value
1242
     * @return string|null
1243
     */
1244
    public function getShipAmount()
1245
    {
1246
        return $this->ShipAmount;
1247
    }
1248
    /**
1249
     * Set ShipAmount value
1250
     * @param string $shipAmount
1251
     * @return \PayPal\StructType\PaymentInfoType
1252
     */
1253
    public function setShipAmount($shipAmount = null)
1254
    {
1255
        // validation for constraint: string
1256
        if (!is_null($shipAmount) && !is_string($shipAmount)) {
0 ignored issues
show
introduced by
The condition is_string($shipAmount) is always true.
Loading history...
1257
            throw new \InvalidArgumentException(sprintf('Invalid value %s, please provide a string, %s given', var_export($shipAmount, true), gettype($shipAmount)), __LINE__);
1258
        }
1259
        $this->ShipAmount = $shipAmount;
1260
        return $this;
1261
    }
1262
    /**
1263
     * Get ShipHandleAmount value
1264
     * @return string|null
1265
     */
1266
    public function getShipHandleAmount()
1267
    {
1268
        return $this->ShipHandleAmount;
1269
    }
1270
    /**
1271
     * Set ShipHandleAmount value
1272
     * @param string $shipHandleAmount
1273
     * @return \PayPal\StructType\PaymentInfoType
1274
     */
1275
    public function setShipHandleAmount($shipHandleAmount = null)
1276
    {
1277
        // validation for constraint: string
1278
        if (!is_null($shipHandleAmount) && !is_string($shipHandleAmount)) {
0 ignored issues
show
introduced by
The condition is_string($shipHandleAmount) is always true.
Loading history...
1279
            throw new \InvalidArgumentException(sprintf('Invalid value %s, please provide a string, %s given', var_export($shipHandleAmount, true), gettype($shipHandleAmount)), __LINE__);
1280
        }
1281
        $this->ShipHandleAmount = $shipHandleAmount;
1282
        return $this;
1283
    }
1284
    /**
1285
     * Get ShipDiscount value
1286
     * @return string|null
1287
     */
1288
    public function getShipDiscount()
1289
    {
1290
        return $this->ShipDiscount;
1291
    }
1292
    /**
1293
     * Set ShipDiscount value
1294
     * @param string $shipDiscount
1295
     * @return \PayPal\StructType\PaymentInfoType
1296
     */
1297
    public function setShipDiscount($shipDiscount = null)
1298
    {
1299
        // validation for constraint: string
1300
        if (!is_null($shipDiscount) && !is_string($shipDiscount)) {
0 ignored issues
show
introduced by
The condition is_string($shipDiscount) is always true.
Loading history...
1301
            throw new \InvalidArgumentException(sprintf('Invalid value %s, please provide a string, %s given', var_export($shipDiscount, true), gettype($shipDiscount)), __LINE__);
1302
        }
1303
        $this->ShipDiscount = $shipDiscount;
1304
        return $this;
1305
    }
1306
    /**
1307
     * Get InsuranceAmount value
1308
     * @return string|null
1309
     */
1310
    public function getInsuranceAmount()
1311
    {
1312
        return $this->InsuranceAmount;
1313
    }
1314
    /**
1315
     * Set InsuranceAmount value
1316
     * @param string $insuranceAmount
1317
     * @return \PayPal\StructType\PaymentInfoType
1318
     */
1319
    public function setInsuranceAmount($insuranceAmount = null)
1320
    {
1321
        // validation for constraint: string
1322
        if (!is_null($insuranceAmount) && !is_string($insuranceAmount)) {
0 ignored issues
show
introduced by
The condition is_string($insuranceAmount) is always true.
Loading history...
1323
            throw new \InvalidArgumentException(sprintf('Invalid value %s, please provide a string, %s given', var_export($insuranceAmount, true), gettype($insuranceAmount)), __LINE__);
1324
        }
1325
        $this->InsuranceAmount = $insuranceAmount;
1326
        return $this;
1327
    }
1328
    /**
1329
     * Get Subject value
1330
     * @return string|null
1331
     */
1332
    public function getSubject()
1333
    {
1334
        return $this->Subject;
1335
    }
1336
    /**
1337
     * Set Subject value
1338
     * @param string $subject
1339
     * @return \PayPal\StructType\PaymentInfoType
1340
     */
1341
    public function setSubject($subject = null)
1342
    {
1343
        // validation for constraint: string
1344
        if (!is_null($subject) && !is_string($subject)) {
0 ignored issues
show
introduced by
The condition is_string($subject) is always true.
Loading history...
1345
            throw new \InvalidArgumentException(sprintf('Invalid value %s, please provide a string, %s given', var_export($subject, true), gettype($subject)), __LINE__);
1346
        }
1347
        $this->Subject = $subject;
1348
        return $this;
1349
    }
1350
    /**
1351
     * Get StoreID value
1352
     * @return string|null
1353
     */
1354
    public function getStoreID()
1355
    {
1356
        return $this->StoreID;
1357
    }
1358
    /**
1359
     * Set StoreID value
1360
     * @param string $storeID
1361
     * @return \PayPal\StructType\PaymentInfoType
1362
     */
1363
    public function setStoreID($storeID = null)
1364
    {
1365
        // validation for constraint: string
1366
        if (!is_null($storeID) && !is_string($storeID)) {
0 ignored issues
show
introduced by
The condition is_string($storeID) is always true.
Loading history...
1367
            throw new \InvalidArgumentException(sprintf('Invalid value %s, please provide a string, %s given', var_export($storeID, true), gettype($storeID)), __LINE__);
1368
        }
1369
        $this->StoreID = $storeID;
1370
        return $this;
1371
    }
1372
    /**
1373
     * Get TerminalID value
1374
     * @return string|null
1375
     */
1376
    public function getTerminalID()
1377
    {
1378
        return $this->TerminalID;
1379
    }
1380
    /**
1381
     * Set TerminalID value
1382
     * @param string $terminalID
1383
     * @return \PayPal\StructType\PaymentInfoType
1384
     */
1385
    public function setTerminalID($terminalID = null)
1386
    {
1387
        // validation for constraint: string
1388
        if (!is_null($terminalID) && !is_string($terminalID)) {
0 ignored issues
show
introduced by
The condition is_string($terminalID) is always true.
Loading history...
1389
            throw new \InvalidArgumentException(sprintf('Invalid value %s, please provide a string, %s given', var_export($terminalID, true), gettype($terminalID)), __LINE__);
1390
        }
1391
        $this->TerminalID = $terminalID;
1392
        return $this;
1393
    }
1394
    /**
1395
     * Get SellerDetails value
1396
     * @return \PayPal\StructType\SellerDetailsType|null
1397
     */
1398
    public function getSellerDetails()
1399
    {
1400
        return $this->SellerDetails;
1401
    }
1402
    /**
1403
     * Set SellerDetails value
1404
     * @param \PayPal\StructType\SellerDetailsType $sellerDetails
1405
     * @return \PayPal\StructType\PaymentInfoType
1406
     */
1407
    public function setSellerDetails(\PayPal\StructType\SellerDetailsType $sellerDetails = null)
1408
    {
1409
        $this->SellerDetails = $sellerDetails;
1410
        return $this;
1411
    }
1412
    /**
1413
     * Get PaymentRequestID value
1414
     * @return string|null
1415
     */
1416
    public function getPaymentRequestID()
1417
    {
1418
        return $this->PaymentRequestID;
1419
    }
1420
    /**
1421
     * Set PaymentRequestID value
1422
     * @param string $paymentRequestID
1423
     * @return \PayPal\StructType\PaymentInfoType
1424
     */
1425
    public function setPaymentRequestID($paymentRequestID = null)
1426
    {
1427
        // validation for constraint: string
1428
        if (!is_null($paymentRequestID) && !is_string($paymentRequestID)) {
0 ignored issues
show
introduced by
The condition is_string($paymentRequestID) is always true.
Loading history...
1429
            throw new \InvalidArgumentException(sprintf('Invalid value %s, please provide a string, %s given', var_export($paymentRequestID, true), gettype($paymentRequestID)), __LINE__);
1430
        }
1431
        $this->PaymentRequestID = $paymentRequestID;
1432
        return $this;
1433
    }
1434
    /**
1435
     * Get FMFDetails value
1436
     * @return \PayPal\StructType\FMFDetailsType|null
1437
     */
1438
    public function getFMFDetails()
1439
    {
1440
        return $this->FMFDetails;
1441
    }
1442
    /**
1443
     * Set FMFDetails value
1444
     * @param \PayPal\StructType\FMFDetailsType $fMFDetails
1445
     * @return \PayPal\StructType\PaymentInfoType
1446
     */
1447
    public function setFMFDetails(\PayPal\StructType\FMFDetailsType $fMFDetails = null)
1448
    {
1449
        $this->FMFDetails = $fMFDetails;
1450
        return $this;
1451
    }
1452
    /**
1453
     * Get EnhancedPaymentInfo value
1454
     * @return \PayPal\StructType\EnhancedPaymentInfoType|null
1455
     */
1456
    public function getEnhancedPaymentInfo()
1457
    {
1458
        return $this->EnhancedPaymentInfo;
1459
    }
1460
    /**
1461
     * Set EnhancedPaymentInfo value
1462
     * @param \PayPal\StructType\EnhancedPaymentInfoType $enhancedPaymentInfo
1463
     * @return \PayPal\StructType\PaymentInfoType
1464
     */
1465
    public function setEnhancedPaymentInfo(\PayPal\StructType\EnhancedPaymentInfoType $enhancedPaymentInfo = null)
1466
    {
1467
        $this->EnhancedPaymentInfo = $enhancedPaymentInfo;
1468
        return $this;
1469
    }
1470
    /**
1471
     * Get PaymentError value
1472
     * @return \PayPal\StructType\ErrorType|null
1473
     */
1474
    public function getPaymentError()
1475
    {
1476
        return $this->PaymentError;
1477
    }
1478
    /**
1479
     * Set PaymentError value
1480
     * @param \PayPal\StructType\ErrorType $paymentError
1481
     * @return \PayPal\StructType\PaymentInfoType
1482
     */
1483
    public function setPaymentError(\PayPal\StructType\ErrorType $paymentError = null)
1484
    {
1485
        $this->PaymentError = $paymentError;
1486
        return $this;
1487
    }
1488
    /**
1489
     * Get InstrumentDetails value
1490
     * @return \PayPal\StructType\InstrumentDetailsType|null
1491
     */
1492
    public function getInstrumentDetails()
1493
    {
1494
        return $this->InstrumentDetails;
1495
    }
1496
    /**
1497
     * Set InstrumentDetails value
1498
     * @param \PayPal\StructType\InstrumentDetailsType $instrumentDetails
1499
     * @return \PayPal\StructType\PaymentInfoType
1500
     */
1501
    public function setInstrumentDetails(\PayPal\StructType\InstrumentDetailsType $instrumentDetails = null)
1502
    {
1503
        $this->InstrumentDetails = $instrumentDetails;
1504
        return $this;
1505
    }
1506
    /**
1507
     * Get OfferDetails value
1508
     * @return \PayPal\StructType\OfferDetailsType|null
1509
     */
1510
    public function getOfferDetails()
1511
    {
1512
        return $this->OfferDetails;
1513
    }
1514
    /**
1515
     * Set OfferDetails value
1516
     * @param \PayPal\StructType\OfferDetailsType $offerDetails
1517
     * @return \PayPal\StructType\PaymentInfoType
1518
     */
1519
    public function setOfferDetails(\PayPal\StructType\OfferDetailsType $offerDetails = null)
1520
    {
1521
        $this->OfferDetails = $offerDetails;
1522
        return $this;
1523
    }
1524
    /**
1525
     * Get BinEligibility value
1526
     * @return string|null
1527
     */
1528
    public function getBinEligibility()
1529
    {
1530
        return $this->BinEligibility;
1531
    }
1532
    /**
1533
     * Set BinEligibility value
1534
     * @param string $binEligibility
1535
     * @return \PayPal\StructType\PaymentInfoType
1536
     */
1537
    public function setBinEligibility($binEligibility = null)
1538
    {
1539
        // validation for constraint: string
1540
        if (!is_null($binEligibility) && !is_string($binEligibility)) {
0 ignored issues
show
introduced by
The condition is_string($binEligibility) is always true.
Loading history...
1541
            throw new \InvalidArgumentException(sprintf('Invalid value %s, please provide a string, %s given', var_export($binEligibility, true), gettype($binEligibility)), __LINE__);
1542
        }
1543
        $this->BinEligibility = $binEligibility;
1544
        return $this;
1545
    }
1546
    /**
1547
     * Get SoftDescriptor value
1548
     * @return string|null
1549
     */
1550
    public function getSoftDescriptor()
1551
    {
1552
        return $this->SoftDescriptor;
1553
    }
1554
    /**
1555
     * Set SoftDescriptor value
1556
     * @param string $softDescriptor
1557
     * @return \PayPal\StructType\PaymentInfoType
1558
     */
1559
    public function setSoftDescriptor($softDescriptor = null)
1560
    {
1561
        // validation for constraint: string
1562
        if (!is_null($softDescriptor) && !is_string($softDescriptor)) {
0 ignored issues
show
introduced by
The condition is_string($softDescriptor) is always true.
Loading history...
1563
            throw new \InvalidArgumentException(sprintf('Invalid value %s, please provide a string, %s given', var_export($softDescriptor, true), gettype($softDescriptor)), __LINE__);
1564
        }
1565
        $this->SoftDescriptor = $softDescriptor;
1566
        return $this;
1567
    }
1568
    /**
1569
     * Get SoftDescriptorCity value
1570
     * @return string|null
1571
     */
1572
    public function getSoftDescriptorCity()
1573
    {
1574
        return $this->SoftDescriptorCity;
1575
    }
1576
    /**
1577
     * Set SoftDescriptorCity value
1578
     * @param string $softDescriptorCity
1579
     * @return \PayPal\StructType\PaymentInfoType
1580
     */
1581
    public function setSoftDescriptorCity($softDescriptorCity = null)
1582
    {
1583
        // validation for constraint: string
1584
        if (!is_null($softDescriptorCity) && !is_string($softDescriptorCity)) {
0 ignored issues
show
introduced by
The condition is_string($softDescriptorCity) is always true.
Loading history...
1585
            throw new \InvalidArgumentException(sprintf('Invalid value %s, please provide a string, %s given', var_export($softDescriptorCity, true), gettype($softDescriptorCity)), __LINE__);
1586
        }
1587
        $this->SoftDescriptorCity = $softDescriptorCity;
1588
        return $this;
1589
    }
1590
}
1591