Ejemplo n.º 1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="OrderResponse" /> class.
 /// </summary>
 /// <param name="clientRequestId">Echoes back the value in the request header for tracking..</param>
 /// <param name="apiTraceId">Request identifier in API, can be used to request logs from the support team..</param>
 /// <param name="responseType">responseType.</param>
 /// <param name="orderId">Client order ID if supplied by client, otherwise the order ID..</param>
 /// <param name="billing">billing.</param>
 /// <param name="shipping">shipping.</param>
 /// <param name="transactions">Required for some payment methods (for example, Klarna)..</param>
 /// <param name="additionalDetails">additionalDetails.</param>
 public OrderResponse(string clientRequestId = default(string), string apiTraceId = default(string), ResponseType?responseType = null, string orderId = default(string), Billing billing = default(Billing), Shipping shipping = default(Shipping), List <TransactionResponse> transactions = default(List <TransactionResponse>), AdditionalDetails additionalDetails = default(AdditionalDetails))
 {
     this.ClientRequestId   = clientRequestId;
     this.ApiTraceId        = apiTraceId;
     this.ResponseType      = responseType;
     this.OrderId           = orderId;
     this.Billing           = billing;
     this.Shipping          = shipping;
     this.Transactions      = transactions;
     this.AdditionalDetails = additionalDetails;
 }
Ejemplo n.º 2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="PaymentCardVerificationRequest" /> class.
 /// </summary>
 /// <param name="paymentCard">paymentCard (required).</param>
 /// <param name="requestType">Object name of the account verification request. (required).</param>
 /// <param name="billingAddress">billingAddress.</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, if supplied..</param>
 /// <param name="additionalDetails">additionalDetails.</param>
 public PaymentCardVerificationRequest(PaymentCard paymentCard = default(PaymentCard), string requestType = default(string), Address billingAddress = default(Address), string storeId = default(string), string merchantTransactionId = default(string), AdditionalDetails additionalDetails = default(AdditionalDetails)) : base(requestType, billingAddress, storeId, merchantTransactionId, additionalDetails)
 {
     // to ensure "paymentCard" is required (not null)
     this.PaymentCard = paymentCard ?? throw new ArgumentNullException("paymentCard is a required property for PaymentCardVerificationRequest and cannot be null");
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="PaymentDevicePaymentTokenizationRequest" /> class.
 /// </summary>
 /// <param name="paymentDevice">paymentDevice (required).</param>
 /// <param name="requestType">Object name of tokenization request. (required).</param>
 /// <param name="storeId">An optional outlet ID for clients that support multiple stores in the same app..</param>
 /// <param name="billingAddress">billingAddress.</param>
 /// <param name="createToken">createToken (required).</param>
 /// <param name="accountVerification">If the account should be verified prior to token creation. (default to false).</param>
 /// <param name="merchantTransactionId">The unique merchant transaction ID from the request, if supplied..</param>
 /// <param name="additionalDetails">additionalDetails.</param>
 public PaymentDevicePaymentTokenizationRequest(PaymentDevice paymentDevice = default(PaymentDevice), string requestType = default(string), string storeId = default(string), Address billingAddress = default(Address), CreatePaymentToken createToken = default(CreatePaymentToken), bool accountVerification = false, string merchantTransactionId = default(string), AdditionalDetails additionalDetails = default(AdditionalDetails)) : base(requestType, storeId, billingAddress, createToken, accountVerification, merchantTransactionId, additionalDetails)
 {
     // to ensure "paymentDevice" is required (not null)
     this.PaymentDevice = paymentDevice ?? throw new ArgumentNullException("paymentDevice is a required property for PaymentDevicePaymentTokenizationRequest and cannot be null");
 }
Ejemplo n.º 4
0
 /// <summary>
 /// Initializes a new instance of the <see cref="AccountVerificationRequest" /> class.
 /// </summary>
 /// <param name="requestType">Object name of the account verification request. (required).</param>
 /// <param name="billingAddress">billingAddress.</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, if supplied..</param>
 /// <param name="additionalDetails">additionalDetails.</param>
 public AccountVerificationRequest(string requestType = default(string), Address billingAddress = default(Address), string storeId = default(string), string merchantTransactionId = default(string), AdditionalDetails additionalDetails = default(AdditionalDetails))
 {
     // to ensure "requestType" is required (not null)
     this.RequestType           = requestType ?? throw new ArgumentNullException("requestType is a required property for AccountVerificationRequest and cannot be null");
     this.BillingAddress        = billingAddress;
     this.StoreId               = storeId;
     this.MerchantTransactionId = merchantTransactionId;
     this.AdditionalDetails     = additionalDetails;
 }
Ejemplo n.º 5
0
 /// <summary>
 /// Initializes a new instance of the <see cref="PaymentTokenizationRequest" /> class.
 /// </summary>
 /// <param name="requestType">Object name of tokenization request. (required).</param>
 /// <param name="storeId">An optional outlet ID for clients that support multiple stores in the same app..</param>
 /// <param name="billingAddress">billingAddress.</param>
 /// <param name="createToken">createToken (required).</param>
 /// <param name="accountVerification">If the account should be verified prior to token creation. (default to false).</param>
 /// <param name="merchantTransactionId">The unique merchant transaction ID from the request, if supplied..</param>
 /// <param name="additionalDetails">additionalDetails.</param>
 public PaymentTokenizationRequest(string requestType = default(string), string storeId = default(string), Address billingAddress = default(Address), CreatePaymentToken createToken = default(CreatePaymentToken), bool accountVerification = false, string merchantTransactionId = default(string), AdditionalDetails additionalDetails = default(AdditionalDetails))
 {
     // to ensure "requestType" is required (not null)
     this.RequestType = requestType ?? throw new ArgumentNullException("requestType is a required property for PaymentTokenizationRequest and cannot be null");
     // to ensure "createToken" is required (not null)
     this.CreateToken           = createToken ?? throw new ArgumentNullException("createToken is a required property for PaymentTokenizationRequest and cannot be null");
     this.StoreId               = storeId;
     this.BillingAddress        = billingAddress;
     this.AccountVerification   = accountVerification;
     this.MerchantTransactionId = merchantTransactionId;
     this.AdditionalDetails     = additionalDetails;
 }
Ejemplo n.º 6
0
 /// <summary>
 /// Initializes a new instance of the <see cref="OrderResponseAllOf" /> class.
 /// </summary>
 /// <param name="orderId">Note - Client Order ID if supplied by client. If not supplied by client, IPG will generate. The first 12 alphanumeric digits are passed down to Fiserv Enterprise reporting tool, Clientline and Data File Manager (DFM)..</param>
 /// <param name="billing">billing.</param>
 /// <param name="shipping">shipping.</param>
 /// <param name="transactions">Required for some payment methods (for example, Klarna)..</param>
 /// <param name="additionalDetails">additionalDetails.</param>
 public OrderResponseAllOf(string orderId = default(string), Billing billing = default(Billing), Shipping shipping = default(Shipping), List <TransactionResponse> transactions = default(List <TransactionResponse>), AdditionalDetails additionalDetails = default(AdditionalDetails))
 {
     this.OrderId           = orderId;
     this.Billing           = billing;
     this.Shipping          = shipping;
     this.Transactions      = transactions;
     this.AdditionalDetails = additionalDetails;
 }
Ejemplo n.º 7
0
 /// <summary>
 /// Initializes a new instance of the <see cref="Order" /> class.
 /// </summary>
 /// <param name="orderId">Client Order ID if supplied by client..</param>
 /// <param name="billing">billing.</param>
 /// <param name="shipping">shipping.</param>
 /// <param name="industrySpecificExtensions">industrySpecificExtensions.</param>
 /// <param name="purchaseCard">purchaseCard.</param>
 /// <param name="installmentOptions">installmentOptions.</param>
 /// <param name="softDescriptor">softDescriptor.</param>
 /// <param name="additionalDetails">additionalDetails.</param>
 /// <param name="bancontactQR">bancontactQR.</param>
 public Order(string orderId = default(string), Billing billing = default(Billing), Shipping shipping = default(Shipping), IndustrySpecificExtensions industrySpecificExtensions = default(IndustrySpecificExtensions), PurchaseCards purchaseCard = default(PurchaseCards), InstallmentOptions installmentOptions = default(InstallmentOptions), SoftDescriptor softDescriptor = default(SoftDescriptor), AdditionalDetails additionalDetails = default(AdditionalDetails), BancontactQR bancontactQR = default(BancontactQR))
 {
     this.OrderId  = orderId;
     this.Billing  = billing;
     this.Shipping = shipping;
     this.IndustrySpecificExtensions = industrySpecificExtensions;
     this.PurchaseCard       = purchaseCard;
     this.InstallmentOptions = installmentOptions;
     this.SoftDescriptor     = softDescriptor;
     this.AdditionalDetails  = additionalDetails;
     this.BancontactQR       = bancontactQR;
 }
Ejemplo n.º 8
0
 /// <summary>
 /// Initializes a new instance of the <see cref="Order" /> class.
 /// </summary>
 /// <param name="orderId">Note - Client Order ID if supplied by client. If not supplied by client, IPG will generate. The first 12 alphanumeric digits are passed down to Fiserv Enterprise reporting tool, Clientline and Data File Manager (DFM)..</param>
 /// <param name="billing">billing.</param>
 /// <param name="shipping">shipping.</param>
 /// <param name="industrySpecificExtensions">industrySpecificExtensions.</param>
 /// <param name="purchaseCard">purchaseCard.</param>
 /// <param name="installmentOptions">installmentOptions.</param>
 /// <param name="revolvingOptions">revolvingOptions.</param>
 /// <param name="standInDetails">standInDetails.</param>
 /// <param name="softDescriptor">softDescriptor.</param>
 /// <param name="additionalDetails">additionalDetails.</param>
 /// <param name="bancontactQR">bancontactQR.</param>
 /// <param name="clientLocale">clientLocale.</param>
 public Order(string orderId = default(string), Billing billing = default(Billing), Shipping shipping = default(Shipping), IndustrySpecificExtensions industrySpecificExtensions = default(IndustrySpecificExtensions), PurchaseCards purchaseCard = default(PurchaseCards), InstallmentOptions installmentOptions = default(InstallmentOptions), RevolvingOptions revolvingOptions = default(RevolvingOptions), StandInDetails standInDetails = default(StandInDetails), SoftDescriptor softDescriptor = default(SoftDescriptor), AdditionalDetails additionalDetails = default(AdditionalDetails), BancontactQR bancontactQR = default(BancontactQR), ClientLocale clientLocale = default(ClientLocale))
 {
     this.OrderId  = orderId;
     this.Billing  = billing;
     this.Shipping = shipping;
     this.IndustrySpecificExtensions = industrySpecificExtensions;
     this.PurchaseCard       = purchaseCard;
     this.InstallmentOptions = installmentOptions;
     this.RevolvingOptions   = revolvingOptions;
     this.StandInDetails     = standInDetails;
     this.SoftDescriptor     = softDescriptor;
     this.AdditionalDetails  = additionalDetails;
     this.BancontactQR       = bancontactQR;
     this.ClientLocale       = clientLocale;
 }