@rebilly/instruments 7.3.2 → 7.4.1

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/CHANGELOG.md CHANGED
@@ -1,3 +1,17 @@
1
+ ## [7.4.1](https://github.com/Rebilly/rebilly/compare/instruments/core-v7.4.0...instruments/core-v7.4.1) (2023-11-09)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * **instruments:** Update error message ([#2190](https://github.com/Rebilly/rebilly/issues/2190)) ([168bdc1](https://github.com/Rebilly/rebilly/commit/168bdc1b8c825e0f72764acfc6a7e68f08058c93))
7
+
8
+ ## [7.4.0](https://github.com/Rebilly/rebilly/compare/instruments/core-v7.3.2...instruments/core-v7.4.0) (2023-11-07)
9
+
10
+
11
+ ### Features
12
+
13
+ * **js-sdk-generator:** use all spec for sdk generation ([#2129](https://github.com/Rebilly/rebilly/issues/2129)) ([1d28581](https://github.com/Rebilly/rebilly/commit/1d28581eca72f3ed6f75a610966366b5bd4f19fa))
14
+
1
15
  ## [7.3.2](https://github.com/Rebilly/rebilly/compare/instruments/core-v7.3.1...instruments/core-v7.3.2) (2023-10-27)
2
16
 
3
17
 
package/dist/index.js CHANGED
@@ -2749,7 +2749,7 @@ const errorTemplate = (error2) => {
2749
2749
  const title2 = "Error";
2750
2750
  function displayString(message = null) {
2751
2751
  if (message === null) {
2752
- message = "An unexpected error occurred";
2752
+ message = "An unexpected error has occurred";
2753
2753
  if (typeof error2 === "string") {
2754
2754
  message = error2;
2755
2755
  }
@@ -5349,7 +5349,7 @@ function cloneArrayDeep(val, instanceClone) {
5349
5349
  return res;
5350
5350
  }
5351
5351
  var cloneDeep_1 = cloneDeep;
5352
- const version = "54.3.1";
5352
+ const version = "54.4.0";
5353
5353
  let urlAlphabet = "useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict";
5354
5354
  let nanoid = (size2 = 21) => {
5355
5355
  let id2 = "";
@@ -5895,61 +5895,6 @@ function BroadcastMessagesResource({ apiHandler }) {
5895
5895
  }
5896
5896
  };
5897
5897
  }
5898
- function CashierCustomPropertySetsResource({ apiHandler }) {
5899
- return {
5900
- getAll({ limit = null, offset = null, filter = null, sort = null } = {}) {
5901
- const params = { limit, offset, filter, sort };
5902
- return apiHandler.getAll(`cashier-custom-property-sets`, params);
5903
- },
5904
- create({ id: id2 = "", data: data2 }) {
5905
- return apiHandler.create(`cashier-custom-property-sets/${id2}`, id2, data2);
5906
- },
5907
- get({ id: id2 }) {
5908
- return apiHandler.get(`cashier-custom-property-sets/${id2}`);
5909
- },
5910
- update({ id: id2, data: data2 }) {
5911
- return apiHandler.put(`cashier-custom-property-sets/${id2}`, data2);
5912
- },
5913
- delete({ id: id2 }) {
5914
- return apiHandler.delete(`cashier-custom-property-sets/${id2}`);
5915
- }
5916
- };
5917
- }
5918
- function CashierRequestsResource$1({ apiHandler }) {
5919
- return {
5920
- getAll({ limit = null, offset = null, filter = null, sort = null } = {}) {
5921
- const params = { limit, offset, filter, sort };
5922
- return apiHandler.getAll(`cashier-requests`, params);
5923
- },
5924
- create({ data: data2 }) {
5925
- return apiHandler.post(`cashier-requests`, data2);
5926
- },
5927
- get({ id: id2, expand = null }) {
5928
- const params = { expand };
5929
- return apiHandler.get(`cashier-requests/${id2}`, params);
5930
- }
5931
- };
5932
- }
5933
- function CashierStrategiesResource$1({ apiHandler }) {
5934
- return {
5935
- getAll({ limit = null, offset = null, filter = null, sort = null } = {}) {
5936
- const params = { limit, offset, filter, sort };
5937
- return apiHandler.getAll(`cashier-strategies`, params);
5938
- },
5939
- create({ id: id2 = "", data: data2 }) {
5940
- return apiHandler.create(`cashier-strategies/${id2}`, id2, data2);
5941
- },
5942
- get({ id: id2 }) {
5943
- return apiHandler.get(`cashier-strategies/${id2}`);
5944
- },
5945
- update({ id: id2, data: data2 }) {
5946
- return apiHandler.put(`cashier-strategies/${id2}`, data2);
5947
- },
5948
- delete({ id: id2 }) {
5949
- return apiHandler.delete(`cashier-strategies/${id2}`);
5950
- }
5951
- };
5952
- }
5953
5898
  function CheckoutFormsResource$1({ apiHandler }) {
5954
5899
  return {
5955
5900
  getAll({
@@ -6265,13 +6210,68 @@ function CustomersResource$1({ apiHandler }) {
6265
6210
  }
6266
6211
  };
6267
6212
  }
6268
- function DigitalWalletsResource({ apiHandler }) {
6213
+ function DepositCustomPropertySetsResource({ apiHandler }) {
6214
+ return {
6215
+ getAll({ limit = null, offset = null, filter = null, sort = null } = {}) {
6216
+ const params = { limit, offset, filter, sort };
6217
+ return apiHandler.getAll(`deposit-custom-property-sets`, params);
6218
+ },
6219
+ create({ id: id2 = "", data: data2 }) {
6220
+ return apiHandler.create(`deposit-custom-property-sets/${id2}`, id2, data2);
6221
+ },
6222
+ get({ id: id2 }) {
6223
+ return apiHandler.get(`deposit-custom-property-sets/${id2}`);
6224
+ },
6225
+ update({ id: id2, data: data2 }) {
6226
+ return apiHandler.put(`deposit-custom-property-sets/${id2}`, data2);
6227
+ },
6228
+ delete({ id: id2 }) {
6229
+ return apiHandler.delete(`deposit-custom-property-sets/${id2}`);
6230
+ }
6231
+ };
6232
+ }
6233
+ function DepositRequestsResource$1({ apiHandler }) {
6269
6234
  return {
6235
+ getAll({ limit = null, offset = null, filter = null, sort = null } = {}) {
6236
+ const params = { limit, offset, filter, sort };
6237
+ return apiHandler.getAll(`deposit-requests`, params);
6238
+ },
6270
6239
  create({ data: data2 }) {
6271
- return apiHandler.post(`digital-wallets/onboarding/apple-pay`, data2);
6240
+ return apiHandler.post(`deposit-requests`, data2);
6272
6241
  },
6242
+ get({ id: id2, expand = null }) {
6243
+ const params = { expand };
6244
+ return apiHandler.get(`deposit-requests/${id2}`, params);
6245
+ }
6246
+ };
6247
+ }
6248
+ function DepositStrategiesResource$1({ apiHandler }) {
6249
+ return {
6250
+ getAll({ limit = null, offset = null, filter = null, sort = null } = {}) {
6251
+ const params = { limit, offset, filter, sort };
6252
+ return apiHandler.getAll(`deposit-strategies`, params);
6253
+ },
6254
+ create({ id: id2 = "", data: data2 }) {
6255
+ return apiHandler.create(`deposit-strategies/${id2}`, id2, data2);
6256
+ },
6257
+ get({ id: id2 }) {
6258
+ return apiHandler.get(`deposit-strategies/${id2}`);
6259
+ },
6260
+ update({ id: id2, data: data2 }) {
6261
+ return apiHandler.put(`deposit-strategies/${id2}`, data2);
6262
+ },
6263
+ delete({ id: id2 }) {
6264
+ return apiHandler.delete(`deposit-strategies/${id2}`);
6265
+ }
6266
+ };
6267
+ }
6268
+ function DigitalWalletsResource({ apiHandler }) {
6269
+ return {
6273
6270
  validate({ data: data2 }) {
6274
6271
  return apiHandler.post(`digital-wallets/validation`, data2);
6272
+ },
6273
+ create({ data: data2 }) {
6274
+ return apiHandler.post(`digital-wallets/onboarding/apple-pay`, data2);
6275
6275
  }
6276
6276
  };
6277
6277
  }
@@ -7185,14 +7185,14 @@ function PlansResource$1({ apiHandler }) {
7185
7185
  }
7186
7186
  function PreviewsResource({ apiHandler }) {
7187
7187
  return {
7188
+ order({ data: data2 }) {
7189
+ return apiHandler.post(`previews/orders`, data2);
7190
+ },
7188
7191
  sendEmailRuleAction({ data: data2 }) {
7189
7192
  return apiHandler.post(`previews/rule-actions/send-email`, data2);
7190
7193
  },
7191
7194
  webhook({ data: data2 }) {
7192
7195
  return apiHandler.post(`previews/webhooks`, data2);
7193
- },
7194
- order({ data: data2 }) {
7195
- return apiHandler.post(`previews/orders`, data2);
7196
7196
  }
7197
7197
  };
7198
7198
  }
@@ -7947,11 +7947,6 @@ class ApiInstance {
7947
7947
  this.billingPortals = BillingPortalsResource$1({ apiHandler });
7948
7948
  this.blocklists = BlocklistsResource({ apiHandler });
7949
7949
  this.broadcastMessages = BroadcastMessagesResource({ apiHandler });
7950
- this.cashierCustomPropertySets = CashierCustomPropertySetsResource({
7951
- apiHandler
7952
- });
7953
- this.cashierRequests = CashierRequestsResource$1({ apiHandler });
7954
- this.cashierStrategies = CashierStrategiesResource$1({ apiHandler });
7955
7950
  this.checkoutForms = CheckoutFormsResource$1({ apiHandler });
7956
7951
  this.coupons = CouponsResource({ apiHandler });
7957
7952
  this.creditMemos = CreditMemosResource({ apiHandler });
@@ -7959,6 +7954,11 @@ class ApiInstance {
7959
7954
  this.customFields = CustomFieldsResource$1({ apiHandler });
7960
7955
  this.customerAuthentication = CustomerAuthenticationResource({ apiHandler });
7961
7956
  this.customers = CustomersResource$1({ apiHandler });
7957
+ this.depositCustomPropertySets = DepositCustomPropertySetsResource({
7958
+ apiHandler
7959
+ });
7960
+ this.depositRequests = DepositRequestsResource$1({ apiHandler });
7961
+ this.depositStrategies = DepositStrategiesResource$1({ apiHandler });
7962
7962
  this.digitalWallets = DigitalWalletsResource({ apiHandler });
7963
7963
  this.disputes = DisputesResource({ apiHandler });
7964
7964
  this.emailDeliverySettings = EmailDeliverySettingsResource({ apiHandler });
@@ -8500,40 +8500,40 @@ function BillingPortalsResource({ apiHandler }) {
8500
8500
  }
8501
8501
  };
8502
8502
  }
8503
- function CashierDepositResource({ apiHandler }) {
8503
+ function CheckoutFormsResource({ apiHandler }) {
8504
8504
  return {
8505
- create({ data: data2 }) {
8506
- return apiHandler.post(`cashier-deposit`, data2);
8505
+ get({ id: id2 }) {
8506
+ return apiHandler.get(`checkout-forms/${id2}`);
8507
8507
  }
8508
8508
  };
8509
8509
  }
8510
- function CashierRequestsResource({ apiHandler }) {
8510
+ function CustomFieldsResource({ apiHandler }) {
8511
8511
  return {
8512
- get({ id: id2, expand = null }) {
8513
- const params = { expand };
8514
- return apiHandler.get(`cashier-requests/${id2}`, params);
8512
+ getAll({ resource, limit = null, offset = null }) {
8513
+ const params = { limit, offset };
8514
+ return apiHandler.getAll(`custom-fields/${resource}`, params);
8515
8515
  }
8516
8516
  };
8517
8517
  }
8518
- function CashierStrategiesResource({ apiHandler }) {
8518
+ function DepositRequestsResource({ apiHandler }) {
8519
8519
  return {
8520
- get({ id: id2 }) {
8521
- return apiHandler.get(`cashier-strategies/${id2}`);
8520
+ get({ id: id2, expand = null }) {
8521
+ const params = { expand };
8522
+ return apiHandler.get(`deposit-requests/${id2}`, params);
8522
8523
  }
8523
8524
  };
8524
8525
  }
8525
- function CheckoutFormsResource({ apiHandler }) {
8526
+ function DepositResource({ apiHandler }) {
8526
8527
  return {
8527
- get({ id: id2 }) {
8528
- return apiHandler.get(`checkout-forms/${id2}`);
8528
+ create({ data: data2 }) {
8529
+ return apiHandler.post(`deposit`, data2);
8529
8530
  }
8530
8531
  };
8531
8532
  }
8532
- function CustomFieldsResource({ apiHandler }) {
8533
+ function DepositStrategiesResource({ apiHandler }) {
8533
8534
  return {
8534
- getAll({ resource, limit = null, offset = null }) {
8535
- const params = { limit, offset };
8536
- return apiHandler.getAll(`custom-fields/${resource}`, params);
8535
+ get({ id: id2 }) {
8536
+ return apiHandler.get(`deposit-strategies/${id2}`);
8537
8537
  }
8538
8538
  };
8539
8539
  }
@@ -8776,11 +8776,11 @@ class StorefrontApiInstance {
8776
8776
  this.account = AccountResource({ apiHandler });
8777
8777
  this.authorization = AuthorizationResource({ apiHandler });
8778
8778
  this.billingPortals = BillingPortalsResource({ apiHandler });
8779
- this.cashierDeposit = CashierDepositResource({ apiHandler });
8780
- this.cashierRequests = CashierRequestsResource({ apiHandler });
8781
- this.cashierStrategies = CashierStrategiesResource({ apiHandler });
8782
8779
  this.checkoutForms = CheckoutFormsResource({ apiHandler });
8783
8780
  this.customFields = CustomFieldsResource({ apiHandler });
8781
+ this.depositRequests = DepositRequestsResource({ apiHandler });
8782
+ this.deposit = DepositResource({ apiHandler });
8783
+ this.depositStrategies = DepositStrategiesResource({ apiHandler });
8784
8784
  this.invoices = InvoicesResource({ apiHandler });
8785
8785
  this.kycDocuments = KycDocumentsResource({ apiHandler });
8786
8786
  this.kycRequests = KycRequestsResource({ apiHandler });
@@ -11193,6 +11193,25 @@ const paymentMethods = [
11193
11193
  }
11194
11194
  ]
11195
11195
  },
11196
+ {
11197
+ apiName: "CCAvenue",
11198
+ name: "CCAvenue",
11199
+ landscapeLogo: "https://app.rebilly.com/static/payment-methods/landscape/CCAvenue.svg",
11200
+ portraitLogo: null,
11201
+ summary: "CCAvenue Checkout offers a smooth, fast and frictionless buying experience.\n",
11202
+ description: "CCAvenue Checkout offers a smooth, fast and frictionless buying experience.\n",
11203
+ countries: {
11204
+ mode: "unknown",
11205
+ values: []
11206
+ },
11207
+ storefrontEnabled: true,
11208
+ _links: [
11209
+ {
11210
+ rel: "self",
11211
+ href: "https://api.rebilly.com/payment-methods/CCAvenue"
11212
+ }
11213
+ ]
11214
+ },
11196
11215
  {
11197
11216
  apiName: "CODVoucher",
11198
11217
  name: "CODVoucher",
@@ -14270,7 +14289,7 @@ async function fetchDepositRequest({
14270
14289
  throw new Error("Invalid payload.");
14271
14290
  }
14272
14291
  state.storefront.setSessionToken(state.options.jwt);
14273
- const { fields } = await state.storefront.cashierRequests.get(data2);
14292
+ const { fields } = await state.storefront.depositRequests.get(data2);
14274
14293
  return new DepositRequestModel(fields);
14275
14294
  });
14276
14295
  }
@@ -23176,7 +23195,7 @@ function handleComputedProperty(options) {
23176
23195
  var _a;
23177
23196
  return Object.assign({}, options, {
23178
23197
  _computed: {
23179
- version: "7.3.1",
23198
+ version: "7.4.0",
23180
23199
  paymentMethodsUrl: ((_a = options._dev) == null ? void 0 : _a.paymentMethodsUrl) ?? "https://forms.secure-payments.app"
23181
23200
  }
23182
23201
  });
@@ -26324,7 +26343,7 @@ class RebillyInstrumentsInstance {
26324
26343
  await show({ componentName, payload });
26325
26344
  }
26326
26345
  get version() {
26327
- return `RebillyInstruments Ver.${"7.3.1"}`;
26346
+ return `RebillyInstruments Ver.${"7.4.0"}`;
26328
26347
  }
26329
26348
  on(eventName, callback) {
26330
26349
  on({ eventName, callback });