C# Класс DineroPortableClientSDK.Products.DineroProducts

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

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

Метод Описание
Add ( ProductCreateModel modelToCreate ) : ProductCreatedResult

Add a new product to the organization

AddAsync ( ProductCreateModel modelToCreate ) : Task

Add a new product to the organization

Delete ( System.Guid guid ) : void

Delete a product in the organization.

DeleteAsync ( System.Guid guid ) : System.Threading.Tasks.Task

Delete a product in the organization.

DineroProducts ( Dinero dinero ) : System
Get ( System.Guid guid ) : Product

Gets Product Information for the product with the given Id

GetAsync ( System.Guid guid ) : Task

Gets Product Information for the product with the given Id

GetList ( string fields = null, string queryFilter = null, System.DateTime changesSince = null, int page = null, int pageSize = null ) : ProductCollection

Retrieve a list of products for the organization.

GetListAsync ( string fields = null, string queryFilter = null, System.DateTime changesSince = null, int page = null, int pageSize = null ) : Task

Retrieve a list of products for the organization.

Update ( System.Guid guid, ProductUpdateModel productUpdateModel ) : void

Update a product in the organization.

UpdateAsync ( System.Guid guid, ProductUpdateModel productUpdateModel ) : System.Threading.Tasks.Task

Update a product in the organization.

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

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

Add a new product to the organization
public Add ( ProductCreateModel modelToCreate ) : ProductCreatedResult
modelToCreate ProductCreateModel Content of the new product
Результат ProductCreatedResult

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

Add a new product to the organization
public AddAsync ( ProductCreateModel modelToCreate ) : Task
modelToCreate ProductCreateModel Content of the new product
Результат Task

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

Delete a product in the organization.
public Delete ( System.Guid guid ) : void
guid System.Guid The guid of the product to delete
Результат void

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

Delete a product in the organization.
public DeleteAsync ( System.Guid guid ) : System.Threading.Tasks.Task
guid System.Guid The guid of the product to delete
Результат System.Threading.Tasks.Task

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

public DineroProducts ( Dinero dinero ) : System
dinero Dinero
Результат System

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

Gets Product Information for the product with the given Id
public Get ( System.Guid guid ) : Product
guid System.Guid Unique identifier for the Product
Результат Product

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

Gets Product Information for the product with the given Id
public GetAsync ( System.Guid guid ) : Task
guid System.Guid Unique identifier for the Product
Результат Task

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

Retrieve a list of products for the organization.
public GetList ( string fields = null, string queryFilter = null, System.DateTime changesSince = null, int page = null, int pageSize = null ) : ProductCollection
fields string A comma separated list of fields to include in the response. /// Possible values are Name,Quantity,Unit,AccountNumber,BaseAmountValue,CreatedAt,UpdatedAt and DeletedAt. /// Notice that it's not case sensitive, the property name will be returned the way you request it. If left empty it defaults to name (notice small start letter).
queryFilter string Filter specific for products. Filtering can be applied to following fields: name,quantity,productnumber,unitkey,accountid,productid /// ExternalReference . See API documentation for filtering format. If left empty no filtering is applied.
changesSince System.DateTime [Generic Filter Option] Only return products that was created, deleted or updated at or after given time. /// If left empty, this filter will not be applied, and products will be returned regardless of change history. /// The time must be UTC and in the format 'YYYY-MM-DDTHH:mm:ssZ' example: '2015-08-18T06:36:22Z'.
page int The 0-based page number
pageSize int The maximum number of items to include in a page. Maximum 1000.
Результат ProductCollection

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

Retrieve a list of products for the organization.
public GetListAsync ( string fields = null, string queryFilter = null, System.DateTime changesSince = null, int page = null, int pageSize = null ) : Task
fields string A comma separated list of fields to include in the response. /// Possible values are Name,Quantity,Unit,AccountNumber,BaseAmountValue,CreatedAt,UpdatedAt and DeletedAt. /// Notice that it's not case sensitive, the property name will be returned the way you request it. If left empty it defaults to name (notice small start letter).
queryFilter string Filter specific for products. Filtering can be applied to following fields: name,quantity,productnumber,unitkey,accountid,productid /// ExternalReference . See API documentation for filtering format. If left empty no filtering is applied.
changesSince System.DateTime [Generic Filter Option] Only return products that was created, deleted or updated at or after given time. /// If left empty, this filter will not be applied, and products will be returned regardless of change history. /// The time must be UTC and in the format 'YYYY-MM-DDTHH:mm:ssZ' example: '2015-08-18T06:36:22Z'.
page int The 0-based page number
pageSize int The maximum number of items to include in a page. Maximum 1000.
Результат Task

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

Update a product in the organization.
public Update ( System.Guid guid, ProductUpdateModel productUpdateModel ) : void
guid System.Guid The guid of the product to update
productUpdateModel ProductUpdateModel The updated product
Результат void

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

Update a product in the organization.
public UpdateAsync ( System.Guid guid, ProductUpdateModel productUpdateModel ) : System.Threading.Tasks.Task
guid System.Guid The guid of the product to update
productUpdateModel ProductUpdateModel The updated product
Результат System.Threading.Tasks.Task