@delopay/sdk 0.26.0 → 0.27.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-TE4LLC2R.js} +133 -133
- package/dist/chunk-TE4LLC2R.js.map +1 -0
- package/dist/index.cjs +132 -132
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +40 -40
- package/dist/index.d.ts +40 -40
- package/dist/index.js +1 -1
- package/dist/internal.cjs +132 -132
- package/dist/internal.cjs.map +1 -1
- 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
|
}
|
|
@@ -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
|
}
|
|
@@ -1041,57 +1041,57 @@ var Payments = class {
|
|
|
1041
1041
|
});
|
|
1042
1042
|
}
|
|
1043
1043
|
// --- Advanced operations (Task 3.2) ---
|
|
1044
|
-
/** Generate session tokens. `POST /payments/
|
|
1044
|
+
/** Generate session tokens. `POST /payments/session-tokens` */
|
|
1045
1045
|
async sessionTokens(params) {
|
|
1046
|
-
return this.request("POST", "/payments/
|
|
1046
|
+
return this.request("POST", "/payments/session-tokens", { body: params });
|
|
1047
1047
|
}
|
|
1048
1048
|
/** Retrieve payment with gateway credentials. `POST /payments/sync` */
|
|
1049
1049
|
async sync(params) {
|
|
1050
1050
|
return this.request("POST", "/payments/sync", { body: params });
|
|
1051
1051
|
}
|
|
1052
|
-
/** Cancel after partial capture. `POST /payments/{paymentId}/
|
|
1052
|
+
/** Cancel after partial capture. `POST /payments/{paymentId}/cancel-post-capture` */
|
|
1053
1053
|
async cancelPostCapture(paymentId, params) {
|
|
1054
|
-
return this.request("POST", `/payments/${encodeURIComponent(paymentId)}/
|
|
1054
|
+
return this.request("POST", `/payments/${encodeURIComponent(paymentId)}/cancel-post-capture`, {
|
|
1055
1055
|
body: params
|
|
1056
1056
|
});
|
|
1057
1057
|
}
|
|
1058
|
-
/** Incrementally authorize more funds. `POST /payments/{paymentId}/
|
|
1058
|
+
/** Incrementally authorize more funds. `POST /payments/{paymentId}/incremental-authorization` */
|
|
1059
1059
|
async incrementalAuthorization(paymentId, params) {
|
|
1060
1060
|
return this.request(
|
|
1061
1061
|
"POST",
|
|
1062
|
-
`/payments/${encodeURIComponent(paymentId)}/
|
|
1062
|
+
`/payments/${encodeURIComponent(paymentId)}/incremental-authorization`,
|
|
1063
1063
|
{
|
|
1064
1064
|
body: params
|
|
1065
1065
|
}
|
|
1066
1066
|
);
|
|
1067
1067
|
}
|
|
1068
|
-
/** Extend authorization window. `POST /payments/{paymentId}/
|
|
1068
|
+
/** Extend authorization window. `POST /payments/{paymentId}/extend-authorization` */
|
|
1069
1069
|
async extendAuthorization(paymentId, params) {
|
|
1070
|
-
return this.request("POST", `/payments/${encodeURIComponent(paymentId)}/
|
|
1070
|
+
return this.request("POST", `/payments/${encodeURIComponent(paymentId)}/extend-authorization`, {
|
|
1071
1071
|
body: params
|
|
1072
1072
|
});
|
|
1073
1073
|
}
|
|
1074
|
-
/** Complete authorization. `POST /payments/{paymentId}/
|
|
1074
|
+
/** Complete authorization. `POST /payments/{paymentId}/complete-authorize` */
|
|
1075
1075
|
async completeAuthorize(paymentId, params) {
|
|
1076
|
-
return this.request("POST", `/payments/${encodeURIComponent(paymentId)}/
|
|
1076
|
+
return this.request("POST", `/payments/${encodeURIComponent(paymentId)}/complete-authorize`, {
|
|
1077
1077
|
body: params
|
|
1078
1078
|
});
|
|
1079
1079
|
}
|
|
1080
|
-
/** Dynamic tax calculation. `POST /payments/{paymentId}/
|
|
1080
|
+
/** Dynamic tax calculation. `POST /payments/{paymentId}/calculate-tax` */
|
|
1081
1081
|
async calculateTax(paymentId, params) {
|
|
1082
|
-
return this.request("POST", `/payments/${encodeURIComponent(paymentId)}/
|
|
1082
|
+
return this.request("POST", `/payments/${encodeURIComponent(paymentId)}/calculate-tax`, {
|
|
1083
1083
|
body: params
|
|
1084
1084
|
});
|
|
1085
1085
|
}
|
|
1086
|
-
/** Update payment metadata. `POST /payments/{paymentId}/
|
|
1086
|
+
/** Update payment metadata. `POST /payments/{paymentId}/update-metadata` */
|
|
1087
1087
|
async updateMetadata(paymentId, params) {
|
|
1088
|
-
return this.request("POST", `/payments/${encodeURIComponent(paymentId)}/
|
|
1088
|
+
return this.request("POST", `/payments/${encodeURIComponent(paymentId)}/update-metadata`, {
|
|
1089
1089
|
body: params
|
|
1090
1090
|
});
|
|
1091
1091
|
}
|
|
1092
|
-
/** Retrieve extended card info. `GET /payments/{paymentId}/
|
|
1092
|
+
/** Retrieve extended card info. `GET /payments/{paymentId}/extended-card-info` */
|
|
1093
1093
|
async extendedCardInfo(paymentId) {
|
|
1094
|
-
return this.request("GET", `/payments/${encodeURIComponent(paymentId)}/
|
|
1094
|
+
return this.request("GET", `/payments/${encodeURIComponent(paymentId)}/extended-card-info`);
|
|
1095
1095
|
}
|
|
1096
1096
|
// --- OLAP extensions (Task 4.2) ---
|
|
1097
1097
|
/** List payments (profile-scoped). `GET /payments/profile/list` */
|
|
@@ -1282,12 +1282,12 @@ var ProfileAcquirers = class {
|
|
|
1282
1282
|
this.request = request;
|
|
1283
1283
|
}
|
|
1284
1284
|
async create(params) {
|
|
1285
|
-
return this.request("POST", "/
|
|
1285
|
+
return this.request("POST", "/profile-acquirer", { body: params });
|
|
1286
1286
|
}
|
|
1287
1287
|
async update(profileId, profileAcquirerId, params) {
|
|
1288
1288
|
return this.request(
|
|
1289
1289
|
"POST",
|
|
1290
|
-
`/
|
|
1290
|
+
`/profile-acquirer/${encodeURIComponent(profileId)}/${encodeURIComponent(profileAcquirerId)}`,
|
|
1291
1291
|
{
|
|
1292
1292
|
body: params
|
|
1293
1293
|
}
|
|
@@ -1301,23 +1301,23 @@ var Profiles = class {
|
|
|
1301
1301
|
this.request = request;
|
|
1302
1302
|
}
|
|
1303
1303
|
async create(accountId, params) {
|
|
1304
|
-
return this.request("POST", `/account/${encodeURIComponent(accountId)}/
|
|
1304
|
+
return this.request("POST", `/account/${encodeURIComponent(accountId)}/business-profile`, {
|
|
1305
1305
|
body: params
|
|
1306
1306
|
});
|
|
1307
1307
|
}
|
|
1308
1308
|
async retrieve(accountId, profileId) {
|
|
1309
1309
|
return this.request(
|
|
1310
1310
|
"GET",
|
|
1311
|
-
`/account/${encodeURIComponent(accountId)}/
|
|
1311
|
+
`/account/${encodeURIComponent(accountId)}/business-profile/${encodeURIComponent(profileId)}`
|
|
1312
1312
|
);
|
|
1313
1313
|
}
|
|
1314
1314
|
async list(accountId) {
|
|
1315
|
-
return this.request("GET", `/account/${encodeURIComponent(accountId)}/
|
|
1315
|
+
return this.request("GET", `/account/${encodeURIComponent(accountId)}/business-profile`);
|
|
1316
1316
|
}
|
|
1317
1317
|
async update(accountId, profileId, params) {
|
|
1318
1318
|
return this.request(
|
|
1319
1319
|
"POST",
|
|
1320
|
-
`/account/${encodeURIComponent(accountId)}/
|
|
1320
|
+
`/account/${encodeURIComponent(accountId)}/business-profile/${encodeURIComponent(profileId)}`,
|
|
1321
1321
|
{
|
|
1322
1322
|
body: params
|
|
1323
1323
|
}
|
|
@@ -1326,22 +1326,22 @@ var Profiles = class {
|
|
|
1326
1326
|
async delete(accountId, profileId) {
|
|
1327
1327
|
return this.request(
|
|
1328
1328
|
"DELETE",
|
|
1329
|
-
`/account/${encodeURIComponent(accountId)}/
|
|
1329
|
+
`/account/${encodeURIComponent(accountId)}/business-profile/${encodeURIComponent(profileId)}`
|
|
1330
1330
|
);
|
|
1331
1331
|
}
|
|
1332
1332
|
// --- Advanced operations (Task 4.8) ---
|
|
1333
|
-
/** Toggle extended card info for a profile. `POST /account/{accountId}/
|
|
1333
|
+
/** Toggle extended card info for a profile. `POST /account/{accountId}/business-profile/{profileId}/toggle-extended-card-info` */
|
|
1334
1334
|
async toggleExtendedCardInfo(accountId, profileId) {
|
|
1335
1335
|
return this.request(
|
|
1336
1336
|
"POST",
|
|
1337
|
-
`/account/${encodeURIComponent(accountId)}/
|
|
1337
|
+
`/account/${encodeURIComponent(accountId)}/business-profile/${encodeURIComponent(profileId)}/toggle-extended-card-info`
|
|
1338
1338
|
);
|
|
1339
1339
|
}
|
|
1340
|
-
/** Toggle connector agnostic MIT. `POST /account/{accountId}/
|
|
1340
|
+
/** Toggle connector agnostic MIT. `POST /account/{accountId}/business-profile/{profileId}/toggle-connector-agnostic-mit` */
|
|
1341
1341
|
async toggleConnectorAgnosticMit(accountId, profileId) {
|
|
1342
1342
|
return this.request(
|
|
1343
1343
|
"POST",
|
|
1344
|
-
`/account/${encodeURIComponent(accountId)}/
|
|
1344
|
+
`/account/${encodeURIComponent(accountId)}/business-profile/${encodeURIComponent(profileId)}/toggle-connector-agnostic-mit`
|
|
1345
1345
|
);
|
|
1346
1346
|
}
|
|
1347
1347
|
};
|
|
@@ -1852,23 +1852,23 @@ var StripeConnect = class {
|
|
|
1852
1852
|
this.request = request;
|
|
1853
1853
|
}
|
|
1854
1854
|
async createAccount(params) {
|
|
1855
|
-
return this.request("POST", "/
|
|
1855
|
+
return this.request("POST", "/connector-onboarding/stripe/accounts", { body: params });
|
|
1856
1856
|
}
|
|
1857
1857
|
async createAccountLink(params) {
|
|
1858
|
-
return this.request("POST", "/
|
|
1858
|
+
return this.request("POST", "/connector-onboarding/stripe/account-links", { body: params });
|
|
1859
1859
|
}
|
|
1860
1860
|
// --- Generic connector onboarding (Task 4.11) ---
|
|
1861
|
-
/** Get onboarding action URL. `POST /
|
|
1861
|
+
/** Get onboarding action URL. `POST /connector-onboarding/action-url` */
|
|
1862
1862
|
async getActionUrl(params) {
|
|
1863
|
-
return this.request("POST", "/
|
|
1863
|
+
return this.request("POST", "/connector-onboarding/action-url", { body: params });
|
|
1864
1864
|
}
|
|
1865
|
-
/** Sync onboarding status. `POST /
|
|
1865
|
+
/** Sync onboarding status. `POST /connector-onboarding/sync` */
|
|
1866
1866
|
async syncOnboarding(params) {
|
|
1867
|
-
return this.request("POST", "/
|
|
1867
|
+
return this.request("POST", "/connector-onboarding/sync", { body: params });
|
|
1868
1868
|
}
|
|
1869
|
-
/** Reset tracking ID. `POST /
|
|
1869
|
+
/** Reset tracking ID. `POST /connector-onboarding/reset-tracking-id` */
|
|
1870
1870
|
async resetTrackingId(params) {
|
|
1871
|
-
return this.request("POST", "/
|
|
1871
|
+
return this.request("POST", "/connector-onboarding/reset-tracking-id", { body: params });
|
|
1872
1872
|
}
|
|
1873
1873
|
};
|
|
1874
1874
|
|
|
@@ -1878,7 +1878,7 @@ var ThreeDsRules = class {
|
|
|
1878
1878
|
this.request = request;
|
|
1879
1879
|
}
|
|
1880
1880
|
async execute(params) {
|
|
1881
|
-
return this.request("POST", "/
|
|
1881
|
+
return this.request("POST", "/three-ds-decision/execute", { body: params });
|
|
1882
1882
|
}
|
|
1883
1883
|
};
|
|
1884
1884
|
|
|
@@ -1967,13 +1967,13 @@ var Users = class {
|
|
|
1967
1967
|
return this.request("DELETE", "/user/account", { body: params });
|
|
1968
1968
|
}
|
|
1969
1969
|
async changePassword(params) {
|
|
1970
|
-
return this.request("POST", "/user/
|
|
1970
|
+
return this.request("POST", "/user/change-password", { body: params });
|
|
1971
1971
|
}
|
|
1972
1972
|
async rotatePassword(params) {
|
|
1973
|
-
return this.request("POST", "/user/
|
|
1973
|
+
return this.request("POST", "/user/rotate-password", { body: params });
|
|
1974
1974
|
}
|
|
1975
1975
|
async forgotPassword(params) {
|
|
1976
|
-
return this.request("POST", "/user/
|
|
1976
|
+
return this.request("POST", "/user/forgot-password", { body: params });
|
|
1977
1977
|
}
|
|
1978
1978
|
/**
|
|
1979
1979
|
* Commit a password reset.
|
|
@@ -1987,7 +1987,7 @@ var Users = class {
|
|
|
1987
1987
|
* decodes it a second time to find the user.
|
|
1988
1988
|
*/
|
|
1989
1989
|
async resetPassword(params) {
|
|
1990
|
-
return this.request("POST", "/user/
|
|
1990
|
+
return this.request("POST", "/user/reset-password", { body: params });
|
|
1991
1991
|
}
|
|
1992
1992
|
/**
|
|
1993
1993
|
* Exchange an email-link token (`EmailToken`) for a single-purpose JWT
|
|
@@ -1997,16 +1997,16 @@ var Users = class {
|
|
|
1997
1997
|
* The `token_type` in the response tells you which step to run next.
|
|
1998
1998
|
*/
|
|
1999
1999
|
async fromEmail(params) {
|
|
2000
|
-
return this.request("POST", "/user/
|
|
2000
|
+
return this.request("POST", "/user/from-email", { body: params });
|
|
2001
2001
|
}
|
|
2002
2002
|
async verifyEmail(params) {
|
|
2003
|
-
return this.request("POST", "/user/
|
|
2003
|
+
return this.request("POST", "/user/verify-email", { body: params });
|
|
2004
2004
|
}
|
|
2005
2005
|
async sendVerificationEmail(params) {
|
|
2006
|
-
return this.request("POST", "/user/
|
|
2006
|
+
return this.request("POST", "/user/verify-email-request", { body: params });
|
|
2007
2007
|
}
|
|
2008
2008
|
async createMerchant(params) {
|
|
2009
|
-
return this.request("POST", "/user/
|
|
2009
|
+
return this.request("POST", "/user/create-merchant", { body: params });
|
|
2010
2010
|
}
|
|
2011
2011
|
async switchMerchant(params) {
|
|
2012
2012
|
return this.request("POST", "/user/switch/merchant", { body: params });
|
|
@@ -2021,10 +2021,10 @@ var Users = class {
|
|
|
2021
2021
|
return this.request("GET", "/user/list/profile");
|
|
2022
2022
|
}
|
|
2023
2023
|
async inviteUsers(params) {
|
|
2024
|
-
return this.request("POST", "/user/
|
|
2024
|
+
return this.request("POST", "/user/employees/invite", { body: params });
|
|
2025
2025
|
}
|
|
2026
2026
|
async acceptInvitation(params) {
|
|
2027
|
-
return this.request("POST", "/user/
|
|
2027
|
+
return this.request("POST", "/user/invite/accept", { body: params });
|
|
2028
2028
|
}
|
|
2029
2029
|
/**
|
|
2030
2030
|
* Accept an invitation via the email-link flow.
|
|
@@ -2037,7 +2037,7 @@ var Users = class {
|
|
|
2037
2037
|
* invitee and the entity lineage.
|
|
2038
2038
|
*/
|
|
2039
2039
|
async acceptInviteFromEmail(params) {
|
|
2040
|
-
return this.request("POST", "/user/
|
|
2040
|
+
return this.request("POST", "/user/accept-invite-from-email", { body: params });
|
|
2041
2041
|
}
|
|
2042
2042
|
/**
|
|
2043
2043
|
* Start TOTP setup (or no-op if already set).
|
|
@@ -2064,10 +2064,10 @@ var Users = class {
|
|
|
2064
2064
|
return this.request("GET", "/user/2fa/totp/reset");
|
|
2065
2065
|
}
|
|
2066
2066
|
async generateRecoveryCodes() {
|
|
2067
|
-
return this.request("GET", "/user/2fa/
|
|
2067
|
+
return this.request("GET", "/user/2fa/recovery-code/generate");
|
|
2068
2068
|
}
|
|
2069
2069
|
async verifyRecoveryCode(params) {
|
|
2070
|
-
return this.request("POST", "/user/2fa/
|
|
2070
|
+
return this.request("POST", "/user/2fa/recovery-code/verify", { body: params });
|
|
2071
2071
|
}
|
|
2072
2072
|
async sendPhoneOtp(params) {
|
|
2073
2073
|
return this.request("POST", "/user/phone/send-otp", { body: params });
|
|
@@ -2079,13 +2079,13 @@ var Users = class {
|
|
|
2079
2079
|
return this.request("GET", "/user/role/list");
|
|
2080
2080
|
}
|
|
2081
2081
|
async listUserRoles(params) {
|
|
2082
|
-
return this.request("POST", "/user/
|
|
2082
|
+
return this.request("POST", "/user/employees", { body: params });
|
|
2083
2083
|
}
|
|
2084
2084
|
async updateUserRole(params) {
|
|
2085
|
-
return this.request("POST", "/user/
|
|
2085
|
+
return this.request("POST", "/user/employees/update-role", { body: params });
|
|
2086
2086
|
}
|
|
2087
2087
|
async deleteUserRole(params) {
|
|
2088
|
-
return this.request("DELETE", "/user/
|
|
2088
|
+
return this.request("DELETE", "/user/employees/delete", { body: params });
|
|
2089
2089
|
}
|
|
2090
2090
|
/** Sign in via OIDC. `POST /user/oidc` */
|
|
2091
2091
|
async signInOidc(params) {
|
|
@@ -2147,13 +2147,13 @@ var Users = class {
|
|
|
2147
2147
|
async selectAuth(params) {
|
|
2148
2148
|
return this.request("POST", "/user/auth/select", { body: params });
|
|
2149
2149
|
}
|
|
2150
|
-
/** List users in lineage. `GET /user/
|
|
2150
|
+
/** List users in lineage. `GET /user/employees/list` */
|
|
2151
2151
|
async listUsersInLineage() {
|
|
2152
|
-
return this.request("GET", "/user/
|
|
2152
|
+
return this.request("GET", "/user/employees/list");
|
|
2153
2153
|
}
|
|
2154
|
-
/** Resend invite. `POST /user/
|
|
2154
|
+
/** Resend invite. `POST /user/employees/resend-invite` */
|
|
2155
2155
|
async resendInvite(params) {
|
|
2156
|
-
return this.request("POST", "/user/
|
|
2156
|
+
return this.request("POST", "/user/employees/resend-invite", { body: params });
|
|
2157
2157
|
}
|
|
2158
2158
|
/**
|
|
2159
2159
|
* Get the caller's parent permission groups + scopes.
|
|
@@ -2182,9 +2182,9 @@ var Users = class {
|
|
|
2182
2182
|
async listUpdatableRoles() {
|
|
2183
2183
|
return this.request("GET", "/user/role/list/update");
|
|
2184
2184
|
}
|
|
2185
|
-
/** Get permission info. `GET /user/
|
|
2185
|
+
/** Get permission info. `GET /user/permission-info` */
|
|
2186
2186
|
async getPermissionInfo() {
|
|
2187
|
-
return this.request("GET", "/user/
|
|
2187
|
+
return this.request("GET", "/user/permission-info");
|
|
2188
2188
|
}
|
|
2189
2189
|
/** Get module list. `GET /user/module/list` */
|
|
2190
2190
|
async getModuleList() {
|
|
@@ -2214,12 +2214,12 @@ var Verification = class {
|
|
|
2214
2214
|
this.request = request;
|
|
2215
2215
|
}
|
|
2216
2216
|
async registerApplePayDomains(merchantId, params) {
|
|
2217
|
-
return this.request("POST", `/verify/
|
|
2217
|
+
return this.request("POST", `/verify/apple-pay/${encodeURIComponent(merchantId)}`, {
|
|
2218
2218
|
body: params
|
|
2219
2219
|
});
|
|
2220
2220
|
}
|
|
2221
2221
|
async getApplePayVerifiedDomains(params) {
|
|
2222
|
-
return this.request("GET", "/verify/
|
|
2222
|
+
return this.request("GET", "/verify/applepay-verified-domains", {
|
|
2223
2223
|
query: params
|
|
2224
2224
|
});
|
|
2225
2225
|
}
|
|
@@ -2320,28 +2320,28 @@ var AnalyticsDomain = class {
|
|
|
2320
2320
|
}
|
|
2321
2321
|
/** Get metrics. `POST /analytics/metrics/{domain}` */
|
|
2322
2322
|
async metrics(params, scope) {
|
|
2323
|
-
const prefix = scope ? `/analytics/${scope}` : "/analytics
|
|
2323
|
+
const prefix = scope ? `/analytics/${scope}` : "/analytics";
|
|
2324
2324
|
return this.request("POST", `${prefix}/metrics/${encodeURIComponent(this.domain)}`, {
|
|
2325
2325
|
body: [params]
|
|
2326
2326
|
});
|
|
2327
2327
|
}
|
|
2328
2328
|
/** Get filters. `POST /analytics/filters/{domain}` */
|
|
2329
2329
|
async filters(params, scope) {
|
|
2330
|
-
const prefix = scope ? `/analytics/${scope}` : "/analytics
|
|
2330
|
+
const prefix = scope ? `/analytics/${scope}` : "/analytics";
|
|
2331
2331
|
return this.request("POST", `${prefix}/filters/${encodeURIComponent(this.domain)}`, {
|
|
2332
2332
|
body: params
|
|
2333
2333
|
});
|
|
2334
2334
|
}
|
|
2335
2335
|
/** Generate report. `POST /analytics/report/{domain}` */
|
|
2336
2336
|
async report(params, scope) {
|
|
2337
|
-
const prefix = scope ? `/analytics/${scope}` : "/analytics
|
|
2337
|
+
const prefix = scope ? `/analytics/${scope}` : "/analytics";
|
|
2338
2338
|
return this.request("POST", `${prefix}/report/${encodeURIComponent(this.domain)}`, {
|
|
2339
2339
|
body: params
|
|
2340
2340
|
});
|
|
2341
2341
|
}
|
|
2342
2342
|
/** Sankey chart data. `POST /analytics/metrics/{domain}/sankey` */
|
|
2343
2343
|
async sankey(params, scope) {
|
|
2344
|
-
const prefix = scope ? `/analytics/${scope}` : "/analytics
|
|
2344
|
+
const prefix = scope ? `/analytics/${scope}` : "/analytics";
|
|
2345
2345
|
return this.request("POST", `${prefix}/metrics/${encodeURIComponent(this.domain)}/sankey`, {
|
|
2346
2346
|
body: params
|
|
2347
2347
|
});
|
|
@@ -2373,25 +2373,25 @@ var Analytics = class {
|
|
|
2373
2373
|
async getInfo(domain) {
|
|
2374
2374
|
return this.request("GET", `/analytics/${encodeURIComponent(domain)}/info`);
|
|
2375
2375
|
}
|
|
2376
|
-
/** Get API event logs. `GET /analytics/
|
|
2376
|
+
/** Get API event logs. `GET /analytics/api-event-logs` */
|
|
2377
2377
|
async apiEventLogs(params) {
|
|
2378
|
-
return this.request("GET", "/analytics/
|
|
2378
|
+
return this.request("GET", "/analytics/api-event-logs", { query: params });
|
|
2379
2379
|
}
|
|
2380
|
-
/** Get SDK event logs. `POST /analytics/
|
|
2380
|
+
/** Get SDK event logs. `POST /analytics/sdk-event-logs` */
|
|
2381
2381
|
async sdkEventLogs(params) {
|
|
2382
|
-
return this.request("POST", "/analytics/
|
|
2382
|
+
return this.request("POST", "/analytics/sdk-event-logs", { body: params });
|
|
2383
2383
|
}
|
|
2384
|
-
/** Get connector event logs. `GET /analytics/
|
|
2384
|
+
/** Get connector event logs. `GET /analytics/connector-event-logs` */
|
|
2385
2385
|
async connectorEventLogs(params) {
|
|
2386
|
-
return this.request("GET", "/analytics/
|
|
2386
|
+
return this.request("GET", "/analytics/connector-event-logs", { query: params });
|
|
2387
2387
|
}
|
|
2388
|
-
/** Get routing event logs. `GET /analytics/
|
|
2388
|
+
/** Get routing event logs. `GET /analytics/routing-event-logs` */
|
|
2389
2389
|
async routingEventLogs(params) {
|
|
2390
|
-
return this.request("GET", "/analytics/
|
|
2390
|
+
return this.request("GET", "/analytics/routing-event-logs", { query: params });
|
|
2391
2391
|
}
|
|
2392
|
-
/** Get outgoing webhook event logs. `GET /analytics/
|
|
2392
|
+
/** Get outgoing webhook event logs. `GET /analytics/outgoing-webhook-event-logs` */
|
|
2393
2393
|
async outgoingWebhookEventLogs(params) {
|
|
2394
|
-
return this.request("GET", "/analytics/
|
|
2394
|
+
return this.request("GET", "/analytics/outgoing-webhook-event-logs", { query: params });
|
|
2395
2395
|
}
|
|
2396
2396
|
};
|
|
2397
2397
|
|
|
@@ -2445,18 +2445,18 @@ var FeatureMatrix = class {
|
|
|
2445
2445
|
constructor(request) {
|
|
2446
2446
|
this.request = request;
|
|
2447
2447
|
}
|
|
2448
|
-
/** Retrieve the feature matrix. `GET /
|
|
2448
|
+
/** Retrieve the feature matrix. `GET /feature-matrix` */
|
|
2449
2449
|
async retrieve() {
|
|
2450
|
-
return this.request("GET", "/
|
|
2450
|
+
return this.request("GET", "/feature-matrix");
|
|
2451
2451
|
}
|
|
2452
2452
|
/**
|
|
2453
2453
|
* Retrieve the feature matrix scoped to a merchant. Beta connectors
|
|
2454
2454
|
* are filtered against the merchant's allowlist so the dashboard only
|
|
2455
2455
|
* surfaces connectors the merchant can actually attach.
|
|
2456
|
-
* `GET /
|
|
2456
|
+
* `GET /feature-matrix/{merchantId}`
|
|
2457
2457
|
*/
|
|
2458
2458
|
async retrieveForMerchant(merchantId) {
|
|
2459
|
-
return this.request("GET", `/
|
|
2459
|
+
return this.request("GET", `/feature-matrix/${encodeURIComponent(merchantId)}`);
|
|
2460
2460
|
}
|
|
2461
2461
|
};
|
|
2462
2462
|
|
|
@@ -2488,9 +2488,9 @@ var Forex = class {
|
|
|
2488
2488
|
async getRates(params) {
|
|
2489
2489
|
return this.request("GET", "/forex/rates", { query: params });
|
|
2490
2490
|
}
|
|
2491
|
-
/** Convert from minor currency. `GET /forex/
|
|
2491
|
+
/** Convert from minor currency. `GET /forex/convert-from-minor` */
|
|
2492
2492
|
async convertFromMinor(params) {
|
|
2493
|
-
return this.request("GET", "/forex/
|
|
2493
|
+
return this.request("GET", "/forex/convert-from-minor", { query: params });
|
|
2494
2494
|
}
|
|
2495
2495
|
};
|
|
2496
2496
|
|
|
@@ -3625,4 +3625,4 @@ export {
|
|
|
3625
3625
|
applyBrandingVariables,
|
|
3626
3626
|
shadowFor
|
|
3627
3627
|
};
|
|
3628
|
-
//# sourceMappingURL=chunk-
|
|
3628
|
+
//# sourceMappingURL=chunk-TE4LLC2R.js.map
|