@moonpay/platform-sdk-core 1.11.0 → 1.13.0
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/dist/index.cjs +14 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +20 -3
- package/dist/index.d.ts +20 -3
- package/dist/index.js +14 -0
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
package/dist/index.cjs
CHANGED
|
@@ -45,6 +45,7 @@ __export(index_exports, {
|
|
|
45
45
|
isTrustedFrameUrl: () => isTrustedFrameUrl,
|
|
46
46
|
listTransactions: () => listTransactions,
|
|
47
47
|
presentationParams: () => presentationParams,
|
|
48
|
+
simulateBankTransfer: () => simulateBankTransfer,
|
|
48
49
|
submitCustomerFiles: () => submitCustomerFiles,
|
|
49
50
|
submitCustomerKyc: () => submitCustomerKyc,
|
|
50
51
|
submitIdentityFiles: () => submitIdentityFiles,
|
|
@@ -249,6 +250,18 @@ async function deletePaymentMethod(ctx, paymentMethodId) {
|
|
|
249
250
|
return (0, import_result3.ok)(void 0);
|
|
250
251
|
}
|
|
251
252
|
|
|
253
|
+
// src/api/simulate-bank-transfer.ts
|
|
254
|
+
async function simulateBankTransfer(ctx, id, params) {
|
|
255
|
+
return apiFetch(
|
|
256
|
+
ctx,
|
|
257
|
+
`/platform/v1/transactions/${encodeURIComponent(id)}/simulate-bank-transfer`,
|
|
258
|
+
{
|
|
259
|
+
method: "POST",
|
|
260
|
+
body: JSON.stringify(params)
|
|
261
|
+
}
|
|
262
|
+
);
|
|
263
|
+
}
|
|
264
|
+
|
|
252
265
|
// src/client.ts
|
|
253
266
|
function createClientCore(options) {
|
|
254
267
|
const ctx = createClientContext({
|
|
@@ -267,6 +280,7 @@ function createClientCore(options) {
|
|
|
267
280
|
getPaymentMethods: () => getPaymentMethods(ctx),
|
|
268
281
|
listTransactions: (params) => listTransactions(ctx, params),
|
|
269
282
|
getTransaction: (id) => getTransaction(ctx, id),
|
|
283
|
+
simulateBankTransfer: (id, params) => simulateBankTransfer(ctx, id, params),
|
|
270
284
|
deletePaymentMethod: (id) => deletePaymentMethod(ctx, id),
|
|
271
285
|
getCustomer: (id) => getCustomer(ctx, id),
|
|
272
286
|
submitCustomerKyc: (id, body) => submitCustomerKyc(ctx, id, body),
|