@rebilly/instruments 7.3.2 → 7.4.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/CHANGELOG.md +7 -0
- package/dist/index.js +84 -84
- package/dist/index.min.js +4 -4
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,10 @@
|
|
|
1
|
+
## [7.4.0](https://github.com/Rebilly/rebilly/compare/instruments/core-v7.3.2...instruments/core-v7.4.0) (2023-11-07)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Features
|
|
5
|
+
|
|
6
|
+
* **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))
|
|
7
|
+
|
|
1
8
|
## [7.3.2](https://github.com/Rebilly/rebilly/compare/instruments/core-v7.3.1...instruments/core-v7.3.2) (2023-10-27)
|
|
2
9
|
|
|
3
10
|
|
package/dist/index.js
CHANGED
|
@@ -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.
|
|
5352
|
+
const version = "54.3.2";
|
|
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,6 +6210,61 @@ function CustomersResource$1({ apiHandler }) {
|
|
|
6265
6210
|
}
|
|
6266
6211
|
};
|
|
6267
6212
|
}
|
|
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 }) {
|
|
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
|
+
},
|
|
6239
|
+
create({ data: data2 }) {
|
|
6240
|
+
return apiHandler.post(`deposit-requests`, data2);
|
|
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
6268
|
function DigitalWalletsResource({ apiHandler }) {
|
|
6269
6269
|
return {
|
|
6270
6270
|
create({ data: data2 }) {
|
|
@@ -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
|
|
8503
|
+
function CheckoutFormsResource({ apiHandler }) {
|
|
8504
8504
|
return {
|
|
8505
|
-
|
|
8506
|
-
return apiHandler.
|
|
8505
|
+
get({ id: id2 }) {
|
|
8506
|
+
return apiHandler.get(`checkout-forms/${id2}`);
|
|
8507
8507
|
}
|
|
8508
8508
|
};
|
|
8509
8509
|
}
|
|
8510
|
-
function
|
|
8510
|
+
function CustomFieldsResource({ apiHandler }) {
|
|
8511
8511
|
return {
|
|
8512
|
-
|
|
8513
|
-
const params = {
|
|
8514
|
-
return apiHandler.
|
|
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
|
|
8518
|
+
function DepositRequestsResource({ apiHandler }) {
|
|
8519
8519
|
return {
|
|
8520
|
-
get({ id: id2 }) {
|
|
8521
|
-
|
|
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
|
|
8526
|
+
function DepositResource({ apiHandler }) {
|
|
8526
8527
|
return {
|
|
8527
|
-
|
|
8528
|
-
return apiHandler.
|
|
8528
|
+
create({ data: data2 }) {
|
|
8529
|
+
return apiHandler.post(`deposit`, data2);
|
|
8529
8530
|
}
|
|
8530
8531
|
};
|
|
8531
8532
|
}
|
|
8532
|
-
function
|
|
8533
|
+
function DepositStrategiesResource({ apiHandler }) {
|
|
8533
8534
|
return {
|
|
8534
|
-
|
|
8535
|
-
|
|
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 });
|
|
@@ -14270,7 +14270,7 @@ async function fetchDepositRequest({
|
|
|
14270
14270
|
throw new Error("Invalid payload.");
|
|
14271
14271
|
}
|
|
14272
14272
|
state.storefront.setSessionToken(state.options.jwt);
|
|
14273
|
-
const { fields } = await state.storefront.
|
|
14273
|
+
const { fields } = await state.storefront.depositRequests.get(data2);
|
|
14274
14274
|
return new DepositRequestModel(fields);
|
|
14275
14275
|
});
|
|
14276
14276
|
}
|
|
@@ -23176,7 +23176,7 @@ function handleComputedProperty(options) {
|
|
|
23176
23176
|
var _a;
|
|
23177
23177
|
return Object.assign({}, options, {
|
|
23178
23178
|
_computed: {
|
|
23179
|
-
version: "7.3.
|
|
23179
|
+
version: "7.3.2",
|
|
23180
23180
|
paymentMethodsUrl: ((_a = options._dev) == null ? void 0 : _a.paymentMethodsUrl) ?? "https://forms.secure-payments.app"
|
|
23181
23181
|
}
|
|
23182
23182
|
});
|
|
@@ -26324,7 +26324,7 @@ class RebillyInstrumentsInstance {
|
|
|
26324
26324
|
await show({ componentName, payload });
|
|
26325
26325
|
}
|
|
26326
26326
|
get version() {
|
|
26327
|
-
return `RebillyInstruments Ver.${"7.3.
|
|
26327
|
+
return `RebillyInstruments Ver.${"7.3.2"}`;
|
|
26328
26328
|
}
|
|
26329
26329
|
on(eventName, callback) {
|
|
26330
26330
|
on({ eventName, callback });
|