コード例 #1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="PaymentCardSaleTransaction" /> class.
 /// </summary>
 /// <param name="paymentMethod">paymentMethod.</param>
 /// <param name="storedCredentials">storedCredentials.</param>
 /// <param name="settlementSplit">Settle with multiple sub-merchants, sale and preAuth only..</param>
 /// <param name="createToken">createToken.</param>
 /// <param name="currencyConversion">currencyConversion.</param>
 /// <param name="authenticationRequest">authenticationRequest.</param>
 /// <param name="authenticationResult">authenticationResult.</param>
 /// <param name="requestType">Object name of the primary transaction request. (required) (default to &quot;PaymentCardSaleTransaction&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 PaymentCardSaleTransaction(PaymentCardPaymentMethod paymentMethod = default(PaymentCardPaymentMethod), StoredCredential storedCredentials = default(StoredCredential), List <SubMerchantSplit> settlementSplit = default(List <SubMerchantSplit>), CreatePaymentToken createToken = default(CreatePaymentToken), CurrencyConversion currencyConversion = default(CurrencyConversion), AuthenticationRequest authenticationRequest = default(AuthenticationRequest), AuthenticationResult authenticationResult = default(AuthenticationResult), string requestType = "PaymentCardSaleTransaction", 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)
 {
     this.PaymentMethod         = paymentMethod;
     this.StoredCredentials     = storedCredentials;
     this.SettlementSplit       = settlementSplit;
     this.CreateToken           = createToken;
     this.CurrencyConversion    = currencyConversion;
     this.AuthenticationRequest = authenticationRequest;
     this.AuthenticationResult  = authenticationResult;
 }
コード例 #2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="PaymentCardDisbursementTransaction" /> class.
 /// </summary>
 /// <param name="disbursement">disbursement (required).</param>
 /// <param name="paymentMethod">paymentMethod (required).</param>
 /// <param name="storedCredentials">storedCredentials.</param>
 /// <param name="createToken">createToken.</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 PaymentCardDisbursementTransaction(Disbursement disbursement = default(Disbursement), PaymentCardPaymentMethod paymentMethod = default(PaymentCardPaymentMethod), StoredCredential storedCredentials = default(StoredCredential), CreatePaymentToken createToken = default(CreatePaymentToken), 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 "disbursement" is required (not null)
     this.Disbursement = disbursement ?? throw new ArgumentNullException("disbursement is a required property for PaymentCardDisbursementTransaction and cannot be null");
     // to ensure "paymentMethod" is required (not null)
     this.PaymentMethod     = paymentMethod ?? throw new ArgumentNullException("paymentMethod is a required property for PaymentCardDisbursementTransaction and cannot be null");
     this.StoredCredentials = storedCredentials;
     this.CreateToken       = createToken;
 }
コード例 #3
0
 /// <summary>
 /// Initializes a new instance of the <see cref="PaymentTokenPreAuthTransaction" /> class.
 /// </summary>
 /// <param name="paymentMethod">paymentMethod (required).</param>
 /// <param name="storedCredentials">storedCredentials.</param>
 /// <param name="splitShipment">splitShipment.</param>
 /// <param name="settlementSplit">Settle with multiple sub-merchants, sale and preAuth only..</param>
 /// <param name="authenticationRequest">authenticationRequest.</param>
 /// <param name="authenticationResult">authenticationResult.</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 PaymentTokenPreAuthTransaction(PaymentTokenPaymentMethod paymentMethod = default(PaymentTokenPaymentMethod), StoredCredential storedCredentials = default(StoredCredential), SplitShipment splitShipment = default(SplitShipment), List <SubMerchantSplit> settlementSplit = default(List <SubMerchantSplit>), AuthenticationRequest authenticationRequest = default(AuthenticationRequest), AuthenticationResult authenticationResult = default(AuthenticationResult), 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 PaymentTokenPreAuthTransaction and cannot be null");
     this.StoredCredentials     = storedCredentials;
     this.SplitShipment         = splitShipment;
     this.SettlementSplit       = settlementSplit;
     this.AuthenticationRequest = authenticationRequest;
     this.AuthenticationResult  = authenticationResult;
     this.DecrementalFlag       = decrementalFlag;
 }
コード例 #4
0
 /// <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 &#x3D; false) or decrease the preAuth amount (DecrementalPreAuthFlag &#x3D; 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;
 }
コード例 #5
0
 /// <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;
 }
コード例 #6
0
 /// <summary>
 /// Initializes a new instance of the <see cref="PaymentTokenSaleTransactionAllOf" /> class.
 /// </summary>
 /// <param name="paymentMethod">paymentMethod (required).</param>
 /// <param name="storedCredentials">storedCredentials.</param>
 /// <param name="settlementSplit">Settle with multiple sub-merchants, sale and preAuth only..</param>
 /// <param name="currencyConversion">currencyConversion.</param>
 /// <param name="authenticationRequest">authenticationRequest.</param>
 /// <param name="authenticationResult">authenticationResult.</param>
 public PaymentTokenSaleTransactionAllOf(PaymentTokenPaymentMethod paymentMethod = default(PaymentTokenPaymentMethod), StoredCredential storedCredentials = default(StoredCredential), List <SubMerchantSplit> settlementSplit = default(List <SubMerchantSplit>), CurrencyConversion currencyConversion = default(CurrencyConversion), AuthenticationRequest authenticationRequest = default(AuthenticationRequest), AuthenticationResult authenticationResult = default(AuthenticationResult))
 {
     // to ensure "paymentMethod" is required (not null)
     this.PaymentMethod         = paymentMethod ?? throw new ArgumentNullException("paymentMethod is a required property for PaymentTokenSaleTransactionAllOf and cannot be null");
     this.StoredCredentials     = storedCredentials;
     this.SettlementSplit       = settlementSplit;
     this.CurrencyConversion    = currencyConversion;
     this.AuthenticationRequest = authenticationRequest;
     this.AuthenticationResult  = authenticationResult;
 }
コード例 #7
0
 /// <summary>
 /// Initializes a new instance of the <see cref="PaymentTokenDisbursementTransactionAllOf" /> class.
 /// </summary>
 /// <param name="disbursement">disbursement (required).</param>
 /// <param name="paymentMethod">paymentMethod (required).</param>
 /// <param name="storedCredentials">storedCredentials.</param>
 public PaymentTokenDisbursementTransactionAllOf(Disbursement disbursement = default(Disbursement), PaymentTokenPaymentMethod paymentMethod = default(PaymentTokenPaymentMethod), StoredCredential storedCredentials = default(StoredCredential))
 {
     // to ensure "disbursement" is required (not null)
     this.Disbursement = disbursement ?? throw new ArgumentNullException("disbursement is a required property for PaymentTokenDisbursementTransactionAllOf and cannot be null");
     // to ensure "paymentMethod" is required (not null)
     this.PaymentMethod     = paymentMethod ?? throw new ArgumentNullException("paymentMethod is a required property for PaymentTokenDisbursementTransactionAllOf and cannot be null");
     this.StoredCredentials = storedCredentials;
 }
コード例 #8
0
 /// <summary>
 /// Initializes a new instance of the <see cref="DecryptedGooglePay" /> class.
 /// </summary>
 /// <param name="accountNumber">Payment card number. (required).</param>
 /// <param name="expiration">Card expiration date in MMYYYY format. (required).</param>
 /// <param name="cardholderName">Name of the cardholder..</param>
 /// <param name="brand">Card brand..</param>
 /// <param name="cryptogram">The wallet cryptogram from the decrypted data. (required).</param>
 /// <param name="eciIndicator">The ECI indicator from the decrypted data. (required).</param>
 /// <param name="storedCredentials">storedCredentials.</param>
 public DecryptedGooglePay(string accountNumber = default(string), string expiration = default(string), string cardholderName = default(string), string brand = default(string), string cryptogram = default(string), string eciIndicator = default(string), StoredCredential storedCredentials = default(StoredCredential))
 {
     // to ensure "accountNumber" is required (not null)
     this.AccountNumber = accountNumber ?? throw new ArgumentNullException("accountNumber is a required property for DecryptedGooglePay and cannot be null");
     // to ensure "expiration" is required (not null)
     this.Expiration = expiration ?? throw new ArgumentNullException("expiration is a required property for DecryptedGooglePay and cannot be null");
     // to ensure "cryptogram" is required (not null)
     this.Cryptogram = cryptogram ?? throw new ArgumentNullException("cryptogram is a required property for DecryptedGooglePay and cannot be null");
     // to ensure "eciIndicator" is required (not null)
     this.EciIndicator      = eciIndicator ?? throw new ArgumentNullException("eciIndicator is a required property for DecryptedGooglePay and cannot be null");
     this.CardholderName    = cardholderName;
     this.Brand             = brand;
     this.StoredCredentials = storedCredentials;
 }
コード例 #9
0
 /// <summary>
 /// Initializes a new instance of the <see cref="ReturnTransactionAllOf" /> class.
 /// </summary>
 /// <param name="transactionAmount">transactionAmount (required).</param>
 /// <param name="softDescriptor">softDescriptor.</param>
 /// <param name="storedCredentials">storedCredentials.</param>
 /// <param name="currencyConversion">currencyConversion.</param>
 public ReturnTransactionAllOf(Amount transactionAmount = default(Amount), SoftDescriptor softDescriptor = default(SoftDescriptor), StoredCredential storedCredentials = default(StoredCredential), CurrencyConversion currencyConversion = default(CurrencyConversion))
 {
     // to ensure "transactionAmount" is required (not null)
     this.TransactionAmount  = transactionAmount ?? throw new ArgumentNullException("transactionAmount is a required property for ReturnTransactionAllOf and cannot be null");
     this.SoftDescriptor     = softDescriptor;
     this.StoredCredentials  = storedCredentials;
     this.CurrencyConversion = currencyConversion;
 }
コード例 #10
0
 /// <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) (default to &quot;PaymentDeviceSaleTransaction&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 PaymentDeviceSaleTransaction(PaymentDevicePaymentMethod paymentMethod = default(PaymentDevicePaymentMethod), CreatePaymentToken createToken = default(CreatePaymentToken), StoredCredential storedCredentials = default(StoredCredential), string requestType = "PaymentDeviceSaleTransaction", 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 PaymentDeviceSaleTransaction and cannot be null");
     this.CreateToken       = createToken;
     this.StoredCredentials = storedCredentials;
 }
コード例 #11
0
 /// <summary>
 /// Initializes a new instance of the <see cref="PaymentCardSaleTransaction" /> class.
 /// </summary>
 /// <param name="paymentMethod">paymentMethod (required).</param>
 /// <param name="storedCredentials">storedCredentials.</param>
 /// <param name="settlementSplit">Settle with multiple sub-merchants, sale and preAuth only..</param>
 /// <param name="createToken">createToken.</param>
 /// <param name="currencyConversion">currencyConversion.</param>
 /// <param name="authenticationRequest">authenticationRequest.</param>
 /// <param name="authenticationResult">authenticationResult.</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 PaymentCardSaleTransaction(PaymentCardPaymentMethod paymentMethod = default(PaymentCardPaymentMethod), StoredCredential storedCredentials = default(StoredCredential), List <SubMerchantSplit> settlementSplit = default(List <SubMerchantSplit>), CreatePaymentToken createToken = default(CreatePaymentToken), CurrencyConversion currencyConversion = default(CurrencyConversion), AuthenticationRequest authenticationRequest = default(AuthenticationRequest), AuthenticationResult authenticationResult = default(AuthenticationResult), 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 PaymentCardSaleTransaction and cannot be null");
     this.StoredCredentials     = storedCredentials;
     this.SettlementSplit       = settlementSplit;
     this.CreateToken           = createToken;
     this.CurrencyConversion    = currencyConversion;
     this.AuthenticationRequest = authenticationRequest;
     this.AuthenticationResult  = authenticationResult;
 }
コード例 #12
0
 /// <summary>
 /// Initializes a new instance of the <see cref="PaymentCardSaleTransactionAllOf" /> class.
 /// </summary>
 /// <param name="paymentMethod">paymentMethod.</param>
 /// <param name="storedCredentials">storedCredentials.</param>
 /// <param name="settlementSplit">Settle with multiple sub-merchants, sale and preAuth only..</param>
 /// <param name="createToken">createToken.</param>
 /// <param name="currencyConversion">currencyConversion.</param>
 /// <param name="authenticationRequest">authenticationRequest.</param>
 /// <param name="authenticationResult">authenticationResult.</param>
 public PaymentCardSaleTransactionAllOf(PaymentCardPaymentMethod paymentMethod = default(PaymentCardPaymentMethod), StoredCredential storedCredentials = default(StoredCredential), List <SubMerchantSplit> settlementSplit = default(List <SubMerchantSplit>), CreatePaymentToken createToken = default(CreatePaymentToken), CurrencyConversion currencyConversion = default(CurrencyConversion), AuthenticationRequest authenticationRequest = default(AuthenticationRequest), AuthenticationResult authenticationResult = default(AuthenticationResult))
 {
     this.PaymentMethod         = paymentMethod;
     this.StoredCredentials     = storedCredentials;
     this.SettlementSplit       = settlementSplit;
     this.CreateToken           = createToken;
     this.CurrencyConversion    = currencyConversion;
     this.AuthenticationRequest = authenticationRequest;
     this.AuthenticationResult  = authenticationResult;
 }
コード例 #13
0
 /// <summary>
 /// Initializes a new instance of the <see cref="ReturnTransaction" /> class.
 /// </summary>
 /// <param name="transactionAmount">transactionAmount (required).</param>
 /// <param name="softDescriptor">softDescriptor.</param>
 /// <param name="storedCredentials">storedCredentials.</param>
 /// <param name="currencyConversion">currencyConversion.</param>
 /// <param name="requestType">Object name of the secondary transaction request. (required).</param>
 /// <param name="storeId">An optional outlet ID for clients that support multiple stores in the same developer app..</param>
 /// <param name="merchantTransactionId">The unique merchant transaction ID from the request, if supplied..</param>
 /// <param name="comments">Comment for the secondary transaction..</param>
 /// <param name="order">order.</param>
 public ReturnTransaction(Amount transactionAmount = default(Amount), SoftDescriptor softDescriptor = default(SoftDescriptor), StoredCredential storedCredentials = default(StoredCredential), CurrencyConversion currencyConversion = default(CurrencyConversion), string requestType = default(string), string storeId = default(string), string merchantTransactionId = default(string), string comments = default(string), Order order = default(Order)) : base(requestType, storeId, merchantTransactionId, comments, order)
 {
     // to ensure "transactionAmount" is required (not null)
     this.TransactionAmount  = transactionAmount ?? throw new ArgumentNullException("transactionAmount is a required property for ReturnTransaction and cannot be null");
     this.SoftDescriptor     = softDescriptor;
     this.StoredCredentials  = storedCredentials;
     this.CurrencyConversion = currencyConversion;
 }
コード例 #14
0
 /// <summary>
 /// Initializes a new instance of the <see cref="PaymentCardPreAuthTransactionAllOf" /> class.
 /// </summary>
 /// <param name="paymentMethod">paymentMethod.</param>
 /// <param name="storedCredentials">storedCredentials.</param>
 /// <param name="createToken">createToken.</param>
 /// <param name="splitShipment">splitShipment.</param>
 /// <param name="settlementSplit">Settle with multiple sub-merchants, sale and preAuth only..</param>
 /// <param name="authenticationRequest">authenticationRequest.</param>
 /// <param name="authenticationResult">authenticationResult.</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 PaymentCardPreAuthTransactionAllOf(PaymentCardPaymentMethod paymentMethod = default(PaymentCardPaymentMethod), StoredCredential storedCredentials = default(StoredCredential), CreatePaymentToken createToken = default(CreatePaymentToken), SplitShipment splitShipment = default(SplitShipment), List <SubMerchantSplit> settlementSplit = default(List <SubMerchantSplit>), AuthenticationRequest authenticationRequest = default(AuthenticationRequest), AuthenticationResult authenticationResult = default(AuthenticationResult), bool decrementalFlag = false)
 {
     this.PaymentMethod         = paymentMethod;
     this.StoredCredentials     = storedCredentials;
     this.CreateToken           = createToken;
     this.SplitShipment         = splitShipment;
     this.SettlementSplit       = settlementSplit;
     this.AuthenticationRequest = authenticationRequest;
     this.AuthenticationResult  = authenticationResult;
     this.DecrementalFlag       = decrementalFlag;
 }