Webiant Logo Webiant Logo
  1. No results found.

    Try your search with a different keyword or use * as a wildcard.

Payer.cs

using Newtonsoft.Json;

namespace Nop.Plugin.Payments.PayPalCommerce.Services.Api.Models;

/// 
/// Represents the customer who approves and pays for the order
/// 
public class Payer
{
    #region Properties

    /// 
    /// Gets or sets the unique ID for a customer generated by PayPal.
    /// 
    [JsonProperty(PropertyName = "id")]
    public string Id { get; set; }

    /// 
    /// Gets or sets the email address of the payer.
    /// 
    [JsonProperty(PropertyName = "email_address")]
    public string EmailAddress { get; set; }

    /// 
    /// Gets or sets the PayPal-assigned ID for the payer.
    /// 
    [JsonProperty(PropertyName = "payer_id")]
    public string PayerId { get; set; }

    /// 
    /// Gets or sets the name of the party.
    /// 
    [JsonProperty(PropertyName = "name")]
    public Name Name { get; set; }

    /// 
    /// Gets or sets the phone number of the customer. Available only when you enable the Contact Telephone Number option in the [Profile & Settings](https://www.paypal.com/cgi-bin/customerprofileweb?cmd=_profile-website-payments) for the merchant's PayPal account.
    /// 
    [JsonProperty(PropertyName = "phone")]
    public Phone Phone { get; set; }

    /// 
    /// Gets or sets the birth date of the payer in YYYY-MM-DD format.
    /// 
    [JsonProperty(PropertyName = "birth_date")]
    public string BirthDate { get; set; }

    /// 
    /// Gets or sets the tax information of the payer. Required only for Brazilian payer's.
    /// 
    [JsonProperty(PropertyName = "tax_info")]
    public PayerTax TaxInfo { get; set; }

    /// 
    /// Gets or sets the address of the payer. Also referred to as the billing address of the customer.
    /// 
    [JsonProperty(PropertyName = "address")]
    public Address Address { get; set; }

    /// 
    /// Gets or sets the merchant-generated customer id.
    /// 
    [JsonProperty(PropertyName = "merchant_customer_id")]
    public string MerchantCustomerId { get; set; }

    #endregion
}