/// <summary> /// Initializes a new instance of the <see cref="PaymentUrlRequest" /> class. /// </summary> /// <param name="storeId">An optional Outlet ID for clients that support multiple stores in the same developer app..</param> /// <param name="clientLocale">clientLocale.</param> /// <param name="transactionAmount">transactionAmount (required).</param> /// <param name="transactionType">transactionType (required).</param> /// <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="transactionNotificationURL">URL for notifying merchant of payment result..</param> /// <param name="expiration">Time until payment URL expires..</param> /// <param name="authenticateTransaction">If 3D secure should be applied..</param> /// <param name="dynamicMerchantName">Dynamic merchant name for the cardholder's statement..</param> /// <param name="invoiceNumber">Invoice number..</param> /// <param name="purchaseOrderNumber">Purchase order number..</param> /// <param name="hostedPaymentPageText">The text to be displayed to the payer on the hosted payment page..</param> /// <param name="ip">IPv4 or IPv6 network address..</param> /// <param name="revolvingOptions">revolvingOptions.</param> /// <param name="installmentOptions">installmentOptions.</param> /// <param name="basket">basket.</param> public PaymentUrlRequest(string storeId = default(string), ClientLocale clientLocale = default(ClientLocale), Amount transactionAmount = default(Amount), TransactionType transactionType = default(TransactionType), string orderId = default(string), Billing billing = default(Billing), Shipping shipping = default(Shipping), string transactionNotificationURL = default(string), long expiration = default(long), bool authenticateTransaction = default(bool), string dynamicMerchantName = default(string), string invoiceNumber = default(string), string purchaseOrderNumber = default(string), string hostedPaymentPageText = default(string), string ip = default(string), RevolvingOptions revolvingOptions = default(RevolvingOptions), InstallmentOptions installmentOptions = default(InstallmentOptions), Basket basket = default(Basket)) { // to ensure "transactionAmount" is required (not null) this.TransactionAmount = transactionAmount ?? throw new ArgumentNullException("transactionAmount is a required property for PaymentUrlRequest and cannot be null"); this.TransactionType = transactionType; this.StoreId = storeId; this.ClientLocale = clientLocale; this.OrderId = orderId; this.Billing = billing; this.Shipping = shipping; this.TransactionNotificationURL = transactionNotificationURL; this.Expiration = expiration; this.AuthenticateTransaction = authenticateTransaction; this.DynamicMerchantName = dynamicMerchantName; this.InvoiceNumber = invoiceNumber; this.PurchaseOrderNumber = purchaseOrderNumber; this.HostedPaymentPageText = hostedPaymentPageText; this.Ip = ip; this.RevolvingOptions = revolvingOptions; this.InstallmentOptions = installmentOptions; this.Basket = basket; }
/// <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; }