C# Class DineroPortableClientSDK.Products.DineroProducts

Inheritance: DineroLibaryBase
Afficher le fichier Open project: DineroRegnskab/dinero-csharp-sdk

Méthodes publiques

Méthode Description
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.

Method Details

Add() public méthode

Add a new product to the organization
public Add ( ProductCreateModel modelToCreate ) : ProductCreatedResult
modelToCreate ProductCreateModel Content of the new product
Résultat ProductCreatedResult

AddAsync() public méthode

Add a new product to the organization
public AddAsync ( ProductCreateModel modelToCreate ) : Task
modelToCreate ProductCreateModel Content of the new product
Résultat Task

Delete() public méthode

Delete a product in the organization.
public Delete ( System.Guid guid ) : void
guid System.Guid The guid of the product to delete
Résultat void

DeleteAsync() public méthode

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

DineroProducts() public méthode

public DineroProducts ( Dinero dinero ) : System
dinero Dinero
Résultat System

Get() public méthode

Gets Product Information for the product with the given Id
public Get ( System.Guid guid ) : Product
guid System.Guid Unique identifier for the Product
Résultat Product

GetAsync() public méthode

Gets Product Information for the product with the given Id
public GetAsync ( System.Guid guid ) : Task
guid System.Guid Unique identifier for the Product
Résultat Task

GetList() public méthode

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

GetListAsync() public méthode

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

Update() public méthode

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
Résultat void

UpdateAsync() public méthode

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