public UpdateCardForCustomerRequest Gateway(GatewayEnum gateway) { m_params.AddOpt("gateway", gateway); return(this); }
public SwitchGatewayForCustomerRequest Gateway(GatewayEnum gateway) { m_params.AddOpt("gateway", gateway); return(this); }
public UpdatePaymentMethodRequest CardGateway(GatewayEnum cardGateway) { m_params.AddOpt("card[gateway]", cardGateway); return(this); }
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: `credit_card` - a credit-card transaction; `electronic_wallet` - an online wallet; `store_credit` - a transaction using store credit; `gift_certificate` - a transaction using a gift certificate; `custom` - manual payment methods; `token` - payment token; `nonce` - temporary payment token; `offsite` - online payment off the site (e.g., PayPal); `offline` - 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 `false`. .</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; }
public UpdatePaymentMethodRequest PaymentMethodGateway(GatewayEnum paymentMethodGateway) { m_params.AddOpt("payment_method[gateway]", paymentMethodGateway); return(this); }
public CreateRequest CardGateway(GatewayEnum cardGateway) { m_params.AddOpt("card[gateway]", cardGateway); return(this); }