@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
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` */
|
|
@@ -1360,12 +1360,12 @@ var ProfileAcquirers = class {
|
|
|
1360
1360
|
this.request = request;
|
|
1361
1361
|
}
|
|
1362
1362
|
async create(params) {
|
|
1363
|
-
return this.request("POST", "/
|
|
1363
|
+
return this.request("POST", "/profile-acquirer", { body: params });
|
|
1364
1364
|
}
|
|
1365
1365
|
async update(profileId, profileAcquirerId, params) {
|
|
1366
1366
|
return this.request(
|
|
1367
1367
|
"POST",
|
|
1368
|
-
`/
|
|
1368
|
+
`/profile-acquirer/${encodeURIComponent(profileId)}/${encodeURIComponent(profileAcquirerId)}`,
|
|
1369
1369
|
{
|
|
1370
1370
|
body: params
|
|
1371
1371
|
}
|
|
@@ -1379,23 +1379,23 @@ var Profiles = class {
|
|
|
1379
1379
|
this.request = request;
|
|
1380
1380
|
}
|
|
1381
1381
|
async create(accountId, params) {
|
|
1382
|
-
return this.request("POST", `/account/${encodeURIComponent(accountId)}/
|
|
1382
|
+
return this.request("POST", `/account/${encodeURIComponent(accountId)}/business-profile`, {
|
|
1383
1383
|
body: params
|
|
1384
1384
|
});
|
|
1385
1385
|
}
|
|
1386
1386
|
async retrieve(accountId, profileId) {
|
|
1387
1387
|
return this.request(
|
|
1388
1388
|
"GET",
|
|
1389
|
-
`/account/${encodeURIComponent(accountId)}/
|
|
1389
|
+
`/account/${encodeURIComponent(accountId)}/business-profile/${encodeURIComponent(profileId)}`
|
|
1390
1390
|
);
|
|
1391
1391
|
}
|
|
1392
1392
|
async list(accountId) {
|
|
1393
|
-
return this.request("GET", `/account/${encodeURIComponent(accountId)}/
|
|
1393
|
+
return this.request("GET", `/account/${encodeURIComponent(accountId)}/business-profile`);
|
|
1394
1394
|
}
|
|
1395
1395
|
async update(accountId, profileId, params) {
|
|
1396
1396
|
return this.request(
|
|
1397
1397
|
"POST",
|
|
1398
|
-
`/account/${encodeURIComponent(accountId)}/
|
|
1398
|
+
`/account/${encodeURIComponent(accountId)}/business-profile/${encodeURIComponent(profileId)}`,
|
|
1399
1399
|
{
|
|
1400
1400
|
body: params
|
|
1401
1401
|
}
|
|
@@ -1404,22 +1404,22 @@ var Profiles = class {
|
|
|
1404
1404
|
async delete(accountId, profileId) {
|
|
1405
1405
|
return this.request(
|
|
1406
1406
|
"DELETE",
|
|
1407
|
-
`/account/${encodeURIComponent(accountId)}/
|
|
1407
|
+
`/account/${encodeURIComponent(accountId)}/business-profile/${encodeURIComponent(profileId)}`
|
|
1408
1408
|
);
|
|
1409
1409
|
}
|
|
1410
1410
|
// --- Advanced operations (Task 4.8) ---
|
|
1411
|
-
/** 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` */
|
|
1412
1412
|
async toggleExtendedCardInfo(accountId, profileId) {
|
|
1413
1413
|
return this.request(
|
|
1414
1414
|
"POST",
|
|
1415
|
-
`/account/${encodeURIComponent(accountId)}/
|
|
1415
|
+
`/account/${encodeURIComponent(accountId)}/business-profile/${encodeURIComponent(profileId)}/toggle-extended-card-info`
|
|
1416
1416
|
);
|
|
1417
1417
|
}
|
|
1418
|
-
/** Toggle connector agnostic MIT. `POST /account/{accountId}/
|
|
1418
|
+
/** Toggle connector agnostic MIT. `POST /account/{accountId}/business-profile/{profileId}/toggle-connector-agnostic-mit` */
|
|
1419
1419
|
async toggleConnectorAgnosticMit(accountId, profileId) {
|
|
1420
1420
|
return this.request(
|
|
1421
1421
|
"POST",
|
|
1422
|
-
`/account/${encodeURIComponent(accountId)}/
|
|
1422
|
+
`/account/${encodeURIComponent(accountId)}/business-profile/${encodeURIComponent(profileId)}/toggle-connector-agnostic-mit`
|
|
1423
1423
|
);
|
|
1424
1424
|
}
|
|
1425
1425
|
};
|
|
@@ -1930,23 +1930,23 @@ var StripeConnect = class {
|
|
|
1930
1930
|
this.request = request;
|
|
1931
1931
|
}
|
|
1932
1932
|
async createAccount(params) {
|
|
1933
|
-
return this.request("POST", "/
|
|
1933
|
+
return this.request("POST", "/connector-onboarding/stripe/accounts", { body: params });
|
|
1934
1934
|
}
|
|
1935
1935
|
async createAccountLink(params) {
|
|
1936
|
-
return this.request("POST", "/
|
|
1936
|
+
return this.request("POST", "/connector-onboarding/stripe/account-links", { body: params });
|
|
1937
1937
|
}
|
|
1938
1938
|
// --- Generic connector onboarding (Task 4.11) ---
|
|
1939
|
-
/** Get onboarding action URL. `POST /
|
|
1939
|
+
/** Get onboarding action URL. `POST /connector-onboarding/action-url` */
|
|
1940
1940
|
async getActionUrl(params) {
|
|
1941
|
-
return this.request("POST", "/
|
|
1941
|
+
return this.request("POST", "/connector-onboarding/action-url", { body: params });
|
|
1942
1942
|
}
|
|
1943
|
-
/** Sync onboarding status. `POST /
|
|
1943
|
+
/** Sync onboarding status. `POST /connector-onboarding/sync` */
|
|
1944
1944
|
async syncOnboarding(params) {
|
|
1945
|
-
return this.request("POST", "/
|
|
1945
|
+
return this.request("POST", "/connector-onboarding/sync", { body: params });
|
|
1946
1946
|
}
|
|
1947
|
-
/** Reset tracking ID. `POST /
|
|
1947
|
+
/** Reset tracking ID. `POST /connector-onboarding/reset-tracking-id` */
|
|
1948
1948
|
async resetTrackingId(params) {
|
|
1949
|
-
return this.request("POST", "/
|
|
1949
|
+
return this.request("POST", "/connector-onboarding/reset-tracking-id", { body: params });
|
|
1950
1950
|
}
|
|
1951
1951
|
};
|
|
1952
1952
|
|
|
@@ -1956,7 +1956,7 @@ var ThreeDsRules = class {
|
|
|
1956
1956
|
this.request = request;
|
|
1957
1957
|
}
|
|
1958
1958
|
async execute(params) {
|
|
1959
|
-
return this.request("POST", "/
|
|
1959
|
+
return this.request("POST", "/three-ds-decision/execute", { body: params });
|
|
1960
1960
|
}
|
|
1961
1961
|
};
|
|
1962
1962
|
|
|
@@ -2045,13 +2045,13 @@ var Users = class {
|
|
|
2045
2045
|
return this.request("DELETE", "/user/account", { body: params });
|
|
2046
2046
|
}
|
|
2047
2047
|
async changePassword(params) {
|
|
2048
|
-
return this.request("POST", "/user/
|
|
2048
|
+
return this.request("POST", "/user/change-password", { body: params });
|
|
2049
2049
|
}
|
|
2050
2050
|
async rotatePassword(params) {
|
|
2051
|
-
return this.request("POST", "/user/
|
|
2051
|
+
return this.request("POST", "/user/rotate-password", { body: params });
|
|
2052
2052
|
}
|
|
2053
2053
|
async forgotPassword(params) {
|
|
2054
|
-
return this.request("POST", "/user/
|
|
2054
|
+
return this.request("POST", "/user/forgot-password", { body: params });
|
|
2055
2055
|
}
|
|
2056
2056
|
/**
|
|
2057
2057
|
* Commit a password reset.
|
|
@@ -2065,7 +2065,7 @@ var Users = class {
|
|
|
2065
2065
|
* decodes it a second time to find the user.
|
|
2066
2066
|
*/
|
|
2067
2067
|
async resetPassword(params) {
|
|
2068
|
-
return this.request("POST", "/user/
|
|
2068
|
+
return this.request("POST", "/user/reset-password", { body: params });
|
|
2069
2069
|
}
|
|
2070
2070
|
/**
|
|
2071
2071
|
* Exchange an email-link token (`EmailToken`) for a single-purpose JWT
|
|
@@ -2075,16 +2075,16 @@ var Users = class {
|
|
|
2075
2075
|
* The `token_type` in the response tells you which step to run next.
|
|
2076
2076
|
*/
|
|
2077
2077
|
async fromEmail(params) {
|
|
2078
|
-
return this.request("POST", "/user/
|
|
2078
|
+
return this.request("POST", "/user/from-email", { body: params });
|
|
2079
2079
|
}
|
|
2080
2080
|
async verifyEmail(params) {
|
|
2081
|
-
return this.request("POST", "/user/
|
|
2081
|
+
return this.request("POST", "/user/verify-email", { body: params });
|
|
2082
2082
|
}
|
|
2083
2083
|
async sendVerificationEmail(params) {
|
|
2084
|
-
return this.request("POST", "/user/
|
|
2084
|
+
return this.request("POST", "/user/verify-email-request", { body: params });
|
|
2085
2085
|
}
|
|
2086
2086
|
async createMerchant(params) {
|
|
2087
|
-
return this.request("POST", "/user/
|
|
2087
|
+
return this.request("POST", "/user/create-merchant", { body: params });
|
|
2088
2088
|
}
|
|
2089
2089
|
async switchMerchant(params) {
|
|
2090
2090
|
return this.request("POST", "/user/switch/merchant", { body: params });
|
|
@@ -2099,10 +2099,10 @@ var Users = class {
|
|
|
2099
2099
|
return this.request("GET", "/user/list/profile");
|
|
2100
2100
|
}
|
|
2101
2101
|
async inviteUsers(params) {
|
|
2102
|
-
return this.request("POST", "/user/
|
|
2102
|
+
return this.request("POST", "/user/employees/invite", { body: params });
|
|
2103
2103
|
}
|
|
2104
2104
|
async acceptInvitation(params) {
|
|
2105
|
-
return this.request("POST", "/user/
|
|
2105
|
+
return this.request("POST", "/user/invite/accept", { body: params });
|
|
2106
2106
|
}
|
|
2107
2107
|
/**
|
|
2108
2108
|
* Accept an invitation via the email-link flow.
|
|
@@ -2115,7 +2115,7 @@ var Users = class {
|
|
|
2115
2115
|
* invitee and the entity lineage.
|
|
2116
2116
|
*/
|
|
2117
2117
|
async acceptInviteFromEmail(params) {
|
|
2118
|
-
return this.request("POST", "/user/
|
|
2118
|
+
return this.request("POST", "/user/accept-invite-from-email", { body: params });
|
|
2119
2119
|
}
|
|
2120
2120
|
/**
|
|
2121
2121
|
* Start TOTP setup (or no-op if already set).
|
|
@@ -2142,10 +2142,10 @@ var Users = class {
|
|
|
2142
2142
|
return this.request("GET", "/user/2fa/totp/reset");
|
|
2143
2143
|
}
|
|
2144
2144
|
async generateRecoveryCodes() {
|
|
2145
|
-
return this.request("GET", "/user/2fa/
|
|
2145
|
+
return this.request("GET", "/user/2fa/recovery-code/generate");
|
|
2146
2146
|
}
|
|
2147
2147
|
async verifyRecoveryCode(params) {
|
|
2148
|
-
return this.request("POST", "/user/2fa/
|
|
2148
|
+
return this.request("POST", "/user/2fa/recovery-code/verify", { body: params });
|
|
2149
2149
|
}
|
|
2150
2150
|
async sendPhoneOtp(params) {
|
|
2151
2151
|
return this.request("POST", "/user/phone/send-otp", { body: params });
|
|
@@ -2157,13 +2157,13 @@ var Users = class {
|
|
|
2157
2157
|
return this.request("GET", "/user/role/list");
|
|
2158
2158
|
}
|
|
2159
2159
|
async listUserRoles(params) {
|
|
2160
|
-
return this.request("POST", "/user/
|
|
2160
|
+
return this.request("POST", "/user/employees", { body: params });
|
|
2161
2161
|
}
|
|
2162
2162
|
async updateUserRole(params) {
|
|
2163
|
-
return this.request("POST", "/user/
|
|
2163
|
+
return this.request("POST", "/user/employees/update-role", { body: params });
|
|
2164
2164
|
}
|
|
2165
2165
|
async deleteUserRole(params) {
|
|
2166
|
-
return this.request("DELETE", "/user/
|
|
2166
|
+
return this.request("DELETE", "/user/employees/delete", { body: params });
|
|
2167
2167
|
}
|
|
2168
2168
|
/** Sign in via OIDC. `POST /user/oidc` */
|
|
2169
2169
|
async signInOidc(params) {
|
|
@@ -2225,13 +2225,13 @@ var Users = class {
|
|
|
2225
2225
|
async selectAuth(params) {
|
|
2226
2226
|
return this.request("POST", "/user/auth/select", { body: params });
|
|
2227
2227
|
}
|
|
2228
|
-
/** List users in lineage. `GET /user/
|
|
2228
|
+
/** List users in lineage. `GET /user/employees/list` */
|
|
2229
2229
|
async listUsersInLineage() {
|
|
2230
|
-
return this.request("GET", "/user/
|
|
2230
|
+
return this.request("GET", "/user/employees/list");
|
|
2231
2231
|
}
|
|
2232
|
-
/** Resend invite. `POST /user/
|
|
2232
|
+
/** Resend invite. `POST /user/employees/resend-invite` */
|
|
2233
2233
|
async resendInvite(params) {
|
|
2234
|
-
return this.request("POST", "/user/
|
|
2234
|
+
return this.request("POST", "/user/employees/resend-invite", { body: params });
|
|
2235
2235
|
}
|
|
2236
2236
|
/**
|
|
2237
2237
|
* Get the caller's parent permission groups + scopes.
|
|
@@ -2260,9 +2260,9 @@ var Users = class {
|
|
|
2260
2260
|
async listUpdatableRoles() {
|
|
2261
2261
|
return this.request("GET", "/user/role/list/update");
|
|
2262
2262
|
}
|
|
2263
|
-
/** Get permission info. `GET /user/
|
|
2263
|
+
/** Get permission info. `GET /user/permission-info` */
|
|
2264
2264
|
async getPermissionInfo() {
|
|
2265
|
-
return this.request("GET", "/user/
|
|
2265
|
+
return this.request("GET", "/user/permission-info");
|
|
2266
2266
|
}
|
|
2267
2267
|
/** Get module list. `GET /user/module/list` */
|
|
2268
2268
|
async getModuleList() {
|
|
@@ -2292,12 +2292,12 @@ var Verification = class {
|
|
|
2292
2292
|
this.request = request;
|
|
2293
2293
|
}
|
|
2294
2294
|
async registerApplePayDomains(merchantId, params) {
|
|
2295
|
-
return this.request("POST", `/verify/
|
|
2295
|
+
return this.request("POST", `/verify/apple-pay/${encodeURIComponent(merchantId)}`, {
|
|
2296
2296
|
body: params
|
|
2297
2297
|
});
|
|
2298
2298
|
}
|
|
2299
2299
|
async getApplePayVerifiedDomains(params) {
|
|
2300
|
-
return this.request("GET", "/verify/
|
|
2300
|
+
return this.request("GET", "/verify/applepay-verified-domains", {
|
|
2301
2301
|
query: params
|
|
2302
2302
|
});
|
|
2303
2303
|
}
|
|
@@ -2398,28 +2398,28 @@ var AnalyticsDomain = class {
|
|
|
2398
2398
|
}
|
|
2399
2399
|
/** Get metrics. `POST /analytics/metrics/{domain}` */
|
|
2400
2400
|
async metrics(params, scope) {
|
|
2401
|
-
const prefix = scope ? `/analytics/${scope}` : "/analytics
|
|
2401
|
+
const prefix = scope ? `/analytics/${scope}` : "/analytics";
|
|
2402
2402
|
return this.request("POST", `${prefix}/metrics/${encodeURIComponent(this.domain)}`, {
|
|
2403
2403
|
body: [params]
|
|
2404
2404
|
});
|
|
2405
2405
|
}
|
|
2406
2406
|
/** Get filters. `POST /analytics/filters/{domain}` */
|
|
2407
2407
|
async filters(params, scope) {
|
|
2408
|
-
const prefix = scope ? `/analytics/${scope}` : "/analytics
|
|
2408
|
+
const prefix = scope ? `/analytics/${scope}` : "/analytics";
|
|
2409
2409
|
return this.request("POST", `${prefix}/filters/${encodeURIComponent(this.domain)}`, {
|
|
2410
2410
|
body: params
|
|
2411
2411
|
});
|
|
2412
2412
|
}
|
|
2413
2413
|
/** Generate report. `POST /analytics/report/{domain}` */
|
|
2414
2414
|
async report(params, scope) {
|
|
2415
|
-
const prefix = scope ? `/analytics/${scope}` : "/analytics
|
|
2415
|
+
const prefix = scope ? `/analytics/${scope}` : "/analytics";
|
|
2416
2416
|
return this.request("POST", `${prefix}/report/${encodeURIComponent(this.domain)}`, {
|
|
2417
2417
|
body: params
|
|
2418
2418
|
});
|
|
2419
2419
|
}
|
|
2420
2420
|
/** Sankey chart data. `POST /analytics/metrics/{domain}/sankey` */
|
|
2421
2421
|
async sankey(params, scope) {
|
|
2422
|
-
const prefix = scope ? `/analytics/${scope}` : "/analytics
|
|
2422
|
+
const prefix = scope ? `/analytics/${scope}` : "/analytics";
|
|
2423
2423
|
return this.request("POST", `${prefix}/metrics/${encodeURIComponent(this.domain)}/sankey`, {
|
|
2424
2424
|
body: params
|
|
2425
2425
|
});
|
|
@@ -2451,25 +2451,25 @@ var Analytics = class {
|
|
|
2451
2451
|
async getInfo(domain) {
|
|
2452
2452
|
return this.request("GET", `/analytics/${encodeURIComponent(domain)}/info`);
|
|
2453
2453
|
}
|
|
2454
|
-
/** Get API event logs. `GET /analytics/
|
|
2454
|
+
/** Get API event logs. `GET /analytics/api-event-logs` */
|
|
2455
2455
|
async apiEventLogs(params) {
|
|
2456
|
-
return this.request("GET", "/analytics/
|
|
2456
|
+
return this.request("GET", "/analytics/api-event-logs", { query: params });
|
|
2457
2457
|
}
|
|
2458
|
-
/** Get SDK event logs. `POST /analytics/
|
|
2458
|
+
/** Get SDK event logs. `POST /analytics/sdk-event-logs` */
|
|
2459
2459
|
async sdkEventLogs(params) {
|
|
2460
|
-
return this.request("POST", "/analytics/
|
|
2460
|
+
return this.request("POST", "/analytics/sdk-event-logs", { body: params });
|
|
2461
2461
|
}
|
|
2462
|
-
/** Get connector event logs. `GET /analytics/
|
|
2462
|
+
/** Get connector event logs. `GET /analytics/connector-event-logs` */
|
|
2463
2463
|
async connectorEventLogs(params) {
|
|
2464
|
-
return this.request("GET", "/analytics/
|
|
2464
|
+
return this.request("GET", "/analytics/connector-event-logs", { query: params });
|
|
2465
2465
|
}
|
|
2466
|
-
/** Get routing event logs. `GET /analytics/
|
|
2466
|
+
/** Get routing event logs. `GET /analytics/routing-event-logs` */
|
|
2467
2467
|
async routingEventLogs(params) {
|
|
2468
|
-
return this.request("GET", "/analytics/
|
|
2468
|
+
return this.request("GET", "/analytics/routing-event-logs", { query: params });
|
|
2469
2469
|
}
|
|
2470
|
-
/** Get outgoing webhook event logs. `GET /analytics/
|
|
2470
|
+
/** Get outgoing webhook event logs. `GET /analytics/outgoing-webhook-event-logs` */
|
|
2471
2471
|
async outgoingWebhookEventLogs(params) {
|
|
2472
|
-
return this.request("GET", "/analytics/
|
|
2472
|
+
return this.request("GET", "/analytics/outgoing-webhook-event-logs", { query: params });
|
|
2473
2473
|
}
|
|
2474
2474
|
};
|
|
2475
2475
|
|
|
@@ -2523,18 +2523,18 @@ var FeatureMatrix = class {
|
|
|
2523
2523
|
constructor(request) {
|
|
2524
2524
|
this.request = request;
|
|
2525
2525
|
}
|
|
2526
|
-
/** Retrieve the feature matrix. `GET /
|
|
2526
|
+
/** Retrieve the feature matrix. `GET /feature-matrix` */
|
|
2527
2527
|
async retrieve() {
|
|
2528
|
-
return this.request("GET", "/
|
|
2528
|
+
return this.request("GET", "/feature-matrix");
|
|
2529
2529
|
}
|
|
2530
2530
|
/**
|
|
2531
2531
|
* Retrieve the feature matrix scoped to a merchant. Beta connectors
|
|
2532
2532
|
* are filtered against the merchant's allowlist so the dashboard only
|
|
2533
2533
|
* surfaces connectors the merchant can actually attach.
|
|
2534
|
-
* `GET /
|
|
2534
|
+
* `GET /feature-matrix/{merchantId}`
|
|
2535
2535
|
*/
|
|
2536
2536
|
async retrieveForMerchant(merchantId) {
|
|
2537
|
-
return this.request("GET", `/
|
|
2537
|
+
return this.request("GET", `/feature-matrix/${encodeURIComponent(merchantId)}`);
|
|
2538
2538
|
}
|
|
2539
2539
|
};
|
|
2540
2540
|
|
|
@@ -2566,9 +2566,9 @@ var Forex = class {
|
|
|
2566
2566
|
async getRates(params) {
|
|
2567
2567
|
return this.request("GET", "/forex/rates", { query: params });
|
|
2568
2568
|
}
|
|
2569
|
-
/** Convert from minor currency. `GET /forex/
|
|
2569
|
+
/** Convert from minor currency. `GET /forex/convert-from-minor` */
|
|
2570
2570
|
async convertFromMinor(params) {
|
|
2571
|
-
return this.request("GET", "/forex/
|
|
2571
|
+
return this.request("GET", "/forex/convert-from-minor", { query: params });
|
|
2572
2572
|
}
|
|
2573
2573
|
};
|
|
2574
2574
|
|