@flowio/api-factories 0.0.51 → 0.0.52
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/cjs/api.js +3 -3
- package/dist/esm/api.js +3 -3
- package/package.json +2 -2
- package/src/api.ts +3 -3
package/dist/cjs/api.js
CHANGED
|
@@ -64,7 +64,7 @@ var factories = {
|
|
|
64
64
|
string: function () { return faker_1.default.datatype.string(); },
|
|
65
65
|
unit: function () { return undefined; },
|
|
66
66
|
uuid: function () { return faker_1.default.datatype.uuid(); },
|
|
67
|
-
'io.flow.apple.pay.v0.enums.apple_pay_contact_field': function () { return faker_1.default.helpers.arrayElement(['email', 'name', 'phone', '
|
|
67
|
+
'io.flow.apple.pay.v0.enums.apple_pay_contact_field': function () { return faker_1.default.helpers.arrayElement(['email', 'name', 'phone', 'postalAddress', 'phoneticName']); },
|
|
68
68
|
'io.flow.apple.pay.v0.enums.apple_pay_line_item_type': function () { return faker_1.default.helpers.arrayElement(['final', 'pending']); },
|
|
69
69
|
'io.flow.apple.pay.v0.enums.apple_pay_merchant_capability': function () { return faker_1.default.helpers.arrayElement(['supports3DS', 'supportsCredit', 'supportsDebit', 'supportsEMV']); },
|
|
70
70
|
'io.flow.apple.pay.v0.enums.apple_pay_shipping_type': function () { return faker_1.default.helpers.arrayElement(['shipping', 'delivery', 'store_pickup', 'service_pickup']); },
|
|
@@ -80,7 +80,7 @@ var factories = {
|
|
|
80
80
|
'io.flow.apple.pay.v0.models.apple_pay_line_item': function () { return ({
|
|
81
81
|
label: factories.string(),
|
|
82
82
|
type: factories['io.flow.apple.pay.v0.enums.apple_pay_line_item_type'](),
|
|
83
|
-
amount: factories.
|
|
83
|
+
amount: factories.string(),
|
|
84
84
|
}); },
|
|
85
85
|
'io.flow.apple.pay.v0.models.apple_pay_payment_contact': function () { return ({
|
|
86
86
|
email_address: factories.string(),
|
|
@@ -127,7 +127,7 @@ var factories = {
|
|
|
127
127
|
'io.flow.apple.pay.v0.models.apple_pay_shipping_method': function () { return ({
|
|
128
128
|
label: factories.string(),
|
|
129
129
|
detail: factories.string(),
|
|
130
|
-
amount: factories.
|
|
130
|
+
amount: factories.string(),
|
|
131
131
|
identifier: factories.string(),
|
|
132
132
|
}); },
|
|
133
133
|
'io.flow.google.pay.v0.enums.auth_method': function () { return faker_1.default.helpers.arrayElement(['PAN_ONLY', 'CRYPTOGRAM_3DS']); },
|
package/dist/esm/api.js
CHANGED
|
@@ -25,7 +25,7 @@ var factories = {
|
|
|
25
25
|
string: function () { return faker.datatype.string(); },
|
|
26
26
|
unit: function () { return undefined; },
|
|
27
27
|
uuid: function () { return faker.datatype.uuid(); },
|
|
28
|
-
'io.flow.apple.pay.v0.enums.apple_pay_contact_field': function () { return faker.helpers.arrayElement(['email', 'name', 'phone', '
|
|
28
|
+
'io.flow.apple.pay.v0.enums.apple_pay_contact_field': function () { return faker.helpers.arrayElement(['email', 'name', 'phone', 'postalAddress', 'phoneticName']); },
|
|
29
29
|
'io.flow.apple.pay.v0.enums.apple_pay_line_item_type': function () { return faker.helpers.arrayElement(['final', 'pending']); },
|
|
30
30
|
'io.flow.apple.pay.v0.enums.apple_pay_merchant_capability': function () { return faker.helpers.arrayElement(['supports3DS', 'supportsCredit', 'supportsDebit', 'supportsEMV']); },
|
|
31
31
|
'io.flow.apple.pay.v0.enums.apple_pay_shipping_type': function () { return faker.helpers.arrayElement(['shipping', 'delivery', 'store_pickup', 'service_pickup']); },
|
|
@@ -41,7 +41,7 @@ var factories = {
|
|
|
41
41
|
'io.flow.apple.pay.v0.models.apple_pay_line_item': function () { return ({
|
|
42
42
|
label: factories.string(),
|
|
43
43
|
type: factories['io.flow.apple.pay.v0.enums.apple_pay_line_item_type'](),
|
|
44
|
-
amount: factories.
|
|
44
|
+
amount: factories.string(),
|
|
45
45
|
}); },
|
|
46
46
|
'io.flow.apple.pay.v0.models.apple_pay_payment_contact': function () { return ({
|
|
47
47
|
email_address: factories.string(),
|
|
@@ -88,7 +88,7 @@ var factories = {
|
|
|
88
88
|
'io.flow.apple.pay.v0.models.apple_pay_shipping_method': function () { return ({
|
|
89
89
|
label: factories.string(),
|
|
90
90
|
detail: factories.string(),
|
|
91
|
-
amount: factories.
|
|
91
|
+
amount: factories.string(),
|
|
92
92
|
identifier: factories.string(),
|
|
93
93
|
}); },
|
|
94
94
|
'io.flow.google.pay.v0.enums.auth_method': function () { return faker.helpers.arrayElement(['PAN_ONLY', 'CRYPTOGRAM_3DS']); },
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@flowio/api-factories",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.52",
|
|
4
4
|
"description": "Flow API mock data factories",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"flow",
|
|
@@ -36,5 +36,5 @@
|
|
|
36
36
|
"@faker-js/faker": "^6.2.0",
|
|
37
37
|
"@flowio/api-types": "*"
|
|
38
38
|
},
|
|
39
|
-
"gitHead": "
|
|
39
|
+
"gitHead": "f832292109d38b700b765626a6687b1dc7c308b3"
|
|
40
40
|
}
|
package/src/api.ts
CHANGED
|
@@ -30,7 +30,7 @@ const factories = {
|
|
|
30
30
|
string: () => faker.datatype.string(),
|
|
31
31
|
unit: () => undefined,
|
|
32
32
|
uuid: () => faker.datatype.uuid(),
|
|
33
|
-
'io.flow.apple.pay.v0.enums.apple_pay_contact_field': (): io.flow.apple.pay.v0.enums.ApplePayContactField => faker.helpers.arrayElement(['email', 'name', 'phone', '
|
|
33
|
+
'io.flow.apple.pay.v0.enums.apple_pay_contact_field': (): io.flow.apple.pay.v0.enums.ApplePayContactField => faker.helpers.arrayElement(['email', 'name', 'phone', 'postalAddress', 'phoneticName']),
|
|
34
34
|
'io.flow.apple.pay.v0.enums.apple_pay_line_item_type': (): io.flow.apple.pay.v0.enums.ApplePayLineItemType => faker.helpers.arrayElement(['final', 'pending']),
|
|
35
35
|
'io.flow.apple.pay.v0.enums.apple_pay_merchant_capability': (): io.flow.apple.pay.v0.enums.ApplePayMerchantCapability => faker.helpers.arrayElement(['supports3DS', 'supportsCredit', 'supportsDebit', 'supportsEMV']),
|
|
36
36
|
'io.flow.apple.pay.v0.enums.apple_pay_shipping_type': (): io.flow.apple.pay.v0.enums.ApplePayShippingType => faker.helpers.arrayElement(['shipping', 'delivery', 'store_pickup', 'service_pickup']),
|
|
@@ -48,7 +48,7 @@ const factories = {
|
|
|
48
48
|
'io.flow.apple.pay.v0.models.apple_pay_line_item': (): io.flow.apple.pay.v0.models.ApplePayLineItem => ({
|
|
49
49
|
label: factories.string(),
|
|
50
50
|
type: factories['io.flow.apple.pay.v0.enums.apple_pay_line_item_type'](),
|
|
51
|
-
amount: factories.
|
|
51
|
+
amount: factories.string(),
|
|
52
52
|
}),
|
|
53
53
|
|
|
54
54
|
'io.flow.apple.pay.v0.models.apple_pay_payment_contact': (): io.flow.apple.pay.v0.models.ApplePayPaymentContact => ({
|
|
@@ -107,7 +107,7 @@ const factories = {
|
|
|
107
107
|
'io.flow.apple.pay.v0.models.apple_pay_shipping_method': (): io.flow.apple.pay.v0.models.ApplePayShippingMethod => ({
|
|
108
108
|
label: factories.string(),
|
|
109
109
|
detail: factories.string(),
|
|
110
|
-
amount: factories.
|
|
110
|
+
amount: factories.string(),
|
|
111
111
|
identifier: factories.string(),
|
|
112
112
|
}),
|
|
113
113
|
|