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

[DEPRECATED] Represents a credit card to fund a payment. Use Payment Card instead.

See PayPal Developer documentation for more information.

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

Private Properties

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

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

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

Creates a new Credit Card Resource (aka Tokenize).

Create ( APIContext apiContext, CreditCard creditCard ) : CreditCard

Creates a new Credit Card Resource (aka Tokenize).

Delete ( APIContext apiContext ) : void

Delete the Credit Card resource for the given identifier.

Delete ( APIContext apiContext, string creditCardId ) : void

Delete the Credit Card resource for the given identifier.

Get ( APIContext apiContext, string creditCardId ) : CreditCard

Obtain the Credit Card resource for the given identifier.

List ( APIContext apiContext, int pageSize = 10, int page = 1, string startTime = "", string endTime = "", string sortOrder = "asc", string sortBy = "create_time", string merchantId = "", string externalCardId = "", string externalCustomerId = "", bool totalRequired = true ) : PayPal.Api.CreditCardList

Retrieves a list of Credit Card resources.

Update ( APIContext apiContext, PatchRequest patchRequest ) : CreditCard

Update information in a previously saved card. Only the modified fields need to be passed in the request.

Update ( APIContext apiContext, string creditCardId, PatchRequest patchRequest ) : CreditCard

Update information in a previously saved card. Only the modified fields need to be passed in the request.

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

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

Creates a new Credit Card Resource (aka Tokenize).
public Create ( APIContext apiContext ) : CreditCard
apiContext APIContext APIContext used for the API call.
Результат CreditCard

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

Creates a new Credit Card Resource (aka Tokenize).
public static Create ( APIContext apiContext, CreditCard creditCard ) : CreditCard
apiContext APIContext APIContext used for the API call.
creditCard CreditCard CreditCard object to be used to create the PayPal resource.
Результат CreditCard

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

Delete the Credit Card resource for the given identifier.
public Delete ( APIContext apiContext ) : void
apiContext APIContext APIContext used for the API call.
Результат void

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

Delete the Credit Card resource for the given identifier.
public static Delete ( APIContext apiContext, string creditCardId ) : void
apiContext APIContext APIContext used for the API call.
creditCardId string Identifier of the credit card resource to obtain the data for.
Результат void

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

Obtain the Credit Card resource for the given identifier.
public static Get ( APIContext apiContext, string creditCardId ) : CreditCard
apiContext APIContext APIContext used for the API call.
creditCardId string Identifier of the credit card resource to obtain the data for.
Результат CreditCard

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

Retrieves a list of Credit Card resources.
public static List ( APIContext apiContext, int pageSize = 10, int page = 1, string startTime = "", string endTime = "", string sortOrder = "asc", string sortBy = "create_time", string merchantId = "", string externalCardId = "", string externalCustomerId = "", bool totalRequired = true ) : PayPal.Api.CreditCardList
apiContext APIContext APIContext used for the API call.
pageSize int Number of items to be returned in the current page size, by a GET operation.
page int The page number to be retrieved, for the list of items, by the current GET request.
startTime string Resource creation time as ISO8601 date-time format (ex: 1994-11-05T13:15:30Z) that indicates the start of a range of results.
endTime string Resource creation time as ISO8601 date-time format (ex: 1994-11-05T13:15:30Z) that indicates the end of a range of results.
sortOrder string Sort based on order of results. Options include 'asc' for ascending order or 'desc' for descending order.
sortBy string Sort based on 'create_time' or 'update_time'.
merchantId string Merchant identifier to filter the search results in list operations.
externalCardId string Externally provided card identifier to filter the search results in list operations.
externalCustomerId string Externally provided customer identifier to filter the search results in list operations.
totalRequired bool Identifies if total count is required or not. Defaults to true.
Результат PayPal.Api.CreditCardList

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

Update information in a previously saved card. Only the modified fields need to be passed in the request.
public Update ( APIContext apiContext, PatchRequest patchRequest ) : CreditCard
apiContext APIContext APIContext used for the API call.
patchRequest PatchRequest PatchRequest
Результат CreditCard

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

Update information in a previously saved card. Only the modified fields need to be passed in the request.
public static Update ( APIContext apiContext, string creditCardId, PatchRequest patchRequest ) : CreditCard
apiContext APIContext APIContext used for the API call.
creditCardId string ID fo the credit card to update.
patchRequest PatchRequest PatchRequest
Результат CreditCard