@flowio/api-factories 0.0.64 → 0.0.66
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 +217 -25
- package/dist/esm/api.js +194 -13
- package/dist/types/api.d.ts +12 -1
- package/package.json +2 -2
- package/src/api.ts +221 -15
package/src/api.ts
CHANGED
|
@@ -30,10 +30,10 @@ 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', 'postal_address', 'phonetic_name']),
|
|
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
|
-
'io.flow.apple.pay.v0.enums.apple_pay_shipping_type': (): io.flow.apple.pay.v0.enums.ApplePayShippingType => faker.helpers.arrayElement(['shipping', 'delivery', '
|
|
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']),
|
|
37
37
|
|
|
38
38
|
'io.flow.apple.pay.v0.enums.apple_pay_supported_networks': (): io.flow.apple.pay.v0.enums.ApplePaySupportedNetworks => faker.helpers.arrayElement([
|
|
39
39
|
'amex',
|
|
@@ -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.decimal(),
|
|
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.decimal(),
|
|
111
111
|
identifier: factories.string(),
|
|
112
112
|
}),
|
|
113
113
|
|
|
@@ -141,8 +141,15 @@ const factories = {
|
|
|
141
141
|
return f();
|
|
142
142
|
},
|
|
143
143
|
|
|
144
|
-
'io.flow.billing.true.up.v0.enums.true_up_surcharge_type': (): io.flow.billing.RESERVED_WORD_true.up.v0.enums.TrueUpSurchargeType => faker.helpers.arrayElement([
|
|
145
|
-
|
|
144
|
+
'io.flow.billing.true.up.v0.enums.true_up_surcharge_type': (): io.flow.billing.RESERVED_WORD_true.up.v0.enums.TrueUpSurchargeType => faker.helpers.arrayElement([
|
|
145
|
+
'fuel',
|
|
146
|
+
'remote_area',
|
|
147
|
+
'oversize',
|
|
148
|
+
'duties_paid',
|
|
149
|
+
'emergency',
|
|
150
|
+
'peak',
|
|
151
|
+
'address_correction',
|
|
152
|
+
]),
|
|
146
153
|
|
|
147
154
|
'io.flow.billing.true.up.v0.models.label_base': (): io.flow.billing.RESERVED_WORD_true.up.v0.models.LabelBase => ({
|
|
148
155
|
amount: factories.decimal(),
|
|
@@ -164,11 +171,44 @@ const factories = {
|
|
|
164
171
|
metadata: factories['io.flow.billing.true.up.v0.models.label_metadata'](),
|
|
165
172
|
}),
|
|
166
173
|
|
|
174
|
+
'io.flow.billing.true.up.v0.models.label_invoice_response_file': (): io.flow.billing.RESERVED_WORD_true.up.v0.models.LabelInvoiceResponseFile => ({
|
|
175
|
+
id: factories.string(),
|
|
176
|
+
url: factories.string(),
|
|
177
|
+
created_at: factories.date_time_iso_8601(),
|
|
178
|
+
result: factories['io.flow.billing.true.up.v0.models.label_invoice_response_file_result'](),
|
|
179
|
+
}),
|
|
180
|
+
|
|
181
|
+
'io.flow.billing.true.up.v0.models.label_invoice_response_file_form': (): io.flow.billing.RESERVED_WORD_true.up.v0.models.LabelInvoiceResponseFileForm => ({
|
|
182
|
+
url: factories.string(),
|
|
183
|
+
}),
|
|
184
|
+
|
|
185
|
+
'io.flow.billing.true.up.v0.models.label_invoice_response_file_result': (): io.flow.billing.RESERVED_WORD_true.up.v0.models.LabelInvoiceResponseFileResult => ({
|
|
186
|
+
processed_at: factories.date_time_iso_8601(),
|
|
187
|
+
number_lines_successful: factories.long(),
|
|
188
|
+
number_lines_with_errors: factories.long(),
|
|
189
|
+
errors_url: factories.string(),
|
|
190
|
+
}),
|
|
191
|
+
|
|
192
|
+
'io.flow.billing.true.up.v0.models.label_invoice_response_form': (): io.flow.billing.RESERVED_WORD_true.up.v0.models.LabelInvoiceResponseForm => ({
|
|
193
|
+
id: factories.string(),
|
|
194
|
+
label_invoice_request_id: factories.string(),
|
|
195
|
+
units: factories['io.flow.billing.true.up.v0.models.label_response_units'](),
|
|
196
|
+
base: factories['io.flow.billing.true.up.v0.models.label_base'](),
|
|
197
|
+
surcharges: factories['io.flow.billing.true.up.v0.models.label_surcharge_form'](),
|
|
198
|
+
total: factories.decimal(),
|
|
199
|
+
}),
|
|
200
|
+
|
|
167
201
|
'io.flow.billing.true.up.v0.models.label_metadata': (): io.flow.billing.RESERVED_WORD_true.up.v0.models.LabelMetadata => ({
|
|
168
202
|
ratecard: factories['io.flow.billing.true.up.v0.models.metadata_ratecard'](),
|
|
169
203
|
weights: factories['io.flow.billing.true.up.v0.models.metadata_weights'](),
|
|
170
204
|
}),
|
|
171
205
|
|
|
206
|
+
'io.flow.billing.true.up.v0.models.label_response_units': (): io.flow.billing.RESERVED_WORD_true.up.v0.models.LabelResponseUnits => ({
|
|
207
|
+
currency: factories.string(),
|
|
208
|
+
weight: factories['io.flow.units.v0.enums.unit_of_weight'](),
|
|
209
|
+
length: factories['io.flow.units.v0.enums.unit_of_length'](),
|
|
210
|
+
}),
|
|
211
|
+
|
|
172
212
|
'io.flow.billing.true.up.v0.models.label_surcharge': (): io.flow.billing.RESERVED_WORD_true.up.v0.models.LabelSurcharge => ({
|
|
173
213
|
amount: factories.decimal(),
|
|
174
214
|
type: factories['io.flow.billing.true.up.v0.enums.true_up_surcharge_type'](),
|
|
@@ -190,6 +230,22 @@ const factories = {
|
|
|
190
230
|
percentage: factories.decimal(),
|
|
191
231
|
}),
|
|
192
232
|
|
|
233
|
+
'io.flow.billing.true.up.v0.models.label_surcharge_form': (): io.flow.billing.RESERVED_WORD_true.up.v0.models.LabelSurchargeForm => ({
|
|
234
|
+
fuel: factories['io.flow.billing.true.up.v0.models.label_surcharge_single_form'](),
|
|
235
|
+
remote_area: factories['io.flow.billing.true.up.v0.models.label_surcharge_single_form'](),
|
|
236
|
+
oversize: factories['io.flow.billing.true.up.v0.models.label_surcharge_single_form'](),
|
|
237
|
+
duties_paid: factories['io.flow.billing.true.up.v0.models.label_surcharge_single_form'](),
|
|
238
|
+
emergency: factories['io.flow.billing.true.up.v0.models.label_surcharge_single_form'](),
|
|
239
|
+
peak: factories['io.flow.billing.true.up.v0.models.label_surcharge_single_form'](),
|
|
240
|
+
address_correction: factories['io.flow.billing.true.up.v0.models.label_surcharge_single_form'](),
|
|
241
|
+
}),
|
|
242
|
+
|
|
243
|
+
'io.flow.billing.true.up.v0.models.label_surcharge_single_form': (): io.flow.billing.RESERVED_WORD_true.up.v0.models.LabelSurchargeSingleForm => ({
|
|
244
|
+
amount: factories.decimal(),
|
|
245
|
+
percentage: factories.decimal(),
|
|
246
|
+
fee_per_weight_unit: factories.decimal(),
|
|
247
|
+
}),
|
|
248
|
+
|
|
193
249
|
'io.flow.billing.true.up.v0.models.label_units': (): io.flow.billing.RESERVED_WORD_true.up.v0.models.LabelUnits => ({
|
|
194
250
|
currency: factories.string(),
|
|
195
251
|
weight: factories['io.flow.units.v0.enums.unit_of_weight'](),
|
|
@@ -207,7 +263,6 @@ const factories = {
|
|
|
207
263
|
}),
|
|
208
264
|
|
|
209
265
|
'io.flow.billing.true.up.v0.models.metadata_weights': (): io.flow.billing.RESERVED_WORD_true.up.v0.models.MetadataWeights => ({
|
|
210
|
-
selected: factories['io.flow.billing.true.up.v0.enums.weight_selection'](),
|
|
211
266
|
dead: factories['io.flow.billing.true.up.v0.models.weights_dead'](),
|
|
212
267
|
dimensional: factories['io.flow.billing.true.up.v0.models.weights_dimensional'](),
|
|
213
268
|
}),
|
|
@@ -1585,12 +1640,17 @@ const factories = {
|
|
|
1585
1640
|
'charge.failed',
|
|
1586
1641
|
'charge.pending',
|
|
1587
1642
|
'charge.refunded',
|
|
1588
|
-
'charge.
|
|
1643
|
+
'charge.expired',
|
|
1589
1644
|
'charge.succeeded',
|
|
1590
1645
|
'charge.updated',
|
|
1646
|
+
'charge.refund.updated',
|
|
1647
|
+
'payment_intent.created',
|
|
1591
1648
|
'payment_intent.amount_capturable_updated',
|
|
1592
1649
|
'payment_intent.payment_failed',
|
|
1593
1650
|
'payment_intent.succeeded',
|
|
1651
|
+
'payment_intent.requires_action',
|
|
1652
|
+
'payment_intent.canceled',
|
|
1653
|
+
'payment_intent.processing',
|
|
1594
1654
|
'source.canceled',
|
|
1595
1655
|
'source.chargeable',
|
|
1596
1656
|
'source.failed',
|
|
@@ -1706,6 +1766,16 @@ const factories = {
|
|
|
1706
1766
|
]),
|
|
1707
1767
|
|
|
1708
1768
|
'io.flow.stripe.v0.enums.source_usage_type': (): io.flow.stripe.v0.enums.SourceUsageType => faker.helpers.arrayElement(['reusable', 'single_use']),
|
|
1769
|
+
|
|
1770
|
+
'io.flow.stripe.v0.enums.stored_credential_transaction_type': (): io.flow.stripe.v0.enums.StoredCredentialTransactionType => faker.helpers.arrayElement([
|
|
1771
|
+
'setup_on_session',
|
|
1772
|
+
'setup_off_session_recurring',
|
|
1773
|
+
'setup_off_session_unscheduled',
|
|
1774
|
+
'stored_on_session',
|
|
1775
|
+
'stored_on_session_recurring',
|
|
1776
|
+
'stored_on_session_unscheduled',
|
|
1777
|
+
]),
|
|
1778
|
+
|
|
1709
1779
|
'io.flow.stripe.v0.enums.three_d_secure_support': (): io.flow.stripe.v0.enums.ThreeDSecureSupport => faker.helpers.arrayElement(['required', 'recommended', 'optional', 'not_supported']),
|
|
1710
1780
|
'io.flow.stripe.v0.enums.three_ds_authentication_flow': (): io.flow.stripe.v0.enums.ThreeDsAuthenticationFlow => faker.helpers.arrayElement(['challenge', 'frictionless']),
|
|
1711
1781
|
|
|
@@ -1816,6 +1886,11 @@ const factories = {
|
|
|
1816
1886
|
cvc_check: factories['io.flow.stripe.v0.enums.check_outcome'](),
|
|
1817
1887
|
}),
|
|
1818
1888
|
|
|
1889
|
+
'io.flow.stripe.v0.models.card_networks': (): io.flow.stripe.v0.models.CardNetworks => ({
|
|
1890
|
+
available: arrayOf(() => factories.string()),
|
|
1891
|
+
preferred: factories.string(),
|
|
1892
|
+
}),
|
|
1893
|
+
|
|
1819
1894
|
'io.flow.stripe.v0.models.card_request': (): io.flow.stripe.v0.models.CardRequest => ({
|
|
1820
1895
|
object: factories.string(),
|
|
1821
1896
|
exp_month: factories.string(),
|
|
@@ -1836,6 +1911,7 @@ const factories = {
|
|
|
1836
1911
|
id: factories.string(),
|
|
1837
1912
|
amount: factories.long(),
|
|
1838
1913
|
amount_refunded: factories.long(),
|
|
1914
|
+
authorization_code: factories.string(),
|
|
1839
1915
|
captured: factories.boolean(),
|
|
1840
1916
|
created: factories.long(),
|
|
1841
1917
|
currency: factories.string(),
|
|
@@ -1886,6 +1962,7 @@ const factories = {
|
|
|
1886
1962
|
id: factories.string(),
|
|
1887
1963
|
amount: factories.long(),
|
|
1888
1964
|
amount_refunded: factories.long(),
|
|
1965
|
+
authorization_code: factories.string(),
|
|
1889
1966
|
captured: factories.boolean(),
|
|
1890
1967
|
created: factories.long(),
|
|
1891
1968
|
currency: factories.string(),
|
|
@@ -1985,6 +2062,8 @@ const factories = {
|
|
|
1985
2062
|
order_number: factories.string(),
|
|
1986
2063
|
authorization_id: factories.string(),
|
|
1987
2064
|
organization_id: factories.string(),
|
|
2065
|
+
payment_request_id: factories.string(),
|
|
2066
|
+
payment_request_order_reference: factories.string(),
|
|
1988
2067
|
}),
|
|
1989
2068
|
|
|
1990
2069
|
'io.flow.stripe.v0.models.network_token_used': (): io.flow.stripe.v0.models.NetworkTokenUsed => ({
|
|
@@ -2105,6 +2184,7 @@ const factories = {
|
|
|
2105
2184
|
'io.flow.stripe.v0.models.payment_intent_confirmation_form': (): io.flow.stripe.v0.models.PaymentIntentConfirmationForm => ({
|
|
2106
2185
|
off_session: factories.boolean(),
|
|
2107
2186
|
payment_method: factories.string(),
|
|
2187
|
+
payment_method_data: factories['io.flow.stripe.v0.unions.payment_method_data'](),
|
|
2108
2188
|
payment_method_options: factories['io.flow.stripe.v0.models.payment_method_options'](),
|
|
2109
2189
|
payment_method_types: arrayOf(() => factories.string()),
|
|
2110
2190
|
receipt_email: factories.string(),
|
|
@@ -2125,6 +2205,7 @@ const factories = {
|
|
|
2125
2205
|
metadata: factories['io.flow.stripe.v0.models.metadata'](),
|
|
2126
2206
|
on_behalf_of: factories.string(),
|
|
2127
2207
|
payment_method: factories.string(),
|
|
2208
|
+
payment_method_data: factories['io.flow.stripe.v0.unions.payment_method_data'](),
|
|
2128
2209
|
payment_method_options: factories['io.flow.stripe.v0.models.payment_method_options'](),
|
|
2129
2210
|
payment_method_types: arrayOf(() => factories.string()),
|
|
2130
2211
|
receipt_email: factories.string(),
|
|
@@ -2157,7 +2238,7 @@ const factories = {
|
|
|
2157
2238
|
id: factories.string(),
|
|
2158
2239
|
object: factories.string(),
|
|
2159
2240
|
billing_details: factories['io.flow.stripe.v0.models.payment_method_billing_details'](),
|
|
2160
|
-
card: factories['io.flow.stripe.v0.models.
|
|
2241
|
+
card: factories['io.flow.stripe.v0.models.payment_method_card_details'](),
|
|
2161
2242
|
card_present: factories.object(),
|
|
2162
2243
|
created: factories.long(),
|
|
2163
2244
|
customer: factories.string(),
|
|
@@ -2172,6 +2253,33 @@ const factories = {
|
|
|
2172
2253
|
phone: factories.string(),
|
|
2173
2254
|
}),
|
|
2174
2255
|
|
|
2256
|
+
'io.flow.stripe.v0.models.payment_method_card_details': (): io.flow.stripe.v0.models.PaymentMethodCardDetails => ({
|
|
2257
|
+
brand: factories['io.flow.stripe.v0.enums.card_brand'](),
|
|
2258
|
+
checks: factories['io.flow.stripe.v0.models.card_checks'](),
|
|
2259
|
+
country: factories.string(),
|
|
2260
|
+
exp_month: factories.long(),
|
|
2261
|
+
exp_year: factories.long(),
|
|
2262
|
+
fingerprint: factories.string(),
|
|
2263
|
+
funding: factories['io.flow.stripe.v0.enums.card_funding_type'](),
|
|
2264
|
+
last4: factories.string(),
|
|
2265
|
+
networks: factories['io.flow.stripe.v0.models.card_networks'](),
|
|
2266
|
+
three_d_secure_usage: factories['io.flow.stripe.v0.models.three_d_secure_usage'](),
|
|
2267
|
+
}),
|
|
2268
|
+
|
|
2269
|
+
'io.flow.stripe.v0.models.payment_method_card_form': (): io.flow.stripe.v0.models.PaymentMethodCardForm => ({
|
|
2270
|
+
exp_month: factories.string(),
|
|
2271
|
+
exp_year: factories.string(),
|
|
2272
|
+
number: factories.string(),
|
|
2273
|
+
cvc: factories.string(),
|
|
2274
|
+
}),
|
|
2275
|
+
|
|
2276
|
+
'io.flow.stripe.v0.models.payment_method_data_card': (): io.flow.stripe.v0.models.PaymentMethodDataCard => ({
|
|
2277
|
+
type: 'card',
|
|
2278
|
+
billing_details: factories['io.flow.stripe.v0.models.payment_method_billing_details'](),
|
|
2279
|
+
metadata: factories.object(),
|
|
2280
|
+
card: factories['io.flow.stripe.v0.models.payment_method_card_form'](),
|
|
2281
|
+
}),
|
|
2282
|
+
|
|
2175
2283
|
'io.flow.stripe.v0.models.payment_method_details_card': (): io.flow.stripe.v0.models.PaymentMethodDetailsCard => ({
|
|
2176
2284
|
type: 'card',
|
|
2177
2285
|
card: factories['io.flow.stripe.v0.models.payment_method_details_card_information'](),
|
|
@@ -2209,10 +2317,11 @@ const factories = {
|
|
|
2209
2317
|
preferred_locale: factories['io.flow.stripe.v0.enums.preferred_locale_klarna'](),
|
|
2210
2318
|
}),
|
|
2211
2319
|
|
|
2212
|
-
'io.flow.stripe.v0.models.
|
|
2213
|
-
type:
|
|
2320
|
+
'io.flow.stripe.v0.models.payment_method_form_card': (): io.flow.stripe.v0.models.PaymentMethodFormCard => ({
|
|
2321
|
+
type: 'card',
|
|
2214
2322
|
billing_details: factories['io.flow.stripe.v0.models.payment_method_billing_details'](),
|
|
2215
|
-
|
|
2323
|
+
metadata: factories.object(),
|
|
2324
|
+
card: factories['io.flow.stripe.v0.models.payment_method_card_form'](),
|
|
2216
2325
|
}),
|
|
2217
2326
|
|
|
2218
2327
|
'io.flow.stripe.v0.models.payment_method_options': (): io.flow.stripe.v0.models.PaymentMethodOptions => ({
|
|
@@ -2220,7 +2329,9 @@ const factories = {
|
|
|
2220
2329
|
}),
|
|
2221
2330
|
|
|
2222
2331
|
'io.flow.stripe.v0.models.payment_method_options_card': (): io.flow.stripe.v0.models.PaymentMethodOptionsCard => ({
|
|
2332
|
+
network: factories.string(),
|
|
2223
2333
|
request_three_d_secure: factories['io.flow.stripe.v0.enums.request_three_d_secure_type'](),
|
|
2334
|
+
stored_credential_transaction_type: factories['io.flow.stripe.v0.enums.stored_credential_transaction_type'](),
|
|
2224
2335
|
}),
|
|
2225
2336
|
|
|
2226
2337
|
'io.flow.stripe.v0.models.payment_outcome': (): io.flow.stripe.v0.models.PaymentOutcome => ({
|
|
@@ -2472,6 +2583,10 @@ const factories = {
|
|
|
2472
2583
|
stripe_js: factories.string(),
|
|
2473
2584
|
}),
|
|
2474
2585
|
|
|
2586
|
+
'io.flow.stripe.v0.models.three_d_secure_usage': (): io.flow.stripe.v0.models.ThreeDSecureUsage => ({
|
|
2587
|
+
supported: factories.boolean(),
|
|
2588
|
+
}),
|
|
2589
|
+
|
|
2475
2590
|
'io.flow.stripe.v0.models.token': (): io.flow.stripe.v0.models.Token => ({
|
|
2476
2591
|
id: factories.string(),
|
|
2477
2592
|
object: factories.string(),
|
|
@@ -2517,6 +2632,11 @@ const factories = {
|
|
|
2517
2632
|
return f();
|
|
2518
2633
|
},
|
|
2519
2634
|
|
|
2635
|
+
'io.flow.stripe.v0.unions.payment_method_data': (): io.flow.stripe.v0.unions.PaymentMethodData => {
|
|
2636
|
+
const f = faker.helpers.arrayElement([() => factories['io.flow.stripe.v0.models.payment_method_data_card']()]);
|
|
2637
|
+
return f();
|
|
2638
|
+
},
|
|
2639
|
+
|
|
2520
2640
|
'io.flow.stripe.v0.unions.payment_method_details': (): io.flow.stripe.v0.unions.PaymentMethodDetails => {
|
|
2521
2641
|
const f = faker.helpers.arrayElement([
|
|
2522
2642
|
() => factories['io.flow.stripe.v0.models.payment_method_details_card'](),
|
|
@@ -2526,6 +2646,11 @@ const factories = {
|
|
|
2526
2646
|
return f();
|
|
2527
2647
|
},
|
|
2528
2648
|
|
|
2649
|
+
'io.flow.stripe.v0.unions.payment_method_form': (): io.flow.stripe.v0.unions.PaymentMethodForm => {
|
|
2650
|
+
const f = faker.helpers.arrayElement([() => factories['io.flow.stripe.v0.models.payment_method_form_card']()]);
|
|
2651
|
+
return f();
|
|
2652
|
+
},
|
|
2653
|
+
|
|
2529
2654
|
'io.flow.units.v0.enums.unit_of_length': (): io.flow.units.v0.enums.UnitOfLength => faker.helpers.arrayElement(['millimeter', 'centimeter', 'inch', 'foot', 'meter']),
|
|
2530
2655
|
'io.flow.units.v0.enums.unit_of_volume': (): io.flow.units.v0.enums.UnitOfVolume => faker.helpers.arrayElement(['cubic_inch', 'cubic_meter']),
|
|
2531
2656
|
'io.flow.units.v0.enums.unit_of_weight': (): io.flow.units.v0.enums.UnitOfWeight => faker.helpers.arrayElement(['gram', 'kilogram', 'ounce', 'pound']),
|
|
@@ -3130,6 +3255,7 @@ const factories = {
|
|
|
3130
3255
|
'card',
|
|
3131
3256
|
'online',
|
|
3132
3257
|
'credit',
|
|
3258
|
+
'external',
|
|
3133
3259
|
'subsidized',
|
|
3134
3260
|
'installment_plan',
|
|
3135
3261
|
'cash_on_delivery',
|
|
@@ -3504,6 +3630,7 @@ const factories = {
|
|
|
3504
3630
|
'reversal',
|
|
3505
3631
|
'shipping_label',
|
|
3506
3632
|
'shipping_label_service',
|
|
3633
|
+
'trueup',
|
|
3507
3634
|
'shipping_label_revenue_share',
|
|
3508
3635
|
'platform_fee',
|
|
3509
3636
|
'tax',
|
|
@@ -3518,6 +3645,18 @@ const factories = {
|
|
|
3518
3645
|
'virtual_card_refund',
|
|
3519
3646
|
]),
|
|
3520
3647
|
|
|
3648
|
+
'io.flow.v0.enums.trueup_source': (): io.flow.v0.enums.TrueupSource => faker.helpers.arrayElement(['flow', 'channel', 'dhl-parcel', 'dhl']),
|
|
3649
|
+
|
|
3650
|
+
'io.flow.v0.enums.trueup_surcharge_type': (): io.flow.v0.enums.TrueupSurchargeType => faker.helpers.arrayElement([
|
|
3651
|
+
'fuel',
|
|
3652
|
+
'remote_area',
|
|
3653
|
+
'oversize',
|
|
3654
|
+
'duties_paid',
|
|
3655
|
+
'emergency',
|
|
3656
|
+
'peak',
|
|
3657
|
+
'address_correction',
|
|
3658
|
+
]),
|
|
3659
|
+
|
|
3521
3660
|
'io.flow.v0.enums.unit_of_length': (): io.flow.v0.enums.UnitOfLength => faker.helpers.arrayElement(['millimeter', 'centimeter', 'inch', 'foot', 'meter']),
|
|
3522
3661
|
|
|
3523
3662
|
'io.flow.v0.enums.unit_of_measurement': (): io.flow.v0.enums.UnitOfMeasurement => faker.helpers.arrayElement([
|
|
@@ -9475,6 +9614,7 @@ const factories = {
|
|
|
9475
9614
|
current_state: factories['io.flow.v0.unions.onboarding_state'](),
|
|
9476
9615
|
started_at: factories.date_time_iso_8601(),
|
|
9477
9616
|
time_blocked: factories.long(),
|
|
9617
|
+
time_in_setup: factories.long(),
|
|
9478
9618
|
blocked_since: factories.date_time_iso_8601(),
|
|
9479
9619
|
completed_at: factories.date_time_iso_8601(),
|
|
9480
9620
|
onboarding_started_at: factories.date_time_iso_8601(),
|
|
@@ -10468,6 +10608,12 @@ const factories = {
|
|
|
10468
10608
|
ends_at: factories.date_time_iso_8601(),
|
|
10469
10609
|
}),
|
|
10470
10610
|
|
|
10611
|
+
'io.flow.v0.models.pending_transaction': (): io.flow.v0.models.PendingTransaction => ({
|
|
10612
|
+
id: factories.string(),
|
|
10613
|
+
reason: factories['io.flow.v0.enums.transaction_payout_pending_reason'](),
|
|
10614
|
+
reason_set_at: factories.date_time_iso_8601(),
|
|
10615
|
+
}),
|
|
10616
|
+
|
|
10471
10617
|
'io.flow.v0.models.percent_margin': (): io.flow.v0.models.PercentMargin => ({
|
|
10472
10618
|
discriminator: 'percent_margin',
|
|
10473
10619
|
percentage: factories.double(),
|
|
@@ -13295,11 +13441,41 @@ const factories = {
|
|
|
13295
13441
|
network_details: factories['io.flow.v0.models.transaction_network_details_card'](),
|
|
13296
13442
|
}),
|
|
13297
13443
|
|
|
13444
|
+
'io.flow.v0.models.transaction_metadata_channel': (): io.flow.v0.models.TransactionMetadataChannel => ({
|
|
13445
|
+
discriminator: 'channel',
|
|
13446
|
+
method: factories.string(),
|
|
13447
|
+
card: factories['io.flow.v0.models.transaction_metadata_channel_card_metadata'](),
|
|
13448
|
+
}),
|
|
13449
|
+
|
|
13450
|
+
'io.flow.v0.models.transaction_metadata_channel_card_metadata': (): io.flow.v0.models.TransactionMetadataChannelCardMetadata => ({
|
|
13451
|
+
type: factories['io.flow.v0.enums.card_type'](),
|
|
13452
|
+
issuer: factories['io.flow.v0.models.transaction_metadata_channel_card_metadata_issuer_summary'](),
|
|
13453
|
+
}),
|
|
13454
|
+
|
|
13455
|
+
'io.flow.v0.models.transaction_metadata_channel_card_metadata_issuer_summary': (): io.flow.v0.models.TransactionMetadataChannelCardMetadataIssuerSummary => ({
|
|
13456
|
+
iin: factories.string(),
|
|
13457
|
+
country: factories.string(),
|
|
13458
|
+
}),
|
|
13459
|
+
|
|
13298
13460
|
'io.flow.v0.models.transaction_metadata_shipping_label': (): io.flow.v0.models.TransactionMetadataShippingLabel => ({
|
|
13299
13461
|
discriminator: 'shipping_label',
|
|
13300
13462
|
request_method: factories['io.flow.v0.enums.label_request_method'](),
|
|
13301
13463
|
}),
|
|
13302
13464
|
|
|
13465
|
+
'io.flow.v0.models.transaction_metadata_trueup': (): io.flow.v0.models.TransactionMetadataTrueup => ({
|
|
13466
|
+
discriminator: 'trueup',
|
|
13467
|
+
estimate: factories['io.flow.v0.models.transaction_metadata_trueup_data'](),
|
|
13468
|
+
actual: factories['io.flow.v0.models.transaction_metadata_trueup_data'](),
|
|
13469
|
+
}),
|
|
13470
|
+
|
|
13471
|
+
'io.flow.v0.models.transaction_metadata_trueup_data': (): io.flow.v0.models.TransactionMetadataTrueupData => ({
|
|
13472
|
+
source: factories['io.flow.v0.enums.trueup_source'](),
|
|
13473
|
+
units: factories['io.flow.v0.models.trueup_label_units'](),
|
|
13474
|
+
base: factories['io.flow.v0.models.trueup_label_base'](),
|
|
13475
|
+
surcharges: arrayOf(() => factories['io.flow.v0.models.trueup_label_surcharge']()),
|
|
13476
|
+
total: factories.decimal(),
|
|
13477
|
+
}),
|
|
13478
|
+
|
|
13303
13479
|
'io.flow.v0.models.transaction_network_details_card': (): io.flow.v0.models.TransactionNetworkDetailsCard => ({
|
|
13304
13480
|
network_transaction_id: factories.string(),
|
|
13305
13481
|
network: factories['io.flow.v0.enums.card_type'](),
|
|
@@ -13332,6 +13508,23 @@ const factories = {
|
|
|
13332
13508
|
to: factories.long(),
|
|
13333
13509
|
}),
|
|
13334
13510
|
|
|
13511
|
+
'io.flow.v0.models.trueup_label_base': (): io.flow.v0.models.TrueupLabelBase => ({
|
|
13512
|
+
amount: factories.decimal(),
|
|
13513
|
+
weight: factories.decimal(),
|
|
13514
|
+
}),
|
|
13515
|
+
|
|
13516
|
+
'io.flow.v0.models.trueup_label_surcharge': (): io.flow.v0.models.TrueupLabelSurcharge => ({
|
|
13517
|
+
amount: factories.decimal(),
|
|
13518
|
+
type: factories['io.flow.v0.enums.trueup_surcharge_type'](),
|
|
13519
|
+
percentage: factories.decimal(),
|
|
13520
|
+
per_weight_unit: factories.decimal(),
|
|
13521
|
+
}),
|
|
13522
|
+
|
|
13523
|
+
'io.flow.v0.models.trueup_label_units': (): io.flow.v0.models.TrueupLabelUnits => ({
|
|
13524
|
+
weight: factories['io.flow.v0.enums.unit_of_weight'](),
|
|
13525
|
+
length: factories['io.flow.v0.enums.unit_of_length'](),
|
|
13526
|
+
}),
|
|
13527
|
+
|
|
13335
13528
|
'io.flow.v0.models.ultimate_beneficiary_owner': (): io.flow.v0.models.UltimateBeneficiaryOwner => ({
|
|
13336
13529
|
name: factories.string(),
|
|
13337
13530
|
dob: factories.date_time_iso_8601(),
|
|
@@ -14752,9 +14945,11 @@ const factories = {
|
|
|
14752
14945
|
},
|
|
14753
14946
|
|
|
14754
14947
|
'io.flow.v0.unions.transaction_metadata': (): io.flow.v0.unions.TransactionMetadata => {
|
|
14755
|
-
const f = faker.helpers.arrayElement(
|
|
14756
|
-
|
|
14757
|
-
|
|
14948
|
+
const f = faker.helpers.arrayElement([
|
|
14949
|
+
() => factories['io.flow.v0.models.transaction_metadata_shipping_label'](),
|
|
14950
|
+
() => factories['io.flow.v0.models.transaction_metadata_channel'](),
|
|
14951
|
+
() => factories['io.flow.v0.models.transaction_metadata_trueup'](),
|
|
14952
|
+
]);
|
|
14758
14953
|
|
|
14759
14954
|
return f();
|
|
14760
14955
|
},
|
|
@@ -15954,6 +16149,7 @@ export const makePaypalAuthorizationForm = () => factories['io.flow.v0.models.pa
|
|
|
15954
16149
|
export const makePeakSurchargeByWeightServiceFee = () => factories['io.flow.v0.models.peak_surcharge_by_weight_service_fee']();
|
|
15955
16150
|
export const makePeakSurchargeRatecardFee = () => factories['io.flow.v0.models.peak_surcharge_ratecard_fee']();
|
|
15956
16151
|
export const makePeakSurchargeServiceFee = () => factories['io.flow.v0.models.peak_surcharge_service_fee']();
|
|
16152
|
+
export const makePendingTransaction = () => factories['io.flow.v0.models.pending_transaction']();
|
|
15957
16153
|
export const makePercentMargin = () => factories['io.flow.v0.models.percent_margin']();
|
|
15958
16154
|
export const makePermissionAudit = () => factories['io.flow.v0.models.permission_audit']();
|
|
15959
16155
|
export const makePermissionCheck = () => factories['io.flow.v0.models.permission_check']();
|
|
@@ -16417,7 +16613,12 @@ export const makeTransaction = () => factories['io.flow.v0.models.transaction'](
|
|
|
16417
16613
|
export const makeTransactionDetails = () => factories['io.flow.v0.unions.transaction_details']();
|
|
16418
16614
|
export const makeTransactionDetailsCard = () => factories['io.flow.v0.models.transaction_details_card']();
|
|
16419
16615
|
export const makeTransactionMetadata = () => factories['io.flow.v0.unions.transaction_metadata']();
|
|
16616
|
+
export const makeTransactionMetadataChannel = () => factories['io.flow.v0.models.transaction_metadata_channel']();
|
|
16617
|
+
export const makeTransactionMetadataChannelCardMetadata = () => factories['io.flow.v0.models.transaction_metadata_channel_card_metadata']();
|
|
16618
|
+
export const makeTransactionMetadataChannelCardMetadataIssuerSummary = () => factories['io.flow.v0.models.transaction_metadata_channel_card_metadata_issuer_summary']();
|
|
16420
16619
|
export const makeTransactionMetadataShippingLabel = () => factories['io.flow.v0.models.transaction_metadata_shipping_label']();
|
|
16620
|
+
export const makeTransactionMetadataTrueup = () => factories['io.flow.v0.models.transaction_metadata_trueup']();
|
|
16621
|
+
export const makeTransactionMetadataTrueupData = () => factories['io.flow.v0.models.transaction_metadata_trueup_data']();
|
|
16421
16622
|
export const makeTransactionNetworkDetailsCard = () => factories['io.flow.v0.models.transaction_network_details_card']();
|
|
16422
16623
|
export const makeTransactionPayoutPendingReason = () => factories['io.flow.v0.enums.transaction_payout_pending_reason']();
|
|
16423
16624
|
export const makeTransactionReference = () => factories['io.flow.v0.models.transaction_reference']();
|
|
@@ -16425,6 +16626,11 @@ export const makeTransactionSource = () => factories['io.flow.v0.enums.transacti
|
|
|
16425
16626
|
export const makeTransactionUpserted = () => factories['io.flow.v0.models.transaction_upserted']();
|
|
16426
16627
|
export const makeTransitEstimate = () => factories['io.flow.v0.models.transit_estimate']();
|
|
16427
16628
|
export const makeTransitWindow = () => factories['io.flow.v0.models.transit_window']();
|
|
16629
|
+
export const makeTrueupLabelBase = () => factories['io.flow.v0.models.trueup_label_base']();
|
|
16630
|
+
export const makeTrueupLabelSurcharge = () => factories['io.flow.v0.models.trueup_label_surcharge']();
|
|
16631
|
+
export const makeTrueupLabelUnits = () => factories['io.flow.v0.models.trueup_label_units']();
|
|
16632
|
+
export const makeTrueupSource = () => factories['io.flow.v0.enums.trueup_source']();
|
|
16633
|
+
export const makeTrueupSurchargeType = () => factories['io.flow.v0.enums.trueup_surcharge_type']();
|
|
16428
16634
|
export const makeUltimateBeneficiaryOwner = () => factories['io.flow.v0.models.ultimate_beneficiary_owner']();
|
|
16429
16635
|
export const makeUnharmonizedItemExportType = () => factories['io.flow.v0.models.unharmonized_item_export_type']();
|
|
16430
16636
|
export const makeUnitOfLength = () => factories['io.flow.v0.enums.unit_of_length']();
|