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
Afficher le fichier Open project: nozzlegear/ShopifySharp

Méthodes publiques

Méthode 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 méthode

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

GetAsync() public méthode

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.
Résultat Task

ListAsync() public méthode

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.
Résultat Task>

ShopifyApplicationCreditService() public méthode

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.
Résultat RestSharp