C# Класс ShopifySharp.ShopifyApplicationCreditService

A service for offering credits for payments made via the Application Charge, Recurring Application Charge, and Usage Charge APIs.
Наследование: ShopifySharp.ShopifyService
Показать файл Открыть проект

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

Метод Описание
CreateAsync ( ShopifyApplicationCredit credit ) : Task

Creates a new ShopifyApplicationCredit.

GetAsync ( long id, string fields = null ) : Task

Retrieves the application credit with the given id.

ListAsync ( string fields = null ) : Task>

Gets a list of all past and present application credits.

ShopifyApplicationCreditService ( string myShopifyUrl, string shopAccessToken ) : RestSharp

Creates a new instance of ShopifyApplicationCreditService.

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

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

Creates a new ShopifyApplicationCredit.
public CreateAsync ( ShopifyApplicationCredit credit ) : Task
credit ShopifyApplicationCredit A new . Id should be set to null.
Результат Task

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

Retrieves the application credit with the given id.
public GetAsync ( long id, string fields = null ) : Task
id long The application credit's id.
fields string A comma-separated list of fields to include in the response.
Результат Task

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

Gets a list of all past and present application credits.
public ListAsync ( string fields = null ) : Task>
fields string A comma-separated list of fields to include in the response.
Результат Task>

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

Creates a new instance of ShopifyApplicationCreditService.
public ShopifyApplicationCreditService ( string myShopifyUrl, string shopAccessToken ) : RestSharp
myShopifyUrl string The shop's *.myshopify.com URL.
shopAccessToken string An API access token for the shop.
Результат RestSharp