C# 클래스 DineroPortableClientSDK.Products.DineroProducts

상속: DineroLibaryBase
파일 보기 프로젝트 열기: DineroRegnskab/dinero-csharp-sdk

공개 메소드들

메소드 설명
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