Esempio n. 1
0
 public UpdateCardForCustomerRequest Gateway(GatewayEnum gateway)
 {
     m_params.AddOpt("gateway", gateway);
     return(this);
 }
Esempio n. 2
0
 public SwitchGatewayForCustomerRequest Gateway(GatewayEnum gateway)
 {
     m_params.AddOpt("gateway", gateway);
     return(this);
 }
Esempio n. 3
0
 public UpdatePaymentMethodRequest CardGateway(GatewayEnum cardGateway)
 {
     m_params.AddOpt("card[gateway]", cardGateway);
     return(this);
 }
Esempio n. 4
0
 public CheckoutExistingRequest CardGateway(GatewayEnum cardGateway)
 {
     m_params.AddOpt("card[gateway]", cardGateway);
     return(this);
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="TransactionPost" /> class.
 /// </summary>
 /// <param name="_event">Store event that created the transaction.  (required).</param>
 /// <param name="method">The payment method: &#x60;credit_card&#x60; - a credit-card transaction; &#x60;electronic_wallet&#x60; - an online wallet; &#x60;store_credit&#x60; - a transaction using store credit; &#x60;gift_certificate&#x60; - a transaction using a gift certificate; &#x60;custom&#x60; - manual payment methods; &#x60;token&#x60; - payment token; &#x60;nonce&#x60; - temporary payment token; &#x60;offsite&#x60; - online payment off the site (e.g., PayPal); &#x60;offline&#x60; - payment method that takes place offline.  (required).</param>
 /// <param name="amount">Amount of money in the transaction.  (required).</param>
 /// <param name="currency">Currency used for the transaction.  (required).</param>
 /// <param name="gateway">The payment gateway, where applicable.  (required).</param>
 /// <param name="gatewayTransactionId">The transaction ID returned by the payment gateway for this transaction item. .</param>
 /// <param name="dateCreated">The datetime of the transaction. .</param>
 /// <param name="test">True if the transaction performed was a test, or if the gateway is in test mode. .</param>
 /// <param name="status">Status of the transaction. .</param>
 /// <param name="fraudReview">Result of gateway fraud review, if any. Default is &#x60;false&#x60;. .</param>
 /// <param name="referenceTransactionId">Identifier for an existing transaction upon which this transaction acts. .</param>
 /// <param name="offline">offline.</param>
 /// <param name="custom">custom.</param>
 public TransactionPost(EventEnum _event = default(EventEnum), MethodEnum method = default(MethodEnum), float?amount = default(float?), string currency = default(string), GatewayEnum gateway = default(GatewayEnum), string gatewayTransactionId = default(string), DateTime?dateCreated = default(DateTime?), bool?test = default(bool?), StatusEnum?status = default(StatusEnum?), bool?fraudReview = default(bool?), int?referenceTransactionId = default(int?), Offline1 offline = default(Offline1), Custom1 custom = default(Custom1))
 {
     // to ensure "_event" is required (not null)
     if (_event == null)
     {
         throw new InvalidDataException("_event is a required property for TransactionPost and cannot be null");
     }
     else
     {
         this.Event = _event;
     }
     // to ensure "method" is required (not null)
     if (method == null)
     {
         throw new InvalidDataException("method is a required property for TransactionPost and cannot be null");
     }
     else
     {
         this.Method = method;
     }
     // to ensure "amount" is required (not null)
     if (amount == null)
     {
         throw new InvalidDataException("amount is a required property for TransactionPost and cannot be null");
     }
     else
     {
         this.Amount = amount;
     }
     // to ensure "currency" is required (not null)
     if (currency == null)
     {
         throw new InvalidDataException("currency is a required property for TransactionPost and cannot be null");
     }
     else
     {
         this.Currency = currency;
     }
     // to ensure "gateway" is required (not null)
     if (gateway == null)
     {
         throw new InvalidDataException("gateway is a required property for TransactionPost and cannot be null");
     }
     else
     {
         this.Gateway = gateway;
     }
     this.GatewayTransactionId = gatewayTransactionId;
     this.DateCreated          = dateCreated;
     this.Test                   = test;
     this.Status                 = status;
     this.FraudReview            = fraudReview;
     this.ReferenceTransactionId = referenceTransactionId;
     this.Offline                = offline;
     this.Custom                 = custom;
 }
Esempio n. 6
0
 public UpdatePaymentMethodRequest PaymentMethodGateway(GatewayEnum paymentMethodGateway)
 {
     m_params.AddOpt("payment_method[gateway]", paymentMethodGateway);
     return(this);
 }
Esempio n. 7
0
 public CreateRequest CardGateway(GatewayEnum cardGateway)
 {
     m_params.AddOpt("card[gateway]", cardGateway);
     return(this);
 }