C# 클래스 DineroPortableClientSDK.TradeOffers.DineroTradeOffers

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

공개 메소드들

메소드 설명
Add ( TradeOfferCreate modelToCreate ) : CreatedResponse

Add the tradeoffer to the organization's tradeoffers.

AddAsync ( TradeOfferCreate modelToCreate ) : Task

Add the tradeoffer to the organization's tradeoffers.

Delete ( System.Guid guid, string timestamp = null ) : void

Delete trade offer.

DeleteAsync ( System.Guid guid, string timestamp = null ) : System.Threading.Tasks.Task

Delete trade offer.

DownloadPdf ( System.Guid guid ) : Stream

Get a stream of the tradeoffer pdf. This endpoint is not available for API partners yet.

DownloadPdfAsync ( System.Guid guid ) : Task

Get a stream of the tradeoffer pdf. This endpoint is not available for API partners yet.

GenerateInvoice ( System.Guid guid, string timestamp = null ) : CreatedResponse

Generate an invoice based on the given trade offer guid.

GenerateInvoiceAsync ( System.Guid guid, string timestamp = null ) : Task

Generate an invoice based on the given trade offer guid.

Get ( System.Guid guid ) : TradeOffer

Gets the organization's tradeoffer with the given guid.

GetAsync ( System.Guid guid ) : Task

Gets the organization's tradeoffer with the given guid.

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

Retrieve a list of trade offers for the organization.

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

Retrieve a list of trade offers for the organization.

SendEmail ( System.Guid guid, MailOut mailoutModel = null ) : void

Send an email with a link to the tradeoffer

SendEmailAsync ( System.Guid guid, MailOut mailoutModel = null ) : System.Threading.Tasks.Task

Send an email with a link to the tradeoffer

Update ( System.Guid guid, TradeOfferUpdate updatedModel ) : UpdatedResponse

Update the organization's trade offer.

UpdateAsync ( System.Guid guid, TradeOfferUpdate updatedModel ) : Task

Update the organization's trade offer.

비공개 메소드들

메소드 설명
DineroTradeOffers ( Dinero dinero ) : System

메소드 상세

Add() 공개 메소드

Add the tradeoffer to the organization's tradeoffers.
public Add ( TradeOfferCreate modelToCreate ) : CreatedResponse
modelToCreate TradeOfferCreate The tradeoffer to create
리턴 DineroPortableClientSDK.ResponseModels.CreatedResponse

AddAsync() 공개 메소드

Add the tradeoffer to the organization's tradeoffers.
public AddAsync ( TradeOfferCreate modelToCreate ) : Task
modelToCreate TradeOfferCreate The tradeoffer to create
리턴 Task

Delete() 공개 메소드

Delete trade offer.
public Delete ( System.Guid guid, string timestamp = null ) : void
guid System.Guid The tradeoffer guid
timestamp string optional timestamp to verify version before deletion
리턴 void

DeleteAsync() 공개 메소드

Delete trade offer.
public DeleteAsync ( System.Guid guid, string timestamp = null ) : System.Threading.Tasks.Task
guid System.Guid The tradeoffer guid
timestamp string optional timestamp to verify version before deletion
리턴 System.Threading.Tasks.Task

DownloadPdf() 공개 메소드

Get a stream of the tradeoffer pdf. This endpoint is not available for API partners yet.
public DownloadPdf ( System.Guid guid ) : Stream
guid System.Guid tradeoffer guid
리턴 Stream

DownloadPdfAsync() 공개 메소드

Get a stream of the tradeoffer pdf. This endpoint is not available for API partners yet.
public DownloadPdfAsync ( System.Guid guid ) : Task
guid System.Guid tradeoffer guid
리턴 Task

GenerateInvoice() 공개 메소드

Generate an invoice based on the given trade offer guid.
public GenerateInvoice ( System.Guid guid, string timestamp = null ) : CreatedResponse
guid System.Guid guid of the trade offer
timestamp string optional timestamp to verify version before generating invoice
리턴 DineroPortableClientSDK.ResponseModels.CreatedResponse

GenerateInvoiceAsync() 공개 메소드

Generate an invoice based on the given trade offer guid.
public GenerateInvoiceAsync ( System.Guid guid, string timestamp = null ) : Task
guid System.Guid guid of the trade offer
timestamp string optional timestamp to verify version before generating invoice
리턴 Task

Get() 공개 메소드

Gets the organization's tradeoffer with the given guid.
public Get ( System.Guid guid ) : TradeOffer
guid System.Guid The tradeoffer guid
리턴 TradeOffer

GetAsync() 공개 메소드

Gets the organization's tradeoffer with the given guid.
public GetAsync ( System.Guid guid ) : Task
guid System.Guid The tradeoffer guid
리턴 Task

GetList() 공개 메소드

Retrieve a list of trade offers for the organization.
public GetList ( string fields = null, string queryFilter = null, System.DateTime changesSince = null, bool deletedOnly = null, int page = null, int pageSize = null ) : TradeOfferCollection
fields string A comma separated list of fields to include in the response. /// Possible values are: /// number, guid, timeStamp, contactName, contactGuid, address, date, comment, description, externalReference, language, currency, /// totalExclVat, totalVatableAmount, totalInclVat, totalNonVatableAmount, totalVat, hasGeneratedAnyVouchers, /// createdAt, updatedAt and deletedAt. If left empty it defaults to guid, contactName, date, description. Note that ProductLines and TotalLines are NOT available when fecthing a list. ///
queryFilter string Filter specific for contacts. Filtering can be applied to following fields: /// ExternalReference, ContactName, Address, Comment, Description, HasGeneratedAnyVouchers and Currency. /// See API documentation for filtering format. /// If left empty no filtering is applied.
changesSince System.DateTime [Generic Filter Option] Only return trade offers that was created, deleted or updated at or after given time. /// If left empty, this filter will not be applied, and trade offers 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'.
deletedOnly bool [Generic Filter Option] Only select deleted trade offers. If left empty, will defaults to false.
page int The 0-based page number
pageSize int The maximum number of items to include in a page. Maximum 1000.
리턴 TradeOfferCollection

GetListAsync() 공개 메소드

Retrieve a list of trade offers for the organization.
public GetListAsync ( string fields = null, string queryFilter = null, System.DateTime changesSince = null, bool deletedOnly = null, int page = null, int pageSize = null ) : Task
fields string A comma separated list of fields to include in the response. /// Possible values are: /// number, guid, timeStamp, contactName, contactGuid, address, date, comment, description, externalReference, language, currency, /// totalExclVat, totalVatableAmount, totalInclVat, totalNonVatableAmount, totalVat, hasGeneratedAnyVouchers, /// createdAt, updatedAt and deletedAt. If left empty it defaults to guid, contactName, date, description. Note that ProductLines and TotalLines are NOT available when fecthing a list. ///
queryFilter string Filter specific for contacts. Filtering can be applied to following fields: /// ExternalReference, ContactName, Address, Comment, Description, HasGeneratedAnyVouchers and Currency. /// See API documentation for filtering format. /// If left empty no filtering is applied.
changesSince System.DateTime [Generic Filter Option] Only return trade offers that was created, deleted or updated at or after given time. /// If left empty, this filter will not be applied, and trade offers 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'.
deletedOnly bool [Generic Filter Option] Only select deleted trade offers. If left empty, will defaults to false.
page int The 0-based page number
pageSize int The maximum number of items to include in a page. Maximum 1000.
리턴 Task

SendEmail() 공개 메소드

Send an email with a link to the tradeoffer
public SendEmail ( System.Guid guid, MailOut mailoutModel = null ) : void
guid System.Guid Guid of the tradeoffer
mailoutModel DineroPortableClientSDK.Mailouts.MailOut Model with data to send email of the tradeoffer
리턴 void

SendEmailAsync() 공개 메소드

Send an email with a link to the tradeoffer
public SendEmailAsync ( System.Guid guid, MailOut mailoutModel = null ) : System.Threading.Tasks.Task
guid System.Guid Guid of the tradeoffer
mailoutModel DineroPortableClientSDK.Mailouts.MailOut Model with data to send email of the tradeoffer
리턴 System.Threading.Tasks.Task

Update() 공개 메소드

Update the organization's trade offer.
public Update ( System.Guid guid, TradeOfferUpdate updatedModel ) : UpdatedResponse
guid System.Guid The guid of the trade offer to update
updatedModel TradeOfferUpdate The updated trade offer
리턴 UpdatedResponse

UpdateAsync() 공개 메소드

Update the organization's trade offer.
public UpdateAsync ( System.Guid guid, TradeOfferUpdate updatedModel ) : Task
guid System.Guid The guid of the trade offer to update
updatedModel TradeOfferUpdate The updated trade offer
리턴 Task