@kuvarpay/sdk 1.9.0 → 1.9.2
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/index.d.ts +19 -3
- package/package.json +1 -1
package/index.d.ts
CHANGED
|
@@ -110,7 +110,9 @@ export interface PreparedKuvarSendAccountLink {
|
|
|
110
110
|
idempotencyKey: string;
|
|
111
111
|
}
|
|
112
112
|
|
|
113
|
-
|
|
113
|
+
/** Keep state, codeVerifier and redirectUri in your server-side session for the callback. */
|
|
114
|
+
export interface KuvarSendAccountLinkAuthorization
|
|
115
|
+
extends Omit<PreparedKuvarSendAccountLink, 'externalUserReference' | 'codeChallenge'> {
|
|
114
116
|
requestId: string;
|
|
115
117
|
authorizationUrl: string;
|
|
116
118
|
expiresAt: string;
|
|
@@ -147,7 +149,13 @@ export interface KuvarSendPayout {
|
|
|
147
149
|
linked_account_id: string;
|
|
148
150
|
amount: string;
|
|
149
151
|
currency: string;
|
|
150
|
-
|
|
152
|
+
/** Your own reference, or null when you did not send one. */
|
|
153
|
+
external_reference: string | null;
|
|
154
|
+
/** Your balance's currency and what it was debited. Create response only. */
|
|
155
|
+
source_currency?: string;
|
|
156
|
+
source_amount?: string;
|
|
157
|
+
/** The same charge valued in USD. Create response only. */
|
|
158
|
+
source_amount_usd?: string;
|
|
151
159
|
created_at: string;
|
|
152
160
|
}
|
|
153
161
|
|
|
@@ -156,9 +164,17 @@ export interface KuvarSendPayoutQuote {
|
|
|
156
164
|
linked_account_id: string;
|
|
157
165
|
amount: string;
|
|
158
166
|
currency: string;
|
|
159
|
-
|
|
167
|
+
/** Your balance's currency — the one the payout will debit. */
|
|
168
|
+
source_currency: string;
|
|
169
|
+
/** What your balance will be debited, in source_currency. */
|
|
160
170
|
source_amount: string;
|
|
171
|
+
/** Destination units per USD. */
|
|
161
172
|
rate: string;
|
|
173
|
+
fee_percent: string;
|
|
174
|
+
/** Recipient fee, deducted from amount. */
|
|
175
|
+
fee_amount: string;
|
|
176
|
+
/** amount minus fee_amount — what the user is credited. */
|
|
177
|
+
recipient_amount: string;
|
|
162
178
|
expires_at: string;
|
|
163
179
|
}
|
|
164
180
|
|