Esempio n. 1
0
 /// <summary>
 /// Receipt creation
 /// </summary>
 /// <param name="receipt">Receipt information, <see cref="SettlementReceipt"/></param>
 /// <param name="idempotenceKey">Idempotence key, use <value>null</value> to generate a new one</param>
 /// <param name="cancellationToken"><see cref="CancellationToken"/></param>
 /// <returns><see cref="SettlementReceipt"/></returns>
 public Task <SettlementReceipt> CreateSettlementReceiptAsync(SettlementReceipt receipt, string idempotenceKey = null,
                                                              CancellationToken cancellationToken = default(CancellationToken))
 => QueryAsync <SettlementReceipt>(HttpMethod.Post, receipt, "receipts", idempotenceKey, cancellationToken);
Esempio n. 2
0
 /// <summary>
 /// Receipt creation
 /// </summary>
 /// <param name="receipt">Receipt information, <see cref="SettlementReceipt"/></param>
 /// <param name="idempotenceKey">Idempotence key, use <value>null</value> to generate a new one</param>
 /// <returns><see cref="SettlementReceipt"/></returns>
 public SettlementReceipt CreateSettlementReceipt(SettlementReceipt receipt, string idempotenceKey = null)
 => Query <SettlementReceipt>("POST", receipt, "receipts", idempotenceKey);