C# Класс PayPal.Api.Order

An order transaction.

See PayPal Developer documentation for more information.

Наследование: PayPalRelationalObject
Показать файл Открыть проект Примеры использования класса

Private Properties

Свойство Тип Описание

Открытые методы

Метод Описание
Authorize ( APIContext apiContext ) : Authorization

Authorizes an order, by ID. Include an `amount` object in the JSON request body.

Authorize ( APIContext apiContext, Order order ) : Authorization

Creates an authorization on an order

Capture ( APIContext apiContext, Capture capture ) : Capture

Captures a payment for an order, by ID. To use this call, the original payment call must specify an intent of `order`. In the JSON request body, include the payment amount and indicate whether this capture is the final capture for the authorization.

Capture ( APIContext apiContext, string orderId, Capture capture ) : Capture

Creates (and processes) a new Capture Transaction added as a related resource.

Get ( APIContext apiContext, string orderId ) : Order

Shows details for an order, by ID.

Void ( APIContext apiContext ) : Order

Voids, or cancels, an order, by ID. You cannot void an order if a payment has already been partially or fully captured.

Void ( APIContext apiContext, string orderId ) : Order

Voids (cancels) an Order.

Описание методов

Authorize() публичный Метод

Authorizes an order, by ID. Include an `amount` object in the JSON request body.
public Authorize ( APIContext apiContext ) : Authorization
apiContext APIContext APIContext used for the API call.
Результат Authorization

Authorize() публичный статический Метод

Creates an authorization on an order
public static Authorize ( APIContext apiContext, Order order ) : Authorization
apiContext APIContext APIContext used for the API call.
order Order Order object to authorize.
Результат Authorization

Capture() публичный Метод

Captures a payment for an order, by ID. To use this call, the original payment call must specify an intent of `order`. In the JSON request body, include the payment amount and indicate whether this capture is the final capture for the authorization.
public Capture ( APIContext apiContext, Capture capture ) : Capture
apiContext APIContext APIContext used for the API call.
capture Capture Capture
Результат Capture

Capture() публичный статический Метод

Creates (and processes) a new Capture Transaction added as a related resource.
public static Capture ( APIContext apiContext, string orderId, Capture capture ) : Capture
apiContext APIContext APIContext used for the API call.
orderId string ID of the order to capture.
capture Capture Capture
Результат Capture

Get() публичный статический Метод

Shows details for an order, by ID.
public static Get ( APIContext apiContext, string orderId ) : Order
apiContext APIContext APIContext used for the API call.
orderId string The ID of the order for which to show details.
Результат Order

Void() публичный Метод

Voids, or cancels, an order, by ID. You cannot void an order if a payment has already been partially or fully captured.
public Void ( APIContext apiContext ) : Order
apiContext APIContext APIContext used for the API call.
Результат Order

Void() публичный статический Метод

Voids (cancels) an Order.
public static Void ( APIContext apiContext, string orderId ) : Order
apiContext APIContext APIContext used for the API call.
orderId string ID of the order to void.
Результат Order