C# Класс DineroPortableClientSDK.TradeOffers.DineroTradeOffers

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

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

Метод Описание
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