@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/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", `/api_keys/${encodeURIComponent(merchantId)}`, { body: params });
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
- `/api_keys/${encodeURIComponent(merchantId)}/${encodeURIComponent(keyId)}`
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
- `/api_keys/${encodeURIComponent(merchantId)}/${encodeURIComponent(keyId)}`,
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
- `/api_keys/${encodeURIComponent(merchantId)}/${encodeURIComponent(keyId)}`
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", `/api_keys/${encodeURIComponent(merchantId)}/list`);
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}/enabled_authn_methods_token` */
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)}/enabled_authn_methods_token`,
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/payment_methods` */
448
+ /** List available payment methods. `GET /account/payment-methods` */
449
449
  async listPaymentMethods() {
450
- return this.request("GET", "/account/payment_methods");
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/list_with_count` */
521
+ /** List customers with count. `GET /customers/list-with-count` */
522
522
  async listWithCount(params) {
523
- return this.request("GET", "/customers/list_with_count", {
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", "/ephemeral_keys", { body: params });
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", `/ephemeral_keys/${encodeURIComponent(keyId)}`);
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", "/merchant_fees", {
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", "/merchant_fees/list", {
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", `/merchant_fees/${encodeURIComponent(feeId)}`, { body: params });
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", `/merchant_fees/${encodeURIComponent(feeId)}`);
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", `/payment_link/${encodeURIComponent(linkId)}`);
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", "/payment_link/list", { body: params });
836
+ return this.request("POST", "/payment-link/list", { body: params });
837
837
  }
838
- /** Initiate (render) a payment link page. `GET /payment_link/{merchantId}/{paymentId}` */
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
- `/payment_link/${encodeURIComponent(merchantId)}/${encodeURIComponent(paymentId)}`
842
+ `/payment-link/${encodeURIComponent(merchantId)}/${encodeURIComponent(paymentId)}`
843
843
  );
844
844
  }
845
- /** Get payment link status. `GET /payment_linkstatus/{merchantId}/{paymentId}` */
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
- `/payment_linkstatus/${encodeURIComponent(merchantId)}/${encodeURIComponent(paymentId)}`
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", "/payment_methods", { body: params });
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", `/payment_methods/${encodeURIComponent(methodId)}`);
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", `/payment_methods/${encodeURIComponent(methodId)}/update`, {
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", `/payment_methods/${encodeURIComponent(methodId)}`);
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", "/payment_methods", {
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)}/payment_methods`, {
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)}/payment_methods/${encodeURIComponent(methodId)}/default`
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 /payment_methods/migrate` */
953
+ /** Migrate a payment method. `POST /payment-methods/migrate` */
954
954
  async migrate(params) {
955
- return this.request("POST", "/payment_methods/migrate", { body: params });
955
+ return this.request("POST", "/payment-methods/migrate", { body: params });
956
956
  }
957
- /** Batch migrate payment methods. `POST /payment_methods/migrate-batch` */
957
+ /** Batch migrate payment methods. `POST /payment-methods/migrate-batch` */
958
958
  async migrateBatch(params) {
959
- return this.request("POST", "/payment_methods/migrate-batch", { body: params });
959
+ return this.request("POST", "/payment-methods/migrate-batch", { body: params });
960
960
  }
961
- /** Batch update payment methods. `POST /payment_methods/update-batch` */
961
+ /** Batch update payment methods. `POST /payment-methods/update-batch` */
962
962
  async updateBatch(params) {
963
- return this.request("POST", "/payment_methods/update-batch", { body: params });
963
+ return this.request("POST", "/payment-methods/update-batch", { body: params });
964
964
  }
965
- /** Batch retrieve payment methods. `GET /payment_methods/batch` */
965
+ /** Batch retrieve payment methods. `GET /payment-methods/batch` */
966
966
  async batchRetrieve(params) {
967
- return this.request("GET", "/payment_methods/batch", { query: params });
967
+ return this.request("GET", "/payment-methods/batch", { query: params });
968
968
  }
969
- /** Tokenize a card. `POST /payment_methods/tokenize-card` */
969
+ /** Tokenize a card. `POST /payment-methods/tokenize-card` */
970
970
  async tokenizeCard(params) {
971
- return this.request("POST", "/payment_methods/tokenize-card", { body: params });
971
+ return this.request("POST", "/payment-methods/tokenize-card", { body: params });
972
972
  }
973
- /** Batch tokenize cards. `POST /payment_methods/tokenize-card-batch` */
973
+ /** Batch tokenize cards. `POST /payment-methods/tokenize-card-batch` */
974
974
  async tokenizeCardBatch(params) {
975
- return this.request("POST", "/payment_methods/tokenize-card-batch", { body: params });
975
+ return this.request("POST", "/payment-methods/tokenize-card-batch", { body: params });
976
976
  }
977
- /** Initiate payment method collect link flow. `POST /payment_methods/collect` */
977
+ /** Initiate payment method collect link flow. `POST /payment-methods/collect` */
978
978
  async collect(params) {
979
- return this.request("POST", "/payment_methods/collect", { body: params });
979
+ return this.request("POST", "/payment-methods/collect", { body: params });
980
980
  }
981
- /** Save a payment method. `POST /payment_methods/{methodId}/save` */
981
+ /** Save a payment method. `POST /payment-methods/{methodId}/save` */
982
982
  async save(methodId, params) {
983
- return this.request("POST", `/payment_methods/${encodeURIComponent(methodId)}/save`, {
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 /payment_methods/auth/link` */
987
+ /** Create payment method auth link token. `POST /payment-methods/auth/link` */
988
988
  async createAuthLink(params) {
989
- return this.request("POST", "/payment_methods/auth/link", { body: params });
989
+ return this.request("POST", "/payment-methods/auth/link", { body: params });
990
990
  }
991
- /** Exchange payment method auth token. `POST /payment_methods/auth/exchange` */
991
+ /** Exchange payment method auth token. `POST /payment-methods/auth/exchange` */
992
992
  async exchangeAuthToken(params) {
993
- return this.request("POST", "/payment_methods/auth/exchange", { body: params });
993
+ return this.request("POST", "/payment-methods/auth/exchange", { body: params });
994
994
  }
995
- /** Tokenize card using existing PM. `POST /payment_methods/{methodId}/tokenize-card` */
995
+ /** Tokenize card using existing PM. `POST /payment-methods/{methodId}/tokenize-card` */
996
996
  async tokenizeCardForMethod(methodId, params) {
997
- return this.request("POST", `/payment_methods/${encodeURIComponent(methodId)}/tokenize-card`, {
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/session_tokens` */
1122
+ /** Generate session tokens. `POST /payments/session-tokens` */
1123
1123
  async sessionTokens(params) {
1124
- return this.request("POST", "/payments/session_tokens", { body: params });
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}/cancel_post_capture` */
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)}/cancel_post_capture`, {
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}/incremental_authorization` */
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)}/incremental_authorization`,
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}/extend_authorization` */
1146
+ /** Extend authorization window. `POST /payments/{paymentId}/extend-authorization` */
1147
1147
  async extendAuthorization(paymentId, params) {
1148
- return this.request("POST", `/payments/${encodeURIComponent(paymentId)}/extend_authorization`, {
1148
+ return this.request("POST", `/payments/${encodeURIComponent(paymentId)}/extend-authorization`, {
1149
1149
  body: params
1150
1150
  });
1151
1151
  }
1152
- /** Complete authorization. `POST /payments/{paymentId}/complete_authorize` */
1152
+ /** Complete authorization. `POST /payments/{paymentId}/complete-authorize` */
1153
1153
  async completeAuthorize(paymentId, params) {
1154
- return this.request("POST", `/payments/${encodeURIComponent(paymentId)}/complete_authorize`, {
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}/calculate_tax` */
1158
+ /** Dynamic tax calculation. `POST /payments/{paymentId}/calculate-tax` */
1159
1159
  async calculateTax(paymentId, params) {
1160
- return this.request("POST", `/payments/${encodeURIComponent(paymentId)}/calculate_tax`, {
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}/update_metadata` */
1164
+ /** Update payment metadata. `POST /payments/{paymentId}/update-metadata` */
1165
1165
  async updateMetadata(paymentId, params) {
1166
- return this.request("POST", `/payments/${encodeURIComponent(paymentId)}/update_metadata`, {
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}/extended_card_info` */
1170
+ /** Retrieve extended card info. `GET /payments/{paymentId}/extended-card-info` */
1171
1171
  async extendedCardInfo(paymentId) {
1172
- return this.request("GET", `/payments/${encodeURIComponent(paymentId)}/extended_card_info`);
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", "/profile_acquirer", { body: params });
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
- `/profile_acquirer/${encodeURIComponent(profileId)}/${encodeURIComponent(profileAcquirerId)}`,
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)}/business_profile`, {
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)}/business_profile/${encodeURIComponent(profileId)}`
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)}/business_profile`);
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)}/business_profile/${encodeURIComponent(profileId)}`,
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)}/business_profile/${encodeURIComponent(profileId)}`
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}/business_profile/{profileId}/toggle_extended_card_info` */
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)}/business_profile/${encodeURIComponent(profileId)}/toggle_extended_card_info`
1415
+ `/account/${encodeURIComponent(accountId)}/business-profile/${encodeURIComponent(profileId)}/toggle-extended-card-info`
1416
1416
  );
1417
1417
  }
1418
- /** Toggle connector agnostic MIT. `POST /account/{accountId}/business_profile/{profileId}/toggle_connector_agnostic_mit` */
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)}/business_profile/${encodeURIComponent(profileId)}/toggle_connector_agnostic_mit`
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", "/connector_onboarding/stripe/accounts", { body: params });
1933
+ return this.request("POST", "/connector-onboarding/stripe/accounts", { body: params });
1934
1934
  }
1935
1935
  async createAccountLink(params) {
1936
- return this.request("POST", "/connector_onboarding/stripe/account_links", { body: params });
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 /connector_onboarding/action_url` */
1939
+ /** Get onboarding action URL. `POST /connector-onboarding/action-url` */
1940
1940
  async getActionUrl(params) {
1941
- return this.request("POST", "/connector_onboarding/action_url", { body: params });
1941
+ return this.request("POST", "/connector-onboarding/action-url", { body: params });
1942
1942
  }
1943
- /** Sync onboarding status. `POST /connector_onboarding/sync` */
1943
+ /** Sync onboarding status. `POST /connector-onboarding/sync` */
1944
1944
  async syncOnboarding(params) {
1945
- return this.request("POST", "/connector_onboarding/sync", { body: params });
1945
+ return this.request("POST", "/connector-onboarding/sync", { body: params });
1946
1946
  }
1947
- /** Reset tracking ID. `POST /connector_onboarding/reset_tracking_id` */
1947
+ /** Reset tracking ID. `POST /connector-onboarding/reset-tracking-id` */
1948
1948
  async resetTrackingId(params) {
1949
- return this.request("POST", "/connector_onboarding/reset_tracking_id", { body: params });
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", "/three_ds_decision/execute", { body: params });
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/change_password", { body: params });
2048
+ return this.request("POST", "/user/change-password", { body: params });
2049
2049
  }
2050
2050
  async rotatePassword(params) {
2051
- return this.request("POST", "/user/rotate_password", { body: params });
2051
+ return this.request("POST", "/user/rotate-password", { body: params });
2052
2052
  }
2053
2053
  async forgotPassword(params) {
2054
- return this.request("POST", "/user/forgot_password", { body: params });
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/reset_password", { body: params });
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/from_email", { body: params });
2078
+ return this.request("POST", "/user/from-email", { body: params });
2079
2079
  }
2080
2080
  async verifyEmail(params) {
2081
- return this.request("POST", "/user/verify_email", { body: params });
2081
+ return this.request("POST", "/user/verify-email", { body: params });
2082
2082
  }
2083
2083
  async sendVerificationEmail(params) {
2084
- return this.request("POST", "/user/verify_email_request", { body: params });
2084
+ return this.request("POST", "/user/verify-email-request", { body: params });
2085
2085
  }
2086
2086
  async createMerchant(params) {
2087
- return this.request("POST", "/user/create_merchant", { body: params });
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/user/invite_multiple", { body: params });
2102
+ return this.request("POST", "/user/employees/invite", { body: params });
2103
2103
  }
2104
2104
  async acceptInvitation(params) {
2105
- return this.request("POST", "/user/user/invite/accept", { body: params });
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/accept_invite_from_email", { body: params });
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/recovery_code/generate");
2145
+ return this.request("GET", "/user/2fa/recovery-code/generate");
2146
2146
  }
2147
2147
  async verifyRecoveryCode(params) {
2148
- return this.request("POST", "/user/2fa/recovery_code/verify", { body: params });
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/user", { body: params });
2160
+ return this.request("POST", "/user/employees", { body: params });
2161
2161
  }
2162
2162
  async updateUserRole(params) {
2163
- return this.request("POST", "/user/user/update_role", { body: params });
2163
+ return this.request("POST", "/user/employees/update-role", { body: params });
2164
2164
  }
2165
2165
  async deleteUserRole(params) {
2166
- return this.request("DELETE", "/user/user/delete", { body: params });
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/user/list` */
2228
+ /** List users in lineage. `GET /user/employees/list` */
2229
2229
  async listUsersInLineage() {
2230
- return this.request("GET", "/user/user/list");
2230
+ return this.request("GET", "/user/employees/list");
2231
2231
  }
2232
- /** Resend invite. `POST /user/user/resend_invite` */
2232
+ /** Resend invite. `POST /user/employees/resend-invite` */
2233
2233
  async resendInvite(params) {
2234
- return this.request("POST", "/user/user/resend_invite", { body: params });
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/permission_info` */
2263
+ /** Get permission info. `GET /user/permission-info` */
2264
2264
  async getPermissionInfo() {
2265
- return this.request("GET", "/user/permission_info");
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/apple_pay/${encodeURIComponent(merchantId)}`, {
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/applepay_verified_domains", {
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/v1";
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/v1";
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/v1";
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/v1";
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/api_event_logs` */
2454
+ /** Get API event logs. `GET /analytics/api-event-logs` */
2455
2455
  async apiEventLogs(params) {
2456
- return this.request("GET", "/analytics/api_event_logs", { query: params });
2456
+ return this.request("GET", "/analytics/api-event-logs", { query: params });
2457
2457
  }
2458
- /** Get SDK event logs. `POST /analytics/sdk_event_logs` */
2458
+ /** Get SDK event logs. `POST /analytics/sdk-event-logs` */
2459
2459
  async sdkEventLogs(params) {
2460
- return this.request("POST", "/analytics/sdk_event_logs", { body: params });
2460
+ return this.request("POST", "/analytics/sdk-event-logs", { body: params });
2461
2461
  }
2462
- /** Get connector event logs. `GET /analytics/connector_event_logs` */
2462
+ /** Get connector event logs. `GET /analytics/connector-event-logs` */
2463
2463
  async connectorEventLogs(params) {
2464
- return this.request("GET", "/analytics/connector_event_logs", { query: params });
2464
+ return this.request("GET", "/analytics/connector-event-logs", { query: params });
2465
2465
  }
2466
- /** Get routing event logs. `GET /analytics/routing_event_logs` */
2466
+ /** Get routing event logs. `GET /analytics/routing-event-logs` */
2467
2467
  async routingEventLogs(params) {
2468
- return this.request("GET", "/analytics/routing_event_logs", { query: params });
2468
+ return this.request("GET", "/analytics/routing-event-logs", { query: params });
2469
2469
  }
2470
- /** Get outgoing webhook event logs. `GET /analytics/outgoing_webhook_event_logs` */
2470
+ /** Get outgoing webhook event logs. `GET /analytics/outgoing-webhook-event-logs` */
2471
2471
  async outgoingWebhookEventLogs(params) {
2472
- return this.request("GET", "/analytics/outgoing_webhook_event_logs", { query: params });
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 /feature_matrix` */
2526
+ /** Retrieve the feature matrix. `GET /feature-matrix` */
2527
2527
  async retrieve() {
2528
- return this.request("GET", "/feature_matrix");
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 /feature_matrix/{merchantId}`
2534
+ * `GET /feature-matrix/{merchantId}`
2535
2535
  */
2536
2536
  async retrieveForMerchant(merchantId) {
2537
- return this.request("GET", `/feature_matrix/${encodeURIComponent(merchantId)}`);
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/convert_from_minor` */
2569
+ /** Convert from minor currency. `GET /forex/convert-from-minor` */
2570
2570
  async convertFromMinor(params) {
2571
- return this.request("GET", "/forex/convert_from_minor", { query: params });
2571
+ return this.request("GET", "/forex/convert-from-minor", { query: params });
2572
2572
  }
2573
2573
  };
2574
2574