@artisan-commerce/builders 0.7.0-canary.19 → 0.7.0-canary.20
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 +9 -0
- package/dist/bundle.cjs.js +15 -10
- package/dist/bundle.cjs.js.map +1 -1
- package/dist/bundle.d.ts +14 -14
- package/dist/bundle.esm.js +15 -10
- package/dist/bundle.esm.js.map +1 -1
- package/dist/bundle.umd.js +15 -10
- package/dist/bundle.umd.js.map +1 -1
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,15 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
## [0.7.0-canary.20](https://bitbucket.org/tradesystem/artisn_sdk/compare/@artisan-commerce/builders@0.7.0-canary.19...@artisan-commerce/builders@0.7.0-canary.20) (2021-10-14)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Bug Fixes
|
|
10
|
+
|
|
11
|
+
* **global:** fix some payment types ([8000970](https://bitbucket.org/tradesystem/artisn_sdk/commit/80009700cd8664828b1236e8ad7cc90ce2fcb3e7))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
6
15
|
## [0.7.0-canary.19](https://bitbucket.org/tradesystem/artisn_sdk/compare/@artisan-commerce/builders@0.7.0-canary.18...@artisan-commerce/builders@0.7.0-canary.19) (2021-10-14)
|
|
7
16
|
|
|
8
17
|
**Note:** Version bump only for package @artisan-commerce/builders
|
package/dist/bundle.cjs.js
CHANGED
|
@@ -89428,7 +89428,8 @@ const buildStore = (overrides = {}) => {
|
|
|
89428
89428
|
location: buildStoreLocation(),
|
|
89429
89429
|
catalogues: genCatalogues(),
|
|
89430
89430
|
images: genCDNImages(void 0, { query: "store" }),
|
|
89431
|
-
distance: genNumber(20)
|
|
89431
|
+
distance: genNumber(20),
|
|
89432
|
+
polygons: null
|
|
89432
89433
|
}, overrides);
|
|
89433
89434
|
};
|
|
89434
89435
|
const buildAdditionalStoreInformation = (overrides = {}) => {
|
|
@@ -90238,7 +90239,11 @@ const genBasePaymentMethods = (quantity) => {
|
|
|
90238
90239
|
return genItems(buildBasePaymentMethod, quantity);
|
|
90239
90240
|
};
|
|
90240
90241
|
const buildPaymentMethod = (overrides = {}) => {
|
|
90241
|
-
const paymentNames = [
|
|
90242
|
+
const paymentNames = [
|
|
90243
|
+
"CASH",
|
|
90244
|
+
"CREDIT_CARD",
|
|
90245
|
+
"DATAPHONE"
|
|
90246
|
+
];
|
|
90242
90247
|
return __spreadValues(__spreadProps(__spreadValues({}, buildBasePaymentMethod()), {
|
|
90243
90248
|
name: chooseRandom(paymentNames),
|
|
90244
90249
|
image_url: genURL(),
|
|
@@ -90246,16 +90251,16 @@ const buildPaymentMethod = (overrides = {}) => {
|
|
|
90246
90251
|
external_id: genNumber(50).toString(),
|
|
90247
90252
|
external_code: genNumber(50),
|
|
90248
90253
|
parent_id: genNumber(50).toString(),
|
|
90249
|
-
methods:
|
|
90254
|
+
methods: genPaymentProviders()
|
|
90250
90255
|
}), overrides);
|
|
90251
90256
|
};
|
|
90252
90257
|
const genPaymentMethods = (quantity) => {
|
|
90253
90258
|
return genItems(buildPaymentMethod, quantity);
|
|
90254
90259
|
};
|
|
90255
|
-
const
|
|
90256
|
-
const
|
|
90260
|
+
const buildPaymentProvider = (overrides = {}) => {
|
|
90261
|
+
const providerNames = ["PayPhone", "Kushki", "Place to Pay", "Mercadopago"];
|
|
90257
90262
|
return __spreadValues(__spreadProps(__spreadValues({}, buildBasePaymentMethod()), {
|
|
90258
|
-
name: chooseRandom(
|
|
90263
|
+
name: chooseRandom(providerNames),
|
|
90259
90264
|
image_url: genURL(),
|
|
90260
90265
|
default: genBiasBoolean(0.6),
|
|
90261
90266
|
external_id: genNumber(50).toString(),
|
|
@@ -90265,8 +90270,8 @@ const buildCreditCardBrand = (overrides = {}) => {
|
|
|
90265
90270
|
cc_brands: genCreditCardMappings()
|
|
90266
90271
|
}), overrides);
|
|
90267
90272
|
};
|
|
90268
|
-
const
|
|
90269
|
-
return genItems(
|
|
90273
|
+
const genPaymentProviders = (quantity) => {
|
|
90274
|
+
return genItems(buildPaymentProvider, quantity);
|
|
90270
90275
|
};
|
|
90271
90276
|
const buildCreditCardMapping = (overrides = {}) => {
|
|
90272
90277
|
const cardsName = [
|
|
@@ -90308,8 +90313,8 @@ var payment_builder = /*#__PURE__*/Object.freeze({
|
|
|
90308
90313
|
genBasePaymentMethods: genBasePaymentMethods,
|
|
90309
90314
|
buildPaymentMethod: buildPaymentMethod,
|
|
90310
90315
|
genPaymentMethods: genPaymentMethods,
|
|
90311
|
-
|
|
90312
|
-
|
|
90316
|
+
buildPaymentProvider: buildPaymentProvider,
|
|
90317
|
+
genPaymentProviders: genPaymentProviders,
|
|
90313
90318
|
buildCreditCardMapping: buildCreditCardMapping,
|
|
90314
90319
|
genCreditCardMappings: genCreditCardMappings,
|
|
90315
90320
|
buildCardInscription: buildCardInscription,
|