@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/index.cjs CHANGED
@@ -115,7 +115,7 @@ var ApiKeys = class {
115
115
  * ```
116
116
  */
117
117
  async create(merchantId, params) {
118
- return this.request("POST", `/api_keys/${encodeURIComponent(merchantId)}`, { body: params });
118
+ return this.request("POST", `/api-keys/${encodeURIComponent(merchantId)}`, { body: params });
119
119
  }
120
120
  /**
121
121
  * Retrieve metadata about an API key (does not return the plaintext secret).
@@ -127,7 +127,7 @@ var ApiKeys = class {
127
127
  async retrieve(merchantId, keyId) {
128
128
  return this.request(
129
129
  "GET",
130
- `/api_keys/${encodeURIComponent(merchantId)}/${encodeURIComponent(keyId)}`
130
+ `/api-keys/${encodeURIComponent(merchantId)}/${encodeURIComponent(keyId)}`
131
131
  );
132
132
  }
133
133
  /**
@@ -141,7 +141,7 @@ var ApiKeys = class {
141
141
  async update(merchantId, keyId, params) {
142
142
  return this.request(
143
143
  "POST",
144
- `/api_keys/${encodeURIComponent(merchantId)}/${encodeURIComponent(keyId)}`,
144
+ `/api-keys/${encodeURIComponent(merchantId)}/${encodeURIComponent(keyId)}`,
145
145
  { body: params }
146
146
  );
147
147
  }
@@ -155,7 +155,7 @@ var ApiKeys = class {
155
155
  async revoke(merchantId, keyId) {
156
156
  return this.request(
157
157
  "DELETE",
158
- `/api_keys/${encodeURIComponent(merchantId)}/${encodeURIComponent(keyId)}`
158
+ `/api-keys/${encodeURIComponent(merchantId)}/${encodeURIComponent(keyId)}`
159
159
  );
160
160
  }
161
161
  /**
@@ -165,7 +165,7 @@ var ApiKeys = class {
165
165
  * @returns Array of API key metadata objects.
166
166
  */
167
167
  async list(merchantId) {
168
- return this.request("GET", `/api_keys/${encodeURIComponent(merchantId)}/list`);
168
+ return this.request("GET", `/api-keys/${encodeURIComponent(merchantId)}/list`);
169
169
  }
170
170
  };
171
171
 
@@ -196,11 +196,11 @@ var Authentication = class {
196
196
  body: params
197
197
  });
198
198
  }
199
- /** Enable authn methods token. `POST /authentication/{authId}/enabled_authn_methods_token` */
199
+ /** Enable authn methods token. `POST /authentication/{authId}/enabled-authn-methods-token` */
200
200
  async enabledAuthnMethodsToken(authId, params) {
201
201
  return this.request(
202
202
  "POST",
203
- `/authentication/${encodeURIComponent(authId)}/enabled_authn_methods_token`,
203
+ `/authentication/${encodeURIComponent(authId)}/enabled-authn-methods-token`,
204
204
  {
205
205
  body: params
206
206
  }
@@ -419,8 +419,8 @@ var Connectors = class {
419
419
  * `POST /account/{merchantId}/connectors/webhooks/{connectorId}`
420
420
  *
421
421
  * @param params - Optional event scope. Defaults to `{ event_type: 'all_events' }`
422
- * on the backend when omitted; pass `{ event_type: { specific_event: '…' } }`
423
- * to scope to a single event.
422
+ * when omitted; pass `{ event_type: { specific_event: '…' } }` to scope
423
+ * to a single event.
424
424
  */
425
425
  async registerWebhook(merchantId, connectorId, params) {
426
426
  const path = `/account/${encodeURIComponent(merchantId)}/connectors/webhooks/${encodeURIComponent(connectorId)}`;
@@ -434,9 +434,9 @@ var Connectors = class {
434
434
  `/account/${encodeURIComponent(merchantId)}/connectors/webhooks/${encodeURIComponent(connectorId)}`
435
435
  );
436
436
  }
437
- /** List available payment methods. `GET /account/payment_methods` */
437
+ /** List available payment methods. `GET /account/payment-methods` */
438
438
  async listPaymentMethods() {
439
- return this.request("GET", "/account/payment_methods");
439
+ return this.request("GET", "/account/payment-methods");
440
440
  }
441
441
  };
442
442
 
@@ -507,9 +507,9 @@ var Customers = class {
507
507
  });
508
508
  }
509
509
  // --- OLAP extensions (Task 4.6) ---
510
- /** List customers with count. `GET /customers/list_with_count` */
510
+ /** List customers with count. `GET /customers/list-with-count` */
511
511
  async listWithCount(params) {
512
- return this.request("GET", "/customers/list_with_count", {
512
+ return this.request("GET", "/customers/list-with-count", {
513
513
  query: params
514
514
  });
515
515
  }
@@ -643,7 +643,7 @@ var EphemeralKeys = class {
643
643
  * ```
644
644
  */
645
645
  async create(params) {
646
- return this.request("POST", "/ephemeral_keys", { body: params });
646
+ return this.request("POST", "/ephemeral-keys", { body: params });
647
647
  }
648
648
  /**
649
649
  * Invalidate an ephemeral key before it expires.
@@ -652,7 +652,7 @@ var EphemeralKeys = class {
652
652
  * @returns The deleted key object.
653
653
  */
654
654
  async delete(keyId) {
655
- return this.request("DELETE", `/ephemeral_keys/${encodeURIComponent(keyId)}`);
655
+ return this.request("DELETE", `/ephemeral-keys/${encodeURIComponent(keyId)}`);
656
656
  }
657
657
  };
658
658
 
@@ -695,7 +695,7 @@ var Fees = class {
695
695
  * @param merchantId - The merchant account ID.
696
696
  */
697
697
  async create(params, merchantId) {
698
- return this.request("POST", "/merchant_fees", {
698
+ return this.request("POST", "/merchant-fees", {
699
699
  body: params,
700
700
  query: { merchant_id: merchantId }
701
701
  });
@@ -706,7 +706,7 @@ var Fees = class {
706
706
  * @param merchantId - The merchant account ID.
707
707
  */
708
708
  async list(merchantId) {
709
- return this.request("GET", "/merchant_fees/list", {
709
+ return this.request("GET", "/merchant-fees/list", {
710
710
  query: { merchant_id: merchantId }
711
711
  });
712
712
  }
@@ -717,7 +717,7 @@ var Fees = class {
717
717
  * @param params - Fields to update.
718
718
  */
719
719
  async update(feeId, params) {
720
- return this.request("PUT", `/merchant_fees/${encodeURIComponent(feeId)}`, { body: params });
720
+ return this.request("PUT", `/merchant-fees/${encodeURIComponent(feeId)}`, { body: params });
721
721
  }
722
722
  /**
723
723
  * Delete a merchant-scoped fee schedule.
@@ -725,7 +725,7 @@ var Fees = class {
725
725
  * @param feeId - The fee schedule ID.
726
726
  */
727
727
  async delete(feeId) {
728
- return this.request("DELETE", `/merchant_fees/${encodeURIComponent(feeId)}`);
728
+ return this.request("DELETE", `/merchant-fees/${encodeURIComponent(feeId)}`);
729
729
  }
730
730
  };
731
731
 
@@ -813,7 +813,7 @@ var PaymentLinks = class {
813
813
  * @returns The payment link details.
814
814
  */
815
815
  async retrieve(linkId) {
816
- return this.request("GET", `/payment_link/${encodeURIComponent(linkId)}`);
816
+ return this.request("GET", `/payment-link/${encodeURIComponent(linkId)}`);
817
817
  }
818
818
  /**
819
819
  * List payment links, optionally filtered by status or date range.
@@ -822,20 +822,20 @@ var PaymentLinks = class {
822
822
  * @returns Paginated list of payment links.
823
823
  */
824
824
  async list(params) {
825
- return this.request("POST", "/payment_link/list", { body: params });
825
+ return this.request("POST", "/payment-link/list", { body: params });
826
826
  }
827
- /** Initiate (render) a payment link page. `GET /payment_link/{merchantId}/{paymentId}` */
827
+ /** Initiate (render) a payment link page. `GET /payment-link/{merchantId}/{paymentId}` */
828
828
  async initiate(merchantId, paymentId) {
829
829
  return this.request(
830
830
  "GET",
831
- `/payment_link/${encodeURIComponent(merchantId)}/${encodeURIComponent(paymentId)}`
831
+ `/payment-link/${encodeURIComponent(merchantId)}/${encodeURIComponent(paymentId)}`
832
832
  );
833
833
  }
834
- /** Get payment link status. `GET /payment_linkstatus/{merchantId}/{paymentId}` */
834
+ /** Get payment link status. `GET /payment-linkstatus/{merchantId}/{paymentId}` */
835
835
  async status(merchantId, paymentId) {
836
836
  return this.request(
837
837
  "GET",
838
- `/payment_linkstatus/${encodeURIComponent(merchantId)}/${encodeURIComponent(paymentId)}`
838
+ `/payment-linkstatus/${encodeURIComponent(merchantId)}/${encodeURIComponent(paymentId)}`
839
839
  );
840
840
  }
841
841
  };
@@ -861,7 +861,7 @@ var PaymentMethods = class {
861
861
  * ```
862
862
  */
863
863
  async create(params) {
864
- return this.request("POST", "/payment_methods", { body: params });
864
+ return this.request("POST", "/payment-methods", { body: params });
865
865
  }
866
866
  /**
867
867
  * Retrieve a saved payment method by its ID.
@@ -870,7 +870,7 @@ var PaymentMethods = class {
870
870
  * @returns The payment method.
871
871
  */
872
872
  async retrieve(methodId) {
873
- return this.request("GET", `/payment_methods/${encodeURIComponent(methodId)}`);
873
+ return this.request("GET", `/payment-methods/${encodeURIComponent(methodId)}`);
874
874
  }
875
875
  /**
876
876
  * Update an existing payment method (e.g. update card expiry).
@@ -880,7 +880,7 @@ var PaymentMethods = class {
880
880
  * @returns The updated payment method.
881
881
  */
882
882
  async update(methodId, params) {
883
- return this.request("POST", `/payment_methods/${encodeURIComponent(methodId)}/update`, {
883
+ return this.request("POST", `/payment-methods/${encodeURIComponent(methodId)}/update`, {
884
884
  body: params
885
885
  });
886
886
  }
@@ -891,7 +891,7 @@ var PaymentMethods = class {
891
891
  * @returns Deletion confirmation.
892
892
  */
893
893
  async delete(methodId) {
894
- return this.request("DELETE", `/payment_methods/${encodeURIComponent(methodId)}`);
894
+ return this.request("DELETE", `/payment-methods/${encodeURIComponent(methodId)}`);
895
895
  }
896
896
  /**
897
897
  * List payment methods using a client secret.
@@ -900,7 +900,7 @@ var PaymentMethods = class {
900
900
  * @returns Array of payment methods.
901
901
  */
902
902
  async list(params) {
903
- return this.request("GET", "/payment_methods", {
903
+ return this.request("GET", "/payment-methods", {
904
904
  query: params
905
905
  });
906
906
  }
@@ -921,7 +921,7 @@ var PaymentMethods = class {
921
921
  * ```
922
922
  */
923
923
  async listForCustomer(customerId, params) {
924
- return this.request("GET", `/customers/${encodeURIComponent(customerId)}/payment_methods`, {
924
+ return this.request("GET", `/customers/${encodeURIComponent(customerId)}/payment-methods`, {
925
925
  query: params
926
926
  });
927
927
  }
@@ -935,55 +935,55 @@ var PaymentMethods = class {
935
935
  async setDefault(customerId, methodId) {
936
936
  return this.request(
937
937
  "POST",
938
- `/customers/${encodeURIComponent(customerId)}/payment_methods/${encodeURIComponent(methodId)}/default`
938
+ `/customers/${encodeURIComponent(customerId)}/payment-methods/${encodeURIComponent(methodId)}/default`
939
939
  );
940
940
  }
941
941
  // --- Advanced operations (Task 3.3) ---
942
- /** Migrate a payment method. `POST /payment_methods/migrate` */
942
+ /** Migrate a payment method. `POST /payment-methods/migrate` */
943
943
  async migrate(params) {
944
- return this.request("POST", "/payment_methods/migrate", { body: params });
944
+ return this.request("POST", "/payment-methods/migrate", { body: params });
945
945
  }
946
- /** Batch migrate payment methods. `POST /payment_methods/migrate-batch` */
946
+ /** Batch migrate payment methods. `POST /payment-methods/migrate-batch` */
947
947
  async migrateBatch(params) {
948
- return this.request("POST", "/payment_methods/migrate-batch", { body: params });
948
+ return this.request("POST", "/payment-methods/migrate-batch", { body: params });
949
949
  }
950
- /** Batch update payment methods. `POST /payment_methods/update-batch` */
950
+ /** Batch update payment methods. `POST /payment-methods/update-batch` */
951
951
  async updateBatch(params) {
952
- return this.request("POST", "/payment_methods/update-batch", { body: params });
952
+ return this.request("POST", "/payment-methods/update-batch", { body: params });
953
953
  }
954
- /** Batch retrieve payment methods. `GET /payment_methods/batch` */
954
+ /** Batch retrieve payment methods. `GET /payment-methods/batch` */
955
955
  async batchRetrieve(params) {
956
- return this.request("GET", "/payment_methods/batch", { query: params });
956
+ return this.request("GET", "/payment-methods/batch", { query: params });
957
957
  }
958
- /** Tokenize a card. `POST /payment_methods/tokenize-card` */
958
+ /** Tokenize a card. `POST /payment-methods/tokenize-card` */
959
959
  async tokenizeCard(params) {
960
- return this.request("POST", "/payment_methods/tokenize-card", { body: params });
960
+ return this.request("POST", "/payment-methods/tokenize-card", { body: params });
961
961
  }
962
- /** Batch tokenize cards. `POST /payment_methods/tokenize-card-batch` */
962
+ /** Batch tokenize cards. `POST /payment-methods/tokenize-card-batch` */
963
963
  async tokenizeCardBatch(params) {
964
- return this.request("POST", "/payment_methods/tokenize-card-batch", { body: params });
964
+ return this.request("POST", "/payment-methods/tokenize-card-batch", { body: params });
965
965
  }
966
- /** Initiate payment method collect link flow. `POST /payment_methods/collect` */
966
+ /** Initiate payment method collect link flow. `POST /payment-methods/collect` */
967
967
  async collect(params) {
968
- return this.request("POST", "/payment_methods/collect", { body: params });
968
+ return this.request("POST", "/payment-methods/collect", { body: params });
969
969
  }
970
- /** Save a payment method. `POST /payment_methods/{methodId}/save` */
970
+ /** Save a payment method. `POST /payment-methods/{methodId}/save` */
971
971
  async save(methodId, params) {
972
- return this.request("POST", `/payment_methods/${encodeURIComponent(methodId)}/save`, {
972
+ return this.request("POST", `/payment-methods/${encodeURIComponent(methodId)}/save`, {
973
973
  body: params
974
974
  });
975
975
  }
976
- /** Create payment method auth link token. `POST /payment_methods/auth/link` */
976
+ /** Create payment method auth link token. `POST /payment-methods/auth/link` */
977
977
  async createAuthLink(params) {
978
- return this.request("POST", "/payment_methods/auth/link", { body: params });
978
+ return this.request("POST", "/payment-methods/auth/link", { body: params });
979
979
  }
980
- /** Exchange payment method auth token. `POST /payment_methods/auth/exchange` */
980
+ /** Exchange payment method auth token. `POST /payment-methods/auth/exchange` */
981
981
  async exchangeAuthToken(params) {
982
- return this.request("POST", "/payment_methods/auth/exchange", { body: params });
982
+ return this.request("POST", "/payment-methods/auth/exchange", { body: params });
983
983
  }
984
- /** Tokenize card using existing PM. `POST /payment_methods/{methodId}/tokenize-card` */
984
+ /** Tokenize card using existing PM. `POST /payment-methods/{methodId}/tokenize-card` */
985
985
  async tokenizeCardForMethod(methodId, params) {
986
- return this.request("POST", `/payment_methods/${encodeURIComponent(methodId)}/tokenize-card`, {
986
+ return this.request("POST", `/payment-methods/${encodeURIComponent(methodId)}/tokenize-card`, {
987
987
  body: params
988
988
  });
989
989
  }
@@ -1016,13 +1016,12 @@ var Payments = class {
1016
1016
  * Retrieve a payment by its ID.
1017
1017
  *
1018
1018
  * @param paymentId - The unique payment intent ID.
1019
- * @param options - Optional query flags. `force_sync` asks the backend to
1020
- * reconcile state with the connector before returning (used to recover a
1021
- * stuck intent when a webhook was lost). `all_keys_required` lifts the
1022
- * backend's `should_call_connector` gate so a `requires_payment_method`
1023
- * intent can still trigger a sync — without it the backend short-circuits
1024
- * and returns the local snapshot. Both flags are JWT-authenticated dashboard
1025
- * helpers; API-key callers can use them too where the backend allows.
1019
+ * @param options - Optional query flags. `force_sync` reconciles the
1020
+ * intent's state with the connector before returning (useful to recover
1021
+ * a stuck intent when a webhook was lost). `all_keys_required` forces a
1022
+ * connector sync even for intents in early states like
1023
+ * `requires_payment_method` that would otherwise return the local
1024
+ * snapshot. Both flags work with JWT and API-key authentication.
1026
1025
  * @returns The payment intent.
1027
1026
  *
1028
1027
  * @example
@@ -1108,57 +1107,57 @@ var Payments = class {
1108
1107
  });
1109
1108
  }
1110
1109
  // --- Advanced operations (Task 3.2) ---
1111
- /** Generate session tokens. `POST /payments/session_tokens` */
1110
+ /** Generate session tokens. `POST /payments/session-tokens` */
1112
1111
  async sessionTokens(params) {
1113
- return this.request("POST", "/payments/session_tokens", { body: params });
1112
+ return this.request("POST", "/payments/session-tokens", { body: params });
1114
1113
  }
1115
1114
  /** Retrieve payment with gateway credentials. `POST /payments/sync` */
1116
1115
  async sync(params) {
1117
1116
  return this.request("POST", "/payments/sync", { body: params });
1118
1117
  }
1119
- /** Cancel after partial capture. `POST /payments/{paymentId}/cancel_post_capture` */
1118
+ /** Cancel after partial capture. `POST /payments/{paymentId}/cancel-post-capture` */
1120
1119
  async cancelPostCapture(paymentId, params) {
1121
- return this.request("POST", `/payments/${encodeURIComponent(paymentId)}/cancel_post_capture`, {
1120
+ return this.request("POST", `/payments/${encodeURIComponent(paymentId)}/cancel-post-capture`, {
1122
1121
  body: params
1123
1122
  });
1124
1123
  }
1125
- /** Incrementally authorize more funds. `POST /payments/{paymentId}/incremental_authorization` */
1124
+ /** Incrementally authorize more funds. `POST /payments/{paymentId}/incremental-authorization` */
1126
1125
  async incrementalAuthorization(paymentId, params) {
1127
1126
  return this.request(
1128
1127
  "POST",
1129
- `/payments/${encodeURIComponent(paymentId)}/incremental_authorization`,
1128
+ `/payments/${encodeURIComponent(paymentId)}/incremental-authorization`,
1130
1129
  {
1131
1130
  body: params
1132
1131
  }
1133
1132
  );
1134
1133
  }
1135
- /** Extend authorization window. `POST /payments/{paymentId}/extend_authorization` */
1134
+ /** Extend authorization window. `POST /payments/{paymentId}/extend-authorization` */
1136
1135
  async extendAuthorization(paymentId, params) {
1137
- return this.request("POST", `/payments/${encodeURIComponent(paymentId)}/extend_authorization`, {
1136
+ return this.request("POST", `/payments/${encodeURIComponent(paymentId)}/extend-authorization`, {
1138
1137
  body: params
1139
1138
  });
1140
1139
  }
1141
- /** Complete authorization. `POST /payments/{paymentId}/complete_authorize` */
1140
+ /** Complete authorization. `POST /payments/{paymentId}/complete-authorize` */
1142
1141
  async completeAuthorize(paymentId, params) {
1143
- return this.request("POST", `/payments/${encodeURIComponent(paymentId)}/complete_authorize`, {
1142
+ return this.request("POST", `/payments/${encodeURIComponent(paymentId)}/complete-authorize`, {
1144
1143
  body: params
1145
1144
  });
1146
1145
  }
1147
- /** Dynamic tax calculation. `POST /payments/{paymentId}/calculate_tax` */
1146
+ /** Dynamic tax calculation. `POST /payments/{paymentId}/calculate-tax` */
1148
1147
  async calculateTax(paymentId, params) {
1149
- return this.request("POST", `/payments/${encodeURIComponent(paymentId)}/calculate_tax`, {
1148
+ return this.request("POST", `/payments/${encodeURIComponent(paymentId)}/calculate-tax`, {
1150
1149
  body: params
1151
1150
  });
1152
1151
  }
1153
- /** Update payment metadata. `POST /payments/{paymentId}/update_metadata` */
1152
+ /** Update payment metadata. `POST /payments/{paymentId}/update-metadata` */
1154
1153
  async updateMetadata(paymentId, params) {
1155
- return this.request("POST", `/payments/${encodeURIComponent(paymentId)}/update_metadata`, {
1154
+ return this.request("POST", `/payments/${encodeURIComponent(paymentId)}/update-metadata`, {
1156
1155
  body: params
1157
1156
  });
1158
1157
  }
1159
- /** Retrieve extended card info. `GET /payments/{paymentId}/extended_card_info` */
1158
+ /** Retrieve extended card info. `GET /payments/{paymentId}/extended-card-info` */
1160
1159
  async extendedCardInfo(paymentId) {
1161
- return this.request("GET", `/payments/${encodeURIComponent(paymentId)}/extended_card_info`);
1160
+ return this.request("GET", `/payments/${encodeURIComponent(paymentId)}/extended-card-info`);
1162
1161
  }
1163
1162
  // --- OLAP extensions (Task 4.2) ---
1164
1163
  /** List payments (profile-scoped). `GET /payments/profile/list` */
@@ -1349,12 +1348,12 @@ var ProfileAcquirers = class {
1349
1348
  this.request = request;
1350
1349
  }
1351
1350
  async create(params) {
1352
- return this.request("POST", "/profile_acquirer", { body: params });
1351
+ return this.request("POST", "/profile-acquirer", { body: params });
1353
1352
  }
1354
1353
  async update(profileId, profileAcquirerId, params) {
1355
1354
  return this.request(
1356
1355
  "POST",
1357
- `/profile_acquirer/${encodeURIComponent(profileId)}/${encodeURIComponent(profileAcquirerId)}`,
1356
+ `/profile-acquirer/${encodeURIComponent(profileId)}/${encodeURIComponent(profileAcquirerId)}`,
1358
1357
  {
1359
1358
  body: params
1360
1359
  }
@@ -1368,23 +1367,23 @@ var Profiles = class {
1368
1367
  this.request = request;
1369
1368
  }
1370
1369
  async create(accountId, params) {
1371
- return this.request("POST", `/account/${encodeURIComponent(accountId)}/business_profile`, {
1370
+ return this.request("POST", `/account/${encodeURIComponent(accountId)}/business-profile`, {
1372
1371
  body: params
1373
1372
  });
1374
1373
  }
1375
1374
  async retrieve(accountId, profileId) {
1376
1375
  return this.request(
1377
1376
  "GET",
1378
- `/account/${encodeURIComponent(accountId)}/business_profile/${encodeURIComponent(profileId)}`
1377
+ `/account/${encodeURIComponent(accountId)}/business-profile/${encodeURIComponent(profileId)}`
1379
1378
  );
1380
1379
  }
1381
1380
  async list(accountId) {
1382
- return this.request("GET", `/account/${encodeURIComponent(accountId)}/business_profile`);
1381
+ return this.request("GET", `/account/${encodeURIComponent(accountId)}/business-profile`);
1383
1382
  }
1384
1383
  async update(accountId, profileId, params) {
1385
1384
  return this.request(
1386
1385
  "POST",
1387
- `/account/${encodeURIComponent(accountId)}/business_profile/${encodeURIComponent(profileId)}`,
1386
+ `/account/${encodeURIComponent(accountId)}/business-profile/${encodeURIComponent(profileId)}`,
1388
1387
  {
1389
1388
  body: params
1390
1389
  }
@@ -1393,22 +1392,22 @@ var Profiles = class {
1393
1392
  async delete(accountId, profileId) {
1394
1393
  return this.request(
1395
1394
  "DELETE",
1396
- `/account/${encodeURIComponent(accountId)}/business_profile/${encodeURIComponent(profileId)}`
1395
+ `/account/${encodeURIComponent(accountId)}/business-profile/${encodeURIComponent(profileId)}`
1397
1396
  );
1398
1397
  }
1399
1398
  // --- Advanced operations (Task 4.8) ---
1400
- /** Toggle extended card info for a profile. `POST /account/{accountId}/business_profile/{profileId}/toggle_extended_card_info` */
1399
+ /** Toggle extended card info for a profile. `POST /account/{accountId}/business-profile/{profileId}/toggle-extended-card-info` */
1401
1400
  async toggleExtendedCardInfo(accountId, profileId) {
1402
1401
  return this.request(
1403
1402
  "POST",
1404
- `/account/${encodeURIComponent(accountId)}/business_profile/${encodeURIComponent(profileId)}/toggle_extended_card_info`
1403
+ `/account/${encodeURIComponent(accountId)}/business-profile/${encodeURIComponent(profileId)}/toggle-extended-card-info`
1405
1404
  );
1406
1405
  }
1407
- /** Toggle connector agnostic MIT. `POST /account/{accountId}/business_profile/{profileId}/toggle_connector_agnostic_mit` */
1406
+ /** Toggle connector agnostic MIT. `POST /account/{accountId}/business-profile/{profileId}/toggle-connector-agnostic-mit` */
1408
1407
  async toggleConnectorAgnosticMit(accountId, profileId) {
1409
1408
  return this.request(
1410
1409
  "POST",
1411
- `/account/${encodeURIComponent(accountId)}/business_profile/${encodeURIComponent(profileId)}/toggle_connector_agnostic_mit`
1410
+ `/account/${encodeURIComponent(accountId)}/business-profile/${encodeURIComponent(profileId)}/toggle-connector-agnostic-mit`
1412
1411
  );
1413
1412
  }
1414
1413
  };
@@ -1919,23 +1918,23 @@ var StripeConnect = class {
1919
1918
  this.request = request;
1920
1919
  }
1921
1920
  async createAccount(params) {
1922
- return this.request("POST", "/connector_onboarding/stripe/accounts", { body: params });
1921
+ return this.request("POST", "/connector-onboarding/stripe/accounts", { body: params });
1923
1922
  }
1924
1923
  async createAccountLink(params) {
1925
- return this.request("POST", "/connector_onboarding/stripe/account_links", { body: params });
1924
+ return this.request("POST", "/connector-onboarding/stripe/account-links", { body: params });
1926
1925
  }
1927
1926
  // --- Generic connector onboarding (Task 4.11) ---
1928
- /** Get onboarding action URL. `POST /connector_onboarding/action_url` */
1927
+ /** Get onboarding action URL. `POST /connector-onboarding/action-url` */
1929
1928
  async getActionUrl(params) {
1930
- return this.request("POST", "/connector_onboarding/action_url", { body: params });
1929
+ return this.request("POST", "/connector-onboarding/action-url", { body: params });
1931
1930
  }
1932
- /** Sync onboarding status. `POST /connector_onboarding/sync` */
1931
+ /** Sync onboarding status. `POST /connector-onboarding/sync` */
1933
1932
  async syncOnboarding(params) {
1934
- return this.request("POST", "/connector_onboarding/sync", { body: params });
1933
+ return this.request("POST", "/connector-onboarding/sync", { body: params });
1935
1934
  }
1936
- /** Reset tracking ID. `POST /connector_onboarding/reset_tracking_id` */
1935
+ /** Reset tracking ID. `POST /connector-onboarding/reset-tracking-id` */
1937
1936
  async resetTrackingId(params) {
1938
- return this.request("POST", "/connector_onboarding/reset_tracking_id", { body: params });
1937
+ return this.request("POST", "/connector-onboarding/reset-tracking-id", { body: params });
1939
1938
  }
1940
1939
  };
1941
1940
 
@@ -1945,7 +1944,7 @@ var ThreeDsRules = class {
1945
1944
  this.request = request;
1946
1945
  }
1947
1946
  async execute(params) {
1948
- return this.request("POST", "/three_ds_decision/execute", { body: params });
1947
+ return this.request("POST", "/three-ds-decision/execute", { body: params });
1949
1948
  }
1950
1949
  };
1951
1950
 
@@ -1964,16 +1963,15 @@ var Users = class {
1964
1963
  return this.request("POST", "/user/signout");
1965
1964
  }
1966
1965
  /**
1967
- * Paginated login history for the authenticated user IP, User-Agent,
1968
- * country / city / lat-lon (when GeoIP is enabled in backend), success
1969
- * and failure events with their reasons. Strictly scoped to the JWT
1970
- * subject; a user can only see their own activity.
1966
+ * Paginated login history for the authenticated user -- IP, User-Agent,
1967
+ * country / city / lat-lon (when GeoIP is enabled), success and failure
1968
+ * events with their reasons. Strictly scoped to the JWT subject; a user
1969
+ * can only see their own activity.
1971
1970
  *
1972
1971
  * `GET /user/me/login-activity`. Requires a logged-in JWT.
1973
1972
  *
1974
- * The backend returns an empty page when a Delopay admin is impersonating
1975
- * a non-admin merchant, so the admin's metadata never renders inside the
1976
- * merchant dashboard.
1973
+ * Returns an empty page when a Delopay admin is impersonating a merchant,
1974
+ * so the admin's metadata is not exposed inside the merchant dashboard.
1977
1975
  */
1978
1976
  async listLoginActivity(params) {
1979
1977
  if (params === void 0) {
@@ -2020,27 +2018,26 @@ var Users = class {
2020
2018
  }
2021
2019
  /**
2022
2020
  * Permanently delete the caller's account. Requires a fresh password
2023
- * (and a current 6-digit TOTP code if the user has TOTP enrolled). The
2024
- * backend hard-deletes every `user_roles` row for the caller and soft-
2025
- * deletes the user record itself (`is_active = false`, password / TOTP
2026
- * wiped). On success all in-flight sessions are blacklisted, so the
2027
- * caller should clear local credentials and route to the login page.
2021
+ * (and a current 6-digit TOTP code if the user has TOTP enrolled). On
2022
+ * success all role assignments are removed, the user record is
2023
+ * deactivated, and all in-flight sessions are invalidated. The caller
2024
+ * should clear local credentials and route to the login page.
2028
2025
  *
2029
- * Refuses (`InvalidDeleteOperation`) when the caller is the sole
2030
- * owner-level admin of an org / merchant / profile they must transfer
2031
- * ownership first.
2026
+ * Returns `InvalidDeleteOperation` when the caller is the sole
2027
+ * owner-level admin of an org / merchant / profile -- they must
2028
+ * transfer ownership first.
2032
2029
  */
2033
2030
  async deleteAccount(params) {
2034
2031
  return this.request("DELETE", "/user/account", { body: params });
2035
2032
  }
2036
2033
  async changePassword(params) {
2037
- return this.request("POST", "/user/change_password", { body: params });
2034
+ return this.request("POST", "/user/change-password", { body: params });
2038
2035
  }
2039
2036
  async rotatePassword(params) {
2040
- return this.request("POST", "/user/rotate_password", { body: params });
2037
+ return this.request("POST", "/user/rotate-password", { body: params });
2041
2038
  }
2042
2039
  async forgotPassword(params) {
2043
- return this.request("POST", "/user/forgot_password", { body: params });
2040
+ return this.request("POST", "/user/forgot-password", { body: params });
2044
2041
  }
2045
2042
  /**
2046
2043
  * Commit a password reset.
@@ -2054,7 +2051,7 @@ var Users = class {
2054
2051
  * decodes it a second time to find the user.
2055
2052
  */
2056
2053
  async resetPassword(params) {
2057
- return this.request("POST", "/user/reset_password", { body: params });
2054
+ return this.request("POST", "/user/reset-password", { body: params });
2058
2055
  }
2059
2056
  /**
2060
2057
  * Exchange an email-link token (`EmailToken`) for a single-purpose JWT
@@ -2064,16 +2061,16 @@ var Users = class {
2064
2061
  * The `token_type` in the response tells you which step to run next.
2065
2062
  */
2066
2063
  async fromEmail(params) {
2067
- return this.request("POST", "/user/from_email", { body: params });
2064
+ return this.request("POST", "/user/from-email", { body: params });
2068
2065
  }
2069
2066
  async verifyEmail(params) {
2070
- return this.request("POST", "/user/verify_email", { body: params });
2067
+ return this.request("POST", "/user/verify-email", { body: params });
2071
2068
  }
2072
2069
  async sendVerificationEmail(params) {
2073
- return this.request("POST", "/user/verify_email_request", { body: params });
2070
+ return this.request("POST", "/user/verify-email-request", { body: params });
2074
2071
  }
2075
2072
  async createMerchant(params) {
2076
- return this.request("POST", "/user/create_merchant", { body: params });
2073
+ return this.request("POST", "/user/create-merchant", { body: params });
2077
2074
  }
2078
2075
  async switchMerchant(params) {
2079
2076
  return this.request("POST", "/user/switch/merchant", { body: params });
@@ -2088,10 +2085,10 @@ var Users = class {
2088
2085
  return this.request("GET", "/user/list/profile");
2089
2086
  }
2090
2087
  async inviteUsers(params) {
2091
- return this.request("POST", "/user/user/invite_multiple", { body: params });
2088
+ return this.request("POST", "/user/employees/invite", { body: params });
2092
2089
  }
2093
2090
  async acceptInvitation(params) {
2094
- return this.request("POST", "/user/user/invite/accept", { body: params });
2091
+ return this.request("POST", "/user/invite/accept", { body: params });
2095
2092
  }
2096
2093
  /**
2097
2094
  * Accept an invitation via the email-link flow.
@@ -2104,7 +2101,7 @@ var Users = class {
2104
2101
  * invitee and the entity lineage.
2105
2102
  */
2106
2103
  async acceptInviteFromEmail(params) {
2107
- return this.request("POST", "/user/accept_invite_from_email", { body: params });
2104
+ return this.request("POST", "/user/accept-invite-from-email", { body: params });
2108
2105
  }
2109
2106
  /**
2110
2107
  * Start TOTP setup (or no-op if already set).
@@ -2131,10 +2128,10 @@ var Users = class {
2131
2128
  return this.request("GET", "/user/2fa/totp/reset");
2132
2129
  }
2133
2130
  async generateRecoveryCodes() {
2134
- return this.request("GET", "/user/2fa/recovery_code/generate");
2131
+ return this.request("GET", "/user/2fa/recovery-code/generate");
2135
2132
  }
2136
2133
  async verifyRecoveryCode(params) {
2137
- return this.request("POST", "/user/2fa/recovery_code/verify", { body: params });
2134
+ return this.request("POST", "/user/2fa/recovery-code/verify", { body: params });
2138
2135
  }
2139
2136
  async sendPhoneOtp(params) {
2140
2137
  return this.request("POST", "/user/phone/send-otp", { body: params });
@@ -2146,13 +2143,13 @@ var Users = class {
2146
2143
  return this.request("GET", "/user/role/list");
2147
2144
  }
2148
2145
  async listUserRoles(params) {
2149
- return this.request("POST", "/user/user", { body: params });
2146
+ return this.request("POST", "/user/employees", { body: params });
2150
2147
  }
2151
2148
  async updateUserRole(params) {
2152
- return this.request("POST", "/user/user/update_role", { body: params });
2149
+ return this.request("POST", "/user/employees/update-role", { body: params });
2153
2150
  }
2154
2151
  async deleteUserRole(params) {
2155
- return this.request("DELETE", "/user/user/delete", { body: params });
2152
+ return this.request("DELETE", "/user/employees/delete", { body: params });
2156
2153
  }
2157
2154
  /** Sign in via OIDC. `POST /user/oidc` */
2158
2155
  async signInOidc(params) {
@@ -2214,13 +2211,13 @@ var Users = class {
2214
2211
  async selectAuth(params) {
2215
2212
  return this.request("POST", "/user/auth/select", { body: params });
2216
2213
  }
2217
- /** List users in lineage. `GET /user/user/list` */
2214
+ /** List users in lineage. `GET /user/employees/list` */
2218
2215
  async listUsersInLineage() {
2219
- return this.request("GET", "/user/user/list");
2216
+ return this.request("GET", "/user/employees/list");
2220
2217
  }
2221
- /** Resend invite. `POST /user/user/resend_invite` */
2218
+ /** Resend invite. `POST /user/employees/resend-invite` */
2222
2219
  async resendInvite(params) {
2223
- return this.request("POST", "/user/user/resend_invite", { body: params });
2220
+ return this.request("POST", "/user/employees/resend-invite", { body: params });
2224
2221
  }
2225
2222
  /**
2226
2223
  * Get the caller's parent permission groups + scopes.
@@ -2249,9 +2246,9 @@ var Users = class {
2249
2246
  async listUpdatableRoles() {
2250
2247
  return this.request("GET", "/user/role/list/update");
2251
2248
  }
2252
- /** Get permission info. `GET /user/permission_info` */
2249
+ /** Get permission info. `GET /user/permission-info` */
2253
2250
  async getPermissionInfo() {
2254
- return this.request("GET", "/user/permission_info");
2251
+ return this.request("GET", "/user/permission-info");
2255
2252
  }
2256
2253
  /** Get module list. `GET /user/module/list` */
2257
2254
  async getModuleList() {
@@ -2281,12 +2278,12 @@ var Verification = class {
2281
2278
  this.request = request;
2282
2279
  }
2283
2280
  async registerApplePayDomains(merchantId, params) {
2284
- return this.request("POST", `/verify/apple_pay/${encodeURIComponent(merchantId)}`, {
2281
+ return this.request("POST", `/verify/apple-pay/${encodeURIComponent(merchantId)}`, {
2285
2282
  body: params
2286
2283
  });
2287
2284
  }
2288
2285
  async getApplePayVerifiedDomains(params) {
2289
- return this.request("GET", "/verify/applepay_verified_domains", {
2286
+ return this.request("GET", "/verify/applepay-verified-domains", {
2290
2287
  query: params
2291
2288
  });
2292
2289
  }
@@ -2387,28 +2384,28 @@ var AnalyticsDomain = class {
2387
2384
  }
2388
2385
  /** Get metrics. `POST /analytics/metrics/{domain}` */
2389
2386
  async metrics(params, scope) {
2390
- const prefix = scope ? `/analytics/${scope}` : "/analytics/v1";
2387
+ const prefix = scope ? `/analytics/${scope}` : "/analytics";
2391
2388
  return this.request("POST", `${prefix}/metrics/${encodeURIComponent(this.domain)}`, {
2392
2389
  body: [params]
2393
2390
  });
2394
2391
  }
2395
2392
  /** Get filters. `POST /analytics/filters/{domain}` */
2396
2393
  async filters(params, scope) {
2397
- const prefix = scope ? `/analytics/${scope}` : "/analytics/v1";
2394
+ const prefix = scope ? `/analytics/${scope}` : "/analytics";
2398
2395
  return this.request("POST", `${prefix}/filters/${encodeURIComponent(this.domain)}`, {
2399
2396
  body: params
2400
2397
  });
2401
2398
  }
2402
2399
  /** Generate report. `POST /analytics/report/{domain}` */
2403
2400
  async report(params, scope) {
2404
- const prefix = scope ? `/analytics/${scope}` : "/analytics/v1";
2401
+ const prefix = scope ? `/analytics/${scope}` : "/analytics";
2405
2402
  return this.request("POST", `${prefix}/report/${encodeURIComponent(this.domain)}`, {
2406
2403
  body: params
2407
2404
  });
2408
2405
  }
2409
2406
  /** Sankey chart data. `POST /analytics/metrics/{domain}/sankey` */
2410
2407
  async sankey(params, scope) {
2411
- const prefix = scope ? `/analytics/${scope}` : "/analytics/v1";
2408
+ const prefix = scope ? `/analytics/${scope}` : "/analytics";
2412
2409
  return this.request("POST", `${prefix}/metrics/${encodeURIComponent(this.domain)}/sankey`, {
2413
2410
  body: params
2414
2411
  });
@@ -2440,25 +2437,25 @@ var Analytics = class {
2440
2437
  async getInfo(domain) {
2441
2438
  return this.request("GET", `/analytics/${encodeURIComponent(domain)}/info`);
2442
2439
  }
2443
- /** Get API event logs. `GET /analytics/api_event_logs` */
2440
+ /** Get API event logs. `GET /analytics/api-event-logs` */
2444
2441
  async apiEventLogs(params) {
2445
- return this.request("GET", "/analytics/api_event_logs", { query: params });
2442
+ return this.request("GET", "/analytics/api-event-logs", { query: params });
2446
2443
  }
2447
- /** Get SDK event logs. `POST /analytics/sdk_event_logs` */
2444
+ /** Get SDK event logs. `POST /analytics/sdk-event-logs` */
2448
2445
  async sdkEventLogs(params) {
2449
- return this.request("POST", "/analytics/sdk_event_logs", { body: params });
2446
+ return this.request("POST", "/analytics/sdk-event-logs", { body: params });
2450
2447
  }
2451
- /** Get connector event logs. `GET /analytics/connector_event_logs` */
2448
+ /** Get connector event logs. `GET /analytics/connector-event-logs` */
2452
2449
  async connectorEventLogs(params) {
2453
- return this.request("GET", "/analytics/connector_event_logs", { query: params });
2450
+ return this.request("GET", "/analytics/connector-event-logs", { query: params });
2454
2451
  }
2455
- /** Get routing event logs. `GET /analytics/routing_event_logs` */
2452
+ /** Get routing event logs. `GET /analytics/routing-event-logs` */
2456
2453
  async routingEventLogs(params) {
2457
- return this.request("GET", "/analytics/routing_event_logs", { query: params });
2454
+ return this.request("GET", "/analytics/routing-event-logs", { query: params });
2458
2455
  }
2459
- /** Get outgoing webhook event logs. `GET /analytics/outgoing_webhook_event_logs` */
2456
+ /** Get outgoing webhook event logs. `GET /analytics/outgoing-webhook-event-logs` */
2460
2457
  async outgoingWebhookEventLogs(params) {
2461
- return this.request("GET", "/analytics/outgoing_webhook_event_logs", { query: params });
2458
+ return this.request("GET", "/analytics/outgoing-webhook-event-logs", { query: params });
2462
2459
  }
2463
2460
  };
2464
2461
 
@@ -2512,18 +2509,18 @@ var FeatureMatrix = class {
2512
2509
  constructor(request) {
2513
2510
  this.request = request;
2514
2511
  }
2515
- /** Retrieve the feature matrix. `GET /feature_matrix` */
2512
+ /** Retrieve the feature matrix. `GET /feature-matrix` */
2516
2513
  async retrieve() {
2517
- return this.request("GET", "/feature_matrix");
2514
+ return this.request("GET", "/feature-matrix");
2518
2515
  }
2519
2516
  /**
2520
2517
  * Retrieve the feature matrix scoped to a merchant. Beta connectors
2521
2518
  * are filtered against the merchant's allowlist so the dashboard only
2522
2519
  * surfaces connectors the merchant can actually attach.
2523
- * `GET /feature_matrix/{merchantId}`
2520
+ * `GET /feature-matrix/{merchantId}`
2524
2521
  */
2525
2522
  async retrieveForMerchant(merchantId) {
2526
- return this.request("GET", `/feature_matrix/${encodeURIComponent(merchantId)}`);
2523
+ return this.request("GET", `/feature-matrix/${encodeURIComponent(merchantId)}`);
2527
2524
  }
2528
2525
  };
2529
2526
 
@@ -2555,9 +2552,9 @@ var Forex = class {
2555
2552
  async getRates(params) {
2556
2553
  return this.request("GET", "/forex/rates", { query: params });
2557
2554
  }
2558
- /** Convert from minor currency. `GET /forex/convert_from_minor` */
2555
+ /** Convert from minor currency. `GET /forex/convert-from-minor` */
2559
2556
  async convertFromMinor(params) {
2560
- return this.request("GET", "/forex/convert_from_minor", { query: params });
2557
+ return this.request("GET", "/forex/convert-from-minor", { query: params });
2561
2558
  }
2562
2559
  };
2563
2560