Webiant Logo Webiant Logo
  1. No results found.

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

Authorization.cs

using Newtonsoft.Json;

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

/// 
/// Represents the authorized payment transaction
/// 
public class Authorization : IWebhookResource
{
    #region Properties

    /// 
    /// Gets or sets the status of the authorized payment.
    /// 
    [JsonProperty(PropertyName = "status")]
    public string Status { get; set; }

    /// 
    /// Gets or sets the details of the authorized payment status.
    /// 
    [JsonProperty(PropertyName = "status_details")]
    public StatusDetails StatusDetails { get; set; }

    /// 
    /// Gets or sets the PayPal-generated ID for the authorized payment.
    /// 
    [JsonProperty(PropertyName = "id")]
    public string Id { get; set; }

    /// 
    /// Gets or sets the API caller-provided external invoice number for this order. Appears in both the payer's transaction history and the emails that the payer receives.
    /// 
    [JsonProperty(PropertyName = "invoice_id")]
    public string InvoiceId { get; set; }

    /// 
    /// Gets or sets the API caller-provided external ID. Used to reconcile API caller-initiated transactions with PayPal transactions. Appears in transaction and settlement reports.
    /// 
    [JsonProperty(PropertyName = "custom_id")]
    public string CustomId { get; set; }

    /// 
    /// Gets or sets the array of related [HATEOAS links](/docs/api/overview/#hateoas-links).
    /// 
    [JsonProperty(PropertyName = "links")]
    public List Links { get; set; }

    /// 
    /// Gets or sets the amount for this authorized payment.
    /// 
    [JsonProperty(PropertyName = "amount")]
    public Money Amount { get; set; }

    /// 
    /// Gets or sets the reference values used by the card network to identify a transaction.
    /// 
    [JsonProperty(PropertyName = "network_transaction_reference")]
    public NetworkTransactionReference NetworkTransactionReference { get; set; }

    /// 
    /// Gets or sets the level of protection offered as defined by [PayPal Seller Protection for Merchants](https://www.paypal.com/us/webapps/mpp/security/seller-protection).
    /// 
    [JsonProperty(PropertyName = "seller_protection")]
    public SellerProtection SellerProtection { get; set; }

    /// 
    /// Gets or sets the date and time when the authorized payment expires, in [Internet date and time format](https://tools.ietf.org/html/rfc3339#section-5.6).
    /// 
    [JsonProperty(PropertyName = "expiration_time")]
    public string ExpirationTime { get; set; }

    /// 
    /// Gets or sets the date and time when the transaction occurred, in [Internet date and time format](https://tools.ietf.org/html/rfc3339#section-5.6).
    /// 
    [JsonProperty(PropertyName = "create_time")]
    public string CreateTime { get; set; }

    /// 
    /// Gets or sets the date and time when the transaction was last updated, in [Internet date and time format](https://tools.ietf.org/html/rfc3339#section-5.6).
    /// 
    [JsonProperty(PropertyName = "update_time")]
    public string UpdateTime { get; set; }

    /// 
    /// Gets or sets the details associated with the merchant for this transaction.
    /// 
    [JsonProperty(PropertyName = "payee")]
    public Payee Payee { get; set; }

    /// 
    /// Gets or sets the additional processor information.
    /// 
    [JsonProperty(PropertyName = "processor_response")]
    public ProcessorResponse ProcessorResponse { get; set; }

    #endregion
}