@dynamic-labs/sdk-api-core 0.0.1042 → 0.0.1044
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/apis/SDKApi.cjs +225 -287
- package/src/apis/SDKApi.cjs.map +1 -1
- package/src/apis/SDKApi.d.ts +112 -140
- package/src/apis/SDKApi.js +225 -287
- package/src/apis/SDKApi.js.map +1 -1
- package/src/apis/WaasApi.cjs +5 -4
- package/src/apis/WaasApi.cjs.map +1 -1
- package/src/apis/WaasApi.js +5 -4
- package/src/apis/WaasApi.js.map +1 -1
- package/src/index.cjs +96 -68
- package/src/index.cjs.map +1 -1
- package/src/index.js +19 -13
- package/src/index.js.map +1 -1
- package/src/models/AttachSourceRequest.cjs +3 -3
- package/src/models/AttachSourceRequest.cjs.map +1 -1
- package/src/models/AttachSourceRequest.d.ts +3 -3
- package/src/models/AttachSourceRequest.js +3 -3
- package/src/models/AttachSourceRequest.js.map +1 -1
- package/src/models/CheckoutTransaction.cjs +24 -24
- package/src/models/CheckoutTransaction.cjs.map +1 -1
- package/src/models/CheckoutTransaction.d.ts +24 -24
- package/src/models/CheckoutTransaction.js +24 -24
- package/src/models/CheckoutTransaction.js.map +1 -1
- package/src/models/Flow.cjs +109 -0
- package/src/models/Flow.cjs.map +1 -0
- package/src/models/Flow.d.ts +231 -0
- package/src/models/Flow.js +103 -0
- package/src/models/Flow.js.map +1 -0
- package/src/models/FlowAttachSourceRequest.cjs +44 -0
- package/src/models/FlowAttachSourceRequest.cjs.map +1 -0
- package/src/models/FlowAttachSourceRequest.d.ts +54 -0
- package/src/models/FlowAttachSourceRequest.js +38 -0
- package/src/models/FlowAttachSourceRequest.js.map +1 -0
- package/src/models/FlowCreateRequest.cjs +45 -0
- package/src/models/FlowCreateRequest.cjs.map +1 -0
- package/src/models/FlowCreateRequest.d.ts +59 -0
- package/src/models/FlowCreateRequest.js +39 -0
- package/src/models/FlowCreateRequest.js.map +1 -0
- package/src/models/FlowCreateResponse.cjs +33 -0
- package/src/models/FlowCreateResponse.cjs.map +1 -0
- package/src/models/FlowCreateResponse.d.ts +28 -0
- package/src/models/FlowCreateResponse.js +27 -0
- package/src/models/FlowCreateResponse.js.map +1 -0
- package/src/models/{CheckoutTransactionExchangeSource.cjs → FlowExchangeSource.cjs} +7 -7
- package/src/models/FlowExchangeSource.cjs.map +1 -0
- package/src/models/FlowExchangeSource.d.ts +33 -0
- package/src/models/{CheckoutTransactionExchangeSource.js → FlowExchangeSource.js} +5 -5
- package/src/models/FlowExchangeSource.js.map +1 -0
- package/src/models/FlowExecutionStateEnum.cjs +47 -0
- package/src/models/FlowExecutionStateEnum.cjs.map +1 -0
- package/src/models/{CheckoutExecutionStateEnum.d.ts → FlowExecutionStateEnum.d.ts} +5 -5
- package/src/models/FlowExecutionStateEnum.js +41 -0
- package/src/models/FlowExecutionStateEnum.js.map +1 -0
- package/src/models/{CheckoutFailure.cjs → FlowFailure.cjs} +7 -7
- package/src/models/FlowFailure.cjs.map +1 -0
- package/src/models/{CheckoutFailure.d.ts → FlowFailure.d.ts} +12 -12
- package/src/models/{CheckoutFailure.js → FlowFailure.js} +5 -5
- package/src/models/FlowFailure.js.map +1 -0
- package/src/models/FlowFeeBreakdown.cjs +36 -0
- package/src/models/FlowFeeBreakdown.cjs.map +1 -0
- package/src/models/FlowFeeBreakdown.d.ts +34 -0
- package/src/models/FlowFeeBreakdown.js +30 -0
- package/src/models/FlowFeeBreakdown.js.map +1 -0
- package/src/models/{CheckoutGasEstimate.cjs → FlowGasEstimate.cjs} +7 -7
- package/src/models/FlowGasEstimate.cjs.map +1 -0
- package/src/models/{CheckoutGasEstimate.d.ts → FlowGasEstimate.d.ts} +9 -9
- package/src/models/{CheckoutGasEstimate.js → FlowGasEstimate.js} +5 -5
- package/src/models/FlowGasEstimate.js.map +1 -0
- package/src/models/FlowModeEnum.cjs +41 -0
- package/src/models/FlowModeEnum.cjs.map +1 -0
- package/src/models/FlowModeEnum.d.ts +24 -0
- package/src/models/FlowModeEnum.js +35 -0
- package/src/models/FlowModeEnum.js.map +1 -0
- package/src/models/{PrepareSigningRequest.cjs → FlowPrepareSigningRequest.cjs} +7 -7
- package/src/models/FlowPrepareSigningRequest.cjs.map +1 -0
- package/src/models/FlowPrepareSigningRequest.d.ts +33 -0
- package/src/models/{PrepareSigningRequest.js → FlowPrepareSigningRequest.js} +5 -5
- package/src/models/FlowPrepareSigningRequest.js.map +1 -0
- package/src/models/{CheckoutTransactionQuote.cjs → FlowQuote.cjs} +10 -10
- package/src/models/FlowQuote.cjs.map +1 -0
- package/src/models/{CheckoutTransactionQuote.d.ts → FlowQuote.d.ts} +18 -18
- package/src/models/{CheckoutTransactionQuote.js → FlowQuote.js} +8 -8
- package/src/models/FlowQuote.js.map +1 -0
- package/src/models/{QuoteRequest.cjs → FlowQuoteRequest.cjs} +7 -7
- package/src/models/FlowQuoteRequest.cjs.map +1 -0
- package/src/models/FlowQuoteRequest.d.ts +39 -0
- package/src/models/{QuoteRequest.js → FlowQuoteRequest.js} +5 -5
- package/src/models/FlowQuoteRequest.js.map +1 -0
- package/src/models/{RecordBroadcastRequest.cjs → FlowRecordBroadcastRequest.cjs} +7 -7
- package/src/models/FlowRecordBroadcastRequest.cjs.map +1 -0
- package/src/models/FlowRecordBroadcastRequest.d.ts +27 -0
- package/src/models/{RecordBroadcastRequest.js → FlowRecordBroadcastRequest.js} +5 -5
- package/src/models/FlowRecordBroadcastRequest.js.map +1 -0
- package/src/models/FlowRiskStateEnum.cjs +43 -0
- package/src/models/FlowRiskStateEnum.cjs.map +1 -0
- package/src/models/{CheckoutRiskStateEnum.d.ts → FlowRiskStateEnum.d.ts} +5 -5
- package/src/models/FlowRiskStateEnum.js +37 -0
- package/src/models/FlowRiskStateEnum.js.map +1 -0
- package/src/models/{CheckoutSettlementData.cjs → FlowSettlementData.cjs} +7 -7
- package/src/models/FlowSettlementData.cjs.map +1 -0
- package/src/models/{CheckoutSettlementData.d.ts → FlowSettlementData.d.ts} +10 -10
- package/src/models/{CheckoutSettlementData.js → FlowSettlementData.js} +5 -5
- package/src/models/FlowSettlementData.js.map +1 -0
- package/src/models/FlowSettlementStateEnum.cjs +45 -0
- package/src/models/FlowSettlementStateEnum.cjs.map +1 -0
- package/src/models/{CheckoutSettlementStateEnum.d.ts → FlowSettlementStateEnum.d.ts} +5 -5
- package/src/models/FlowSettlementStateEnum.js +39 -0
- package/src/models/FlowSettlementStateEnum.js.map +1 -0
- package/src/models/FlowSourceResponse.cjs +37 -0
- package/src/models/FlowSourceResponse.cjs.map +1 -0
- package/src/models/FlowSourceResponse.d.ts +40 -0
- package/src/models/FlowSourceResponse.js +31 -0
- package/src/models/FlowSourceResponse.js.map +1 -0
- package/src/models/FlowSourceTypeEnum.cjs +41 -0
- package/src/models/FlowSourceTypeEnum.cjs.map +1 -0
- package/src/models/FlowSourceTypeEnum.d.ts +24 -0
- package/src/models/FlowSourceTypeEnum.js +35 -0
- package/src/models/FlowSourceTypeEnum.js.map +1 -0
- package/src/models/index.d.ts +19 -13
- package/src/models/CheckoutExecutionStateEnum.cjs +0 -47
- package/src/models/CheckoutExecutionStateEnum.cjs.map +0 -1
- package/src/models/CheckoutExecutionStateEnum.js +0 -41
- package/src/models/CheckoutExecutionStateEnum.js.map +0 -1
- package/src/models/CheckoutFailure.cjs.map +0 -1
- package/src/models/CheckoutFailure.js.map +0 -1
- package/src/models/CheckoutFeeBreakdown.cjs +0 -36
- package/src/models/CheckoutFeeBreakdown.cjs.map +0 -1
- package/src/models/CheckoutFeeBreakdown.d.ts +0 -34
- package/src/models/CheckoutFeeBreakdown.js +0 -30
- package/src/models/CheckoutFeeBreakdown.js.map +0 -1
- package/src/models/CheckoutGasEstimate.cjs.map +0 -1
- package/src/models/CheckoutGasEstimate.js.map +0 -1
- package/src/models/CheckoutRiskStateEnum.cjs +0 -43
- package/src/models/CheckoutRiskStateEnum.cjs.map +0 -1
- package/src/models/CheckoutRiskStateEnum.js +0 -37
- package/src/models/CheckoutRiskStateEnum.js.map +0 -1
- package/src/models/CheckoutSettlementData.cjs.map +0 -1
- package/src/models/CheckoutSettlementData.js.map +0 -1
- package/src/models/CheckoutSettlementStateEnum.cjs +0 -45
- package/src/models/CheckoutSettlementStateEnum.cjs.map +0 -1
- package/src/models/CheckoutSettlementStateEnum.js +0 -39
- package/src/models/CheckoutSettlementStateEnum.js.map +0 -1
- package/src/models/CheckoutSourceTypeEnum.cjs +0 -41
- package/src/models/CheckoutSourceTypeEnum.cjs.map +0 -1
- package/src/models/CheckoutSourceTypeEnum.d.ts +0 -24
- package/src/models/CheckoutSourceTypeEnum.js +0 -35
- package/src/models/CheckoutSourceTypeEnum.js.map +0 -1
- package/src/models/CheckoutTransactionExchangeSource.cjs.map +0 -1
- package/src/models/CheckoutTransactionExchangeSource.d.ts +0 -33
- package/src/models/CheckoutTransactionExchangeSource.js.map +0 -1
- package/src/models/CheckoutTransactionQuote.cjs.map +0 -1
- package/src/models/CheckoutTransactionQuote.js.map +0 -1
- package/src/models/PrepareSigningRequest.cjs.map +0 -1
- package/src/models/PrepareSigningRequest.d.ts +0 -33
- package/src/models/PrepareSigningRequest.js.map +0 -1
- package/src/models/QuoteRequest.cjs.map +0 -1
- package/src/models/QuoteRequest.d.ts +0 -40
- package/src/models/QuoteRequest.js.map +0 -1
- package/src/models/RecordBroadcastRequest.cjs.map +0 -1
- package/src/models/RecordBroadcastRequest.d.ts +0 -27
- package/src/models/RecordBroadcastRequest.js.map +0 -1
|
@@ -0,0 +1,231 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Dashboard API
|
|
3
|
+
* Dashboard API documentation
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
import { ChainEnum } from './ChainEnum';
|
|
13
|
+
import { DestinationConfigInput } from './DestinationConfigInput';
|
|
14
|
+
import { FlowExchangeSource } from './FlowExchangeSource';
|
|
15
|
+
import { FlowExecutionStateEnum } from './FlowExecutionStateEnum';
|
|
16
|
+
import { FlowFailure } from './FlowFailure';
|
|
17
|
+
import { FlowModeEnum } from './FlowModeEnum';
|
|
18
|
+
import { FlowQuote } from './FlowQuote';
|
|
19
|
+
import { FlowRiskStateEnum } from './FlowRiskStateEnum';
|
|
20
|
+
import { FlowSettlementData } from './FlowSettlementData';
|
|
21
|
+
import { FlowSettlementStateEnum } from './FlowSettlementStateEnum';
|
|
22
|
+
import { FlowSourceTypeEnum } from './FlowSourceTypeEnum';
|
|
23
|
+
import { SettlementConfigInput } from './SettlementConfigInput';
|
|
24
|
+
/**
|
|
25
|
+
* A single payment, deposit, or withdraw flow. Collapses the former Checkout and CheckoutTransaction into one resource.
|
|
26
|
+
* @export
|
|
27
|
+
* @interface Flow
|
|
28
|
+
*/
|
|
29
|
+
export interface Flow {
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof Flow
|
|
34
|
+
*/
|
|
35
|
+
id: string;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {FlowModeEnum}
|
|
39
|
+
* @memberof Flow
|
|
40
|
+
*/
|
|
41
|
+
mode: FlowModeEnum;
|
|
42
|
+
/**
|
|
43
|
+
* Amount in the specified currency. Set once at create by the API-key caller and immutable thereafter.
|
|
44
|
+
* @type {string}
|
|
45
|
+
* @memberof Flow
|
|
46
|
+
*/
|
|
47
|
+
amount: string;
|
|
48
|
+
/**
|
|
49
|
+
*
|
|
50
|
+
* @type {string}
|
|
51
|
+
* @memberof Flow
|
|
52
|
+
*/
|
|
53
|
+
currency: string;
|
|
54
|
+
/**
|
|
55
|
+
*
|
|
56
|
+
* @type {SettlementConfigInput}
|
|
57
|
+
* @memberof Flow
|
|
58
|
+
*/
|
|
59
|
+
settlementConfig: SettlementConfigInput;
|
|
60
|
+
/**
|
|
61
|
+
*
|
|
62
|
+
* @type {DestinationConfigInput}
|
|
63
|
+
* @memberof Flow
|
|
64
|
+
*/
|
|
65
|
+
destinationConfig?: DestinationConfigInput;
|
|
66
|
+
/**
|
|
67
|
+
* Arbitrary metadata attached to the flow
|
|
68
|
+
* @type {object}
|
|
69
|
+
* @memberof Flow
|
|
70
|
+
*/
|
|
71
|
+
memo?: object;
|
|
72
|
+
/**
|
|
73
|
+
*
|
|
74
|
+
* @type {string}
|
|
75
|
+
* @memberof Flow
|
|
76
|
+
*/
|
|
77
|
+
userId?: string;
|
|
78
|
+
/**
|
|
79
|
+
*
|
|
80
|
+
* @type {FlowExecutionStateEnum}
|
|
81
|
+
* @memberof Flow
|
|
82
|
+
*/
|
|
83
|
+
executionState: FlowExecutionStateEnum;
|
|
84
|
+
/**
|
|
85
|
+
*
|
|
86
|
+
* @type {FlowSettlementStateEnum}
|
|
87
|
+
* @memberof Flow
|
|
88
|
+
*/
|
|
89
|
+
settlementState: FlowSettlementStateEnum;
|
|
90
|
+
/**
|
|
91
|
+
*
|
|
92
|
+
* @type {FlowRiskStateEnum}
|
|
93
|
+
* @memberof Flow
|
|
94
|
+
*/
|
|
95
|
+
riskState: FlowRiskStateEnum;
|
|
96
|
+
/**
|
|
97
|
+
*
|
|
98
|
+
* @type {FlowSourceTypeEnum}
|
|
99
|
+
* @memberof Flow
|
|
100
|
+
*/
|
|
101
|
+
sourceType?: FlowSourceTypeEnum;
|
|
102
|
+
/**
|
|
103
|
+
* Valid blockchain wallet address, must be an alphanumeric string (underscores allowed for chains like Midnight, hyphens allowed for chains using base64url-encoded addresses like TON)
|
|
104
|
+
* @type {string}
|
|
105
|
+
* @memberof Flow
|
|
106
|
+
*/
|
|
107
|
+
fromAddress?: string;
|
|
108
|
+
/**
|
|
109
|
+
*
|
|
110
|
+
* @type {string}
|
|
111
|
+
* @memberof Flow
|
|
112
|
+
*/
|
|
113
|
+
fromChainId?: string;
|
|
114
|
+
/**
|
|
115
|
+
*
|
|
116
|
+
* @type {ChainEnum}
|
|
117
|
+
* @memberof Flow
|
|
118
|
+
*/
|
|
119
|
+
fromChainName?: ChainEnum;
|
|
120
|
+
/**
|
|
121
|
+
*
|
|
122
|
+
* @type {string}
|
|
123
|
+
* @memberof Flow
|
|
124
|
+
*/
|
|
125
|
+
fromToken?: string;
|
|
126
|
+
/**
|
|
127
|
+
* Valid blockchain wallet address, must be an alphanumeric string (underscores allowed for chains like Midnight, hyphens allowed for chains using base64url-encoded addresses like TON)
|
|
128
|
+
* @type {string}
|
|
129
|
+
* @memberof Flow
|
|
130
|
+
*/
|
|
131
|
+
toAddress?: string;
|
|
132
|
+
/**
|
|
133
|
+
*
|
|
134
|
+
* @type {string}
|
|
135
|
+
* @memberof Flow
|
|
136
|
+
*/
|
|
137
|
+
toChainId?: string;
|
|
138
|
+
/**
|
|
139
|
+
*
|
|
140
|
+
* @type {ChainEnum}
|
|
141
|
+
* @memberof Flow
|
|
142
|
+
*/
|
|
143
|
+
toChainName?: ChainEnum;
|
|
144
|
+
/**
|
|
145
|
+
*
|
|
146
|
+
* @type {string}
|
|
147
|
+
* @memberof Flow
|
|
148
|
+
*/
|
|
149
|
+
toToken?: string;
|
|
150
|
+
/**
|
|
151
|
+
* Version number of the quote used for this flow
|
|
152
|
+
* @type {number}
|
|
153
|
+
* @memberof Flow
|
|
154
|
+
*/
|
|
155
|
+
quoteVersion: number;
|
|
156
|
+
/**
|
|
157
|
+
*
|
|
158
|
+
* @type {FlowQuote}
|
|
159
|
+
* @memberof Flow
|
|
160
|
+
*/
|
|
161
|
+
quote?: FlowQuote;
|
|
162
|
+
/**
|
|
163
|
+
* A string with a max length of 4096 characters
|
|
164
|
+
* @type {string}
|
|
165
|
+
* @memberof Flow
|
|
166
|
+
*/
|
|
167
|
+
txHash?: string;
|
|
168
|
+
/**
|
|
169
|
+
* ISO 8601 timestamp of when the flow was broadcast to the network
|
|
170
|
+
* @type {Date}
|
|
171
|
+
* @memberof Flow
|
|
172
|
+
*/
|
|
173
|
+
broadcastedAt?: Date;
|
|
174
|
+
/**
|
|
175
|
+
* ISO 8601 timestamp of when the source chain confirmed the transaction
|
|
176
|
+
* @type {Date}
|
|
177
|
+
* @memberof Flow
|
|
178
|
+
*/
|
|
179
|
+
sourceConfirmedAt?: Date;
|
|
180
|
+
/**
|
|
181
|
+
* Number of blockchain confirmations received
|
|
182
|
+
* @type {number}
|
|
183
|
+
* @memberof Flow
|
|
184
|
+
*/
|
|
185
|
+
confirmations?: number;
|
|
186
|
+
/**
|
|
187
|
+
*
|
|
188
|
+
* @type {FlowSettlementData}
|
|
189
|
+
* @memberof Flow
|
|
190
|
+
*/
|
|
191
|
+
settlement?: FlowSettlementData;
|
|
192
|
+
/**
|
|
193
|
+
* ISO 8601 timestamp of when the flow was completed
|
|
194
|
+
* @type {Date}
|
|
195
|
+
* @memberof Flow
|
|
196
|
+
*/
|
|
197
|
+
completedAt?: Date;
|
|
198
|
+
/**
|
|
199
|
+
*
|
|
200
|
+
* @type {FlowFailure}
|
|
201
|
+
* @memberof Flow
|
|
202
|
+
*/
|
|
203
|
+
failure?: FlowFailure;
|
|
204
|
+
/**
|
|
205
|
+
* ISO 8601 timestamp of when the flow expires
|
|
206
|
+
* @type {Date}
|
|
207
|
+
* @memberof Flow
|
|
208
|
+
*/
|
|
209
|
+
expiresAt?: Date;
|
|
210
|
+
/**
|
|
211
|
+
* ISO 8601 timestamp of when the flow was created
|
|
212
|
+
* @type {Date}
|
|
213
|
+
* @memberof Flow
|
|
214
|
+
*/
|
|
215
|
+
createdAt: Date;
|
|
216
|
+
/**
|
|
217
|
+
* ISO 8601 timestamp of when the flow was last updated
|
|
218
|
+
* @type {Date}
|
|
219
|
+
* @memberof Flow
|
|
220
|
+
*/
|
|
221
|
+
updatedAt: Date;
|
|
222
|
+
/**
|
|
223
|
+
*
|
|
224
|
+
* @type {FlowExchangeSource}
|
|
225
|
+
* @memberof Flow
|
|
226
|
+
*/
|
|
227
|
+
exchangeSource?: FlowExchangeSource;
|
|
228
|
+
}
|
|
229
|
+
export declare function FlowFromJSON(json: any): Flow;
|
|
230
|
+
export declare function FlowFromJSONTyped(json: any, ignoreDiscriminator: boolean): Flow;
|
|
231
|
+
export declare function FlowToJSON(value?: Flow | null): any;
|
|
@@ -0,0 +1,103 @@
|
|
|
1
|
+
import { exists } from '../runtime.js';
|
|
2
|
+
import { ChainEnumFromJSON, ChainEnumToJSON } from './ChainEnum.js';
|
|
3
|
+
import { DestinationConfigInputFromJSON, DestinationConfigInputToJSON } from './DestinationConfigInput.js';
|
|
4
|
+
import { FlowExchangeSourceFromJSON, FlowExchangeSourceToJSON } from './FlowExchangeSource.js';
|
|
5
|
+
import { FlowExecutionStateEnumFromJSON, FlowExecutionStateEnumToJSON } from './FlowExecutionStateEnum.js';
|
|
6
|
+
import { FlowFailureFromJSON, FlowFailureToJSON } from './FlowFailure.js';
|
|
7
|
+
import { FlowModeEnumFromJSON, FlowModeEnumToJSON } from './FlowModeEnum.js';
|
|
8
|
+
import { FlowQuoteFromJSON, FlowQuoteToJSON } from './FlowQuote.js';
|
|
9
|
+
import { FlowRiskStateEnumFromJSON, FlowRiskStateEnumToJSON } from './FlowRiskStateEnum.js';
|
|
10
|
+
import { FlowSettlementDataFromJSON, FlowSettlementDataToJSON } from './FlowSettlementData.js';
|
|
11
|
+
import { FlowSettlementStateEnumFromJSON, FlowSettlementStateEnumToJSON } from './FlowSettlementStateEnum.js';
|
|
12
|
+
import { FlowSourceTypeEnumFromJSON, FlowSourceTypeEnumToJSON } from './FlowSourceTypeEnum.js';
|
|
13
|
+
import { SettlementConfigInputFromJSON, SettlementConfigInputToJSON } from './SettlementConfigInput.js';
|
|
14
|
+
|
|
15
|
+
/* tslint:disable */
|
|
16
|
+
function FlowFromJSON(json) {
|
|
17
|
+
return FlowFromJSONTyped(json);
|
|
18
|
+
}
|
|
19
|
+
function FlowFromJSONTyped(json, ignoreDiscriminator) {
|
|
20
|
+
if ((json === undefined) || (json === null)) {
|
|
21
|
+
return json;
|
|
22
|
+
}
|
|
23
|
+
return {
|
|
24
|
+
'id': json['id'],
|
|
25
|
+
'mode': FlowModeEnumFromJSON(json['mode']),
|
|
26
|
+
'amount': json['amount'],
|
|
27
|
+
'currency': json['currency'],
|
|
28
|
+
'settlementConfig': SettlementConfigInputFromJSON(json['settlementConfig']),
|
|
29
|
+
'destinationConfig': !exists(json, 'destinationConfig') ? undefined : DestinationConfigInputFromJSON(json['destinationConfig']),
|
|
30
|
+
'memo': !exists(json, 'memo') ? undefined : json['memo'],
|
|
31
|
+
'userId': !exists(json, 'userId') ? undefined : json['userId'],
|
|
32
|
+
'executionState': FlowExecutionStateEnumFromJSON(json['executionState']),
|
|
33
|
+
'settlementState': FlowSettlementStateEnumFromJSON(json['settlementState']),
|
|
34
|
+
'riskState': FlowRiskStateEnumFromJSON(json['riskState']),
|
|
35
|
+
'sourceType': !exists(json, 'sourceType') ? undefined : FlowSourceTypeEnumFromJSON(json['sourceType']),
|
|
36
|
+
'fromAddress': !exists(json, 'fromAddress') ? undefined : json['fromAddress'],
|
|
37
|
+
'fromChainId': !exists(json, 'fromChainId') ? undefined : json['fromChainId'],
|
|
38
|
+
'fromChainName': !exists(json, 'fromChainName') ? undefined : ChainEnumFromJSON(json['fromChainName']),
|
|
39
|
+
'fromToken': !exists(json, 'fromToken') ? undefined : json['fromToken'],
|
|
40
|
+
'toAddress': !exists(json, 'toAddress') ? undefined : json['toAddress'],
|
|
41
|
+
'toChainId': !exists(json, 'toChainId') ? undefined : json['toChainId'],
|
|
42
|
+
'toChainName': !exists(json, 'toChainName') ? undefined : ChainEnumFromJSON(json['toChainName']),
|
|
43
|
+
'toToken': !exists(json, 'toToken') ? undefined : json['toToken'],
|
|
44
|
+
'quoteVersion': json['quoteVersion'],
|
|
45
|
+
'quote': !exists(json, 'quote') ? undefined : FlowQuoteFromJSON(json['quote']),
|
|
46
|
+
'txHash': !exists(json, 'txHash') ? undefined : json['txHash'],
|
|
47
|
+
'broadcastedAt': !exists(json, 'broadcastedAt') ? undefined : (new Date(json['broadcastedAt'])),
|
|
48
|
+
'sourceConfirmedAt': !exists(json, 'sourceConfirmedAt') ? undefined : (new Date(json['sourceConfirmedAt'])),
|
|
49
|
+
'confirmations': !exists(json, 'confirmations') ? undefined : json['confirmations'],
|
|
50
|
+
'settlement': !exists(json, 'settlement') ? undefined : FlowSettlementDataFromJSON(json['settlement']),
|
|
51
|
+
'completedAt': !exists(json, 'completedAt') ? undefined : (new Date(json['completedAt'])),
|
|
52
|
+
'failure': !exists(json, 'failure') ? undefined : FlowFailureFromJSON(json['failure']),
|
|
53
|
+
'expiresAt': !exists(json, 'expiresAt') ? undefined : (new Date(json['expiresAt'])),
|
|
54
|
+
'createdAt': (new Date(json['createdAt'])),
|
|
55
|
+
'updatedAt': (new Date(json['updatedAt'])),
|
|
56
|
+
'exchangeSource': !exists(json, 'exchangeSource') ? undefined : FlowExchangeSourceFromJSON(json['exchangeSource']),
|
|
57
|
+
};
|
|
58
|
+
}
|
|
59
|
+
function FlowToJSON(value) {
|
|
60
|
+
if (value === undefined) {
|
|
61
|
+
return undefined;
|
|
62
|
+
}
|
|
63
|
+
if (value === null) {
|
|
64
|
+
return null;
|
|
65
|
+
}
|
|
66
|
+
return {
|
|
67
|
+
'id': value.id,
|
|
68
|
+
'mode': FlowModeEnumToJSON(value.mode),
|
|
69
|
+
'amount': value.amount,
|
|
70
|
+
'currency': value.currency,
|
|
71
|
+
'settlementConfig': SettlementConfigInputToJSON(value.settlementConfig),
|
|
72
|
+
'destinationConfig': DestinationConfigInputToJSON(value.destinationConfig),
|
|
73
|
+
'memo': value.memo,
|
|
74
|
+
'userId': value.userId,
|
|
75
|
+
'executionState': FlowExecutionStateEnumToJSON(value.executionState),
|
|
76
|
+
'settlementState': FlowSettlementStateEnumToJSON(value.settlementState),
|
|
77
|
+
'riskState': FlowRiskStateEnumToJSON(value.riskState),
|
|
78
|
+
'sourceType': FlowSourceTypeEnumToJSON(value.sourceType),
|
|
79
|
+
'fromAddress': value.fromAddress,
|
|
80
|
+
'fromChainId': value.fromChainId,
|
|
81
|
+
'fromChainName': ChainEnumToJSON(value.fromChainName),
|
|
82
|
+
'fromToken': value.fromToken,
|
|
83
|
+
'toAddress': value.toAddress,
|
|
84
|
+
'toChainId': value.toChainId,
|
|
85
|
+
'toChainName': ChainEnumToJSON(value.toChainName),
|
|
86
|
+
'toToken': value.toToken,
|
|
87
|
+
'quoteVersion': value.quoteVersion,
|
|
88
|
+
'quote': FlowQuoteToJSON(value.quote),
|
|
89
|
+
'txHash': value.txHash,
|
|
90
|
+
'broadcastedAt': value.broadcastedAt === undefined ? undefined : (value.broadcastedAt.toISOString()),
|
|
91
|
+
'sourceConfirmedAt': value.sourceConfirmedAt === undefined ? undefined : (value.sourceConfirmedAt.toISOString()),
|
|
92
|
+
'confirmations': value.confirmations,
|
|
93
|
+
'settlement': FlowSettlementDataToJSON(value.settlement),
|
|
94
|
+
'completedAt': value.completedAt === undefined ? undefined : (value.completedAt.toISOString()),
|
|
95
|
+
'failure': FlowFailureToJSON(value.failure),
|
|
96
|
+
'expiresAt': value.expiresAt === undefined ? undefined : (value.expiresAt.toISOString()),
|
|
97
|
+
'createdAt': (value.createdAt.toISOString()),
|
|
98
|
+
'updatedAt': (value.updatedAt.toISOString()),
|
|
99
|
+
'exchangeSource': FlowExchangeSourceToJSON(value.exchangeSource),
|
|
100
|
+
};
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
export { FlowFromJSON, FlowFromJSONTyped, FlowToJSON };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Flow.js","sources":["../../../../../libs/sdk-api-core/src/models/Flow.ts"],"sourcesContent":null,"names":[],"mappings":";;;;;;;;;;;;;;AAAA;AAsSM,SAAU,YAAY,CAAC,IAAS,EAAA;AAClC,IAAA,OAAO,iBAAiB,CAAC,IAAW,CAAC,CAAC;AAC1C,CAAC;A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aAAa,CAAC,WAAW,EAAE,CAAC;QACpG,mBAAmB,EAAE,KAAK,CAAC,iBAAiB,KAAK,SAAS,GAAG,SAAS,IAAI,KAAK,CAAC,iBAAiB,CAAC,WAAW,EAAE,CAAC;QAChH,eAAe,EAAE,KAAK,CAAC,aAAa;AACpC,QAAA,YAAY,EAAE,wBAAwB,CAAC,KAAK,CAAC,UAAU,CAAC;QACxD,aAAa,EAAE,KAAK,CAAC,WAAW,KAAK,SAAS,GAAG,SAAS,IAAI,KAAK,CAAC,WAAW,CAAC,WAAW,EAAE,CAAC;AAC9F,QAAA,SAAS,EAAE,iBAAiB,CAAC,KAAK,CAAC,OAAO,CAAC;QAC3C,WAAW,EAAE,KAAK,CAAC,SAAS,KAAK,SAAS,GAAG,SAAS,IAAI,KAAK,CAAC,SAAS,CAAC,WAAW,EAAE,CAAC;QACxF,WAAW,GAAG,KAAK,CAAC,SAAS,CAAC,WAAW,EAAE,CAAC;QAC5C,WAAW,GAAG,KAAK,CAAC,SAAS,CAAC,WAAW,EAAE,CAAC;AAC5C,QAAA,gBAAgB,EAAE,wBAAwB,CAAC,KAAK,CAAC,cAAc,CAAC;KACnE,CAAC;AACN;;;;"}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
var runtime = require('../runtime.cjs');
|
|
6
|
+
var ChainEnum = require('./ChainEnum.cjs');
|
|
7
|
+
var ExchangeKeyEnum = require('./ExchangeKeyEnum.cjs');
|
|
8
|
+
var FlowSourceTypeEnum = require('./FlowSourceTypeEnum.cjs');
|
|
9
|
+
|
|
10
|
+
/* tslint:disable */
|
|
11
|
+
function FlowAttachSourceRequestFromJSON(json) {
|
|
12
|
+
return FlowAttachSourceRequestFromJSONTyped(json);
|
|
13
|
+
}
|
|
14
|
+
function FlowAttachSourceRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
15
|
+
if ((json === undefined) || (json === null)) {
|
|
16
|
+
return json;
|
|
17
|
+
}
|
|
18
|
+
return {
|
|
19
|
+
'sourceType': FlowSourceTypeEnum.FlowSourceTypeEnumFromJSON(json['sourceType']),
|
|
20
|
+
'fromAddress': !runtime.exists(json, 'fromAddress') ? undefined : json['fromAddress'],
|
|
21
|
+
'fromChainId': !runtime.exists(json, 'fromChainId') ? undefined : json['fromChainId'],
|
|
22
|
+
'fromChainName': !runtime.exists(json, 'fromChainName') ? undefined : ChainEnum.ChainEnumFromJSON(json['fromChainName']),
|
|
23
|
+
'exchangeProvider': !runtime.exists(json, 'exchangeProvider') ? undefined : ExchangeKeyEnum.ExchangeKeyEnumFromJSON(json['exchangeProvider']),
|
|
24
|
+
};
|
|
25
|
+
}
|
|
26
|
+
function FlowAttachSourceRequestToJSON(value) {
|
|
27
|
+
if (value === undefined) {
|
|
28
|
+
return undefined;
|
|
29
|
+
}
|
|
30
|
+
if (value === null) {
|
|
31
|
+
return null;
|
|
32
|
+
}
|
|
33
|
+
return {
|
|
34
|
+
'sourceType': FlowSourceTypeEnum.FlowSourceTypeEnumToJSON(value.sourceType),
|
|
35
|
+
'fromAddress': value.fromAddress,
|
|
36
|
+
'fromChainId': value.fromChainId,
|
|
37
|
+
'fromChainName': ChainEnum.ChainEnumToJSON(value.fromChainName),
|
|
38
|
+
'exchangeProvider': ExchangeKeyEnum.ExchangeKeyEnumToJSON(value.exchangeProvider),
|
|
39
|
+
};
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
exports.FlowAttachSourceRequestFromJSON = FlowAttachSourceRequestFromJSON;
|
|
43
|
+
exports.FlowAttachSourceRequestFromJSONTyped = FlowAttachSourceRequestFromJSONTyped;
|
|
44
|
+
exports.FlowAttachSourceRequestToJSON = FlowAttachSourceRequestToJSON;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"FlowAttachSourceRequest.cjs","sources":["../../../../../libs/sdk-api-core/src/models/FlowAttachSourceRequest.ts"],"s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AAwB,CAAC,KAAK,CAAC,UAAU,CAAC;QACxD,aAAa,EAAE,KAAK,CAAC,WAAW;QAChC,aAAa,EAAE,KAAK,CAAC,WAAW;AAChC,QAAA,eAAe,EAAEC,yBAAe,CAAC,KAAK,CAAC,aAAa,CAAC;AACrD,QAAA,kBAAkB,EAAEC,qCAAqB,CAAC,KAAK,CAAC,gBAAgB,CAAC;KACpE,CAAC;AACN;;;;;;"}
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Dashboard API
|
|
3
|
+
* Dashboard API documentation
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
import { ChainEnum } from './ChainEnum';
|
|
13
|
+
import { ExchangeKeyEnum } from './ExchangeKeyEnum';
|
|
14
|
+
import { FlowSourceTypeEnum } from './FlowSourceTypeEnum';
|
|
15
|
+
/**
|
|
16
|
+
* fromAddress, fromChainId, and fromChainName are required when sourceType is 'wallet'. When sourceType is 'exchange', they are optional; pass exchangeProvider to generate the buy URL and create the exchange source record server-side. When sourceType is 'deposit_address', fromChainId and fromChainName are required so the bridge provider knows the source chain; fromAddress is optional (omit when the customer pays from a CEX with no connected wallet).
|
|
17
|
+
* @export
|
|
18
|
+
* @interface FlowAttachSourceRequest
|
|
19
|
+
*/
|
|
20
|
+
export interface FlowAttachSourceRequest {
|
|
21
|
+
/**
|
|
22
|
+
*
|
|
23
|
+
* @type {FlowSourceTypeEnum}
|
|
24
|
+
* @memberof FlowAttachSourceRequest
|
|
25
|
+
*/
|
|
26
|
+
sourceType: FlowSourceTypeEnum;
|
|
27
|
+
/**
|
|
28
|
+
* Valid blockchain wallet address, must be an alphanumeric string (underscores allowed for chains like Midnight, hyphens allowed for chains using base64url-encoded addresses like TON)
|
|
29
|
+
* @type {string}
|
|
30
|
+
* @memberof FlowAttachSourceRequest
|
|
31
|
+
*/
|
|
32
|
+
fromAddress?: string;
|
|
33
|
+
/**
|
|
34
|
+
*
|
|
35
|
+
* @type {string}
|
|
36
|
+
* @memberof FlowAttachSourceRequest
|
|
37
|
+
*/
|
|
38
|
+
fromChainId?: string;
|
|
39
|
+
/**
|
|
40
|
+
*
|
|
41
|
+
* @type {ChainEnum}
|
|
42
|
+
* @memberof FlowAttachSourceRequest
|
|
43
|
+
*/
|
|
44
|
+
fromChainName?: ChainEnum;
|
|
45
|
+
/**
|
|
46
|
+
*
|
|
47
|
+
* @type {ExchangeKeyEnum}
|
|
48
|
+
* @memberof FlowAttachSourceRequest
|
|
49
|
+
*/
|
|
50
|
+
exchangeProvider?: ExchangeKeyEnum;
|
|
51
|
+
}
|
|
52
|
+
export declare function FlowAttachSourceRequestFromJSON(json: any): FlowAttachSourceRequest;
|
|
53
|
+
export declare function FlowAttachSourceRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): FlowAttachSourceRequest;
|
|
54
|
+
export declare function FlowAttachSourceRequestToJSON(value?: FlowAttachSourceRequest | null): any;
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { exists } from '../runtime.js';
|
|
2
|
+
import { ChainEnumFromJSON, ChainEnumToJSON } from './ChainEnum.js';
|
|
3
|
+
import { ExchangeKeyEnumFromJSON, ExchangeKeyEnumToJSON } from './ExchangeKeyEnum.js';
|
|
4
|
+
import { FlowSourceTypeEnumFromJSON, FlowSourceTypeEnumToJSON } from './FlowSourceTypeEnum.js';
|
|
5
|
+
|
|
6
|
+
/* tslint:disable */
|
|
7
|
+
function FlowAttachSourceRequestFromJSON(json) {
|
|
8
|
+
return FlowAttachSourceRequestFromJSONTyped(json);
|
|
9
|
+
}
|
|
10
|
+
function FlowAttachSourceRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
11
|
+
if ((json === undefined) || (json === null)) {
|
|
12
|
+
return json;
|
|
13
|
+
}
|
|
14
|
+
return {
|
|
15
|
+
'sourceType': FlowSourceTypeEnumFromJSON(json['sourceType']),
|
|
16
|
+
'fromAddress': !exists(json, 'fromAddress') ? undefined : json['fromAddress'],
|
|
17
|
+
'fromChainId': !exists(json, 'fromChainId') ? undefined : json['fromChainId'],
|
|
18
|
+
'fromChainName': !exists(json, 'fromChainName') ? undefined : ChainEnumFromJSON(json['fromChainName']),
|
|
19
|
+
'exchangeProvider': !exists(json, 'exchangeProvider') ? undefined : ExchangeKeyEnumFromJSON(json['exchangeProvider']),
|
|
20
|
+
};
|
|
21
|
+
}
|
|
22
|
+
function FlowAttachSourceRequestToJSON(value) {
|
|
23
|
+
if (value === undefined) {
|
|
24
|
+
return undefined;
|
|
25
|
+
}
|
|
26
|
+
if (value === null) {
|
|
27
|
+
return null;
|
|
28
|
+
}
|
|
29
|
+
return {
|
|
30
|
+
'sourceType': FlowSourceTypeEnumToJSON(value.sourceType),
|
|
31
|
+
'fromAddress': value.fromAddress,
|
|
32
|
+
'fromChainId': value.fromChainId,
|
|
33
|
+
'fromChainName': ChainEnumToJSON(value.fromChainName),
|
|
34
|
+
'exchangeProvider': ExchangeKeyEnumToJSON(value.exchangeProvider),
|
|
35
|
+
};
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
export { FlowAttachSourceRequestFromJSON, FlowAttachSourceRequestFromJSONTyped, FlowAttachSourceRequestToJSON };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"FlowAttachSourceRequest.js","sources":["../../../../../libs/sdk-api-core/src/models/FlowAttachSourceRequest.ts"],"sourcesContent":null,"names":[],"mappings":";;;;;AAAA;AAwEM,SAAU,+BAA+B,CAAC,IAAS,EAAA;AACrD,IAAA,OAAO,oCAAoC,CAAC,IAAW,CAAC,CAAC;AAC7D,CAAC;AAEe,SAAA,oCAAoC,CAAC,IAAS,EAAE,mBAA4B,EAAA;AACxF,IAAA,IAAI,CAAC,IA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(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
var runtime = require('../runtime.cjs');
|
|
6
|
+
var DestinationConfigInput = require('./DestinationConfigInput.cjs');
|
|
7
|
+
var SettlementConfigInput = require('./SettlementConfigInput.cjs');
|
|
8
|
+
|
|
9
|
+
/* tslint:disable */
|
|
10
|
+
function FlowCreateRequestFromJSON(json) {
|
|
11
|
+
return FlowCreateRequestFromJSONTyped(json);
|
|
12
|
+
}
|
|
13
|
+
function FlowCreateRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
14
|
+
if ((json === undefined) || (json === null)) {
|
|
15
|
+
return json;
|
|
16
|
+
}
|
|
17
|
+
return {
|
|
18
|
+
'amount': json['amount'],
|
|
19
|
+
'currency': json['currency'],
|
|
20
|
+
'settlementConfig': SettlementConfigInput.SettlementConfigInputFromJSON(json['settlementConfig']),
|
|
21
|
+
'destinationConfig': DestinationConfigInput.DestinationConfigInputFromJSON(json['destinationConfig']),
|
|
22
|
+
'memo': !runtime.exists(json, 'memo') ? undefined : json['memo'],
|
|
23
|
+
'expiresIn': !runtime.exists(json, 'expiresIn') ? undefined : json['expiresIn'],
|
|
24
|
+
};
|
|
25
|
+
}
|
|
26
|
+
function FlowCreateRequestToJSON(value) {
|
|
27
|
+
if (value === undefined) {
|
|
28
|
+
return undefined;
|
|
29
|
+
}
|
|
30
|
+
if (value === null) {
|
|
31
|
+
return null;
|
|
32
|
+
}
|
|
33
|
+
return {
|
|
34
|
+
'amount': value.amount,
|
|
35
|
+
'currency': value.currency,
|
|
36
|
+
'settlementConfig': SettlementConfigInput.SettlementConfigInputToJSON(value.settlementConfig),
|
|
37
|
+
'destinationConfig': DestinationConfigInput.DestinationConfigInputToJSON(value.destinationConfig),
|
|
38
|
+
'memo': value.memo,
|
|
39
|
+
'expiresIn': value.expiresIn,
|
|
40
|
+
};
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
exports.FlowCreateRequestFromJSON = FlowCreateRequestFromJSON;
|
|
44
|
+
exports.FlowCreateRequestFromJSONTyped = FlowCreateRequestFromJSONTyped;
|
|
45
|
+
exports.FlowCreateRequestToJSON = FlowCreateRequestToJSON;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"FlowCreateRequest.cjs","sources":["../../../../../libs/sdk-api-core/src/models/FlowCreateRequest.ts"],"sourcesContent":null,"names":["SettlementConfigInputFromJSON","DestinationConfigInputFromJSON","exists","SettlementConfigInputToJSON","DestinationConfigInputToJSON"],"mappings":";;;;;;;;AAAA;AAwEM,SAAU,yBAAyB,CAAC,IAAS,EAAA;AAC/C,IAAA,OAAO,8BAA8B,CAAC,IAAW,CAAC,CAAC;AACvD,CAAC;AAEe,SAAA,8BAA8B,CAAC,IAAS,EAAE,mBAA4B,EAAA;AAClF,IAAA,IAAI,CAAC,IAAI,KAAK,SAAS,MAAM,IAAI,KAAK,IAAI,CAAC,EAAE;AACzC,QAAA,OAAO,IAAI,CAAC;KACf;IACD,OAAO;AAEH,QAAA,QAAQ,EAAE,IAAI,CAAC,QAAQ,CAAC;AACxB,QAAA,UAAU,EAAE,IAAI,CAAC,UAAU,CAAC;AAC5B,QAAA,kBAAkB,EAAEA,mDAA6B,CAAC,IAAI,CAAC,kBAAkB,CAAC,CAAC;AAC3E,QAAA,mBAAmB,EAAEC,qDAA8B,CAAC,IAAI,CAAC,mBAAmB,CAAC,CAAC;AAC9E,QAAA,MAAM,EAAE,CAACC,cAAM,CAAC,IAAI,EAAE,MAAM,CAAC,GAAG,SAAS,GAAG,IAAI,CAAC,MAAM,CAAC;AACxD,QAAA,WAAW,EAAE,CAACA,cAAM,CAAC,IAAI,EAAE,WAAW,CAAC,GAAG,SAAS,GAAG,IAAI,CAAC,WAAW,CAAC;KAC1E,CAAC;AACN,CAAC;AAEK,SAAU,uBAAuB,CAAC,KAAgC,EAAA;AACpE,IAAA,IAAI,KAAK,KAAK,SAAS,EAAE;AACrB,QAAA,OAAO,SAAS,CAAC;KACpB;AACD,IAAA,IAAI,KAAK,KAAK,IAAI,EAAE;AAChB,QAAA,OAAO,IAAI,CAAC;KACf;IACD,OAAO;QAEH,QAAQ,EAAE,KAAK,CAAC,MAAM;QACtB,UAAU,EAAE,KAAK,CAAC,QAAQ;AAC1B,QAAA,kBAAkB,EAAEC,iDAA2B,CAAC,KAAK,CAAC,gBAAgB,CAAC;AACvE,QAAA,mBAAmB,EAAEC,mDAA4B,CAAC,KAAK,CAAC,iBAAiB,CAAC;QAC1E,MAAM,EAAE,KAAK,CAAC,IAAI;QAClB,WAAW,EAAE,KAAK,CAAC,SAAS;KAC/B,CAAC;AACN;;;;;;"}
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Dashboard API
|
|
3
|
+
* Dashboard API documentation
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
import { DestinationConfigInput } from './DestinationConfigInput';
|
|
13
|
+
import { SettlementConfigInput } from './SettlementConfigInput';
|
|
14
|
+
/**
|
|
15
|
+
* Create-time payload for a flow. amount, currency, settlementConfig and destinationConfig are written once here (by a trusted API-key caller) and are accepted by no later endpoint. mode is supplied in the URL path.
|
|
16
|
+
* @export
|
|
17
|
+
* @interface FlowCreateRequest
|
|
18
|
+
*/
|
|
19
|
+
export interface FlowCreateRequest {
|
|
20
|
+
/**
|
|
21
|
+
* Amount in the specified currency
|
|
22
|
+
* @type {string}
|
|
23
|
+
* @memberof FlowCreateRequest
|
|
24
|
+
*/
|
|
25
|
+
amount: string;
|
|
26
|
+
/**
|
|
27
|
+
*
|
|
28
|
+
* @type {string}
|
|
29
|
+
* @memberof FlowCreateRequest
|
|
30
|
+
*/
|
|
31
|
+
currency: string;
|
|
32
|
+
/**
|
|
33
|
+
*
|
|
34
|
+
* @type {SettlementConfigInput}
|
|
35
|
+
* @memberof FlowCreateRequest
|
|
36
|
+
*/
|
|
37
|
+
settlementConfig: SettlementConfigInput;
|
|
38
|
+
/**
|
|
39
|
+
*
|
|
40
|
+
* @type {DestinationConfigInput}
|
|
41
|
+
* @memberof FlowCreateRequest
|
|
42
|
+
*/
|
|
43
|
+
destinationConfig: DestinationConfigInput;
|
|
44
|
+
/**
|
|
45
|
+
* Arbitrary metadata attached to the flow
|
|
46
|
+
* @type {object}
|
|
47
|
+
* @memberof FlowCreateRequest
|
|
48
|
+
*/
|
|
49
|
+
memo?: object;
|
|
50
|
+
/**
|
|
51
|
+
* Seconds until the flow expires (default 3600, clamped server-side)
|
|
52
|
+
* @type {number}
|
|
53
|
+
* @memberof FlowCreateRequest
|
|
54
|
+
*/
|
|
55
|
+
expiresIn?: number;
|
|
56
|
+
}
|
|
57
|
+
export declare function FlowCreateRequestFromJSON(json: any): FlowCreateRequest;
|
|
58
|
+
export declare function FlowCreateRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): FlowCreateRequest;
|
|
59
|
+
export declare function FlowCreateRequestToJSON(value?: FlowCreateRequest | null): any;
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { exists } from '../runtime.js';
|
|
2
|
+
import { DestinationConfigInputFromJSON, DestinationConfigInputToJSON } from './DestinationConfigInput.js';
|
|
3
|
+
import { SettlementConfigInputFromJSON, SettlementConfigInputToJSON } from './SettlementConfigInput.js';
|
|
4
|
+
|
|
5
|
+
/* tslint:disable */
|
|
6
|
+
function FlowCreateRequestFromJSON(json) {
|
|
7
|
+
return FlowCreateRequestFromJSONTyped(json);
|
|
8
|
+
}
|
|
9
|
+
function FlowCreateRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
10
|
+
if ((json === undefined) || (json === null)) {
|
|
11
|
+
return json;
|
|
12
|
+
}
|
|
13
|
+
return {
|
|
14
|
+
'amount': json['amount'],
|
|
15
|
+
'currency': json['currency'],
|
|
16
|
+
'settlementConfig': SettlementConfigInputFromJSON(json['settlementConfig']),
|
|
17
|
+
'destinationConfig': DestinationConfigInputFromJSON(json['destinationConfig']),
|
|
18
|
+
'memo': !exists(json, 'memo') ? undefined : json['memo'],
|
|
19
|
+
'expiresIn': !exists(json, 'expiresIn') ? undefined : json['expiresIn'],
|
|
20
|
+
};
|
|
21
|
+
}
|
|
22
|
+
function FlowCreateRequestToJSON(value) {
|
|
23
|
+
if (value === undefined) {
|
|
24
|
+
return undefined;
|
|
25
|
+
}
|
|
26
|
+
if (value === null) {
|
|
27
|
+
return null;
|
|
28
|
+
}
|
|
29
|
+
return {
|
|
30
|
+
'amount': value.amount,
|
|
31
|
+
'currency': value.currency,
|
|
32
|
+
'settlementConfig': SettlementConfigInputToJSON(value.settlementConfig),
|
|
33
|
+
'destinationConfig': DestinationConfigInputToJSON(value.destinationConfig),
|
|
34
|
+
'memo': value.memo,
|
|
35
|
+
'expiresIn': value.expiresIn,
|
|
36
|
+
};
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
export { FlowCreateRequestFromJSON, FlowCreateRequestFromJSONTyped, FlowCreateRequestToJSON };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"FlowCreateRequest.js","sources":["../../../../../libs/sdk-api-core/src/models/FlowCreateRequest.ts"],"sourcesContent":null,"names":[],"mappings":";;;;AAAA;AAwEM,SAAU,yBAAyB,CAAC,IAAS,EAAA;AAC/C,IAAA,OAAO,8BAA8B,CAAC,IAAW,CAAC,CAAC;AACvD,CAAC;AAEe,SAAA,8BAA8B,CAAC,IAAS,EAAE,mBAA4B,EAAA;AAClF,IAAA,IAAI,CAAC,IAAI,KAAK,SAAS,MAAM,IAAI,KAAK,IAAI,CAAC,EAAE;AACzC,QAAA,OAAO,IAAI,CAAC;KACf;IACD,OAAO;AAEH,QAAA,QAAQ,EAAE,IAAI,CAAC,QAAQ,CAAC;AACxB,QAAA,UAAU,EAAE,IAAI,CAAC,U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