@flowio/api-factories 0.0.62 → 0.0.63
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 +509 -57
- package/dist/esm/api.js +455 -26
- package/dist/types/api.d.ts +24 -2
- package/package.json +2 -2
- package/src/api.ts +528 -27
package/src/api.ts
CHANGED
|
@@ -111,6 +111,147 @@ const factories = {
|
|
|
111
111
|
identifier: factories.string(),
|
|
112
112
|
}),
|
|
113
113
|
|
|
114
|
+
'io.flow.ben.test.internal.v0.models.generate_load_multiple_orgs': (): io.flow.ben.test.internal.v0.models.GenerateLoadMultipleOrgs => ({
|
|
115
|
+
discriminator: 'generate_load_multiple_orgs',
|
|
116
|
+
organization_ids: arrayOf(() => factories.string()),
|
|
117
|
+
num_events: factories.long(),
|
|
118
|
+
}),
|
|
119
|
+
|
|
120
|
+
'io.flow.ben.test.internal.v0.models.generate_load_single_org': (): io.flow.ben.test.internal.v0.models.GenerateLoadSingleOrg => ({
|
|
121
|
+
discriminator: 'generate_load_single_org',
|
|
122
|
+
organization_id: factories.string(),
|
|
123
|
+
num_events: factories.long(),
|
|
124
|
+
}),
|
|
125
|
+
|
|
126
|
+
'io.flow.ben.test.internal.v0.models.test': (): io.flow.ben.test.internal.v0.models.Test => ({
|
|
127
|
+
id: factories.string(),
|
|
128
|
+
name: factories.string(),
|
|
129
|
+
}),
|
|
130
|
+
|
|
131
|
+
'io.flow.ben.test.internal.v0.models.test_form': (): io.flow.ben.test.internal.v0.models.TestForm => ({
|
|
132
|
+
name: factories.string(),
|
|
133
|
+
}),
|
|
134
|
+
|
|
135
|
+
'io.flow.ben.test.internal.v0.unions.generate_load': (): io.flow.ben.test.internal.v0.unions.GenerateLoad => {
|
|
136
|
+
const f = faker.helpers.arrayElement([
|
|
137
|
+
() => factories['io.flow.ben.test.internal.v0.models.generate_load_single_org'](),
|
|
138
|
+
() => factories['io.flow.ben.test.internal.v0.models.generate_load_multiple_orgs'](),
|
|
139
|
+
]);
|
|
140
|
+
|
|
141
|
+
return f();
|
|
142
|
+
},
|
|
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(['fuel', 'remote_area', 'oversize', 'duties_paid', 'emergency', 'peak']),
|
|
145
|
+
'io.flow.billing.true.up.v0.enums.weight_selection': (): io.flow.billing.RESERVED_WORD_true.up.v0.enums.WeightSelection => faker.helpers.arrayElement(['dead', 'dimensional']),
|
|
146
|
+
|
|
147
|
+
'io.flow.billing.true.up.v0.models.label_base': (): io.flow.billing.RESERVED_WORD_true.up.v0.models.LabelBase => ({
|
|
148
|
+
amount: factories.decimal(),
|
|
149
|
+
weight: factories.decimal(),
|
|
150
|
+
}),
|
|
151
|
+
|
|
152
|
+
'io.flow.billing.true.up.v0.models.label_destination': (): io.flow.billing.RESERVED_WORD_true.up.v0.models.LabelDestination => ({
|
|
153
|
+
country: factories.string(),
|
|
154
|
+
}),
|
|
155
|
+
|
|
156
|
+
'io.flow.billing.true.up.v0.models.label_invoice_request': (): io.flow.billing.RESERVED_WORD_true.up.v0.models.LabelInvoiceRequest => ({
|
|
157
|
+
id: factories.string(),
|
|
158
|
+
label: factories['io.flow.billing.true.up.v0.models.true_up_label_summary'](),
|
|
159
|
+
units: factories['io.flow.billing.true.up.v0.models.label_units'](),
|
|
160
|
+
base: factories['io.flow.billing.true.up.v0.models.label_base'](),
|
|
161
|
+
surcharges: arrayOf(() => factories['io.flow.billing.true.up.v0.models.label_surcharge']()),
|
|
162
|
+
total: factories.decimal(),
|
|
163
|
+
destination: factories['io.flow.billing.true.up.v0.models.label_destination'](),
|
|
164
|
+
metadata: factories['io.flow.billing.true.up.v0.models.label_metadata'](),
|
|
165
|
+
}),
|
|
166
|
+
|
|
167
|
+
'io.flow.billing.true.up.v0.models.label_metadata': (): io.flow.billing.RESERVED_WORD_true.up.v0.models.LabelMetadata => ({
|
|
168
|
+
ratecard: factories['io.flow.billing.true.up.v0.models.metadata_ratecard'](),
|
|
169
|
+
weights: factories['io.flow.billing.true.up.v0.models.metadata_weights'](),
|
|
170
|
+
}),
|
|
171
|
+
|
|
172
|
+
'io.flow.billing.true.up.v0.models.label_surcharge': (): io.flow.billing.RESERVED_WORD_true.up.v0.models.LabelSurcharge => ({
|
|
173
|
+
amount: factories.decimal(),
|
|
174
|
+
type: factories['io.flow.billing.true.up.v0.enums.true_up_surcharge_type'](),
|
|
175
|
+
detail: factories['io.flow.billing.true.up.v0.unions.label_surcharge_detail'](),
|
|
176
|
+
}),
|
|
177
|
+
|
|
178
|
+
'io.flow.billing.true.up.v0.models.label_surcharge_detail_flat': (): io.flow.billing.RESERVED_WORD_true.up.v0.models.LabelSurchargeDetailFlat => ({
|
|
179
|
+
discriminator: 'flat',
|
|
180
|
+
placeholder: factories.string(),
|
|
181
|
+
}),
|
|
182
|
+
|
|
183
|
+
'io.flow.billing.true.up.v0.models.label_surcharge_detail_per_weight_unit': (): io.flow.billing.RESERVED_WORD_true.up.v0.models.LabelSurchargeDetailPerWeightUnit => ({
|
|
184
|
+
discriminator: 'per_weight_unit',
|
|
185
|
+
fee: factories.decimal(),
|
|
186
|
+
}),
|
|
187
|
+
|
|
188
|
+
'io.flow.billing.true.up.v0.models.label_surcharge_detail_percentage': (): io.flow.billing.RESERVED_WORD_true.up.v0.models.LabelSurchargeDetailPercentage => ({
|
|
189
|
+
discriminator: 'percentage',
|
|
190
|
+
percentage: factories.decimal(),
|
|
191
|
+
}),
|
|
192
|
+
|
|
193
|
+
'io.flow.billing.true.up.v0.models.label_units': (): io.flow.billing.RESERVED_WORD_true.up.v0.models.LabelUnits => ({
|
|
194
|
+
currency: factories.string(),
|
|
195
|
+
weight: factories['io.flow.units.v0.enums.unit_of_weight'](),
|
|
196
|
+
length: factories['io.flow.units.v0.enums.unit_of_length'](),
|
|
197
|
+
}),
|
|
198
|
+
|
|
199
|
+
'io.flow.billing.true.up.v0.models.metadata_proposition': (): io.flow.billing.RESERVED_WORD_true.up.v0.models.MetadataProposition => ({
|
|
200
|
+
shipping_method: factories['io.flow.billing.true.up.v0.models.shipping_method_reference'](),
|
|
201
|
+
name: factories.string(),
|
|
202
|
+
}),
|
|
203
|
+
|
|
204
|
+
'io.flow.billing.true.up.v0.models.metadata_ratecard': (): io.flow.billing.RESERVED_WORD_true.up.v0.models.MetadataRatecard => ({
|
|
205
|
+
id: factories.string(),
|
|
206
|
+
proposition: factories['io.flow.billing.true.up.v0.models.metadata_proposition'](),
|
|
207
|
+
}),
|
|
208
|
+
|
|
209
|
+
'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
|
+
dead: factories['io.flow.billing.true.up.v0.models.weights_dead'](),
|
|
212
|
+
dimensional: factories['io.flow.billing.true.up.v0.models.weights_dimensional'](),
|
|
213
|
+
}),
|
|
214
|
+
|
|
215
|
+
'io.flow.billing.true.up.v0.models.shipping_method_reference': (): io.flow.billing.RESERVED_WORD_true.up.v0.models.ShippingMethodReference => ({
|
|
216
|
+
id: factories.string(),
|
|
217
|
+
}),
|
|
218
|
+
|
|
219
|
+
'io.flow.billing.true.up.v0.models.true_up_label_summary': (): io.flow.billing.RESERVED_WORD_true.up.v0.models.TrueUpLabelSummary => ({
|
|
220
|
+
id: factories.string(),
|
|
221
|
+
carrier_service_id: factories.string(),
|
|
222
|
+
carrier_tracking_number: factories.string(),
|
|
223
|
+
flow_tracking_number: factories.string(),
|
|
224
|
+
created_at: factories.date_time_iso_8601(),
|
|
225
|
+
}),
|
|
226
|
+
|
|
227
|
+
'io.flow.billing.true.up.v0.models.weights_dead': (): io.flow.billing.RESERVED_WORD_true.up.v0.models.WeightsDead => ({
|
|
228
|
+
weight: factories.decimal(),
|
|
229
|
+
}),
|
|
230
|
+
|
|
231
|
+
'io.flow.billing.true.up.v0.models.weights_dimensional': (): io.flow.billing.RESERVED_WORD_true.up.v0.models.WeightsDimensional => ({
|
|
232
|
+
weight: factories.decimal(),
|
|
233
|
+
length: factories.decimal(),
|
|
234
|
+
width: factories.decimal(),
|
|
235
|
+
height: factories.decimal(),
|
|
236
|
+
}),
|
|
237
|
+
|
|
238
|
+
'io.flow.billing.true.up.v0.unions.label_surcharge_detail': (): io.flow.billing.RESERVED_WORD_true.up.v0.unions.LabelSurchargeDetail => {
|
|
239
|
+
const f = faker.helpers.arrayElement([
|
|
240
|
+
() => factories['io.flow.billing.true.up.v0.models.label_surcharge_detail_flat'](),
|
|
241
|
+
() => factories['io.flow.billing.true.up.v0.models.label_surcharge_detail_percentage'](),
|
|
242
|
+
() => factories['io.flow.billing.true.up.v0.models.label_surcharge_detail_per_weight_unit'](),
|
|
243
|
+
]);
|
|
244
|
+
|
|
245
|
+
return f();
|
|
246
|
+
},
|
|
247
|
+
|
|
248
|
+
'io.flow.error.v0.enums.generic_error_code': (): io.flow.error.v0.enums.GenericErrorCode => faker.helpers.arrayElement(['generic_error', 'client_error', 'server_error']),
|
|
249
|
+
|
|
250
|
+
'io.flow.error.v0.models.generic_error': (): io.flow.error.v0.models.GenericError => ({
|
|
251
|
+
code: factories['io.flow.error.v0.enums.generic_error_code'](),
|
|
252
|
+
messages: arrayOf(() => factories.string()),
|
|
253
|
+
}),
|
|
254
|
+
|
|
114
255
|
'io.flow.google.pay.v0.enums.auth_method': (): io.flow.google.pay.v0.enums.AuthMethod => faker.helpers.arrayElement(['PAN_ONLY', 'CRYPTOGRAM_3DS']),
|
|
115
256
|
'io.flow.google.pay.v0.enums.billing_address_format': (): io.flow.google.pay.v0.enums.BillingAddressFormat => faker.helpers.arrayElement(['MIN', 'FULL']),
|
|
116
257
|
'io.flow.google.pay.v0.enums.card_gateway': (): io.flow.google.pay.v0.enums.CardGateway => faker.helpers.arrayElement(['adyen', 'stripe']),
|
|
@@ -449,7 +590,7 @@ const factories = {
|
|
|
449
590
|
starts_at: factories.date_time_iso_8601(),
|
|
450
591
|
ends_at: factories.date_time_iso_8601(),
|
|
451
592
|
prerequisite_subtotal_range: factories['io.flow.shopify.external.v0.models.price_rule_greater_than_range'](),
|
|
452
|
-
|
|
593
|
+
prerequisite_shipping_price_range: factories['io.flow.shopify.external.v0.models.price_rule_less_than_range'](),
|
|
453
594
|
usage_limit: factories.long(),
|
|
454
595
|
entitled_product_ids: arrayOf(() => factories.long()),
|
|
455
596
|
entitled_variant_ids: arrayOf(() => factories.long()),
|
|
@@ -459,7 +600,7 @@ const factories = {
|
|
|
459
600
|
once_per_customer: factories.boolean(),
|
|
460
601
|
target_selection: factories['io.flow.shopify.external.v0.enums.price_rule_target_selection'](),
|
|
461
602
|
customer_selection: factories['io.flow.shopify.external.v0.enums.price_rule_customer_selection'](),
|
|
462
|
-
|
|
603
|
+
customer_segment_prerequisite_ids: arrayOf(() => factories.long()),
|
|
463
604
|
prerequisite_customer_ids: arrayOf(() => factories.long()),
|
|
464
605
|
prerequisite_quantity_range: factories['io.flow.shopify.external.v0.models.price_rule_greater_than_range'](),
|
|
465
606
|
prerequisite_product_ids: arrayOf(() => factories.long()),
|
|
@@ -1325,6 +1466,7 @@ const factories = {
|
|
|
1325
1466
|
}),
|
|
1326
1467
|
|
|
1327
1468
|
'io.flow.stripe.v0.enums.account_type': (): io.flow.stripe.v0.enums.AccountType => faker.helpers.arrayElement(['platform', 'custom', 'standard', 'express']),
|
|
1469
|
+
'io.flow.stripe.v0.enums.apple_pay_type': (): io.flow.stripe.v0.enums.ApplePayType => faker.helpers.arrayElement(['apple_pay', 'apple_pay_later']),
|
|
1328
1470
|
|
|
1329
1471
|
'io.flow.stripe.v0.enums.cancellation_reason': (): io.flow.stripe.v0.enums.CancellationReason => faker.helpers.arrayElement([
|
|
1330
1472
|
'abandoned',
|
|
@@ -1363,6 +1505,21 @@ const factories = {
|
|
|
1363
1505
|
]),
|
|
1364
1506
|
|
|
1365
1507
|
'io.flow.stripe.v0.enums.card_funding_type': (): io.flow.stripe.v0.enums.CardFundingType => faker.helpers.arrayElement(['credit', 'debit', 'prepaid', 'unknown']),
|
|
1508
|
+
|
|
1509
|
+
'io.flow.stripe.v0.enums.card_network': (): io.flow.stripe.v0.enums.CardNetwork => faker.helpers.arrayElement([
|
|
1510
|
+
'amex',
|
|
1511
|
+
'cartes_bancaires',
|
|
1512
|
+
'diners',
|
|
1513
|
+
'discover',
|
|
1514
|
+
'eftpos_au',
|
|
1515
|
+
'interac',
|
|
1516
|
+
'jcb',
|
|
1517
|
+
'mastercard',
|
|
1518
|
+
'unionpay',
|
|
1519
|
+
'visa',
|
|
1520
|
+
'unknown',
|
|
1521
|
+
]),
|
|
1522
|
+
|
|
1366
1523
|
'io.flow.stripe.v0.enums.check_outcome': (): io.flow.stripe.v0.enums.CheckOutcome => faker.helpers.arrayElement(['pass', 'fail', 'unavailable', 'unchecked']),
|
|
1367
1524
|
'io.flow.stripe.v0.enums.code_verification_status': (): io.flow.stripe.v0.enums.CodeVerificationStatus => faker.helpers.arrayElement(['pending', 'succeeded', 'failed']),
|
|
1368
1525
|
'io.flow.stripe.v0.enums.confirmation_method': (): io.flow.stripe.v0.enums.ConfirmationMethod => faker.helpers.arrayElement(['automatic', 'manual']),
|
|
@@ -1469,9 +1626,58 @@ const factories = {
|
|
|
1469
1626
|
'succeeded',
|
|
1470
1627
|
]),
|
|
1471
1628
|
|
|
1629
|
+
'io.flow.stripe.v0.enums.payment_method_category_klarna': (): io.flow.stripe.v0.enums.PaymentMethodCategoryKlarna => faker.helpers.arrayElement(['pay_later', 'pay_now', 'pay_with_financing', 'pay_in_installments']),
|
|
1472
1630
|
'io.flow.stripe.v0.enums.payment_method_type': (): io.flow.stripe.v0.enums.PaymentMethodType => faker.helpers.arrayElement(['card', 'card_present']),
|
|
1473
1631
|
'io.flow.stripe.v0.enums.payment_outcome_type': (): io.flow.stripe.v0.enums.PaymentOutcomeType => faker.helpers.arrayElement(['authorized', 'manual_review', 'issuer_declined', 'blocked', 'invalid']),
|
|
1474
1632
|
'io.flow.stripe.v0.enums.payment_status': (): io.flow.stripe.v0.enums.PaymentStatus => faker.helpers.arrayElement(['succeeded', 'pending', 'failed']),
|
|
1633
|
+
|
|
1634
|
+
'io.flow.stripe.v0.enums.preferred_locale_klarna': (): io.flow.stripe.v0.enums.PreferredLocaleKlarna => faker.helpers.arrayElement([
|
|
1635
|
+
'de-AT',
|
|
1636
|
+
'en-AT',
|
|
1637
|
+
'nl-BE',
|
|
1638
|
+
'fr-BE',
|
|
1639
|
+
'en-BE',
|
|
1640
|
+
'de-DE',
|
|
1641
|
+
'en-DE',
|
|
1642
|
+
'da-DK',
|
|
1643
|
+
'en-DK',
|
|
1644
|
+
'es-ES',
|
|
1645
|
+
'en-ES',
|
|
1646
|
+
'fi-FI',
|
|
1647
|
+
'sv-FI',
|
|
1648
|
+
'en-FI',
|
|
1649
|
+
'en-GB',
|
|
1650
|
+
'en-IE',
|
|
1651
|
+
'it-IT',
|
|
1652
|
+
'en-IT',
|
|
1653
|
+
'nl-NL',
|
|
1654
|
+
'en-NL',
|
|
1655
|
+
'nb-NO',
|
|
1656
|
+
'en-NO',
|
|
1657
|
+
'sv-SE',
|
|
1658
|
+
'en-SE',
|
|
1659
|
+
'en-US',
|
|
1660
|
+
'es-US',
|
|
1661
|
+
'fr-FR',
|
|
1662
|
+
'en-FR',
|
|
1663
|
+
'cs-CZ',
|
|
1664
|
+
'en-CZ',
|
|
1665
|
+
'el-GR',
|
|
1666
|
+
'en-GR',
|
|
1667
|
+
'en-AU',
|
|
1668
|
+
'en-NZ',
|
|
1669
|
+
'en-CA',
|
|
1670
|
+
'fr-CA',
|
|
1671
|
+
'pl-PL',
|
|
1672
|
+
'en-PL',
|
|
1673
|
+
'pt-PT',
|
|
1674
|
+
'en-PT',
|
|
1675
|
+
'de-CH',
|
|
1676
|
+
'fr-CH',
|
|
1677
|
+
'it-CH',
|
|
1678
|
+
'en-CH',
|
|
1679
|
+
]),
|
|
1680
|
+
|
|
1475
1681
|
'io.flow.stripe.v0.enums.refund_failure_reason': (): io.flow.stripe.v0.enums.RefundFailureReason => faker.helpers.arrayElement(['lost_or_stolen_card', 'expired_or_canceled_card', 'unknown']),
|
|
1476
1682
|
'io.flow.stripe.v0.enums.refund_reason': (): io.flow.stripe.v0.enums.RefundReason => faker.helpers.arrayElement(['duplicate', 'fraudulent', 'requested_by_customer']),
|
|
1477
1683
|
'io.flow.stripe.v0.enums.refund_status': (): io.flow.stripe.v0.enums.RefundStatus => faker.helpers.arrayElement(['succeeded', 'failed', 'pending', 'canceled']),
|
|
@@ -1501,6 +1707,27 @@ const factories = {
|
|
|
1501
1707
|
|
|
1502
1708
|
'io.flow.stripe.v0.enums.source_usage_type': (): io.flow.stripe.v0.enums.SourceUsageType => faker.helpers.arrayElement(['reusable', 'single_use']),
|
|
1503
1709
|
'io.flow.stripe.v0.enums.three_d_secure_support': (): io.flow.stripe.v0.enums.ThreeDSecureSupport => faker.helpers.arrayElement(['required', 'recommended', 'optional', 'not_supported']),
|
|
1710
|
+
'io.flow.stripe.v0.enums.three_ds_authentication_flow': (): io.flow.stripe.v0.enums.ThreeDsAuthenticationFlow => faker.helpers.arrayElement(['challenge', 'frictionless']),
|
|
1711
|
+
|
|
1712
|
+
'io.flow.stripe.v0.enums.three_ds_result': (): io.flow.stripe.v0.enums.ThreeDsResult => faker.helpers.arrayElement([
|
|
1713
|
+
'authenticated',
|
|
1714
|
+
'attempt_acknowledged',
|
|
1715
|
+
'exempted',
|
|
1716
|
+
'not_supported',
|
|
1717
|
+
'failed',
|
|
1718
|
+
'processing_error',
|
|
1719
|
+
]),
|
|
1720
|
+
|
|
1721
|
+
'io.flow.stripe.v0.enums.three_ds_result_reason': (): io.flow.stripe.v0.enums.ThreeDsResultReason => faker.helpers.arrayElement([
|
|
1722
|
+
'card_not_enrolled',
|
|
1723
|
+
'network_not_supported',
|
|
1724
|
+
'abandoned',
|
|
1725
|
+
'canceled',
|
|
1726
|
+
'rejected',
|
|
1727
|
+
'bypassed',
|
|
1728
|
+
'protocol_error',
|
|
1729
|
+
]),
|
|
1730
|
+
|
|
1504
1731
|
'io.flow.stripe.v0.enums.token_type': (): io.flow.stripe.v0.enums.TokenType => faker.helpers.arrayElement(['account', 'bank_account', 'card', 'pii']),
|
|
1505
1732
|
'io.flow.stripe.v0.enums.use_stripe_sdk_type': (): io.flow.stripe.v0.enums.UseStripeSdkType => faker.helpers.arrayElement(['three_d_secure_redirect', 'stripe_3ds2_fingerprint']),
|
|
1506
1733
|
|
|
@@ -1548,6 +1775,16 @@ const factories = {
|
|
|
1548
1775
|
state: factories.string(),
|
|
1549
1776
|
}),
|
|
1550
1777
|
|
|
1778
|
+
'io.flow.stripe.v0.models.apple_pay': (): io.flow.stripe.v0.models.ApplePay => ({
|
|
1779
|
+
type: 'apple_pay',
|
|
1780
|
+
apple_pay: factories['io.flow.stripe.v0.models.apple_pay_information'](),
|
|
1781
|
+
dynamic_last4: factories.string(),
|
|
1782
|
+
}),
|
|
1783
|
+
|
|
1784
|
+
'io.flow.stripe.v0.models.apple_pay_information': (): io.flow.stripe.v0.models.ApplePayInformation => ({
|
|
1785
|
+
type: factories['io.flow.stripe.v0.enums.apple_pay_type'](),
|
|
1786
|
+
}),
|
|
1787
|
+
|
|
1551
1788
|
'io.flow.stripe.v0.models.card': (): io.flow.stripe.v0.models.Card => ({
|
|
1552
1789
|
id: factories.string(),
|
|
1553
1790
|
object: factories.string(),
|
|
@@ -1573,6 +1810,12 @@ const factories = {
|
|
|
1573
1810
|
tokenization_method: factories.string(),
|
|
1574
1811
|
}),
|
|
1575
1812
|
|
|
1813
|
+
'io.flow.stripe.v0.models.card_checks': (): io.flow.stripe.v0.models.CardChecks => ({
|
|
1814
|
+
address_line1_check: factories['io.flow.stripe.v0.enums.check_outcome'](),
|
|
1815
|
+
address_postal_code_check: factories['io.flow.stripe.v0.enums.check_outcome'](),
|
|
1816
|
+
cvc_check: factories['io.flow.stripe.v0.enums.check_outcome'](),
|
|
1817
|
+
}),
|
|
1818
|
+
|
|
1576
1819
|
'io.flow.stripe.v0.models.card_request': (): io.flow.stripe.v0.models.CardRequest => ({
|
|
1577
1820
|
object: factories.string(),
|
|
1578
1821
|
exp_month: factories.string(),
|
|
@@ -1616,7 +1859,7 @@ const factories = {
|
|
|
1616
1859
|
payment_intent: factories.string(),
|
|
1617
1860
|
calculated_statement_descriptor: factories.string(),
|
|
1618
1861
|
statement_descriptor: factories.string(),
|
|
1619
|
-
payment_method_details: factories.
|
|
1862
|
+
payment_method_details: factories['io.flow.stripe.v0.unions.payment_method_details'](),
|
|
1620
1863
|
}),
|
|
1621
1864
|
|
|
1622
1865
|
'io.flow.stripe.v0.models.charge_destination': (): io.flow.stripe.v0.models.ChargeDestination => ({
|
|
@@ -1666,7 +1909,7 @@ const factories = {
|
|
|
1666
1909
|
payment_intent: factories.string(),
|
|
1667
1910
|
calculated_statement_descriptor: factories.string(),
|
|
1668
1911
|
statement_descriptor: factories.string(),
|
|
1669
|
-
payment_method_details: factories.
|
|
1912
|
+
payment_method_details: factories['io.flow.stripe.v0.unions.payment_method_details'](),
|
|
1670
1913
|
}),
|
|
1671
1914
|
|
|
1672
1915
|
'io.flow.stripe.v0.models.code_verification': (): io.flow.stripe.v0.models.CodeVerification => ({
|
|
@@ -1725,12 +1968,29 @@ const factories = {
|
|
|
1725
1968
|
additional_owners: arrayOf(() => factories['io.flow.stripe.v0.models.owner']()),
|
|
1726
1969
|
}),
|
|
1727
1970
|
|
|
1971
|
+
'io.flow.stripe.v0.models.masterpass': (): io.flow.stripe.v0.models.Masterpass => ({
|
|
1972
|
+
type: 'masterpass',
|
|
1973
|
+
masterpass: factories['io.flow.stripe.v0.models.masterpass_information'](),
|
|
1974
|
+
dynamic_last4: factories.string(),
|
|
1975
|
+
}),
|
|
1976
|
+
|
|
1977
|
+
'io.flow.stripe.v0.models.masterpass_information': (): io.flow.stripe.v0.models.MasterpassInformation => ({
|
|
1978
|
+
billing_address: factories['io.flow.stripe.v0.models.address'](),
|
|
1979
|
+
email: factories.string(),
|
|
1980
|
+
name: factories.string(),
|
|
1981
|
+
shipping_address: factories['io.flow.stripe.v0.models.address'](),
|
|
1982
|
+
}),
|
|
1983
|
+
|
|
1728
1984
|
'io.flow.stripe.v0.models.metadata': (): io.flow.stripe.v0.models.Metadata => ({
|
|
1729
1985
|
order_number: factories.string(),
|
|
1730
1986
|
authorization_id: factories.string(),
|
|
1731
1987
|
organization_id: factories.string(),
|
|
1732
1988
|
}),
|
|
1733
1989
|
|
|
1990
|
+
'io.flow.stripe.v0.models.network_token_used': (): io.flow.stripe.v0.models.NetworkTokenUsed => ({
|
|
1991
|
+
used: factories.boolean(),
|
|
1992
|
+
}),
|
|
1993
|
+
|
|
1734
1994
|
'io.flow.stripe.v0.models.next_action': (): io.flow.stripe.v0.models.NextAction => ({
|
|
1735
1995
|
type: factories['io.flow.stripe.v0.enums.next_action_type'](),
|
|
1736
1996
|
use_stripe_sdk: factories.object(),
|
|
@@ -1912,6 +2172,43 @@ const factories = {
|
|
|
1912
2172
|
phone: factories.string(),
|
|
1913
2173
|
}),
|
|
1914
2174
|
|
|
2175
|
+
'io.flow.stripe.v0.models.payment_method_details_card': (): io.flow.stripe.v0.models.PaymentMethodDetailsCard => ({
|
|
2176
|
+
type: 'card',
|
|
2177
|
+
card: factories['io.flow.stripe.v0.models.payment_method_details_card_information'](),
|
|
2178
|
+
}),
|
|
2179
|
+
|
|
2180
|
+
'io.flow.stripe.v0.models.payment_method_details_card_information': (): io.flow.stripe.v0.models.PaymentMethodDetailsCardInformation => ({
|
|
2181
|
+
brand: factories.string(),
|
|
2182
|
+
checks: factories['io.flow.stripe.v0.models.card_checks'](),
|
|
2183
|
+
country: factories.string(),
|
|
2184
|
+
exp_month: factories.integer(),
|
|
2185
|
+
exp_year: factories.integer(),
|
|
2186
|
+
fingerprint: factories.string(),
|
|
2187
|
+
funding: factories['io.flow.stripe.v0.enums.card_funding_type'](),
|
|
2188
|
+
installments: factories['io.flow.stripe.v0.models.plan'](),
|
|
2189
|
+
last4: factories.string(),
|
|
2190
|
+
mandate: factories.string(),
|
|
2191
|
+
network: factories['io.flow.stripe.v0.enums.card_network'](),
|
|
2192
|
+
network_token: factories['io.flow.stripe.v0.models.network_token_used'](),
|
|
2193
|
+
three_d_secure: factories['io.flow.stripe.v0.models.three_d_secure_charge'](),
|
|
2194
|
+
capture_before: factories.long(),
|
|
2195
|
+
description: factories.string(),
|
|
2196
|
+
iin: factories.string(),
|
|
2197
|
+
issuer: factories.string(),
|
|
2198
|
+
wallet: factories['io.flow.stripe.v0.unions.card_wallet'](),
|
|
2199
|
+
network_transaction_id: factories.string(),
|
|
2200
|
+
}),
|
|
2201
|
+
|
|
2202
|
+
'io.flow.stripe.v0.models.payment_method_details_klarna': (): io.flow.stripe.v0.models.PaymentMethodDetailsKlarna => ({
|
|
2203
|
+
type: 'klarna',
|
|
2204
|
+
klarna: factories['io.flow.stripe.v0.models.payment_method_details_klarna_information'](),
|
|
2205
|
+
}),
|
|
2206
|
+
|
|
2207
|
+
'io.flow.stripe.v0.models.payment_method_details_klarna_information': (): io.flow.stripe.v0.models.PaymentMethodDetailsKlarnaInformation => ({
|
|
2208
|
+
payment_method_category: factories['io.flow.stripe.v0.enums.payment_method_category_klarna'](),
|
|
2209
|
+
preferred_locale: factories['io.flow.stripe.v0.enums.preferred_locale_klarna'](),
|
|
2210
|
+
}),
|
|
2211
|
+
|
|
1915
2212
|
'io.flow.stripe.v0.models.payment_method_form': (): io.flow.stripe.v0.models.PaymentMethodForm => ({
|
|
1916
2213
|
type: factories['io.flow.stripe.v0.enums.payment_method_type'](),
|
|
1917
2214
|
billing_details: factories['io.flow.stripe.v0.models.payment_method_billing_details'](),
|
|
@@ -1934,6 +2231,12 @@ const factories = {
|
|
|
1934
2231
|
type: factories['io.flow.stripe.v0.enums.payment_outcome_type'](),
|
|
1935
2232
|
}),
|
|
1936
2233
|
|
|
2234
|
+
'io.flow.stripe.v0.models.plan': (): io.flow.stripe.v0.models.Plan => ({
|
|
2235
|
+
count: factories.integer(),
|
|
2236
|
+
interval: factories.string(),
|
|
2237
|
+
type: factories.string(),
|
|
2238
|
+
}),
|
|
2239
|
+
|
|
1937
2240
|
'io.flow.stripe.v0.models.receiver': (): io.flow.stripe.v0.models.Receiver => ({
|
|
1938
2241
|
address: factories.string(),
|
|
1939
2242
|
amount_charged: factories.integer(),
|
|
@@ -2155,6 +2458,13 @@ const factories = {
|
|
|
2155
2458
|
customer: factories.string(),
|
|
2156
2459
|
}),
|
|
2157
2460
|
|
|
2461
|
+
'io.flow.stripe.v0.models.three_d_secure_charge': (): io.flow.stripe.v0.models.ThreeDSecureCharge => ({
|
|
2462
|
+
authentication_flow: factories['io.flow.stripe.v0.enums.three_ds_authentication_flow'](),
|
|
2463
|
+
result: factories['io.flow.stripe.v0.enums.three_ds_result'](),
|
|
2464
|
+
result_reason: factories['io.flow.stripe.v0.enums.three_ds_result_reason'](),
|
|
2465
|
+
version: factories.string(),
|
|
2466
|
+
}),
|
|
2467
|
+
|
|
2158
2468
|
'io.flow.stripe.v0.models.three_d_secure_redirect': (): io.flow.stripe.v0.models.ThreeDSecureRedirect => ({
|
|
2159
2469
|
type: factories['io.flow.stripe.v0.enums.use_stripe_sdk_type'](),
|
|
2160
2470
|
stripe_js: factories.string(),
|
|
@@ -2182,6 +2492,41 @@ const factories = {
|
|
|
2182
2492
|
destination: factories.string(),
|
|
2183
2493
|
}),
|
|
2184
2494
|
|
|
2495
|
+
'io.flow.stripe.v0.models.visa_checkout': (): io.flow.stripe.v0.models.VisaCheckout => ({
|
|
2496
|
+
type: 'visa_checkout',
|
|
2497
|
+
visa_checkout: factories['io.flow.stripe.v0.models.visa_checkout_information'](),
|
|
2498
|
+
dynamic_last4: factories.string(),
|
|
2499
|
+
}),
|
|
2500
|
+
|
|
2501
|
+
'io.flow.stripe.v0.models.visa_checkout_information': (): io.flow.stripe.v0.models.VisaCheckoutInformation => ({
|
|
2502
|
+
billing_address: factories['io.flow.stripe.v0.models.address'](),
|
|
2503
|
+
email: factories.string(),
|
|
2504
|
+
name: factories.string(),
|
|
2505
|
+
shipping_address: factories['io.flow.stripe.v0.models.address'](),
|
|
2506
|
+
}),
|
|
2507
|
+
|
|
2508
|
+
'io.flow.stripe.v0.unions.card_wallet': (): io.flow.stripe.v0.unions.CardWallet => {
|
|
2509
|
+
const f = faker.helpers.arrayElement([
|
|
2510
|
+
() => factories['io.flow.stripe.v0.models.masterpass'](),
|
|
2511
|
+
() => factories['io.flow.stripe.v0.models.apple_pay'](),
|
|
2512
|
+
() => factories['io.flow.stripe.v0.models.visa_checkout'](),
|
|
2513
|
+
]);
|
|
2514
|
+
|
|
2515
|
+
return f();
|
|
2516
|
+
},
|
|
2517
|
+
|
|
2518
|
+
'io.flow.stripe.v0.unions.payment_method_details': (): io.flow.stripe.v0.unions.PaymentMethodDetails => {
|
|
2519
|
+
const f = faker.helpers.arrayElement([
|
|
2520
|
+
() => factories['io.flow.stripe.v0.models.payment_method_details_card'](),
|
|
2521
|
+
() => factories['io.flow.stripe.v0.models.payment_method_details_klarna'](),
|
|
2522
|
+
]);
|
|
2523
|
+
|
|
2524
|
+
return f();
|
|
2525
|
+
},
|
|
2526
|
+
|
|
2527
|
+
'io.flow.units.v0.enums.unit_of_length': (): io.flow.units.v0.enums.UnitOfLength => faker.helpers.arrayElement(['millimeter', 'centimeter', 'inch', 'foot', 'meter']),
|
|
2528
|
+
'io.flow.units.v0.enums.unit_of_volume': (): io.flow.units.v0.enums.UnitOfVolume => faker.helpers.arrayElement(['cubic_inch', 'cubic_meter']),
|
|
2529
|
+
'io.flow.units.v0.enums.unit_of_weight': (): io.flow.units.v0.enums.UnitOfWeight => faker.helpers.arrayElement(['gram', 'kilogram', 'ounce', 'pound']),
|
|
2185
2530
|
'io.flow.v0.enums.abandoned_order_promotion_status': (): io.flow.v0.enums.AbandonedOrderPromotionStatus => faker.helpers.arrayElement(['active', 'inactive']),
|
|
2186
2531
|
'io.flow.v0.enums.abandoned_order_setting_status': (): io.flow.v0.enums.AbandonedOrderSettingStatus => faker.helpers.arrayElement(['active', 'inactive']),
|
|
2187
2532
|
|
|
@@ -2388,6 +2733,7 @@ const factories = {
|
|
|
2388
2733
|
|
|
2389
2734
|
'io.flow.v0.enums.event_type': (): io.flow.v0.enums.EventType => faker.helpers.arrayElement([
|
|
2390
2735
|
'test_upserted',
|
|
2736
|
+
'generate_load',
|
|
2391
2737
|
'transaction_upserted',
|
|
2392
2738
|
'organization_transaction_upserted',
|
|
2393
2739
|
'organization_transaction_deleted',
|
|
@@ -2872,6 +3218,7 @@ const factories = {
|
|
|
2872
3218
|
'io.flow.v0.enums.organization_payment_method_tag': (): io.flow.v0.enums.OrganizationPaymentMethodTag => faker.helpers.arrayElement(['deny']),
|
|
2873
3219
|
'io.flow.v0.enums.organization_status': (): io.flow.v0.enums.OrganizationStatus => faker.helpers.arrayElement(['active', 'inactive', 'deactivated', 'provisioned']),
|
|
2874
3220
|
'io.flow.v0.enums.organization_type': (): io.flow.v0.enums.OrganizationType => faker.helpers.arrayElement(['standalone', 'channel']),
|
|
3221
|
+
'io.flow.v0.enums.package_dimensions_source': (): io.flow.v0.enums.PackageDimensionsSource => faker.helpers.arrayElement(['provided', 'dimensions_estimated']),
|
|
2875
3222
|
|
|
2876
3223
|
'io.flow.v0.enums.payment_action_type': (): io.flow.v0.enums.PaymentActionType => faker.helpers.arrayElement([
|
|
2877
3224
|
'redirect',
|
|
@@ -2963,6 +3310,7 @@ const factories = {
|
|
|
2963
3310
|
'io.flow.v0.enums.permitted_http_method': (): io.flow.v0.enums.PermittedHttpMethod => faker.helpers.arrayElement(['GET', 'POST', 'PUT', 'DELETE', 'PATCH']),
|
|
2964
3311
|
'io.flow.v0.enums.physical_delivery_special_serivce': (): io.flow.v0.enums.PhysicalDeliverySpecialSerivce => faker.helpers.arrayElement(['cold_storage', 'hazardous', 'perishable']),
|
|
2965
3312
|
'io.flow.v0.enums.postal_type': (): io.flow.v0.enums.PostalType => faker.helpers.arrayElement(['eircode', 'pin', 'postal', 'zip']),
|
|
3313
|
+
'io.flow.v0.enums.preferred_service_selection_strategy': (): io.flow.v0.enums.PreferredServiceSelectionStrategy => faker.helpers.arrayElement(['calculated_rate', 'flat_rate', 'custom_rate']),
|
|
2966
3314
|
'io.flow.v0.enums.price_accuracy': (): io.flow.v0.enums.PriceAccuracy => faker.helpers.arrayElement(['calculated', 'estimated_from_partial_destination']),
|
|
2967
3315
|
'io.flow.v0.enums.price_book_status': (): io.flow.v0.enums.PriceBookStatus => faker.helpers.arrayElement(['draft', 'published', 'archived']),
|
|
2968
3316
|
|
|
@@ -3074,6 +3422,7 @@ const factories = {
|
|
|
3074
3422
|
'io.flow.v0.enums.shopify_sync_check': (): io.flow.v0.enums.ShopifySyncCheck => faker.helpers.arrayElement(['localized_variants', 'flow_variant_metafields']),
|
|
3075
3423
|
'io.flow.v0.enums.sort_direction': (): io.flow.v0.enums.SortDirection => faker.helpers.arrayElement(['ascending', 'descending']),
|
|
3076
3424
|
'io.flow.v0.enums.statement_attachment_type': (): io.flow.v0.enums.StatementAttachmentType => faker.helpers.arrayElement(['csv']),
|
|
3425
|
+
'io.flow.v0.enums.stored_method_usage_step': (): io.flow.v0.enums.StoredMethodUsageStep => faker.helpers.arrayElement(['initial', 'subsequent']),
|
|
3077
3426
|
'io.flow.v0.enums.strategy': (): io.flow.v0.enums.Strategy => faker.helpers.arrayElement(['range', 'from', 'to']),
|
|
3078
3427
|
'io.flow.v0.enums.subcatalog_item_status': (): io.flow.v0.enums.SubcatalogItemStatus => faker.helpers.arrayElement(['excluded', 'included', 'restricted']),
|
|
3079
3428
|
'io.flow.v0.enums.surcharge_responsible_party': (): io.flow.v0.enums.SurchargeResponsibleParty => faker.helpers.arrayElement(['organization', 'customer']),
|
|
@@ -3135,6 +3484,15 @@ const factories = {
|
|
|
3135
3484
|
'io.flow.v0.enums.trade_agreement_name': (): io.flow.v0.enums.TradeAgreementName => faker.helpers.arrayElement(['USMCA', 'T-MEC', 'CUSMA', 'TCA']),
|
|
3136
3485
|
'io.flow.v0.enums.trade_agreement_status': (): io.flow.v0.enums.TradeAgreementStatus => faker.helpers.arrayElement(['supported', 'not_supported']),
|
|
3137
3486
|
|
|
3487
|
+
'io.flow.v0.enums.transaction_payout_pending_reason': (): io.flow.v0.enums.TransactionPayoutPendingReason => faker.helpers.arrayElement([
|
|
3488
|
+
'waiting_for_full_refund',
|
|
3489
|
+
'waiting_for_fulfillment',
|
|
3490
|
+
'waiting_for_in_transit',
|
|
3491
|
+
'waiting_for_next_payout_date',
|
|
3492
|
+
'external_fulfillment_missing_tracking_info',
|
|
3493
|
+
'waiting_for_positive_account_balance',
|
|
3494
|
+
]),
|
|
3495
|
+
|
|
3138
3496
|
'io.flow.v0.enums.transaction_source': (): io.flow.v0.enums.TransactionSource => faker.helpers.arrayElement([
|
|
3139
3497
|
'capture',
|
|
3140
3498
|
'refund',
|
|
@@ -3157,6 +3515,8 @@ const factories = {
|
|
|
3157
3515
|
'virtual_card_refund',
|
|
3158
3516
|
]),
|
|
3159
3517
|
|
|
3518
|
+
'io.flow.v0.enums.unit_of_length': (): io.flow.v0.enums.UnitOfLength => faker.helpers.arrayElement(['millimeter', 'centimeter', 'inch', 'foot', 'meter']),
|
|
3519
|
+
|
|
3160
3520
|
'io.flow.v0.enums.unit_of_measurement': (): io.flow.v0.enums.UnitOfMeasurement => faker.helpers.arrayElement([
|
|
3161
3521
|
'millimeter',
|
|
3162
3522
|
'centimeter',
|
|
@@ -3172,12 +3532,14 @@ const factories = {
|
|
|
3172
3532
|
]),
|
|
3173
3533
|
|
|
3174
3534
|
'io.flow.v0.enums.unit_of_time': (): io.flow.v0.enums.UnitOfTime => faker.helpers.arrayElement(['year', 'month', 'week', 'day', 'hour', 'minute']),
|
|
3535
|
+
'io.flow.v0.enums.unit_of_volume': (): io.flow.v0.enums.UnitOfVolume => faker.helpers.arrayElement(['cubic_inch', 'cubic_meter']),
|
|
3536
|
+
'io.flow.v0.enums.unit_of_weight': (): io.flow.v0.enums.UnitOfWeight => faker.helpers.arrayElement(['gram', 'kilogram', 'ounce', 'pound']),
|
|
3175
3537
|
'io.flow.v0.enums.update_policy': (): io.flow.v0.enums.UpdatePolicy => faker.helpers.arrayElement(['auto', 'queue', 'discard']),
|
|
3176
3538
|
'io.flow.v0.enums.update_type': (): io.flow.v0.enums.UpdateType => faker.helpers.arrayElement(['change', 'set']),
|
|
3177
3539
|
'io.flow.v0.enums.user_status': (): io.flow.v0.enums.UserStatus => faker.helpers.arrayElement(['pending', 'active', 'inactive']),
|
|
3178
3540
|
'io.flow.v0.enums.value_added_service': (): io.flow.v0.enums.ValueAddedService => faker.helpers.arrayElement(['Hazardous Material']),
|
|
3179
3541
|
'io.flow.v0.enums.visibility': (): io.flow.v0.enums.Visibility => faker.helpers.arrayElement(['public', 'private']),
|
|
3180
|
-
'io.flow.v0.enums.webhook_status': (): io.flow.v0.enums.WebhookStatus => faker.helpers.arrayElement(['pending', 'success', 'failure']),
|
|
3542
|
+
'io.flow.v0.enums.webhook_status': (): io.flow.v0.enums.WebhookStatus => faker.helpers.arrayElement(['pending', 'success', 'failure', 'ignored']),
|
|
3181
3543
|
'io.flow.v0.enums.withholding_deduction_type': (): io.flow.v0.enums.WithholdingDeductionType => faker.helpers.arrayElement(['tax', 'duty', 'freight', 'insurance']),
|
|
3182
3544
|
'io.flow.v0.enums.zero_amount_indicator': (): io.flow.v0.enums.ZeroAmountIndicator => faker.helpers.arrayElement(['zero', 'free']),
|
|
3183
3545
|
|
|
@@ -4233,6 +4595,8 @@ const factories = {
|
|
|
4233
4595
|
expires_at: factories.date_time_iso_8601(),
|
|
4234
4596
|
base: factories['io.flow.v0.models.money'](),
|
|
4235
4597
|
processor: factories['io.flow.v0.unions.expandable_payment_processor'](),
|
|
4598
|
+
stored_method_usage_step: factories['io.flow.v0.enums.stored_method_usage_step'](),
|
|
4599
|
+
authorized_at: factories.date_time_iso_8601(),
|
|
4236
4600
|
}),
|
|
4237
4601
|
|
|
4238
4602
|
'io.flow.v0.models.card_authorization_deleted_v2': (): io.flow.v0.models.CardAuthorizationDeletedV2 => ({
|
|
@@ -4793,6 +5157,7 @@ const factories = {
|
|
|
4793
5157
|
'io.flow.v0.models.channel_transaction': (): io.flow.v0.models.ChannelTransaction => ({
|
|
4794
5158
|
statement: factories['io.flow.v0.models.billing_channel_statement_reference'](),
|
|
4795
5159
|
id: factories.string(),
|
|
5160
|
+
metadata: factories['io.flow.v0.unions.transaction_metadata'](),
|
|
4796
5161
|
order: factories['io.flow.v0.models.billing_channel_order_summary'](),
|
|
4797
5162
|
payment_request: factories['io.flow.v0.models.billing_channel_payment_request_reference'](),
|
|
4798
5163
|
currency: factories.string(),
|
|
@@ -4824,6 +5189,12 @@ const factories = {
|
|
|
4824
5189
|
id: factories.string(),
|
|
4825
5190
|
}),
|
|
4826
5191
|
|
|
5192
|
+
'io.flow.v0.models.channel_transaction_payout': (): io.flow.v0.models.ChannelTransactionPayout => ({
|
|
5193
|
+
transaction: factories['io.flow.v0.models.transaction_reference'](),
|
|
5194
|
+
waiting_for: factories['io.flow.v0.enums.transaction_payout_pending_reason'](),
|
|
5195
|
+
payout: factories['io.flow.v0.models.payout_reference'](),
|
|
5196
|
+
}),
|
|
5197
|
+
|
|
4827
5198
|
'io.flow.v0.models.channel_transaction_upserted': (): io.flow.v0.models.ChannelTransactionUpserted => ({
|
|
4828
5199
|
discriminator: 'channel_transaction_upserted',
|
|
4829
5200
|
event_id: factories.string(),
|
|
@@ -5149,6 +5520,14 @@ const factories = {
|
|
|
5149
5520
|
language: factories.string(),
|
|
5150
5521
|
}),
|
|
5151
5522
|
|
|
5523
|
+
'io.flow.v0.models.country_of_origin': (): io.flow.v0.models.CountryOfOrigin => ({
|
|
5524
|
+
country: factories['io.flow.v0.models.country'](),
|
|
5525
|
+
}),
|
|
5526
|
+
|
|
5527
|
+
'io.flow.v0.models.country_of_origin_form': (): io.flow.v0.models.CountryOfOriginForm => ({
|
|
5528
|
+
country: factories.string(),
|
|
5529
|
+
}),
|
|
5530
|
+
|
|
5152
5531
|
'io.flow.v0.models.country_picker': (): io.flow.v0.models.CountryPicker => ({
|
|
5153
5532
|
id: factories.string(),
|
|
5154
5533
|
source: factories['io.flow.v0.enums.country_picker_source'](),
|
|
@@ -5496,6 +5875,10 @@ const factories = {
|
|
|
5496
5875
|
amount: factories.decimal(),
|
|
5497
5876
|
}),
|
|
5498
5877
|
|
|
5878
|
+
'io.flow.v0.models.deactivation_put_form': (): io.flow.v0.models.DeactivationPutForm => ({
|
|
5879
|
+
reason: factories.string(),
|
|
5880
|
+
}),
|
|
5881
|
+
|
|
5499
5882
|
'io.flow.v0.models.default_bank_account_form': (): io.flow.v0.models.DefaultBankAccountForm => ({
|
|
5500
5883
|
bank_account_id: factories.string(),
|
|
5501
5884
|
}),
|
|
@@ -5645,6 +6028,7 @@ const factories = {
|
|
|
5645
6028
|
order_number: factories.string(),
|
|
5646
6029
|
service: factories.string(),
|
|
5647
6030
|
shipment_recipient: factories['io.flow.v0.enums.shipment_recipient'](),
|
|
6031
|
+
package_dimensions_source: factories['io.flow.v0.enums.package_dimensions_source'](),
|
|
5648
6032
|
}),
|
|
5649
6033
|
|
|
5650
6034
|
'io.flow.v0.models.detailed_shipping_notification_form': (): io.flow.v0.models.DetailedShippingNotificationForm => ({
|
|
@@ -6655,6 +7039,15 @@ const factories = {
|
|
|
6655
7039
|
landed_costs: arrayOf(() => factories['io.flow.v0.models.lane_landed_cost']()),
|
|
6656
7040
|
}),
|
|
6657
7041
|
|
|
7042
|
+
'io.flow.v0.models.generate_load': (): io.flow.v0.models.GenerateLoad => ({
|
|
7043
|
+
discriminator: 'generate_load',
|
|
7044
|
+
event_id: factories.string(),
|
|
7045
|
+
timestamp: factories.date_time_iso_8601(),
|
|
7046
|
+
organization: factories.string(),
|
|
7047
|
+
test_name: factories.string(),
|
|
7048
|
+
num_tests: factories.integer(),
|
|
7049
|
+
}),
|
|
7050
|
+
|
|
6658
7051
|
'io.flow.v0.models.generic_error': (): io.flow.v0.models.GenericError => ({
|
|
6659
7052
|
code: factories['io.flow.v0.enums.generic_error_code'](),
|
|
6660
7053
|
messages: arrayOf(() => factories.string()),
|
|
@@ -7462,6 +7855,7 @@ const factories = {
|
|
|
7462
7855
|
'io.flow.v0.models.know_your_business_usa': (): io.flow.v0.models.KnowYourBusinessUsa => ({
|
|
7463
7856
|
discriminator: 'know_your_business_usa',
|
|
7464
7857
|
id: factories.string(),
|
|
7858
|
+
organization_id: factories.string(),
|
|
7465
7859
|
primary_entity: factories['io.flow.v0.unions.entity'](),
|
|
7466
7860
|
parent_company: factories['io.flow.v0.models.company'](),
|
|
7467
7861
|
ultimate_parent_company: factories['io.flow.v0.models.company'](),
|
|
@@ -7531,6 +7925,7 @@ const factories = {
|
|
|
7531
7925
|
label: factories['io.flow.v0.models.label_reference'](),
|
|
7532
7926
|
in_transit: factories['io.flow.v0.models.label_tracking_summary_update'](),
|
|
7533
7927
|
delivered: factories['io.flow.v0.models.label_tracking_summary_update'](),
|
|
7928
|
+
rejected: factories['io.flow.v0.models.label_tracking_summary_update'](),
|
|
7534
7929
|
}),
|
|
7535
7930
|
|
|
7536
7931
|
'io.flow.v0.models.label_tracking_summary_update': (): io.flow.v0.models.LabelTrackingSummaryUpdate => ({
|
|
@@ -7941,6 +8336,11 @@ const factories = {
|
|
|
7941
8336
|
merchant_application: factories['io.flow.v0.unions.merchant_application'](),
|
|
7942
8337
|
}),
|
|
7943
8338
|
|
|
8339
|
+
'io.flow.v0.models.merchant_deactivated': (): io.flow.v0.models.MerchantDeactivated => ({
|
|
8340
|
+
discriminator: 'merchant_deactivated',
|
|
8341
|
+
reason: factories.string(),
|
|
8342
|
+
}),
|
|
8343
|
+
|
|
7944
8344
|
'io.flow.v0.models.merchant_gift_card_balance': (): io.flow.v0.models.MerchantGiftCardBalance => ({
|
|
7945
8345
|
amount: factories.decimal(),
|
|
7946
8346
|
currency: factories.string(),
|
|
@@ -8163,6 +8563,7 @@ const factories = {
|
|
|
8163
8563
|
base: factories['io.flow.v0.models.money'](),
|
|
8164
8564
|
processor: factories['io.flow.v0.unions.expandable_payment_processor'](),
|
|
8165
8565
|
confirmation_details: factories['io.flow.v0.unions.confirmation_details'](),
|
|
8566
|
+
authorized_at: factories.date_time_iso_8601(),
|
|
8166
8567
|
}),
|
|
8167
8568
|
|
|
8168
8569
|
'io.flow.v0.models.online_authorization_deleted_v2': (): io.flow.v0.models.OnlineAuthorizationDeletedV2 => ({
|
|
@@ -8189,7 +8590,6 @@ const factories = {
|
|
|
8189
8590
|
}),
|
|
8190
8591
|
|
|
8191
8592
|
'io.flow.v0.models.operations_contact': (): io.flow.v0.models.OperationsContact => ({
|
|
8192
|
-
full_name: factories.string(),
|
|
8193
8593
|
company: factories.string(),
|
|
8194
8594
|
email: factories.string(),
|
|
8195
8595
|
phone: factories.string(),
|
|
@@ -9073,6 +9473,7 @@ const factories = {
|
|
|
9073
9473
|
time_blocked: factories.long(),
|
|
9074
9474
|
blocked_since: factories.date_time_iso_8601(),
|
|
9075
9475
|
completed_at: factories.date_time_iso_8601(),
|
|
9476
|
+
onboarding_started_at: factories.date_time_iso_8601(),
|
|
9076
9477
|
}),
|
|
9077
9478
|
|
|
9078
9479
|
'io.flow.v0.models.organization_onboarding_state_deleted': (): io.flow.v0.models.OrganizationOnboardingStateDeleted => ({
|
|
@@ -9227,6 +9628,12 @@ const factories = {
|
|
|
9227
9628
|
id: factories.string(),
|
|
9228
9629
|
}),
|
|
9229
9630
|
|
|
9631
|
+
'io.flow.v0.models.organization_transaction_payout': (): io.flow.v0.models.OrganizationTransactionPayout => ({
|
|
9632
|
+
transaction: factories['io.flow.v0.models.transaction_reference'](),
|
|
9633
|
+
waiting_for: factories['io.flow.v0.enums.transaction_payout_pending_reason'](),
|
|
9634
|
+
payout: factories['io.flow.v0.models.payout_reference'](),
|
|
9635
|
+
}),
|
|
9636
|
+
|
|
9230
9637
|
'io.flow.v0.models.organization_transaction_upserted': (): io.flow.v0.models.OrganizationTransactionUpserted => ({
|
|
9231
9638
|
discriminator: 'organization_transaction_upserted',
|
|
9232
9639
|
event_id: factories.string(),
|
|
@@ -9275,12 +9682,30 @@ const factories = {
|
|
|
9275
9682
|
amount: factories['io.flow.v0.models.money'](),
|
|
9276
9683
|
}),
|
|
9277
9684
|
|
|
9278
|
-
'io.flow.v0.models.
|
|
9279
|
-
discriminator: '
|
|
9685
|
+
'io.flow.v0.models.oversize_piece_surcharge_ratecard_fee': (): io.flow.v0.models.OversizePieceSurchargeRatecardFee => ({
|
|
9686
|
+
discriminator: 'oversize_piece_surcharge_ratecard_fee',
|
|
9687
|
+
dimensional_threshold: factories.decimal(),
|
|
9688
|
+
dimensional_unit: factories['io.flow.v0.enums.unit_of_measurement'](),
|
|
9280
9689
|
weight_threshold: factories.decimal(),
|
|
9281
9690
|
weight_unit: factories['io.flow.v0.enums.unit_of_measurement'](),
|
|
9282
|
-
|
|
9283
|
-
|
|
9691
|
+
amount: factories['io.flow.v0.models.money'](),
|
|
9692
|
+
}),
|
|
9693
|
+
|
|
9694
|
+
'io.flow.v0.models.oversize_piece_surcharge_service_fee': (): io.flow.v0.models.OversizePieceSurchargeServiceFee => ({
|
|
9695
|
+
discriminator: 'oversize_piece_surcharge_service_fee',
|
|
9696
|
+
dimensional_threshold: factories.decimal(),
|
|
9697
|
+
dimensional_unit: factories['io.flow.v0.enums.unit_of_measurement'](),
|
|
9698
|
+
weight_threshold: factories.decimal(),
|
|
9699
|
+
weight_unit: factories['io.flow.v0.enums.unit_of_measurement'](),
|
|
9700
|
+
amount: factories['io.flow.v0.models.money'](),
|
|
9701
|
+
}),
|
|
9702
|
+
|
|
9703
|
+
'io.flow.v0.models.package_dimensions': (): io.flow.v0.models.PackageDimensions => ({
|
|
9704
|
+
dimensions: arrayOf(() => factories['io.flow.v0.models.dimension']()),
|
|
9705
|
+
}),
|
|
9706
|
+
|
|
9707
|
+
'io.flow.v0.models.package_dimensions_form': (): io.flow.v0.models.PackageDimensionsForm => ({
|
|
9708
|
+
dimensions: arrayOf(() => factories['io.flow.v0.models.dimension']()),
|
|
9284
9709
|
}),
|
|
9285
9710
|
|
|
9286
9711
|
'io.flow.v0.models.packaging': (): io.flow.v0.models.Packaging => ({
|
|
@@ -9958,6 +10383,10 @@ const factories = {
|
|
|
9958
10383
|
url: factories.string(),
|
|
9959
10384
|
}),
|
|
9960
10385
|
|
|
10386
|
+
'io.flow.v0.models.payout_reference': (): io.flow.v0.models.PayoutReference => ({
|
|
10387
|
+
id: factories.string(),
|
|
10388
|
+
}),
|
|
10389
|
+
|
|
9961
10390
|
'io.flow.v0.models.payout_status_failed': (): io.flow.v0.models.PayoutStatusFailed => ({
|
|
9962
10391
|
code: 'failed',
|
|
9963
10392
|
timestamp: factories.date_time_iso_8601(),
|
|
@@ -9976,6 +10405,7 @@ const factories = {
|
|
|
9976
10405
|
|
|
9977
10406
|
'io.flow.v0.models.payout_transaction': (): io.flow.v0.models.PayoutTransaction => ({
|
|
9978
10407
|
id: factories.string(),
|
|
10408
|
+
metadata: factories['io.flow.v0.unions.transaction_metadata'](),
|
|
9979
10409
|
order: factories['io.flow.v0.models.billing_channel_order_summary'](),
|
|
9980
10410
|
payment_request: factories['io.flow.v0.models.billing_channel_payment_request_reference'](),
|
|
9981
10411
|
currency: factories.string(),
|
|
@@ -10085,6 +10515,12 @@ const factories = {
|
|
|
10085
10515
|
total: factories['io.flow.v0.models.localized_total'](),
|
|
10086
10516
|
goods_supply: factories['io.flow.v0.enums.goods_supply'](),
|
|
10087
10517
|
merchant_of_record_flow_entity: factories['io.flow.v0.enums.flow_entity'](),
|
|
10518
|
+
preferred_service: factories['io.flow.v0.models.physical_delivery_preferred_service'](),
|
|
10519
|
+
}),
|
|
10520
|
+
|
|
10521
|
+
'io.flow.v0.models.physical_delivery_preferred_service': (): io.flow.v0.models.PhysicalDeliveryPreferredService => ({
|
|
10522
|
+
id: factories.string(),
|
|
10523
|
+
selection_stratey: factories['io.flow.v0.enums.preferred_service_selection_strategy'](),
|
|
10088
10524
|
}),
|
|
10089
10525
|
|
|
10090
10526
|
'io.flow.v0.models.post_payment_redirect_urls': (): io.flow.v0.models.PostPaymentRedirectUrls => ({
|
|
@@ -10534,12 +10970,16 @@ const factories = {
|
|
|
10534
10970
|
'io.flow.v0.models.ratecard': (): io.flow.v0.models.Ratecard => ({
|
|
10535
10971
|
id: factories.string(),
|
|
10536
10972
|
number: factories.string(),
|
|
10973
|
+
rate_level_key: factories.string(),
|
|
10537
10974
|
direction: factories['io.flow.v0.enums.direction'](),
|
|
10538
10975
|
effective_at: factories.date_time_iso_8601(),
|
|
10539
10976
|
origination_zones: arrayOf(() => factories['io.flow.v0.models.zone']()),
|
|
10540
10977
|
service: factories['io.flow.v0.models.ratecard_service_summary'](),
|
|
10541
10978
|
published_at: factories.date_time_iso_8601(),
|
|
10542
10979
|
ratecard_owner: factories['io.flow.v0.enums.ratecard_owner'](),
|
|
10980
|
+
glbe_shipping_method_id: factories.string(),
|
|
10981
|
+
glbe_proposition_name: factories.string(),
|
|
10982
|
+
channel_revenue_share_percentage: factories.decimal(),
|
|
10543
10983
|
}),
|
|
10544
10984
|
|
|
10545
10985
|
'io.flow.v0.models.ratecard_carrier_summary': (): io.flow.v0.models.RatecardCarrierSummary => ({
|
|
@@ -10618,6 +11058,10 @@ const factories = {
|
|
|
10618
11058
|
dimensional_weight: factories['io.flow.v0.models.measurement'](),
|
|
10619
11059
|
gravitational_weight: factories['io.flow.v0.models.measurement'](),
|
|
10620
11060
|
ratecard_id: factories.string(),
|
|
11061
|
+
glbe_shipping_method_id: factories.string(),
|
|
11062
|
+
glbe_proposition_name: factories.string(),
|
|
11063
|
+
channel_revenue_share_percentage: factories.decimal(),
|
|
11064
|
+
rate_level_key: factories.string(),
|
|
10621
11065
|
line_items: arrayOf(() => factories['io.flow.v0.models.line_item_form']()),
|
|
10622
11066
|
}),
|
|
10623
11067
|
|
|
@@ -10627,7 +11071,12 @@ const factories = {
|
|
|
10627
11071
|
origination_zones: arrayOf(() => factories['io.flow.v0.models.zone']()),
|
|
10628
11072
|
service: factories.string(),
|
|
10629
11073
|
number: factories.string(),
|
|
11074
|
+
rate_level_key: factories.string(),
|
|
10630
11075
|
ratecard_owner: factories['io.flow.v0.enums.ratecard_owner'](),
|
|
11076
|
+
glbe_shipping_method_id: factories.string(),
|
|
11077
|
+
glbe_proposition_name: factories.string(),
|
|
11078
|
+
channel_revenue_share_percentage: factories.decimal(),
|
|
11079
|
+
data: objectOf(() => factories.string()),
|
|
10631
11080
|
}),
|
|
10632
11081
|
|
|
10633
11082
|
'io.flow.v0.models.ratecard_lane': (): io.flow.v0.models.RatecardLane => ({
|
|
@@ -11558,6 +12007,9 @@ const factories = {
|
|
|
11558
12007
|
carrier_tracking_number_url: factories.string(),
|
|
11559
12008
|
cost_estimate_source: factories['io.flow.v0.enums.cost_estimate_source'](),
|
|
11560
12009
|
cost: factories['io.flow.v0.models.price'](),
|
|
12010
|
+
delivered_duty: factories['io.flow.v0.enums.delivered_duty'](),
|
|
12011
|
+
taxes_owed: factories['io.flow.v0.models.money'](),
|
|
12012
|
+
duties_owed: factories['io.flow.v0.models.money'](),
|
|
11561
12013
|
destination: factories['io.flow.v0.models.shipping_address'](),
|
|
11562
12014
|
flow_tracking_number: factories.string(),
|
|
11563
12015
|
flow_tracking_number_url: factories.string(),
|
|
@@ -11569,6 +12021,7 @@ const factories = {
|
|
|
11569
12021
|
'return': factories['io.flow.v0.models.shipping_label_document'](),
|
|
11570
12022
|
order: factories['io.flow.v0.models.label_order_summary'](),
|
|
11571
12023
|
'package': factories['io.flow.v0.models.shipping_label_package'](),
|
|
12024
|
+
package_dimension_source: factories['io.flow.v0.enums.package_dimensions_source'](),
|
|
11572
12025
|
order_identifier: factories.string(),
|
|
11573
12026
|
fulfillment_key: factories.string(),
|
|
11574
12027
|
shipment_recipient: factories['io.flow.v0.enums.shipment_recipient'](),
|
|
@@ -11588,9 +12041,16 @@ const factories = {
|
|
|
11588
12041
|
required: factories.boolean(),
|
|
11589
12042
|
}),
|
|
11590
12043
|
|
|
12044
|
+
'io.flow.v0.models.shipping_label_hop_cost_itemized_estimate': (): io.flow.v0.models.ShippingLabelHopCostItemizedEstimate => ({
|
|
12045
|
+
units: factories['io.flow.billing.true.up.v0.models.label_units'](),
|
|
12046
|
+
base: factories['io.flow.billing.true.up.v0.models.label_base'](),
|
|
12047
|
+
surcharges: arrayOf(() => factories['io.flow.billing.true.up.v0.models.label_surcharge']()),
|
|
12048
|
+
}),
|
|
12049
|
+
|
|
11591
12050
|
'io.flow.v0.models.shipping_label_hop_summary': (): io.flow.v0.models.ShippingLabelHopSummary => ({
|
|
11592
12051
|
lane: factories['io.flow.v0.models.shipping_label_lane_summary'](),
|
|
11593
12052
|
cost: factories['io.flow.v0.models.money'](),
|
|
12053
|
+
itemized_estimate: factories['io.flow.v0.models.shipping_label_hop_cost_itemized_estimate'](),
|
|
11594
12054
|
}),
|
|
11595
12055
|
|
|
11596
12056
|
'io.flow.v0.models.shipping_label_lane_summary': (): io.flow.v0.models.ShippingLabelLaneSummary => ({
|
|
@@ -11600,6 +12060,7 @@ const factories = {
|
|
|
11600
12060
|
|
|
11601
12061
|
'io.flow.v0.models.shipping_label_package': (): io.flow.v0.models.ShippingLabelPackage => ({
|
|
11602
12062
|
dimensions: factories['io.flow.v0.models.dimension'](),
|
|
12063
|
+
volumetric_weight: factories.decimal(),
|
|
11603
12064
|
items: arrayOf(() => factories['io.flow.v0.models.line_item_form']()),
|
|
11604
12065
|
reference_number: factories.string(),
|
|
11605
12066
|
}),
|
|
@@ -11607,6 +12068,11 @@ const factories = {
|
|
|
11607
12068
|
'io.flow.v0.models.shipping_label_ratecard_summary': (): io.flow.v0.models.ShippingLabelRatecardSummary => ({
|
|
11608
12069
|
id: factories.string(),
|
|
11609
12070
|
ratecard_owner: factories['io.flow.v0.enums.ratecard_owner'](),
|
|
12071
|
+
rate_level_key: factories.string(),
|
|
12072
|
+
glbe_shipping_method_id: factories.string(),
|
|
12073
|
+
glbe_proposition_name: factories.string(),
|
|
12074
|
+
channel_revenue_share_percentage: factories.decimal(),
|
|
12075
|
+
shopify_grc_gid: factories.string(),
|
|
11610
12076
|
}),
|
|
11611
12077
|
|
|
11612
12078
|
'io.flow.v0.models.shipping_label_summary': (): io.flow.v0.models.ShippingLabelSummary => ({
|
|
@@ -11904,7 +12370,6 @@ const factories = {
|
|
|
11904
12370
|
status: factories['io.flow.v0.enums.onboarding_application_status'](),
|
|
11905
12371
|
company: factories['io.flow.v0.models.merchant_info'](),
|
|
11906
12372
|
indirect_tax: factories['io.flow.v0.models.indirect_tax'](),
|
|
11907
|
-
parent_company: factories['io.flow.v0.models.merchant_info'](),
|
|
11908
12373
|
beneficiary: factories.string(),
|
|
11909
12374
|
ultimate_beneficiary_owner: factories['io.flow.v0.models.ultimate_beneficiary_owner'](),
|
|
11910
12375
|
business_url: factories.string(),
|
|
@@ -11914,31 +12379,30 @@ const factories = {
|
|
|
11914
12379
|
chargeback_percentage: factories.decimal(),
|
|
11915
12380
|
bank_account_number: factories.string(),
|
|
11916
12381
|
aba_routing_transit_number: factories.string(),
|
|
11917
|
-
trade_sectors: arrayOf(() => factories['io.flow.v0.enums.onboarding_trade_sector']()),
|
|
11918
12382
|
other_trade_sector: factories.string(),
|
|
11919
12383
|
third_party_logistics_partners: arrayOf(() => factories['io.flow.v0.models.third_party_logistics_partner']()),
|
|
12384
|
+
center_contact: factories['io.flow.v0.models.operations_contact'](),
|
|
11920
12385
|
average_order_weight: factories.decimal(),
|
|
11921
12386
|
package_dimensions: arrayOf(() => factories['io.flow.v0.models.dimension']()),
|
|
11922
12387
|
monthly_average: factories['io.flow.v0.models.monthly_average'](),
|
|
11923
|
-
dangerous_goods: factories.boolean(),
|
|
11924
12388
|
default_country_of_origin: factories.string(),
|
|
11925
12389
|
ratecard: factories['io.flow.v0.models.ratecard_reference'](),
|
|
11926
12390
|
rate_card: factories.string(),
|
|
11927
12391
|
created_at: factories.date_time_iso_8601(),
|
|
11928
12392
|
activated_at: factories.date_time_iso_8601(),
|
|
11929
12393
|
status_updated_at: factories.date_time_iso_8601(),
|
|
11930
|
-
logistics_format: factories['io.flow.v0.models.logistics_format'](),
|
|
11931
12394
|
shop: factories['io.flow.v0.models.shop'](),
|
|
11932
12395
|
last_year_xborder_gmv: factories['io.flow.v0.models.money'](),
|
|
11933
12396
|
last_month_xborder_gmv: factories['io.flow.v0.models.money'](),
|
|
11934
12397
|
average_order_value: factories['io.flow.v0.models.money'](),
|
|
12398
|
+
glbe_merchant_guid: factories.string(),
|
|
12399
|
+
mcc_codes: arrayOf(() => factories.long()),
|
|
11935
12400
|
}),
|
|
11936
12401
|
|
|
11937
12402
|
'io.flow.v0.models.shopify_merchant_application_form': (): io.flow.v0.models.ShopifyMerchantApplicationForm => ({
|
|
11938
12403
|
discriminator: 'shopify_merchant_application_form',
|
|
11939
12404
|
company: factories['io.flow.v0.models.merchant_info'](),
|
|
11940
12405
|
indirect_tax: factories['io.flow.v0.models.indirect_tax'](),
|
|
11941
|
-
parent_company: factories['io.flow.v0.models.merchant_info'](),
|
|
11942
12406
|
beneficiary: factories.string(),
|
|
11943
12407
|
ultimate_beneficiary_owner: factories['io.flow.v0.models.ultimate_beneficiary_owner'](),
|
|
11944
12408
|
business_url: factories.string(),
|
|
@@ -11948,23 +12412,22 @@ const factories = {
|
|
|
11948
12412
|
chargeback_percentage: factories.decimal(),
|
|
11949
12413
|
bank_account_number: factories.string(),
|
|
11950
12414
|
aba_routing_transit_number: factories.string(),
|
|
11951
|
-
trade_sectors: arrayOf(() => factories['io.flow.v0.enums.onboarding_trade_sector']()),
|
|
11952
12415
|
other_trade_sector: factories.string(),
|
|
11953
12416
|
third_party_logistics_partners: arrayOf(() => factories['io.flow.v0.models.third_party_logistics_partner']()),
|
|
12417
|
+
center_contact: factories['io.flow.v0.models.operations_contact'](),
|
|
11954
12418
|
average_order_weight: factories.decimal(),
|
|
11955
12419
|
package_dimensions: arrayOf(() => factories['io.flow.v0.models.dimension']()),
|
|
11956
12420
|
monthly_average_volume_amount: factories.decimal(),
|
|
11957
12421
|
monthly_average_volume_currency: factories.string(),
|
|
11958
12422
|
monthly_average_number_transactions: factories.long(),
|
|
11959
|
-
dangerous_goods: factories.boolean(),
|
|
11960
12423
|
default_country_of_origin: factories.string(),
|
|
11961
12424
|
ratecard_id: factories.string(),
|
|
11962
12425
|
rate_card: factories.string(),
|
|
11963
|
-
logistics_format: factories['io.flow.v0.models.logistics_format'](),
|
|
11964
12426
|
shop: factories['io.flow.v0.models.shop'](),
|
|
11965
12427
|
last_year_xborder_gmv: factories['io.flow.v0.models.money'](),
|
|
11966
12428
|
last_month_xborder_gmv: factories['io.flow.v0.models.money'](),
|
|
11967
12429
|
average_order_value: factories['io.flow.v0.models.money'](),
|
|
12430
|
+
mcc_codes: arrayOf(() => factories.long()),
|
|
11968
12431
|
}),
|
|
11969
12432
|
|
|
11970
12433
|
'io.flow.v0.models.shopify_merchant_application_put_form': (): io.flow.v0.models.ShopifyMerchantApplicationPutForm => ({
|
|
@@ -12469,16 +12932,11 @@ const factories = {
|
|
|
12469
12932
|
email_recipients: arrayOf(() => factories.string()),
|
|
12470
12933
|
}),
|
|
12471
12934
|
|
|
12472
|
-
'io.flow.v0.models.test': (): io.flow.v0.models.Test => ({
|
|
12473
|
-
id: factories.string(),
|
|
12474
|
-
}),
|
|
12475
|
-
|
|
12476
12935
|
'io.flow.v0.models.test_upserted': (): io.flow.v0.models.TestUpserted => ({
|
|
12477
12936
|
discriminator: 'test_upserted',
|
|
12478
12937
|
event_id: factories.string(),
|
|
12479
12938
|
timestamp: factories.date_time_iso_8601(),
|
|
12480
|
-
|
|
12481
|
-
test: factories['io.flow.v0.models.test'](),
|
|
12939
|
+
test: factories['io.flow.ben.test.internal.v0.models.test'](),
|
|
12482
12940
|
}),
|
|
12483
12941
|
|
|
12484
12942
|
'io.flow.v0.models.third_party_logistics_partner': (): io.flow.v0.models.ThirdPartyLogisticsPartner => ({
|
|
@@ -12810,6 +13268,7 @@ const factories = {
|
|
|
12810
13268
|
'io.flow.v0.models.transaction': (): io.flow.v0.models.Transaction => ({
|
|
12811
13269
|
statement: factories['io.flow.v0.models.billing_channel_statement_reference'](),
|
|
12812
13270
|
id: factories.string(),
|
|
13271
|
+
metadata: factories['io.flow.v0.unions.transaction_metadata'](),
|
|
12813
13272
|
order: factories['io.flow.v0.models.billing_channel_order_summary'](),
|
|
12814
13273
|
payment_request: factories['io.flow.v0.models.billing_channel_payment_request_reference'](),
|
|
12815
13274
|
currency: factories.string(),
|
|
@@ -12832,11 +13291,20 @@ const factories = {
|
|
|
12832
13291
|
network_details: factories['io.flow.v0.models.transaction_network_details_card'](),
|
|
12833
13292
|
}),
|
|
12834
13293
|
|
|
13294
|
+
'io.flow.v0.models.transaction_metadata_shipping_label': (): io.flow.v0.models.TransactionMetadataShippingLabel => ({
|
|
13295
|
+
discriminator: 'shipping_label',
|
|
13296
|
+
request_method: factories['io.flow.v0.enums.label_request_method'](),
|
|
13297
|
+
}),
|
|
13298
|
+
|
|
12835
13299
|
'io.flow.v0.models.transaction_network_details_card': (): io.flow.v0.models.TransactionNetworkDetailsCard => ({
|
|
12836
13300
|
network_transaction_id: factories.string(),
|
|
12837
13301
|
network: factories['io.flow.v0.enums.card_type'](),
|
|
12838
13302
|
}),
|
|
12839
13303
|
|
|
13304
|
+
'io.flow.v0.models.transaction_reference': (): io.flow.v0.models.TransactionReference => ({
|
|
13305
|
+
id: factories.string(),
|
|
13306
|
+
}),
|
|
13307
|
+
|
|
12840
13308
|
'io.flow.v0.models.transaction_upserted': (): io.flow.v0.models.TransactionUpserted => ({
|
|
12841
13309
|
discriminator: 'transaction_upserted',
|
|
12842
13310
|
event_id: factories.string(),
|
|
@@ -13361,6 +13829,7 @@ const factories = {
|
|
|
13361
13829
|
'io.flow.v0.unions.event': (): io.flow.v0.unions.Event => {
|
|
13362
13830
|
const f = faker.helpers.arrayElement([
|
|
13363
13831
|
() => factories['io.flow.v0.models.test_upserted'](),
|
|
13832
|
+
() => factories['io.flow.v0.models.generate_load'](),
|
|
13364
13833
|
() => factories['io.flow.v0.models.transaction_upserted'](),
|
|
13365
13834
|
() => factories['io.flow.v0.models.organization_transaction_upserted'](),
|
|
13366
13835
|
() => factories['io.flow.v0.models.organization_transaction_deleted'](),
|
|
@@ -13786,6 +14255,7 @@ const factories = {
|
|
|
13786
14255
|
() => factories['io.flow.v0.models.setup_blocked'](),
|
|
13787
14256
|
() => factories['io.flow.v0.models.setup_completed'](),
|
|
13788
14257
|
() => factories['io.flow.v0.models.merchant_activated'](),
|
|
14258
|
+
() => factories['io.flow.v0.models.merchant_deactivated'](),
|
|
13789
14259
|
]);
|
|
13790
14260
|
|
|
13791
14261
|
return f();
|
|
@@ -14073,7 +14543,7 @@ const factories = {
|
|
|
14073
14543
|
const f = faker.helpers.arrayElement([
|
|
14074
14544
|
() => factories['io.flow.v0.models.ddp_ratecard_fee'](),
|
|
14075
14545
|
() => factories['io.flow.v0.models.fuel_surcharge_ratecard_fee'](),
|
|
14076
|
-
() => factories['io.flow.v0.models.
|
|
14546
|
+
() => factories['io.flow.v0.models.oversize_piece_surcharge_ratecard_fee'](),
|
|
14077
14547
|
() => factories['io.flow.v0.models.return_package_ratecard_fee'](),
|
|
14078
14548
|
() => factories['io.flow.v0.models.crossdock_ratecard_fee'](),
|
|
14079
14549
|
() => factories['io.flow.v0.models.remote_area_ratecard_fee'](),
|
|
@@ -14142,6 +14612,7 @@ const factories = {
|
|
|
14142
14612
|
() => factories['io.flow.v0.models.peak_surcharge_service_fee'](),
|
|
14143
14613
|
() => factories['io.flow.v0.models.peak_surcharge_by_weight_service_fee'](),
|
|
14144
14614
|
() => factories['io.flow.v0.models.duties_taxes_paid_surcharge_service_fee'](),
|
|
14615
|
+
() => factories['io.flow.v0.models.oversize_piece_surcharge_service_fee'](),
|
|
14145
14616
|
]);
|
|
14146
14617
|
|
|
14147
14618
|
return f();
|
|
@@ -14275,6 +14746,14 @@ const factories = {
|
|
|
14275
14746
|
const f = faker.helpers.arrayElement([() => factories['io.flow.v0.models.transaction_details_card']()]);
|
|
14276
14747
|
return f();
|
|
14277
14748
|
},
|
|
14749
|
+
|
|
14750
|
+
'io.flow.v0.unions.transaction_metadata': (): io.flow.v0.unions.TransactionMetadata => {
|
|
14751
|
+
const f = faker.helpers.arrayElement(
|
|
14752
|
+
[() => factories['io.flow.v0.models.transaction_metadata_shipping_label']()],
|
|
14753
|
+
);
|
|
14754
|
+
|
|
14755
|
+
return f();
|
|
14756
|
+
},
|
|
14278
14757
|
};
|
|
14279
14758
|
|
|
14280
14759
|
export const makeAbandonedOrderEmailSettings = () => factories['io.flow.v0.models.abandoned_order_email_settings']();
|
|
@@ -14539,6 +15018,7 @@ export const makeChannelTokenReference = () => factories['io.flow.v0.models.chan
|
|
|
14539
15018
|
export const makeChannelTransaction = () => factories['io.flow.v0.models.channel_transaction']();
|
|
14540
15019
|
export const makeChannelTransactionDeleted = () => factories['io.flow.v0.models.channel_transaction_deleted']();
|
|
14541
15020
|
export const makeChannelTransactionDeletedV2 = () => factories['io.flow.v0.models.channel_transaction_deleted_v2']();
|
|
15021
|
+
export const makeChannelTransactionPayout = () => factories['io.flow.v0.models.channel_transaction_payout']();
|
|
14542
15022
|
export const makeChannelTransactionUpserted = () => factories['io.flow.v0.models.channel_transaction_upserted']();
|
|
14543
15023
|
export const makeChannelUpserted = () => factories['io.flow.v0.models.channel_upserted']();
|
|
14544
15024
|
export const makeChannelViesRegistration = () => factories['io.flow.v0.models.channel_vies_registration']();
|
|
@@ -14592,6 +15072,8 @@ export const makeCostEstimateSource = () => factories['io.flow.v0.enums.cost_est
|
|
|
14592
15072
|
export const makeCountry = () => factories['io.flow.v0.models.country']();
|
|
14593
15073
|
export const makeCountryAvailability = () => factories['io.flow.v0.models.country_availability']();
|
|
14594
15074
|
export const makeCountryDefaults = () => factories['io.flow.v0.models.country_defaults']();
|
|
15075
|
+
export const makeCountryOfOrigin = () => factories['io.flow.v0.models.country_of_origin']();
|
|
15076
|
+
export const makeCountryOfOriginForm = () => factories['io.flow.v0.models.country_of_origin_form']();
|
|
14595
15077
|
export const makeCountryPicker = () => factories['io.flow.v0.models.country_picker']();
|
|
14596
15078
|
export const makeCountryPickerForm = () => factories['io.flow.v0.models.country_picker_form']();
|
|
14597
15079
|
export const makeCountryPickerSource = () => factories['io.flow.v0.enums.country_picker_source']();
|
|
@@ -14653,6 +15135,7 @@ export const makeDatetimeRange = () => factories['io.flow.v0.models.datetime_ran
|
|
|
14653
15135
|
export const makeDatetimeWithTimezone = () => factories['io.flow.v0.models.datetime_with_timezone']();
|
|
14654
15136
|
export const makeDayOfWeek = () => factories['io.flow.v0.enums.day_of_week']();
|
|
14655
15137
|
export const makeDdpRatecardFee = () => factories['io.flow.v0.models.ddp_ratecard_fee']();
|
|
15138
|
+
export const makeDeactivationPutForm = () => factories['io.flow.v0.models.deactivation_put_form']();
|
|
14656
15139
|
export const makeDefaultBankAccountForm = () => factories['io.flow.v0.models.default_bank_account_form']();
|
|
14657
15140
|
export const makeDeliveredDuty = () => factories['io.flow.v0.enums.delivered_duty']();
|
|
14658
15141
|
export const makeDeliveredDutyDisplayType = () => factories['io.flow.v0.enums.delivered_duty_display_type']();
|
|
@@ -14882,6 +15365,7 @@ export const makeFulfillmentRouting = () => factories['io.flow.v0.enums.fulfillm
|
|
|
14882
15365
|
export const makeFullyHarmonizedItemUpserted = () => factories['io.flow.v0.models.fully_harmonized_item_upserted']();
|
|
14883
15366
|
export const makeGatewayAuthenticationData = () => factories['io.flow.v0.unions.gateway_authentication_data']();
|
|
14884
15367
|
export const makeGatewayAuthenticationDataForm = () => factories['io.flow.v0.unions.gateway_authentication_data_form']();
|
|
15368
|
+
export const makeGenerateLoad = () => factories['io.flow.v0.models.generate_load']();
|
|
14885
15369
|
export const makeGenericError = () => factories['io.flow.v0.models.generic_error']();
|
|
14886
15370
|
export const makeGenericErrorCode = () => factories['io.flow.v0.enums.generic_error_code']();
|
|
14887
15371
|
export const makeGenericReservationError = () => factories['io.flow.v0.models.generic_reservation_error']();
|
|
@@ -15096,6 +15580,7 @@ export const makeMerchantApplicationForm = () => factories['io.flow.v0.unions.me
|
|
|
15096
15580
|
export const makeMerchantApplicationPutForm = () => factories['io.flow.v0.unions.merchant_application_put_form']();
|
|
15097
15581
|
export const makeMerchantApplicationUpserted = () => factories['io.flow.v0.models.merchant_application_upserted']();
|
|
15098
15582
|
export const makeMerchantApplicationsSummary = () => factories['io.flow.v0.unions.merchant_applications_summary']();
|
|
15583
|
+
export const makeMerchantDeactivated = () => factories['io.flow.v0.models.merchant_deactivated']();
|
|
15099
15584
|
export const makeMerchantGiftCardBalance = () => factories['io.flow.v0.models.merchant_gift_card_balance']();
|
|
15100
15585
|
export const makeMerchantGiftCardBalanceForm = () => factories['io.flow.v0.models.merchant_gift_card_balance_form']();
|
|
15101
15586
|
export const makeMerchantGiftCardError = () => factories['io.flow.v0.models.merchant_gift_card_error']();
|
|
@@ -15304,6 +15789,7 @@ export const makeOrganizationTokenReference = () => factories['io.flow.v0.models
|
|
|
15304
15789
|
export const makeOrganizationTokenV2 = () => factories['io.flow.v0.models.organization_token_v2']();
|
|
15305
15790
|
export const makeOrganizationTokenV2Reference = () => factories['io.flow.v0.models.organization_token_v2_reference']();
|
|
15306
15791
|
export const makeOrganizationTransactionDeleted = () => factories['io.flow.v0.models.organization_transaction_deleted']();
|
|
15792
|
+
export const makeOrganizationTransactionPayout = () => factories['io.flow.v0.models.organization_transaction_payout']();
|
|
15307
15793
|
export const makeOrganizationTransactionUpserted = () => factories['io.flow.v0.models.organization_transaction_upserted']();
|
|
15308
15794
|
export const makeOrganizationType = () => factories['io.flow.v0.enums.organization_type']();
|
|
15309
15795
|
export const makeOrganizationUpserted = () => factories['io.flow.v0.models.organization_upserted']();
|
|
@@ -15311,7 +15797,11 @@ export const makeOrganizationUpsertedV2 = () => factories['io.flow.v0.models.org
|
|
|
15311
15797
|
export const makeOrganizationVersion = () => factories['io.flow.v0.models.organization_version']();
|
|
15312
15798
|
export const makeOriginalPrices = () => factories['io.flow.v0.models.original_prices']();
|
|
15313
15799
|
export const makeOutboundCartonFee = () => factories['io.flow.v0.models.outbound_carton_fee']();
|
|
15314
|
-
export const
|
|
15800
|
+
export const makeOversizePieceSurchargeRatecardFee = () => factories['io.flow.v0.models.oversize_piece_surcharge_ratecard_fee']();
|
|
15801
|
+
export const makeOversizePieceSurchargeServiceFee = () => factories['io.flow.v0.models.oversize_piece_surcharge_service_fee']();
|
|
15802
|
+
export const makePackageDimensions = () => factories['io.flow.v0.models.package_dimensions']();
|
|
15803
|
+
export const makePackageDimensionsForm = () => factories['io.flow.v0.models.package_dimensions_form']();
|
|
15804
|
+
export const makePackageDimensionsSource = () => factories['io.flow.v0.enums.package_dimensions_source']();
|
|
15315
15805
|
export const makePackaging = () => factories['io.flow.v0.models.packaging']();
|
|
15316
15806
|
export const makeParentTransactionSummary = () => factories['io.flow.v0.models.parent_transaction_summary']();
|
|
15317
15807
|
export const makePartnerCenter = () => factories['io.flow.v0.models.partner_center']();
|
|
@@ -15448,6 +15938,7 @@ export const makePaymentUpserted = () => factories['io.flow.v0.models.payment_up
|
|
|
15448
15938
|
export const makePaymentVersion = () => factories['io.flow.v0.models.payment_version']();
|
|
15449
15939
|
export const makePayoutAttachment = () => factories['io.flow.v0.models.payout_attachment']();
|
|
15450
15940
|
export const makePayoutAttachmentType = () => factories['io.flow.v0.enums.payout_attachment_type']();
|
|
15941
|
+
export const makePayoutReference = () => factories['io.flow.v0.models.payout_reference']();
|
|
15451
15942
|
export const makePayoutStatus = () => factories['io.flow.v0.unions.payout_status']();
|
|
15452
15943
|
export const makePayoutStatusFailed = () => factories['io.flow.v0.models.payout_status_failed']();
|
|
15453
15944
|
export const makePayoutStatusFailureCode = () => factories['io.flow.v0.enums.payout_status_failure_code']();
|
|
@@ -15468,9 +15959,11 @@ export const makePfsInventoryCheckResponse = () => factories['io.flow.v0.models.
|
|
|
15468
15959
|
export const makePfsInventoryCheckResponseItem = () => factories['io.flow.v0.models.pfs_inventory_check_response_item']();
|
|
15469
15960
|
export const makePfsInventoryStatus = () => factories['io.flow.v0.models.pfs_inventory_status']();
|
|
15470
15961
|
export const makePhysicalDelivery = () => factories['io.flow.v0.models.physical_delivery']();
|
|
15962
|
+
export const makePhysicalDeliveryPreferredService = () => factories['io.flow.v0.models.physical_delivery_preferred_service']();
|
|
15471
15963
|
export const makePhysicalDeliverySpecialSerivce = () => factories['io.flow.v0.enums.physical_delivery_special_serivce']();
|
|
15472
15964
|
export const makePostPaymentRedirectUrls = () => factories['io.flow.v0.models.post_payment_redirect_urls']();
|
|
15473
15965
|
export const makePostalType = () => factories['io.flow.v0.enums.postal_type']();
|
|
15966
|
+
export const makePreferredServiceSelectionStrategy = () => factories['io.flow.v0.enums.preferred_service_selection_strategy']();
|
|
15474
15967
|
export const makePrice = () => factories['io.flow.v0.models.price']();
|
|
15475
15968
|
export const makePriceAccuracy = () => factories['io.flow.v0.enums.price_accuracy']();
|
|
15476
15969
|
export const makePriceBook = () => factories['io.flow.v0.models.price_book']();
|
|
@@ -15719,6 +16212,7 @@ export const makeShippingConfigurationVersion = () => factories['io.flow.v0.mode
|
|
|
15719
16212
|
export const makeShippingLabel = () => factories['io.flow.v0.models.shipping_label']();
|
|
15720
16213
|
export const makeShippingLabelDocument = () => factories['io.flow.v0.models.shipping_label_document']();
|
|
15721
16214
|
export const makeShippingLabelForm = () => factories['io.flow.v0.unions.shipping_label_form']();
|
|
16215
|
+
export const makeShippingLabelHopCostItemizedEstimate = () => factories['io.flow.v0.models.shipping_label_hop_cost_itemized_estimate']();
|
|
15722
16216
|
export const makeShippingLabelHopSummary = () => factories['io.flow.v0.models.shipping_label_hop_summary']();
|
|
15723
16217
|
export const makeShippingLabelLaneSummary = () => factories['io.flow.v0.models.shipping_label_lane_summary']();
|
|
15724
16218
|
export const makeShippingLabelPackage = () => factories['io.flow.v0.models.shipping_label_package']();
|
|
@@ -15793,6 +16287,7 @@ export const makeStatement = () => factories['io.flow.v0.models.statement']();
|
|
|
15793
16287
|
export const makeStatementAttachmentType = () => factories['io.flow.v0.enums.statement_attachment_type']();
|
|
15794
16288
|
export const makeStatementDeleted = () => factories['io.flow.v0.models.statement_deleted']();
|
|
15795
16289
|
export const makeStatementUpserted = () => factories['io.flow.v0.models.statement_upserted']();
|
|
16290
|
+
export const makeStoredMethodUsageStep = () => factories['io.flow.v0.enums.stored_method_usage_step']();
|
|
15796
16291
|
export const makeStrategy = () => factories['io.flow.v0.enums.strategy']();
|
|
15797
16292
|
export const makeStreetAddress = () => factories['io.flow.v0.models.street_address']();
|
|
15798
16293
|
export const makeStripeAuthenticationData = () => factories['io.flow.v0.models.stripe_authentication_data']();
|
|
@@ -15855,7 +16350,6 @@ export const makeTaxSetting = () => factories['io.flow.v0.unions.tax_setting']()
|
|
|
15855
16350
|
export const makeTaxVerificationResult = () => factories['io.flow.v0.enums.tax_verification_result']();
|
|
15856
16351
|
export const makeTaxabilityType = () => factories['io.flow.v0.enums.taxability_type']();
|
|
15857
16352
|
export const makeTaxabilityValue = () => factories['io.flow.v0.enums.taxability_value']();
|
|
15858
|
-
export const makeTest = () => factories['io.flow.v0.models.test']();
|
|
15859
16353
|
export const makeTestUpserted = () => factories['io.flow.v0.models.test_upserted']();
|
|
15860
16354
|
export const makeThirdPartyLogisticsPartner = () => factories['io.flow.v0.models.third_party_logistics_partner']();
|
|
15861
16355
|
export const makeThreeDSecure = () => factories['io.flow.v0.models.three_d_secure']();
|
|
@@ -15918,15 +16412,22 @@ export const makeTradeAgreementStatus = () => factories['io.flow.v0.enums.trade_
|
|
|
15918
16412
|
export const makeTransaction = () => factories['io.flow.v0.models.transaction']();
|
|
15919
16413
|
export const makeTransactionDetails = () => factories['io.flow.v0.unions.transaction_details']();
|
|
15920
16414
|
export const makeTransactionDetailsCard = () => factories['io.flow.v0.models.transaction_details_card']();
|
|
16415
|
+
export const makeTransactionMetadata = () => factories['io.flow.v0.unions.transaction_metadata']();
|
|
16416
|
+
export const makeTransactionMetadataShippingLabel = () => factories['io.flow.v0.models.transaction_metadata_shipping_label']();
|
|
15921
16417
|
export const makeTransactionNetworkDetailsCard = () => factories['io.flow.v0.models.transaction_network_details_card']();
|
|
16418
|
+
export const makeTransactionPayoutPendingReason = () => factories['io.flow.v0.enums.transaction_payout_pending_reason']();
|
|
16419
|
+
export const makeTransactionReference = () => factories['io.flow.v0.models.transaction_reference']();
|
|
15922
16420
|
export const makeTransactionSource = () => factories['io.flow.v0.enums.transaction_source']();
|
|
15923
16421
|
export const makeTransactionUpserted = () => factories['io.flow.v0.models.transaction_upserted']();
|
|
15924
16422
|
export const makeTransitEstimate = () => factories['io.flow.v0.models.transit_estimate']();
|
|
15925
16423
|
export const makeTransitWindow = () => factories['io.flow.v0.models.transit_window']();
|
|
15926
16424
|
export const makeUltimateBeneficiaryOwner = () => factories['io.flow.v0.models.ultimate_beneficiary_owner']();
|
|
15927
16425
|
export const makeUnharmonizedItemExportType = () => factories['io.flow.v0.models.unharmonized_item_export_type']();
|
|
16426
|
+
export const makeUnitOfLength = () => factories['io.flow.v0.enums.unit_of_length']();
|
|
15928
16427
|
export const makeUnitOfMeasurement = () => factories['io.flow.v0.enums.unit_of_measurement']();
|
|
15929
16428
|
export const makeUnitOfTime = () => factories['io.flow.v0.enums.unit_of_time']();
|
|
16429
|
+
export const makeUnitOfVolume = () => factories['io.flow.v0.enums.unit_of_volume']();
|
|
16430
|
+
export const makeUnitOfWeight = () => factories['io.flow.v0.enums.unit_of_weight']();
|
|
15930
16431
|
export const makeUpdatePolicy = () => factories['io.flow.v0.enums.update_policy']();
|
|
15931
16432
|
export const makeUpdateType = () => factories['io.flow.v0.enums.update_type']();
|
|
15932
16433
|
export const makeUpload = () => factories['io.flow.v0.models.upload']();
|