C# Class PayPal.Api.Sale

A sale transaction. This is the resource that is returned as a part related resources in Payment

See PayPal Developer documentation for more information.

Inheritance: PayPalRelationalObject
Afficher le fichier Open project: paypal/PayPal-NET-SDK

Private Properties

Свойство Type Description
Refund Refund
Refund Refund

Méthodes publiques

Méthode Description
Get ( APIContext apiContext, string saleId ) : Sale

Shows details for a sale, by ID. Returns only sales that were created through the REST API.

Refund ( APIContext apiContext, string saleId, RefundRequest refundRequest ) : DetailedRefund

Refunds a sale, by ID. For a full refund, include an empty payload in the JSON request body. For a partial refund, include an `amount` object in the JSON request body.

Private Methods

Méthode Description
Refund ( APIContext apiContext, Refund refund ) : Refund
Refund ( APIContext apiContext, string saleId, Refund refund ) : Refund

Method Details

Get() public static méthode

Shows details for a sale, by ID. Returns only sales that were created through the REST API.
public static Get ( APIContext apiContext, string saleId ) : Sale
apiContext APIContext APIContext used for the API call.
saleId string The ID of the sale for which to show details.
Résultat Sale

Refund() public static méthode

Refunds a sale, by ID. For a full refund, include an empty payload in the JSON request body. For a partial refund, include an `amount` object in the JSON request body.
public static Refund ( APIContext apiContext, string saleId, RefundRequest refundRequest ) : DetailedRefund
apiContext APIContext APIContext used for the API call.
saleId string
refundRequest RefundRequest RefundRequest
Résultat DetailedRefund