Ejemplo n.º 1
0
 /// <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();
 }
Ejemplo n.º 2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="PaymentResponse"/> class.
 /// </summary>
 /// <param name="methodName">The payment method identifier for the
 /// payment method that the user selected to fulfil the
 /// transaction.</param>
 /// <param name="details">A JSON-serializable object that provides a
 /// payment method specific message used by the merchant to process the
 /// transaction and determine successful fund transfer.</param>
 /// <param name="shippingAddress">If the requestShipping flag was set
 /// to true in the PaymentOptions passed to the PaymentRequest
 /// constructor, then shippingAddress will be the full and final
 /// shipping address chosen by the user.</param>
 /// <param name="shippingOption">If the requestShipping flag was set to
 /// true in the PaymentOptions passed to the PaymentRequest
 /// constructor, then shippingOption will be the id attribute of the
 /// selected shipping option.</param>
 /// <param name="payerEmail">If the requestPayerEmail flag was set to
 /// true in the PaymentOptions passed to the PaymentRequest
 /// constructor, then payerEmail will be the email address chosen by
 /// the user.</param>
 /// <param name="payerPhone">If the requestPayerPhone flag was set to
 /// true in the PaymentOptions passed to the PaymentRequest
 /// constructor, then payerPhone will be the phone number chosen by the
 /// user.</param>
 public PaymentResponse(string methodName = default(string), object details = default(object), PaymentAddress shippingAddress = default(PaymentAddress), string shippingOption = default(string), string payerEmail = default(string), string payerPhone = default(string))
 {
     MethodName      = methodName;
     Details         = details;
     ShippingAddress = shippingAddress;
     ShippingOption  = shippingOption;
     PayerEmail      = payerEmail;
     PayerPhone      = payerPhone;
     CustomInit();
 }