Webiant Logo Webiant Logo
  1. No results found.

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

Refund.cs

using Newtonsoft.Json;

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

/// 
/// Represents the refund
/// 
public class Refund : IWebhookResource
{
    #region Properties

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

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

    /// 
    /// Gets or sets the PayPal-generated ID for the refund.
    /// 
    [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 reference ID issued for the card transaction. This ID can be used to track the transaction across processors, card brands and issuing banks.
    /// 
    [JsonProperty(PropertyName = "acquirer_reference_number")]
    public string AcquirerReferenceNumber { get; set; }

    /// 
    /// Gets or sets the reason for the refund. Appears in both the payer's transaction history and the emails that the payer receives.
    /// 
    [JsonProperty(PropertyName = "note_to_payer")]
    public string NoteToPayer { get; set; }

    /// 
    /// Gets or sets the detailed breakdown of the refund.
    /// 
    [JsonProperty(PropertyName = "seller_payable_breakdown")]
    public PaymentBreakdown SellerPayableBreakdown { 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 that the payee refunded to the payer.
    /// 
    [JsonProperty(PropertyName = "amount")]
    public Money Amount { 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 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; }

    #endregion
}