/// <summary> /// Initializes a new instance of the <see cref="PaymentDeviceSaleTransactionAllOf" /> class. /// </summary> /// <param name="paymentMethod">paymentMethod (required).</param> /// <param name="createToken">createToken.</param> /// <param name="storedCredentials">storedCredentials.</param> public PaymentDeviceSaleTransactionAllOf(PaymentDevicePaymentMethod paymentMethod = default(PaymentDevicePaymentMethod), CreatePaymentToken createToken = default(CreatePaymentToken), StoredCredential storedCredentials = default(StoredCredential)) { // to ensure "paymentMethod" is required (not null) this.PaymentMethod = paymentMethod ?? throw new ArgumentNullException("paymentMethod is a required property for PaymentDeviceSaleTransactionAllOf and cannot be null"); this.CreateToken = createToken; this.StoredCredentials = storedCredentials; }
/// <summary> /// Initializes a new instance of the <see cref="PaymentDeviceSaleTransaction" /> class. /// </summary> /// <param name="paymentMethod">paymentMethod (required).</param> /// <param name="createToken">createToken.</param> /// <param name="storedCredentials">storedCredentials.</param> /// <param name="requestType">Object name of the primary transaction request. (required).</param> /// <param name="transactionAmount">transactionAmount (required).</param> /// <param name="storeId">An optional outlet ID for clients that support multiple stores in the same app..</param> /// <param name="merchantTransactionId">The unique merchant transaction ID from the request header, if supplied..</param> /// <param name="transactionOrigin">transactionOrigin.</param> /// <param name="order">order.</param> public PaymentDeviceSaleTransaction(PaymentDevicePaymentMethod paymentMethod = default(PaymentDevicePaymentMethod), CreatePaymentToken createToken = default(CreatePaymentToken), StoredCredential storedCredentials = default(StoredCredential), string requestType = default(string), Amount transactionAmount = default(Amount), string storeId = default(string), string merchantTransactionId = default(string), TransactionOrigin?transactionOrigin = null, Order order = default(Order)) : base(requestType, transactionAmount, storeId, merchantTransactionId, transactionOrigin, order) { // to ensure "paymentMethod" is required (not null) this.PaymentMethod = paymentMethod ?? throw new ArgumentNullException("paymentMethod is a required property for PaymentDeviceSaleTransaction and cannot be null"); this.CreateToken = createToken; this.StoredCredentials = storedCredentials; }
/// <summary> /// Initializes a new instance of the <see cref="PaymentDeviceDisbursementTransaction" /> class. /// </summary> /// <param name="paymentMethod">paymentMethod (required).</param> /// <param name="disbursement">disbursement (required).</param> /// <param name="requestType">Object name of the primary transaction request. (required) (default to "PaymentDeviceDisbursementTransaction").</param> /// <param name="transactionAmount">transactionAmount (required).</param> /// <param name="storeId">An optional outlet ID for clients that support multiple stores in the same app..</param> /// <param name="merchantTransactionId">The unique merchant transaction ID from the request header, if supplied..</param> /// <param name="transactionOrigin">transactionOrigin.</param> /// <param name="order">order.</param> /// <param name="ipgTransactionId">The IPG transactionId to reference a payerauth for example..</param> /// <param name="allowPartialApproval">Indicates if the particular transaction is a partial approval transaction, if supplied..</param> public PaymentDeviceDisbursementTransaction(PaymentDevicePaymentMethod paymentMethod = default(PaymentDevicePaymentMethod), Disbursement disbursement = default(Disbursement), string requestType = "PaymentDeviceDisbursementTransaction", Amount transactionAmount = default(Amount), string storeId = default(string), string merchantTransactionId = default(string), TransactionOrigin?transactionOrigin = default(TransactionOrigin?), Order order = default(Order), long?ipgTransactionId = default(long?), bool allowPartialApproval = default(bool)) : base(requestType, transactionAmount, storeId, merchantTransactionId, transactionOrigin, order, ipgTransactionId, allowPartialApproval) { // to ensure "paymentMethod" is required (not null) this.PaymentMethod = paymentMethod ?? throw new ArgumentNullException("paymentMethod is a required property for PaymentDeviceDisbursementTransaction and cannot be null"); // to ensure "disbursement" is required (not null) this.Disbursement = disbursement ?? throw new ArgumentNullException("disbursement is a required property for PaymentDeviceDisbursementTransaction and cannot be null"); }
/// <summary> /// Initializes a new instance of the <see cref="PaymentDeviceDisbursementTransactionAllOf" /> class. /// </summary> /// <param name="paymentMethod">paymentMethod (required).</param> /// <param name="disbursement">disbursement (required).</param> public PaymentDeviceDisbursementTransactionAllOf(PaymentDevicePaymentMethod paymentMethod = default(PaymentDevicePaymentMethod), Disbursement disbursement = default(Disbursement)) { // to ensure "paymentMethod" is required (not null) this.PaymentMethod = paymentMethod ?? throw new ArgumentNullException("paymentMethod is a required property for PaymentDeviceDisbursementTransactionAllOf and cannot be null"); // to ensure "disbursement" is required (not null) this.Disbursement = disbursement ?? throw new ArgumentNullException("disbursement is a required property for PaymentDeviceDisbursementTransactionAllOf and cannot be null"); }
/// <summary> /// Initializes a new instance of the <see cref="PaymentDevicePreAuthTransaction" /> class. /// </summary> /// <param name="paymentMethod">paymentMethod (required).</param> /// <param name="createToken">createToken.</param> /// <param name="settlementSplit">Settle with multiple sub-merchants, sale and preAuth only..</param> /// <param name="storedCredentials">storedCredentials.</param> /// <param name="splitShipment">splitShipment.</param> /// <param name="decrementalFlag">This flag can only be used in a preAuth transaction that updates the amount of a previous preAuth transaction to either increase the preAuth amount (DecrementalPreAuthFlag = false) or decrease the preAuth amount (DecrementalPreAuthFlag = true). (default to false).</param> /// <param name="requestType">Object name of the primary transaction request. (required).</param> /// <param name="transactionAmount">transactionAmount (required).</param> /// <param name="storeId">An optional outlet ID for clients that support multiple stores in the same app..</param> /// <param name="merchantTransactionId">The unique merchant transaction ID from the request header, if supplied..</param> /// <param name="transactionOrigin">transactionOrigin.</param> /// <param name="order">order.</param> public PaymentDevicePreAuthTransaction(PaymentDevicePaymentMethod paymentMethod = default(PaymentDevicePaymentMethod), CreatePaymentToken createToken = default(CreatePaymentToken), List <SubMerchantSplit> settlementSplit = default(List <SubMerchantSplit>), StoredCredential storedCredentials = default(StoredCredential), SplitShipment splitShipment = default(SplitShipment), bool decrementalFlag = false, string requestType = default(string), Amount transactionAmount = default(Amount), string storeId = default(string), string merchantTransactionId = default(string), TransactionOrigin?transactionOrigin = null, Order order = default(Order)) : base(requestType, transactionAmount, storeId, merchantTransactionId, transactionOrigin, order) { // to ensure "paymentMethod" is required (not null) this.PaymentMethod = paymentMethod ?? throw new ArgumentNullException("paymentMethod is a required property for PaymentDevicePreAuthTransaction and cannot be null"); this.CreateToken = createToken; this.SettlementSplit = settlementSplit; this.StoredCredentials = storedCredentials; this.SplitShipment = splitShipment; this.DecrementalFlag = decrementalFlag; }
/// <summary> /// Initializes a new instance of the <see cref="PaymentDevicePreAuthTransactionAllOf" /> class. /// </summary> /// <param name="paymentMethod">paymentMethod (required).</param> /// <param name="createToken">createToken.</param> /// <param name="settlementSplit">Settle with multiple sub-merchants, sale and preAuth only..</param> /// <param name="storedCredentials">storedCredentials.</param> /// <param name="splitShipment">splitShipment.</param> /// <param name="decrementalFlag">This flag can only be used in a preAuth transaction that updates the amount of a previous preAuth transaction to either increase the preAuth amount (DecrementalPreAuthFlag = false) or decrease the preAuth amount (DecrementalPreAuthFlag = true). (default to false).</param> public PaymentDevicePreAuthTransactionAllOf(PaymentDevicePaymentMethod paymentMethod = default(PaymentDevicePaymentMethod), CreatePaymentToken createToken = default(CreatePaymentToken), List <SubMerchantSplit> settlementSplit = default(List <SubMerchantSplit>), StoredCredential storedCredentials = default(StoredCredential), SplitShipment splitShipment = default(SplitShipment), bool decrementalFlag = false) { // to ensure "paymentMethod" is required (not null) this.PaymentMethod = paymentMethod ?? throw new ArgumentNullException("paymentMethod is a required property for PaymentDevicePreAuthTransactionAllOf and cannot be null"); this.CreateToken = createToken; this.SettlementSplit = settlementSplit; this.StoredCredentials = storedCredentials; this.SplitShipment = splitShipment; this.DecrementalFlag = decrementalFlag; }
/// <summary> /// Initializes a new instance of the <see cref="PaymentDeviceCreditTransactionAllOf" /> class. /// </summary> /// <param name="paymentMethod">paymentMethod (required).</param> public PaymentDeviceCreditTransactionAllOf(PaymentDevicePaymentMethod paymentMethod = default(PaymentDevicePaymentMethod)) { // to ensure "paymentMethod" is required (not null) this.PaymentMethod = paymentMethod ?? throw new ArgumentNullException("paymentMethod is a required property for PaymentDeviceCreditTransactionAllOf and cannot be null"); }