@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
package/dist/internal.cjs
CHANGED
|
@@ -126,7 +126,7 @@ var ApiKeys = class {
|
|
|
126
126
|
* ```
|
|
127
127
|
*/
|
|
128
128
|
async create(merchantId, params) {
|
|
129
|
-
return this.request("POST", `/
|
|
129
|
+
return this.request("POST", `/api-keys/${encodeURIComponent(merchantId)}`, { body: params });
|
|
130
130
|
}
|
|
131
131
|
/**
|
|
132
132
|
* Retrieve metadata about an API key (does not return the plaintext secret).
|
|
@@ -138,7 +138,7 @@ var ApiKeys = class {
|
|
|
138
138
|
async retrieve(merchantId, keyId) {
|
|
139
139
|
return this.request(
|
|
140
140
|
"GET",
|
|
141
|
-
`/
|
|
141
|
+
`/api-keys/${encodeURIComponent(merchantId)}/${encodeURIComponent(keyId)}`
|
|
142
142
|
);
|
|
143
143
|
}
|
|
144
144
|
/**
|
|
@@ -152,7 +152,7 @@ var ApiKeys = class {
|
|
|
152
152
|
async update(merchantId, keyId, params) {
|
|
153
153
|
return this.request(
|
|
154
154
|
"POST",
|
|
155
|
-
`/
|
|
155
|
+
`/api-keys/${encodeURIComponent(merchantId)}/${encodeURIComponent(keyId)}`,
|
|
156
156
|
{ body: params }
|
|
157
157
|
);
|
|
158
158
|
}
|
|
@@ -166,7 +166,7 @@ var ApiKeys = class {
|
|
|
166
166
|
async revoke(merchantId, keyId) {
|
|
167
167
|
return this.request(
|
|
168
168
|
"DELETE",
|
|
169
|
-
`/
|
|
169
|
+
`/api-keys/${encodeURIComponent(merchantId)}/${encodeURIComponent(keyId)}`
|
|
170
170
|
);
|
|
171
171
|
}
|
|
172
172
|
/**
|
|
@@ -176,7 +176,7 @@ var ApiKeys = class {
|
|
|
176
176
|
* @returns Array of API key metadata objects.
|
|
177
177
|
*/
|
|
178
178
|
async list(merchantId) {
|
|
179
|
-
return this.request("GET", `/
|
|
179
|
+
return this.request("GET", `/api-keys/${encodeURIComponent(merchantId)}/list`);
|
|
180
180
|
}
|
|
181
181
|
};
|
|
182
182
|
|
|
@@ -207,11 +207,11 @@ var Authentication = class {
|
|
|
207
207
|
body: params
|
|
208
208
|
});
|
|
209
209
|
}
|
|
210
|
-
/** Enable authn methods token. `POST /authentication/{authId}/
|
|
210
|
+
/** Enable authn methods token. `POST /authentication/{authId}/enabled-authn-methods-token` */
|
|
211
211
|
async enabledAuthnMethodsToken(authId, params) {
|
|
212
212
|
return this.request(
|
|
213
213
|
"POST",
|
|
214
|
-
`/authentication/${encodeURIComponent(authId)}/
|
|
214
|
+
`/authentication/${encodeURIComponent(authId)}/enabled-authn-methods-token`,
|
|
215
215
|
{
|
|
216
216
|
body: params
|
|
217
217
|
}
|
|
@@ -445,9 +445,9 @@ var Connectors = class {
|
|
|
445
445
|
`/account/${encodeURIComponent(merchantId)}/connectors/webhooks/${encodeURIComponent(connectorId)}`
|
|
446
446
|
);
|
|
447
447
|
}
|
|
448
|
-
/** List available payment methods. `GET /account/
|
|
448
|
+
/** List available payment methods. `GET /account/payment-methods` */
|
|
449
449
|
async listPaymentMethods() {
|
|
450
|
-
return this.request("GET", "/account/
|
|
450
|
+
return this.request("GET", "/account/payment-methods");
|
|
451
451
|
}
|
|
452
452
|
};
|
|
453
453
|
|
|
@@ -518,9 +518,9 @@ var Customers = class {
|
|
|
518
518
|
});
|
|
519
519
|
}
|
|
520
520
|
// --- OLAP extensions (Task 4.6) ---
|
|
521
|
-
/** List customers with count. `GET /customers/
|
|
521
|
+
/** List customers with count. `GET /customers/list-with-count` */
|
|
522
522
|
async listWithCount(params) {
|
|
523
|
-
return this.request("GET", "/customers/
|
|
523
|
+
return this.request("GET", "/customers/list-with-count", {
|
|
524
524
|
query: params
|
|
525
525
|
});
|
|
526
526
|
}
|
|
@@ -654,7 +654,7 @@ var EphemeralKeys = class {
|
|
|
654
654
|
* ```
|
|
655
655
|
*/
|
|
656
656
|
async create(params) {
|
|
657
|
-
return this.request("POST", "/
|
|
657
|
+
return this.request("POST", "/ephemeral-keys", { body: params });
|
|
658
658
|
}
|
|
659
659
|
/**
|
|
660
660
|
* Invalidate an ephemeral key before it expires.
|
|
@@ -663,7 +663,7 @@ var EphemeralKeys = class {
|
|
|
663
663
|
* @returns The deleted key object.
|
|
664
664
|
*/
|
|
665
665
|
async delete(keyId) {
|
|
666
|
-
return this.request("DELETE", `/
|
|
666
|
+
return this.request("DELETE", `/ephemeral-keys/${encodeURIComponent(keyId)}`);
|
|
667
667
|
}
|
|
668
668
|
};
|
|
669
669
|
|
|
@@ -706,7 +706,7 @@ var Fees = class {
|
|
|
706
706
|
* @param merchantId - The merchant account ID.
|
|
707
707
|
*/
|
|
708
708
|
async create(params, merchantId) {
|
|
709
|
-
return this.request("POST", "/
|
|
709
|
+
return this.request("POST", "/merchant-fees", {
|
|
710
710
|
body: params,
|
|
711
711
|
query: { merchant_id: merchantId }
|
|
712
712
|
});
|
|
@@ -717,7 +717,7 @@ var Fees = class {
|
|
|
717
717
|
* @param merchantId - The merchant account ID.
|
|
718
718
|
*/
|
|
719
719
|
async list(merchantId) {
|
|
720
|
-
return this.request("GET", "/
|
|
720
|
+
return this.request("GET", "/merchant-fees/list", {
|
|
721
721
|
query: { merchant_id: merchantId }
|
|
722
722
|
});
|
|
723
723
|
}
|
|
@@ -728,7 +728,7 @@ var Fees = class {
|
|
|
728
728
|
* @param params - Fields to update.
|
|
729
729
|
*/
|
|
730
730
|
async update(feeId, params) {
|
|
731
|
-
return this.request("PUT", `/
|
|
731
|
+
return this.request("PUT", `/merchant-fees/${encodeURIComponent(feeId)}`, { body: params });
|
|
732
732
|
}
|
|
733
733
|
/**
|
|
734
734
|
* Delete a merchant-scoped fee schedule.
|
|
@@ -736,7 +736,7 @@ var Fees = class {
|
|
|
736
736
|
* @param feeId - The fee schedule ID.
|
|
737
737
|
*/
|
|
738
738
|
async delete(feeId) {
|
|
739
|
-
return this.request("DELETE", `/
|
|
739
|
+
return this.request("DELETE", `/merchant-fees/${encodeURIComponent(feeId)}`);
|
|
740
740
|
}
|
|
741
741
|
};
|
|
742
742
|
|
|
@@ -824,7 +824,7 @@ var PaymentLinks = class {
|
|
|
824
824
|
* @returns The payment link details.
|
|
825
825
|
*/
|
|
826
826
|
async retrieve(linkId) {
|
|
827
|
-
return this.request("GET", `/
|
|
827
|
+
return this.request("GET", `/payment-link/${encodeURIComponent(linkId)}`);
|
|
828
828
|
}
|
|
829
829
|
/**
|
|
830
830
|
* List payment links, optionally filtered by status or date range.
|
|
@@ -833,20 +833,20 @@ var PaymentLinks = class {
|
|
|
833
833
|
* @returns Paginated list of payment links.
|
|
834
834
|
*/
|
|
835
835
|
async list(params) {
|
|
836
|
-
return this.request("POST", "/
|
|
836
|
+
return this.request("POST", "/payment-link/list", { body: params });
|
|
837
837
|
}
|
|
838
|
-
/** Initiate (render) a payment link page. `GET /
|
|
838
|
+
/** Initiate (render) a payment link page. `GET /payment-link/{merchantId}/{paymentId}` */
|
|
839
839
|
async initiate(merchantId, paymentId) {
|
|
840
840
|
return this.request(
|
|
841
841
|
"GET",
|
|
842
|
-
`/
|
|
842
|
+
`/payment-link/${encodeURIComponent(merchantId)}/${encodeURIComponent(paymentId)}`
|
|
843
843
|
);
|
|
844
844
|
}
|
|
845
|
-
/** Get payment link status. `GET /
|
|
845
|
+
/** Get payment link status. `GET /payment-linkstatus/{merchantId}/{paymentId}` */
|
|
846
846
|
async status(merchantId, paymentId) {
|
|
847
847
|
return this.request(
|
|
848
848
|
"GET",
|
|
849
|
-
`/
|
|
849
|
+
`/payment-linkstatus/${encodeURIComponent(merchantId)}/${encodeURIComponent(paymentId)}`
|
|
850
850
|
);
|
|
851
851
|
}
|
|
852
852
|
};
|
|
@@ -872,7 +872,7 @@ var PaymentMethods = class {
|
|
|
872
872
|
* ```
|
|
873
873
|
*/
|
|
874
874
|
async create(params) {
|
|
875
|
-
return this.request("POST", "/
|
|
875
|
+
return this.request("POST", "/payment-methods", { body: params });
|
|
876
876
|
}
|
|
877
877
|
/**
|
|
878
878
|
* Retrieve a saved payment method by its ID.
|
|
@@ -881,7 +881,7 @@ var PaymentMethods = class {
|
|
|
881
881
|
* @returns The payment method.
|
|
882
882
|
*/
|
|
883
883
|
async retrieve(methodId) {
|
|
884
|
-
return this.request("GET", `/
|
|
884
|
+
return this.request("GET", `/payment-methods/${encodeURIComponent(methodId)}`);
|
|
885
885
|
}
|
|
886
886
|
/**
|
|
887
887
|
* Update an existing payment method (e.g. update card expiry).
|
|
@@ -891,7 +891,7 @@ var PaymentMethods = class {
|
|
|
891
891
|
* @returns The updated payment method.
|
|
892
892
|
*/
|
|
893
893
|
async update(methodId, params) {
|
|
894
|
-
return this.request("POST", `/
|
|
894
|
+
return this.request("POST", `/payment-methods/${encodeURIComponent(methodId)}/update`, {
|
|
895
895
|
body: params
|
|
896
896
|
});
|
|
897
897
|
}
|
|
@@ -902,7 +902,7 @@ var PaymentMethods = class {
|
|
|
902
902
|
* @returns Deletion confirmation.
|
|
903
903
|
*/
|
|
904
904
|
async delete(methodId) {
|
|
905
|
-
return this.request("DELETE", `/
|
|
905
|
+
return this.request("DELETE", `/payment-methods/${encodeURIComponent(methodId)}`);
|
|
906
906
|
}
|
|
907
907
|
/**
|
|
908
908
|
* List payment methods using a client secret.
|
|
@@ -911,7 +911,7 @@ var PaymentMethods = class {
|
|
|
911
911
|
* @returns Array of payment methods.
|
|
912
912
|
*/
|
|
913
913
|
async list(params) {
|
|
914
|
-
return this.request("GET", "/
|
|
914
|
+
return this.request("GET", "/payment-methods", {
|
|
915
915
|
query: params
|
|
916
916
|
});
|
|
917
917
|
}
|
|
@@ -932,7 +932,7 @@ var PaymentMethods = class {
|
|
|
932
932
|
* ```
|
|
933
933
|
*/
|
|
934
934
|
async listForCustomer(customerId, params) {
|
|
935
|
-
return this.request("GET", `/customers/${encodeURIComponent(customerId)}/
|
|
935
|
+
return this.request("GET", `/customers/${encodeURIComponent(customerId)}/payment-methods`, {
|
|
936
936
|
query: params
|
|
937
937
|
});
|
|
938
938
|
}
|
|
@@ -946,55 +946,55 @@ var PaymentMethods = class {
|
|
|
946
946
|
async setDefault(customerId, methodId) {
|
|
947
947
|
return this.request(
|
|
948
948
|
"POST",
|
|
949
|
-
`/customers/${encodeURIComponent(customerId)}/
|
|
949
|
+
`/customers/${encodeURIComponent(customerId)}/payment-methods/${encodeURIComponent(methodId)}/default`
|
|
950
950
|
);
|
|
951
951
|
}
|
|
952
952
|
// --- Advanced operations (Task 3.3) ---
|
|
953
|
-
/** Migrate a payment method. `POST /
|
|
953
|
+
/** Migrate a payment method. `POST /payment-methods/migrate` */
|
|
954
954
|
async migrate(params) {
|
|
955
|
-
return this.request("POST", "/
|
|
955
|
+
return this.request("POST", "/payment-methods/migrate", { body: params });
|
|
956
956
|
}
|
|
957
|
-
/** Batch migrate payment methods. `POST /
|
|
957
|
+
/** Batch migrate payment methods. `POST /payment-methods/migrate-batch` */
|
|
958
958
|
async migrateBatch(params) {
|
|
959
|
-
return this.request("POST", "/
|
|
959
|
+
return this.request("POST", "/payment-methods/migrate-batch", { body: params });
|
|
960
960
|
}
|
|
961
|
-
/** Batch update payment methods. `POST /
|
|
961
|
+
/** Batch update payment methods. `POST /payment-methods/update-batch` */
|
|
962
962
|
async updateBatch(params) {
|
|
963
|
-
return this.request("POST", "/
|
|
963
|
+
return this.request("POST", "/payment-methods/update-batch", { body: params });
|
|
964
964
|
}
|
|
965
|
-
/** Batch retrieve payment methods. `GET /
|
|
965
|
+
/** Batch retrieve payment methods. `GET /payment-methods/batch` */
|
|
966
966
|
async batchRetrieve(params) {
|
|
967
|
-
return this.request("GET", "/
|
|
967
|
+
return this.request("GET", "/payment-methods/batch", { query: params });
|
|
968
968
|
}
|
|
969
|
-
/** Tokenize a card. `POST /
|
|
969
|
+
/** Tokenize a card. `POST /payment-methods/tokenize-card` */
|
|
970
970
|
async tokenizeCard(params) {
|
|
971
|
-
return this.request("POST", "/
|
|
971
|
+
return this.request("POST", "/payment-methods/tokenize-card", { body: params });
|
|
972
972
|
}
|
|
973
|
-
/** Batch tokenize cards. `POST /
|
|
973
|
+
/** Batch tokenize cards. `POST /payment-methods/tokenize-card-batch` */
|
|
974
974
|
async tokenizeCardBatch(params) {
|
|
975
|
-
return this.request("POST", "/
|
|
975
|
+
return this.request("POST", "/payment-methods/tokenize-card-batch", { body: params });
|
|
976
976
|
}
|
|
977
|
-
/** Initiate payment method collect link flow. `POST /
|
|
977
|
+
/** Initiate payment method collect link flow. `POST /payment-methods/collect` */
|
|
978
978
|
async collect(params) {
|
|
979
|
-
return this.request("POST", "/
|
|
979
|
+
return this.request("POST", "/payment-methods/collect", { body: params });
|
|
980
980
|
}
|
|
981
|
-
/** Save a payment method. `POST /
|
|
981
|
+
/** Save a payment method. `POST /payment-methods/{methodId}/save` */
|
|
982
982
|
async save(methodId, params) {
|
|
983
|
-
return this.request("POST", `/
|
|
983
|
+
return this.request("POST", `/payment-methods/${encodeURIComponent(methodId)}/save`, {
|
|
984
984
|
body: params
|
|
985
985
|
});
|
|
986
986
|
}
|
|
987
|
-
/** Create payment method auth link token. `POST /
|
|
987
|
+
/** Create payment method auth link token. `POST /payment-methods/auth/link` */
|
|
988
988
|
async createAuthLink(params) {
|
|
989
|
-
return this.request("POST", "/
|
|
989
|
+
return this.request("POST", "/payment-methods/auth/link", { body: params });
|
|
990
990
|
}
|
|
991
|
-
/** Exchange payment method auth token. `POST /
|
|
991
|
+
/** Exchange payment method auth token. `POST /payment-methods/auth/exchange` */
|
|
992
992
|
async exchangeAuthToken(params) {
|
|
993
|
-
return this.request("POST", "/
|
|
993
|
+
return this.request("POST", "/payment-methods/auth/exchange", { body: params });
|
|
994
994
|
}
|
|
995
|
-
/** Tokenize card using existing PM. `POST /
|
|
995
|
+
/** Tokenize card using existing PM. `POST /payment-methods/{methodId}/tokenize-card` */
|
|
996
996
|
async tokenizeCardForMethod(methodId, params) {
|
|
997
|
-
return this.request("POST", `/
|
|
997
|
+
return this.request("POST", `/payment-methods/${encodeURIComponent(methodId)}/tokenize-card`, {
|
|
998
998
|
body: params
|
|
999
999
|
});
|
|
1000
1000
|
}
|
|
@@ -1119,57 +1119,57 @@ var Payments = class {
|
|
|
1119
1119
|
});
|
|
1120
1120
|
}
|
|
1121
1121
|
// --- Advanced operations (Task 3.2) ---
|
|
1122
|
-
/** Generate session tokens. `POST /payments/
|
|
1122
|
+
/** Generate session tokens. `POST /payments/session-tokens` */
|
|
1123
1123
|
async sessionTokens(params) {
|
|
1124
|
-
return this.request("POST", "/payments/
|
|
1124
|
+
return this.request("POST", "/payments/session-tokens", { body: params });
|
|
1125
1125
|
}
|
|
1126
1126
|
/** Retrieve payment with gateway credentials. `POST /payments/sync` */
|
|
1127
1127
|
async sync(params) {
|
|
1128
1128
|
return this.request("POST", "/payments/sync", { body: params });
|
|
1129
1129
|
}
|
|
1130
|
-
/** Cancel after partial capture. `POST /payments/{paymentId}/
|
|
1130
|
+
/** Cancel after partial capture. `POST /payments/{paymentId}/cancel-post-capture` */
|
|
1131
1131
|
async cancelPostCapture(paymentId, params) {
|
|
1132
|
-
return this.request("POST", `/payments/${encodeURIComponent(paymentId)}/
|
|
1132
|
+
return this.request("POST", `/payments/${encodeURIComponent(paymentId)}/cancel-post-capture`, {
|
|
1133
1133
|
body: params
|
|
1134
1134
|
});
|
|
1135
1135
|
}
|
|
1136
|
-
/** Incrementally authorize more funds. `POST /payments/{paymentId}/
|
|
1136
|
+
/** Incrementally authorize more funds. `POST /payments/{paymentId}/incremental-authorization` */
|
|
1137
1137
|
async incrementalAuthorization(paymentId, params) {
|
|
1138
1138
|
return this.request(
|
|
1139
1139
|
"POST",
|
|
1140
|
-
`/payments/${encodeURIComponent(paymentId)}/
|
|
1140
|
+
`/payments/${encodeURIComponent(paymentId)}/incremental-authorization`,
|
|
1141
1141
|
{
|
|
1142
1142
|
body: params
|
|
1143
1143
|
}
|
|
1144
1144
|
);
|
|
1145
1145
|
}
|
|
1146
|
-
/** Extend authorization window. `POST /payments/{paymentId}/
|
|
1146
|
+
/** Extend authorization window. `POST /payments/{paymentId}/extend-authorization` */
|
|
1147
1147
|
async extendAuthorization(paymentId, params) {
|
|
1148
|
-
return this.request("POST", `/payments/${encodeURIComponent(paymentId)}/
|
|
1148
|
+
return this.request("POST", `/payments/${encodeURIComponent(paymentId)}/extend-authorization`, {
|
|
1149
1149
|
body: params
|
|
1150
1150
|
});
|
|
1151
1151
|
}
|
|
1152
|
-
/** Complete authorization. `POST /payments/{paymentId}/
|
|
1152
|
+
/** Complete authorization. `POST /payments/{paymentId}/complete-authorize` */
|
|
1153
1153
|
async completeAuthorize(paymentId, params) {
|
|
1154
|
-
return this.request("POST", `/payments/${encodeURIComponent(paymentId)}/
|
|
1154
|
+
return this.request("POST", `/payments/${encodeURIComponent(paymentId)}/complete-authorize`, {
|
|
1155
1155
|
body: params
|
|
1156
1156
|
});
|
|
1157
1157
|
}
|
|
1158
|
-
/** Dynamic tax calculation. `POST /payments/{paymentId}/
|
|
1158
|
+
/** Dynamic tax calculation. `POST /payments/{paymentId}/calculate-tax` */
|
|
1159
1159
|
async calculateTax(paymentId, params) {
|
|
1160
|
-
return this.request("POST", `/payments/${encodeURIComponent(paymentId)}/
|
|
1160
|
+
return this.request("POST", `/payments/${encodeURIComponent(paymentId)}/calculate-tax`, {
|
|
1161
1161
|
body: params
|
|
1162
1162
|
});
|
|
1163
1163
|
}
|
|
1164
|
-
/** Update payment metadata. `POST /payments/{paymentId}/
|
|
1164
|
+
/** Update payment metadata. `POST /payments/{paymentId}/update-metadata` */
|
|
1165
1165
|
async updateMetadata(paymentId, params) {
|
|
1166
|
-
return this.request("POST", `/payments/${encodeURIComponent(paymentId)}/
|
|
1166
|
+
return this.request("POST", `/payments/${encodeURIComponent(paymentId)}/update-metadata`, {
|
|
1167
1167
|
body: params
|
|
1168
1168
|
});
|
|
1169
1169
|
}
|
|
1170
|
-
/** Retrieve extended card info. `GET /payments/{paymentId}/
|
|
1170
|
+
/** Retrieve extended card info. `GET /payments/{paymentId}/extended-card-info` */
|
|
1171
1171
|
async extendedCardInfo(paymentId) {
|
|
1172
|
-
return this.request("GET", `/payments/${encodeURIComponent(paymentId)}/
|
|
1172
|
+
return this.request("GET", `/payments/${encodeURIComponent(paymentId)}/extended-card-info`);
|
|
1173
1173
|
}
|
|
1174
1174
|
// --- OLAP extensions (Task 4.2) ---
|
|
1175
1175
|
/** List payments (profile-scoped). `GET /payments/profile/list` */
|
|
@@ -1188,13 +1188,9 @@ var Payments = class {
|
|
|
1188
1188
|
async listByFilter(params) {
|
|
1189
1189
|
return this.request("POST", "/payments/list", { body: params });
|
|
1190
1190
|
}
|
|
1191
|
-
/** Get payment filter options. `
|
|
1191
|
+
/** Get payment filter options. `GET /payments/filter` */
|
|
1192
1192
|
async getFilters(params) {
|
|
1193
|
-
return this.request("
|
|
1194
|
-
}
|
|
1195
|
-
/** Get payment filters (v2). `GET /payments/v2/filter` */
|
|
1196
|
-
async getFiltersV2(params) {
|
|
1197
|
-
return this.request("GET", "/payments/v2/filter", { query: params });
|
|
1193
|
+
return this.request("GET", "/payments/filter", { query: params });
|
|
1198
1194
|
}
|
|
1199
1195
|
/** Get payment aggregates. `GET /payments/aggregate` */
|
|
1200
1196
|
async aggregate(params) {
|
|
@@ -1364,12 +1360,12 @@ var ProfileAcquirers = class {
|
|
|
1364
1360
|
this.request = request;
|
|
1365
1361
|
}
|
|
1366
1362
|
async create(params) {
|
|
1367
|
-
return this.request("POST", "/
|
|
1363
|
+
return this.request("POST", "/profile-acquirer", { body: params });
|
|
1368
1364
|
}
|
|
1369
1365
|
async update(profileId, profileAcquirerId, params) {
|
|
1370
1366
|
return this.request(
|
|
1371
1367
|
"POST",
|
|
1372
|
-
`/
|
|
1368
|
+
`/profile-acquirer/${encodeURIComponent(profileId)}/${encodeURIComponent(profileAcquirerId)}`,
|
|
1373
1369
|
{
|
|
1374
1370
|
body: params
|
|
1375
1371
|
}
|
|
@@ -1383,23 +1379,23 @@ var Profiles = class {
|
|
|
1383
1379
|
this.request = request;
|
|
1384
1380
|
}
|
|
1385
1381
|
async create(accountId, params) {
|
|
1386
|
-
return this.request("POST", `/account/${encodeURIComponent(accountId)}/
|
|
1382
|
+
return this.request("POST", `/account/${encodeURIComponent(accountId)}/business-profile`, {
|
|
1387
1383
|
body: params
|
|
1388
1384
|
});
|
|
1389
1385
|
}
|
|
1390
1386
|
async retrieve(accountId, profileId) {
|
|
1391
1387
|
return this.request(
|
|
1392
1388
|
"GET",
|
|
1393
|
-
`/account/${encodeURIComponent(accountId)}/
|
|
1389
|
+
`/account/${encodeURIComponent(accountId)}/business-profile/${encodeURIComponent(profileId)}`
|
|
1394
1390
|
);
|
|
1395
1391
|
}
|
|
1396
1392
|
async list(accountId) {
|
|
1397
|
-
return this.request("GET", `/account/${encodeURIComponent(accountId)}/
|
|
1393
|
+
return this.request("GET", `/account/${encodeURIComponent(accountId)}/business-profile`);
|
|
1398
1394
|
}
|
|
1399
1395
|
async update(accountId, profileId, params) {
|
|
1400
1396
|
return this.request(
|
|
1401
1397
|
"POST",
|
|
1402
|
-
`/account/${encodeURIComponent(accountId)}/
|
|
1398
|
+
`/account/${encodeURIComponent(accountId)}/business-profile/${encodeURIComponent(profileId)}`,
|
|
1403
1399
|
{
|
|
1404
1400
|
body: params
|
|
1405
1401
|
}
|
|
@@ -1408,22 +1404,22 @@ var Profiles = class {
|
|
|
1408
1404
|
async delete(accountId, profileId) {
|
|
1409
1405
|
return this.request(
|
|
1410
1406
|
"DELETE",
|
|
1411
|
-
`/account/${encodeURIComponent(accountId)}/
|
|
1407
|
+
`/account/${encodeURIComponent(accountId)}/business-profile/${encodeURIComponent(profileId)}`
|
|
1412
1408
|
);
|
|
1413
1409
|
}
|
|
1414
1410
|
// --- Advanced operations (Task 4.8) ---
|
|
1415
|
-
/** Toggle extended card info for a profile. `POST /account/{accountId}/
|
|
1411
|
+
/** Toggle extended card info for a profile. `POST /account/{accountId}/business-profile/{profileId}/toggle-extended-card-info` */
|
|
1416
1412
|
async toggleExtendedCardInfo(accountId, profileId) {
|
|
1417
1413
|
return this.request(
|
|
1418
1414
|
"POST",
|
|
1419
|
-
`/account/${encodeURIComponent(accountId)}/
|
|
1415
|
+
`/account/${encodeURIComponent(accountId)}/business-profile/${encodeURIComponent(profileId)}/toggle-extended-card-info`
|
|
1420
1416
|
);
|
|
1421
1417
|
}
|
|
1422
|
-
/** Toggle connector agnostic MIT. `POST /account/{accountId}/
|
|
1418
|
+
/** Toggle connector agnostic MIT. `POST /account/{accountId}/business-profile/{profileId}/toggle-connector-agnostic-mit` */
|
|
1423
1419
|
async toggleConnectorAgnosticMit(accountId, profileId) {
|
|
1424
1420
|
return this.request(
|
|
1425
1421
|
"POST",
|
|
1426
|
-
`/account/${encodeURIComponent(accountId)}/
|
|
1422
|
+
`/account/${encodeURIComponent(accountId)}/business-profile/${encodeURIComponent(profileId)}/toggle-connector-agnostic-mit`
|
|
1427
1423
|
);
|
|
1428
1424
|
}
|
|
1429
1425
|
};
|
|
@@ -1586,13 +1582,9 @@ var Refunds = class {
|
|
|
1586
1582
|
async listByProfile(params) {
|
|
1587
1583
|
return this.request("POST", "/refunds/profile/list", { body: params });
|
|
1588
1584
|
}
|
|
1589
|
-
/** Get refund filter options. `
|
|
1585
|
+
/** Get refund filter options. `GET /refunds/filter` */
|
|
1590
1586
|
async getFilters(params) {
|
|
1591
|
-
return this.request("
|
|
1592
|
-
}
|
|
1593
|
-
/** Get refund filters (v2). `GET /refunds/v2/filter` */
|
|
1594
|
-
async getFiltersV2(params) {
|
|
1595
|
-
return this.request("GET", "/refunds/v2/filter", { query: params });
|
|
1587
|
+
return this.request("GET", "/refunds/filter", { query: params });
|
|
1596
1588
|
}
|
|
1597
1589
|
/** Get refund aggregates. `GET /refunds/aggregate` */
|
|
1598
1590
|
async aggregate(params) {
|
|
@@ -1766,7 +1758,7 @@ var Search = class {
|
|
|
1766
1758
|
}
|
|
1767
1759
|
/**
|
|
1768
1760
|
* Search every supported index for `query`.
|
|
1769
|
-
* `POST /analytics/
|
|
1761
|
+
* `POST /analytics/search`
|
|
1770
1762
|
*
|
|
1771
1763
|
* @example
|
|
1772
1764
|
* ```typescript
|
|
@@ -1775,7 +1767,7 @@ var Search = class {
|
|
|
1775
1767
|
* ```
|
|
1776
1768
|
*/
|
|
1777
1769
|
async global(params, options) {
|
|
1778
|
-
return this.request("POST", "/analytics/
|
|
1770
|
+
return this.request("POST", "/analytics/search", {
|
|
1779
1771
|
body: params,
|
|
1780
1772
|
...options?.signal ? { signal: options.signal } : {}
|
|
1781
1773
|
});
|
|
@@ -1938,23 +1930,23 @@ var StripeConnect = class {
|
|
|
1938
1930
|
this.request = request;
|
|
1939
1931
|
}
|
|
1940
1932
|
async createAccount(params) {
|
|
1941
|
-
return this.request("POST", "/
|
|
1933
|
+
return this.request("POST", "/connector-onboarding/stripe/accounts", { body: params });
|
|
1942
1934
|
}
|
|
1943
1935
|
async createAccountLink(params) {
|
|
1944
|
-
return this.request("POST", "/
|
|
1936
|
+
return this.request("POST", "/connector-onboarding/stripe/account-links", { body: params });
|
|
1945
1937
|
}
|
|
1946
1938
|
// --- Generic connector onboarding (Task 4.11) ---
|
|
1947
|
-
/** Get onboarding action URL. `POST /
|
|
1939
|
+
/** Get onboarding action URL. `POST /connector-onboarding/action-url` */
|
|
1948
1940
|
async getActionUrl(params) {
|
|
1949
|
-
return this.request("POST", "/
|
|
1941
|
+
return this.request("POST", "/connector-onboarding/action-url", { body: params });
|
|
1950
1942
|
}
|
|
1951
|
-
/** Sync onboarding status. `POST /
|
|
1943
|
+
/** Sync onboarding status. `POST /connector-onboarding/sync` */
|
|
1952
1944
|
async syncOnboarding(params) {
|
|
1953
|
-
return this.request("POST", "/
|
|
1945
|
+
return this.request("POST", "/connector-onboarding/sync", { body: params });
|
|
1954
1946
|
}
|
|
1955
|
-
/** Reset tracking ID. `POST /
|
|
1947
|
+
/** Reset tracking ID. `POST /connector-onboarding/reset-tracking-id` */
|
|
1956
1948
|
async resetTrackingId(params) {
|
|
1957
|
-
return this.request("POST", "/
|
|
1949
|
+
return this.request("POST", "/connector-onboarding/reset-tracking-id", { body: params });
|
|
1958
1950
|
}
|
|
1959
1951
|
};
|
|
1960
1952
|
|
|
@@ -1964,7 +1956,7 @@ var ThreeDsRules = class {
|
|
|
1964
1956
|
this.request = request;
|
|
1965
1957
|
}
|
|
1966
1958
|
async execute(params) {
|
|
1967
|
-
return this.request("POST", "/
|
|
1959
|
+
return this.request("POST", "/three-ds-decision/execute", { body: params });
|
|
1968
1960
|
}
|
|
1969
1961
|
};
|
|
1970
1962
|
|
|
@@ -2053,13 +2045,13 @@ var Users = class {
|
|
|
2053
2045
|
return this.request("DELETE", "/user/account", { body: params });
|
|
2054
2046
|
}
|
|
2055
2047
|
async changePassword(params) {
|
|
2056
|
-
return this.request("POST", "/user/
|
|
2048
|
+
return this.request("POST", "/user/change-password", { body: params });
|
|
2057
2049
|
}
|
|
2058
2050
|
async rotatePassword(params) {
|
|
2059
|
-
return this.request("POST", "/user/
|
|
2051
|
+
return this.request("POST", "/user/rotate-password", { body: params });
|
|
2060
2052
|
}
|
|
2061
2053
|
async forgotPassword(params) {
|
|
2062
|
-
return this.request("POST", "/user/
|
|
2054
|
+
return this.request("POST", "/user/forgot-password", { body: params });
|
|
2063
2055
|
}
|
|
2064
2056
|
/**
|
|
2065
2057
|
* Commit a password reset.
|
|
@@ -2073,7 +2065,7 @@ var Users = class {
|
|
|
2073
2065
|
* decodes it a second time to find the user.
|
|
2074
2066
|
*/
|
|
2075
2067
|
async resetPassword(params) {
|
|
2076
|
-
return this.request("POST", "/user/
|
|
2068
|
+
return this.request("POST", "/user/reset-password", { body: params });
|
|
2077
2069
|
}
|
|
2078
2070
|
/**
|
|
2079
2071
|
* Exchange an email-link token (`EmailToken`) for a single-purpose JWT
|
|
@@ -2083,16 +2075,16 @@ var Users = class {
|
|
|
2083
2075
|
* The `token_type` in the response tells you which step to run next.
|
|
2084
2076
|
*/
|
|
2085
2077
|
async fromEmail(params) {
|
|
2086
|
-
return this.request("POST", "/user/
|
|
2078
|
+
return this.request("POST", "/user/from-email", { body: params });
|
|
2087
2079
|
}
|
|
2088
2080
|
async verifyEmail(params) {
|
|
2089
|
-
return this.request("POST", "/user/
|
|
2081
|
+
return this.request("POST", "/user/verify-email", { body: params });
|
|
2090
2082
|
}
|
|
2091
2083
|
async sendVerificationEmail(params) {
|
|
2092
|
-
return this.request("POST", "/user/
|
|
2084
|
+
return this.request("POST", "/user/verify-email-request", { body: params });
|
|
2093
2085
|
}
|
|
2094
2086
|
async createMerchant(params) {
|
|
2095
|
-
return this.request("POST", "/user/
|
|
2087
|
+
return this.request("POST", "/user/create-merchant", { body: params });
|
|
2096
2088
|
}
|
|
2097
2089
|
async switchMerchant(params) {
|
|
2098
2090
|
return this.request("POST", "/user/switch/merchant", { body: params });
|
|
@@ -2107,10 +2099,10 @@ var Users = class {
|
|
|
2107
2099
|
return this.request("GET", "/user/list/profile");
|
|
2108
2100
|
}
|
|
2109
2101
|
async inviteUsers(params) {
|
|
2110
|
-
return this.request("POST", "/user/
|
|
2102
|
+
return this.request("POST", "/user/employees/invite", { body: params });
|
|
2111
2103
|
}
|
|
2112
2104
|
async acceptInvitation(params) {
|
|
2113
|
-
return this.request("POST", "/user/
|
|
2105
|
+
return this.request("POST", "/user/invite/accept", { body: params });
|
|
2114
2106
|
}
|
|
2115
2107
|
/**
|
|
2116
2108
|
* Accept an invitation via the email-link flow.
|
|
@@ -2123,7 +2115,7 @@ var Users = class {
|
|
|
2123
2115
|
* invitee and the entity lineage.
|
|
2124
2116
|
*/
|
|
2125
2117
|
async acceptInviteFromEmail(params) {
|
|
2126
|
-
return this.request("POST", "/user/
|
|
2118
|
+
return this.request("POST", "/user/accept-invite-from-email", { body: params });
|
|
2127
2119
|
}
|
|
2128
2120
|
/**
|
|
2129
2121
|
* Start TOTP setup (or no-op if already set).
|
|
@@ -2150,10 +2142,10 @@ var Users = class {
|
|
|
2150
2142
|
return this.request("GET", "/user/2fa/totp/reset");
|
|
2151
2143
|
}
|
|
2152
2144
|
async generateRecoveryCodes() {
|
|
2153
|
-
return this.request("GET", "/user/2fa/
|
|
2145
|
+
return this.request("GET", "/user/2fa/recovery-code/generate");
|
|
2154
2146
|
}
|
|
2155
2147
|
async verifyRecoveryCode(params) {
|
|
2156
|
-
return this.request("POST", "/user/2fa/
|
|
2148
|
+
return this.request("POST", "/user/2fa/recovery-code/verify", { body: params });
|
|
2157
2149
|
}
|
|
2158
2150
|
async sendPhoneOtp(params) {
|
|
2159
2151
|
return this.request("POST", "/user/phone/send-otp", { body: params });
|
|
@@ -2161,25 +2153,17 @@ var Users = class {
|
|
|
2161
2153
|
async verifyPhoneOtp(params) {
|
|
2162
2154
|
return this.request("POST", "/user/phone/verify-otp", { body: params });
|
|
2163
2155
|
}
|
|
2164
|
-
async getRoleFromToken() {
|
|
2165
|
-
return this.request("GET", "/user/role");
|
|
2166
|
-
}
|
|
2167
2156
|
async listRoles() {
|
|
2168
2157
|
return this.request("GET", "/user/role/list");
|
|
2169
2158
|
}
|
|
2170
2159
|
async listUserRoles(params) {
|
|
2171
|
-
return this.request("POST", "/user/
|
|
2160
|
+
return this.request("POST", "/user/employees", { body: params });
|
|
2172
2161
|
}
|
|
2173
2162
|
async updateUserRole(params) {
|
|
2174
|
-
return this.request("POST", "/user/
|
|
2163
|
+
return this.request("POST", "/user/employees/update-role", { body: params });
|
|
2175
2164
|
}
|
|
2176
2165
|
async deleteUserRole(params) {
|
|
2177
|
-
return this.request("DELETE", "/user/
|
|
2178
|
-
}
|
|
2179
|
-
// --- Advanced methods (Task 4.7) ---
|
|
2180
|
-
/** Sign in (v2). `POST /user/v2/signin` */
|
|
2181
|
-
async signInV2(params) {
|
|
2182
|
-
return this.request("POST", "/user/v2/signin", { body: params });
|
|
2166
|
+
return this.request("DELETE", "/user/employees/delete", { body: params });
|
|
2183
2167
|
}
|
|
2184
2168
|
/** Sign in via OIDC. `POST /user/oidc` */
|
|
2185
2169
|
async signInOidc(params) {
|
|
@@ -2197,10 +2181,6 @@ var Users = class {
|
|
|
2197
2181
|
async check2faStatus() {
|
|
2198
2182
|
return this.request("GET", "/user/2fa");
|
|
2199
2183
|
}
|
|
2200
|
-
/** Check 2FA status (v2). `GET /user/2fa/v2` */
|
|
2201
|
-
async check2faStatusV2() {
|
|
2202
|
-
return this.request("GET", "/user/2fa/v2");
|
|
2203
|
-
}
|
|
2204
2184
|
/**
|
|
2205
2185
|
* Finish first-time TOTP setup: commit the secret generated by `beginTotp`
|
|
2206
2186
|
* against a 6-digit code from the user's authenticator app.
|
|
@@ -2245,37 +2225,21 @@ var Users = class {
|
|
|
2245
2225
|
async selectAuth(params) {
|
|
2246
2226
|
return this.request("POST", "/user/auth/select", { body: params });
|
|
2247
2227
|
}
|
|
2248
|
-
/** List
|
|
2249
|
-
async listUserRolesV2(params) {
|
|
2250
|
-
return this.request("POST", "/user/user/v2", { body: params });
|
|
2251
|
-
}
|
|
2252
|
-
/** List users in lineage. `GET /user/user/list` */
|
|
2228
|
+
/** List users in lineage. `GET /user/employees/list` */
|
|
2253
2229
|
async listUsersInLineage() {
|
|
2254
|
-
return this.request("GET", "/user/
|
|
2255
|
-
}
|
|
2256
|
-
/** List users in lineage (v2). `GET /user/user/v2/list` */
|
|
2257
|
-
async listUsersInLineageV2() {
|
|
2258
|
-
return this.request("GET", "/user/user/v2/list");
|
|
2230
|
+
return this.request("GET", "/user/employees/list");
|
|
2259
2231
|
}
|
|
2260
|
-
/**
|
|
2261
|
-
async acceptInvitationV2(params) {
|
|
2262
|
-
return this.request("POST", "/user/user/invite/accept/v2", { body: params });
|
|
2263
|
-
}
|
|
2264
|
-
/** Resend invite. `POST /user/user/resend_invite` */
|
|
2232
|
+
/** Resend invite. `POST /user/employees/resend-invite` */
|
|
2265
2233
|
async resendInvite(params) {
|
|
2266
|
-
return this.request("POST", "/user/
|
|
2267
|
-
}
|
|
2268
|
-
/** Get role (v2). `GET /user/role/v2` */
|
|
2269
|
-
async getRoleV2() {
|
|
2270
|
-
return this.request("GET", "/user/role/v2");
|
|
2234
|
+
return this.request("POST", "/user/employees/resend-invite", { body: params });
|
|
2271
2235
|
}
|
|
2272
|
-
/**
|
|
2273
|
-
|
|
2274
|
-
|
|
2275
|
-
|
|
2276
|
-
|
|
2277
|
-
async
|
|
2278
|
-
return this.request("GET", "/user/role
|
|
2236
|
+
/**
|
|
2237
|
+
* Get the caller's parent permission groups + scopes.
|
|
2238
|
+
*
|
|
2239
|
+
* `GET /user/role`
|
|
2240
|
+
*/
|
|
2241
|
+
async getRolePermissions() {
|
|
2242
|
+
return this.request("GET", "/user/role");
|
|
2279
2243
|
}
|
|
2280
2244
|
/**
|
|
2281
2245
|
* List invitable roles. `GET /user/role/list/invite`
|
|
@@ -2296,9 +2260,9 @@ var Users = class {
|
|
|
2296
2260
|
async listUpdatableRoles() {
|
|
2297
2261
|
return this.request("GET", "/user/role/list/update");
|
|
2298
2262
|
}
|
|
2299
|
-
/** Get permission info. `GET /user/
|
|
2263
|
+
/** Get permission info. `GET /user/permission-info` */
|
|
2300
2264
|
async getPermissionInfo() {
|
|
2301
|
-
return this.request("GET", "/user/
|
|
2265
|
+
return this.request("GET", "/user/permission-info");
|
|
2302
2266
|
}
|
|
2303
2267
|
/** Get module list. `GET /user/module/list` */
|
|
2304
2268
|
async getModuleList() {
|
|
@@ -2328,12 +2292,12 @@ var Verification = class {
|
|
|
2328
2292
|
this.request = request;
|
|
2329
2293
|
}
|
|
2330
2294
|
async registerApplePayDomains(merchantId, params) {
|
|
2331
|
-
return this.request("POST", `/verify/
|
|
2295
|
+
return this.request("POST", `/verify/apple-pay/${encodeURIComponent(merchantId)}`, {
|
|
2332
2296
|
body: params
|
|
2333
2297
|
});
|
|
2334
2298
|
}
|
|
2335
2299
|
async getApplePayVerifiedDomains(params) {
|
|
2336
|
-
return this.request("GET", "/verify/
|
|
2300
|
+
return this.request("GET", "/verify/applepay-verified-domains", {
|
|
2337
2301
|
query: params
|
|
2338
2302
|
});
|
|
2339
2303
|
}
|
|
@@ -2432,30 +2396,30 @@ var AnalyticsDomain = class {
|
|
|
2432
2396
|
this.request = request;
|
|
2433
2397
|
this.domain = domain;
|
|
2434
2398
|
}
|
|
2435
|
-
/** Get metrics. `POST /analytics/
|
|
2399
|
+
/** Get metrics. `POST /analytics/metrics/{domain}` */
|
|
2436
2400
|
async metrics(params, scope) {
|
|
2437
|
-
const prefix = scope ? `/analytics
|
|
2401
|
+
const prefix = scope ? `/analytics/${scope}` : "/analytics";
|
|
2438
2402
|
return this.request("POST", `${prefix}/metrics/${encodeURIComponent(this.domain)}`, {
|
|
2439
2403
|
body: [params]
|
|
2440
2404
|
});
|
|
2441
2405
|
}
|
|
2442
|
-
/** Get filters. `POST /analytics/
|
|
2406
|
+
/** Get filters. `POST /analytics/filters/{domain}` */
|
|
2443
2407
|
async filters(params, scope) {
|
|
2444
|
-
const prefix = scope ? `/analytics
|
|
2408
|
+
const prefix = scope ? `/analytics/${scope}` : "/analytics";
|
|
2445
2409
|
return this.request("POST", `${prefix}/filters/${encodeURIComponent(this.domain)}`, {
|
|
2446
2410
|
body: params
|
|
2447
2411
|
});
|
|
2448
2412
|
}
|
|
2449
|
-
/** Generate report. `POST /analytics/
|
|
2413
|
+
/** Generate report. `POST /analytics/report/{domain}` */
|
|
2450
2414
|
async report(params, scope) {
|
|
2451
|
-
const prefix = scope ? `/analytics
|
|
2415
|
+
const prefix = scope ? `/analytics/${scope}` : "/analytics";
|
|
2452
2416
|
return this.request("POST", `${prefix}/report/${encodeURIComponent(this.domain)}`, {
|
|
2453
2417
|
body: params
|
|
2454
2418
|
});
|
|
2455
2419
|
}
|
|
2456
|
-
/** Sankey chart data. `POST /analytics/
|
|
2420
|
+
/** Sankey chart data. `POST /analytics/metrics/{domain}/sankey` */
|
|
2457
2421
|
async sankey(params, scope) {
|
|
2458
|
-
const prefix = scope ? `/analytics
|
|
2422
|
+
const prefix = scope ? `/analytics/${scope}` : "/analytics";
|
|
2459
2423
|
return this.request("POST", `${prefix}/metrics/${encodeURIComponent(this.domain)}/sankey`, {
|
|
2460
2424
|
body: params
|
|
2461
2425
|
});
|
|
@@ -2473,39 +2437,39 @@ var Analytics = class {
|
|
|
2473
2437
|
this.apiEvents = new AnalyticsDomain(request, "api_events");
|
|
2474
2438
|
this.routing = new AnalyticsDomain(request, "routing");
|
|
2475
2439
|
}
|
|
2476
|
-
/** Global search. `POST /analytics/
|
|
2440
|
+
/** Global search. `POST /analytics/search` */
|
|
2477
2441
|
async search(params) {
|
|
2478
|
-
return this.request("POST", "/analytics/
|
|
2442
|
+
return this.request("POST", "/analytics/search", { body: params });
|
|
2479
2443
|
}
|
|
2480
|
-
/** Domain-specific search. `POST /analytics/
|
|
2444
|
+
/** Domain-specific search. `POST /analytics/search/{domain}` */
|
|
2481
2445
|
async searchDomain(domain, params) {
|
|
2482
|
-
return this.request("POST", `/analytics/
|
|
2446
|
+
return this.request("POST", `/analytics/search/${encodeURIComponent(domain)}`, {
|
|
2483
2447
|
body: params
|
|
2484
2448
|
});
|
|
2485
2449
|
}
|
|
2486
|
-
/** Get analytics info. `GET /analytics/
|
|
2450
|
+
/** Get analytics info. `GET /analytics/{domain}/info` */
|
|
2487
2451
|
async getInfo(domain) {
|
|
2488
|
-
return this.request("GET", `/analytics
|
|
2452
|
+
return this.request("GET", `/analytics/${encodeURIComponent(domain)}/info`);
|
|
2489
2453
|
}
|
|
2490
|
-
/** Get API event logs. `GET /analytics/
|
|
2454
|
+
/** Get API event logs. `GET /analytics/api-event-logs` */
|
|
2491
2455
|
async apiEventLogs(params) {
|
|
2492
|
-
return this.request("GET", "/analytics/
|
|
2456
|
+
return this.request("GET", "/analytics/api-event-logs", { query: params });
|
|
2493
2457
|
}
|
|
2494
|
-
/** Get SDK event logs. `POST /analytics/
|
|
2458
|
+
/** Get SDK event logs. `POST /analytics/sdk-event-logs` */
|
|
2495
2459
|
async sdkEventLogs(params) {
|
|
2496
|
-
return this.request("POST", "/analytics/
|
|
2460
|
+
return this.request("POST", "/analytics/sdk-event-logs", { body: params });
|
|
2497
2461
|
}
|
|
2498
|
-
/** Get connector event logs. `GET /analytics/
|
|
2462
|
+
/** Get connector event logs. `GET /analytics/connector-event-logs` */
|
|
2499
2463
|
async connectorEventLogs(params) {
|
|
2500
|
-
return this.request("GET", "/analytics/
|
|
2464
|
+
return this.request("GET", "/analytics/connector-event-logs", { query: params });
|
|
2501
2465
|
}
|
|
2502
|
-
/** Get routing event logs. `GET /analytics/
|
|
2466
|
+
/** Get routing event logs. `GET /analytics/routing-event-logs` */
|
|
2503
2467
|
async routingEventLogs(params) {
|
|
2504
|
-
return this.request("GET", "/analytics/
|
|
2468
|
+
return this.request("GET", "/analytics/routing-event-logs", { query: params });
|
|
2505
2469
|
}
|
|
2506
|
-
/** Get outgoing webhook event logs. `GET /analytics/
|
|
2470
|
+
/** Get outgoing webhook event logs. `GET /analytics/outgoing-webhook-event-logs` */
|
|
2507
2471
|
async outgoingWebhookEventLogs(params) {
|
|
2508
|
-
return this.request("GET", "/analytics/
|
|
2472
|
+
return this.request("GET", "/analytics/outgoing-webhook-event-logs", { query: params });
|
|
2509
2473
|
}
|
|
2510
2474
|
};
|
|
2511
2475
|
|
|
@@ -2559,18 +2523,18 @@ var FeatureMatrix = class {
|
|
|
2559
2523
|
constructor(request) {
|
|
2560
2524
|
this.request = request;
|
|
2561
2525
|
}
|
|
2562
|
-
/** Retrieve the feature matrix. `GET /
|
|
2526
|
+
/** Retrieve the feature matrix. `GET /feature-matrix` */
|
|
2563
2527
|
async retrieve() {
|
|
2564
|
-
return this.request("GET", "/
|
|
2528
|
+
return this.request("GET", "/feature-matrix");
|
|
2565
2529
|
}
|
|
2566
2530
|
/**
|
|
2567
2531
|
* Retrieve the feature matrix scoped to a merchant. Beta connectors
|
|
2568
2532
|
* are filtered against the merchant's allowlist so the dashboard only
|
|
2569
2533
|
* surfaces connectors the merchant can actually attach.
|
|
2570
|
-
* `GET /
|
|
2534
|
+
* `GET /feature-matrix/{merchantId}`
|
|
2571
2535
|
*/
|
|
2572
2536
|
async retrieveForMerchant(merchantId) {
|
|
2573
|
-
return this.request("GET", `/
|
|
2537
|
+
return this.request("GET", `/feature-matrix/${encodeURIComponent(merchantId)}`);
|
|
2574
2538
|
}
|
|
2575
2539
|
};
|
|
2576
2540
|
|
|
@@ -2602,9 +2566,9 @@ var Forex = class {
|
|
|
2602
2566
|
async getRates(params) {
|
|
2603
2567
|
return this.request("GET", "/forex/rates", { query: params });
|
|
2604
2568
|
}
|
|
2605
|
-
/** Convert from minor currency. `GET /forex/
|
|
2569
|
+
/** Convert from minor currency. `GET /forex/convert-from-minor` */
|
|
2606
2570
|
async convertFromMinor(params) {
|
|
2607
|
-
return this.request("GET", "/forex/
|
|
2571
|
+
return this.request("GET", "/forex/convert-from-minor", { query: params });
|
|
2608
2572
|
}
|
|
2609
2573
|
};
|
|
2610
2574
|
|