@delopay/sdk 0.26.0 → 0.28.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
  }
@@ -430,8 +430,8 @@ var Connectors = class {
430
430
  * `POST /account/{merchantId}/connectors/webhooks/{connectorId}`
431
431
  *
432
432
  * @param params - Optional event scope. Defaults to `{ event_type: 'all_events' }`
433
- * on the backend when omitted; pass `{ event_type: { specific_event: '…' } }`
434
- * to scope to a single event.
433
+ * when omitted; pass `{ event_type: { specific_event: '…' } }` to scope
434
+ * to a single event.
435
435
  */
436
436
  async registerWebhook(merchantId, connectorId, params) {
437
437
  const path = `/account/${encodeURIComponent(merchantId)}/connectors/webhooks/${encodeURIComponent(connectorId)}`;
@@ -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
  }
@@ -1027,13 +1027,12 @@ var Payments = class {
1027
1027
  * Retrieve a payment by its ID.
1028
1028
  *
1029
1029
  * @param paymentId - The unique payment intent ID.
1030
- * @param options - Optional query flags. `force_sync` asks the backend to
1031
- * reconcile state with the connector before returning (used to recover a
1032
- * stuck intent when a webhook was lost). `all_keys_required` lifts the
1033
- * backend's `should_call_connector` gate so a `requires_payment_method`
1034
- * intent can still trigger a sync — without it the backend short-circuits
1035
- * and returns the local snapshot. Both flags are JWT-authenticated dashboard
1036
- * helpers; API-key callers can use them too where the backend allows.
1030
+ * @param options - Optional query flags. `force_sync` reconciles the
1031
+ * intent's state with the connector before returning (useful to recover
1032
+ * a stuck intent when a webhook was lost). `all_keys_required` forces a
1033
+ * connector sync even for intents in early states like
1034
+ * `requires_payment_method` that would otherwise return the local
1035
+ * snapshot. Both flags work with JWT and API-key authentication.
1037
1036
  * @returns The payment intent.
1038
1037
  *
1039
1038
  * @example
@@ -1119,57 +1118,57 @@ var Payments = class {
1119
1118
  });
1120
1119
  }
1121
1120
  // --- Advanced operations (Task 3.2) ---
1122
- /** Generate session tokens. `POST /payments/session_tokens` */
1121
+ /** Generate session tokens. `POST /payments/session-tokens` */
1123
1122
  async sessionTokens(params) {
1124
- return this.request("POST", "/payments/session_tokens", { body: params });
1123
+ return this.request("POST", "/payments/session-tokens", { body: params });
1125
1124
  }
1126
1125
  /** Retrieve payment with gateway credentials. `POST /payments/sync` */
1127
1126
  async sync(params) {
1128
1127
  return this.request("POST", "/payments/sync", { body: params });
1129
1128
  }
1130
- /** Cancel after partial capture. `POST /payments/{paymentId}/cancel_post_capture` */
1129
+ /** Cancel after partial capture. `POST /payments/{paymentId}/cancel-post-capture` */
1131
1130
  async cancelPostCapture(paymentId, params) {
1132
- return this.request("POST", `/payments/${encodeURIComponent(paymentId)}/cancel_post_capture`, {
1131
+ return this.request("POST", `/payments/${encodeURIComponent(paymentId)}/cancel-post-capture`, {
1133
1132
  body: params
1134
1133
  });
1135
1134
  }
1136
- /** Incrementally authorize more funds. `POST /payments/{paymentId}/incremental_authorization` */
1135
+ /** Incrementally authorize more funds. `POST /payments/{paymentId}/incremental-authorization` */
1137
1136
  async incrementalAuthorization(paymentId, params) {
1138
1137
  return this.request(
1139
1138
  "POST",
1140
- `/payments/${encodeURIComponent(paymentId)}/incremental_authorization`,
1139
+ `/payments/${encodeURIComponent(paymentId)}/incremental-authorization`,
1141
1140
  {
1142
1141
  body: params
1143
1142
  }
1144
1143
  );
1145
1144
  }
1146
- /** Extend authorization window. `POST /payments/{paymentId}/extend_authorization` */
1145
+ /** Extend authorization window. `POST /payments/{paymentId}/extend-authorization` */
1147
1146
  async extendAuthorization(paymentId, params) {
1148
- return this.request("POST", `/payments/${encodeURIComponent(paymentId)}/extend_authorization`, {
1147
+ return this.request("POST", `/payments/${encodeURIComponent(paymentId)}/extend-authorization`, {
1149
1148
  body: params
1150
1149
  });
1151
1150
  }
1152
- /** Complete authorization. `POST /payments/{paymentId}/complete_authorize` */
1151
+ /** Complete authorization. `POST /payments/{paymentId}/complete-authorize` */
1153
1152
  async completeAuthorize(paymentId, params) {
1154
- return this.request("POST", `/payments/${encodeURIComponent(paymentId)}/complete_authorize`, {
1153
+ return this.request("POST", `/payments/${encodeURIComponent(paymentId)}/complete-authorize`, {
1155
1154
  body: params
1156
1155
  });
1157
1156
  }
1158
- /** Dynamic tax calculation. `POST /payments/{paymentId}/calculate_tax` */
1157
+ /** Dynamic tax calculation. `POST /payments/{paymentId}/calculate-tax` */
1159
1158
  async calculateTax(paymentId, params) {
1160
- return this.request("POST", `/payments/${encodeURIComponent(paymentId)}/calculate_tax`, {
1159
+ return this.request("POST", `/payments/${encodeURIComponent(paymentId)}/calculate-tax`, {
1161
1160
  body: params
1162
1161
  });
1163
1162
  }
1164
- /** Update payment metadata. `POST /payments/{paymentId}/update_metadata` */
1163
+ /** Update payment metadata. `POST /payments/{paymentId}/update-metadata` */
1165
1164
  async updateMetadata(paymentId, params) {
1166
- return this.request("POST", `/payments/${encodeURIComponent(paymentId)}/update_metadata`, {
1165
+ return this.request("POST", `/payments/${encodeURIComponent(paymentId)}/update-metadata`, {
1167
1166
  body: params
1168
1167
  });
1169
1168
  }
1170
- /** Retrieve extended card info. `GET /payments/{paymentId}/extended_card_info` */
1169
+ /** Retrieve extended card info. `GET /payments/{paymentId}/extended-card-info` */
1171
1170
  async extendedCardInfo(paymentId) {
1172
- return this.request("GET", `/payments/${encodeURIComponent(paymentId)}/extended_card_info`);
1171
+ return this.request("GET", `/payments/${encodeURIComponent(paymentId)}/extended-card-info`);
1173
1172
  }
1174
1173
  // --- OLAP extensions (Task 4.2) ---
1175
1174
  /** List payments (profile-scoped). `GET /payments/profile/list` */
@@ -1360,12 +1359,12 @@ var ProfileAcquirers = class {
1360
1359
  this.request = request;
1361
1360
  }
1362
1361
  async create(params) {
1363
- return this.request("POST", "/profile_acquirer", { body: params });
1362
+ return this.request("POST", "/profile-acquirer", { body: params });
1364
1363
  }
1365
1364
  async update(profileId, profileAcquirerId, params) {
1366
1365
  return this.request(
1367
1366
  "POST",
1368
- `/profile_acquirer/${encodeURIComponent(profileId)}/${encodeURIComponent(profileAcquirerId)}`,
1367
+ `/profile-acquirer/${encodeURIComponent(profileId)}/${encodeURIComponent(profileAcquirerId)}`,
1369
1368
  {
1370
1369
  body: params
1371
1370
  }
@@ -1379,23 +1378,23 @@ var Profiles = class {
1379
1378
  this.request = request;
1380
1379
  }
1381
1380
  async create(accountId, params) {
1382
- return this.request("POST", `/account/${encodeURIComponent(accountId)}/business_profile`, {
1381
+ return this.request("POST", `/account/${encodeURIComponent(accountId)}/business-profile`, {
1383
1382
  body: params
1384
1383
  });
1385
1384
  }
1386
1385
  async retrieve(accountId, profileId) {
1387
1386
  return this.request(
1388
1387
  "GET",
1389
- `/account/${encodeURIComponent(accountId)}/business_profile/${encodeURIComponent(profileId)}`
1388
+ `/account/${encodeURIComponent(accountId)}/business-profile/${encodeURIComponent(profileId)}`
1390
1389
  );
1391
1390
  }
1392
1391
  async list(accountId) {
1393
- return this.request("GET", `/account/${encodeURIComponent(accountId)}/business_profile`);
1392
+ return this.request("GET", `/account/${encodeURIComponent(accountId)}/business-profile`);
1394
1393
  }
1395
1394
  async update(accountId, profileId, params) {
1396
1395
  return this.request(
1397
1396
  "POST",
1398
- `/account/${encodeURIComponent(accountId)}/business_profile/${encodeURIComponent(profileId)}`,
1397
+ `/account/${encodeURIComponent(accountId)}/business-profile/${encodeURIComponent(profileId)}`,
1399
1398
  {
1400
1399
  body: params
1401
1400
  }
@@ -1404,22 +1403,22 @@ var Profiles = class {
1404
1403
  async delete(accountId, profileId) {
1405
1404
  return this.request(
1406
1405
  "DELETE",
1407
- `/account/${encodeURIComponent(accountId)}/business_profile/${encodeURIComponent(profileId)}`
1406
+ `/account/${encodeURIComponent(accountId)}/business-profile/${encodeURIComponent(profileId)}`
1408
1407
  );
1409
1408
  }
1410
1409
  // --- Advanced operations (Task 4.8) ---
1411
- /** Toggle extended card info for a profile. `POST /account/{accountId}/business_profile/{profileId}/toggle_extended_card_info` */
1410
+ /** Toggle extended card info for a profile. `POST /account/{accountId}/business-profile/{profileId}/toggle-extended-card-info` */
1412
1411
  async toggleExtendedCardInfo(accountId, profileId) {
1413
1412
  return this.request(
1414
1413
  "POST",
1415
- `/account/${encodeURIComponent(accountId)}/business_profile/${encodeURIComponent(profileId)}/toggle_extended_card_info`
1414
+ `/account/${encodeURIComponent(accountId)}/business-profile/${encodeURIComponent(profileId)}/toggle-extended-card-info`
1416
1415
  );
1417
1416
  }
1418
- /** Toggle connector agnostic MIT. `POST /account/{accountId}/business_profile/{profileId}/toggle_connector_agnostic_mit` */
1417
+ /** Toggle connector agnostic MIT. `POST /account/{accountId}/business-profile/{profileId}/toggle-connector-agnostic-mit` */
1419
1418
  async toggleConnectorAgnosticMit(accountId, profileId) {
1420
1419
  return this.request(
1421
1420
  "POST",
1422
- `/account/${encodeURIComponent(accountId)}/business_profile/${encodeURIComponent(profileId)}/toggle_connector_agnostic_mit`
1421
+ `/account/${encodeURIComponent(accountId)}/business-profile/${encodeURIComponent(profileId)}/toggle-connector-agnostic-mit`
1423
1422
  );
1424
1423
  }
1425
1424
  };
@@ -1930,23 +1929,23 @@ var StripeConnect = class {
1930
1929
  this.request = request;
1931
1930
  }
1932
1931
  async createAccount(params) {
1933
- return this.request("POST", "/connector_onboarding/stripe/accounts", { body: params });
1932
+ return this.request("POST", "/connector-onboarding/stripe/accounts", { body: params });
1934
1933
  }
1935
1934
  async createAccountLink(params) {
1936
- return this.request("POST", "/connector_onboarding/stripe/account_links", { body: params });
1935
+ return this.request("POST", "/connector-onboarding/stripe/account-links", { body: params });
1937
1936
  }
1938
1937
  // --- Generic connector onboarding (Task 4.11) ---
1939
- /** Get onboarding action URL. `POST /connector_onboarding/action_url` */
1938
+ /** Get onboarding action URL. `POST /connector-onboarding/action-url` */
1940
1939
  async getActionUrl(params) {
1941
- return this.request("POST", "/connector_onboarding/action_url", { body: params });
1940
+ return this.request("POST", "/connector-onboarding/action-url", { body: params });
1942
1941
  }
1943
- /** Sync onboarding status. `POST /connector_onboarding/sync` */
1942
+ /** Sync onboarding status. `POST /connector-onboarding/sync` */
1944
1943
  async syncOnboarding(params) {
1945
- return this.request("POST", "/connector_onboarding/sync", { body: params });
1944
+ return this.request("POST", "/connector-onboarding/sync", { body: params });
1946
1945
  }
1947
- /** Reset tracking ID. `POST /connector_onboarding/reset_tracking_id` */
1946
+ /** Reset tracking ID. `POST /connector-onboarding/reset-tracking-id` */
1948
1947
  async resetTrackingId(params) {
1949
- return this.request("POST", "/connector_onboarding/reset_tracking_id", { body: params });
1948
+ return this.request("POST", "/connector-onboarding/reset-tracking-id", { body: params });
1950
1949
  }
1951
1950
  };
1952
1951
 
@@ -1956,7 +1955,7 @@ var ThreeDsRules = class {
1956
1955
  this.request = request;
1957
1956
  }
1958
1957
  async execute(params) {
1959
- return this.request("POST", "/three_ds_decision/execute", { body: params });
1958
+ return this.request("POST", "/three-ds-decision/execute", { body: params });
1960
1959
  }
1961
1960
  };
1962
1961
 
@@ -1975,16 +1974,15 @@ var Users = class {
1975
1974
  return this.request("POST", "/user/signout");
1976
1975
  }
1977
1976
  /**
1978
- * Paginated login history for the authenticated user IP, User-Agent,
1979
- * country / city / lat-lon (when GeoIP is enabled in backend), success
1980
- * and failure events with their reasons. Strictly scoped to the JWT
1981
- * subject; a user can only see their own activity.
1977
+ * Paginated login history for the authenticated user -- IP, User-Agent,
1978
+ * country / city / lat-lon (when GeoIP is enabled), success and failure
1979
+ * events with their reasons. Strictly scoped to the JWT subject; a user
1980
+ * can only see their own activity.
1982
1981
  *
1983
1982
  * `GET /user/me/login-activity`. Requires a logged-in JWT.
1984
1983
  *
1985
- * The backend returns an empty page when a Delopay admin is impersonating
1986
- * a non-admin merchant, so the admin's metadata never renders inside the
1987
- * merchant dashboard.
1984
+ * Returns an empty page when a Delopay admin is impersonating a merchant,
1985
+ * so the admin's metadata is not exposed inside the merchant dashboard.
1988
1986
  */
1989
1987
  async listLoginActivity(params) {
1990
1988
  if (params === void 0) {
@@ -2031,27 +2029,26 @@ var Users = class {
2031
2029
  }
2032
2030
  /**
2033
2031
  * Permanently delete the caller's account. Requires a fresh password
2034
- * (and a current 6-digit TOTP code if the user has TOTP enrolled). The
2035
- * backend hard-deletes every `user_roles` row for the caller and soft-
2036
- * deletes the user record itself (`is_active = false`, password / TOTP
2037
- * wiped). On success all in-flight sessions are blacklisted, so the
2038
- * caller should clear local credentials and route to the login page.
2032
+ * (and a current 6-digit TOTP code if the user has TOTP enrolled). On
2033
+ * success all role assignments are removed, the user record is
2034
+ * deactivated, and all in-flight sessions are invalidated. The caller
2035
+ * should clear local credentials and route to the login page.
2039
2036
  *
2040
- * Refuses (`InvalidDeleteOperation`) when the caller is the sole
2041
- * owner-level admin of an org / merchant / profile they must transfer
2042
- * ownership first.
2037
+ * Returns `InvalidDeleteOperation` when the caller is the sole
2038
+ * owner-level admin of an org / merchant / profile -- they must
2039
+ * transfer ownership first.
2043
2040
  */
2044
2041
  async deleteAccount(params) {
2045
2042
  return this.request("DELETE", "/user/account", { body: params });
2046
2043
  }
2047
2044
  async changePassword(params) {
2048
- return this.request("POST", "/user/change_password", { body: params });
2045
+ return this.request("POST", "/user/change-password", { body: params });
2049
2046
  }
2050
2047
  async rotatePassword(params) {
2051
- return this.request("POST", "/user/rotate_password", { body: params });
2048
+ return this.request("POST", "/user/rotate-password", { body: params });
2052
2049
  }
2053
2050
  async forgotPassword(params) {
2054
- return this.request("POST", "/user/forgot_password", { body: params });
2051
+ return this.request("POST", "/user/forgot-password", { body: params });
2055
2052
  }
2056
2053
  /**
2057
2054
  * Commit a password reset.
@@ -2065,7 +2062,7 @@ var Users = class {
2065
2062
  * decodes it a second time to find the user.
2066
2063
  */
2067
2064
  async resetPassword(params) {
2068
- return this.request("POST", "/user/reset_password", { body: params });
2065
+ return this.request("POST", "/user/reset-password", { body: params });
2069
2066
  }
2070
2067
  /**
2071
2068
  * Exchange an email-link token (`EmailToken`) for a single-purpose JWT
@@ -2075,16 +2072,16 @@ var Users = class {
2075
2072
  * The `token_type` in the response tells you which step to run next.
2076
2073
  */
2077
2074
  async fromEmail(params) {
2078
- return this.request("POST", "/user/from_email", { body: params });
2075
+ return this.request("POST", "/user/from-email", { body: params });
2079
2076
  }
2080
2077
  async verifyEmail(params) {
2081
- return this.request("POST", "/user/verify_email", { body: params });
2078
+ return this.request("POST", "/user/verify-email", { body: params });
2082
2079
  }
2083
2080
  async sendVerificationEmail(params) {
2084
- return this.request("POST", "/user/verify_email_request", { body: params });
2081
+ return this.request("POST", "/user/verify-email-request", { body: params });
2085
2082
  }
2086
2083
  async createMerchant(params) {
2087
- return this.request("POST", "/user/create_merchant", { body: params });
2084
+ return this.request("POST", "/user/create-merchant", { body: params });
2088
2085
  }
2089
2086
  async switchMerchant(params) {
2090
2087
  return this.request("POST", "/user/switch/merchant", { body: params });
@@ -2099,10 +2096,10 @@ var Users = class {
2099
2096
  return this.request("GET", "/user/list/profile");
2100
2097
  }
2101
2098
  async inviteUsers(params) {
2102
- return this.request("POST", "/user/user/invite_multiple", { body: params });
2099
+ return this.request("POST", "/user/employees/invite", { body: params });
2103
2100
  }
2104
2101
  async acceptInvitation(params) {
2105
- return this.request("POST", "/user/user/invite/accept", { body: params });
2102
+ return this.request("POST", "/user/invite/accept", { body: params });
2106
2103
  }
2107
2104
  /**
2108
2105
  * Accept an invitation via the email-link flow.
@@ -2115,7 +2112,7 @@ var Users = class {
2115
2112
  * invitee and the entity lineage.
2116
2113
  */
2117
2114
  async acceptInviteFromEmail(params) {
2118
- return this.request("POST", "/user/accept_invite_from_email", { body: params });
2115
+ return this.request("POST", "/user/accept-invite-from-email", { body: params });
2119
2116
  }
2120
2117
  /**
2121
2118
  * Start TOTP setup (or no-op if already set).
@@ -2142,10 +2139,10 @@ var Users = class {
2142
2139
  return this.request("GET", "/user/2fa/totp/reset");
2143
2140
  }
2144
2141
  async generateRecoveryCodes() {
2145
- return this.request("GET", "/user/2fa/recovery_code/generate");
2142
+ return this.request("GET", "/user/2fa/recovery-code/generate");
2146
2143
  }
2147
2144
  async verifyRecoveryCode(params) {
2148
- return this.request("POST", "/user/2fa/recovery_code/verify", { body: params });
2145
+ return this.request("POST", "/user/2fa/recovery-code/verify", { body: params });
2149
2146
  }
2150
2147
  async sendPhoneOtp(params) {
2151
2148
  return this.request("POST", "/user/phone/send-otp", { body: params });
@@ -2157,13 +2154,13 @@ var Users = class {
2157
2154
  return this.request("GET", "/user/role/list");
2158
2155
  }
2159
2156
  async listUserRoles(params) {
2160
- return this.request("POST", "/user/user", { body: params });
2157
+ return this.request("POST", "/user/employees", { body: params });
2161
2158
  }
2162
2159
  async updateUserRole(params) {
2163
- return this.request("POST", "/user/user/update_role", { body: params });
2160
+ return this.request("POST", "/user/employees/update-role", { body: params });
2164
2161
  }
2165
2162
  async deleteUserRole(params) {
2166
- return this.request("DELETE", "/user/user/delete", { body: params });
2163
+ return this.request("DELETE", "/user/employees/delete", { body: params });
2167
2164
  }
2168
2165
  /** Sign in via OIDC. `POST /user/oidc` */
2169
2166
  async signInOidc(params) {
@@ -2225,13 +2222,13 @@ var Users = class {
2225
2222
  async selectAuth(params) {
2226
2223
  return this.request("POST", "/user/auth/select", { body: params });
2227
2224
  }
2228
- /** List users in lineage. `GET /user/user/list` */
2225
+ /** List users in lineage. `GET /user/employees/list` */
2229
2226
  async listUsersInLineage() {
2230
- return this.request("GET", "/user/user/list");
2227
+ return this.request("GET", "/user/employees/list");
2231
2228
  }
2232
- /** Resend invite. `POST /user/user/resend_invite` */
2229
+ /** Resend invite. `POST /user/employees/resend-invite` */
2233
2230
  async resendInvite(params) {
2234
- return this.request("POST", "/user/user/resend_invite", { body: params });
2231
+ return this.request("POST", "/user/employees/resend-invite", { body: params });
2235
2232
  }
2236
2233
  /**
2237
2234
  * Get the caller's parent permission groups + scopes.
@@ -2260,9 +2257,9 @@ var Users = class {
2260
2257
  async listUpdatableRoles() {
2261
2258
  return this.request("GET", "/user/role/list/update");
2262
2259
  }
2263
- /** Get permission info. `GET /user/permission_info` */
2260
+ /** Get permission info. `GET /user/permission-info` */
2264
2261
  async getPermissionInfo() {
2265
- return this.request("GET", "/user/permission_info");
2262
+ return this.request("GET", "/user/permission-info");
2266
2263
  }
2267
2264
  /** Get module list. `GET /user/module/list` */
2268
2265
  async getModuleList() {
@@ -2292,12 +2289,12 @@ var Verification = class {
2292
2289
  this.request = request;
2293
2290
  }
2294
2291
  async registerApplePayDomains(merchantId, params) {
2295
- return this.request("POST", `/verify/apple_pay/${encodeURIComponent(merchantId)}`, {
2292
+ return this.request("POST", `/verify/apple-pay/${encodeURIComponent(merchantId)}`, {
2296
2293
  body: params
2297
2294
  });
2298
2295
  }
2299
2296
  async getApplePayVerifiedDomains(params) {
2300
- return this.request("GET", "/verify/applepay_verified_domains", {
2297
+ return this.request("GET", "/verify/applepay-verified-domains", {
2301
2298
  query: params
2302
2299
  });
2303
2300
  }
@@ -2398,28 +2395,28 @@ var AnalyticsDomain = class {
2398
2395
  }
2399
2396
  /** Get metrics. `POST /analytics/metrics/{domain}` */
2400
2397
  async metrics(params, scope) {
2401
- const prefix = scope ? `/analytics/${scope}` : "/analytics/v1";
2398
+ const prefix = scope ? `/analytics/${scope}` : "/analytics";
2402
2399
  return this.request("POST", `${prefix}/metrics/${encodeURIComponent(this.domain)}`, {
2403
2400
  body: [params]
2404
2401
  });
2405
2402
  }
2406
2403
  /** Get filters. `POST /analytics/filters/{domain}` */
2407
2404
  async filters(params, scope) {
2408
- const prefix = scope ? `/analytics/${scope}` : "/analytics/v1";
2405
+ const prefix = scope ? `/analytics/${scope}` : "/analytics";
2409
2406
  return this.request("POST", `${prefix}/filters/${encodeURIComponent(this.domain)}`, {
2410
2407
  body: params
2411
2408
  });
2412
2409
  }
2413
2410
  /** Generate report. `POST /analytics/report/{domain}` */
2414
2411
  async report(params, scope) {
2415
- const prefix = scope ? `/analytics/${scope}` : "/analytics/v1";
2412
+ const prefix = scope ? `/analytics/${scope}` : "/analytics";
2416
2413
  return this.request("POST", `${prefix}/report/${encodeURIComponent(this.domain)}`, {
2417
2414
  body: params
2418
2415
  });
2419
2416
  }
2420
2417
  /** Sankey chart data. `POST /analytics/metrics/{domain}/sankey` */
2421
2418
  async sankey(params, scope) {
2422
- const prefix = scope ? `/analytics/${scope}` : "/analytics/v1";
2419
+ const prefix = scope ? `/analytics/${scope}` : "/analytics";
2423
2420
  return this.request("POST", `${prefix}/metrics/${encodeURIComponent(this.domain)}/sankey`, {
2424
2421
  body: params
2425
2422
  });
@@ -2451,25 +2448,25 @@ var Analytics = class {
2451
2448
  async getInfo(domain) {
2452
2449
  return this.request("GET", `/analytics/${encodeURIComponent(domain)}/info`);
2453
2450
  }
2454
- /** Get API event logs. `GET /analytics/api_event_logs` */
2451
+ /** Get API event logs. `GET /analytics/api-event-logs` */
2455
2452
  async apiEventLogs(params) {
2456
- return this.request("GET", "/analytics/api_event_logs", { query: params });
2453
+ return this.request("GET", "/analytics/api-event-logs", { query: params });
2457
2454
  }
2458
- /** Get SDK event logs. `POST /analytics/sdk_event_logs` */
2455
+ /** Get SDK event logs. `POST /analytics/sdk-event-logs` */
2459
2456
  async sdkEventLogs(params) {
2460
- return this.request("POST", "/analytics/sdk_event_logs", { body: params });
2457
+ return this.request("POST", "/analytics/sdk-event-logs", { body: params });
2461
2458
  }
2462
- /** Get connector event logs. `GET /analytics/connector_event_logs` */
2459
+ /** Get connector event logs. `GET /analytics/connector-event-logs` */
2463
2460
  async connectorEventLogs(params) {
2464
- return this.request("GET", "/analytics/connector_event_logs", { query: params });
2461
+ return this.request("GET", "/analytics/connector-event-logs", { query: params });
2465
2462
  }
2466
- /** Get routing event logs. `GET /analytics/routing_event_logs` */
2463
+ /** Get routing event logs. `GET /analytics/routing-event-logs` */
2467
2464
  async routingEventLogs(params) {
2468
- return this.request("GET", "/analytics/routing_event_logs", { query: params });
2465
+ return this.request("GET", "/analytics/routing-event-logs", { query: params });
2469
2466
  }
2470
- /** Get outgoing webhook event logs. `GET /analytics/outgoing_webhook_event_logs` */
2467
+ /** Get outgoing webhook event logs. `GET /analytics/outgoing-webhook-event-logs` */
2471
2468
  async outgoingWebhookEventLogs(params) {
2472
- return this.request("GET", "/analytics/outgoing_webhook_event_logs", { query: params });
2469
+ return this.request("GET", "/analytics/outgoing-webhook-event-logs", { query: params });
2473
2470
  }
2474
2471
  };
2475
2472
 
@@ -2523,18 +2520,18 @@ var FeatureMatrix = class {
2523
2520
  constructor(request) {
2524
2521
  this.request = request;
2525
2522
  }
2526
- /** Retrieve the feature matrix. `GET /feature_matrix` */
2523
+ /** Retrieve the feature matrix. `GET /feature-matrix` */
2527
2524
  async retrieve() {
2528
- return this.request("GET", "/feature_matrix");
2525
+ return this.request("GET", "/feature-matrix");
2529
2526
  }
2530
2527
  /**
2531
2528
  * Retrieve the feature matrix scoped to a merchant. Beta connectors
2532
2529
  * are filtered against the merchant's allowlist so the dashboard only
2533
2530
  * surfaces connectors the merchant can actually attach.
2534
- * `GET /feature_matrix/{merchantId}`
2531
+ * `GET /feature-matrix/{merchantId}`
2535
2532
  */
2536
2533
  async retrieveForMerchant(merchantId) {
2537
- return this.request("GET", `/feature_matrix/${encodeURIComponent(merchantId)}`);
2534
+ return this.request("GET", `/feature-matrix/${encodeURIComponent(merchantId)}`);
2538
2535
  }
2539
2536
  };
2540
2537
 
@@ -2566,9 +2563,9 @@ var Forex = class {
2566
2563
  async getRates(params) {
2567
2564
  return this.request("GET", "/forex/rates", { query: params });
2568
2565
  }
2569
- /** Convert from minor currency. `GET /forex/convert_from_minor` */
2566
+ /** Convert from minor currency. `GET /forex/convert-from-minor` */
2570
2567
  async convertFromMinor(params) {
2571
- return this.request("GET", "/forex/convert_from_minor", { query: params });
2568
+ return this.request("GET", "/forex/convert-from-minor", { query: params });
2572
2569
  }
2573
2570
  };
2574
2571