@delopay/sdk 0.26.0 → 0.28.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/{chunk-XK6RSV5Y.js → chunk-U6GMDSVQ.js} +154 -157
- package/dist/chunk-U6GMDSVQ.js.map +1 -0
- package/dist/index.cjs +153 -156
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +80 -88
- package/dist/index.d.ts +80 -88
- package/dist/index.js +1 -1
- package/dist/internal.cjs +153 -156
- package/dist/internal.cjs.map +1 -1
- package/dist/internal.d.cts +3 -3
- package/dist/internal.d.ts +3 -3
- package/dist/internal.js +1 -1
- package/package.json +1 -1
- package/dist/chunk-XK6RSV5Y.js.map +0 -1
|
@@ -48,7 +48,7 @@ var ApiKeys = class {
|
|
|
48
48
|
* ```
|
|
49
49
|
*/
|
|
50
50
|
async create(merchantId, params) {
|
|
51
|
-
return this.request("POST", `/
|
|
51
|
+
return this.request("POST", `/api-keys/${encodeURIComponent(merchantId)}`, { body: params });
|
|
52
52
|
}
|
|
53
53
|
/**
|
|
54
54
|
* Retrieve metadata about an API key (does not return the plaintext secret).
|
|
@@ -60,7 +60,7 @@ var ApiKeys = class {
|
|
|
60
60
|
async retrieve(merchantId, keyId) {
|
|
61
61
|
return this.request(
|
|
62
62
|
"GET",
|
|
63
|
-
`/
|
|
63
|
+
`/api-keys/${encodeURIComponent(merchantId)}/${encodeURIComponent(keyId)}`
|
|
64
64
|
);
|
|
65
65
|
}
|
|
66
66
|
/**
|
|
@@ -74,7 +74,7 @@ var ApiKeys = class {
|
|
|
74
74
|
async update(merchantId, keyId, params) {
|
|
75
75
|
return this.request(
|
|
76
76
|
"POST",
|
|
77
|
-
`/
|
|
77
|
+
`/api-keys/${encodeURIComponent(merchantId)}/${encodeURIComponent(keyId)}`,
|
|
78
78
|
{ body: params }
|
|
79
79
|
);
|
|
80
80
|
}
|
|
@@ -88,7 +88,7 @@ var ApiKeys = class {
|
|
|
88
88
|
async revoke(merchantId, keyId) {
|
|
89
89
|
return this.request(
|
|
90
90
|
"DELETE",
|
|
91
|
-
`/
|
|
91
|
+
`/api-keys/${encodeURIComponent(merchantId)}/${encodeURIComponent(keyId)}`
|
|
92
92
|
);
|
|
93
93
|
}
|
|
94
94
|
/**
|
|
@@ -98,7 +98,7 @@ var ApiKeys = class {
|
|
|
98
98
|
* @returns Array of API key metadata objects.
|
|
99
99
|
*/
|
|
100
100
|
async list(merchantId) {
|
|
101
|
-
return this.request("GET", `/
|
|
101
|
+
return this.request("GET", `/api-keys/${encodeURIComponent(merchantId)}/list`);
|
|
102
102
|
}
|
|
103
103
|
};
|
|
104
104
|
|
|
@@ -129,11 +129,11 @@ var Authentication = class {
|
|
|
129
129
|
body: params
|
|
130
130
|
});
|
|
131
131
|
}
|
|
132
|
-
/** Enable authn methods token. `POST /authentication/{authId}/
|
|
132
|
+
/** Enable authn methods token. `POST /authentication/{authId}/enabled-authn-methods-token` */
|
|
133
133
|
async enabledAuthnMethodsToken(authId, params) {
|
|
134
134
|
return this.request(
|
|
135
135
|
"POST",
|
|
136
|
-
`/authentication/${encodeURIComponent(authId)}/
|
|
136
|
+
`/authentication/${encodeURIComponent(authId)}/enabled-authn-methods-token`,
|
|
137
137
|
{
|
|
138
138
|
body: params
|
|
139
139
|
}
|
|
@@ -352,8 +352,8 @@ var Connectors = class {
|
|
|
352
352
|
* `POST /account/{merchantId}/connectors/webhooks/{connectorId}`
|
|
353
353
|
*
|
|
354
354
|
* @param params - Optional event scope. Defaults to `{ event_type: 'all_events' }`
|
|
355
|
-
*
|
|
356
|
-
* to
|
|
355
|
+
* when omitted; pass `{ event_type: { specific_event: '…' } }` to scope
|
|
356
|
+
* to a single event.
|
|
357
357
|
*/
|
|
358
358
|
async registerWebhook(merchantId, connectorId, params) {
|
|
359
359
|
const path = `/account/${encodeURIComponent(merchantId)}/connectors/webhooks/${encodeURIComponent(connectorId)}`;
|
|
@@ -367,9 +367,9 @@ var Connectors = class {
|
|
|
367
367
|
`/account/${encodeURIComponent(merchantId)}/connectors/webhooks/${encodeURIComponent(connectorId)}`
|
|
368
368
|
);
|
|
369
369
|
}
|
|
370
|
-
/** List available payment methods. `GET /account/
|
|
370
|
+
/** List available payment methods. `GET /account/payment-methods` */
|
|
371
371
|
async listPaymentMethods() {
|
|
372
|
-
return this.request("GET", "/account/
|
|
372
|
+
return this.request("GET", "/account/payment-methods");
|
|
373
373
|
}
|
|
374
374
|
};
|
|
375
375
|
|
|
@@ -440,9 +440,9 @@ var Customers = class {
|
|
|
440
440
|
});
|
|
441
441
|
}
|
|
442
442
|
// --- OLAP extensions (Task 4.6) ---
|
|
443
|
-
/** List customers with count. `GET /customers/
|
|
443
|
+
/** List customers with count. `GET /customers/list-with-count` */
|
|
444
444
|
async listWithCount(params) {
|
|
445
|
-
return this.request("GET", "/customers/
|
|
445
|
+
return this.request("GET", "/customers/list-with-count", {
|
|
446
446
|
query: params
|
|
447
447
|
});
|
|
448
448
|
}
|
|
@@ -576,7 +576,7 @@ var EphemeralKeys = class {
|
|
|
576
576
|
* ```
|
|
577
577
|
*/
|
|
578
578
|
async create(params) {
|
|
579
|
-
return this.request("POST", "/
|
|
579
|
+
return this.request("POST", "/ephemeral-keys", { body: params });
|
|
580
580
|
}
|
|
581
581
|
/**
|
|
582
582
|
* Invalidate an ephemeral key before it expires.
|
|
@@ -585,7 +585,7 @@ var EphemeralKeys = class {
|
|
|
585
585
|
* @returns The deleted key object.
|
|
586
586
|
*/
|
|
587
587
|
async delete(keyId) {
|
|
588
|
-
return this.request("DELETE", `/
|
|
588
|
+
return this.request("DELETE", `/ephemeral-keys/${encodeURIComponent(keyId)}`);
|
|
589
589
|
}
|
|
590
590
|
};
|
|
591
591
|
|
|
@@ -628,7 +628,7 @@ var Fees = class {
|
|
|
628
628
|
* @param merchantId - The merchant account ID.
|
|
629
629
|
*/
|
|
630
630
|
async create(params, merchantId) {
|
|
631
|
-
return this.request("POST", "/
|
|
631
|
+
return this.request("POST", "/merchant-fees", {
|
|
632
632
|
body: params,
|
|
633
633
|
query: { merchant_id: merchantId }
|
|
634
634
|
});
|
|
@@ -639,7 +639,7 @@ var Fees = class {
|
|
|
639
639
|
* @param merchantId - The merchant account ID.
|
|
640
640
|
*/
|
|
641
641
|
async list(merchantId) {
|
|
642
|
-
return this.request("GET", "/
|
|
642
|
+
return this.request("GET", "/merchant-fees/list", {
|
|
643
643
|
query: { merchant_id: merchantId }
|
|
644
644
|
});
|
|
645
645
|
}
|
|
@@ -650,7 +650,7 @@ var Fees = class {
|
|
|
650
650
|
* @param params - Fields to update.
|
|
651
651
|
*/
|
|
652
652
|
async update(feeId, params) {
|
|
653
|
-
return this.request("PUT", `/
|
|
653
|
+
return this.request("PUT", `/merchant-fees/${encodeURIComponent(feeId)}`, { body: params });
|
|
654
654
|
}
|
|
655
655
|
/**
|
|
656
656
|
* Delete a merchant-scoped fee schedule.
|
|
@@ -658,7 +658,7 @@ var Fees = class {
|
|
|
658
658
|
* @param feeId - The fee schedule ID.
|
|
659
659
|
*/
|
|
660
660
|
async delete(feeId) {
|
|
661
|
-
return this.request("DELETE", `/
|
|
661
|
+
return this.request("DELETE", `/merchant-fees/${encodeURIComponent(feeId)}`);
|
|
662
662
|
}
|
|
663
663
|
};
|
|
664
664
|
|
|
@@ -746,7 +746,7 @@ var PaymentLinks = class {
|
|
|
746
746
|
* @returns The payment link details.
|
|
747
747
|
*/
|
|
748
748
|
async retrieve(linkId) {
|
|
749
|
-
return this.request("GET", `/
|
|
749
|
+
return this.request("GET", `/payment-link/${encodeURIComponent(linkId)}`);
|
|
750
750
|
}
|
|
751
751
|
/**
|
|
752
752
|
* List payment links, optionally filtered by status or date range.
|
|
@@ -755,20 +755,20 @@ var PaymentLinks = class {
|
|
|
755
755
|
* @returns Paginated list of payment links.
|
|
756
756
|
*/
|
|
757
757
|
async list(params) {
|
|
758
|
-
return this.request("POST", "/
|
|
758
|
+
return this.request("POST", "/payment-link/list", { body: params });
|
|
759
759
|
}
|
|
760
|
-
/** Initiate (render) a payment link page. `GET /
|
|
760
|
+
/** Initiate (render) a payment link page. `GET /payment-link/{merchantId}/{paymentId}` */
|
|
761
761
|
async initiate(merchantId, paymentId) {
|
|
762
762
|
return this.request(
|
|
763
763
|
"GET",
|
|
764
|
-
`/
|
|
764
|
+
`/payment-link/${encodeURIComponent(merchantId)}/${encodeURIComponent(paymentId)}`
|
|
765
765
|
);
|
|
766
766
|
}
|
|
767
|
-
/** Get payment link status. `GET /
|
|
767
|
+
/** Get payment link status. `GET /payment-linkstatus/{merchantId}/{paymentId}` */
|
|
768
768
|
async status(merchantId, paymentId) {
|
|
769
769
|
return this.request(
|
|
770
770
|
"GET",
|
|
771
|
-
`/
|
|
771
|
+
`/payment-linkstatus/${encodeURIComponent(merchantId)}/${encodeURIComponent(paymentId)}`
|
|
772
772
|
);
|
|
773
773
|
}
|
|
774
774
|
};
|
|
@@ -794,7 +794,7 @@ var PaymentMethods = class {
|
|
|
794
794
|
* ```
|
|
795
795
|
*/
|
|
796
796
|
async create(params) {
|
|
797
|
-
return this.request("POST", "/
|
|
797
|
+
return this.request("POST", "/payment-methods", { body: params });
|
|
798
798
|
}
|
|
799
799
|
/**
|
|
800
800
|
* Retrieve a saved payment method by its ID.
|
|
@@ -803,7 +803,7 @@ var PaymentMethods = class {
|
|
|
803
803
|
* @returns The payment method.
|
|
804
804
|
*/
|
|
805
805
|
async retrieve(methodId) {
|
|
806
|
-
return this.request("GET", `/
|
|
806
|
+
return this.request("GET", `/payment-methods/${encodeURIComponent(methodId)}`);
|
|
807
807
|
}
|
|
808
808
|
/**
|
|
809
809
|
* Update an existing payment method (e.g. update card expiry).
|
|
@@ -813,7 +813,7 @@ var PaymentMethods = class {
|
|
|
813
813
|
* @returns The updated payment method.
|
|
814
814
|
*/
|
|
815
815
|
async update(methodId, params) {
|
|
816
|
-
return this.request("POST", `/
|
|
816
|
+
return this.request("POST", `/payment-methods/${encodeURIComponent(methodId)}/update`, {
|
|
817
817
|
body: params
|
|
818
818
|
});
|
|
819
819
|
}
|
|
@@ -824,7 +824,7 @@ var PaymentMethods = class {
|
|
|
824
824
|
* @returns Deletion confirmation.
|
|
825
825
|
*/
|
|
826
826
|
async delete(methodId) {
|
|
827
|
-
return this.request("DELETE", `/
|
|
827
|
+
return this.request("DELETE", `/payment-methods/${encodeURIComponent(methodId)}`);
|
|
828
828
|
}
|
|
829
829
|
/**
|
|
830
830
|
* List payment methods using a client secret.
|
|
@@ -833,7 +833,7 @@ var PaymentMethods = class {
|
|
|
833
833
|
* @returns Array of payment methods.
|
|
834
834
|
*/
|
|
835
835
|
async list(params) {
|
|
836
|
-
return this.request("GET", "/
|
|
836
|
+
return this.request("GET", "/payment-methods", {
|
|
837
837
|
query: params
|
|
838
838
|
});
|
|
839
839
|
}
|
|
@@ -854,7 +854,7 @@ var PaymentMethods = class {
|
|
|
854
854
|
* ```
|
|
855
855
|
*/
|
|
856
856
|
async listForCustomer(customerId, params) {
|
|
857
|
-
return this.request("GET", `/customers/${encodeURIComponent(customerId)}/
|
|
857
|
+
return this.request("GET", `/customers/${encodeURIComponent(customerId)}/payment-methods`, {
|
|
858
858
|
query: params
|
|
859
859
|
});
|
|
860
860
|
}
|
|
@@ -868,55 +868,55 @@ var PaymentMethods = class {
|
|
|
868
868
|
async setDefault(customerId, methodId) {
|
|
869
869
|
return this.request(
|
|
870
870
|
"POST",
|
|
871
|
-
`/customers/${encodeURIComponent(customerId)}/
|
|
871
|
+
`/customers/${encodeURIComponent(customerId)}/payment-methods/${encodeURIComponent(methodId)}/default`
|
|
872
872
|
);
|
|
873
873
|
}
|
|
874
874
|
// --- Advanced operations (Task 3.3) ---
|
|
875
|
-
/** Migrate a payment method. `POST /
|
|
875
|
+
/** Migrate a payment method. `POST /payment-methods/migrate` */
|
|
876
876
|
async migrate(params) {
|
|
877
|
-
return this.request("POST", "/
|
|
877
|
+
return this.request("POST", "/payment-methods/migrate", { body: params });
|
|
878
878
|
}
|
|
879
|
-
/** Batch migrate payment methods. `POST /
|
|
879
|
+
/** Batch migrate payment methods. `POST /payment-methods/migrate-batch` */
|
|
880
880
|
async migrateBatch(params) {
|
|
881
|
-
return this.request("POST", "/
|
|
881
|
+
return this.request("POST", "/payment-methods/migrate-batch", { body: params });
|
|
882
882
|
}
|
|
883
|
-
/** Batch update payment methods. `POST /
|
|
883
|
+
/** Batch update payment methods. `POST /payment-methods/update-batch` */
|
|
884
884
|
async updateBatch(params) {
|
|
885
|
-
return this.request("POST", "/
|
|
885
|
+
return this.request("POST", "/payment-methods/update-batch", { body: params });
|
|
886
886
|
}
|
|
887
|
-
/** Batch retrieve payment methods. `GET /
|
|
887
|
+
/** Batch retrieve payment methods. `GET /payment-methods/batch` */
|
|
888
888
|
async batchRetrieve(params) {
|
|
889
|
-
return this.request("GET", "/
|
|
889
|
+
return this.request("GET", "/payment-methods/batch", { query: params });
|
|
890
890
|
}
|
|
891
|
-
/** Tokenize a card. `POST /
|
|
891
|
+
/** Tokenize a card. `POST /payment-methods/tokenize-card` */
|
|
892
892
|
async tokenizeCard(params) {
|
|
893
|
-
return this.request("POST", "/
|
|
893
|
+
return this.request("POST", "/payment-methods/tokenize-card", { body: params });
|
|
894
894
|
}
|
|
895
|
-
/** Batch tokenize cards. `POST /
|
|
895
|
+
/** Batch tokenize cards. `POST /payment-methods/tokenize-card-batch` */
|
|
896
896
|
async tokenizeCardBatch(params) {
|
|
897
|
-
return this.request("POST", "/
|
|
897
|
+
return this.request("POST", "/payment-methods/tokenize-card-batch", { body: params });
|
|
898
898
|
}
|
|
899
|
-
/** Initiate payment method collect link flow. `POST /
|
|
899
|
+
/** Initiate payment method collect link flow. `POST /payment-methods/collect` */
|
|
900
900
|
async collect(params) {
|
|
901
|
-
return this.request("POST", "/
|
|
901
|
+
return this.request("POST", "/payment-methods/collect", { body: params });
|
|
902
902
|
}
|
|
903
|
-
/** Save a payment method. `POST /
|
|
903
|
+
/** Save a payment method. `POST /payment-methods/{methodId}/save` */
|
|
904
904
|
async save(methodId, params) {
|
|
905
|
-
return this.request("POST", `/
|
|
905
|
+
return this.request("POST", `/payment-methods/${encodeURIComponent(methodId)}/save`, {
|
|
906
906
|
body: params
|
|
907
907
|
});
|
|
908
908
|
}
|
|
909
|
-
/** Create payment method auth link token. `POST /
|
|
909
|
+
/** Create payment method auth link token. `POST /payment-methods/auth/link` */
|
|
910
910
|
async createAuthLink(params) {
|
|
911
|
-
return this.request("POST", "/
|
|
911
|
+
return this.request("POST", "/payment-methods/auth/link", { body: params });
|
|
912
912
|
}
|
|
913
|
-
/** Exchange payment method auth token. `POST /
|
|
913
|
+
/** Exchange payment method auth token. `POST /payment-methods/auth/exchange` */
|
|
914
914
|
async exchangeAuthToken(params) {
|
|
915
|
-
return this.request("POST", "/
|
|
915
|
+
return this.request("POST", "/payment-methods/auth/exchange", { body: params });
|
|
916
916
|
}
|
|
917
|
-
/** Tokenize card using existing PM. `POST /
|
|
917
|
+
/** Tokenize card using existing PM. `POST /payment-methods/{methodId}/tokenize-card` */
|
|
918
918
|
async tokenizeCardForMethod(methodId, params) {
|
|
919
|
-
return this.request("POST", `/
|
|
919
|
+
return this.request("POST", `/payment-methods/${encodeURIComponent(methodId)}/tokenize-card`, {
|
|
920
920
|
body: params
|
|
921
921
|
});
|
|
922
922
|
}
|
|
@@ -949,13 +949,12 @@ var Payments = class {
|
|
|
949
949
|
* Retrieve a payment by its ID.
|
|
950
950
|
*
|
|
951
951
|
* @param paymentId - The unique payment intent ID.
|
|
952
|
-
* @param options - Optional query flags. `force_sync`
|
|
953
|
-
*
|
|
954
|
-
* stuck intent when a webhook was lost). `all_keys_required`
|
|
955
|
-
*
|
|
956
|
-
*
|
|
957
|
-
*
|
|
958
|
-
* helpers; API-key callers can use them too where the backend allows.
|
|
952
|
+
* @param options - Optional query flags. `force_sync` reconciles the
|
|
953
|
+
* intent's state with the connector before returning (useful to recover
|
|
954
|
+
* a stuck intent when a webhook was lost). `all_keys_required` forces a
|
|
955
|
+
* connector sync even for intents in early states like
|
|
956
|
+
* `requires_payment_method` that would otherwise return the local
|
|
957
|
+
* snapshot. Both flags work with JWT and API-key authentication.
|
|
959
958
|
* @returns The payment intent.
|
|
960
959
|
*
|
|
961
960
|
* @example
|
|
@@ -1041,57 +1040,57 @@ var Payments = class {
|
|
|
1041
1040
|
});
|
|
1042
1041
|
}
|
|
1043
1042
|
// --- Advanced operations (Task 3.2) ---
|
|
1044
|
-
/** Generate session tokens. `POST /payments/
|
|
1043
|
+
/** Generate session tokens. `POST /payments/session-tokens` */
|
|
1045
1044
|
async sessionTokens(params) {
|
|
1046
|
-
return this.request("POST", "/payments/
|
|
1045
|
+
return this.request("POST", "/payments/session-tokens", { body: params });
|
|
1047
1046
|
}
|
|
1048
1047
|
/** Retrieve payment with gateway credentials. `POST /payments/sync` */
|
|
1049
1048
|
async sync(params) {
|
|
1050
1049
|
return this.request("POST", "/payments/sync", { body: params });
|
|
1051
1050
|
}
|
|
1052
|
-
/** Cancel after partial capture. `POST /payments/{paymentId}/
|
|
1051
|
+
/** Cancel after partial capture. `POST /payments/{paymentId}/cancel-post-capture` */
|
|
1053
1052
|
async cancelPostCapture(paymentId, params) {
|
|
1054
|
-
return this.request("POST", `/payments/${encodeURIComponent(paymentId)}/
|
|
1053
|
+
return this.request("POST", `/payments/${encodeURIComponent(paymentId)}/cancel-post-capture`, {
|
|
1055
1054
|
body: params
|
|
1056
1055
|
});
|
|
1057
1056
|
}
|
|
1058
|
-
/** Incrementally authorize more funds. `POST /payments/{paymentId}/
|
|
1057
|
+
/** Incrementally authorize more funds. `POST /payments/{paymentId}/incremental-authorization` */
|
|
1059
1058
|
async incrementalAuthorization(paymentId, params) {
|
|
1060
1059
|
return this.request(
|
|
1061
1060
|
"POST",
|
|
1062
|
-
`/payments/${encodeURIComponent(paymentId)}/
|
|
1061
|
+
`/payments/${encodeURIComponent(paymentId)}/incremental-authorization`,
|
|
1063
1062
|
{
|
|
1064
1063
|
body: params
|
|
1065
1064
|
}
|
|
1066
1065
|
);
|
|
1067
1066
|
}
|
|
1068
|
-
/** Extend authorization window. `POST /payments/{paymentId}/
|
|
1067
|
+
/** Extend authorization window. `POST /payments/{paymentId}/extend-authorization` */
|
|
1069
1068
|
async extendAuthorization(paymentId, params) {
|
|
1070
|
-
return this.request("POST", `/payments/${encodeURIComponent(paymentId)}/
|
|
1069
|
+
return this.request("POST", `/payments/${encodeURIComponent(paymentId)}/extend-authorization`, {
|
|
1071
1070
|
body: params
|
|
1072
1071
|
});
|
|
1073
1072
|
}
|
|
1074
|
-
/** Complete authorization. `POST /payments/{paymentId}/
|
|
1073
|
+
/** Complete authorization. `POST /payments/{paymentId}/complete-authorize` */
|
|
1075
1074
|
async completeAuthorize(paymentId, params) {
|
|
1076
|
-
return this.request("POST", `/payments/${encodeURIComponent(paymentId)}/
|
|
1075
|
+
return this.request("POST", `/payments/${encodeURIComponent(paymentId)}/complete-authorize`, {
|
|
1077
1076
|
body: params
|
|
1078
1077
|
});
|
|
1079
1078
|
}
|
|
1080
|
-
/** Dynamic tax calculation. `POST /payments/{paymentId}/
|
|
1079
|
+
/** Dynamic tax calculation. `POST /payments/{paymentId}/calculate-tax` */
|
|
1081
1080
|
async calculateTax(paymentId, params) {
|
|
1082
|
-
return this.request("POST", `/payments/${encodeURIComponent(paymentId)}/
|
|
1081
|
+
return this.request("POST", `/payments/${encodeURIComponent(paymentId)}/calculate-tax`, {
|
|
1083
1082
|
body: params
|
|
1084
1083
|
});
|
|
1085
1084
|
}
|
|
1086
|
-
/** Update payment metadata. `POST /payments/{paymentId}/
|
|
1085
|
+
/** Update payment metadata. `POST /payments/{paymentId}/update-metadata` */
|
|
1087
1086
|
async updateMetadata(paymentId, params) {
|
|
1088
|
-
return this.request("POST", `/payments/${encodeURIComponent(paymentId)}/
|
|
1087
|
+
return this.request("POST", `/payments/${encodeURIComponent(paymentId)}/update-metadata`, {
|
|
1089
1088
|
body: params
|
|
1090
1089
|
});
|
|
1091
1090
|
}
|
|
1092
|
-
/** Retrieve extended card info. `GET /payments/{paymentId}/
|
|
1091
|
+
/** Retrieve extended card info. `GET /payments/{paymentId}/extended-card-info` */
|
|
1093
1092
|
async extendedCardInfo(paymentId) {
|
|
1094
|
-
return this.request("GET", `/payments/${encodeURIComponent(paymentId)}/
|
|
1093
|
+
return this.request("GET", `/payments/${encodeURIComponent(paymentId)}/extended-card-info`);
|
|
1095
1094
|
}
|
|
1096
1095
|
// --- OLAP extensions (Task 4.2) ---
|
|
1097
1096
|
/** List payments (profile-scoped). `GET /payments/profile/list` */
|
|
@@ -1282,12 +1281,12 @@ var ProfileAcquirers = class {
|
|
|
1282
1281
|
this.request = request;
|
|
1283
1282
|
}
|
|
1284
1283
|
async create(params) {
|
|
1285
|
-
return this.request("POST", "/
|
|
1284
|
+
return this.request("POST", "/profile-acquirer", { body: params });
|
|
1286
1285
|
}
|
|
1287
1286
|
async update(profileId, profileAcquirerId, params) {
|
|
1288
1287
|
return this.request(
|
|
1289
1288
|
"POST",
|
|
1290
|
-
`/
|
|
1289
|
+
`/profile-acquirer/${encodeURIComponent(profileId)}/${encodeURIComponent(profileAcquirerId)}`,
|
|
1291
1290
|
{
|
|
1292
1291
|
body: params
|
|
1293
1292
|
}
|
|
@@ -1301,23 +1300,23 @@ var Profiles = class {
|
|
|
1301
1300
|
this.request = request;
|
|
1302
1301
|
}
|
|
1303
1302
|
async create(accountId, params) {
|
|
1304
|
-
return this.request("POST", `/account/${encodeURIComponent(accountId)}/
|
|
1303
|
+
return this.request("POST", `/account/${encodeURIComponent(accountId)}/business-profile`, {
|
|
1305
1304
|
body: params
|
|
1306
1305
|
});
|
|
1307
1306
|
}
|
|
1308
1307
|
async retrieve(accountId, profileId) {
|
|
1309
1308
|
return this.request(
|
|
1310
1309
|
"GET",
|
|
1311
|
-
`/account/${encodeURIComponent(accountId)}/
|
|
1310
|
+
`/account/${encodeURIComponent(accountId)}/business-profile/${encodeURIComponent(profileId)}`
|
|
1312
1311
|
);
|
|
1313
1312
|
}
|
|
1314
1313
|
async list(accountId) {
|
|
1315
|
-
return this.request("GET", `/account/${encodeURIComponent(accountId)}/
|
|
1314
|
+
return this.request("GET", `/account/${encodeURIComponent(accountId)}/business-profile`);
|
|
1316
1315
|
}
|
|
1317
1316
|
async update(accountId, profileId, params) {
|
|
1318
1317
|
return this.request(
|
|
1319
1318
|
"POST",
|
|
1320
|
-
`/account/${encodeURIComponent(accountId)}/
|
|
1319
|
+
`/account/${encodeURIComponent(accountId)}/business-profile/${encodeURIComponent(profileId)}`,
|
|
1321
1320
|
{
|
|
1322
1321
|
body: params
|
|
1323
1322
|
}
|
|
@@ -1326,22 +1325,22 @@ var Profiles = class {
|
|
|
1326
1325
|
async delete(accountId, profileId) {
|
|
1327
1326
|
return this.request(
|
|
1328
1327
|
"DELETE",
|
|
1329
|
-
`/account/${encodeURIComponent(accountId)}/
|
|
1328
|
+
`/account/${encodeURIComponent(accountId)}/business-profile/${encodeURIComponent(profileId)}`
|
|
1330
1329
|
);
|
|
1331
1330
|
}
|
|
1332
1331
|
// --- Advanced operations (Task 4.8) ---
|
|
1333
|
-
/** Toggle extended card info for a profile. `POST /account/{accountId}/
|
|
1332
|
+
/** Toggle extended card info for a profile. `POST /account/{accountId}/business-profile/{profileId}/toggle-extended-card-info` */
|
|
1334
1333
|
async toggleExtendedCardInfo(accountId, profileId) {
|
|
1335
1334
|
return this.request(
|
|
1336
1335
|
"POST",
|
|
1337
|
-
`/account/${encodeURIComponent(accountId)}/
|
|
1336
|
+
`/account/${encodeURIComponent(accountId)}/business-profile/${encodeURIComponent(profileId)}/toggle-extended-card-info`
|
|
1338
1337
|
);
|
|
1339
1338
|
}
|
|
1340
|
-
/** Toggle connector agnostic MIT. `POST /account/{accountId}/
|
|
1339
|
+
/** Toggle connector agnostic MIT. `POST /account/{accountId}/business-profile/{profileId}/toggle-connector-agnostic-mit` */
|
|
1341
1340
|
async toggleConnectorAgnosticMit(accountId, profileId) {
|
|
1342
1341
|
return this.request(
|
|
1343
1342
|
"POST",
|
|
1344
|
-
`/account/${encodeURIComponent(accountId)}/
|
|
1343
|
+
`/account/${encodeURIComponent(accountId)}/business-profile/${encodeURIComponent(profileId)}/toggle-connector-agnostic-mit`
|
|
1345
1344
|
);
|
|
1346
1345
|
}
|
|
1347
1346
|
};
|
|
@@ -1852,23 +1851,23 @@ var StripeConnect = class {
|
|
|
1852
1851
|
this.request = request;
|
|
1853
1852
|
}
|
|
1854
1853
|
async createAccount(params) {
|
|
1855
|
-
return this.request("POST", "/
|
|
1854
|
+
return this.request("POST", "/connector-onboarding/stripe/accounts", { body: params });
|
|
1856
1855
|
}
|
|
1857
1856
|
async createAccountLink(params) {
|
|
1858
|
-
return this.request("POST", "/
|
|
1857
|
+
return this.request("POST", "/connector-onboarding/stripe/account-links", { body: params });
|
|
1859
1858
|
}
|
|
1860
1859
|
// --- Generic connector onboarding (Task 4.11) ---
|
|
1861
|
-
/** Get onboarding action URL. `POST /
|
|
1860
|
+
/** Get onboarding action URL. `POST /connector-onboarding/action-url` */
|
|
1862
1861
|
async getActionUrl(params) {
|
|
1863
|
-
return this.request("POST", "/
|
|
1862
|
+
return this.request("POST", "/connector-onboarding/action-url", { body: params });
|
|
1864
1863
|
}
|
|
1865
|
-
/** Sync onboarding status. `POST /
|
|
1864
|
+
/** Sync onboarding status. `POST /connector-onboarding/sync` */
|
|
1866
1865
|
async syncOnboarding(params) {
|
|
1867
|
-
return this.request("POST", "/
|
|
1866
|
+
return this.request("POST", "/connector-onboarding/sync", { body: params });
|
|
1868
1867
|
}
|
|
1869
|
-
/** Reset tracking ID. `POST /
|
|
1868
|
+
/** Reset tracking ID. `POST /connector-onboarding/reset-tracking-id` */
|
|
1870
1869
|
async resetTrackingId(params) {
|
|
1871
|
-
return this.request("POST", "/
|
|
1870
|
+
return this.request("POST", "/connector-onboarding/reset-tracking-id", { body: params });
|
|
1872
1871
|
}
|
|
1873
1872
|
};
|
|
1874
1873
|
|
|
@@ -1878,7 +1877,7 @@ var ThreeDsRules = class {
|
|
|
1878
1877
|
this.request = request;
|
|
1879
1878
|
}
|
|
1880
1879
|
async execute(params) {
|
|
1881
|
-
return this.request("POST", "/
|
|
1880
|
+
return this.request("POST", "/three-ds-decision/execute", { body: params });
|
|
1882
1881
|
}
|
|
1883
1882
|
};
|
|
1884
1883
|
|
|
@@ -1897,16 +1896,15 @@ var Users = class {
|
|
|
1897
1896
|
return this.request("POST", "/user/signout");
|
|
1898
1897
|
}
|
|
1899
1898
|
/**
|
|
1900
|
-
* Paginated login history for the authenticated user
|
|
1901
|
-
* country / city / lat-lon (when GeoIP is enabled
|
|
1902
|
-
*
|
|
1903
|
-
*
|
|
1899
|
+
* Paginated login history for the authenticated user -- IP, User-Agent,
|
|
1900
|
+
* country / city / lat-lon (when GeoIP is enabled), success and failure
|
|
1901
|
+
* events with their reasons. Strictly scoped to the JWT subject; a user
|
|
1902
|
+
* can only see their own activity.
|
|
1904
1903
|
*
|
|
1905
1904
|
* `GET /user/me/login-activity`. Requires a logged-in JWT.
|
|
1906
1905
|
*
|
|
1907
|
-
*
|
|
1908
|
-
*
|
|
1909
|
-
* merchant dashboard.
|
|
1906
|
+
* Returns an empty page when a Delopay admin is impersonating a merchant,
|
|
1907
|
+
* so the admin's metadata is not exposed inside the merchant dashboard.
|
|
1910
1908
|
*/
|
|
1911
1909
|
async listLoginActivity(params) {
|
|
1912
1910
|
if (params === void 0) {
|
|
@@ -1953,27 +1951,26 @@ var Users = class {
|
|
|
1953
1951
|
}
|
|
1954
1952
|
/**
|
|
1955
1953
|
* Permanently delete the caller's account. Requires a fresh password
|
|
1956
|
-
* (and a current 6-digit TOTP code if the user has TOTP enrolled).
|
|
1957
|
-
*
|
|
1958
|
-
*
|
|
1959
|
-
*
|
|
1960
|
-
* caller should clear local credentials and route to the login page.
|
|
1954
|
+
* (and a current 6-digit TOTP code if the user has TOTP enrolled). On
|
|
1955
|
+
* success all role assignments are removed, the user record is
|
|
1956
|
+
* deactivated, and all in-flight sessions are invalidated. The caller
|
|
1957
|
+
* should clear local credentials and route to the login page.
|
|
1961
1958
|
*
|
|
1962
|
-
*
|
|
1963
|
-
* owner-level admin of an org / merchant / profile
|
|
1964
|
-
* ownership first.
|
|
1959
|
+
* Returns `InvalidDeleteOperation` when the caller is the sole
|
|
1960
|
+
* owner-level admin of an org / merchant / profile -- they must
|
|
1961
|
+
* transfer ownership first.
|
|
1965
1962
|
*/
|
|
1966
1963
|
async deleteAccount(params) {
|
|
1967
1964
|
return this.request("DELETE", "/user/account", { body: params });
|
|
1968
1965
|
}
|
|
1969
1966
|
async changePassword(params) {
|
|
1970
|
-
return this.request("POST", "/user/
|
|
1967
|
+
return this.request("POST", "/user/change-password", { body: params });
|
|
1971
1968
|
}
|
|
1972
1969
|
async rotatePassword(params) {
|
|
1973
|
-
return this.request("POST", "/user/
|
|
1970
|
+
return this.request("POST", "/user/rotate-password", { body: params });
|
|
1974
1971
|
}
|
|
1975
1972
|
async forgotPassword(params) {
|
|
1976
|
-
return this.request("POST", "/user/
|
|
1973
|
+
return this.request("POST", "/user/forgot-password", { body: params });
|
|
1977
1974
|
}
|
|
1978
1975
|
/**
|
|
1979
1976
|
* Commit a password reset.
|
|
@@ -1987,7 +1984,7 @@ var Users = class {
|
|
|
1987
1984
|
* decodes it a second time to find the user.
|
|
1988
1985
|
*/
|
|
1989
1986
|
async resetPassword(params) {
|
|
1990
|
-
return this.request("POST", "/user/
|
|
1987
|
+
return this.request("POST", "/user/reset-password", { body: params });
|
|
1991
1988
|
}
|
|
1992
1989
|
/**
|
|
1993
1990
|
* Exchange an email-link token (`EmailToken`) for a single-purpose JWT
|
|
@@ -1997,16 +1994,16 @@ var Users = class {
|
|
|
1997
1994
|
* The `token_type` in the response tells you which step to run next.
|
|
1998
1995
|
*/
|
|
1999
1996
|
async fromEmail(params) {
|
|
2000
|
-
return this.request("POST", "/user/
|
|
1997
|
+
return this.request("POST", "/user/from-email", { body: params });
|
|
2001
1998
|
}
|
|
2002
1999
|
async verifyEmail(params) {
|
|
2003
|
-
return this.request("POST", "/user/
|
|
2000
|
+
return this.request("POST", "/user/verify-email", { body: params });
|
|
2004
2001
|
}
|
|
2005
2002
|
async sendVerificationEmail(params) {
|
|
2006
|
-
return this.request("POST", "/user/
|
|
2003
|
+
return this.request("POST", "/user/verify-email-request", { body: params });
|
|
2007
2004
|
}
|
|
2008
2005
|
async createMerchant(params) {
|
|
2009
|
-
return this.request("POST", "/user/
|
|
2006
|
+
return this.request("POST", "/user/create-merchant", { body: params });
|
|
2010
2007
|
}
|
|
2011
2008
|
async switchMerchant(params) {
|
|
2012
2009
|
return this.request("POST", "/user/switch/merchant", { body: params });
|
|
@@ -2021,10 +2018,10 @@ var Users = class {
|
|
|
2021
2018
|
return this.request("GET", "/user/list/profile");
|
|
2022
2019
|
}
|
|
2023
2020
|
async inviteUsers(params) {
|
|
2024
|
-
return this.request("POST", "/user/
|
|
2021
|
+
return this.request("POST", "/user/employees/invite", { body: params });
|
|
2025
2022
|
}
|
|
2026
2023
|
async acceptInvitation(params) {
|
|
2027
|
-
return this.request("POST", "/user/
|
|
2024
|
+
return this.request("POST", "/user/invite/accept", { body: params });
|
|
2028
2025
|
}
|
|
2029
2026
|
/**
|
|
2030
2027
|
* Accept an invitation via the email-link flow.
|
|
@@ -2037,7 +2034,7 @@ var Users = class {
|
|
|
2037
2034
|
* invitee and the entity lineage.
|
|
2038
2035
|
*/
|
|
2039
2036
|
async acceptInviteFromEmail(params) {
|
|
2040
|
-
return this.request("POST", "/user/
|
|
2037
|
+
return this.request("POST", "/user/accept-invite-from-email", { body: params });
|
|
2041
2038
|
}
|
|
2042
2039
|
/**
|
|
2043
2040
|
* Start TOTP setup (or no-op if already set).
|
|
@@ -2064,10 +2061,10 @@ var Users = class {
|
|
|
2064
2061
|
return this.request("GET", "/user/2fa/totp/reset");
|
|
2065
2062
|
}
|
|
2066
2063
|
async generateRecoveryCodes() {
|
|
2067
|
-
return this.request("GET", "/user/2fa/
|
|
2064
|
+
return this.request("GET", "/user/2fa/recovery-code/generate");
|
|
2068
2065
|
}
|
|
2069
2066
|
async verifyRecoveryCode(params) {
|
|
2070
|
-
return this.request("POST", "/user/2fa/
|
|
2067
|
+
return this.request("POST", "/user/2fa/recovery-code/verify", { body: params });
|
|
2071
2068
|
}
|
|
2072
2069
|
async sendPhoneOtp(params) {
|
|
2073
2070
|
return this.request("POST", "/user/phone/send-otp", { body: params });
|
|
@@ -2079,13 +2076,13 @@ var Users = class {
|
|
|
2079
2076
|
return this.request("GET", "/user/role/list");
|
|
2080
2077
|
}
|
|
2081
2078
|
async listUserRoles(params) {
|
|
2082
|
-
return this.request("POST", "/user/
|
|
2079
|
+
return this.request("POST", "/user/employees", { body: params });
|
|
2083
2080
|
}
|
|
2084
2081
|
async updateUserRole(params) {
|
|
2085
|
-
return this.request("POST", "/user/
|
|
2082
|
+
return this.request("POST", "/user/employees/update-role", { body: params });
|
|
2086
2083
|
}
|
|
2087
2084
|
async deleteUserRole(params) {
|
|
2088
|
-
return this.request("DELETE", "/user/
|
|
2085
|
+
return this.request("DELETE", "/user/employees/delete", { body: params });
|
|
2089
2086
|
}
|
|
2090
2087
|
/** Sign in via OIDC. `POST /user/oidc` */
|
|
2091
2088
|
async signInOidc(params) {
|
|
@@ -2147,13 +2144,13 @@ var Users = class {
|
|
|
2147
2144
|
async selectAuth(params) {
|
|
2148
2145
|
return this.request("POST", "/user/auth/select", { body: params });
|
|
2149
2146
|
}
|
|
2150
|
-
/** List users in lineage. `GET /user/
|
|
2147
|
+
/** List users in lineage. `GET /user/employees/list` */
|
|
2151
2148
|
async listUsersInLineage() {
|
|
2152
|
-
return this.request("GET", "/user/
|
|
2149
|
+
return this.request("GET", "/user/employees/list");
|
|
2153
2150
|
}
|
|
2154
|
-
/** Resend invite. `POST /user/
|
|
2151
|
+
/** Resend invite. `POST /user/employees/resend-invite` */
|
|
2155
2152
|
async resendInvite(params) {
|
|
2156
|
-
return this.request("POST", "/user/
|
|
2153
|
+
return this.request("POST", "/user/employees/resend-invite", { body: params });
|
|
2157
2154
|
}
|
|
2158
2155
|
/**
|
|
2159
2156
|
* Get the caller's parent permission groups + scopes.
|
|
@@ -2182,9 +2179,9 @@ var Users = class {
|
|
|
2182
2179
|
async listUpdatableRoles() {
|
|
2183
2180
|
return this.request("GET", "/user/role/list/update");
|
|
2184
2181
|
}
|
|
2185
|
-
/** Get permission info. `GET /user/
|
|
2182
|
+
/** Get permission info. `GET /user/permission-info` */
|
|
2186
2183
|
async getPermissionInfo() {
|
|
2187
|
-
return this.request("GET", "/user/
|
|
2184
|
+
return this.request("GET", "/user/permission-info");
|
|
2188
2185
|
}
|
|
2189
2186
|
/** Get module list. `GET /user/module/list` */
|
|
2190
2187
|
async getModuleList() {
|
|
@@ -2214,12 +2211,12 @@ var Verification = class {
|
|
|
2214
2211
|
this.request = request;
|
|
2215
2212
|
}
|
|
2216
2213
|
async registerApplePayDomains(merchantId, params) {
|
|
2217
|
-
return this.request("POST", `/verify/
|
|
2214
|
+
return this.request("POST", `/verify/apple-pay/${encodeURIComponent(merchantId)}`, {
|
|
2218
2215
|
body: params
|
|
2219
2216
|
});
|
|
2220
2217
|
}
|
|
2221
2218
|
async getApplePayVerifiedDomains(params) {
|
|
2222
|
-
return this.request("GET", "/verify/
|
|
2219
|
+
return this.request("GET", "/verify/applepay-verified-domains", {
|
|
2223
2220
|
query: params
|
|
2224
2221
|
});
|
|
2225
2222
|
}
|
|
@@ -2320,28 +2317,28 @@ var AnalyticsDomain = class {
|
|
|
2320
2317
|
}
|
|
2321
2318
|
/** Get metrics. `POST /analytics/metrics/{domain}` */
|
|
2322
2319
|
async metrics(params, scope) {
|
|
2323
|
-
const prefix = scope ? `/analytics/${scope}` : "/analytics
|
|
2320
|
+
const prefix = scope ? `/analytics/${scope}` : "/analytics";
|
|
2324
2321
|
return this.request("POST", `${prefix}/metrics/${encodeURIComponent(this.domain)}`, {
|
|
2325
2322
|
body: [params]
|
|
2326
2323
|
});
|
|
2327
2324
|
}
|
|
2328
2325
|
/** Get filters. `POST /analytics/filters/{domain}` */
|
|
2329
2326
|
async filters(params, scope) {
|
|
2330
|
-
const prefix = scope ? `/analytics/${scope}` : "/analytics
|
|
2327
|
+
const prefix = scope ? `/analytics/${scope}` : "/analytics";
|
|
2331
2328
|
return this.request("POST", `${prefix}/filters/${encodeURIComponent(this.domain)}`, {
|
|
2332
2329
|
body: params
|
|
2333
2330
|
});
|
|
2334
2331
|
}
|
|
2335
2332
|
/** Generate report. `POST /analytics/report/{domain}` */
|
|
2336
2333
|
async report(params, scope) {
|
|
2337
|
-
const prefix = scope ? `/analytics/${scope}` : "/analytics
|
|
2334
|
+
const prefix = scope ? `/analytics/${scope}` : "/analytics";
|
|
2338
2335
|
return this.request("POST", `${prefix}/report/${encodeURIComponent(this.domain)}`, {
|
|
2339
2336
|
body: params
|
|
2340
2337
|
});
|
|
2341
2338
|
}
|
|
2342
2339
|
/** Sankey chart data. `POST /analytics/metrics/{domain}/sankey` */
|
|
2343
2340
|
async sankey(params, scope) {
|
|
2344
|
-
const prefix = scope ? `/analytics/${scope}` : "/analytics
|
|
2341
|
+
const prefix = scope ? `/analytics/${scope}` : "/analytics";
|
|
2345
2342
|
return this.request("POST", `${prefix}/metrics/${encodeURIComponent(this.domain)}/sankey`, {
|
|
2346
2343
|
body: params
|
|
2347
2344
|
});
|
|
@@ -2373,25 +2370,25 @@ var Analytics = class {
|
|
|
2373
2370
|
async getInfo(domain) {
|
|
2374
2371
|
return this.request("GET", `/analytics/${encodeURIComponent(domain)}/info`);
|
|
2375
2372
|
}
|
|
2376
|
-
/** Get API event logs. `GET /analytics/
|
|
2373
|
+
/** Get API event logs. `GET /analytics/api-event-logs` */
|
|
2377
2374
|
async apiEventLogs(params) {
|
|
2378
|
-
return this.request("GET", "/analytics/
|
|
2375
|
+
return this.request("GET", "/analytics/api-event-logs", { query: params });
|
|
2379
2376
|
}
|
|
2380
|
-
/** Get SDK event logs. `POST /analytics/
|
|
2377
|
+
/** Get SDK event logs. `POST /analytics/sdk-event-logs` */
|
|
2381
2378
|
async sdkEventLogs(params) {
|
|
2382
|
-
return this.request("POST", "/analytics/
|
|
2379
|
+
return this.request("POST", "/analytics/sdk-event-logs", { body: params });
|
|
2383
2380
|
}
|
|
2384
|
-
/** Get connector event logs. `GET /analytics/
|
|
2381
|
+
/** Get connector event logs. `GET /analytics/connector-event-logs` */
|
|
2385
2382
|
async connectorEventLogs(params) {
|
|
2386
|
-
return this.request("GET", "/analytics/
|
|
2383
|
+
return this.request("GET", "/analytics/connector-event-logs", { query: params });
|
|
2387
2384
|
}
|
|
2388
|
-
/** Get routing event logs. `GET /analytics/
|
|
2385
|
+
/** Get routing event logs. `GET /analytics/routing-event-logs` */
|
|
2389
2386
|
async routingEventLogs(params) {
|
|
2390
|
-
return this.request("GET", "/analytics/
|
|
2387
|
+
return this.request("GET", "/analytics/routing-event-logs", { query: params });
|
|
2391
2388
|
}
|
|
2392
|
-
/** Get outgoing webhook event logs. `GET /analytics/
|
|
2389
|
+
/** Get outgoing webhook event logs. `GET /analytics/outgoing-webhook-event-logs` */
|
|
2393
2390
|
async outgoingWebhookEventLogs(params) {
|
|
2394
|
-
return this.request("GET", "/analytics/
|
|
2391
|
+
return this.request("GET", "/analytics/outgoing-webhook-event-logs", { query: params });
|
|
2395
2392
|
}
|
|
2396
2393
|
};
|
|
2397
2394
|
|
|
@@ -2445,18 +2442,18 @@ var FeatureMatrix = class {
|
|
|
2445
2442
|
constructor(request) {
|
|
2446
2443
|
this.request = request;
|
|
2447
2444
|
}
|
|
2448
|
-
/** Retrieve the feature matrix. `GET /
|
|
2445
|
+
/** Retrieve the feature matrix. `GET /feature-matrix` */
|
|
2449
2446
|
async retrieve() {
|
|
2450
|
-
return this.request("GET", "/
|
|
2447
|
+
return this.request("GET", "/feature-matrix");
|
|
2451
2448
|
}
|
|
2452
2449
|
/**
|
|
2453
2450
|
* Retrieve the feature matrix scoped to a merchant. Beta connectors
|
|
2454
2451
|
* are filtered against the merchant's allowlist so the dashboard only
|
|
2455
2452
|
* surfaces connectors the merchant can actually attach.
|
|
2456
|
-
* `GET /
|
|
2453
|
+
* `GET /feature-matrix/{merchantId}`
|
|
2457
2454
|
*/
|
|
2458
2455
|
async retrieveForMerchant(merchantId) {
|
|
2459
|
-
return this.request("GET", `/
|
|
2456
|
+
return this.request("GET", `/feature-matrix/${encodeURIComponent(merchantId)}`);
|
|
2460
2457
|
}
|
|
2461
2458
|
};
|
|
2462
2459
|
|
|
@@ -2488,9 +2485,9 @@ var Forex = class {
|
|
|
2488
2485
|
async getRates(params) {
|
|
2489
2486
|
return this.request("GET", "/forex/rates", { query: params });
|
|
2490
2487
|
}
|
|
2491
|
-
/** Convert from minor currency. `GET /forex/
|
|
2488
|
+
/** Convert from minor currency. `GET /forex/convert-from-minor` */
|
|
2492
2489
|
async convertFromMinor(params) {
|
|
2493
|
-
return this.request("GET", "/forex/
|
|
2490
|
+
return this.request("GET", "/forex/convert-from-minor", { query: params });
|
|
2494
2491
|
}
|
|
2495
2492
|
};
|
|
2496
2493
|
|
|
@@ -3625,4 +3622,4 @@ export {
|
|
|
3625
3622
|
applyBrandingVariables,
|
|
3626
3623
|
shadowFor
|
|
3627
3624
|
};
|
|
3628
|
-
//# sourceMappingURL=chunk-
|
|
3625
|
+
//# sourceMappingURL=chunk-U6GMDSVQ.js.map
|