Webiant Logo Webiant Logo
  1. No results found.

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

Capture.cs

using Newtonsoft.Json;

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

/// 
/// Represents the captured payment
/// 
public class Capture : IWebhookResource
{
    #region Properties

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

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

    /// 
    /// Gets or sets the PayPal-generated ID for the captured 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 a value indicating whether you can make additional captures against the authorized payment. Set to `true` if you do not intend to capture additional payments against the authorization. Set to `false` if you intend to capture additional payments against the authorization.
    /// 
    [JsonProperty(PropertyName = "final_capture")]
    public bool? FinalCapture { get; set; }

    /// 
    /// Gets or sets the funds that are held on behalf of the merchant.
    /// 
    [JsonProperty(PropertyName = "disbursement_mode")]
    public string DisbursementMode { 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 captured 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 detailed breakdown of the capture activity. This is not available for transactions that are in pending state.
    /// 
    [JsonProperty(PropertyName = "seller_receivable_breakdown")]
    public PaymentBreakdown SellerReceivableBreakdowns { get; set; }

    /// 
    /// Gets or sets the additional processor information.
    /// 
    [JsonProperty(PropertyName = "processor_response")]
    public ProcessorResponse ProcessorResponse { 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; }

    #endregion
}