コード例 #1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="PaymentDevicePaymentMethod" /> class.
 /// </summary>
 /// <param name="paymentDevice">paymentDevice (required).</param>
 /// <param name="paymentFacilitator">paymentFacilitator.</param>
 public PaymentDevicePaymentMethod(PaymentDevice paymentDevice = default(PaymentDevice), PaymentFacilitator paymentFacilitator = default(PaymentFacilitator))
 {
     // to ensure "paymentDevice" is required (not null)
     this.PaymentDevice      = paymentDevice ?? throw new ArgumentNullException("paymentDevice is a required property for PaymentDevicePaymentMethod and cannot be null");
     this.PaymentFacilitator = paymentFacilitator;
 }
コード例 #2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="PaymentCardPaymentMethod" /> class.
 /// </summary>
 /// <param name="paymentCard">paymentCard (required).</param>
 /// <param name="paymentFacilitator">paymentFacilitator.</param>
 public PaymentCardPaymentMethod(PaymentCard paymentCard = default(PaymentCard), PaymentFacilitator paymentFacilitator = default(PaymentFacilitator))
 {
     // to ensure "paymentCard" is required (not null)
     this.PaymentCard        = paymentCard ?? throw new ArgumentNullException("paymentCard is a required property for PaymentCardPaymentMethod and cannot be null");
     this.PaymentFacilitator = paymentFacilitator;
 }
コード例 #3
0
 /// <summary>
 /// Initializes a new instance of the <see cref="WalletPreAuthTransactionAllOf" /> class.
 /// </summary>
 /// <param name="walletPaymentMethod">walletPaymentMethod (required).</param>
 /// <param name="splitShipment">splitShipment.</param>
 /// <param name="paymentFacilitator">paymentFacilitator.</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 &#x3D; false) or decrease the preAuth amount (DecrementalPreAuthFlag &#x3D; true). (default to false).</param>
 public WalletPreAuthTransactionAllOf(WalletPaymentMethod walletPaymentMethod = default(WalletPaymentMethod), SplitShipment splitShipment = default(SplitShipment), PaymentFacilitator paymentFacilitator = default(PaymentFacilitator), bool decrementalFlag = false)
 {
     // to ensure "walletPaymentMethod" is required (not null)
     this.WalletPaymentMethod = walletPaymentMethod ?? throw new ArgumentNullException("walletPaymentMethod is a required property for WalletPreAuthTransactionAllOf and cannot be null");
     this.SplitShipment       = splitShipment;
     this.PaymentFacilitator  = paymentFacilitator;
     this.DecrementalFlag     = decrementalFlag;
 }
コード例 #4
0
 /// <summary>
 /// Initializes a new instance of the <see cref="WalletPreAuthTransaction" /> class.
 /// </summary>
 /// <param name="walletPaymentMethod">walletPaymentMethod (required).</param>
 /// <param name="splitShipment">splitShipment.</param>
 /// <param name="paymentFacilitator">paymentFacilitator.</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 &#x3D; false) or decrease the preAuth amount (DecrementalPreAuthFlag &#x3D; 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 WalletPreAuthTransaction(WalletPaymentMethod walletPaymentMethod = default(WalletPaymentMethod), SplitShipment splitShipment = default(SplitShipment), PaymentFacilitator paymentFacilitator = default(PaymentFacilitator), 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 "walletPaymentMethod" is required (not null)
     this.WalletPaymentMethod = walletPaymentMethod ?? throw new ArgumentNullException("walletPaymentMethod is a required property for WalletPreAuthTransaction and cannot be null");
     this.SplitShipment       = splitShipment;
     this.PaymentFacilitator  = paymentFacilitator;
     this.DecrementalFlag     = decrementalFlag;
 }
コード例 #5
0
 /// <summary>
 /// Initializes a new instance of the <see cref="WalletSaleTransactionAllOf" /> class.
 /// </summary>
 /// <param name="walletPaymentMethod">walletPaymentMethod (required).</param>
 /// <param name="paymentFacilitator">paymentFacilitator.</param>
 public WalletSaleTransactionAllOf(WalletPaymentMethod walletPaymentMethod = default(WalletPaymentMethod), PaymentFacilitator paymentFacilitator = default(PaymentFacilitator))
 {
     // to ensure "walletPaymentMethod" is required (not null)
     this.WalletPaymentMethod = walletPaymentMethod ?? throw new ArgumentNullException("walletPaymentMethod is a required property for WalletSaleTransactionAllOf and cannot be null");
     this.PaymentFacilitator  = paymentFacilitator;
 }
コード例 #6
0
 /// <summary>
 /// Initializes a new instance of the <see cref="PaymentTokenPaymentMethod" /> class.
 /// </summary>
 /// <param name="paymentToken">paymentToken (required).</param>
 /// <param name="paymentFacilitator">paymentFacilitator.</param>
 public PaymentTokenPaymentMethod(UsePaymentToken paymentToken = default(UsePaymentToken), PaymentFacilitator paymentFacilitator = default(PaymentFacilitator))
 {
     // to ensure "paymentToken" is required (not null)
     this.PaymentToken       = paymentToken ?? throw new ArgumentNullException("paymentToken is a required property for PaymentTokenPaymentMethod and cannot be null");
     this.PaymentFacilitator = paymentFacilitator;
 }
コード例 #7
0
 /// <summary>
 /// Initializes a new instance of the <see cref="WalletSaleTransaction" /> class.
 /// </summary>
 /// <param name="walletPaymentMethod">walletPaymentMethod (required).</param>
 /// <param name="paymentFacilitator">paymentFacilitator.</param>
 /// <param name="requestType">Object name of the primary transaction request. (required) (default to &quot;WalletSaleTransaction&quot;).</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 WalletSaleTransaction(WalletPaymentMethod walletPaymentMethod = default(WalletPaymentMethod), PaymentFacilitator paymentFacilitator = default(PaymentFacilitator), string requestType = "WalletSaleTransaction", 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 "walletPaymentMethod" is required (not null)
     this.WalletPaymentMethod = walletPaymentMethod ?? throw new ArgumentNullException("walletPaymentMethod is a required property for WalletSaleTransaction and cannot be null");
     this.PaymentFacilitator  = paymentFacilitator;
 }