C# Class ShopifySharp.ShopifyApplicationCreditService

A service for offering credits for payments made via the Application Charge, Recurring Application Charge, and Usage Charge APIs.
Inheritance: ShopifySharp.ShopifyService
Exibir arquivo Open project: nozzlegear/ShopifySharp

Public Methods

Method Description
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.

Method Details

CreateAsync() public method

Creates a new ShopifyApplicationCredit.
public CreateAsync ( ShopifyApplicationCredit credit ) : Task
credit ShopifyApplicationCredit A new . Id should be set to null.
return Task

GetAsync() public method

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.
return Task

ListAsync() public method

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.
return Task>

ShopifyApplicationCreditService() public method

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.
return RestSharp