@delopay/sdk 0.25.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-64E3LG2C.js → chunk-TE4LLC2R.js} +156 -192
- package/dist/chunk-TE4LLC2R.js.map +1 -0
- package/dist/index.cjs +155 -191
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +95 -74
- package/dist/index.d.ts +95 -74
- package/dist/index.js +1 -1
- package/dist/internal.cjs +155 -191
- package/dist/internal.cjs.map +1 -1
- package/dist/internal.d.cts +10 -1
- package/dist/internal.d.ts +10 -1
- package/dist/internal.js +1 -1
- package/package.json +1 -1
- package/dist/chunk-64E3LG2C.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` */
|
|
@@ -1110,13 +1110,9 @@ var Payments = class {
|
|
|
1110
1110
|
async listByFilter(params) {
|
|
1111
1111
|
return this.request("POST", "/payments/list", { body: params });
|
|
1112
1112
|
}
|
|
1113
|
-
/** Get payment filter options. `
|
|
1113
|
+
/** Get payment filter options. `GET /payments/filter` */
|
|
1114
1114
|
async getFilters(params) {
|
|
1115
|
-
return this.request("
|
|
1116
|
-
}
|
|
1117
|
-
/** Get payment filters (v2). `GET /payments/v2/filter` */
|
|
1118
|
-
async getFiltersV2(params) {
|
|
1119
|
-
return this.request("GET", "/payments/v2/filter", { query: params });
|
|
1115
|
+
return this.request("GET", "/payments/filter", { query: params });
|
|
1120
1116
|
}
|
|
1121
1117
|
/** Get payment aggregates. `GET /payments/aggregate` */
|
|
1122
1118
|
async aggregate(params) {
|
|
@@ -1286,12 +1282,12 @@ var ProfileAcquirers = class {
|
|
|
1286
1282
|
this.request = request;
|
|
1287
1283
|
}
|
|
1288
1284
|
async create(params) {
|
|
1289
|
-
return this.request("POST", "/
|
|
1285
|
+
return this.request("POST", "/profile-acquirer", { body: params });
|
|
1290
1286
|
}
|
|
1291
1287
|
async update(profileId, profileAcquirerId, params) {
|
|
1292
1288
|
return this.request(
|
|
1293
1289
|
"POST",
|
|
1294
|
-
`/
|
|
1290
|
+
`/profile-acquirer/${encodeURIComponent(profileId)}/${encodeURIComponent(profileAcquirerId)}`,
|
|
1295
1291
|
{
|
|
1296
1292
|
body: params
|
|
1297
1293
|
}
|
|
@@ -1305,23 +1301,23 @@ var Profiles = class {
|
|
|
1305
1301
|
this.request = request;
|
|
1306
1302
|
}
|
|
1307
1303
|
async create(accountId, params) {
|
|
1308
|
-
return this.request("POST", `/account/${encodeURIComponent(accountId)}/
|
|
1304
|
+
return this.request("POST", `/account/${encodeURIComponent(accountId)}/business-profile`, {
|
|
1309
1305
|
body: params
|
|
1310
1306
|
});
|
|
1311
1307
|
}
|
|
1312
1308
|
async retrieve(accountId, profileId) {
|
|
1313
1309
|
return this.request(
|
|
1314
1310
|
"GET",
|
|
1315
|
-
`/account/${encodeURIComponent(accountId)}/
|
|
1311
|
+
`/account/${encodeURIComponent(accountId)}/business-profile/${encodeURIComponent(profileId)}`
|
|
1316
1312
|
);
|
|
1317
1313
|
}
|
|
1318
1314
|
async list(accountId) {
|
|
1319
|
-
return this.request("GET", `/account/${encodeURIComponent(accountId)}/
|
|
1315
|
+
return this.request("GET", `/account/${encodeURIComponent(accountId)}/business-profile`);
|
|
1320
1316
|
}
|
|
1321
1317
|
async update(accountId, profileId, params) {
|
|
1322
1318
|
return this.request(
|
|
1323
1319
|
"POST",
|
|
1324
|
-
`/account/${encodeURIComponent(accountId)}/
|
|
1320
|
+
`/account/${encodeURIComponent(accountId)}/business-profile/${encodeURIComponent(profileId)}`,
|
|
1325
1321
|
{
|
|
1326
1322
|
body: params
|
|
1327
1323
|
}
|
|
@@ -1330,22 +1326,22 @@ var Profiles = class {
|
|
|
1330
1326
|
async delete(accountId, profileId) {
|
|
1331
1327
|
return this.request(
|
|
1332
1328
|
"DELETE",
|
|
1333
|
-
`/account/${encodeURIComponent(accountId)}/
|
|
1329
|
+
`/account/${encodeURIComponent(accountId)}/business-profile/${encodeURIComponent(profileId)}`
|
|
1334
1330
|
);
|
|
1335
1331
|
}
|
|
1336
1332
|
// --- Advanced operations (Task 4.8) ---
|
|
1337
|
-
/** 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` */
|
|
1338
1334
|
async toggleExtendedCardInfo(accountId, profileId) {
|
|
1339
1335
|
return this.request(
|
|
1340
1336
|
"POST",
|
|
1341
|
-
`/account/${encodeURIComponent(accountId)}/
|
|
1337
|
+
`/account/${encodeURIComponent(accountId)}/business-profile/${encodeURIComponent(profileId)}/toggle-extended-card-info`
|
|
1342
1338
|
);
|
|
1343
1339
|
}
|
|
1344
|
-
/** Toggle connector agnostic MIT. `POST /account/{accountId}/
|
|
1340
|
+
/** Toggle connector agnostic MIT. `POST /account/{accountId}/business-profile/{profileId}/toggle-connector-agnostic-mit` */
|
|
1345
1341
|
async toggleConnectorAgnosticMit(accountId, profileId) {
|
|
1346
1342
|
return this.request(
|
|
1347
1343
|
"POST",
|
|
1348
|
-
`/account/${encodeURIComponent(accountId)}/
|
|
1344
|
+
`/account/${encodeURIComponent(accountId)}/business-profile/${encodeURIComponent(profileId)}/toggle-connector-agnostic-mit`
|
|
1349
1345
|
);
|
|
1350
1346
|
}
|
|
1351
1347
|
};
|
|
@@ -1508,13 +1504,9 @@ var Refunds = class {
|
|
|
1508
1504
|
async listByProfile(params) {
|
|
1509
1505
|
return this.request("POST", "/refunds/profile/list", { body: params });
|
|
1510
1506
|
}
|
|
1511
|
-
/** Get refund filter options. `
|
|
1507
|
+
/** Get refund filter options. `GET /refunds/filter` */
|
|
1512
1508
|
async getFilters(params) {
|
|
1513
|
-
return this.request("
|
|
1514
|
-
}
|
|
1515
|
-
/** Get refund filters (v2). `GET /refunds/v2/filter` */
|
|
1516
|
-
async getFiltersV2(params) {
|
|
1517
|
-
return this.request("GET", "/refunds/v2/filter", { query: params });
|
|
1509
|
+
return this.request("GET", "/refunds/filter", { query: params });
|
|
1518
1510
|
}
|
|
1519
1511
|
/** Get refund aggregates. `GET /refunds/aggregate` */
|
|
1520
1512
|
async aggregate(params) {
|
|
@@ -1688,7 +1680,7 @@ var Search = class {
|
|
|
1688
1680
|
}
|
|
1689
1681
|
/**
|
|
1690
1682
|
* Search every supported index for `query`.
|
|
1691
|
-
* `POST /analytics/
|
|
1683
|
+
* `POST /analytics/search`
|
|
1692
1684
|
*
|
|
1693
1685
|
* @example
|
|
1694
1686
|
* ```typescript
|
|
@@ -1697,7 +1689,7 @@ var Search = class {
|
|
|
1697
1689
|
* ```
|
|
1698
1690
|
*/
|
|
1699
1691
|
async global(params, options) {
|
|
1700
|
-
return this.request("POST", "/analytics/
|
|
1692
|
+
return this.request("POST", "/analytics/search", {
|
|
1701
1693
|
body: params,
|
|
1702
1694
|
...options?.signal ? { signal: options.signal } : {}
|
|
1703
1695
|
});
|
|
@@ -1860,23 +1852,23 @@ var StripeConnect = class {
|
|
|
1860
1852
|
this.request = request;
|
|
1861
1853
|
}
|
|
1862
1854
|
async createAccount(params) {
|
|
1863
|
-
return this.request("POST", "/
|
|
1855
|
+
return this.request("POST", "/connector-onboarding/stripe/accounts", { body: params });
|
|
1864
1856
|
}
|
|
1865
1857
|
async createAccountLink(params) {
|
|
1866
|
-
return this.request("POST", "/
|
|
1858
|
+
return this.request("POST", "/connector-onboarding/stripe/account-links", { body: params });
|
|
1867
1859
|
}
|
|
1868
1860
|
// --- Generic connector onboarding (Task 4.11) ---
|
|
1869
|
-
/** Get onboarding action URL. `POST /
|
|
1861
|
+
/** Get onboarding action URL. `POST /connector-onboarding/action-url` */
|
|
1870
1862
|
async getActionUrl(params) {
|
|
1871
|
-
return this.request("POST", "/
|
|
1863
|
+
return this.request("POST", "/connector-onboarding/action-url", { body: params });
|
|
1872
1864
|
}
|
|
1873
|
-
/** Sync onboarding status. `POST /
|
|
1865
|
+
/** Sync onboarding status. `POST /connector-onboarding/sync` */
|
|
1874
1866
|
async syncOnboarding(params) {
|
|
1875
|
-
return this.request("POST", "/
|
|
1867
|
+
return this.request("POST", "/connector-onboarding/sync", { body: params });
|
|
1876
1868
|
}
|
|
1877
|
-
/** Reset tracking ID. `POST /
|
|
1869
|
+
/** Reset tracking ID. `POST /connector-onboarding/reset-tracking-id` */
|
|
1878
1870
|
async resetTrackingId(params) {
|
|
1879
|
-
return this.request("POST", "/
|
|
1871
|
+
return this.request("POST", "/connector-onboarding/reset-tracking-id", { body: params });
|
|
1880
1872
|
}
|
|
1881
1873
|
};
|
|
1882
1874
|
|
|
@@ -1886,7 +1878,7 @@ var ThreeDsRules = class {
|
|
|
1886
1878
|
this.request = request;
|
|
1887
1879
|
}
|
|
1888
1880
|
async execute(params) {
|
|
1889
|
-
return this.request("POST", "/
|
|
1881
|
+
return this.request("POST", "/three-ds-decision/execute", { body: params });
|
|
1890
1882
|
}
|
|
1891
1883
|
};
|
|
1892
1884
|
|
|
@@ -1975,13 +1967,13 @@ var Users = class {
|
|
|
1975
1967
|
return this.request("DELETE", "/user/account", { body: params });
|
|
1976
1968
|
}
|
|
1977
1969
|
async changePassword(params) {
|
|
1978
|
-
return this.request("POST", "/user/
|
|
1970
|
+
return this.request("POST", "/user/change-password", { body: params });
|
|
1979
1971
|
}
|
|
1980
1972
|
async rotatePassword(params) {
|
|
1981
|
-
return this.request("POST", "/user/
|
|
1973
|
+
return this.request("POST", "/user/rotate-password", { body: params });
|
|
1982
1974
|
}
|
|
1983
1975
|
async forgotPassword(params) {
|
|
1984
|
-
return this.request("POST", "/user/
|
|
1976
|
+
return this.request("POST", "/user/forgot-password", { body: params });
|
|
1985
1977
|
}
|
|
1986
1978
|
/**
|
|
1987
1979
|
* Commit a password reset.
|
|
@@ -1995,7 +1987,7 @@ var Users = class {
|
|
|
1995
1987
|
* decodes it a second time to find the user.
|
|
1996
1988
|
*/
|
|
1997
1989
|
async resetPassword(params) {
|
|
1998
|
-
return this.request("POST", "/user/
|
|
1990
|
+
return this.request("POST", "/user/reset-password", { body: params });
|
|
1999
1991
|
}
|
|
2000
1992
|
/**
|
|
2001
1993
|
* Exchange an email-link token (`EmailToken`) for a single-purpose JWT
|
|
@@ -2005,16 +1997,16 @@ var Users = class {
|
|
|
2005
1997
|
* The `token_type` in the response tells you which step to run next.
|
|
2006
1998
|
*/
|
|
2007
1999
|
async fromEmail(params) {
|
|
2008
|
-
return this.request("POST", "/user/
|
|
2000
|
+
return this.request("POST", "/user/from-email", { body: params });
|
|
2009
2001
|
}
|
|
2010
2002
|
async verifyEmail(params) {
|
|
2011
|
-
return this.request("POST", "/user/
|
|
2003
|
+
return this.request("POST", "/user/verify-email", { body: params });
|
|
2012
2004
|
}
|
|
2013
2005
|
async sendVerificationEmail(params) {
|
|
2014
|
-
return this.request("POST", "/user/
|
|
2006
|
+
return this.request("POST", "/user/verify-email-request", { body: params });
|
|
2015
2007
|
}
|
|
2016
2008
|
async createMerchant(params) {
|
|
2017
|
-
return this.request("POST", "/user/
|
|
2009
|
+
return this.request("POST", "/user/create-merchant", { body: params });
|
|
2018
2010
|
}
|
|
2019
2011
|
async switchMerchant(params) {
|
|
2020
2012
|
return this.request("POST", "/user/switch/merchant", { body: params });
|
|
@@ -2029,10 +2021,10 @@ var Users = class {
|
|
|
2029
2021
|
return this.request("GET", "/user/list/profile");
|
|
2030
2022
|
}
|
|
2031
2023
|
async inviteUsers(params) {
|
|
2032
|
-
return this.request("POST", "/user/
|
|
2024
|
+
return this.request("POST", "/user/employees/invite", { body: params });
|
|
2033
2025
|
}
|
|
2034
2026
|
async acceptInvitation(params) {
|
|
2035
|
-
return this.request("POST", "/user/
|
|
2027
|
+
return this.request("POST", "/user/invite/accept", { body: params });
|
|
2036
2028
|
}
|
|
2037
2029
|
/**
|
|
2038
2030
|
* Accept an invitation via the email-link flow.
|
|
@@ -2045,7 +2037,7 @@ var Users = class {
|
|
|
2045
2037
|
* invitee and the entity lineage.
|
|
2046
2038
|
*/
|
|
2047
2039
|
async acceptInviteFromEmail(params) {
|
|
2048
|
-
return this.request("POST", "/user/
|
|
2040
|
+
return this.request("POST", "/user/accept-invite-from-email", { body: params });
|
|
2049
2041
|
}
|
|
2050
2042
|
/**
|
|
2051
2043
|
* Start TOTP setup (or no-op if already set).
|
|
@@ -2072,10 +2064,10 @@ var Users = class {
|
|
|
2072
2064
|
return this.request("GET", "/user/2fa/totp/reset");
|
|
2073
2065
|
}
|
|
2074
2066
|
async generateRecoveryCodes() {
|
|
2075
|
-
return this.request("GET", "/user/2fa/
|
|
2067
|
+
return this.request("GET", "/user/2fa/recovery-code/generate");
|
|
2076
2068
|
}
|
|
2077
2069
|
async verifyRecoveryCode(params) {
|
|
2078
|
-
return this.request("POST", "/user/2fa/
|
|
2070
|
+
return this.request("POST", "/user/2fa/recovery-code/verify", { body: params });
|
|
2079
2071
|
}
|
|
2080
2072
|
async sendPhoneOtp(params) {
|
|
2081
2073
|
return this.request("POST", "/user/phone/send-otp", { body: params });
|
|
@@ -2083,25 +2075,17 @@ var Users = class {
|
|
|
2083
2075
|
async verifyPhoneOtp(params) {
|
|
2084
2076
|
return this.request("POST", "/user/phone/verify-otp", { body: params });
|
|
2085
2077
|
}
|
|
2086
|
-
async getRoleFromToken() {
|
|
2087
|
-
return this.request("GET", "/user/role");
|
|
2088
|
-
}
|
|
2089
2078
|
async listRoles() {
|
|
2090
2079
|
return this.request("GET", "/user/role/list");
|
|
2091
2080
|
}
|
|
2092
2081
|
async listUserRoles(params) {
|
|
2093
|
-
return this.request("POST", "/user/
|
|
2082
|
+
return this.request("POST", "/user/employees", { body: params });
|
|
2094
2083
|
}
|
|
2095
2084
|
async updateUserRole(params) {
|
|
2096
|
-
return this.request("POST", "/user/
|
|
2085
|
+
return this.request("POST", "/user/employees/update-role", { body: params });
|
|
2097
2086
|
}
|
|
2098
2087
|
async deleteUserRole(params) {
|
|
2099
|
-
return this.request("DELETE", "/user/
|
|
2100
|
-
}
|
|
2101
|
-
// --- Advanced methods (Task 4.7) ---
|
|
2102
|
-
/** Sign in (v2). `POST /user/v2/signin` */
|
|
2103
|
-
async signInV2(params) {
|
|
2104
|
-
return this.request("POST", "/user/v2/signin", { body: params });
|
|
2088
|
+
return this.request("DELETE", "/user/employees/delete", { body: params });
|
|
2105
2089
|
}
|
|
2106
2090
|
/** Sign in via OIDC. `POST /user/oidc` */
|
|
2107
2091
|
async signInOidc(params) {
|
|
@@ -2119,10 +2103,6 @@ var Users = class {
|
|
|
2119
2103
|
async check2faStatus() {
|
|
2120
2104
|
return this.request("GET", "/user/2fa");
|
|
2121
2105
|
}
|
|
2122
|
-
/** Check 2FA status (v2). `GET /user/2fa/v2` */
|
|
2123
|
-
async check2faStatusV2() {
|
|
2124
|
-
return this.request("GET", "/user/2fa/v2");
|
|
2125
|
-
}
|
|
2126
2106
|
/**
|
|
2127
2107
|
* Finish first-time TOTP setup: commit the secret generated by `beginTotp`
|
|
2128
2108
|
* against a 6-digit code from the user's authenticator app.
|
|
@@ -2167,37 +2147,21 @@ var Users = class {
|
|
|
2167
2147
|
async selectAuth(params) {
|
|
2168
2148
|
return this.request("POST", "/user/auth/select", { body: params });
|
|
2169
2149
|
}
|
|
2170
|
-
/** List
|
|
2171
|
-
async listUserRolesV2(params) {
|
|
2172
|
-
return this.request("POST", "/user/user/v2", { body: params });
|
|
2173
|
-
}
|
|
2174
|
-
/** List users in lineage. `GET /user/user/list` */
|
|
2150
|
+
/** List users in lineage. `GET /user/employees/list` */
|
|
2175
2151
|
async listUsersInLineage() {
|
|
2176
|
-
return this.request("GET", "/user/
|
|
2177
|
-
}
|
|
2178
|
-
/** List users in lineage (v2). `GET /user/user/v2/list` */
|
|
2179
|
-
async listUsersInLineageV2() {
|
|
2180
|
-
return this.request("GET", "/user/user/v2/list");
|
|
2152
|
+
return this.request("GET", "/user/employees/list");
|
|
2181
2153
|
}
|
|
2182
|
-
/**
|
|
2183
|
-
async acceptInvitationV2(params) {
|
|
2184
|
-
return this.request("POST", "/user/user/invite/accept/v2", { body: params });
|
|
2185
|
-
}
|
|
2186
|
-
/** Resend invite. `POST /user/user/resend_invite` */
|
|
2154
|
+
/** Resend invite. `POST /user/employees/resend-invite` */
|
|
2187
2155
|
async resendInvite(params) {
|
|
2188
|
-
return this.request("POST", "/user/
|
|
2189
|
-
}
|
|
2190
|
-
/** Get role (v2). `GET /user/role/v2` */
|
|
2191
|
-
async getRoleV2() {
|
|
2192
|
-
return this.request("GET", "/user/role/v2");
|
|
2156
|
+
return this.request("POST", "/user/employees/resend-invite", { body: params });
|
|
2193
2157
|
}
|
|
2194
|
-
/**
|
|
2195
|
-
|
|
2196
|
-
|
|
2197
|
-
|
|
2198
|
-
|
|
2199
|
-
async
|
|
2200
|
-
return this.request("GET", "/user/role
|
|
2158
|
+
/**
|
|
2159
|
+
* Get the caller's parent permission groups + scopes.
|
|
2160
|
+
*
|
|
2161
|
+
* `GET /user/role`
|
|
2162
|
+
*/
|
|
2163
|
+
async getRolePermissions() {
|
|
2164
|
+
return this.request("GET", "/user/role");
|
|
2201
2165
|
}
|
|
2202
2166
|
/**
|
|
2203
2167
|
* List invitable roles. `GET /user/role/list/invite`
|
|
@@ -2218,9 +2182,9 @@ var Users = class {
|
|
|
2218
2182
|
async listUpdatableRoles() {
|
|
2219
2183
|
return this.request("GET", "/user/role/list/update");
|
|
2220
2184
|
}
|
|
2221
|
-
/** Get permission info. `GET /user/
|
|
2185
|
+
/** Get permission info. `GET /user/permission-info` */
|
|
2222
2186
|
async getPermissionInfo() {
|
|
2223
|
-
return this.request("GET", "/user/
|
|
2187
|
+
return this.request("GET", "/user/permission-info");
|
|
2224
2188
|
}
|
|
2225
2189
|
/** Get module list. `GET /user/module/list` */
|
|
2226
2190
|
async getModuleList() {
|
|
@@ -2250,12 +2214,12 @@ var Verification = class {
|
|
|
2250
2214
|
this.request = request;
|
|
2251
2215
|
}
|
|
2252
2216
|
async registerApplePayDomains(merchantId, params) {
|
|
2253
|
-
return this.request("POST", `/verify/
|
|
2217
|
+
return this.request("POST", `/verify/apple-pay/${encodeURIComponent(merchantId)}`, {
|
|
2254
2218
|
body: params
|
|
2255
2219
|
});
|
|
2256
2220
|
}
|
|
2257
2221
|
async getApplePayVerifiedDomains(params) {
|
|
2258
|
-
return this.request("GET", "/verify/
|
|
2222
|
+
return this.request("GET", "/verify/applepay-verified-domains", {
|
|
2259
2223
|
query: params
|
|
2260
2224
|
});
|
|
2261
2225
|
}
|
|
@@ -2354,30 +2318,30 @@ var AnalyticsDomain = class {
|
|
|
2354
2318
|
this.request = request;
|
|
2355
2319
|
this.domain = domain;
|
|
2356
2320
|
}
|
|
2357
|
-
/** Get metrics. `POST /analytics/
|
|
2321
|
+
/** Get metrics. `POST /analytics/metrics/{domain}` */
|
|
2358
2322
|
async metrics(params, scope) {
|
|
2359
|
-
const prefix = scope ? `/analytics
|
|
2323
|
+
const prefix = scope ? `/analytics/${scope}` : "/analytics";
|
|
2360
2324
|
return this.request("POST", `${prefix}/metrics/${encodeURIComponent(this.domain)}`, {
|
|
2361
2325
|
body: [params]
|
|
2362
2326
|
});
|
|
2363
2327
|
}
|
|
2364
|
-
/** Get filters. `POST /analytics/
|
|
2328
|
+
/** Get filters. `POST /analytics/filters/{domain}` */
|
|
2365
2329
|
async filters(params, scope) {
|
|
2366
|
-
const prefix = scope ? `/analytics
|
|
2330
|
+
const prefix = scope ? `/analytics/${scope}` : "/analytics";
|
|
2367
2331
|
return this.request("POST", `${prefix}/filters/${encodeURIComponent(this.domain)}`, {
|
|
2368
2332
|
body: params
|
|
2369
2333
|
});
|
|
2370
2334
|
}
|
|
2371
|
-
/** Generate report. `POST /analytics/
|
|
2335
|
+
/** Generate report. `POST /analytics/report/{domain}` */
|
|
2372
2336
|
async report(params, scope) {
|
|
2373
|
-
const prefix = scope ? `/analytics
|
|
2337
|
+
const prefix = scope ? `/analytics/${scope}` : "/analytics";
|
|
2374
2338
|
return this.request("POST", `${prefix}/report/${encodeURIComponent(this.domain)}`, {
|
|
2375
2339
|
body: params
|
|
2376
2340
|
});
|
|
2377
2341
|
}
|
|
2378
|
-
/** Sankey chart data. `POST /analytics/
|
|
2342
|
+
/** Sankey chart data. `POST /analytics/metrics/{domain}/sankey` */
|
|
2379
2343
|
async sankey(params, scope) {
|
|
2380
|
-
const prefix = scope ? `/analytics
|
|
2344
|
+
const prefix = scope ? `/analytics/${scope}` : "/analytics";
|
|
2381
2345
|
return this.request("POST", `${prefix}/metrics/${encodeURIComponent(this.domain)}/sankey`, {
|
|
2382
2346
|
body: params
|
|
2383
2347
|
});
|
|
@@ -2395,39 +2359,39 @@ var Analytics = class {
|
|
|
2395
2359
|
this.apiEvents = new AnalyticsDomain(request, "api_events");
|
|
2396
2360
|
this.routing = new AnalyticsDomain(request, "routing");
|
|
2397
2361
|
}
|
|
2398
|
-
/** Global search. `POST /analytics/
|
|
2362
|
+
/** Global search. `POST /analytics/search` */
|
|
2399
2363
|
async search(params) {
|
|
2400
|
-
return this.request("POST", "/analytics/
|
|
2364
|
+
return this.request("POST", "/analytics/search", { body: params });
|
|
2401
2365
|
}
|
|
2402
|
-
/** Domain-specific search. `POST /analytics/
|
|
2366
|
+
/** Domain-specific search. `POST /analytics/search/{domain}` */
|
|
2403
2367
|
async searchDomain(domain, params) {
|
|
2404
|
-
return this.request("POST", `/analytics/
|
|
2368
|
+
return this.request("POST", `/analytics/search/${encodeURIComponent(domain)}`, {
|
|
2405
2369
|
body: params
|
|
2406
2370
|
});
|
|
2407
2371
|
}
|
|
2408
|
-
/** Get analytics info. `GET /analytics/
|
|
2372
|
+
/** Get analytics info. `GET /analytics/{domain}/info` */
|
|
2409
2373
|
async getInfo(domain) {
|
|
2410
|
-
return this.request("GET", `/analytics
|
|
2374
|
+
return this.request("GET", `/analytics/${encodeURIComponent(domain)}/info`);
|
|
2411
2375
|
}
|
|
2412
|
-
/** Get API event logs. `GET /analytics/
|
|
2376
|
+
/** Get API event logs. `GET /analytics/api-event-logs` */
|
|
2413
2377
|
async apiEventLogs(params) {
|
|
2414
|
-
return this.request("GET", "/analytics/
|
|
2378
|
+
return this.request("GET", "/analytics/api-event-logs", { query: params });
|
|
2415
2379
|
}
|
|
2416
|
-
/** Get SDK event logs. `POST /analytics/
|
|
2380
|
+
/** Get SDK event logs. `POST /analytics/sdk-event-logs` */
|
|
2417
2381
|
async sdkEventLogs(params) {
|
|
2418
|
-
return this.request("POST", "/analytics/
|
|
2382
|
+
return this.request("POST", "/analytics/sdk-event-logs", { body: params });
|
|
2419
2383
|
}
|
|
2420
|
-
/** Get connector event logs. `GET /analytics/
|
|
2384
|
+
/** Get connector event logs. `GET /analytics/connector-event-logs` */
|
|
2421
2385
|
async connectorEventLogs(params) {
|
|
2422
|
-
return this.request("GET", "/analytics/
|
|
2386
|
+
return this.request("GET", "/analytics/connector-event-logs", { query: params });
|
|
2423
2387
|
}
|
|
2424
|
-
/** Get routing event logs. `GET /analytics/
|
|
2388
|
+
/** Get routing event logs. `GET /analytics/routing-event-logs` */
|
|
2425
2389
|
async routingEventLogs(params) {
|
|
2426
|
-
return this.request("GET", "/analytics/
|
|
2390
|
+
return this.request("GET", "/analytics/routing-event-logs", { query: params });
|
|
2427
2391
|
}
|
|
2428
|
-
/** Get outgoing webhook event logs. `GET /analytics/
|
|
2392
|
+
/** Get outgoing webhook event logs. `GET /analytics/outgoing-webhook-event-logs` */
|
|
2429
2393
|
async outgoingWebhookEventLogs(params) {
|
|
2430
|
-
return this.request("GET", "/analytics/
|
|
2394
|
+
return this.request("GET", "/analytics/outgoing-webhook-event-logs", { query: params });
|
|
2431
2395
|
}
|
|
2432
2396
|
};
|
|
2433
2397
|
|
|
@@ -2481,18 +2445,18 @@ var FeatureMatrix = class {
|
|
|
2481
2445
|
constructor(request) {
|
|
2482
2446
|
this.request = request;
|
|
2483
2447
|
}
|
|
2484
|
-
/** Retrieve the feature matrix. `GET /
|
|
2448
|
+
/** Retrieve the feature matrix. `GET /feature-matrix` */
|
|
2485
2449
|
async retrieve() {
|
|
2486
|
-
return this.request("GET", "/
|
|
2450
|
+
return this.request("GET", "/feature-matrix");
|
|
2487
2451
|
}
|
|
2488
2452
|
/**
|
|
2489
2453
|
* Retrieve the feature matrix scoped to a merchant. Beta connectors
|
|
2490
2454
|
* are filtered against the merchant's allowlist so the dashboard only
|
|
2491
2455
|
* surfaces connectors the merchant can actually attach.
|
|
2492
|
-
* `GET /
|
|
2456
|
+
* `GET /feature-matrix/{merchantId}`
|
|
2493
2457
|
*/
|
|
2494
2458
|
async retrieveForMerchant(merchantId) {
|
|
2495
|
-
return this.request("GET", `/
|
|
2459
|
+
return this.request("GET", `/feature-matrix/${encodeURIComponent(merchantId)}`);
|
|
2496
2460
|
}
|
|
2497
2461
|
};
|
|
2498
2462
|
|
|
@@ -2524,9 +2488,9 @@ var Forex = class {
|
|
|
2524
2488
|
async getRates(params) {
|
|
2525
2489
|
return this.request("GET", "/forex/rates", { query: params });
|
|
2526
2490
|
}
|
|
2527
|
-
/** Convert from minor currency. `GET /forex/
|
|
2491
|
+
/** Convert from minor currency. `GET /forex/convert-from-minor` */
|
|
2528
2492
|
async convertFromMinor(params) {
|
|
2529
|
-
return this.request("GET", "/forex/
|
|
2493
|
+
return this.request("GET", "/forex/convert-from-minor", { query: params });
|
|
2530
2494
|
}
|
|
2531
2495
|
};
|
|
2532
2496
|
|
|
@@ -3661,4 +3625,4 @@ export {
|
|
|
3661
3625
|
applyBrandingVariables,
|
|
3662
3626
|
shadowFor
|
|
3663
3627
|
};
|
|
3664
|
-
//# sourceMappingURL=chunk-
|
|
3628
|
+
//# sourceMappingURL=chunk-TE4LLC2R.js.map
|