/// <summary> /// Initializes a new instance of the <see cref="PaymentRequestUpdate"/> class. /// </summary> /// <param name="id">ID for the payment request to update.</param> /// <param name="details">Update payment details.</param> /// <param name="shippingAddress">Updated shipping address.</param> /// <param name="shippingOption">Updated shipping options.</param> public PaymentRequestUpdate(string id = default, PaymentDetails details = default, PaymentAddress shippingAddress = default, string shippingOption = default) { Id = id; Details = details; ShippingAddress = shippingAddress; ShippingOption = shippingOption; CustomInit(); }
/// <summary> /// Initializes a new instance of the <see cref="PaymentRequest"/> class. /// </summary> /// <param name="id">ID of this payment request.</param> /// <param name="methodData">Allowed payment methods for this /// request.</param> /// <param name="details">Details for this request.</param> /// <param name="options">Provides information about the options /// desired for the payment request.</param> /// <param name="expires">Expiration for this request, in ISO 8601 /// duration format (e.g., 'P1D').</param> public PaymentRequest(string id = default(string), IList <PaymentMethodData> methodData = default(IList <PaymentMethodData>), PaymentDetails details = default(PaymentDetails), PaymentOptions options = default(PaymentOptions), string expires = default(string)) { Id = id; MethodData = methodData; Details = details; Options = options; Expires = expires; }
/// <summary> /// Initializes a new instance of the PaymentRequestUpdateResult class. /// </summary> /// <param name="details">Update payment details</param> public PaymentRequestUpdateResult(PaymentDetails details = default(PaymentDetails)) { Details = details; CustomInit(); }