mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-06-28 14:20:12 +00:00
Merge pull request #33134 from bennyn/master
feat(coinbase): Add fees, timestamps and IDs
This commit is contained in:
50
types/coinbase/index.d.ts
vendored
50
types/coinbase/index.d.ts
vendored
@@ -878,7 +878,7 @@ export class Buy implements Resource {
|
||||
/**
|
||||
* Associated transaction (e.g. a bank, fiat account)
|
||||
*/
|
||||
transaction: ResourceRef;
|
||||
transaction: ResourceRef | null;
|
||||
|
||||
/**
|
||||
* Amount in bitcoin, litecoin or ethereum
|
||||
@@ -896,7 +896,7 @@ export class Buy implements Resource {
|
||||
subtotal: MoneyHash;
|
||||
|
||||
/**
|
||||
* Fee associated to this buy
|
||||
* Fees associated to this buy
|
||||
*/
|
||||
fees: Fee[];
|
||||
|
||||
@@ -935,6 +935,26 @@ export class Buy implements Resource {
|
||||
*/
|
||||
requires_completion_step: boolean;
|
||||
|
||||
/**
|
||||
* Transfer identifier
|
||||
*/
|
||||
id: string;
|
||||
|
||||
/**
|
||||
* Reference code shown in user's dashboard.
|
||||
*/
|
||||
user_reference: string;
|
||||
|
||||
/**
|
||||
* ISO timestamp
|
||||
*/
|
||||
created_at: string;
|
||||
|
||||
/**
|
||||
* ISO timestamp
|
||||
*/
|
||||
updated_at: string;
|
||||
|
||||
/**
|
||||
* Completes a buy that is created in commit: false state.
|
||||
* If the exchange rate has changed since the buy was created, this call will fail with the error “The exchange rate updated while you
|
||||
@@ -995,7 +1015,7 @@ export class Sell implements Resource {
|
||||
/**
|
||||
* Associated transaction (e.g. a bank, fiat account)
|
||||
*/
|
||||
transaction: ResourceRef;
|
||||
transaction: ResourceRef | null;
|
||||
|
||||
/**
|
||||
* Amount in bitcoin, litecoin or ethereum
|
||||
@@ -1013,9 +1033,9 @@ export class Sell implements Resource {
|
||||
subtotal: MoneyHash;
|
||||
|
||||
/**
|
||||
* Fee associated to this sell
|
||||
* Fees associated to this sell
|
||||
*/
|
||||
fee: MoneyHash;
|
||||
fees: MoneyHash[];
|
||||
|
||||
/**
|
||||
* Has this sell been committed?
|
||||
@@ -1032,6 +1052,26 @@ export class Sell implements Resource {
|
||||
*/
|
||||
payout_at?: string;
|
||||
|
||||
/**
|
||||
* Transfer identifier
|
||||
*/
|
||||
id: string;
|
||||
|
||||
/**
|
||||
* Reference code shown in user's dashboard.
|
||||
*/
|
||||
user_reference: string;
|
||||
|
||||
/**
|
||||
* ISO timestamp
|
||||
*/
|
||||
created_at: string;
|
||||
|
||||
/**
|
||||
* ISO timestamp
|
||||
*/
|
||||
updated_at: string;
|
||||
|
||||
/**
|
||||
* Completes a sell that is created in commit: false state.
|
||||
* If the exchange rate has changed since the sell was created, this call will fail with the error “The exchange rate updated while you
|
||||
|
||||
Reference in New Issue
Block a user