@flowio/api-factories 0.0.108 → 0.0.109
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 +875 -3315
- package/dist/esm/api.js +865 -3306
- package/dist/types/api.d.ts +1 -0
- package/package.json +2 -2
- package/src/api.ts +925 -3872
package/dist/esm/api.js
CHANGED
|
@@ -430,6 +430,7 @@ var factories = {
|
|
|
430
430
|
'order_missing',
|
|
431
431
|
]); },
|
|
432
432
|
'io.flow.channel.internal.v0.enums.channel_order_acceptance_status': function () { return faker.helpers.arrayElement(['accepted', 'rejected', 'review', 'edit_review', 'edit_accepted']); },
|
|
433
|
+
'io.flow.channel.internal.v0.enums.order_payment_source_type': function () { return faker.helpers.arrayElement(['globale', 'third_party']); },
|
|
433
434
|
'io.flow.channel.internal.v0.models.channel_currency_form': function () { return ({
|
|
434
435
|
currency: factories.string(),
|
|
435
436
|
channel_id: factories.string(),
|
|
@@ -468,7 +469,7 @@ var factories = {
|
|
|
468
469
|
order_created_at: factories.date_time_iso_8601(),
|
|
469
470
|
order_updated_at: factories.date_time_iso_8601(),
|
|
470
471
|
order_edit_summary: factories['io.flow.channel.internal.v0.models.order_edit_summary'](),
|
|
471
|
-
payment_source: factories['io.flow.
|
|
472
|
+
payment_source: factories['io.flow.channel.internal.v0.enums.order_payment_source_type'](),
|
|
472
473
|
}); },
|
|
473
474
|
'io.flow.channel.internal.v0.models.channel_order_acceptance_details': function () { return ({
|
|
474
475
|
order_acceptance: factories['io.flow.channel.internal.v0.models.channel_order_acceptance'](),
|
|
@@ -1028,3439 +1029,1097 @@ var factories = {
|
|
|
1028
1029
|
code: factories['io.flow.error.v0.enums.generic_error_code'](),
|
|
1029
1030
|
messages: arrayOf(function () { return factories.string(); }),
|
|
1030
1031
|
}); },
|
|
1031
|
-
'io.flow.
|
|
1032
|
-
|
|
1033
|
-
'
|
|
1034
|
-
'
|
|
1035
|
-
'
|
|
1036
|
-
'
|
|
1037
|
-
'
|
|
1038
|
-
'
|
|
1039
|
-
'
|
|
1040
|
-
'
|
|
1041
|
-
'
|
|
1042
|
-
'
|
|
1043
|
-
|
|
1044
|
-
'io.flow.experience.v0.enums.credit_payment_error_code': function () { return faker.helpers.arrayElement([
|
|
1045
|
-
'generic_error',
|
|
1046
|
-
'invalid_order_number',
|
|
1047
|
-
'invalid_currency',
|
|
1048
|
-
'invalid_description',
|
|
1049
|
-
'duplicate',
|
|
1050
|
-
'amount_must_be_positive',
|
|
1051
|
-
'amount_exceeds_balance',
|
|
1052
|
-
'insufficient_amount',
|
|
1053
|
-
]); },
|
|
1054
|
-
'io.flow.experience.v0.enums.delivered_duty_display_type': function () { return faker.helpers.arrayElement(['all', 'single']); },
|
|
1055
|
-
'io.flow.experience.v0.enums.discount_rule_status': function () { return faker.helpers.arrayElement(['active', 'scheduled', 'expired']); },
|
|
1056
|
-
'io.flow.experience.v0.enums.discount_rule_subsidy_target': function () { return faker.helpers.arrayElement(['vat', 'duty']); },
|
|
1057
|
-
'io.flow.experience.v0.enums.experience_clone_status': function () { return faker.helpers.arrayElement(['pending', 'updating', 'completed', 'failed']); },
|
|
1058
|
-
'io.flow.experience.v0.enums.experience_country_status': function () { return faker.helpers.arrayElement(['enabled', 'disabled']); },
|
|
1059
|
-
'io.flow.experience.v0.enums.experience_payment_method_tag': function () { return faker.helpers.arrayElement(['display']); },
|
|
1060
|
-
'io.flow.experience.v0.enums.experience_status': function () { return faker.helpers.arrayElement(['draft', 'active', 'archiving', 'archived']); },
|
|
1061
|
-
'io.flow.experience.v0.enums.incoterm_configuration': function () { return faker.helpers.arrayElement(['DDP', 'DAP', 'DDU', 'UNSUPPORTED']); },
|
|
1062
|
-
'io.flow.experience.v0.enums.order_error_code': function () { return faker.helpers.arrayElement([
|
|
1063
|
-
'generic_error',
|
|
1064
|
-
'order_item_not_available',
|
|
1065
|
-
'order_identifier_error',
|
|
1066
|
-
'authorization_invalid',
|
|
1067
|
-
'domestic_shipping_unavailable',
|
|
1068
|
-
'shipping_unavailable',
|
|
1069
|
-
'value_threshold_exceeded',
|
|
1070
|
-
'invalid_currency',
|
|
1071
|
-
'invalid_country',
|
|
1072
|
-
'invalid_region',
|
|
1073
|
-
'invalid_language',
|
|
1074
|
-
'item_out_of_stock',
|
|
1075
|
-
'gift_card_not_accepted',
|
|
1076
|
-
'total_changed',
|
|
1077
|
-
]); },
|
|
1078
|
-
'io.flow.experience.v0.enums.order_payment_source_type': function () { return faker.helpers.arrayElement(['globale', 'third_party']); },
|
|
1079
|
-
'io.flow.experience.v0.enums.order_payment_type': function () { return faker.helpers.arrayElement([
|
|
1080
|
-
'card',
|
|
1081
|
-
'online',
|
|
1082
|
-
'credit',
|
|
1083
|
-
'external',
|
|
1084
|
-
'subsidized',
|
|
1085
|
-
'installment_plan',
|
|
1086
|
-
'cash_on_delivery',
|
|
1032
|
+
'io.flow.fulfillment.v0.enums.center_capability': function () { return faker.helpers.arrayElement(['international', 'domestic', 'crossdock', 'commercial_invoice']); },
|
|
1033
|
+
'io.flow.fulfillment.v0.enums.delivery_option_cost_detail_component_key': function () { return faker.helpers.arrayElement([
|
|
1034
|
+
'ratecard_base_cost',
|
|
1035
|
+
'ratecard_ddp_fee',
|
|
1036
|
+
'ratecard_fuel_surcharge',
|
|
1037
|
+
'ratecard_oversized_shipment_fee',
|
|
1038
|
+
'ratecard_rural_shipment_fee',
|
|
1039
|
+
'ratecard_emergency_situation_surcharge_fee',
|
|
1040
|
+
'ratecard_peak_surcharge_fee',
|
|
1041
|
+
'ratecard_duties_taxes_paid_surcharge_fee',
|
|
1042
|
+
'center_commercial_invoice_fee',
|
|
1043
|
+
'center_inbound_carton_fee',
|
|
1044
|
+
'center_outbound_carton_fee',
|
|
1087
1045
|
]); },
|
|
1088
|
-
'io.flow.
|
|
1089
|
-
'io.flow.
|
|
1090
|
-
'io.flow.
|
|
1091
|
-
'io.flow.
|
|
1092
|
-
'io.flow.
|
|
1093
|
-
'io.flow.
|
|
1094
|
-
'io.flow.
|
|
1095
|
-
'io.flow.
|
|
1096
|
-
'io.flow.
|
|
1097
|
-
'io.flow.
|
|
1098
|
-
|
|
1099
|
-
|
|
1100
|
-
|
|
1101
|
-
|
|
1102
|
-
|
|
1103
|
-
|
|
1104
|
-
|
|
1105
|
-
'io.flow.
|
|
1106
|
-
|
|
1107
|
-
|
|
1108
|
-
'io.flow.
|
|
1109
|
-
|
|
1110
|
-
|
|
1111
|
-
'io.flow.experience.v0.models.address_configuration_province': function () { return ({
|
|
1112
|
-
value: factories.string(),
|
|
1113
|
-
name: factories.string(),
|
|
1114
|
-
translations: arrayOf(function () { return factories['io.flow.experience.v0.models.address_configuration_province_translation'](); }),
|
|
1115
|
-
}); },
|
|
1116
|
-
'io.flow.experience.v0.models.address_configuration_province_translation': function () { return ({
|
|
1117
|
-
locale: factories['io.flow.experience.v0.models.address_configuration_province_translation_locale'](),
|
|
1118
|
-
name: factories.string(),
|
|
1119
|
-
}); },
|
|
1120
|
-
'io.flow.experience.v0.models.address_configuration_province_translation_locale': function () { return ({
|
|
1121
|
-
id: factories.string(),
|
|
1122
|
-
name: factories.string(),
|
|
1123
|
-
language: factories.string(),
|
|
1124
|
-
}); },
|
|
1125
|
-
'io.flow.experience.v0.models.address_field_validation': function () { return ({
|
|
1126
|
-
first_name: arrayOf(function () { return factories['io.flow.field.validation.v0.unions.field_validation_rule'](); }),
|
|
1127
|
-
last_name: arrayOf(function () { return factories['io.flow.field.validation.v0.unions.field_validation_rule'](); }),
|
|
1128
|
-
street_1: arrayOf(function () { return factories['io.flow.field.validation.v0.unions.field_validation_rule'](); }),
|
|
1129
|
-
street_2: arrayOf(function () { return factories['io.flow.field.validation.v0.unions.field_validation_rule'](); }),
|
|
1130
|
-
city: arrayOf(function () { return factories['io.flow.field.validation.v0.unions.field_validation_rule'](); }),
|
|
1131
|
-
province: arrayOf(function () { return factories['io.flow.field.validation.v0.unions.field_validation_rule'](); }),
|
|
1132
|
-
postal: arrayOf(function () { return factories['io.flow.field.validation.v0.unions.field_validation_rule'](); }),
|
|
1133
|
-
phone: arrayOf(function () { return factories['io.flow.field.validation.v0.unions.field_validation_rule'](); }),
|
|
1134
|
-
vat_registration_number: arrayOf(function () { return factories['io.flow.field.validation.v0.unions.field_validation_rule'](); }),
|
|
1135
|
-
}); },
|
|
1136
|
-
'io.flow.experience.v0.models.allocation': function () { return ({
|
|
1137
|
-
order: factories['io.flow.experience.v0.models.allocation_order_summary'](),
|
|
1138
|
-
details: arrayOf(function () { return factories['io.flow.experience.v0.unions.allocation_detail'](); }),
|
|
1139
|
-
}); },
|
|
1140
|
-
'io.flow.experience.v0.models.allocation_detail_component': function () { return ({
|
|
1141
|
-
discriminator: 'allocation_detail_component',
|
|
1142
|
-
key: factories['io.flow.order.price.v0.enums.order_price_detail_component_key'](),
|
|
1143
|
-
total: factories['io.flow.common.v0.models.price_with_base'](),
|
|
1144
|
-
price: factories['io.flow.common.v0.models.price_with_base'](),
|
|
1145
|
-
}); },
|
|
1146
|
-
'io.flow.experience.v0.models.allocation_levy_component': function () { return ({
|
|
1147
|
-
discriminator: 'allocation_levy_component',
|
|
1148
|
-
key: factories['io.flow.order.price.v0.enums.order_price_detail_component_key'](),
|
|
1149
|
-
total: factories['io.flow.common.v0.models.price_with_base'](),
|
|
1150
|
-
rate: factories.decimal(),
|
|
1151
|
-
name: factories.string(),
|
|
1152
|
-
price: factories['io.flow.common.v0.models.price_with_base'](),
|
|
1153
|
-
accuracy: factories['io.flow.price.v0.enums.price_accuracy'](),
|
|
1154
|
-
basis: factories['io.flow.common.v0.models.money_with_base'](),
|
|
1046
|
+
'io.flow.fulfillment.v0.enums.delivery_option_cost_detail_source': function () { return faker.helpers.arrayElement(['center', 'ratecard']); },
|
|
1047
|
+
'io.flow.fulfillment.v0.enums.delivery_window_component_source': function () { return faker.helpers.arrayElement(['flow', 'organization', 'carrier', 'center', 'mixed']); },
|
|
1048
|
+
'io.flow.fulfillment.v0.enums.delivery_window_location': function () { return faker.helpers.arrayElement(['center', 'crossdock', 'customer']); },
|
|
1049
|
+
'io.flow.fulfillment.v0.enums.fulfillment_routing': function () { return faker.helpers.arrayElement(['fulfilled_from_center', 'fulfillment_service']); },
|
|
1050
|
+
'io.flow.fulfillment.v0.enums.item_availability_status': function () { return faker.helpers.arrayElement(['available', 'low', 'out_of_stock']); },
|
|
1051
|
+
'io.flow.fulfillment.v0.enums.lane_direction': function () { return faker.helpers.arrayElement(['outbound', 'return']); },
|
|
1052
|
+
'io.flow.fulfillment.v0.enums.lane_preselect_preference': function () { return faker.helpers.arrayElement(['lowest_cost', 'default_tier']); },
|
|
1053
|
+
'io.flow.fulfillment.v0.enums.lane_strategy': function () { return faker.helpers.arrayElement(['oldest', 'fastest', 'lowest_cost', 'highest_priority']); },
|
|
1054
|
+
'io.flow.fulfillment.v0.enums.physical_delivery_special_serivce': function () { return faker.helpers.arrayElement(['cold_storage', 'hazardous', 'perishable']); },
|
|
1055
|
+
'io.flow.fulfillment.v0.enums.preferred_service_selection_strategy': function () { return faker.helpers.arrayElement(['calculated_rate', 'flat_rate', 'custom_rate']); },
|
|
1056
|
+
'io.flow.fulfillment.v0.enums.quote_error_code': function () { return faker.helpers.arrayElement(['generic_error', 'items_not_available', 'shipping_unavailable']); },
|
|
1057
|
+
'io.flow.fulfillment.v0.enums.ratecard_owner': function () { return faker.helpers.arrayElement(['flow', 'organization']); },
|
|
1058
|
+
'io.flow.fulfillment.v0.enums.shipment_integration_type': function () { return faker.helpers.arrayElement(['direct', 'information', 'preadvice']); },
|
|
1059
|
+
'io.flow.fulfillment.v0.enums.shipping_configuration_type': function () { return faker.helpers.arrayElement(['default', 'variant']); },
|
|
1060
|
+
'io.flow.fulfillment.v0.enums.strategy': function () { return faker.helpers.arrayElement(['range', 'from', 'to']); },
|
|
1061
|
+
'io.flow.fulfillment.v0.enums.surcharge_responsible_party': function () { return faker.helpers.arrayElement(['organization', 'customer']); },
|
|
1062
|
+
'io.flow.fulfillment.v0.enums.tier_availability': function () { return faker.helpers.arrayElement(['always', 'backup']); },
|
|
1063
|
+
'io.flow.fulfillment.v0.enums.tier_estimate_type': function () { return faker.helpers.arrayElement(['calculated', 'custom']); },
|
|
1064
|
+
'io.flow.fulfillment.v0.enums.tier_strategy': function () { return faker.helpers.arrayElement(['fastest', 'lowest_cost']); },
|
|
1065
|
+
'io.flow.fulfillment.v0.enums.zero_amount_indicator': function () { return faker.helpers.arrayElement(['zero', 'free']); },
|
|
1066
|
+
'io.flow.fulfillment.v0.models.amount_margin': function () { return ({
|
|
1067
|
+
discriminator: 'amount_margin',
|
|
1068
|
+
margin: factories['io.flow.common.v0.models.price'](),
|
|
1155
1069
|
}); },
|
|
1156
|
-
'io.flow.
|
|
1157
|
-
discriminator: '
|
|
1158
|
-
|
|
1159
|
-
number: factories.string(),
|
|
1160
|
-
quantity: factories.long(),
|
|
1161
|
-
key: factories['io.flow.order.price.v0.enums.order_price_detail_key'](),
|
|
1162
|
-
price: factories['io.flow.common.v0.models.price_with_base'](),
|
|
1163
|
-
total: factories['io.flow.common.v0.models.price_with_base'](),
|
|
1164
|
-
included: arrayOf(function () { return factories['io.flow.experience.v0.unions.allocation_component'](); }),
|
|
1165
|
-
not_included: arrayOf(function () { return factories['io.flow.experience.v0.unions.allocation_component'](); }),
|
|
1166
|
-
}); },
|
|
1167
|
-
'io.flow.experience.v0.models.allocation_line_summary': function () { return ({
|
|
1168
|
-
line_items: arrayOf(function () { return factories['io.flow.experience.v0.models.allocation_line_summary_line_item'](); }),
|
|
1169
|
-
shipping: factories['io.flow.experience.v0.models.allocation_line_summary_shipping'](),
|
|
1170
|
-
subtotal: factories['io.flow.common.v0.models.money_with_base'](),
|
|
1171
|
-
discount: factories['io.flow.common.v0.models.money_with_base'](),
|
|
1172
|
-
duties: factories['io.flow.common.v0.models.money_with_base'](),
|
|
1173
|
-
tax: factories['io.flow.common.v0.models.money_with_base'](),
|
|
1174
|
-
tax_subsidy: factories['io.flow.common.v0.models.money_with_base'](),
|
|
1175
|
-
duties_subsidy: factories['io.flow.common.v0.models.money_with_base'](),
|
|
1176
|
-
total: factories['io.flow.common.v0.models.money_with_base'](),
|
|
1177
|
-
}); },
|
|
1178
|
-
'io.flow.experience.v0.models.allocation_line_summary_line_item': function () { return ({
|
|
1179
|
-
item_number: factories.string(),
|
|
1180
|
-
line_number: factories.string(),
|
|
1181
|
-
subtotal: factories['io.flow.common.v0.models.money_with_base'](),
|
|
1182
|
-
discount: factories['io.flow.common.v0.models.money_with_base'](),
|
|
1183
|
-
duties: factories['io.flow.common.v0.models.money_with_base'](),
|
|
1184
|
-
tax: factories['io.flow.common.v0.models.money_with_base'](),
|
|
1185
|
-
tax_subsidy: factories['io.flow.common.v0.models.money_with_base'](),
|
|
1186
|
-
duties_subsidy: factories['io.flow.common.v0.models.money_with_base'](),
|
|
1187
|
-
total: factories['io.flow.common.v0.models.money_with_base'](),
|
|
1188
|
-
}); },
|
|
1189
|
-
'io.flow.experience.v0.models.allocation_line_summary_shipping': function () { return ({
|
|
1190
|
-
subtotal: factories['io.flow.common.v0.models.money_with_base'](),
|
|
1191
|
-
discount: factories['io.flow.common.v0.models.money_with_base'](),
|
|
1192
|
-
duties: factories['io.flow.common.v0.models.money_with_base'](),
|
|
1193
|
-
tax: factories['io.flow.common.v0.models.money_with_base'](),
|
|
1194
|
-
tax_subsidy: factories['io.flow.common.v0.models.money_with_base'](),
|
|
1195
|
-
duties_subsidy: factories['io.flow.common.v0.models.money_with_base'](),
|
|
1196
|
-
total: factories['io.flow.common.v0.models.money_with_base'](),
|
|
1197
|
-
}); },
|
|
1198
|
-
'io.flow.experience.v0.models.allocation_order_detail': function () { return ({
|
|
1199
|
-
discriminator: 'allocation_order_detail',
|
|
1200
|
-
key: factories['io.flow.order.price.v0.enums.order_price_detail_key'](),
|
|
1201
|
-
total: factories['io.flow.common.v0.models.price_with_base'](),
|
|
1202
|
-
included: arrayOf(function () { return factories['io.flow.experience.v0.unions.allocation_component'](); }),
|
|
1203
|
-
not_included: arrayOf(function () { return factories['io.flow.experience.v0.unions.allocation_component'](); }),
|
|
1070
|
+
'io.flow.fulfillment.v0.models.amount_margin_form': function () { return ({
|
|
1071
|
+
discriminator: 'amount_margin_form',
|
|
1072
|
+
margin: factories['io.flow.common.v0.models.money'](),
|
|
1204
1073
|
}); },
|
|
1205
|
-
'io.flow.
|
|
1206
|
-
|
|
1207
|
-
|
|
1208
|
-
submitted_at: factories.date_time_iso_8601(),
|
|
1074
|
+
'io.flow.fulfillment.v0.models.at_cost': function () { return ({
|
|
1075
|
+
discriminator: 'at_cost',
|
|
1076
|
+
ignore: factories.string(),
|
|
1209
1077
|
}); },
|
|
1210
|
-
'io.flow.
|
|
1211
|
-
|
|
1212
|
-
|
|
1213
|
-
|
|
1214
|
-
total: factories['io.flow.catalog.v0.models.localized_total'](),
|
|
1078
|
+
'io.flow.fulfillment.v0.models.available_service': function () { return ({
|
|
1079
|
+
service: factories.string(),
|
|
1080
|
+
scheduled_pickups: arrayOf(function () { return factories['io.flow.fulfillment.v0.models.scheduled_pickup'](); }),
|
|
1081
|
+
lead_days: factories['io.flow.fulfillment.v0.models.number_range'](),
|
|
1215
1082
|
}); },
|
|
1216
|
-
'io.flow.
|
|
1083
|
+
'io.flow.fulfillment.v0.models.carrier_reference': function () { return ({
|
|
1217
1084
|
id: factories.string(),
|
|
1218
|
-
shipping_configuration: factories['io.flow.fulfillment.v0.models.shipping_configuration_reference'](),
|
|
1219
|
-
region: factories['io.flow.experience.v0.models.region_reference'](),
|
|
1220
|
-
promotions: arrayOf(function () { return factories['io.flow.experience.v0.unions.promotion'](); }),
|
|
1221
1085
|
}); },
|
|
1222
|
-
'io.flow.
|
|
1086
|
+
'io.flow.fulfillment.v0.models.center': function () { return ({
|
|
1087
|
+
discriminator: 'center',
|
|
1223
1088
|
id: factories.string(),
|
|
1224
|
-
experience: factories['io.flow.experience.v0.models.experience_reference'](),
|
|
1225
|
-
key: factories.string(),
|
|
1226
|
-
name: factories.string(),
|
|
1227
|
-
attribute_keys: arrayOf(function () { return factories.string(); }),
|
|
1228
|
-
position: factories.long(),
|
|
1229
|
-
}); },
|
|
1230
|
-
'io.flow.experience.v0.models.checkout_attribute_form': function () { return ({
|
|
1231
1089
|
key: factories.string(),
|
|
1090
|
+
address: factories['io.flow.fulfillment.v0.models.shipping_address'](),
|
|
1091
|
+
packaging: arrayOf(function () { return factories['io.flow.fulfillment.v0.models.packaging'](); }),
|
|
1232
1092
|
name: factories.string(),
|
|
1233
|
-
|
|
1234
|
-
|
|
1235
|
-
|
|
1093
|
+
services: arrayOf(function () { return factories['io.flow.fulfillment.v0.models.available_service'](); }),
|
|
1094
|
+
schedule: factories['io.flow.common.v0.models.schedule'](),
|
|
1095
|
+
timezone: factories.string(),
|
|
1096
|
+
capabilities: arrayOf(function () { return factories['io.flow.fulfillment.v0.enums.center_capability'](); }),
|
|
1097
|
+
partner_center: factories['io.flow.fulfillment.v0.models.partner_center'](),
|
|
1236
1098
|
}); },
|
|
1237
|
-
'io.flow.
|
|
1238
|
-
|
|
1099
|
+
'io.flow.fulfillment.v0.models.center_form': function () { return ({
|
|
1100
|
+
address: factories['io.flow.fulfillment.v0.models.shipping_address'](),
|
|
1101
|
+
packaging: arrayOf(function () { return factories['io.flow.fulfillment.v0.models.packaging'](); }),
|
|
1239
1102
|
name: factories.string(),
|
|
1240
|
-
|
|
1241
|
-
|
|
1242
|
-
|
|
1243
|
-
}); },
|
|
1244
|
-
'io.flow.experience.v0.models.checkout_item_content_attribute': function () { return ({
|
|
1103
|
+
services: arrayOf(function () { return factories['io.flow.fulfillment.v0.models.available_service'](); }),
|
|
1104
|
+
schedule: factories['io.flow.common.v0.models.schedule'](),
|
|
1105
|
+
timezone: factories.string(),
|
|
1245
1106
|
key: factories.string(),
|
|
1246
|
-
|
|
1247
|
-
|
|
1107
|
+
capabilities: arrayOf(function () { return factories['io.flow.fulfillment.v0.enums.center_capability'](); }),
|
|
1108
|
+
partner_center_form: factories['io.flow.fulfillment.v0.models.partner_center_form'](),
|
|
1248
1109
|
}); },
|
|
1249
|
-
'io.flow.
|
|
1250
|
-
|
|
1251
|
-
country: factories.string(),
|
|
1252
|
-
status: factories['io.flow.experience.v0.enums.experience_country_status'](),
|
|
1110
|
+
'io.flow.fulfillment.v0.models.center_query': function () { return ({
|
|
1111
|
+
q: factories.string(),
|
|
1253
1112
|
}); },
|
|
1254
|
-
'io.flow.
|
|
1255
|
-
|
|
1113
|
+
'io.flow.fulfillment.v0.models.center_reference': function () { return ({
|
|
1114
|
+
discriminator: 'center_reference',
|
|
1115
|
+
organization_id: factories.string(),
|
|
1116
|
+
center_key: factories.string(),
|
|
1256
1117
|
}); },
|
|
1257
|
-
'io.flow.
|
|
1118
|
+
'io.flow.fulfillment.v0.models.center_summary': function () { return ({
|
|
1258
1119
|
id: factories.string(),
|
|
1259
|
-
order: factories['io.flow.experience.v0.unions.expandable_order'](),
|
|
1260
1120
|
key: factories.string(),
|
|
1261
|
-
|
|
1262
|
-
value: factories['io.flow.common.v0.models.price_with_base'](),
|
|
1263
|
-
original: factories['io.flow.experience.v0.models.original_prices'](),
|
|
1264
|
-
attributes: objectOf(function () { return factories.string(); }),
|
|
1265
|
-
}); },
|
|
1266
|
-
'io.flow.experience.v0.models.credit_payment_error': function () { return ({
|
|
1267
|
-
code: factories['io.flow.experience.v0.enums.credit_payment_error_code'](),
|
|
1268
|
-
messages: arrayOf(function () { return factories.string(); }),
|
|
1269
|
-
codes: arrayOf(function () { return factories['io.flow.experience.v0.enums.credit_payment_error_code'](); }),
|
|
1270
|
-
}); },
|
|
1271
|
-
'io.flow.experience.v0.models.credit_payment_form': function () { return ({
|
|
1272
|
-
order_number: factories.string(),
|
|
1273
|
-
description: factories.string(),
|
|
1274
|
-
amount: factories.decimal(),
|
|
1275
|
-
max: factories.decimal(),
|
|
1276
|
-
currency: factories.string(),
|
|
1277
|
-
attributes: objectOf(function () { return factories.string(); }),
|
|
1121
|
+
address: factories['io.flow.fulfillment.v0.models.shipping_address'](),
|
|
1278
1122
|
}); },
|
|
1279
|
-
'io.flow.
|
|
1123
|
+
'io.flow.fulfillment.v0.models.center_version': function () { return ({
|
|
1280
1124
|
id: factories.string(),
|
|
1281
1125
|
timestamp: factories.date_time_iso_8601(),
|
|
1282
1126
|
type: factories['io.flow.common.v0.enums.change_type'](),
|
|
1283
|
-
|
|
1127
|
+
center: factories['io.flow.fulfillment.v0.models.center'](),
|
|
1284
1128
|
}); },
|
|
1285
|
-
'io.flow.
|
|
1286
|
-
|
|
1287
|
-
|
|
1129
|
+
'io.flow.fulfillment.v0.models.commercial_invoice_fee': function () { return ({
|
|
1130
|
+
discriminator: 'commercial_invoice_fee',
|
|
1131
|
+
amount: factories['io.flow.common.v0.models.money'](),
|
|
1288
1132
|
}); },
|
|
1289
|
-
'io.flow.
|
|
1290
|
-
|
|
1291
|
-
|
|
1292
|
-
display: factories['io.flow.experience.v0.enums.delivered_duty_display_type'](),
|
|
1133
|
+
'io.flow.fulfillment.v0.models.country_availability': function () { return ({
|
|
1134
|
+
status: factories['io.flow.fulfillment.v0.enums.item_availability_status'](),
|
|
1135
|
+
countries: arrayOf(function () { return factories.string(); }),
|
|
1293
1136
|
}); },
|
|
1294
|
-
'io.flow.
|
|
1295
|
-
|
|
1296
|
-
|
|
1297
|
-
import_identifier: factories.string(),
|
|
1137
|
+
'io.flow.fulfillment.v0.models.country_shipping_pricing': function () { return ({
|
|
1138
|
+
pricing: factories['io.flow.fulfillment.v0.models.item_shipping_pricing'](),
|
|
1139
|
+
countries: arrayOf(function () { return factories.string(); }),
|
|
1298
1140
|
}); },
|
|
1299
|
-
'io.flow.
|
|
1300
|
-
discriminator: 'discount',
|
|
1141
|
+
'io.flow.fulfillment.v0.models.delivery_item': function () { return ({
|
|
1301
1142
|
id: factories.string(),
|
|
1302
|
-
|
|
1303
|
-
|
|
1304
|
-
|
|
1143
|
+
number: factories.string(),
|
|
1144
|
+
quantity: factories.long(),
|
|
1145
|
+
shipment_estimate: factories['io.flow.common.v0.models.datetime_range'](),
|
|
1146
|
+
price: factories['io.flow.common.v0.models.money_with_optional_base'](),
|
|
1305
1147
|
attributes: objectOf(function () { return factories.string(); }),
|
|
1148
|
+
center: factories.string(),
|
|
1149
|
+
line_number: factories.long(),
|
|
1306
1150
|
}); },
|
|
1307
|
-
'io.flow.
|
|
1308
|
-
offers: arrayOf(function () { return factories['io.flow.experience.v0.models.discount_rule_offer'](); }),
|
|
1309
|
-
}); },
|
|
1310
|
-
'io.flow.experience.v0.models.discount_rule_offer': function () { return ({
|
|
1311
|
-
discount: factories['io.flow.common.v0.unions.discount_offer'](),
|
|
1312
|
-
entitlement: factories['io.flow.experience.v0.unions.discount_rule_entitlement'](),
|
|
1313
|
-
}); },
|
|
1314
|
-
'io.flow.experience.v0.models.discount_rule_settings': function () { return ({
|
|
1151
|
+
'io.flow.fulfillment.v0.models.delivery_option': function () { return ({
|
|
1315
1152
|
id: factories.string(),
|
|
1316
|
-
|
|
1317
|
-
|
|
1318
|
-
|
|
1319
|
-
|
|
1320
|
-
|
|
1321
|
-
|
|
1322
|
-
|
|
1323
|
-
|
|
1324
|
-
|
|
1325
|
-
|
|
1326
|
-
|
|
1327
|
-
experience_keys: arrayOf(function () { return factories.string(); }),
|
|
1328
|
-
rule: factories['io.flow.experience.v0.models.discount_rule'](),
|
|
1153
|
+
cost: factories['io.flow.fulfillment.v0.models.price_with_base_and_details'](),
|
|
1154
|
+
delivered_duty: factories['io.flow.common.v0.enums.delivered_duty'](),
|
|
1155
|
+
price: factories['io.flow.fulfillment.v0.models.price_with_base_and_details'](),
|
|
1156
|
+
service: factories['io.flow.fulfillment.v0.models.service_summary'](),
|
|
1157
|
+
tier: factories['io.flow.fulfillment.v0.models.tier_summary'](),
|
|
1158
|
+
window: factories['io.flow.fulfillment.v0.models.delivery_window'](),
|
|
1159
|
+
rule_outcome: factories['io.flow.fulfillment.v0.unions.tier_rule_outcome'](),
|
|
1160
|
+
weight: factories['io.flow.fulfillment.v0.models.option_weight_estimates'](),
|
|
1161
|
+
send_to: factories['io.flow.fulfillment.v0.models.shipping_address'](),
|
|
1162
|
+
surcharge: factories['io.flow.fulfillment.v0.models.price_with_base_and_details'](),
|
|
1163
|
+
ratecard_owner: factories['io.flow.fulfillment.v0.enums.ratecard_owner'](),
|
|
1329
1164
|
}); },
|
|
1330
|
-
'io.flow.
|
|
1331
|
-
|
|
1332
|
-
|
|
1165
|
+
'io.flow.fulfillment.v0.models.delivery_option_cost_component': function () { return ({
|
|
1166
|
+
key: factories['io.flow.fulfillment.v0.enums.delivery_option_cost_detail_component_key'](),
|
|
1167
|
+
currency: factories.string(),
|
|
1168
|
+
amount: factories.decimal(),
|
|
1169
|
+
label: factories.string(),
|
|
1170
|
+
base: factories['io.flow.common.v0.models.price'](),
|
|
1333
1171
|
}); },
|
|
1334
|
-
'io.flow.
|
|
1335
|
-
|
|
1336
|
-
|
|
1337
|
-
key: factories.string(),
|
|
1338
|
-
name: factories.string(),
|
|
1339
|
-
delivered_duty: factories['io.flow.common.v0.enums.delivered_duty'](),
|
|
1340
|
-
region: factories['io.flow.experience.v0.models.region_reference'](),
|
|
1341
|
-
country: factories.string(),
|
|
1172
|
+
'io.flow.fulfillment.v0.models.delivery_option_cost_detail': function () { return ({
|
|
1173
|
+
source: factories['io.flow.fulfillment.v0.enums.delivery_option_cost_detail_source'](),
|
|
1174
|
+
ratecard_id: factories.string(),
|
|
1342
1175
|
currency: factories.string(),
|
|
1343
|
-
|
|
1344
|
-
|
|
1345
|
-
|
|
1346
|
-
|
|
1347
|
-
settings: factories['io.flow.experience.v0.models.experience_settings'](),
|
|
1348
|
-
status: factories['io.flow.experience.v0.enums.experience_status'](),
|
|
1176
|
+
amount: factories.decimal(),
|
|
1177
|
+
label: factories.string(),
|
|
1178
|
+
base: factories['io.flow.common.v0.models.price'](),
|
|
1179
|
+
components: arrayOf(function () { return factories['io.flow.fulfillment.v0.models.delivery_option_cost_component'](); }),
|
|
1349
1180
|
}); },
|
|
1350
|
-
'io.flow.
|
|
1351
|
-
|
|
1181
|
+
'io.flow.fulfillment.v0.models.delivery_option_form': function () { return ({
|
|
1182
|
+
delivery: factories.string(),
|
|
1183
|
+
items: arrayOf(function () { return factories['io.flow.fulfillment.v0.models.quote_line_item_form'](); }),
|
|
1184
|
+
destination: factories['io.flow.fulfillment.v0.models.shipping_address'](),
|
|
1352
1185
|
}); },
|
|
1353
|
-
'io.flow.
|
|
1186
|
+
'io.flow.fulfillment.v0.models.delivery_option_reference': function () { return ({
|
|
1354
1187
|
id: factories.string(),
|
|
1355
|
-
experience: factories['io.flow.experience.v0.models.experience_overview'](),
|
|
1356
|
-
checkout_configuration: factories['io.flow.experience.v0.models.experience_configuration_reference'](),
|
|
1357
|
-
}); },
|
|
1358
|
-
'io.flow.experience.v0.models.experience_checkout_settings_form': function () { return ({
|
|
1359
|
-
checkout_configuration_id: factories.string(),
|
|
1360
1188
|
}); },
|
|
1361
|
-
'io.flow.
|
|
1189
|
+
'io.flow.fulfillment.v0.models.delivery_option_summary': function () { return ({
|
|
1362
1190
|
id: factories.string(),
|
|
1363
|
-
|
|
1364
|
-
|
|
1365
|
-
|
|
1366
|
-
|
|
1367
|
-
|
|
1368
|
-
|
|
1191
|
+
cost: factories['io.flow.common.v0.models.price'](),
|
|
1192
|
+
delivered_duty: factories['io.flow.common.v0.enums.delivered_duty'](),
|
|
1193
|
+
price: factories['io.flow.common.v0.models.price'](),
|
|
1194
|
+
service: factories['io.flow.fulfillment.v0.models.service_reference'](),
|
|
1195
|
+
tier: factories['io.flow.fulfillment.v0.models.tier_reference'](),
|
|
1196
|
+
window: factories['io.flow.common.v0.models.datetime_range'](),
|
|
1369
1197
|
}); },
|
|
1370
|
-
'io.flow.
|
|
1198
|
+
'io.flow.fulfillment.v0.models.delivery_option_version': function () { return ({
|
|
1371
1199
|
id: factories.string(),
|
|
1200
|
+
timestamp: factories.date_time_iso_8601(),
|
|
1201
|
+
type: factories['io.flow.common.v0.enums.change_type'](),
|
|
1202
|
+
delivery_option: factories['io.flow.fulfillment.v0.models.delivery_option_summary'](),
|
|
1372
1203
|
}); },
|
|
1373
|
-
'io.flow.
|
|
1374
|
-
|
|
1375
|
-
|
|
1204
|
+
'io.flow.fulfillment.v0.models.delivery_summary': function () { return ({
|
|
1205
|
+
id: factories.string(),
|
|
1206
|
+
items: arrayOf(function () { return factories['io.flow.common.v0.models.line_item_form'](); }),
|
|
1376
1207
|
}); },
|
|
1377
|
-
'io.flow.
|
|
1378
|
-
|
|
1379
|
-
|
|
1208
|
+
'io.flow.fulfillment.v0.models.delivery_version': function () { return ({
|
|
1209
|
+
id: factories.string(),
|
|
1210
|
+
timestamp: factories.date_time_iso_8601(),
|
|
1211
|
+
type: factories['io.flow.common.v0.enums.change_type'](),
|
|
1212
|
+
delivery: factories['io.flow.fulfillment.v0.models.delivery_summary'](),
|
|
1380
1213
|
}); },
|
|
1381
|
-
'io.flow.
|
|
1382
|
-
|
|
1383
|
-
|
|
1384
|
-
|
|
1385
|
-
|
|
1386
|
-
|
|
1387
|
-
|
|
1388
|
-
measurement_system: factories['io.flow.common.v0.enums.measurement_system'](),
|
|
1214
|
+
'io.flow.fulfillment.v0.models.delivery_window': function () { return ({
|
|
1215
|
+
from: factories.date_time_iso_8601(),
|
|
1216
|
+
to: factories.date_time_iso_8601(),
|
|
1217
|
+
timezone: factories.string(),
|
|
1218
|
+
label: factories.string(),
|
|
1219
|
+
min_days: factories.long(),
|
|
1220
|
+
max_days: factories.long(),
|
|
1389
1221
|
}); },
|
|
1390
|
-
'io.flow.
|
|
1391
|
-
|
|
1392
|
-
|
|
1393
|
-
|
|
1394
|
-
country: factories.string(),
|
|
1395
|
-
currency: factories.string(),
|
|
1396
|
-
language: factories.string(),
|
|
1397
|
-
key: factories.string(),
|
|
1398
|
-
position: factories.long(),
|
|
1399
|
-
measurement_system: factories['io.flow.common.v0.enums.measurement_system'](),
|
|
1400
|
-
subcatalog_id: factories.string(),
|
|
1222
|
+
'io.flow.fulfillment.v0.models.delivery_window_component': function () { return ({
|
|
1223
|
+
from: factories.date_time_iso_8601(),
|
|
1224
|
+
to: factories.date_time_iso_8601(),
|
|
1225
|
+
source: factories['io.flow.fulfillment.v0.enums.delivery_window_component_source'](),
|
|
1401
1226
|
}); },
|
|
1402
|
-
'io.flow.
|
|
1403
|
-
|
|
1404
|
-
|
|
1405
|
-
|
|
1227
|
+
'io.flow.fulfillment.v0.models.delivery_window_components': function () { return ({
|
|
1228
|
+
shipment_estimate: factories['io.flow.fulfillment.v0.models.delivery_window_component'](),
|
|
1229
|
+
transit_estimate: factories['io.flow.fulfillment.v0.models.delivery_window_component'](),
|
|
1230
|
+
}); },
|
|
1231
|
+
'io.flow.fulfillment.v0.models.delivery_window_components_v2': function () { return ({
|
|
1232
|
+
processing_estimates: arrayOf(function () { return factories['io.flow.fulfillment.v0.models.processing_estimate'](); }),
|
|
1233
|
+
transit_estimates: arrayOf(function () { return factories['io.flow.fulfillment.v0.models.transit_estimate'](); }),
|
|
1234
|
+
}); },
|
|
1235
|
+
'io.flow.fulfillment.v0.models.delivery_window_summary': function () { return ({
|
|
1406
1236
|
country: factories.string(),
|
|
1407
|
-
|
|
1408
|
-
language: factories.string(),
|
|
1409
|
-
measurement_system: factories['io.flow.common.v0.enums.measurement_system'](),
|
|
1237
|
+
delivery_window: factories['io.flow.fulfillment.v0.models.delivery_window'](),
|
|
1410
1238
|
}); },
|
|
1411
|
-
'io.flow.
|
|
1239
|
+
'io.flow.fulfillment.v0.models.digital_delivery': function () { return ({
|
|
1240
|
+
discriminator: 'digital_delivery',
|
|
1412
1241
|
id: factories.string(),
|
|
1413
|
-
|
|
1414
|
-
|
|
1415
|
-
|
|
1416
|
-
|
|
1417
|
-
shipping_configuration_key: factories.string(),
|
|
1242
|
+
key: factories.string(),
|
|
1243
|
+
items: arrayOf(function () { return factories['io.flow.fulfillment.v0.models.delivery_item'](); }),
|
|
1244
|
+
prices: arrayOf(function () { return factories['io.flow.order.price.v0.models.order_price_detail'](); }),
|
|
1245
|
+
total: factories['io.flow.catalog.v0.models.localized_total'](),
|
|
1418
1246
|
}); },
|
|
1419
|
-
'io.flow.
|
|
1420
|
-
|
|
1421
|
-
|
|
1247
|
+
'io.flow.fulfillment.v0.models.estimated_window': function () { return ({
|
|
1248
|
+
from: factories.long(),
|
|
1249
|
+
to: factories.long(),
|
|
1250
|
+
unit: factories['io.flow.common.v0.enums.unit_of_time'](),
|
|
1422
1251
|
}); },
|
|
1423
|
-
'io.flow.
|
|
1424
|
-
|
|
1252
|
+
'io.flow.fulfillment.v0.models.flat_rate': function () { return ({
|
|
1253
|
+
discriminator: 'flat_rate',
|
|
1254
|
+
price: factories['io.flow.common.v0.models.price'](),
|
|
1255
|
+
zero_amount_indicator: factories['io.flow.fulfillment.v0.enums.zero_amount_indicator'](),
|
|
1425
1256
|
}); },
|
|
1426
|
-
'io.flow.
|
|
1427
|
-
|
|
1257
|
+
'io.flow.fulfillment.v0.models.flat_rate_form': function () { return ({
|
|
1258
|
+
discriminator: 'flat_rate_form',
|
|
1259
|
+
price: factories['io.flow.common.v0.models.money'](),
|
|
1260
|
+
zero_amount_indicator: factories['io.flow.fulfillment.v0.enums.zero_amount_indicator'](),
|
|
1428
1261
|
}); },
|
|
1429
|
-
'io.flow.
|
|
1262
|
+
'io.flow.fulfillment.v0.models.fulfillment_experience_reference': function () { return ({
|
|
1430
1263
|
id: factories.string(),
|
|
1431
|
-
|
|
1264
|
+
currency: factories.string(),
|
|
1432
1265
|
}); },
|
|
1433
|
-
'io.flow.
|
|
1434
|
-
|
|
1435
|
-
|
|
1266
|
+
'io.flow.fulfillment.v0.models.inbound_carton_fee': function () { return ({
|
|
1267
|
+
discriminator: 'inbound_carton_fee',
|
|
1268
|
+
amount: factories['io.flow.common.v0.models.money'](),
|
|
1436
1269
|
}); },
|
|
1437
|
-
'io.flow.
|
|
1438
|
-
|
|
1439
|
-
|
|
1440
|
-
q: factories.string(),
|
|
1270
|
+
'io.flow.fulfillment.v0.models.item_shipping_pricing': function () { return ({
|
|
1271
|
+
min: factories['io.flow.common.v0.models.price'](),
|
|
1272
|
+
max: factories['io.flow.common.v0.models.price'](),
|
|
1441
1273
|
}); },
|
|
1442
|
-
'io.flow.
|
|
1443
|
-
|
|
1444
|
-
|
|
1445
|
-
price_book: factories['io.flow.price.v0.models.price_book_reference'](),
|
|
1446
|
-
position: factories.long(),
|
|
1274
|
+
'io.flow.fulfillment.v0.models.number_range': function () { return ({
|
|
1275
|
+
min: factories.long(),
|
|
1276
|
+
max: factories.long(),
|
|
1447
1277
|
}); },
|
|
1448
|
-
'io.flow.
|
|
1449
|
-
|
|
1450
|
-
|
|
1278
|
+
'io.flow.fulfillment.v0.models.option_weight_estimates': function () { return ({
|
|
1279
|
+
gravitational: factories['io.flow.common.v0.models.measurement'](),
|
|
1280
|
+
dimensional: factories['io.flow.common.v0.models.measurement'](),
|
|
1451
1281
|
}); },
|
|
1452
|
-
'io.flow.
|
|
1453
|
-
|
|
1282
|
+
'io.flow.fulfillment.v0.models.outbound_carton_fee': function () { return ({
|
|
1283
|
+
discriminator: 'outbound_carton_fee',
|
|
1284
|
+
amount: factories['io.flow.common.v0.models.money'](),
|
|
1454
1285
|
}); },
|
|
1455
|
-
'io.flow.
|
|
1456
|
-
|
|
1457
|
-
|
|
1286
|
+
'io.flow.fulfillment.v0.models.packaging': function () { return ({
|
|
1287
|
+
dimensions: factories['io.flow.common.v0.models.dimensions'](),
|
|
1288
|
+
name: factories.string(),
|
|
1289
|
+
number: factories.string(),
|
|
1458
1290
|
}); },
|
|
1459
|
-
'io.flow.
|
|
1460
|
-
|
|
1461
|
-
|
|
1462
|
-
|
|
1291
|
+
'io.flow.fulfillment.v0.models.partner_center': function () { return ({
|
|
1292
|
+
partner_reference: factories['io.flow.common.v0.models.partner_reference'](),
|
|
1293
|
+
number: factories.string(),
|
|
1294
|
+
fees: arrayOf(function () { return factories['io.flow.fulfillment.v0.unions.partner_center_fee'](); }),
|
|
1463
1295
|
}); },
|
|
1464
|
-
'io.flow.
|
|
1465
|
-
|
|
1296
|
+
'io.flow.fulfillment.v0.models.partner_center_form': function () { return ({
|
|
1297
|
+
partner_id: factories.string(),
|
|
1298
|
+
number: factories.string(),
|
|
1299
|
+
fees: arrayOf(function () { return factories['io.flow.fulfillment.v0.unions.partner_center_fee'](); }),
|
|
1466
1300
|
}); },
|
|
1467
|
-
'io.flow.
|
|
1468
|
-
|
|
1469
|
-
|
|
1301
|
+
'io.flow.fulfillment.v0.models.percent_margin': function () { return ({
|
|
1302
|
+
discriminator: 'percent_margin',
|
|
1303
|
+
percentage: factories.double(),
|
|
1470
1304
|
}); },
|
|
1471
|
-
'io.flow.
|
|
1472
|
-
|
|
1473
|
-
|
|
1474
|
-
|
|
1475
|
-
|
|
1305
|
+
'io.flow.fulfillment.v0.models.physical_delivery': function () { return ({
|
|
1306
|
+
discriminator: 'physical_delivery',
|
|
1307
|
+
id: factories.string(),
|
|
1308
|
+
key: factories.string(),
|
|
1309
|
+
center: factories['io.flow.fulfillment.v0.models.center_summary'](),
|
|
1310
|
+
fulfillment_routing: factories['io.flow.fulfillment.v0.enums.fulfillment_routing'](),
|
|
1311
|
+
ship_from_country: factories.string(),
|
|
1312
|
+
items: arrayOf(function () { return factories['io.flow.fulfillment.v0.models.delivery_item'](); }),
|
|
1313
|
+
options: arrayOf(function () { return factories['io.flow.fulfillment.v0.models.delivery_option'](); }),
|
|
1314
|
+
special_services: arrayOf(function () { return factories['io.flow.fulfillment.v0.enums.physical_delivery_special_serivce'](); }),
|
|
1315
|
+
prices: arrayOf(function () { return factories['io.flow.order.price.v0.models.order_price_detail'](); }),
|
|
1316
|
+
total: factories['io.flow.catalog.v0.models.localized_total'](),
|
|
1317
|
+
goods_supply: factories['io.flow.common.v0.enums.goods_supply'](),
|
|
1318
|
+
merchant_of_record_flow_entity: factories['io.flow.merchant.of.record.v0.enums.flow_entity'](),
|
|
1319
|
+
preferred_service: factories['io.flow.fulfillment.v0.models.physical_delivery_preferred_service'](),
|
|
1476
1320
|
}); },
|
|
1477
|
-
'io.flow.
|
|
1478
|
-
|
|
1321
|
+
'io.flow.fulfillment.v0.models.physical_delivery_preferred_service': function () { return ({
|
|
1322
|
+
id: factories.string(),
|
|
1323
|
+
selection_stratey: factories['io.flow.fulfillment.v0.enums.preferred_service_selection_strategy'](),
|
|
1479
1324
|
}); },
|
|
1480
|
-
'io.flow.
|
|
1481
|
-
|
|
1482
|
-
|
|
1325
|
+
'io.flow.fulfillment.v0.models.price_with_base_and_details': function () { return ({
|
|
1326
|
+
currency: factories.string(),
|
|
1327
|
+
amount: factories.double(),
|
|
1328
|
+
label: factories.string(),
|
|
1329
|
+
base: factories['io.flow.common.v0.models.price'](),
|
|
1330
|
+
details: arrayOf(function () { return factories['io.flow.fulfillment.v0.models.delivery_option_cost_detail'](); }),
|
|
1331
|
+
}); },
|
|
1332
|
+
'io.flow.fulfillment.v0.models.processing_estimate': function () { return ({
|
|
1333
|
+
location: factories['io.flow.fulfillment.v0.enums.delivery_window_location'](),
|
|
1334
|
+
min_date: factories.date_time_iso_8601(),
|
|
1335
|
+
max_date: factories.date_time_iso_8601(),
|
|
1336
|
+
source: factories['io.flow.fulfillment.v0.enums.delivery_window_component_source'](),
|
|
1337
|
+
}); },
|
|
1338
|
+
'io.flow.fulfillment.v0.models.quote': function () { return ({
|
|
1339
|
+
id: factories.string(),
|
|
1340
|
+
destination: factories['io.flow.fulfillment.v0.models.shipping_address'](),
|
|
1341
|
+
deliveries: arrayOf(function () { return factories['io.flow.fulfillment.v0.unions.delivery'](); }),
|
|
1342
|
+
selections: arrayOf(function () { return factories['io.flow.fulfillment.v0.models.delivery_option_reference'](); }),
|
|
1343
|
+
delivered_duty: factories['io.flow.common.v0.enums.delivered_duty'](),
|
|
1344
|
+
delivered_duties: arrayOf(function () { return factories['io.flow.common.v0.enums.delivered_duty'](); }),
|
|
1345
|
+
}); },
|
|
1346
|
+
'io.flow.fulfillment.v0.models.quote_error': function () { return ({
|
|
1347
|
+
code: factories['io.flow.fulfillment.v0.enums.quote_error_code'](),
|
|
1348
|
+
messages: arrayOf(function () { return factories.string(); }),
|
|
1349
|
+
item_numbers: arrayOf(function () { return factories.string(); }),
|
|
1350
|
+
}); },
|
|
1351
|
+
'io.flow.fulfillment.v0.models.quote_form': function () { return ({
|
|
1352
|
+
destination: factories['io.flow.fulfillment.v0.models.shipping_address'](),
|
|
1353
|
+
experience: factories.string(),
|
|
1354
|
+
items: arrayOf(function () { return factories['io.flow.fulfillment.v0.models.quote_line_item_form'](); }),
|
|
1355
|
+
delivered_duty: factories['io.flow.common.v0.enums.delivered_duty'](),
|
|
1356
|
+
delivered_duties: arrayOf(function () { return factories['io.flow.common.v0.enums.delivered_duty'](); }),
|
|
1357
|
+
direction: factories['io.flow.fulfillment.v0.enums.lane_direction'](),
|
|
1483
1358
|
}); },
|
|
1484
|
-
'io.flow.
|
|
1485
|
-
|
|
1486
|
-
|
|
1487
|
-
|
|
1488
|
-
|
|
1359
|
+
'io.flow.fulfillment.v0.models.quote_line_item_form': function () { return ({
|
|
1360
|
+
number: factories.string(),
|
|
1361
|
+
quantity: factories.long(),
|
|
1362
|
+
shipment_estimate: factories['io.flow.common.v0.models.datetime_range'](),
|
|
1363
|
+
price: factories['io.flow.common.v0.models.money_with_base'](),
|
|
1364
|
+
attributes: objectOf(function () { return factories.string(); }),
|
|
1365
|
+
center: factories.string(),
|
|
1489
1366
|
}); },
|
|
1490
|
-
'io.flow.
|
|
1491
|
-
|
|
1367
|
+
'io.flow.fulfillment.v0.models.quote_summary': function () { return ({
|
|
1368
|
+
id: factories.string(),
|
|
1369
|
+
destination: factories['io.flow.fulfillment.v0.models.shipping_address'](),
|
|
1492
1370
|
}); },
|
|
1493
|
-
'io.flow.
|
|
1371
|
+
'io.flow.fulfillment.v0.models.quote_version': function () { return ({
|
|
1494
1372
|
id: factories.string(),
|
|
1495
1373
|
timestamp: factories.date_time_iso_8601(),
|
|
1496
1374
|
type: factories['io.flow.common.v0.enums.change_type'](),
|
|
1497
|
-
|
|
1375
|
+
quote: factories['io.flow.fulfillment.v0.models.quote_summary'](),
|
|
1498
1376
|
}); },
|
|
1499
|
-
'io.flow.
|
|
1500
|
-
|
|
1501
|
-
|
|
1502
|
-
|
|
1377
|
+
'io.flow.fulfillment.v0.models.scheduled_pickup': function () { return ({
|
|
1378
|
+
day_of_week: factories['io.flow.common.v0.enums.day_of_week'](),
|
|
1379
|
+
hour_of_day: factories.string(),
|
|
1380
|
+
minute_of_hour: factories.string(),
|
|
1503
1381
|
}); },
|
|
1504
|
-
'io.flow.
|
|
1505
|
-
discriminator: 'free_shipping_order_promotion',
|
|
1382
|
+
'io.flow.fulfillment.v0.models.service_reference': function () { return ({
|
|
1506
1383
|
id: factories.string(),
|
|
1507
|
-
order: factories['io.flow.experience.v0.unions.expandable_order'](),
|
|
1508
|
-
key: factories.string(),
|
|
1509
|
-
trigger: factories['io.flow.experience.v0.models.order_promotion_trigger'](),
|
|
1510
|
-
max: factories['io.flow.common.v0.models.price'](),
|
|
1511
|
-
attributes: objectOf(function () { return factories.string(); }),
|
|
1512
1384
|
}); },
|
|
1513
|
-
'io.flow.
|
|
1514
|
-
discriminator: '
|
|
1515
|
-
|
|
1516
|
-
|
|
1517
|
-
|
|
1385
|
+
'io.flow.fulfillment.v0.models.service_summary': function () { return ({
|
|
1386
|
+
discriminator: 'service_summary',
|
|
1387
|
+
id: factories.string(),
|
|
1388
|
+
carrier: factories['io.flow.fulfillment.v0.models.carrier_reference'](),
|
|
1389
|
+
name: factories.string(),
|
|
1390
|
+
center_code: factories.string(),
|
|
1518
1391
|
}); },
|
|
1519
|
-
'io.flow.
|
|
1520
|
-
|
|
1521
|
-
|
|
1392
|
+
'io.flow.fulfillment.v0.models.service_unknown': function () { return ({
|
|
1393
|
+
discriminator: 'service_unknown',
|
|
1394
|
+
name: factories.string(),
|
|
1522
1395
|
}); },
|
|
1523
|
-
'io.flow.
|
|
1524
|
-
|
|
1525
|
-
|
|
1526
|
-
|
|
1396
|
+
'io.flow.fulfillment.v0.models.shipping_address': function () { return ({
|
|
1397
|
+
contact: factories['io.flow.common.v0.models.contact'](),
|
|
1398
|
+
location: factories['io.flow.common.v0.models.address'](),
|
|
1399
|
+
center_key: factories.string(),
|
|
1400
|
+
center_reference: factories['io.flow.fulfillment.v0.models.center_reference'](),
|
|
1401
|
+
service: factories['io.flow.fulfillment.v0.models.service_summary'](),
|
|
1527
1402
|
}); },
|
|
1528
|
-
'io.flow.
|
|
1403
|
+
'io.flow.fulfillment.v0.models.shipping_configuration': function () { return ({
|
|
1529
1404
|
id: factories.string(),
|
|
1530
|
-
key: factories.string(),
|
|
1531
1405
|
name: factories.string(),
|
|
1532
|
-
|
|
1533
|
-
|
|
1534
|
-
|
|
1535
|
-
|
|
1536
|
-
|
|
1406
|
+
key: factories.string(),
|
|
1407
|
+
type: factories['io.flow.fulfillment.v0.enums.shipping_configuration_type'](),
|
|
1408
|
+
shipping_lanes: arrayOf(function () { return factories['io.flow.fulfillment.v0.models.shipping_lane'](); }),
|
|
1409
|
+
}); },
|
|
1410
|
+
'io.flow.fulfillment.v0.models.shipping_configuration_copy': function () { return ({
|
|
1411
|
+
original: factories['io.flow.fulfillment.v0.models.shipping_configuration_reference'](),
|
|
1412
|
+
'new': factories['io.flow.fulfillment.v0.models.shipping_configuration_reference'](),
|
|
1537
1413
|
}); },
|
|
1538
|
-
'io.flow.
|
|
1414
|
+
'io.flow.fulfillment.v0.models.shipping_configuration_copy_form': function () { return ({
|
|
1539
1415
|
name: factories.string(),
|
|
1540
|
-
q: factories.string(),
|
|
1541
|
-
key: factories.string(),
|
|
1542
|
-
fixed: factories.decimal(),
|
|
1543
|
-
percent: factories.decimal(),
|
|
1544
|
-
position: factories.long(),
|
|
1545
1416
|
}); },
|
|
1546
|
-
'io.flow.
|
|
1417
|
+
'io.flow.fulfillment.v0.models.shipping_configuration_form': function () { return ({
|
|
1547
1418
|
name: factories.string(),
|
|
1548
|
-
q: factories.string(),
|
|
1549
|
-
fixed: factories.decimal(),
|
|
1550
|
-
percent: factories.decimal(),
|
|
1551
|
-
position: factories.long(),
|
|
1552
1419
|
}); },
|
|
1553
|
-
'io.flow.
|
|
1420
|
+
'io.flow.fulfillment.v0.models.shipping_configuration_item_availability': function () { return ({
|
|
1554
1421
|
id: factories.string(),
|
|
1555
|
-
|
|
1556
|
-
|
|
1557
|
-
|
|
1422
|
+
item: factories['io.flow.common.v0.models.item_reference'](),
|
|
1423
|
+
shipping_configuration: factories['io.flow.fulfillment.v0.models.shipping_configuration_summary'](),
|
|
1424
|
+
availabilities: arrayOf(function () { return factories['io.flow.fulfillment.v0.models.country_availability'](); }),
|
|
1558
1425
|
}); },
|
|
1559
|
-
'io.flow.
|
|
1426
|
+
'io.flow.fulfillment.v0.models.shipping_configuration_item_shipping_pricing': function () { return ({
|
|
1560
1427
|
id: factories.string(),
|
|
1561
|
-
|
|
1562
|
-
|
|
1563
|
-
|
|
1564
|
-
|
|
1565
|
-
|
|
1428
|
+
item: factories['io.flow.common.v0.models.item_reference'](),
|
|
1429
|
+
shipping_configuration: factories['io.flow.fulfillment.v0.models.shipping_configuration_summary'](),
|
|
1430
|
+
country_shipping_pricings: arrayOf(function () { return factories['io.flow.fulfillment.v0.models.country_shipping_pricing'](); }),
|
|
1431
|
+
}); },
|
|
1432
|
+
'io.flow.fulfillment.v0.models.shipping_configuration_reference': function () { return ({
|
|
1433
|
+
key: factories.string(),
|
|
1566
1434
|
}); },
|
|
1567
|
-
'io.flow.
|
|
1435
|
+
'io.flow.fulfillment.v0.models.shipping_configuration_summary': function () { return ({
|
|
1568
1436
|
id: factories.string(),
|
|
1569
|
-
number: factories.string(),
|
|
1570
1437
|
name: factories.string(),
|
|
1571
|
-
|
|
1572
|
-
|
|
1573
|
-
center: factories.string(),
|
|
1574
|
-
price: factories['io.flow.common.v0.models.money'](),
|
|
1575
|
-
discount: factories['io.flow.experience.v0.models.localized_line_item_discount'](),
|
|
1576
|
-
discounts: arrayOf(function () { return factories['io.flow.experience.v0.models.localized_line_item_discount'](); }),
|
|
1577
|
-
attributes: objectOf(function () { return factories.string(); }),
|
|
1578
|
-
local: factories['io.flow.catalog.v0.models.local'](),
|
|
1579
|
-
shipment_estimate: factories['io.flow.common.v0.models.datetime_range'](),
|
|
1580
|
-
price_source: factories['io.flow.common.v0.unions.price_source'](),
|
|
1581
|
-
}); },
|
|
1582
|
-
'io.flow.experience.v0.models.localized_line_item_discount': function () { return ({
|
|
1583
|
-
amount: factories.double(),
|
|
1584
|
-
currency: factories.string(),
|
|
1585
|
-
label: factories.string(),
|
|
1586
|
-
base: factories['io.flow.common.v0.models.price'](),
|
|
1587
|
-
requested: factories['io.flow.common.v0.models.money'](),
|
|
1588
|
-
discount_label: factories.string(),
|
|
1589
|
-
}); },
|
|
1590
|
-
'io.flow.experience.v0.models.logistics_settings': function () { return ({
|
|
1591
|
-
shipping_configuration: factories['io.flow.fulfillment.v0.models.shipping_configuration_reference'](),
|
|
1438
|
+
key: factories.string(),
|
|
1439
|
+
type: factories['io.flow.fulfillment.v0.enums.shipping_configuration_type'](),
|
|
1592
1440
|
}); },
|
|
1593
|
-
'io.flow.
|
|
1594
|
-
discriminator: 'order',
|
|
1441
|
+
'io.flow.fulfillment.v0.models.shipping_configuration_version': function () { return ({
|
|
1595
1442
|
id: factories.string(),
|
|
1596
|
-
|
|
1597
|
-
|
|
1598
|
-
|
|
1599
|
-
experience: factories['io.flow.experience.v0.unions.expandable_experience'](),
|
|
1600
|
-
customer: factories['io.flow.common.v0.models.order_customer'](),
|
|
1601
|
-
delivered_duty: factories['io.flow.common.v0.enums.delivered_duty'](),
|
|
1602
|
-
destination: factories['io.flow.experience.v0.models.order_address'](),
|
|
1603
|
-
expires_at: factories.date_time_iso_8601(),
|
|
1604
|
-
items: arrayOf(function () { return factories['io.flow.experience.v0.models.localized_line_item'](); }),
|
|
1605
|
-
deliveries: arrayOf(function () { return factories['io.flow.fulfillment.v0.unions.delivery'](); }),
|
|
1606
|
-
selections: arrayOf(function () { return factories.string(); }),
|
|
1607
|
-
prices: arrayOf(function () { return factories['io.flow.order.price.v0.models.order_price_detail'](); }),
|
|
1608
|
-
total: factories['io.flow.catalog.v0.models.localized_total'](),
|
|
1609
|
-
attributes: objectOf(function () { return factories.string(); }),
|
|
1610
|
-
submitted_at: factories.date_time_iso_8601(),
|
|
1611
|
-
lines: arrayOf(function () { return factories['io.flow.experience.v0.models.line'](); }),
|
|
1612
|
-
identifiers: arrayOf(function () { return factories.string(); }),
|
|
1613
|
-
promotions: factories['io.flow.experience.v0.models.promotions'](),
|
|
1614
|
-
payments: arrayOf(function () { return factories['io.flow.experience.v0.models.order_payment'](); }),
|
|
1615
|
-
balance: factories['io.flow.catalog.v0.models.localized_total'](),
|
|
1616
|
-
rules: factories['io.flow.experience.v0.models.order_rules_summary'](),
|
|
1617
|
-
tax_registration: factories['io.flow.harmonization.v0.models.tax_registration'](),
|
|
1618
|
-
geo: factories['io.flow.experience.v0.models.order_geo'](),
|
|
1619
|
-
device_details: factories['io.flow.payment.v0.unions.device_details'](),
|
|
1620
|
-
destination_contact_details: arrayOf(function () { return factories['io.flow.experience.v0.models.destination_contact_detail'](); }),
|
|
1621
|
-
incoterm_summary: factories['io.flow.experience.v0.models.incoterm_summary'](),
|
|
1622
|
-
payment_source: factories['io.flow.experience.v0.enums.order_payment_source_type'](),
|
|
1623
|
-
}); },
|
|
1624
|
-
'io.flow.experience.v0.models.order_address': function () { return ({
|
|
1625
|
-
text: factories.string(),
|
|
1626
|
-
streets: arrayOf(function () { return factories.string(); }),
|
|
1627
|
-
city: factories.string(),
|
|
1628
|
-
province: factories.string(),
|
|
1629
|
-
postal: factories.string(),
|
|
1630
|
-
country: factories.string(),
|
|
1631
|
-
latitude: factories.string(),
|
|
1632
|
-
longitude: factories.string(),
|
|
1633
|
-
contact: factories['io.flow.common.v0.models.contact'](),
|
|
1634
|
-
}); },
|
|
1635
|
-
'io.flow.experience.v0.models.order_builder': function () { return ({
|
|
1636
|
-
order: factories['io.flow.experience.v0.models.order'](),
|
|
1637
|
-
errors: arrayOf(function () { return factories['io.flow.experience.v0.models.order_error'](); }),
|
|
1638
|
-
}); },
|
|
1639
|
-
'io.flow.experience.v0.models.order_builder_attributes_form': function () { return ({
|
|
1640
|
-
attributes: objectOf(function () { return factories.string(); }),
|
|
1641
|
-
}); },
|
|
1642
|
-
'io.flow.experience.v0.models.order_builder_customer_form': function () { return ({
|
|
1643
|
-
customer: factories['io.flow.common.v0.models.order_customer_form'](),
|
|
1644
|
-
}); },
|
|
1645
|
-
'io.flow.experience.v0.models.order_builder_customer_invoice_address_form': function () { return ({
|
|
1646
|
-
address: factories['io.flow.common.v0.models.billing_address'](),
|
|
1647
|
-
}); },
|
|
1648
|
-
'io.flow.experience.v0.models.order_builder_delivered_duty_form': function () { return ({
|
|
1649
|
-
delivered_duty: factories['io.flow.common.v0.enums.delivered_duty'](),
|
|
1650
|
-
}); },
|
|
1651
|
-
'io.flow.experience.v0.models.order_builder_destination_country_form': function () { return ({
|
|
1652
|
-
country: factories.string(),
|
|
1653
|
-
}); },
|
|
1654
|
-
'io.flow.experience.v0.models.order_builder_destination_form': function () { return ({
|
|
1655
|
-
destination: factories['io.flow.experience.v0.models.order_address'](),
|
|
1656
|
-
}); },
|
|
1657
|
-
'io.flow.experience.v0.models.order_builder_selections_form': function () { return ({
|
|
1658
|
-
selections: arrayOf(function () { return factories.string(); }),
|
|
1659
|
-
}); },
|
|
1660
|
-
'io.flow.experience.v0.models.order_destination_put_form': function () { return ({
|
|
1661
|
-
destination: factories['io.flow.experience.v0.models.order_address'](),
|
|
1662
|
-
}); },
|
|
1663
|
-
'io.flow.experience.v0.models.order_error': function () { return ({
|
|
1664
|
-
code: factories['io.flow.experience.v0.enums.order_error_code'](),
|
|
1665
|
-
messages: arrayOf(function () { return factories.string(); }),
|
|
1666
|
-
numbers: arrayOf(function () { return factories.string(); }),
|
|
1667
|
-
destination_country: factories['io.flow.reference.v0.models.country'](),
|
|
1668
|
-
threshold: factories['io.flow.experience.v0.models.value_threshold_exceeded_details'](),
|
|
1443
|
+
timestamp: factories.date_time_iso_8601(),
|
|
1444
|
+
type: factories['io.flow.common.v0.enums.change_type'](),
|
|
1445
|
+
shipping_configuration: factories['io.flow.fulfillment.v0.models.shipping_configuration'](),
|
|
1669
1446
|
}); },
|
|
1670
|
-
'io.flow.
|
|
1447
|
+
'io.flow.fulfillment.v0.models.shipping_lane': function () { return ({
|
|
1671
1448
|
id: factories.string(),
|
|
1672
|
-
|
|
1673
|
-
|
|
1674
|
-
|
|
1675
|
-
|
|
1676
|
-
|
|
1677
|
-
|
|
1678
|
-
|
|
1679
|
-
|
|
1680
|
-
}); },
|
|
1681
|
-
'io.flow.experience.v0.models.order_estimate_form': function () { return ({
|
|
1682
|
-
items: arrayOf(function () { return factories['io.flow.common.v0.models.line_item_form'](); }),
|
|
1683
|
-
destination: factories['io.flow.experience.v0.models.order_address'](),
|
|
1684
|
-
selections: arrayOf(function () { return factories.string(); }),
|
|
1685
|
-
}); },
|
|
1686
|
-
'io.flow.experience.v0.models.order_form': function () { return ({
|
|
1687
|
-
customer: factories['io.flow.common.v0.models.order_customer_form'](),
|
|
1688
|
-
items: arrayOf(function () { return factories['io.flow.common.v0.models.line_item_form'](); }),
|
|
1689
|
-
delivered_duty: factories['io.flow.common.v0.enums.delivered_duty'](),
|
|
1690
|
-
number: factories.string(),
|
|
1691
|
-
destination: factories['io.flow.experience.v0.models.order_address'](),
|
|
1692
|
-
discount: factories['io.flow.common.v0.models.money'](),
|
|
1693
|
-
discounts: factories['io.flow.common.v0.models.discounts_form'](),
|
|
1694
|
-
attributes: objectOf(function () { return factories.string(); }),
|
|
1695
|
-
authorization_keys: arrayOf(function () { return factories.string(); }),
|
|
1696
|
-
options: factories['io.flow.experience.v0.models.order_options'](),
|
|
1697
|
-
device_details: factories['io.flow.payment.v0.unions.device_details'](),
|
|
1698
|
-
payment_source: factories['io.flow.experience.v0.enums.order_payment_source_type'](),
|
|
1699
|
-
}); },
|
|
1700
|
-
'io.flow.experience.v0.models.order_geo': function () { return ({
|
|
1701
|
-
ip: factories.string(),
|
|
1702
|
-
country: factories.string(),
|
|
1703
|
-
currency: factories.string(),
|
|
1704
|
-
language: factories.string(),
|
|
1449
|
+
shipping_configuration: factories['io.flow.fulfillment.v0.models.shipping_configuration_reference'](),
|
|
1450
|
+
region: factories.string(),
|
|
1451
|
+
centers: arrayOf(function () { return factories['io.flow.fulfillment.v0.unions.expandable_center'](); }),
|
|
1452
|
+
tiers: arrayOf(function () { return factories['io.flow.fulfillment.v0.models.tier'](); }),
|
|
1453
|
+
query: factories['io.flow.query.builder.v0.models.query'](),
|
|
1454
|
+
strategy: factories['io.flow.fulfillment.v0.enums.lane_strategy'](),
|
|
1455
|
+
direction: factories['io.flow.fulfillment.v0.enums.lane_direction'](),
|
|
1456
|
+
preference: factories['io.flow.fulfillment.v0.enums.lane_preselect_preference'](),
|
|
1705
1457
|
}); },
|
|
1706
|
-
'io.flow.
|
|
1458
|
+
'io.flow.fulfillment.v0.models.shipping_lane_default_tier': function () { return ({
|
|
1707
1459
|
id: factories.string(),
|
|
1708
|
-
|
|
1709
|
-
name: factories.string(),
|
|
1710
|
-
identifier: factories.string(),
|
|
1711
|
-
primary: factories.boolean(),
|
|
1712
|
-
number: factories.string(),
|
|
1460
|
+
tier: factories['io.flow.fulfillment.v0.models.tier_reference'](),
|
|
1713
1461
|
}); },
|
|
1714
|
-
'io.flow.
|
|
1715
|
-
|
|
1716
|
-
name: factories.string(),
|
|
1717
|
-
identifier: factories.string(),
|
|
1718
|
-
number: factories.string(),
|
|
1719
|
-
primary: factories.boolean(),
|
|
1462
|
+
'io.flow.fulfillment.v0.models.shipping_lane_default_tier_form': function () { return ({
|
|
1463
|
+
tier_id: factories.string(),
|
|
1720
1464
|
}); },
|
|
1721
|
-
'io.flow.
|
|
1722
|
-
|
|
1723
|
-
|
|
1724
|
-
|
|
1465
|
+
'io.flow.fulfillment.v0.models.shipping_lane_form': function () { return ({
|
|
1466
|
+
from: factories.string(),
|
|
1467
|
+
to: factories.string(),
|
|
1468
|
+
strategy: factories['io.flow.fulfillment.v0.enums.lane_strategy'](),
|
|
1469
|
+
direction: factories['io.flow.fulfillment.v0.enums.lane_direction'](),
|
|
1470
|
+
preference: factories['io.flow.fulfillment.v0.enums.lane_preselect_preference'](),
|
|
1725
1471
|
}); },
|
|
1726
|
-
'io.flow.
|
|
1472
|
+
'io.flow.fulfillment.v0.models.shipping_lane_summary': function () { return ({
|
|
1473
|
+
shipping_lane_id: factories.string(),
|
|
1474
|
+
region: factories.string(),
|
|
1475
|
+
centers: arrayOf(function () { return factories['io.flow.fulfillment.v0.unions.expandable_center'](); }),
|
|
1476
|
+
}); },
|
|
1477
|
+
'io.flow.fulfillment.v0.models.shipping_lane_version': function () { return ({
|
|
1727
1478
|
id: factories.string(),
|
|
1728
1479
|
timestamp: factories.date_time_iso_8601(),
|
|
1729
1480
|
type: factories['io.flow.common.v0.enums.change_type'](),
|
|
1730
|
-
|
|
1731
|
-
}); },
|
|
1732
|
-
'io.flow.experience.v0.models.order_number_generator_defaults': function () { return ({
|
|
1733
|
-
starts_with: factories.long(),
|
|
1734
|
-
min_hex_length: factories.integer(),
|
|
1735
|
-
min_starts_with: factories.long(),
|
|
1736
|
-
}); },
|
|
1737
|
-
'io.flow.experience.v0.models.order_number_generator_fixed_length': function () { return ({
|
|
1738
|
-
length: factories.integer(),
|
|
1739
|
-
padding: factories.string(),
|
|
1740
|
-
}); },
|
|
1741
|
-
'io.flow.experience.v0.models.order_number_generator_generated_number': function () { return ({
|
|
1742
|
-
number: factories.string(),
|
|
1743
|
-
}); },
|
|
1744
|
-
'io.flow.experience.v0.models.order_number_generator_hexadecimal': function () { return ({
|
|
1745
|
-
discriminator: 'hexadecimal',
|
|
1746
|
-
length: factories.integer(),
|
|
1747
|
-
}); },
|
|
1748
|
-
'io.flow.experience.v0.models.order_number_generator_prefix_suffix': function () { return ({
|
|
1749
|
-
discriminator: 'prefix_suffix',
|
|
1750
|
-
prefix: factories.string(),
|
|
1751
|
-
starts_with: factories.long(),
|
|
1752
|
-
suffix: factories.string(),
|
|
1753
|
-
fixed_length: factories['io.flow.experience.v0.models.order_number_generator_fixed_length'](),
|
|
1754
|
-
}); },
|
|
1755
|
-
'io.flow.experience.v0.models.order_number_generator_uuid': function () { return ({
|
|
1756
|
-
discriminator: 'uuid',
|
|
1757
|
-
prefix: factories.string(),
|
|
1481
|
+
shipping_lane: factories['io.flow.fulfillment.v0.models.shipping_lane'](),
|
|
1758
1482
|
}); },
|
|
1759
|
-
'io.flow.
|
|
1760
|
-
|
|
1483
|
+
'io.flow.fulfillment.v0.models.surcharge_responsible_party_display': function () { return ({
|
|
1484
|
+
name: factories.string(),
|
|
1485
|
+
responsible_party: factories['io.flow.fulfillment.v0.enums.surcharge_responsible_party'](),
|
|
1761
1486
|
}); },
|
|
1762
|
-
'io.flow.
|
|
1763
|
-
|
|
1487
|
+
'io.flow.fulfillment.v0.models.surcharge_setting': function () { return ({
|
|
1488
|
+
key: factories['io.flow.fulfillment.v0.enums.delivery_option_cost_detail_component_key'](),
|
|
1489
|
+
responsible_party: factories['io.flow.fulfillment.v0.enums.surcharge_responsible_party'](),
|
|
1764
1490
|
}); },
|
|
1765
|
-
'io.flow.
|
|
1766
|
-
|
|
1767
|
-
type: factories['io.flow.experience.v0.enums.order_payment_type'](),
|
|
1768
|
-
merchant_of_record: factories['io.flow.common.v0.enums.merchant_of_record'](),
|
|
1769
|
-
reference: factories.string(),
|
|
1491
|
+
'io.flow.fulfillment.v0.models.surcharge_setting_display': function () { return ({
|
|
1492
|
+
name: factories.string(),
|
|
1770
1493
|
description: factories.string(),
|
|
1771
|
-
|
|
1772
|
-
|
|
1773
|
-
date: factories.date_time_iso_8601(),
|
|
1774
|
-
attributes: objectOf(function () { return factories.string(); }),
|
|
1775
|
-
method: factories.string(),
|
|
1776
|
-
}); },
|
|
1777
|
-
'io.flow.experience.v0.models.order_promotion_trigger': function () { return ({
|
|
1778
|
-
type: factories['io.flow.experience.v0.enums.promotion_trigger_type'](),
|
|
1779
|
-
min: factories['io.flow.common.v0.models.price'](),
|
|
1780
|
-
}); },
|
|
1781
|
-
'io.flow.experience.v0.models.order_put_form': function () { return ({
|
|
1782
|
-
order_type: factories['io.flow.experience.v0.enums.order_type'](),
|
|
1783
|
-
items: arrayOf(function () { return factories['io.flow.common.v0.models.line_item_form'](); }),
|
|
1784
|
-
customer: factories['io.flow.common.v0.models.order_customer_form'](),
|
|
1785
|
-
delivered_duty: factories['io.flow.common.v0.enums.delivered_duty'](),
|
|
1786
|
-
selections: arrayOf(function () { return factories.string(); }),
|
|
1787
|
-
destination: factories['io.flow.experience.v0.models.order_address'](),
|
|
1788
|
-
discount: factories['io.flow.common.v0.models.money'](),
|
|
1789
|
-
discounts: factories['io.flow.common.v0.models.discounts_form'](),
|
|
1790
|
-
attributes: objectOf(function () { return factories.string(); }),
|
|
1791
|
-
authorization_keys: arrayOf(function () { return factories.string(); }),
|
|
1792
|
-
options: factories['io.flow.experience.v0.models.order_options'](),
|
|
1793
|
-
device_details: factories['io.flow.payment.v0.unions.device_details'](),
|
|
1794
|
-
payment_source: factories['io.flow.experience.v0.enums.order_payment_source_type'](),
|
|
1494
|
+
key: factories['io.flow.fulfillment.v0.enums.delivery_option_cost_detail_component_key'](),
|
|
1495
|
+
available: arrayOf(function () { return factories['io.flow.fulfillment.v0.models.surcharge_responsible_party_display'](); }),
|
|
1795
1496
|
}); },
|
|
1796
|
-
'io.flow.
|
|
1797
|
-
discriminator: 'order_reference',
|
|
1497
|
+
'io.flow.fulfillment.v0.models.tier': function () { return ({
|
|
1798
1498
|
id: factories.string(),
|
|
1799
|
-
|
|
1800
|
-
|
|
1801
|
-
|
|
1499
|
+
direction: factories['io.flow.fulfillment.v0.enums.lane_direction'](),
|
|
1500
|
+
integration: factories['io.flow.fulfillment.v0.enums.shipment_integration_type'](),
|
|
1501
|
+
name: factories.string(),
|
|
1502
|
+
message: factories.string(),
|
|
1503
|
+
rules: arrayOf(function () { return factories['io.flow.fulfillment.v0.models.tier_rule'](); }),
|
|
1504
|
+
services: arrayOf(function () { return factories['io.flow.reference.v0.models.carrier_service'](); }),
|
|
1505
|
+
strategy: factories['io.flow.fulfillment.v0.enums.tier_strategy'](),
|
|
1506
|
+
visibility: factories['io.flow.common.v0.enums.visibility'](),
|
|
1802
1507
|
currency: factories.string(),
|
|
1803
|
-
|
|
1804
|
-
|
|
1805
|
-
|
|
1806
|
-
|
|
1807
|
-
|
|
1808
|
-
|
|
1809
|
-
refund_total: factories.decimal(),
|
|
1810
|
-
shipping: factories.decimal(),
|
|
1811
|
-
vat: factories.decimal(),
|
|
1812
|
-
duty: factories.decimal(),
|
|
1508
|
+
description: factories.string(),
|
|
1509
|
+
display: factories['io.flow.fulfillment.v0.models.tier_display'](),
|
|
1510
|
+
shipping_lane: factories.string(),
|
|
1511
|
+
surcharge_settings: arrayOf(function () { return factories['io.flow.fulfillment.v0.models.surcharge_setting'](); }),
|
|
1512
|
+
lane: factories['io.flow.fulfillment.v0.models.shipping_lane_summary'](),
|
|
1513
|
+
settings: factories['io.flow.fulfillment.v0.models.tier_settings'](),
|
|
1813
1514
|
}); },
|
|
1814
|
-
'io.flow.
|
|
1815
|
-
|
|
1816
|
-
includes: arrayOf(function () { return factories['io.flow.experience.v0.enums.order_refund_summary_includes'](); }),
|
|
1515
|
+
'io.flow.fulfillment.v0.models.tier_display': function () { return ({
|
|
1516
|
+
estimate: factories['io.flow.fulfillment.v0.models.tier_estimate'](),
|
|
1817
1517
|
}); },
|
|
1818
|
-
'io.flow.
|
|
1819
|
-
|
|
1820
|
-
quantity_to_refund: factories.long(),
|
|
1518
|
+
'io.flow.fulfillment.v0.models.tier_display_form': function () { return ({
|
|
1519
|
+
estimate: factories['io.flow.fulfillment.v0.models.tier_estimate'](),
|
|
1821
1520
|
}); },
|
|
1822
|
-
'io.flow.
|
|
1823
|
-
|
|
1824
|
-
|
|
1825
|
-
items: arrayOf(function () { return factories['io.flow.experience.v0.models.order_refund_summary_item'](); }),
|
|
1521
|
+
'io.flow.fulfillment.v0.models.tier_estimate': function () { return ({
|
|
1522
|
+
type: factories['io.flow.fulfillment.v0.enums.tier_estimate_type'](),
|
|
1523
|
+
label: factories.string(),
|
|
1826
1524
|
}); },
|
|
1827
|
-
'io.flow.
|
|
1828
|
-
|
|
1829
|
-
|
|
1525
|
+
'io.flow.fulfillment.v0.models.tier_form': function () { return ({
|
|
1526
|
+
currency: factories.string(),
|
|
1527
|
+
integration: factories['io.flow.fulfillment.v0.enums.shipment_integration_type'](),
|
|
1528
|
+
name: factories.string(),
|
|
1529
|
+
message: factories.string(),
|
|
1530
|
+
rules: arrayOf(function () { return factories['io.flow.fulfillment.v0.models.tier_rule_form'](); }),
|
|
1531
|
+
services: arrayOf(function () { return factories.string(); }),
|
|
1532
|
+
strategy: factories['io.flow.fulfillment.v0.enums.tier_strategy'](),
|
|
1533
|
+
visibility: factories['io.flow.common.v0.enums.visibility'](),
|
|
1534
|
+
description: factories.string(),
|
|
1535
|
+
direction: factories['io.flow.fulfillment.v0.enums.lane_direction'](),
|
|
1536
|
+
display: factories['io.flow.fulfillment.v0.models.tier_display_form'](),
|
|
1537
|
+
shipping_lane: factories.string(),
|
|
1538
|
+
surcharge_settings: arrayOf(function () { return factories['io.flow.fulfillment.v0.models.surcharge_setting'](); }),
|
|
1539
|
+
settings: factories['io.flow.fulfillment.v0.models.tier_settings'](),
|
|
1830
1540
|
}); },
|
|
1831
|
-
'io.flow.
|
|
1541
|
+
'io.flow.fulfillment.v0.models.tier_reference': function () { return ({
|
|
1832
1542
|
id: factories.string(),
|
|
1833
|
-
parent_order: factories['io.flow.experience.v0.models.order'](),
|
|
1834
|
-
replacement_order: factories['io.flow.experience.v0.models.order'](),
|
|
1835
|
-
}); },
|
|
1836
|
-
'io.flow.experience.v0.models.order_replacement_form': function () { return ({
|
|
1837
|
-
items: arrayOf(function () { return factories['io.flow.common.v0.models.line_item_form'](); }),
|
|
1838
1543
|
}); },
|
|
1839
|
-
'io.flow.
|
|
1544
|
+
'io.flow.fulfillment.v0.models.tier_rule': function () { return ({
|
|
1840
1545
|
id: factories.string(),
|
|
1841
|
-
|
|
1546
|
+
position: factories.long(),
|
|
1547
|
+
query: factories.string(),
|
|
1548
|
+
outcome: factories['io.flow.fulfillment.v0.unions.tier_rule_outcome'](),
|
|
1842
1549
|
}); },
|
|
1843
|
-
'io.flow.
|
|
1844
|
-
|
|
1550
|
+
'io.flow.fulfillment.v0.models.tier_rule_form': function () { return ({
|
|
1551
|
+
position: factories.long(),
|
|
1552
|
+
query: factories.string(),
|
|
1553
|
+
outcome: factories['io.flow.fulfillment.v0.unions.tier_rule_outcome_form'](),
|
|
1845
1554
|
}); },
|
|
1846
|
-
'io.flow.
|
|
1555
|
+
'io.flow.fulfillment.v0.models.tier_rule_version': function () { return ({
|
|
1847
1556
|
id: factories.string(),
|
|
1848
|
-
|
|
1849
|
-
|
|
1557
|
+
timestamp: factories.date_time_iso_8601(),
|
|
1558
|
+
type: factories['io.flow.common.v0.enums.change_type'](),
|
|
1559
|
+
tier_rule: factories['io.flow.fulfillment.v0.models.tier_rule'](),
|
|
1850
1560
|
}); },
|
|
1851
|
-
'io.flow.
|
|
1852
|
-
|
|
1853
|
-
to_service_id: factories.string(),
|
|
1561
|
+
'io.flow.fulfillment.v0.models.tier_settings': function () { return ({
|
|
1562
|
+
availability: factories['io.flow.fulfillment.v0.enums.tier_availability'](),
|
|
1854
1563
|
}); },
|
|
1855
|
-
'io.flow.
|
|
1564
|
+
'io.flow.fulfillment.v0.models.tier_summary': function () { return ({
|
|
1856
1565
|
id: factories.string(),
|
|
1857
|
-
|
|
1858
|
-
|
|
1859
|
-
}); },
|
|
1860
|
-
'io.flow.experience.v0.models.order_submission_form': function () { return ({
|
|
1861
|
-
identifiers: arrayOf(function () { return factories['io.flow.experience.v0.models.order_submission_identifier_form'](); }),
|
|
1862
|
-
}); },
|
|
1863
|
-
'io.flow.experience.v0.models.order_submission_identifier_form': function () { return ({
|
|
1864
|
-
identifier: factories.string(),
|
|
1566
|
+
experience: factories['io.flow.fulfillment.v0.models.fulfillment_experience_reference'](),
|
|
1567
|
+
integration: factories['io.flow.fulfillment.v0.enums.shipment_integration_type'](),
|
|
1865
1568
|
name: factories.string(),
|
|
1866
|
-
|
|
1867
|
-
|
|
1868
|
-
|
|
1869
|
-
|
|
1870
|
-
|
|
1871
|
-
|
|
1872
|
-
|
|
1873
|
-
duty: factories['io.flow.experience.v0.models.order_summary_price_detail'](),
|
|
1874
|
-
insurance: factories['io.flow.experience.v0.models.order_summary_price_detail'](),
|
|
1875
|
-
discount: factories['io.flow.experience.v0.models.order_summary_price_detail'](),
|
|
1876
|
-
surcharges: factories['io.flow.experience.v0.models.order_summary_price_detail'](),
|
|
1877
|
-
adjustment: factories['io.flow.experience.v0.models.order_summary_price_detail'](),
|
|
1878
|
-
total: factories['io.flow.experience.v0.models.order_summary_price_detail'](),
|
|
1879
|
-
lines: arrayOf(function () { return factories['io.flow.experience.v0.models.order_summary_line_item'](); }),
|
|
1880
|
-
identifiers: objectOf(function () { return factories.string(); }),
|
|
1881
|
-
attributes: objectOf(function () { return factories.string(); }),
|
|
1882
|
-
}); },
|
|
1883
|
-
'io.flow.experience.v0.models.order_summary_image': function () { return ({
|
|
1884
|
-
url: factories.string(),
|
|
1885
|
-
}); },
|
|
1886
|
-
'io.flow.experience.v0.models.order_summary_item': function () { return ({
|
|
1887
|
-
number: factories.string(),
|
|
1888
|
-
name: factories.string(),
|
|
1889
|
-
description: factories.string(),
|
|
1890
|
-
attributes: arrayOf(function () { return factories['io.flow.experience.v0.models.checkout_item_content_attribute'](); }),
|
|
1891
|
-
image: factories['io.flow.experience.v0.models.order_summary_image'](),
|
|
1892
|
-
price: factories['io.flow.common.v0.models.price'](),
|
|
1893
|
-
discount: factories['io.flow.common.v0.models.price'](),
|
|
1894
|
-
tax: factories['io.flow.experience.v0.models.order_summary_levy'](),
|
|
1895
|
-
duty: factories['io.flow.experience.v0.models.order_summary_levy'](),
|
|
1896
|
-
price_attributes: objectOf(function () { return factories['io.flow.common.v0.models.price'](); }),
|
|
1897
|
-
}); },
|
|
1898
|
-
'io.flow.experience.v0.models.order_summary_levy': function () { return ({
|
|
1899
|
-
rate: factories.decimal(),
|
|
1900
|
-
rate_label: factories.string(),
|
|
1901
|
-
value: factories['io.flow.common.v0.models.price'](),
|
|
1902
|
-
}); },
|
|
1903
|
-
'io.flow.experience.v0.models.order_summary_line_item': function () { return ({
|
|
1904
|
-
id: factories.string(),
|
|
1905
|
-
item: factories['io.flow.experience.v0.models.order_summary_item'](),
|
|
1906
|
-
quantity: factories.long(),
|
|
1907
|
-
discount: factories['io.flow.common.v0.models.price'](),
|
|
1908
|
-
tax: factories['io.flow.experience.v0.models.order_summary_levy'](),
|
|
1909
|
-
duty: factories['io.flow.experience.v0.models.order_summary_levy'](),
|
|
1910
|
-
total: factories['io.flow.common.v0.models.price'](),
|
|
1911
|
-
price_attributes: objectOf(function () { return factories['io.flow.common.v0.models.price'](); }),
|
|
1912
|
-
attributes: objectOf(function () { return factories.string(); }),
|
|
1913
|
-
}); },
|
|
1914
|
-
'io.flow.experience.v0.models.order_summary_price_detail': function () { return ({
|
|
1915
|
-
price: factories['io.flow.common.v0.models.price'](),
|
|
1916
|
-
name: factories.string(),
|
|
1917
|
-
rate: factories.decimal(),
|
|
1918
|
-
rate_label: factories.string(),
|
|
1919
|
-
}); },
|
|
1920
|
-
'io.flow.experience.v0.models.order_version': function () { return ({
|
|
1921
|
-
id: factories.string(),
|
|
1922
|
-
timestamp: factories.date_time_iso_8601(),
|
|
1923
|
-
type: factories['io.flow.common.v0.enums.change_type'](),
|
|
1924
|
-
order: factories['io.flow.experience.v0.models.order'](),
|
|
1925
|
-
}); },
|
|
1926
|
-
'io.flow.experience.v0.models.order_with_discounts_form': function () { return ({
|
|
1927
|
-
order: factories['io.flow.experience.v0.models.order_form'](),
|
|
1928
|
-
discounts: arrayOf(function () { return factories.string(); }),
|
|
1929
|
-
}); },
|
|
1930
|
-
'io.flow.experience.v0.models.original_prices': function () { return ({
|
|
1931
|
-
value: factories['io.flow.common.v0.models.price'](),
|
|
1932
|
-
max: factories['io.flow.common.v0.models.price'](),
|
|
1933
|
-
}); },
|
|
1934
|
-
'io.flow.experience.v0.models.payment_method_issuer': function () { return ({
|
|
1935
|
-
id: factories.string(),
|
|
1936
|
-
name: factories.string(),
|
|
1937
|
-
logo: factories['io.flow.common.v0.unions.logo_image'](),
|
|
1938
|
-
}); },
|
|
1939
|
-
'io.flow.experience.v0.models.payment_method_rule': function () { return ({
|
|
1940
|
-
tags: arrayOf(function () { return factories['io.flow.experience.v0.unions.payment_method_tag'](); }),
|
|
1941
|
-
payment_method: factories['io.flow.reference.v0.models.payment_method'](),
|
|
1942
|
-
display_position: factories.integer(),
|
|
1943
|
-
content: arrayOf(function () { return factories['io.flow.experience.v0.models.payment_method_rule_content'](); }),
|
|
1944
|
-
issuers: arrayOf(function () { return factories['io.flow.experience.v0.models.payment_method_issuer'](); }),
|
|
1945
|
-
programs: arrayOf(function () { return factories.object(); }),
|
|
1946
|
-
q: factories['io.flow.query.builder.v0.models.query'](),
|
|
1947
|
-
}); },
|
|
1948
|
-
'io.flow.experience.v0.models.payment_method_rule_content': function () { return ({
|
|
1949
|
-
key: factories['io.flow.experience.v0.enums.payment_method_rule_content_key'](),
|
|
1950
|
-
value: factories.string(),
|
|
1951
|
-
}); },
|
|
1952
|
-
'io.flow.experience.v0.models.pricing_settings': function () { return ({
|
|
1953
|
-
editable: factories.boolean(),
|
|
1954
|
-
default_tax_display: factories['io.flow.price.v0.enums.pricing_levy_setting'](),
|
|
1955
|
-
default_duty_display: factories['io.flow.price.v0.enums.pricing_levy_setting'](),
|
|
1569
|
+
services: arrayOf(function () { return factories.string(); }),
|
|
1570
|
+
strategy: factories['io.flow.fulfillment.v0.enums.tier_strategy'](),
|
|
1571
|
+
visibility: factories['io.flow.common.v0.enums.visibility'](),
|
|
1572
|
+
currency: factories.string(),
|
|
1573
|
+
display: factories['io.flow.fulfillment.v0.models.tier_display'](),
|
|
1574
|
+
message: factories.string(),
|
|
1575
|
+
settings: factories['io.flow.fulfillment.v0.models.tier_settings'](),
|
|
1956
1576
|
}); },
|
|
1957
|
-
'io.flow.
|
|
1577
|
+
'io.flow.fulfillment.v0.models.tier_version': function () { return ({
|
|
1958
1578
|
id: factories.string(),
|
|
1959
1579
|
timestamp: factories.date_time_iso_8601(),
|
|
1960
1580
|
type: factories['io.flow.common.v0.enums.change_type'](),
|
|
1961
|
-
|
|
1962
|
-
}); },
|
|
1963
|
-
'io.flow.experience.v0.models.promotion_trigger': function () { return ({
|
|
1964
|
-
type: factories['io.flow.experience.v0.enums.promotion_trigger_type'](),
|
|
1965
|
-
min: factories['io.flow.common.v0.models.price'](),
|
|
1966
|
-
remaining: factories['io.flow.common.v0.models.price'](),
|
|
1967
|
-
}); },
|
|
1968
|
-
'io.flow.experience.v0.models.promotion_trigger_form': function () { return ({
|
|
1969
|
-
type: factories['io.flow.experience.v0.enums.promotion_trigger_type'](),
|
|
1970
|
-
min: factories['io.flow.common.v0.models.price_form'](),
|
|
1971
|
-
}); },
|
|
1972
|
-
'io.flow.experience.v0.models.promotions': function () { return ({
|
|
1973
|
-
applied: arrayOf(function () { return factories['io.flow.experience.v0.unions.promotion'](); }),
|
|
1974
|
-
available: arrayOf(function () { return factories['io.flow.experience.v0.unions.promotion'](); }),
|
|
1975
|
-
}); },
|
|
1976
|
-
'io.flow.experience.v0.models.region_reference': function () { return ({
|
|
1977
|
-
id: factories.string(),
|
|
1581
|
+
tier: factories['io.flow.fulfillment.v0.models.tier_summary'](),
|
|
1978
1582
|
}); },
|
|
1979
|
-
'io.flow.
|
|
1980
|
-
|
|
1981
|
-
|
|
1583
|
+
'io.flow.fulfillment.v0.models.transit_estimate': function () { return ({
|
|
1584
|
+
origin: factories['io.flow.fulfillment.v0.enums.delivery_window_location'](),
|
|
1585
|
+
destination: factories['io.flow.fulfillment.v0.enums.delivery_window_location'](),
|
|
1586
|
+
min_date: factories.date_time_iso_8601(),
|
|
1587
|
+
max_date: factories.date_time_iso_8601(),
|
|
1588
|
+
source: factories['io.flow.fulfillment.v0.enums.delivery_window_component_source'](),
|
|
1982
1589
|
}); },
|
|
1983
|
-
'io.flow.
|
|
1984
|
-
var f = faker.helpers.arrayElement([
|
|
1985
|
-
function () { return factories['io.flow.experience.v0.models.allocation_detail_component'](); },
|
|
1986
|
-
function () { return factories['io.flow.experience.v0.models.allocation_levy_component'](); },
|
|
1987
|
-
]);
|
|
1988
|
-
return f();
|
|
1989
|
-
},
|
|
1990
|
-
'io.flow.experience.v0.unions.allocation_detail': function () {
|
|
1991
|
-
var f = faker.helpers.arrayElement([
|
|
1992
|
-
function () { return factories['io.flow.experience.v0.models.allocation_line_detail'](); },
|
|
1993
|
-
function () { return factories['io.flow.experience.v0.models.allocation_order_detail'](); },
|
|
1994
|
-
]);
|
|
1995
|
-
return f();
|
|
1996
|
-
},
|
|
1997
|
-
'io.flow.experience.v0.unions.discount_rule_entitlement': function () {
|
|
1998
|
-
var f = faker.helpers.arrayElement([
|
|
1999
|
-
function () { return factories['io.flow.experience.v0.models.discount_rule_subsidy_entitlement'](); },
|
|
2000
|
-
]);
|
|
2001
|
-
return f();
|
|
2002
|
-
},
|
|
2003
|
-
'io.flow.experience.v0.unions.expandable_experience': function () {
|
|
2004
|
-
var f = faker.helpers.arrayElement([
|
|
2005
|
-
function () { return factories['io.flow.experience.v0.models.experience'](); },
|
|
2006
|
-
function () { return factories['io.flow.experience.v0.models.experience_reference'](); },
|
|
2007
|
-
]);
|
|
2008
|
-
return f();
|
|
2009
|
-
},
|
|
2010
|
-
'io.flow.experience.v0.unions.expandable_order': function () {
|
|
1590
|
+
'io.flow.fulfillment.v0.unions.delivery': function () {
|
|
2011
1591
|
var f = faker.helpers.arrayElement([
|
|
2012
|
-
function () { return factories['io.flow.
|
|
2013
|
-
function () { return factories['io.flow.
|
|
1592
|
+
function () { return factories['io.flow.fulfillment.v0.models.digital_delivery'](); },
|
|
1593
|
+
function () { return factories['io.flow.fulfillment.v0.models.physical_delivery'](); },
|
|
2014
1594
|
]);
|
|
2015
1595
|
return f();
|
|
2016
1596
|
},
|
|
2017
|
-
'io.flow.
|
|
1597
|
+
'io.flow.fulfillment.v0.unions.expandable_center': function () {
|
|
2018
1598
|
var f = faker.helpers.arrayElement([
|
|
2019
|
-
function () { return factories['io.flow.
|
|
2020
|
-
function () { return factories['io.flow.
|
|
2021
|
-
function () { return factories['io.flow.experience.v0.models.order_number_generator_prefix_suffix'](); },
|
|
1599
|
+
function () { return factories['io.flow.fulfillment.v0.models.center'](); },
|
|
1600
|
+
function () { return factories['io.flow.fulfillment.v0.models.center_reference'](); },
|
|
2022
1601
|
]);
|
|
2023
1602
|
return f();
|
|
2024
1603
|
},
|
|
2025
|
-
'io.flow.
|
|
1604
|
+
'io.flow.fulfillment.v0.unions.partner_center_fee': function () {
|
|
2026
1605
|
var f = faker.helpers.arrayElement([
|
|
2027
|
-
function () { return factories['io.flow.
|
|
1606
|
+
function () { return factories['io.flow.fulfillment.v0.models.commercial_invoice_fee'](); },
|
|
1607
|
+
function () { return factories['io.flow.fulfillment.v0.models.inbound_carton_fee'](); },
|
|
1608
|
+
function () { return factories['io.flow.fulfillment.v0.models.outbound_carton_fee'](); },
|
|
2028
1609
|
]);
|
|
2029
1610
|
return f();
|
|
2030
1611
|
},
|
|
2031
|
-
'io.flow.
|
|
1612
|
+
'io.flow.fulfillment.v0.unions.service_description': function () {
|
|
2032
1613
|
var f = faker.helpers.arrayElement([
|
|
2033
|
-
function () { return factories['io.flow.
|
|
1614
|
+
function () { return factories['io.flow.fulfillment.v0.models.service_summary'](); },
|
|
1615
|
+
function () { return factories['io.flow.fulfillment.v0.models.service_unknown'](); },
|
|
2034
1616
|
]);
|
|
2035
1617
|
return f();
|
|
2036
1618
|
},
|
|
2037
|
-
'io.flow.
|
|
1619
|
+
'io.flow.fulfillment.v0.unions.tier_rule_outcome': function () {
|
|
2038
1620
|
var f = faker.helpers.arrayElement([
|
|
2039
|
-
function () { return factories['io.flow.
|
|
2040
|
-
function () { return factories['io.flow.
|
|
1621
|
+
function () { return factories['io.flow.fulfillment.v0.models.amount_margin'](); },
|
|
1622
|
+
function () { return factories['io.flow.fulfillment.v0.models.at_cost'](); },
|
|
1623
|
+
function () { return factories['io.flow.fulfillment.v0.models.flat_rate'](); },
|
|
1624
|
+
function () { return factories['io.flow.fulfillment.v0.models.percent_margin'](); },
|
|
2041
1625
|
]);
|
|
2042
1626
|
return f();
|
|
2043
1627
|
},
|
|
2044
|
-
'io.flow.
|
|
2045
|
-
var f = faker.helpers.arrayElement([function () { return ({
|
|
2046
|
-
discriminator: 'organization_payment_method_tag',
|
|
2047
|
-
value: factories['io.flow.experience.v0.enums.organization_payment_method_tag'](),
|
|
2048
|
-
}); }, function () { return ({
|
|
2049
|
-
discriminator: 'experience_payment_method_tag',
|
|
2050
|
-
value: factories['io.flow.experience.v0.enums.experience_payment_method_tag'](),
|
|
2051
|
-
}); }]);
|
|
2052
|
-
return f();
|
|
2053
|
-
},
|
|
2054
|
-
'io.flow.experience.v0.unions.promotion': function () {
|
|
1628
|
+
'io.flow.fulfillment.v0.unions.tier_rule_outcome_form': function () {
|
|
2055
1629
|
var f = faker.helpers.arrayElement([
|
|
2056
|
-
function () { return factories['io.flow.
|
|
2057
|
-
function () { return factories['io.flow.
|
|
1630
|
+
function () { return factories['io.flow.fulfillment.v0.models.amount_margin_form'](); },
|
|
1631
|
+
function () { return factories['io.flow.fulfillment.v0.models.flat_rate_form'](); },
|
|
1632
|
+
function () { return factories['io.flow.fulfillment.v0.models.at_cost'](); },
|
|
1633
|
+
function () { return factories['io.flow.fulfillment.v0.models.percent_margin'](); },
|
|
2058
1634
|
]);
|
|
2059
1635
|
return f();
|
|
2060
1636
|
},
|
|
2061
|
-
'io.flow.
|
|
2062
|
-
|
|
2063
|
-
|
|
1637
|
+
'io.flow.google.pay.v0.enums.auth_method': function () { return faker.helpers.arrayElement(['PAN_ONLY', 'CRYPTOGRAM_3DS']); },
|
|
1638
|
+
'io.flow.google.pay.v0.enums.billing_address_format': function () { return faker.helpers.arrayElement(['MIN', 'FULL']); },
|
|
1639
|
+
'io.flow.google.pay.v0.enums.card_gateway': function () { return faker.helpers.arrayElement(['adyen', 'stripe']); },
|
|
1640
|
+
'io.flow.google.pay.v0.enums.card_network': function () { return faker.helpers.arrayElement(['AMEX', 'DISCOVER', 'JCB', 'MASTERCARD', 'VISA']); },
|
|
1641
|
+
'io.flow.google.pay.v0.enums.payment_method_type': function () { return faker.helpers.arrayElement(['CARD']); },
|
|
1642
|
+
'io.flow.google.pay.v0.enums.tokenization_type': function () { return faker.helpers.arrayElement(['PAYMENT_GATEWAY', 'DIRECT']); },
|
|
1643
|
+
'io.flow.google.pay.v0.enums.total_price_status': function () { return faker.helpers.arrayElement(['NOT_CURRENTLY_KNOWN', 'ESTIMATED', 'FINAL']); },
|
|
1644
|
+
'io.flow.google.pay.v0.models.address': function () { return ({
|
|
1645
|
+
name: factories.string(),
|
|
1646
|
+
postalCode: factories.string(),
|
|
1647
|
+
countryCode: factories.string(),
|
|
1648
|
+
phoneNumber: factories.string(),
|
|
1649
|
+
companyName: factories.string(),
|
|
1650
|
+
address1: factories.string(),
|
|
1651
|
+
address2: factories.string(),
|
|
1652
|
+
address3: factories.string(),
|
|
1653
|
+
locality: factories.string(),
|
|
1654
|
+
administrativeArea: factories.string(),
|
|
1655
|
+
sortingCode: factories.string(),
|
|
2064
1656
|
}); },
|
|
2065
|
-
'io.flow.
|
|
2066
|
-
|
|
2067
|
-
|
|
1657
|
+
'io.flow.google.pay.v0.models.billing_address_parameters': function () { return ({
|
|
1658
|
+
format: factories['io.flow.google.pay.v0.enums.billing_address_format'](),
|
|
1659
|
+
phoneNumberRequired: factories.boolean(),
|
|
2068
1660
|
}); },
|
|
2069
|
-
'io.flow.
|
|
2070
|
-
|
|
2071
|
-
|
|
1661
|
+
'io.flow.google.pay.v0.models.card_adyen_tokenization_parameters': function () { return ({
|
|
1662
|
+
gateway: factories.string(),
|
|
1663
|
+
gatewayMerchantId: factories.string(),
|
|
2072
1664
|
}); },
|
|
2073
|
-
'io.flow.
|
|
2074
|
-
|
|
2075
|
-
|
|
1665
|
+
'io.flow.google.pay.v0.models.card_direct_tokenization_parameters': function () { return ({
|
|
1666
|
+
protocolVersion: factories.string(),
|
|
1667
|
+
publicKey: factories.string(),
|
|
2076
1668
|
}); },
|
|
2077
|
-
'io.flow.
|
|
2078
|
-
|
|
2079
|
-
|
|
1669
|
+
'io.flow.google.pay.v0.models.card_payment_method_data_info': function () { return ({
|
|
1670
|
+
cardDetails: factories.string(),
|
|
1671
|
+
cardNetwork: factories.string(),
|
|
1672
|
+
billingAddress: factories['io.flow.google.pay.v0.models.address'](),
|
|
2080
1673
|
}); },
|
|
2081
|
-
'io.flow.
|
|
2082
|
-
|
|
2083
|
-
|
|
2084
|
-
|
|
2085
|
-
|
|
2086
|
-
function () { return factories['io.flow.field.validation.v0.models.field_validation_max'](); },
|
|
2087
|
-
function () { return factories['io.flow.field.validation.v0.models.field_validation_pattern'](); },
|
|
2088
|
-
]);
|
|
2089
|
-
return f();
|
|
2090
|
-
},
|
|
2091
|
-
'io.flow.fulfillment.v0.enums.center_capability': function () { return faker.helpers.arrayElement(['international', 'domestic', 'crossdock', 'commercial_invoice']); },
|
|
2092
|
-
'io.flow.fulfillment.v0.enums.delivery_option_cost_detail_component_key': function () { return faker.helpers.arrayElement([
|
|
2093
|
-
'ratecard_base_cost',
|
|
2094
|
-
'ratecard_ddp_fee',
|
|
2095
|
-
'ratecard_fuel_surcharge',
|
|
2096
|
-
'ratecard_oversized_shipment_fee',
|
|
2097
|
-
'ratecard_rural_shipment_fee',
|
|
2098
|
-
'ratecard_emergency_situation_surcharge_fee',
|
|
2099
|
-
'ratecard_peak_surcharge_fee',
|
|
2100
|
-
'ratecard_duties_taxes_paid_surcharge_fee',
|
|
2101
|
-
'center_commercial_invoice_fee',
|
|
2102
|
-
'center_inbound_carton_fee',
|
|
2103
|
-
'center_outbound_carton_fee',
|
|
2104
|
-
]); },
|
|
2105
|
-
'io.flow.fulfillment.v0.enums.delivery_option_cost_detail_source': function () { return faker.helpers.arrayElement(['center', 'ratecard']); },
|
|
2106
|
-
'io.flow.fulfillment.v0.enums.delivery_window_component_source': function () { return faker.helpers.arrayElement(['flow', 'organization', 'carrier', 'center', 'mixed']); },
|
|
2107
|
-
'io.flow.fulfillment.v0.enums.delivery_window_location': function () { return faker.helpers.arrayElement(['center', 'crossdock', 'customer']); },
|
|
2108
|
-
'io.flow.fulfillment.v0.enums.fulfillment_routing': function () { return faker.helpers.arrayElement(['fulfilled_from_center', 'fulfillment_service']); },
|
|
2109
|
-
'io.flow.fulfillment.v0.enums.item_availability_status': function () { return faker.helpers.arrayElement(['available', 'low', 'out_of_stock']); },
|
|
2110
|
-
'io.flow.fulfillment.v0.enums.lane_direction': function () { return faker.helpers.arrayElement(['outbound', 'return']); },
|
|
2111
|
-
'io.flow.fulfillment.v0.enums.lane_preselect_preference': function () { return faker.helpers.arrayElement(['lowest_cost', 'default_tier']); },
|
|
2112
|
-
'io.flow.fulfillment.v0.enums.lane_strategy': function () { return faker.helpers.arrayElement(['oldest', 'fastest', 'lowest_cost', 'highest_priority']); },
|
|
2113
|
-
'io.flow.fulfillment.v0.enums.physical_delivery_special_serivce': function () { return faker.helpers.arrayElement(['cold_storage', 'hazardous', 'perishable']); },
|
|
2114
|
-
'io.flow.fulfillment.v0.enums.preferred_service_selection_strategy': function () { return faker.helpers.arrayElement(['calculated_rate', 'flat_rate', 'custom_rate']); },
|
|
2115
|
-
'io.flow.fulfillment.v0.enums.quote_error_code': function () { return faker.helpers.arrayElement(['generic_error', 'items_not_available', 'shipping_unavailable']); },
|
|
2116
|
-
'io.flow.fulfillment.v0.enums.ratecard_owner': function () { return faker.helpers.arrayElement(['flow', 'organization']); },
|
|
2117
|
-
'io.flow.fulfillment.v0.enums.shipment_integration_type': function () { return faker.helpers.arrayElement(['direct', 'information', 'preadvice']); },
|
|
2118
|
-
'io.flow.fulfillment.v0.enums.shipping_configuration_type': function () { return faker.helpers.arrayElement(['default', 'variant']); },
|
|
2119
|
-
'io.flow.fulfillment.v0.enums.strategy': function () { return faker.helpers.arrayElement(['range', 'from', 'to']); },
|
|
2120
|
-
'io.flow.fulfillment.v0.enums.surcharge_responsible_party': function () { return faker.helpers.arrayElement(['organization', 'customer']); },
|
|
2121
|
-
'io.flow.fulfillment.v0.enums.tier_availability': function () { return faker.helpers.arrayElement(['always', 'backup']); },
|
|
2122
|
-
'io.flow.fulfillment.v0.enums.tier_estimate_type': function () { return faker.helpers.arrayElement(['calculated', 'custom']); },
|
|
2123
|
-
'io.flow.fulfillment.v0.enums.tier_strategy': function () { return faker.helpers.arrayElement(['fastest', 'lowest_cost']); },
|
|
2124
|
-
'io.flow.fulfillment.v0.enums.zero_amount_indicator': function () { return faker.helpers.arrayElement(['zero', 'free']); },
|
|
2125
|
-
'io.flow.fulfillment.v0.models.amount_margin': function () { return ({
|
|
2126
|
-
discriminator: 'amount_margin',
|
|
2127
|
-
margin: factories['io.flow.common.v0.models.price'](),
|
|
1674
|
+
'io.flow.google.pay.v0.models.card_payment_method_parameters': function () { return ({
|
|
1675
|
+
allowedAuthMethods: arrayOf(function () { return factories['io.flow.google.pay.v0.enums.auth_method'](); }),
|
|
1676
|
+
allowedCardNetworks: arrayOf(function () { return factories['io.flow.google.pay.v0.enums.card_network'](); }),
|
|
1677
|
+
billingAddressRequired: factories.boolean(),
|
|
1678
|
+
billingAddressParameters: factories['io.flow.google.pay.v0.models.billing_address_parameters'](),
|
|
2128
1679
|
}); },
|
|
2129
|
-
'io.flow.
|
|
2130
|
-
discriminator: '
|
|
2131
|
-
|
|
1680
|
+
'io.flow.google.pay.v0.models.direct_payment_method_token': function () { return ({
|
|
1681
|
+
discriminator: 'direct_payment_method_token',
|
|
1682
|
+
protocolVersion: factories.string(),
|
|
1683
|
+
signature: factories.string(),
|
|
1684
|
+
signedMessage: factories.string(),
|
|
2132
1685
|
}); },
|
|
2133
|
-
'io.flow.
|
|
2134
|
-
|
|
2135
|
-
|
|
1686
|
+
'io.flow.google.pay.v0.models.encrypted_message': function () { return ({
|
|
1687
|
+
messageExpiration: factories.string(),
|
|
1688
|
+
messageId: factories.string(),
|
|
1689
|
+
paymentMethod: factories['io.flow.google.pay.v0.models.payment_method'](),
|
|
1690
|
+
paymentMethodDetails: factories['io.flow.google.pay.v0.models.payment_method_details'](),
|
|
2136
1691
|
}); },
|
|
2137
|
-
'io.flow.
|
|
2138
|
-
|
|
2139
|
-
|
|
2140
|
-
|
|
1692
|
+
'io.flow.google.pay.v0.models.merchant_info': function () { return ({
|
|
1693
|
+
merchantId: factories.string(),
|
|
1694
|
+
merchantName: factories.string(),
|
|
1695
|
+
authJwt: factories.string(),
|
|
2141
1696
|
}); },
|
|
2142
|
-
'io.flow.
|
|
2143
|
-
|
|
1697
|
+
'io.flow.google.pay.v0.models.payment_data': function () { return ({
|
|
1698
|
+
apiVersion: factories.integer(),
|
|
1699
|
+
apiVersionMinor: factories.integer(),
|
|
1700
|
+
paymentMethodData: factories['io.flow.google.pay.v0.models.payment_method_data'](),
|
|
1701
|
+
email: factories.string(),
|
|
1702
|
+
shippingAddress: factories['io.flow.google.pay.v0.models.address'](),
|
|
2144
1703
|
}); },
|
|
2145
|
-
'io.flow.
|
|
2146
|
-
|
|
2147
|
-
|
|
2148
|
-
|
|
2149
|
-
|
|
2150
|
-
|
|
2151
|
-
|
|
2152
|
-
|
|
2153
|
-
|
|
2154
|
-
timezone: factories.string(),
|
|
2155
|
-
capabilities: arrayOf(function () { return factories['io.flow.fulfillment.v0.enums.center_capability'](); }),
|
|
2156
|
-
partner_center: factories['io.flow.fulfillment.v0.models.partner_center'](),
|
|
1704
|
+
'io.flow.google.pay.v0.models.payment_data_request': function () { return ({
|
|
1705
|
+
apiVersion: factories.integer(),
|
|
1706
|
+
apiVersionMinor: factories.integer(),
|
|
1707
|
+
merchantInfo: factories['io.flow.google.pay.v0.models.merchant_info'](),
|
|
1708
|
+
allowedPaymentMethods: arrayOf(function () { return factories['io.flow.google.pay.v0.models.payment_method'](); }),
|
|
1709
|
+
transactionInfo: factories['io.flow.google.pay.v0.models.transaction_info'](),
|
|
1710
|
+
emailRequired: factories.boolean(),
|
|
1711
|
+
shippingAddressRequired: factories.boolean(),
|
|
1712
|
+
shippingAddressParameters: factories['io.flow.google.pay.v0.models.shipping_address_parameters'](),
|
|
2157
1713
|
}); },
|
|
2158
|
-
'io.flow.
|
|
2159
|
-
|
|
2160
|
-
|
|
2161
|
-
|
|
2162
|
-
services: arrayOf(function () { return factories['io.flow.fulfillment.v0.models.available_service'](); }),
|
|
2163
|
-
schedule: factories['io.flow.common.v0.models.schedule'](),
|
|
2164
|
-
timezone: factories.string(),
|
|
2165
|
-
key: factories.string(),
|
|
2166
|
-
capabilities: arrayOf(function () { return factories['io.flow.fulfillment.v0.enums.center_capability'](); }),
|
|
2167
|
-
partner_center_form: factories['io.flow.fulfillment.v0.models.partner_center_form'](),
|
|
1714
|
+
'io.flow.google.pay.v0.models.payment_method': function () { return ({
|
|
1715
|
+
type: factories['io.flow.google.pay.v0.enums.payment_method_type'](),
|
|
1716
|
+
parameters: factories['io.flow.google.pay.v0.models.card_payment_method_parameters'](),
|
|
1717
|
+
tokenizationSpecification: factories['io.flow.google.pay.v0.models.payment_method_tokenization_specification'](),
|
|
2168
1718
|
}); },
|
|
2169
|
-
'io.flow.
|
|
2170
|
-
|
|
1719
|
+
'io.flow.google.pay.v0.models.payment_method_data': function () { return ({
|
|
1720
|
+
type: factories['io.flow.google.pay.v0.enums.payment_method_type'](),
|
|
1721
|
+
description: factories.string(),
|
|
1722
|
+
info: factories['io.flow.google.pay.v0.models.card_payment_method_data_info'](),
|
|
1723
|
+
tokenizationData: factories['io.flow.google.pay.v0.models.payment_method_tokenization_data'](),
|
|
2171
1724
|
}); },
|
|
2172
|
-
'io.flow.
|
|
2173
|
-
|
|
2174
|
-
|
|
2175
|
-
|
|
1725
|
+
'io.flow.google.pay.v0.models.payment_method_details': function () { return ({
|
|
1726
|
+
pan: factories.string(),
|
|
1727
|
+
expirationMonth: factories.integer(),
|
|
1728
|
+
expirationYear: factories.integer(),
|
|
1729
|
+
authMethod: factories['io.flow.google.pay.v0.enums.auth_method'](),
|
|
1730
|
+
cryptogram: factories.string(),
|
|
1731
|
+
eciIndicator: factories.string(),
|
|
2176
1732
|
}); },
|
|
2177
|
-
'io.flow.
|
|
2178
|
-
|
|
2179
|
-
|
|
2180
|
-
address: factories['io.flow.fulfillment.v0.models.shipping_address'](),
|
|
1733
|
+
'io.flow.google.pay.v0.models.payment_method_tokenization_data': function () { return ({
|
|
1734
|
+
type: factories.string(),
|
|
1735
|
+
token: factories.string(),
|
|
2181
1736
|
}); },
|
|
2182
|
-
'io.flow.
|
|
2183
|
-
|
|
2184
|
-
|
|
2185
|
-
type: factories['io.flow.common.v0.enums.change_type'](),
|
|
2186
|
-
center: factories['io.flow.fulfillment.v0.models.center'](),
|
|
1737
|
+
'io.flow.google.pay.v0.models.payment_method_tokenization_specification': function () { return ({
|
|
1738
|
+
type: factories['io.flow.google.pay.v0.enums.tokenization_type'](),
|
|
1739
|
+
parameters: factories.object(),
|
|
2187
1740
|
}); },
|
|
2188
|
-
'io.flow.
|
|
2189
|
-
|
|
2190
|
-
amount: factories['io.flow.common.v0.models.money'](),
|
|
1741
|
+
'io.flow.google.pay.v0.models.shipping_address_parameters': function () { return ({
|
|
1742
|
+
allowedCountryCodes: arrayOf(function () { return factories.string(); }),
|
|
2191
1743
|
}); },
|
|
2192
|
-
'io.flow.
|
|
2193
|
-
|
|
2194
|
-
|
|
1744
|
+
'io.flow.google.pay.v0.models.signed_message': function () { return ({
|
|
1745
|
+
encryptedMessage: factories.string(),
|
|
1746
|
+
ephemeralPublicKey: factories.string(),
|
|
1747
|
+
tag: factories.string(),
|
|
2195
1748
|
}); },
|
|
2196
|
-
'io.flow.
|
|
2197
|
-
|
|
2198
|
-
|
|
1749
|
+
'io.flow.google.pay.v0.models.stripe_payment_method_token': function () { return ({
|
|
1750
|
+
discriminator: 'stripe_payment_method_token',
|
|
1751
|
+
token: factories['io.flow.stripe.v0.models.token'](),
|
|
2199
1752
|
}); },
|
|
2200
|
-
'io.flow.
|
|
2201
|
-
|
|
1753
|
+
'io.flow.google.pay.v0.models.transaction_info': function () { return ({
|
|
1754
|
+
totalPriceStatus: factories['io.flow.google.pay.v0.enums.total_price_status'](),
|
|
1755
|
+
totalPrice: factories.string(),
|
|
1756
|
+
currencyCode: factories.string(),
|
|
1757
|
+
}); },
|
|
1758
|
+
'io.flow.google.pay.v0.unions.payment_method_token': function () {
|
|
1759
|
+
var f = faker.helpers.arrayElement([
|
|
1760
|
+
function () { return factories['io.flow.google.pay.v0.models.direct_payment_method_token'](); },
|
|
1761
|
+
function () { return factories['io.flow.google.pay.v0.models.stripe_payment_method_token'](); },
|
|
1762
|
+
]);
|
|
1763
|
+
return f();
|
|
1764
|
+
},
|
|
1765
|
+
'io.flow.inventory.v0.enums.aggregate': function () { return faker.helpers.arrayElement(['maximum', 'minimum']); },
|
|
1766
|
+
'io.flow.inventory.v0.enums.inventory_status': function () { return faker.helpers.arrayElement(['has_inventory', 'no_inventory']); },
|
|
1767
|
+
'io.flow.inventory.v0.enums.update_type': function () { return faker.helpers.arrayElement(['change', 'set']); },
|
|
1768
|
+
'io.flow.inventory.v0.models.external_api_timeout_reservation_error': function () { return ({
|
|
1769
|
+
code: 'external_api_timeout',
|
|
1770
|
+
messages: arrayOf(function () { return factories.string(); }),
|
|
1771
|
+
}); },
|
|
1772
|
+
'io.flow.inventory.v0.models.generic_reservation_error': function () { return ({
|
|
1773
|
+
code: 'generic_reservation_error',
|
|
1774
|
+
messages: arrayOf(function () { return factories.string(); }),
|
|
1775
|
+
}); },
|
|
1776
|
+
'io.flow.inventory.v0.models.inventory_backorder': function () { return ({
|
|
1777
|
+
discriminator: 'inventory_backorder',
|
|
1778
|
+
quantity: factories.long(),
|
|
1779
|
+
}); },
|
|
1780
|
+
'io.flow.inventory.v0.models.inventory_center_reference': function () { return ({
|
|
1781
|
+
key: factories.string(),
|
|
1782
|
+
}); },
|
|
1783
|
+
'io.flow.inventory.v0.models.inventory_check_response': function () { return ({
|
|
1784
|
+
items: arrayOf(function () { return factories['io.flow.inventory.v0.models.inventory_check_response_item'](); }),
|
|
1785
|
+
}); },
|
|
1786
|
+
'io.flow.inventory.v0.models.inventory_check_response_item': function () { return ({
|
|
2202
1787
|
number: factories.string(),
|
|
2203
1788
|
quantity: factories.long(),
|
|
2204
|
-
|
|
2205
|
-
price: factories['io.flow.common.v0.models.money_with_optional_base'](),
|
|
2206
|
-
attributes: objectOf(function () { return factories.string(); }),
|
|
2207
|
-
center: factories.string(),
|
|
2208
|
-
line_number: factories.long(),
|
|
1789
|
+
inventory_status: factories['io.flow.inventory.v0.enums.inventory_status'](),
|
|
2209
1790
|
}); },
|
|
2210
|
-
'io.flow.
|
|
2211
|
-
|
|
2212
|
-
cost: factories['io.flow.fulfillment.v0.models.price_with_base_and_details'](),
|
|
2213
|
-
delivered_duty: factories['io.flow.common.v0.enums.delivered_duty'](),
|
|
2214
|
-
price: factories['io.flow.fulfillment.v0.models.price_with_base_and_details'](),
|
|
2215
|
-
service: factories['io.flow.fulfillment.v0.models.service_summary'](),
|
|
2216
|
-
tier: factories['io.flow.fulfillment.v0.models.tier_summary'](),
|
|
2217
|
-
window: factories['io.flow.fulfillment.v0.models.delivery_window'](),
|
|
2218
|
-
rule_outcome: factories['io.flow.fulfillment.v0.unions.tier_rule_outcome'](),
|
|
2219
|
-
weight: factories['io.flow.fulfillment.v0.models.option_weight_estimates'](),
|
|
2220
|
-
send_to: factories['io.flow.fulfillment.v0.models.shipping_address'](),
|
|
2221
|
-
surcharge: factories['io.flow.fulfillment.v0.models.price_with_base_and_details'](),
|
|
2222
|
-
ratecard_owner: factories['io.flow.fulfillment.v0.enums.ratecard_owner'](),
|
|
1791
|
+
'io.flow.inventory.v0.models.inventory_experience_reference': function () { return ({
|
|
1792
|
+
key: factories.string(),
|
|
2223
1793
|
}); },
|
|
2224
|
-
'io.flow.
|
|
2225
|
-
|
|
2226
|
-
|
|
2227
|
-
amount: factories.decimal(),
|
|
2228
|
-
label: factories.string(),
|
|
2229
|
-
base: factories['io.flow.common.v0.models.price'](),
|
|
1794
|
+
'io.flow.inventory.v0.models.inventory_follow_ecommerce_platform': function () { return ({
|
|
1795
|
+
discriminator: 'inventory_follow_ecommerce_platform',
|
|
1796
|
+
quantity: factories.long(),
|
|
2230
1797
|
}); },
|
|
2231
|
-
'io.flow.
|
|
2232
|
-
|
|
2233
|
-
ratecard_id: factories.string(),
|
|
2234
|
-
currency: factories.string(),
|
|
2235
|
-
amount: factories.decimal(),
|
|
2236
|
-
label: factories.string(),
|
|
2237
|
-
base: factories['io.flow.common.v0.models.price'](),
|
|
2238
|
-
components: arrayOf(function () { return factories['io.flow.fulfillment.v0.models.delivery_option_cost_component'](); }),
|
|
1798
|
+
'io.flow.inventory.v0.models.inventory_item_reference': function () { return ({
|
|
1799
|
+
number: factories.string(),
|
|
2239
1800
|
}); },
|
|
2240
|
-
'io.flow.
|
|
2241
|
-
|
|
2242
|
-
items: arrayOf(function () { return factories['io.flow.fulfillment.v0.models.quote_line_item_form'](); }),
|
|
2243
|
-
destination: factories['io.flow.fulfillment.v0.models.shipping_address'](),
|
|
1801
|
+
'io.flow.inventory.v0.models.inventory_request': function () { return ({
|
|
1802
|
+
items: arrayOf(function () { return factories['io.flow.inventory.v0.models.inventory_request_item'](); }),
|
|
2244
1803
|
}); },
|
|
2245
|
-
'io.flow.
|
|
2246
|
-
|
|
1804
|
+
'io.flow.inventory.v0.models.inventory_request_item': function () { return ({
|
|
1805
|
+
number: factories.string(),
|
|
1806
|
+
quantity: factories.long(),
|
|
2247
1807
|
}); },
|
|
2248
|
-
'io.flow.
|
|
1808
|
+
'io.flow.inventory.v0.models.inventory_rule': function () { return ({
|
|
2249
1809
|
id: factories.string(),
|
|
2250
|
-
|
|
2251
|
-
|
|
2252
|
-
|
|
2253
|
-
service: factories['io.flow.fulfillment.v0.models.service_reference'](),
|
|
2254
|
-
tier: factories['io.flow.fulfillment.v0.models.tier_reference'](),
|
|
2255
|
-
window: factories['io.flow.common.v0.models.datetime_range'](),
|
|
1810
|
+
position: factories.long(),
|
|
1811
|
+
query: factories.string(),
|
|
1812
|
+
strategy: factories['io.flow.inventory.v0.unions.inventory_strategy'](),
|
|
2256
1813
|
}); },
|
|
2257
|
-
'io.flow.
|
|
1814
|
+
'io.flow.inventory.v0.models.inventory_rule_form': function () { return ({
|
|
1815
|
+
position: factories.long(),
|
|
1816
|
+
query: factories.string(),
|
|
1817
|
+
strategy: factories['io.flow.inventory.v0.unions.inventory_strategy'](),
|
|
1818
|
+
}); },
|
|
1819
|
+
'io.flow.inventory.v0.models.inventory_rule_version': function () { return ({
|
|
2258
1820
|
id: factories.string(),
|
|
2259
1821
|
timestamp: factories.date_time_iso_8601(),
|
|
2260
1822
|
type: factories['io.flow.common.v0.enums.change_type'](),
|
|
2261
|
-
|
|
1823
|
+
inventory_rule: factories['io.flow.inventory.v0.models.inventory_rule'](),
|
|
2262
1824
|
}); },
|
|
2263
|
-
'io.flow.
|
|
1825
|
+
'io.flow.inventory.v0.models.inventory_snapshot': function () { return ({
|
|
2264
1826
|
id: factories.string(),
|
|
2265
|
-
|
|
1827
|
+
available: factories.long(),
|
|
1828
|
+
center: factories['io.flow.inventory.v0.models.inventory_center_reference'](),
|
|
1829
|
+
item: factories['io.flow.inventory.v0.models.inventory_item_reference'](),
|
|
1830
|
+
quantity: factories.long(),
|
|
2266
1831
|
}); },
|
|
2267
|
-
'io.flow.
|
|
1832
|
+
'io.flow.inventory.v0.models.inventory_snapshot_version': function () { return ({
|
|
2268
1833
|
id: factories.string(),
|
|
2269
1834
|
timestamp: factories.date_time_iso_8601(),
|
|
2270
1835
|
type: factories['io.flow.common.v0.enums.change_type'](),
|
|
2271
|
-
|
|
2272
|
-
}); },
|
|
2273
|
-
'io.flow.fulfillment.v0.models.delivery_window': function () { return ({
|
|
2274
|
-
from: factories.date_time_iso_8601(),
|
|
2275
|
-
to: factories.date_time_iso_8601(),
|
|
2276
|
-
timezone: factories.string(),
|
|
2277
|
-
label: factories.string(),
|
|
2278
|
-
min_days: factories.long(),
|
|
2279
|
-
max_days: factories.long(),
|
|
1836
|
+
inventory_snapshot: factories['io.flow.inventory.v0.models.inventory_snapshot'](),
|
|
2280
1837
|
}); },
|
|
2281
|
-
'io.flow.
|
|
2282
|
-
|
|
2283
|
-
|
|
2284
|
-
source: factories['io.flow.fulfillment.v0.enums.delivery_window_component_source'](),
|
|
1838
|
+
'io.flow.inventory.v0.models.inventory_stock': function () { return ({
|
|
1839
|
+
discriminator: 'inventory_stock',
|
|
1840
|
+
quantity: factories.long(),
|
|
2285
1841
|
}); },
|
|
2286
|
-
'io.flow.
|
|
2287
|
-
|
|
2288
|
-
|
|
1842
|
+
'io.flow.inventory.v0.models.inventory_unlimited': function () { return ({
|
|
1843
|
+
discriminator: 'inventory_unlimited',
|
|
1844
|
+
placeholder: factories.string(),
|
|
2289
1845
|
}); },
|
|
2290
|
-
'io.flow.
|
|
2291
|
-
|
|
2292
|
-
|
|
1846
|
+
'io.flow.inventory.v0.models.inventory_update': function () { return ({
|
|
1847
|
+
id: factories.string(),
|
|
1848
|
+
idempotency_key: factories.string(),
|
|
1849
|
+
center: factories['io.flow.inventory.v0.models.inventory_center_reference'](),
|
|
1850
|
+
item: factories['io.flow.inventory.v0.models.inventory_item_reference'](),
|
|
1851
|
+
notes: factories.object(),
|
|
1852
|
+
quantity: factories.long(),
|
|
1853
|
+
type: factories['io.flow.inventory.v0.enums.update_type'](),
|
|
2293
1854
|
}); },
|
|
2294
|
-
'io.flow.
|
|
2295
|
-
|
|
2296
|
-
|
|
1855
|
+
'io.flow.inventory.v0.models.inventory_update_form': function () { return ({
|
|
1856
|
+
center: factories.string(),
|
|
1857
|
+
idempotency_key: factories.string(),
|
|
1858
|
+
item_number: factories.string(),
|
|
1859
|
+
quantity: factories.long(),
|
|
1860
|
+
type: factories['io.flow.inventory.v0.enums.update_type'](),
|
|
1861
|
+
notes: factories.object(),
|
|
2297
1862
|
}); },
|
|
2298
|
-
'io.flow.
|
|
2299
|
-
discriminator: 'digital_delivery',
|
|
1863
|
+
'io.flow.inventory.v0.models.inventory_update_version': function () { return ({
|
|
2300
1864
|
id: factories.string(),
|
|
2301
|
-
|
|
2302
|
-
|
|
2303
|
-
|
|
2304
|
-
total: factories['io.flow.catalog.v0.models.localized_total'](),
|
|
2305
|
-
}); },
|
|
2306
|
-
'io.flow.fulfillment.v0.models.estimated_window': function () { return ({
|
|
2307
|
-
from: factories.long(),
|
|
2308
|
-
to: factories.long(),
|
|
2309
|
-
unit: factories['io.flow.common.v0.enums.unit_of_time'](),
|
|
1865
|
+
timestamp: factories.date_time_iso_8601(),
|
|
1866
|
+
type: factories['io.flow.common.v0.enums.change_type'](),
|
|
1867
|
+
inventory_update: factories['io.flow.inventory.v0.models.inventory_update'](),
|
|
2310
1868
|
}); },
|
|
2311
|
-
'io.flow.
|
|
2312
|
-
|
|
2313
|
-
|
|
2314
|
-
|
|
1869
|
+
'io.flow.inventory.v0.models.no_inventory_reservation_error': function () { return ({
|
|
1870
|
+
code: 'no_inventory',
|
|
1871
|
+
messages: arrayOf(function () { return factories.string(); }),
|
|
1872
|
+
items: arrayOf(function () { return factories['io.flow.inventory.v0.models.no_inventory_reservation_error_item'](); }),
|
|
2315
1873
|
}); },
|
|
2316
|
-
'io.flow.
|
|
2317
|
-
|
|
2318
|
-
|
|
2319
|
-
|
|
1874
|
+
'io.flow.inventory.v0.models.no_inventory_reservation_error_item': function () { return ({
|
|
1875
|
+
number: factories.string(),
|
|
1876
|
+
requested_quantity: factories.long(),
|
|
1877
|
+
available_quantity: factories.long(),
|
|
2320
1878
|
}); },
|
|
2321
|
-
'io.flow.
|
|
2322
|
-
|
|
2323
|
-
currency: factories.string(),
|
|
1879
|
+
'io.flow.inventory.v0.models.pfs_inventory_check_response': function () { return ({
|
|
1880
|
+
items: objectOf(function () { return factories['io.flow.inventory.v0.models.pfs_inventory_check_response_item'](); }),
|
|
2324
1881
|
}); },
|
|
2325
|
-
'io.flow.
|
|
2326
|
-
|
|
2327
|
-
|
|
1882
|
+
'io.flow.inventory.v0.models.pfs_inventory_check_response_item': function () { return ({
|
|
1883
|
+
number: factories.string(),
|
|
1884
|
+
ats: factories.long(),
|
|
1885
|
+
in_stock: factories.boolean(),
|
|
2328
1886
|
}); },
|
|
2329
|
-
'io.flow.
|
|
2330
|
-
|
|
2331
|
-
max: factories['io.flow.common.v0.models.price'](),
|
|
1887
|
+
'io.flow.inventory.v0.models.pfs_inventory_status': function () { return ({
|
|
1888
|
+
status: factories.string(),
|
|
2332
1889
|
}); },
|
|
2333
|
-
'io.flow.
|
|
2334
|
-
|
|
2335
|
-
|
|
1890
|
+
'io.flow.inventory.v0.models.reservation': function () { return ({
|
|
1891
|
+
id: factories.string(),
|
|
1892
|
+
key: factories.string(),
|
|
1893
|
+
order: factories['io.flow.inventory.v0.models.reservation_order_reference'](),
|
|
1894
|
+
items: arrayOf(function () { return factories['io.flow.inventory.v0.models.reservation_item'](); }),
|
|
1895
|
+
reserved_until: factories.date_time_iso_8601(),
|
|
2336
1896
|
}); },
|
|
2337
|
-
'io.flow.
|
|
2338
|
-
|
|
2339
|
-
|
|
1897
|
+
'io.flow.inventory.v0.models.reservation_form': function () { return ({
|
|
1898
|
+
order_number: factories.string(),
|
|
1899
|
+
items: arrayOf(function () { return factories['io.flow.inventory.v0.models.reservation_item_form'](); }),
|
|
2340
1900
|
}); },
|
|
2341
|
-
'io.flow.
|
|
2342
|
-
|
|
2343
|
-
|
|
1901
|
+
'io.flow.inventory.v0.models.reservation_item': function () { return ({
|
|
1902
|
+
item: factories['io.flow.inventory.v0.models.reservation_item_reference'](),
|
|
1903
|
+
quantity: factories.long(),
|
|
2344
1904
|
}); },
|
|
2345
|
-
'io.flow.
|
|
2346
|
-
|
|
2347
|
-
|
|
2348
|
-
number: factories.string(),
|
|
1905
|
+
'io.flow.inventory.v0.models.reservation_item_form': function () { return ({
|
|
1906
|
+
item_number: factories.string(),
|
|
1907
|
+
quantity: factories.long(),
|
|
2349
1908
|
}); },
|
|
2350
|
-
'io.flow.
|
|
2351
|
-
partner_reference: factories['io.flow.common.v0.models.partner_reference'](),
|
|
1909
|
+
'io.flow.inventory.v0.models.reservation_item_reference': function () { return ({
|
|
2352
1910
|
number: factories.string(),
|
|
2353
|
-
fees: arrayOf(function () { return factories['io.flow.fulfillment.v0.unions.partner_center_fee'](); }),
|
|
2354
1911
|
}); },
|
|
2355
|
-
'io.flow.
|
|
2356
|
-
partner_id: factories.string(),
|
|
1912
|
+
'io.flow.inventory.v0.models.reservation_order_reference': function () { return ({
|
|
2357
1913
|
number: factories.string(),
|
|
2358
|
-
fees: arrayOf(function () { return factories['io.flow.fulfillment.v0.unions.partner_center_fee'](); }),
|
|
2359
|
-
}); },
|
|
2360
|
-
'io.flow.fulfillment.v0.models.percent_margin': function () { return ({
|
|
2361
|
-
discriminator: 'percent_margin',
|
|
2362
|
-
percentage: factories.double(),
|
|
2363
|
-
}); },
|
|
2364
|
-
'io.flow.fulfillment.v0.models.physical_delivery': function () { return ({
|
|
2365
|
-
discriminator: 'physical_delivery',
|
|
2366
|
-
id: factories.string(),
|
|
2367
|
-
key: factories.string(),
|
|
2368
|
-
center: factories['io.flow.fulfillment.v0.models.center_summary'](),
|
|
2369
|
-
fulfillment_routing: factories['io.flow.fulfillment.v0.enums.fulfillment_routing'](),
|
|
2370
|
-
ship_from_country: factories.string(),
|
|
2371
|
-
items: arrayOf(function () { return factories['io.flow.fulfillment.v0.models.delivery_item'](); }),
|
|
2372
|
-
options: arrayOf(function () { return factories['io.flow.fulfillment.v0.models.delivery_option'](); }),
|
|
2373
|
-
special_services: arrayOf(function () { return factories['io.flow.fulfillment.v0.enums.physical_delivery_special_serivce'](); }),
|
|
2374
|
-
prices: arrayOf(function () { return factories['io.flow.order.price.v0.models.order_price_detail'](); }),
|
|
2375
|
-
total: factories['io.flow.catalog.v0.models.localized_total'](),
|
|
2376
|
-
goods_supply: factories['io.flow.common.v0.enums.goods_supply'](),
|
|
2377
|
-
merchant_of_record_flow_entity: factories['io.flow.merchant.of.record.v0.enums.flow_entity'](),
|
|
2378
|
-
preferred_service: factories['io.flow.fulfillment.v0.models.physical_delivery_preferred_service'](),
|
|
2379
|
-
}); },
|
|
2380
|
-
'io.flow.fulfillment.v0.models.physical_delivery_preferred_service': function () { return ({
|
|
2381
|
-
id: factories.string(),
|
|
2382
|
-
selection_stratey: factories['io.flow.fulfillment.v0.enums.preferred_service_selection_strategy'](),
|
|
2383
1914
|
}); },
|
|
2384
|
-
'io.flow.
|
|
1915
|
+
'io.flow.inventory.v0.unions.inventory_strategy': function () {
|
|
1916
|
+
var f = faker.helpers.arrayElement([
|
|
1917
|
+
function () { return factories['io.flow.inventory.v0.models.inventory_backorder'](); },
|
|
1918
|
+
function () { return factories['io.flow.inventory.v0.models.inventory_stock'](); },
|
|
1919
|
+
function () { return factories['io.flow.inventory.v0.models.inventory_unlimited'](); },
|
|
1920
|
+
function () { return factories['io.flow.inventory.v0.models.inventory_follow_ecommerce_platform'](); },
|
|
1921
|
+
]);
|
|
1922
|
+
return f();
|
|
1923
|
+
},
|
|
1924
|
+
'io.flow.inventory.v0.unions.reservation_error': function () {
|
|
1925
|
+
var f = faker.helpers.arrayElement([
|
|
1926
|
+
function () { return factories['io.flow.inventory.v0.models.no_inventory_reservation_error'](); },
|
|
1927
|
+
function () { return factories['io.flow.inventory.v0.models.external_api_timeout_reservation_error'](); },
|
|
1928
|
+
function () { return factories['io.flow.inventory.v0.models.generic_reservation_error'](); },
|
|
1929
|
+
]);
|
|
1930
|
+
return f();
|
|
1931
|
+
},
|
|
1932
|
+
'io.flow.merchant.of.record.v0.enums.economic_title_location': function () { return faker.helpers.arrayElement(['high_seas', 'origination', 'destination']); },
|
|
1933
|
+
'io.flow.merchant.of.record.v0.enums.flow_entity': function () { return faker.helpers.arrayElement(['flow-usa', 'flow-irl', 'flow-can', 'ge-usa']); },
|
|
1934
|
+
'io.flow.order.price.v0.enums.order_price_detail_component_key': function () { return faker.helpers.arrayElement([
|
|
1935
|
+
'adjustment',
|
|
1936
|
+
'vat_deminimis',
|
|
1937
|
+
'duty_deminimis',
|
|
1938
|
+
'duties_item_price',
|
|
1939
|
+
'duties_freight',
|
|
1940
|
+
'duties_insurance',
|
|
1941
|
+
'vat_item_price',
|
|
1942
|
+
'vat_freight',
|
|
1943
|
+
'vat_insurance',
|
|
1944
|
+
'vat_duties_item_price',
|
|
1945
|
+
'vat_duties_freight',
|
|
1946
|
+
'vat_duties_insurance',
|
|
1947
|
+
'item_price',
|
|
1948
|
+
'item_discount',
|
|
1949
|
+
'rounding',
|
|
1950
|
+
'insurance',
|
|
1951
|
+
'shipping',
|
|
1952
|
+
'shipping_discount',
|
|
1953
|
+
'order_discount',
|
|
1954
|
+
'subtotal_percent_sales_margin',
|
|
1955
|
+
'subtotal_vat_percent_sales_margin',
|
|
1956
|
+
'subtotal_duty_percent_sales_margin',
|
|
1957
|
+
'vat_subsidy',
|
|
1958
|
+
'duty_subsidy',
|
|
1959
|
+
'remote_area_surcharge',
|
|
1960
|
+
'fuel_surcharge',
|
|
1961
|
+
'emergency_situation_surcharge',
|
|
1962
|
+
'peak_surcharge',
|
|
1963
|
+
'duties_taxes_paid_surcharge',
|
|
1964
|
+
'tip',
|
|
1965
|
+
]); },
|
|
1966
|
+
'io.flow.order.price.v0.enums.order_price_detail_key': function () { return faker.helpers.arrayElement([
|
|
1967
|
+
'adjustment',
|
|
1968
|
+
'subtotal',
|
|
1969
|
+
'vat',
|
|
1970
|
+
'duty',
|
|
1971
|
+
'shipping',
|
|
1972
|
+
'insurance',
|
|
1973
|
+
'discount',
|
|
1974
|
+
'surcharges',
|
|
1975
|
+
'tip',
|
|
1976
|
+
]); },
|
|
1977
|
+
'io.flow.order.price.v0.models.order_price_detail': function () { return ({
|
|
1978
|
+
key: factories['io.flow.order.price.v0.enums.order_price_detail_key'](),
|
|
2385
1979
|
currency: factories.string(),
|
|
2386
|
-
amount: factories.
|
|
1980
|
+
amount: factories.decimal(),
|
|
2387
1981
|
label: factories.string(),
|
|
2388
1982
|
base: factories['io.flow.common.v0.models.price'](),
|
|
2389
|
-
|
|
1983
|
+
components: arrayOf(function () { return factories['io.flow.order.price.v0.models.order_price_detail_component'](); }),
|
|
1984
|
+
name: factories.string(),
|
|
1985
|
+
rate: factories.decimal(),
|
|
1986
|
+
accuracy: factories['io.flow.price.v0.enums.price_accuracy'](),
|
|
1987
|
+
rate_label: factories.string(),
|
|
2390
1988
|
}); },
|
|
2391
|
-
'io.flow.
|
|
2392
|
-
|
|
2393
|
-
|
|
2394
|
-
|
|
2395
|
-
|
|
1989
|
+
'io.flow.order.price.v0.models.order_price_detail_component': function () { return ({
|
|
1990
|
+
key: factories['io.flow.order.price.v0.enums.order_price_detail_component_key'](),
|
|
1991
|
+
currency: factories.string(),
|
|
1992
|
+
amount: factories.decimal(),
|
|
1993
|
+
label: factories.string(),
|
|
1994
|
+
base: factories['io.flow.common.v0.models.price'](),
|
|
1995
|
+
name: factories.string(),
|
|
2396
1996
|
}); },
|
|
2397
|
-
'io.flow.
|
|
1997
|
+
'io.flow.organization.v0.enums.country_picker_source': function () { return faker.helpers.arrayElement(['experience', 'destination']); },
|
|
1998
|
+
'io.flow.organization.v0.enums.ecommerce_platform_type': function () { return faker.helpers.arrayElement([
|
|
1999
|
+
'commercetools',
|
|
2000
|
+
'custom',
|
|
2001
|
+
'hybris',
|
|
2002
|
+
'magento',
|
|
2003
|
+
'shopify',
|
|
2004
|
+
'shopify_markets',
|
|
2005
|
+
'sfcc',
|
|
2006
|
+
'solidus',
|
|
2007
|
+
'workarea',
|
|
2008
|
+
]); },
|
|
2009
|
+
'io.flow.organization.v0.enums.invitation_error_code': function () { return faker.helpers.arrayElement(['expired', 'invalid_email']); },
|
|
2010
|
+
'io.flow.organization.v0.models.country_picker': function () { return ({
|
|
2398
2011
|
id: factories.string(),
|
|
2399
|
-
|
|
2400
|
-
deliveries: arrayOf(function () { return factories['io.flow.fulfillment.v0.unions.delivery'](); }),
|
|
2401
|
-
selections: arrayOf(function () { return factories['io.flow.fulfillment.v0.models.delivery_option_reference'](); }),
|
|
2402
|
-
delivered_duty: factories['io.flow.common.v0.enums.delivered_duty'](),
|
|
2403
|
-
delivered_duties: arrayOf(function () { return factories['io.flow.common.v0.enums.delivered_duty'](); }),
|
|
2404
|
-
}); },
|
|
2405
|
-
'io.flow.fulfillment.v0.models.quote_error': function () { return ({
|
|
2406
|
-
code: factories['io.flow.fulfillment.v0.enums.quote_error_code'](),
|
|
2407
|
-
messages: arrayOf(function () { return factories.string(); }),
|
|
2408
|
-
item_numbers: arrayOf(function () { return factories.string(); }),
|
|
2409
|
-
}); },
|
|
2410
|
-
'io.flow.fulfillment.v0.models.quote_form': function () { return ({
|
|
2411
|
-
destination: factories['io.flow.fulfillment.v0.models.shipping_address'](),
|
|
2412
|
-
experience: factories.string(),
|
|
2413
|
-
items: arrayOf(function () { return factories['io.flow.fulfillment.v0.models.quote_line_item_form'](); }),
|
|
2414
|
-
delivered_duty: factories['io.flow.common.v0.enums.delivered_duty'](),
|
|
2415
|
-
delivered_duties: arrayOf(function () { return factories['io.flow.common.v0.enums.delivered_duty'](); }),
|
|
2416
|
-
direction: factories['io.flow.fulfillment.v0.enums.lane_direction'](),
|
|
2417
|
-
}); },
|
|
2418
|
-
'io.flow.fulfillment.v0.models.quote_line_item_form': function () { return ({
|
|
2419
|
-
number: factories.string(),
|
|
2420
|
-
quantity: factories.long(),
|
|
2421
|
-
shipment_estimate: factories['io.flow.common.v0.models.datetime_range'](),
|
|
2422
|
-
price: factories['io.flow.common.v0.models.money_with_base'](),
|
|
2423
|
-
attributes: objectOf(function () { return factories.string(); }),
|
|
2424
|
-
center: factories.string(),
|
|
2012
|
+
source: factories['io.flow.organization.v0.enums.country_picker_source'](),
|
|
2425
2013
|
}); },
|
|
2426
|
-
'io.flow.
|
|
2427
|
-
|
|
2428
|
-
destination: factories['io.flow.fulfillment.v0.models.shipping_address'](),
|
|
2014
|
+
'io.flow.organization.v0.models.country_picker_form': function () { return ({
|
|
2015
|
+
source: factories['io.flow.organization.v0.enums.country_picker_source'](),
|
|
2429
2016
|
}); },
|
|
2430
|
-
'io.flow.
|
|
2017
|
+
'io.flow.organization.v0.models.ecommerce_platform': function () { return ({
|
|
2431
2018
|
id: factories.string(),
|
|
2432
|
-
|
|
2433
|
-
|
|
2434
|
-
quote: factories['io.flow.fulfillment.v0.models.quote_summary'](),
|
|
2435
|
-
}); },
|
|
2436
|
-
'io.flow.fulfillment.v0.models.scheduled_pickup': function () { return ({
|
|
2437
|
-
day_of_week: factories['io.flow.common.v0.enums.day_of_week'](),
|
|
2438
|
-
hour_of_day: factories.string(),
|
|
2439
|
-
minute_of_hour: factories.string(),
|
|
2019
|
+
type: factories['io.flow.organization.v0.enums.ecommerce_platform_type'](),
|
|
2020
|
+
version: factories.string(),
|
|
2440
2021
|
}); },
|
|
2441
|
-
'io.flow.
|
|
2442
|
-
|
|
2022
|
+
'io.flow.organization.v0.models.ecommerce_platform_form': function () { return ({
|
|
2023
|
+
type: factories['io.flow.organization.v0.enums.ecommerce_platform_type'](),
|
|
2024
|
+
version: factories.string(),
|
|
2443
2025
|
}); },
|
|
2444
|
-
'io.flow.
|
|
2445
|
-
discriminator: 'service_summary',
|
|
2026
|
+
'io.flow.organization.v0.models.invitation': function () { return ({
|
|
2446
2027
|
id: factories.string(),
|
|
2447
|
-
|
|
2448
|
-
|
|
2449
|
-
|
|
2028
|
+
organization: factories['io.flow.common.v0.unions.expandable_organization'](),
|
|
2029
|
+
email: factories.string(),
|
|
2030
|
+
name: factories['io.flow.common.v0.models.name'](),
|
|
2031
|
+
role: factories['io.flow.common.v0.enums.role'](),
|
|
2032
|
+
roles: arrayOf(function () { return factories['io.flow.permission.v0.enums.flow_role'](); }),
|
|
2033
|
+
expiration: factories.date_time_iso_8601(),
|
|
2450
2034
|
}); },
|
|
2451
|
-
'io.flow.
|
|
2452
|
-
|
|
2453
|
-
|
|
2035
|
+
'io.flow.organization.v0.models.invitation_error': function () { return ({
|
|
2036
|
+
code: factories['io.flow.organization.v0.enums.invitation_error_code'](),
|
|
2037
|
+
messages: arrayOf(function () { return factories.string(); }),
|
|
2454
2038
|
}); },
|
|
2455
|
-
'io.flow.
|
|
2456
|
-
|
|
2457
|
-
|
|
2458
|
-
|
|
2459
|
-
|
|
2460
|
-
|
|
2039
|
+
'io.flow.organization.v0.models.invitation_form': function () { return ({
|
|
2040
|
+
organization: factories.string(),
|
|
2041
|
+
email: factories.string(),
|
|
2042
|
+
name: factories['io.flow.common.v0.models.name'](),
|
|
2043
|
+
role: factories['io.flow.common.v0.enums.role'](),
|
|
2044
|
+
roles: arrayOf(function () { return factories['io.flow.permission.v0.enums.flow_role'](); }),
|
|
2461
2045
|
}); },
|
|
2462
|
-
'io.flow.
|
|
2046
|
+
'io.flow.organization.v0.models.invitation_version': function () { return ({
|
|
2463
2047
|
id: factories.string(),
|
|
2464
|
-
|
|
2465
|
-
|
|
2466
|
-
|
|
2467
|
-
shipping_lanes: arrayOf(function () { return factories['io.flow.fulfillment.v0.models.shipping_lane'](); }),
|
|
2468
|
-
}); },
|
|
2469
|
-
'io.flow.fulfillment.v0.models.shipping_configuration_copy': function () { return ({
|
|
2470
|
-
original: factories['io.flow.fulfillment.v0.models.shipping_configuration_reference'](),
|
|
2471
|
-
'new': factories['io.flow.fulfillment.v0.models.shipping_configuration_reference'](),
|
|
2472
|
-
}); },
|
|
2473
|
-
'io.flow.fulfillment.v0.models.shipping_configuration_copy_form': function () { return ({
|
|
2474
|
-
name: factories.string(),
|
|
2475
|
-
}); },
|
|
2476
|
-
'io.flow.fulfillment.v0.models.shipping_configuration_form': function () { return ({
|
|
2477
|
-
name: factories.string(),
|
|
2478
|
-
}); },
|
|
2479
|
-
'io.flow.fulfillment.v0.models.shipping_configuration_item_availability': function () { return ({
|
|
2480
|
-
id: factories.string(),
|
|
2481
|
-
item: factories['io.flow.common.v0.models.item_reference'](),
|
|
2482
|
-
shipping_configuration: factories['io.flow.fulfillment.v0.models.shipping_configuration_summary'](),
|
|
2483
|
-
availabilities: arrayOf(function () { return factories['io.flow.fulfillment.v0.models.country_availability'](); }),
|
|
2484
|
-
}); },
|
|
2485
|
-
'io.flow.fulfillment.v0.models.shipping_configuration_item_shipping_pricing': function () { return ({
|
|
2486
|
-
id: factories.string(),
|
|
2487
|
-
item: factories['io.flow.common.v0.models.item_reference'](),
|
|
2488
|
-
shipping_configuration: factories['io.flow.fulfillment.v0.models.shipping_configuration_summary'](),
|
|
2489
|
-
country_shipping_pricings: arrayOf(function () { return factories['io.flow.fulfillment.v0.models.country_shipping_pricing'](); }),
|
|
2490
|
-
}); },
|
|
2491
|
-
'io.flow.fulfillment.v0.models.shipping_configuration_reference': function () { return ({
|
|
2492
|
-
key: factories.string(),
|
|
2493
|
-
}); },
|
|
2494
|
-
'io.flow.fulfillment.v0.models.shipping_configuration_summary': function () { return ({
|
|
2495
|
-
id: factories.string(),
|
|
2496
|
-
name: factories.string(),
|
|
2497
|
-
key: factories.string(),
|
|
2498
|
-
type: factories['io.flow.fulfillment.v0.enums.shipping_configuration_type'](),
|
|
2499
|
-
}); },
|
|
2500
|
-
'io.flow.fulfillment.v0.models.shipping_configuration_version': function () { return ({
|
|
2501
|
-
id: factories.string(),
|
|
2502
|
-
timestamp: factories.date_time_iso_8601(),
|
|
2503
|
-
type: factories['io.flow.common.v0.enums.change_type'](),
|
|
2504
|
-
shipping_configuration: factories['io.flow.fulfillment.v0.models.shipping_configuration'](),
|
|
2505
|
-
}); },
|
|
2506
|
-
'io.flow.fulfillment.v0.models.shipping_lane': function () { return ({
|
|
2507
|
-
id: factories.string(),
|
|
2508
|
-
shipping_configuration: factories['io.flow.fulfillment.v0.models.shipping_configuration_reference'](),
|
|
2509
|
-
region: factories.string(),
|
|
2510
|
-
centers: arrayOf(function () { return factories['io.flow.fulfillment.v0.unions.expandable_center'](); }),
|
|
2511
|
-
tiers: arrayOf(function () { return factories['io.flow.fulfillment.v0.models.tier'](); }),
|
|
2512
|
-
query: factories['io.flow.query.builder.v0.models.query'](),
|
|
2513
|
-
strategy: factories['io.flow.fulfillment.v0.enums.lane_strategy'](),
|
|
2514
|
-
direction: factories['io.flow.fulfillment.v0.enums.lane_direction'](),
|
|
2515
|
-
preference: factories['io.flow.fulfillment.v0.enums.lane_preselect_preference'](),
|
|
2516
|
-
}); },
|
|
2517
|
-
'io.flow.fulfillment.v0.models.shipping_lane_default_tier': function () { return ({
|
|
2518
|
-
id: factories.string(),
|
|
2519
|
-
tier: factories['io.flow.fulfillment.v0.models.tier_reference'](),
|
|
2520
|
-
}); },
|
|
2521
|
-
'io.flow.fulfillment.v0.models.shipping_lane_default_tier_form': function () { return ({
|
|
2522
|
-
tier_id: factories.string(),
|
|
2523
|
-
}); },
|
|
2524
|
-
'io.flow.fulfillment.v0.models.shipping_lane_form': function () { return ({
|
|
2525
|
-
from: factories.string(),
|
|
2526
|
-
to: factories.string(),
|
|
2527
|
-
strategy: factories['io.flow.fulfillment.v0.enums.lane_strategy'](),
|
|
2528
|
-
direction: factories['io.flow.fulfillment.v0.enums.lane_direction'](),
|
|
2529
|
-
preference: factories['io.flow.fulfillment.v0.enums.lane_preselect_preference'](),
|
|
2530
|
-
}); },
|
|
2531
|
-
'io.flow.fulfillment.v0.models.shipping_lane_summary': function () { return ({
|
|
2532
|
-
shipping_lane_id: factories.string(),
|
|
2533
|
-
region: factories.string(),
|
|
2534
|
-
centers: arrayOf(function () { return factories['io.flow.fulfillment.v0.unions.expandable_center'](); }),
|
|
2535
|
-
}); },
|
|
2536
|
-
'io.flow.fulfillment.v0.models.shipping_lane_version': function () { return ({
|
|
2537
|
-
id: factories.string(),
|
|
2538
|
-
timestamp: factories.date_time_iso_8601(),
|
|
2539
|
-
type: factories['io.flow.common.v0.enums.change_type'](),
|
|
2540
|
-
shipping_lane: factories['io.flow.fulfillment.v0.models.shipping_lane'](),
|
|
2541
|
-
}); },
|
|
2542
|
-
'io.flow.fulfillment.v0.models.surcharge_responsible_party_display': function () { return ({
|
|
2543
|
-
name: factories.string(),
|
|
2544
|
-
responsible_party: factories['io.flow.fulfillment.v0.enums.surcharge_responsible_party'](),
|
|
2545
|
-
}); },
|
|
2546
|
-
'io.flow.fulfillment.v0.models.surcharge_setting': function () { return ({
|
|
2547
|
-
key: factories['io.flow.fulfillment.v0.enums.delivery_option_cost_detail_component_key'](),
|
|
2548
|
-
responsible_party: factories['io.flow.fulfillment.v0.enums.surcharge_responsible_party'](),
|
|
2549
|
-
}); },
|
|
2550
|
-
'io.flow.fulfillment.v0.models.surcharge_setting_display': function () { return ({
|
|
2551
|
-
name: factories.string(),
|
|
2552
|
-
description: factories.string(),
|
|
2553
|
-
key: factories['io.flow.fulfillment.v0.enums.delivery_option_cost_detail_component_key'](),
|
|
2554
|
-
available: arrayOf(function () { return factories['io.flow.fulfillment.v0.models.surcharge_responsible_party_display'](); }),
|
|
2555
|
-
}); },
|
|
2556
|
-
'io.flow.fulfillment.v0.models.tier': function () { return ({
|
|
2557
|
-
id: factories.string(),
|
|
2558
|
-
direction: factories['io.flow.fulfillment.v0.enums.lane_direction'](),
|
|
2559
|
-
integration: factories['io.flow.fulfillment.v0.enums.shipment_integration_type'](),
|
|
2560
|
-
name: factories.string(),
|
|
2561
|
-
message: factories.string(),
|
|
2562
|
-
rules: arrayOf(function () { return factories['io.flow.fulfillment.v0.models.tier_rule'](); }),
|
|
2563
|
-
services: arrayOf(function () { return factories['io.flow.reference.v0.models.carrier_service'](); }),
|
|
2564
|
-
strategy: factories['io.flow.fulfillment.v0.enums.tier_strategy'](),
|
|
2565
|
-
visibility: factories['io.flow.common.v0.enums.visibility'](),
|
|
2566
|
-
currency: factories.string(),
|
|
2567
|
-
description: factories.string(),
|
|
2568
|
-
display: factories['io.flow.fulfillment.v0.models.tier_display'](),
|
|
2569
|
-
shipping_lane: factories.string(),
|
|
2570
|
-
surcharge_settings: arrayOf(function () { return factories['io.flow.fulfillment.v0.models.surcharge_setting'](); }),
|
|
2571
|
-
lane: factories['io.flow.fulfillment.v0.models.shipping_lane_summary'](),
|
|
2572
|
-
settings: factories['io.flow.fulfillment.v0.models.tier_settings'](),
|
|
2573
|
-
}); },
|
|
2574
|
-
'io.flow.fulfillment.v0.models.tier_display': function () { return ({
|
|
2575
|
-
estimate: factories['io.flow.fulfillment.v0.models.tier_estimate'](),
|
|
2576
|
-
}); },
|
|
2577
|
-
'io.flow.fulfillment.v0.models.tier_display_form': function () { return ({
|
|
2578
|
-
estimate: factories['io.flow.fulfillment.v0.models.tier_estimate'](),
|
|
2579
|
-
}); },
|
|
2580
|
-
'io.flow.fulfillment.v0.models.tier_estimate': function () { return ({
|
|
2581
|
-
type: factories['io.flow.fulfillment.v0.enums.tier_estimate_type'](),
|
|
2582
|
-
label: factories.string(),
|
|
2583
|
-
}); },
|
|
2584
|
-
'io.flow.fulfillment.v0.models.tier_form': function () { return ({
|
|
2585
|
-
currency: factories.string(),
|
|
2586
|
-
integration: factories['io.flow.fulfillment.v0.enums.shipment_integration_type'](),
|
|
2587
|
-
name: factories.string(),
|
|
2588
|
-
message: factories.string(),
|
|
2589
|
-
rules: arrayOf(function () { return factories['io.flow.fulfillment.v0.models.tier_rule_form'](); }),
|
|
2590
|
-
services: arrayOf(function () { return factories.string(); }),
|
|
2591
|
-
strategy: factories['io.flow.fulfillment.v0.enums.tier_strategy'](),
|
|
2592
|
-
visibility: factories['io.flow.common.v0.enums.visibility'](),
|
|
2593
|
-
description: factories.string(),
|
|
2594
|
-
direction: factories['io.flow.fulfillment.v0.enums.lane_direction'](),
|
|
2595
|
-
display: factories['io.flow.fulfillment.v0.models.tier_display_form'](),
|
|
2596
|
-
shipping_lane: factories.string(),
|
|
2597
|
-
surcharge_settings: arrayOf(function () { return factories['io.flow.fulfillment.v0.models.surcharge_setting'](); }),
|
|
2598
|
-
settings: factories['io.flow.fulfillment.v0.models.tier_settings'](),
|
|
2599
|
-
}); },
|
|
2600
|
-
'io.flow.fulfillment.v0.models.tier_reference': function () { return ({
|
|
2601
|
-
id: factories.string(),
|
|
2602
|
-
}); },
|
|
2603
|
-
'io.flow.fulfillment.v0.models.tier_rule': function () { return ({
|
|
2604
|
-
id: factories.string(),
|
|
2605
|
-
position: factories.long(),
|
|
2606
|
-
query: factories.string(),
|
|
2607
|
-
outcome: factories['io.flow.fulfillment.v0.unions.tier_rule_outcome'](),
|
|
2608
|
-
}); },
|
|
2609
|
-
'io.flow.fulfillment.v0.models.tier_rule_form': function () { return ({
|
|
2610
|
-
position: factories.long(),
|
|
2611
|
-
query: factories.string(),
|
|
2612
|
-
outcome: factories['io.flow.fulfillment.v0.unions.tier_rule_outcome_form'](),
|
|
2613
|
-
}); },
|
|
2614
|
-
'io.flow.fulfillment.v0.models.tier_rule_version': function () { return ({
|
|
2615
|
-
id: factories.string(),
|
|
2616
|
-
timestamp: factories.date_time_iso_8601(),
|
|
2617
|
-
type: factories['io.flow.common.v0.enums.change_type'](),
|
|
2618
|
-
tier_rule: factories['io.flow.fulfillment.v0.models.tier_rule'](),
|
|
2619
|
-
}); },
|
|
2620
|
-
'io.flow.fulfillment.v0.models.tier_settings': function () { return ({
|
|
2621
|
-
availability: factories['io.flow.fulfillment.v0.enums.tier_availability'](),
|
|
2622
|
-
}); },
|
|
2623
|
-
'io.flow.fulfillment.v0.models.tier_summary': function () { return ({
|
|
2624
|
-
id: factories.string(),
|
|
2625
|
-
experience: factories['io.flow.fulfillment.v0.models.fulfillment_experience_reference'](),
|
|
2626
|
-
integration: factories['io.flow.fulfillment.v0.enums.shipment_integration_type'](),
|
|
2627
|
-
name: factories.string(),
|
|
2628
|
-
services: arrayOf(function () { return factories.string(); }),
|
|
2629
|
-
strategy: factories['io.flow.fulfillment.v0.enums.tier_strategy'](),
|
|
2630
|
-
visibility: factories['io.flow.common.v0.enums.visibility'](),
|
|
2631
|
-
currency: factories.string(),
|
|
2632
|
-
display: factories['io.flow.fulfillment.v0.models.tier_display'](),
|
|
2633
|
-
message: factories.string(),
|
|
2634
|
-
settings: factories['io.flow.fulfillment.v0.models.tier_settings'](),
|
|
2635
|
-
}); },
|
|
2636
|
-
'io.flow.fulfillment.v0.models.tier_version': function () { return ({
|
|
2637
|
-
id: factories.string(),
|
|
2638
|
-
timestamp: factories.date_time_iso_8601(),
|
|
2639
|
-
type: factories['io.flow.common.v0.enums.change_type'](),
|
|
2640
|
-
tier: factories['io.flow.fulfillment.v0.models.tier_summary'](),
|
|
2641
|
-
}); },
|
|
2642
|
-
'io.flow.fulfillment.v0.models.transit_estimate': function () { return ({
|
|
2643
|
-
origin: factories['io.flow.fulfillment.v0.enums.delivery_window_location'](),
|
|
2644
|
-
destination: factories['io.flow.fulfillment.v0.enums.delivery_window_location'](),
|
|
2645
|
-
min_date: factories.date_time_iso_8601(),
|
|
2646
|
-
max_date: factories.date_time_iso_8601(),
|
|
2647
|
-
source: factories['io.flow.fulfillment.v0.enums.delivery_window_component_source'](),
|
|
2648
|
-
}); },
|
|
2649
|
-
'io.flow.fulfillment.v0.unions.delivery': function () {
|
|
2650
|
-
var f = faker.helpers.arrayElement([
|
|
2651
|
-
function () { return factories['io.flow.fulfillment.v0.models.digital_delivery'](); },
|
|
2652
|
-
function () { return factories['io.flow.fulfillment.v0.models.physical_delivery'](); },
|
|
2653
|
-
]);
|
|
2654
|
-
return f();
|
|
2655
|
-
},
|
|
2656
|
-
'io.flow.fulfillment.v0.unions.expandable_center': function () {
|
|
2657
|
-
var f = faker.helpers.arrayElement([
|
|
2658
|
-
function () { return factories['io.flow.fulfillment.v0.models.center'](); },
|
|
2659
|
-
function () { return factories['io.flow.fulfillment.v0.models.center_reference'](); },
|
|
2660
|
-
]);
|
|
2661
|
-
return f();
|
|
2662
|
-
},
|
|
2663
|
-
'io.flow.fulfillment.v0.unions.partner_center_fee': function () {
|
|
2664
|
-
var f = faker.helpers.arrayElement([
|
|
2665
|
-
function () { return factories['io.flow.fulfillment.v0.models.commercial_invoice_fee'](); },
|
|
2666
|
-
function () { return factories['io.flow.fulfillment.v0.models.inbound_carton_fee'](); },
|
|
2667
|
-
function () { return factories['io.flow.fulfillment.v0.models.outbound_carton_fee'](); },
|
|
2668
|
-
]);
|
|
2669
|
-
return f();
|
|
2670
|
-
},
|
|
2671
|
-
'io.flow.fulfillment.v0.unions.service_description': function () {
|
|
2672
|
-
var f = faker.helpers.arrayElement([
|
|
2673
|
-
function () { return factories['io.flow.fulfillment.v0.models.service_summary'](); },
|
|
2674
|
-
function () { return factories['io.flow.fulfillment.v0.models.service_unknown'](); },
|
|
2675
|
-
]);
|
|
2676
|
-
return f();
|
|
2677
|
-
},
|
|
2678
|
-
'io.flow.fulfillment.v0.unions.tier_rule_outcome': function () {
|
|
2679
|
-
var f = faker.helpers.arrayElement([
|
|
2680
|
-
function () { return factories['io.flow.fulfillment.v0.models.amount_margin'](); },
|
|
2681
|
-
function () { return factories['io.flow.fulfillment.v0.models.at_cost'](); },
|
|
2682
|
-
function () { return factories['io.flow.fulfillment.v0.models.flat_rate'](); },
|
|
2683
|
-
function () { return factories['io.flow.fulfillment.v0.models.percent_margin'](); },
|
|
2684
|
-
]);
|
|
2685
|
-
return f();
|
|
2686
|
-
},
|
|
2687
|
-
'io.flow.fulfillment.v0.unions.tier_rule_outcome_form': function () {
|
|
2688
|
-
var f = faker.helpers.arrayElement([
|
|
2689
|
-
function () { return factories['io.flow.fulfillment.v0.models.amount_margin_form'](); },
|
|
2690
|
-
function () { return factories['io.flow.fulfillment.v0.models.flat_rate_form'](); },
|
|
2691
|
-
function () { return factories['io.flow.fulfillment.v0.models.at_cost'](); },
|
|
2692
|
-
function () { return factories['io.flow.fulfillment.v0.models.percent_margin'](); },
|
|
2693
|
-
]);
|
|
2694
|
-
return f();
|
|
2695
|
-
},
|
|
2696
|
-
'io.flow.google.pay.v0.enums.auth_method': function () { return faker.helpers.arrayElement(['PAN_ONLY', 'CRYPTOGRAM_3DS']); },
|
|
2697
|
-
'io.flow.google.pay.v0.enums.billing_address_format': function () { return faker.helpers.arrayElement(['MIN', 'FULL']); },
|
|
2698
|
-
'io.flow.google.pay.v0.enums.card_gateway': function () { return faker.helpers.arrayElement(['adyen', 'stripe']); },
|
|
2699
|
-
'io.flow.google.pay.v0.enums.card_network': function () { return faker.helpers.arrayElement(['AMEX', 'DISCOVER', 'JCB', 'MASTERCARD', 'VISA']); },
|
|
2700
|
-
'io.flow.google.pay.v0.enums.payment_method_type': function () { return faker.helpers.arrayElement(['CARD']); },
|
|
2701
|
-
'io.flow.google.pay.v0.enums.tokenization_type': function () { return faker.helpers.arrayElement(['PAYMENT_GATEWAY', 'DIRECT']); },
|
|
2702
|
-
'io.flow.google.pay.v0.enums.total_price_status': function () { return faker.helpers.arrayElement(['NOT_CURRENTLY_KNOWN', 'ESTIMATED', 'FINAL']); },
|
|
2703
|
-
'io.flow.google.pay.v0.models.address': function () { return ({
|
|
2704
|
-
name: factories.string(),
|
|
2705
|
-
postalCode: factories.string(),
|
|
2706
|
-
countryCode: factories.string(),
|
|
2707
|
-
phoneNumber: factories.string(),
|
|
2708
|
-
companyName: factories.string(),
|
|
2709
|
-
address1: factories.string(),
|
|
2710
|
-
address2: factories.string(),
|
|
2711
|
-
address3: factories.string(),
|
|
2712
|
-
locality: factories.string(),
|
|
2713
|
-
administrativeArea: factories.string(),
|
|
2714
|
-
sortingCode: factories.string(),
|
|
2715
|
-
}); },
|
|
2716
|
-
'io.flow.google.pay.v0.models.billing_address_parameters': function () { return ({
|
|
2717
|
-
format: factories['io.flow.google.pay.v0.enums.billing_address_format'](),
|
|
2718
|
-
phoneNumberRequired: factories.boolean(),
|
|
2719
|
-
}); },
|
|
2720
|
-
'io.flow.google.pay.v0.models.card_adyen_tokenization_parameters': function () { return ({
|
|
2721
|
-
gateway: factories.string(),
|
|
2722
|
-
gatewayMerchantId: factories.string(),
|
|
2723
|
-
}); },
|
|
2724
|
-
'io.flow.google.pay.v0.models.card_direct_tokenization_parameters': function () { return ({
|
|
2725
|
-
protocolVersion: factories.string(),
|
|
2726
|
-
publicKey: factories.string(),
|
|
2727
|
-
}); },
|
|
2728
|
-
'io.flow.google.pay.v0.models.card_payment_method_data_info': function () { return ({
|
|
2729
|
-
cardDetails: factories.string(),
|
|
2730
|
-
cardNetwork: factories.string(),
|
|
2731
|
-
billingAddress: factories['io.flow.google.pay.v0.models.address'](),
|
|
2732
|
-
}); },
|
|
2733
|
-
'io.flow.google.pay.v0.models.card_payment_method_parameters': function () { return ({
|
|
2734
|
-
allowedAuthMethods: arrayOf(function () { return factories['io.flow.google.pay.v0.enums.auth_method'](); }),
|
|
2735
|
-
allowedCardNetworks: arrayOf(function () { return factories['io.flow.google.pay.v0.enums.card_network'](); }),
|
|
2736
|
-
billingAddressRequired: factories.boolean(),
|
|
2737
|
-
billingAddressParameters: factories['io.flow.google.pay.v0.models.billing_address_parameters'](),
|
|
2738
|
-
}); },
|
|
2739
|
-
'io.flow.google.pay.v0.models.direct_payment_method_token': function () { return ({
|
|
2740
|
-
discriminator: 'direct_payment_method_token',
|
|
2741
|
-
protocolVersion: factories.string(),
|
|
2742
|
-
signature: factories.string(),
|
|
2743
|
-
signedMessage: factories.string(),
|
|
2744
|
-
}); },
|
|
2745
|
-
'io.flow.google.pay.v0.models.encrypted_message': function () { return ({
|
|
2746
|
-
messageExpiration: factories.string(),
|
|
2747
|
-
messageId: factories.string(),
|
|
2748
|
-
paymentMethod: factories['io.flow.google.pay.v0.models.payment_method'](),
|
|
2749
|
-
paymentMethodDetails: factories['io.flow.google.pay.v0.models.payment_method_details'](),
|
|
2750
|
-
}); },
|
|
2751
|
-
'io.flow.google.pay.v0.models.merchant_info': function () { return ({
|
|
2752
|
-
merchantId: factories.string(),
|
|
2753
|
-
merchantName: factories.string(),
|
|
2754
|
-
authJwt: factories.string(),
|
|
2755
|
-
}); },
|
|
2756
|
-
'io.flow.google.pay.v0.models.payment_data': function () { return ({
|
|
2757
|
-
apiVersion: factories.integer(),
|
|
2758
|
-
apiVersionMinor: factories.integer(),
|
|
2759
|
-
paymentMethodData: factories['io.flow.google.pay.v0.models.payment_method_data'](),
|
|
2760
|
-
email: factories.string(),
|
|
2761
|
-
shippingAddress: factories['io.flow.google.pay.v0.models.address'](),
|
|
2762
|
-
}); },
|
|
2763
|
-
'io.flow.google.pay.v0.models.payment_data_request': function () { return ({
|
|
2764
|
-
apiVersion: factories.integer(),
|
|
2765
|
-
apiVersionMinor: factories.integer(),
|
|
2766
|
-
merchantInfo: factories['io.flow.google.pay.v0.models.merchant_info'](),
|
|
2767
|
-
allowedPaymentMethods: arrayOf(function () { return factories['io.flow.google.pay.v0.models.payment_method'](); }),
|
|
2768
|
-
transactionInfo: factories['io.flow.google.pay.v0.models.transaction_info'](),
|
|
2769
|
-
emailRequired: factories.boolean(),
|
|
2770
|
-
shippingAddressRequired: factories.boolean(),
|
|
2771
|
-
shippingAddressParameters: factories['io.flow.google.pay.v0.models.shipping_address_parameters'](),
|
|
2772
|
-
}); },
|
|
2773
|
-
'io.flow.google.pay.v0.models.payment_method': function () { return ({
|
|
2774
|
-
type: factories['io.flow.google.pay.v0.enums.payment_method_type'](),
|
|
2775
|
-
parameters: factories['io.flow.google.pay.v0.models.card_payment_method_parameters'](),
|
|
2776
|
-
tokenizationSpecification: factories['io.flow.google.pay.v0.models.payment_method_tokenization_specification'](),
|
|
2777
|
-
}); },
|
|
2778
|
-
'io.flow.google.pay.v0.models.payment_method_data': function () { return ({
|
|
2779
|
-
type: factories['io.flow.google.pay.v0.enums.payment_method_type'](),
|
|
2780
|
-
description: factories.string(),
|
|
2781
|
-
info: factories['io.flow.google.pay.v0.models.card_payment_method_data_info'](),
|
|
2782
|
-
tokenizationData: factories['io.flow.google.pay.v0.models.payment_method_tokenization_data'](),
|
|
2783
|
-
}); },
|
|
2784
|
-
'io.flow.google.pay.v0.models.payment_method_details': function () { return ({
|
|
2785
|
-
pan: factories.string(),
|
|
2786
|
-
expirationMonth: factories.integer(),
|
|
2787
|
-
expirationYear: factories.integer(),
|
|
2788
|
-
authMethod: factories['io.flow.google.pay.v0.enums.auth_method'](),
|
|
2789
|
-
cryptogram: factories.string(),
|
|
2790
|
-
eciIndicator: factories.string(),
|
|
2791
|
-
}); },
|
|
2792
|
-
'io.flow.google.pay.v0.models.payment_method_tokenization_data': function () { return ({
|
|
2793
|
-
type: factories.string(),
|
|
2794
|
-
token: factories.string(),
|
|
2795
|
-
}); },
|
|
2796
|
-
'io.flow.google.pay.v0.models.payment_method_tokenization_specification': function () { return ({
|
|
2797
|
-
type: factories['io.flow.google.pay.v0.enums.tokenization_type'](),
|
|
2798
|
-
parameters: factories.object(),
|
|
2799
|
-
}); },
|
|
2800
|
-
'io.flow.google.pay.v0.models.shipping_address_parameters': function () { return ({
|
|
2801
|
-
allowedCountryCodes: arrayOf(function () { return factories.string(); }),
|
|
2802
|
-
}); },
|
|
2803
|
-
'io.flow.google.pay.v0.models.signed_message': function () { return ({
|
|
2804
|
-
encryptedMessage: factories.string(),
|
|
2805
|
-
ephemeralPublicKey: factories.string(),
|
|
2806
|
-
tag: factories.string(),
|
|
2807
|
-
}); },
|
|
2808
|
-
'io.flow.google.pay.v0.models.stripe_payment_method_token': function () { return ({
|
|
2809
|
-
discriminator: 'stripe_payment_method_token',
|
|
2810
|
-
token: factories['io.flow.stripe.v0.models.token'](),
|
|
2811
|
-
}); },
|
|
2812
|
-
'io.flow.google.pay.v0.models.transaction_info': function () { return ({
|
|
2813
|
-
totalPriceStatus: factories['io.flow.google.pay.v0.enums.total_price_status'](),
|
|
2814
|
-
totalPrice: factories.string(),
|
|
2815
|
-
currencyCode: factories.string(),
|
|
2816
|
-
}); },
|
|
2817
|
-
'io.flow.google.pay.v0.unions.payment_method_token': function () {
|
|
2818
|
-
var f = faker.helpers.arrayElement([
|
|
2819
|
-
function () { return factories['io.flow.google.pay.v0.models.direct_payment_method_token'](); },
|
|
2820
|
-
function () { return factories['io.flow.google.pay.v0.models.stripe_payment_method_token'](); },
|
|
2821
|
-
]);
|
|
2822
|
-
return f();
|
|
2823
|
-
},
|
|
2824
|
-
'io.flow.harmonization.v0.enums.tax_applicability': function () { return faker.helpers.arrayElement(['none', 'all']); },
|
|
2825
|
-
'io.flow.harmonization.v0.enums.tax_verification_result': function () { return faker.helpers.arrayElement(['valid', 'invalid', 'unable_to_validate']); },
|
|
2826
|
-
'io.flow.harmonization.v0.models.detailed_tax_registration': function () { return ({
|
|
2827
|
-
id: factories.string(),
|
|
2828
|
-
key: factories.string(),
|
|
2829
|
-
consumer_company_name: factories.string(),
|
|
2830
|
-
number: factories.string(),
|
|
2831
|
-
country: factories.string(),
|
|
2832
|
-
success: factories.boolean(),
|
|
2833
|
-
timestamp: factories.date_time_iso_8601(),
|
|
2834
|
-
vies_result: factories['io.flow.harmonization.v0.enums.tax_verification_result'](),
|
|
2835
|
-
vies_result_reason: factories.string(),
|
|
2836
|
-
vies_company_name: factories.string(),
|
|
2837
|
-
vies_company_address: factories.string(),
|
|
2838
|
-
company_name_match_result: factories['io.flow.harmonization.v0.enums.tax_verification_result'](),
|
|
2839
|
-
company_name_match_result_reason: factories.string(),
|
|
2840
|
-
}); },
|
|
2841
|
-
'io.flow.harmonization.v0.models.harmonized_category_reference': function () { return ({
|
|
2842
|
-
id: factories.string(),
|
|
2843
|
-
}); },
|
|
2844
|
-
'io.flow.harmonization.v0.models.harmonized_item': function () { return ({
|
|
2845
|
-
id: factories.string(),
|
|
2846
|
-
number: factories.string(),
|
|
2847
|
-
name: factories.string(),
|
|
2848
|
-
categories: arrayOf(function () { return factories.string(); }),
|
|
2849
|
-
attributes: objectOf(function () { return factories.string(); }),
|
|
2850
|
-
description: factories.string(),
|
|
2851
|
-
}); },
|
|
2852
|
-
'io.flow.harmonization.v0.models.harmonized_item_form': function () { return ({
|
|
2853
|
-
name: factories.string(),
|
|
2854
|
-
number: factories.string(),
|
|
2855
|
-
currency: factories.string(),
|
|
2856
|
-
price: factories.double(),
|
|
2857
|
-
categories: arrayOf(function () { return factories.string(); }),
|
|
2858
|
-
description: factories.string(),
|
|
2859
|
-
attributes: objectOf(function () { return factories.string(); }),
|
|
2860
|
-
}); },
|
|
2861
|
-
'io.flow.harmonization.v0.models.harmonized_item_put_form': function () { return ({
|
|
2862
|
-
name: factories.string(),
|
|
2863
|
-
currency: factories.string(),
|
|
2864
|
-
price: factories.double(),
|
|
2865
|
-
categories: arrayOf(function () { return factories.string(); }),
|
|
2866
|
-
description: factories.string(),
|
|
2867
|
-
attributes: objectOf(function () { return factories.string(); }),
|
|
2868
|
-
}); },
|
|
2869
|
-
'io.flow.harmonization.v0.models.harmonized_item_reference': function () { return ({
|
|
2870
|
-
id: factories.string(),
|
|
2871
|
-
number: factories.string(),
|
|
2872
|
-
description: factories.string(),
|
|
2873
|
-
}); },
|
|
2874
|
-
'io.flow.harmonization.v0.models.harmonized_landed_cost': function () { return ({
|
|
2875
|
-
address: factories['io.flow.common.v0.models.address'](),
|
|
2876
|
-
items: arrayOf(function () { return factories['io.flow.harmonization.v0.models.harmonized_landed_cost_item'](); }),
|
|
2877
|
-
tax_registration: factories['io.flow.harmonization.v0.models.tax_registration'](),
|
|
2878
|
-
}); },
|
|
2879
|
-
'io.flow.harmonization.v0.models.harmonized_landed_cost_form': function () { return ({
|
|
2880
|
-
address: factories['io.flow.common.v0.models.address'](),
|
|
2881
|
-
item_numbers: arrayOf(function () { return factories.string(); }),
|
|
2882
|
-
source_address: factories['io.flow.common.v0.models.address'](),
|
|
2883
|
-
order_number: factories.string(),
|
|
2884
|
-
line_items: arrayOf(function () { return factories['io.flow.common.v0.models.line_item'](); }),
|
|
2885
|
-
tax_registration_id: factories.string(),
|
|
2886
|
-
billing_address: factories['io.flow.common.v0.models.billing_address'](),
|
|
2887
|
-
}); },
|
|
2888
|
-
'io.flow.harmonization.v0.models.harmonized_landed_cost_item': function () { return ({
|
|
2889
|
-
item: factories['io.flow.harmonization.v0.models.harmonized_item_reference'](),
|
|
2890
|
-
duty: factories['io.flow.price.v0.models.duty'](),
|
|
2891
|
-
tax: factories['io.flow.price.v0.models.tax'](),
|
|
2892
|
-
tax_applicability: factories['io.flow.harmonization.v0.enums.tax_applicability'](),
|
|
2893
|
-
origin: factories.string(),
|
|
2894
|
-
hs_code: factories.string(),
|
|
2895
|
-
tariff_code: factories.string(),
|
|
2896
|
-
customs_description: factories.string(),
|
|
2897
|
-
source_address: factories['io.flow.common.v0.models.address'](),
|
|
2898
|
-
}); },
|
|
2899
|
-
'io.flow.harmonization.v0.models.hs10': function () { return ({
|
|
2900
|
-
id: factories.string(),
|
|
2901
|
-
item: factories['io.flow.harmonization.v0.models.harmonized_item_reference'](),
|
|
2902
|
-
origin: factories.string(),
|
|
2903
|
-
destination: factories.string(),
|
|
2904
|
-
code: factories.string(),
|
|
2905
|
-
}); },
|
|
2906
|
-
'io.flow.harmonization.v0.models.hs10_version': function () { return ({
|
|
2907
|
-
id: factories.string(),
|
|
2908
|
-
timestamp: factories.date_time_iso_8601(),
|
|
2909
|
-
type: factories['io.flow.common.v0.enums.change_type'](),
|
|
2910
|
-
hs10: factories['io.flow.harmonization.v0.models.hs10'](),
|
|
2911
|
-
}); },
|
|
2912
|
-
'io.flow.harmonization.v0.models.hs6': function () { return ({
|
|
2913
|
-
id: factories.string(),
|
|
2914
|
-
item: factories['io.flow.harmonization.v0.models.harmonized_item_reference'](),
|
|
2915
|
-
code: factories.string(),
|
|
2916
|
-
}); },
|
|
2917
|
-
'io.flow.harmonization.v0.models.lane_landed_cost': function () { return ({
|
|
2918
|
-
origin: factories.string(),
|
|
2919
|
-
destination: factories.string(),
|
|
2920
|
-
tariff_code: factories.string(),
|
|
2921
|
-
effective_duty: factories['io.flow.price.v0.models.duty'](),
|
|
2922
|
-
tax: factories['io.flow.price.v0.models.tax'](),
|
|
2923
|
-
}); },
|
|
2924
|
-
'io.flow.harmonization.v0.models.tax_registration': function () { return ({
|
|
2925
|
-
id: factories.string(),
|
|
2926
|
-
key: factories.string(),
|
|
2927
|
-
number: factories.string(),
|
|
2928
|
-
timestamp: factories.date_time_iso_8601(),
|
|
2929
|
-
result: factories['io.flow.harmonization.v0.enums.tax_verification_result'](),
|
|
2930
|
-
result_reason: factories.string(),
|
|
2931
|
-
name: factories.string(),
|
|
2932
|
-
address: factories.string(),
|
|
2933
|
-
company_name: factories.string(),
|
|
2934
|
-
}); },
|
|
2935
|
-
'io.flow.harmonization.v0.models.tax_registration_form': function () { return ({
|
|
2936
|
-
number: factories.string(),
|
|
2937
|
-
company_name: factories.string(),
|
|
2938
|
-
}); },
|
|
2939
|
-
'io.flow.inventory.v0.enums.aggregate': function () { return faker.helpers.arrayElement(['maximum', 'minimum']); },
|
|
2940
|
-
'io.flow.inventory.v0.enums.inventory_status': function () { return faker.helpers.arrayElement(['has_inventory', 'no_inventory']); },
|
|
2941
|
-
'io.flow.inventory.v0.enums.update_type': function () { return faker.helpers.arrayElement(['change', 'set']); },
|
|
2942
|
-
'io.flow.inventory.v0.models.external_api_timeout_reservation_error': function () { return ({
|
|
2943
|
-
code: 'external_api_timeout',
|
|
2944
|
-
messages: arrayOf(function () { return factories.string(); }),
|
|
2945
|
-
}); },
|
|
2946
|
-
'io.flow.inventory.v0.models.generic_reservation_error': function () { return ({
|
|
2947
|
-
code: 'generic_reservation_error',
|
|
2948
|
-
messages: arrayOf(function () { return factories.string(); }),
|
|
2949
|
-
}); },
|
|
2950
|
-
'io.flow.inventory.v0.models.inventory_backorder': function () { return ({
|
|
2951
|
-
discriminator: 'inventory_backorder',
|
|
2952
|
-
quantity: factories.long(),
|
|
2953
|
-
}); },
|
|
2954
|
-
'io.flow.inventory.v0.models.inventory_center_reference': function () { return ({
|
|
2955
|
-
key: factories.string(),
|
|
2956
|
-
}); },
|
|
2957
|
-
'io.flow.inventory.v0.models.inventory_check_response': function () { return ({
|
|
2958
|
-
items: arrayOf(function () { return factories['io.flow.inventory.v0.models.inventory_check_response_item'](); }),
|
|
2959
|
-
}); },
|
|
2960
|
-
'io.flow.inventory.v0.models.inventory_check_response_item': function () { return ({
|
|
2961
|
-
number: factories.string(),
|
|
2962
|
-
quantity: factories.long(),
|
|
2963
|
-
inventory_status: factories['io.flow.inventory.v0.enums.inventory_status'](),
|
|
2964
|
-
}); },
|
|
2965
|
-
'io.flow.inventory.v0.models.inventory_experience_reference': function () { return ({
|
|
2966
|
-
key: factories.string(),
|
|
2967
|
-
}); },
|
|
2968
|
-
'io.flow.inventory.v0.models.inventory_follow_ecommerce_platform': function () { return ({
|
|
2969
|
-
discriminator: 'inventory_follow_ecommerce_platform',
|
|
2970
|
-
quantity: factories.long(),
|
|
2971
|
-
}); },
|
|
2972
|
-
'io.flow.inventory.v0.models.inventory_item_reference': function () { return ({
|
|
2973
|
-
number: factories.string(),
|
|
2974
|
-
}); },
|
|
2975
|
-
'io.flow.inventory.v0.models.inventory_request': function () { return ({
|
|
2976
|
-
items: arrayOf(function () { return factories['io.flow.inventory.v0.models.inventory_request_item'](); }),
|
|
2977
|
-
}); },
|
|
2978
|
-
'io.flow.inventory.v0.models.inventory_request_item': function () { return ({
|
|
2979
|
-
number: factories.string(),
|
|
2980
|
-
quantity: factories.long(),
|
|
2981
|
-
}); },
|
|
2982
|
-
'io.flow.inventory.v0.models.inventory_rule': function () { return ({
|
|
2983
|
-
id: factories.string(),
|
|
2984
|
-
position: factories.long(),
|
|
2985
|
-
query: factories.string(),
|
|
2986
|
-
strategy: factories['io.flow.inventory.v0.unions.inventory_strategy'](),
|
|
2987
|
-
}); },
|
|
2988
|
-
'io.flow.inventory.v0.models.inventory_rule_form': function () { return ({
|
|
2989
|
-
position: factories.long(),
|
|
2990
|
-
query: factories.string(),
|
|
2991
|
-
strategy: factories['io.flow.inventory.v0.unions.inventory_strategy'](),
|
|
2992
|
-
}); },
|
|
2993
|
-
'io.flow.inventory.v0.models.inventory_rule_version': function () { return ({
|
|
2994
|
-
id: factories.string(),
|
|
2995
|
-
timestamp: factories.date_time_iso_8601(),
|
|
2996
|
-
type: factories['io.flow.common.v0.enums.change_type'](),
|
|
2997
|
-
inventory_rule: factories['io.flow.inventory.v0.models.inventory_rule'](),
|
|
2998
|
-
}); },
|
|
2999
|
-
'io.flow.inventory.v0.models.inventory_snapshot': function () { return ({
|
|
3000
|
-
id: factories.string(),
|
|
3001
|
-
available: factories.long(),
|
|
3002
|
-
center: factories['io.flow.inventory.v0.models.inventory_center_reference'](),
|
|
3003
|
-
item: factories['io.flow.inventory.v0.models.inventory_item_reference'](),
|
|
3004
|
-
quantity: factories.long(),
|
|
3005
|
-
}); },
|
|
3006
|
-
'io.flow.inventory.v0.models.inventory_snapshot_version': function () { return ({
|
|
3007
|
-
id: factories.string(),
|
|
3008
|
-
timestamp: factories.date_time_iso_8601(),
|
|
3009
|
-
type: factories['io.flow.common.v0.enums.change_type'](),
|
|
3010
|
-
inventory_snapshot: factories['io.flow.inventory.v0.models.inventory_snapshot'](),
|
|
3011
|
-
}); },
|
|
3012
|
-
'io.flow.inventory.v0.models.inventory_stock': function () { return ({
|
|
3013
|
-
discriminator: 'inventory_stock',
|
|
3014
|
-
quantity: factories.long(),
|
|
3015
|
-
}); },
|
|
3016
|
-
'io.flow.inventory.v0.models.inventory_unlimited': function () { return ({
|
|
3017
|
-
discriminator: 'inventory_unlimited',
|
|
3018
|
-
placeholder: factories.string(),
|
|
3019
|
-
}); },
|
|
3020
|
-
'io.flow.inventory.v0.models.inventory_update': function () { return ({
|
|
3021
|
-
id: factories.string(),
|
|
3022
|
-
idempotency_key: factories.string(),
|
|
3023
|
-
center: factories['io.flow.inventory.v0.models.inventory_center_reference'](),
|
|
3024
|
-
item: factories['io.flow.inventory.v0.models.inventory_item_reference'](),
|
|
3025
|
-
notes: factories.object(),
|
|
3026
|
-
quantity: factories.long(),
|
|
3027
|
-
type: factories['io.flow.inventory.v0.enums.update_type'](),
|
|
3028
|
-
}); },
|
|
3029
|
-
'io.flow.inventory.v0.models.inventory_update_form': function () { return ({
|
|
3030
|
-
center: factories.string(),
|
|
3031
|
-
idempotency_key: factories.string(),
|
|
3032
|
-
item_number: factories.string(),
|
|
3033
|
-
quantity: factories.long(),
|
|
3034
|
-
type: factories['io.flow.inventory.v0.enums.update_type'](),
|
|
3035
|
-
notes: factories.object(),
|
|
3036
|
-
}); },
|
|
3037
|
-
'io.flow.inventory.v0.models.inventory_update_version': function () { return ({
|
|
3038
|
-
id: factories.string(),
|
|
3039
|
-
timestamp: factories.date_time_iso_8601(),
|
|
3040
|
-
type: factories['io.flow.common.v0.enums.change_type'](),
|
|
3041
|
-
inventory_update: factories['io.flow.inventory.v0.models.inventory_update'](),
|
|
3042
|
-
}); },
|
|
3043
|
-
'io.flow.inventory.v0.models.no_inventory_reservation_error': function () { return ({
|
|
3044
|
-
code: 'no_inventory',
|
|
3045
|
-
messages: arrayOf(function () { return factories.string(); }),
|
|
3046
|
-
items: arrayOf(function () { return factories['io.flow.inventory.v0.models.no_inventory_reservation_error_item'](); }),
|
|
3047
|
-
}); },
|
|
3048
|
-
'io.flow.inventory.v0.models.no_inventory_reservation_error_item': function () { return ({
|
|
3049
|
-
number: factories.string(),
|
|
3050
|
-
requested_quantity: factories.long(),
|
|
3051
|
-
available_quantity: factories.long(),
|
|
3052
|
-
}); },
|
|
3053
|
-
'io.flow.inventory.v0.models.pfs_inventory_check_response': function () { return ({
|
|
3054
|
-
items: objectOf(function () { return factories['io.flow.inventory.v0.models.pfs_inventory_check_response_item'](); }),
|
|
3055
|
-
}); },
|
|
3056
|
-
'io.flow.inventory.v0.models.pfs_inventory_check_response_item': function () { return ({
|
|
3057
|
-
number: factories.string(),
|
|
3058
|
-
ats: factories.long(),
|
|
3059
|
-
in_stock: factories.boolean(),
|
|
3060
|
-
}); },
|
|
3061
|
-
'io.flow.inventory.v0.models.pfs_inventory_status': function () { return ({
|
|
3062
|
-
status: factories.string(),
|
|
3063
|
-
}); },
|
|
3064
|
-
'io.flow.inventory.v0.models.reservation': function () { return ({
|
|
3065
|
-
id: factories.string(),
|
|
3066
|
-
key: factories.string(),
|
|
3067
|
-
order: factories['io.flow.inventory.v0.models.reservation_order_reference'](),
|
|
3068
|
-
items: arrayOf(function () { return factories['io.flow.inventory.v0.models.reservation_item'](); }),
|
|
3069
|
-
reserved_until: factories.date_time_iso_8601(),
|
|
3070
|
-
}); },
|
|
3071
|
-
'io.flow.inventory.v0.models.reservation_form': function () { return ({
|
|
3072
|
-
order_number: factories.string(),
|
|
3073
|
-
items: arrayOf(function () { return factories['io.flow.inventory.v0.models.reservation_item_form'](); }),
|
|
3074
|
-
}); },
|
|
3075
|
-
'io.flow.inventory.v0.models.reservation_item': function () { return ({
|
|
3076
|
-
item: factories['io.flow.inventory.v0.models.reservation_item_reference'](),
|
|
3077
|
-
quantity: factories.long(),
|
|
3078
|
-
}); },
|
|
3079
|
-
'io.flow.inventory.v0.models.reservation_item_form': function () { return ({
|
|
3080
|
-
item_number: factories.string(),
|
|
3081
|
-
quantity: factories.long(),
|
|
3082
|
-
}); },
|
|
3083
|
-
'io.flow.inventory.v0.models.reservation_item_reference': function () { return ({
|
|
3084
|
-
number: factories.string(),
|
|
3085
|
-
}); },
|
|
3086
|
-
'io.flow.inventory.v0.models.reservation_order_reference': function () { return ({
|
|
3087
|
-
number: factories.string(),
|
|
3088
|
-
}); },
|
|
3089
|
-
'io.flow.inventory.v0.unions.inventory_strategy': function () {
|
|
3090
|
-
var f = faker.helpers.arrayElement([
|
|
3091
|
-
function () { return factories['io.flow.inventory.v0.models.inventory_backorder'](); },
|
|
3092
|
-
function () { return factories['io.flow.inventory.v0.models.inventory_stock'](); },
|
|
3093
|
-
function () { return factories['io.flow.inventory.v0.models.inventory_unlimited'](); },
|
|
3094
|
-
function () { return factories['io.flow.inventory.v0.models.inventory_follow_ecommerce_platform'](); },
|
|
3095
|
-
]);
|
|
3096
|
-
return f();
|
|
3097
|
-
},
|
|
3098
|
-
'io.flow.inventory.v0.unions.reservation_error': function () {
|
|
3099
|
-
var f = faker.helpers.arrayElement([
|
|
3100
|
-
function () { return factories['io.flow.inventory.v0.models.no_inventory_reservation_error'](); },
|
|
3101
|
-
function () { return factories['io.flow.inventory.v0.models.external_api_timeout_reservation_error'](); },
|
|
3102
|
-
function () { return factories['io.flow.inventory.v0.models.generic_reservation_error'](); },
|
|
3103
|
-
]);
|
|
3104
|
-
return f();
|
|
3105
|
-
},
|
|
3106
|
-
'io.flow.item.v0.models.local_item': function () { return ({
|
|
3107
|
-
id: factories.string(),
|
|
3108
|
-
experience: factories['io.flow.common.v0.models.experience_summary'](),
|
|
3109
|
-
center: factories['io.flow.fulfillment.v0.models.center_summary'](),
|
|
3110
|
-
item: factories['io.flow.common.v0.models.catalog_item_reference'](),
|
|
3111
|
-
pricing: factories['io.flow.item.v0.models.local_item_pricing'](),
|
|
3112
|
-
status: factories['io.flow.catalog.v0.enums.subcatalog_item_status'](),
|
|
3113
|
-
attributes: objectOf(function () { return factories.string(); }),
|
|
3114
|
-
}); },
|
|
3115
|
-
'io.flow.item.v0.models.local_item_attribute_pricing': function () { return ({
|
|
3116
|
-
pretax_price: factories['io.flow.common.v0.models.price_with_base'](),
|
|
3117
|
-
vat: factories['io.flow.catalog.v0.models.localized_item_vat'](),
|
|
3118
|
-
duty: factories['io.flow.catalog.v0.models.localized_item_duty'](),
|
|
3119
|
-
price: factories['io.flow.catalog.v0.models.localized_item_price'](),
|
|
3120
|
-
}); },
|
|
3121
|
-
'io.flow.item.v0.models.local_item_pricing': function () { return ({
|
|
3122
|
-
price: factories['io.flow.catalog.v0.models.localized_item_price'](),
|
|
3123
|
-
vat: factories['io.flow.catalog.v0.models.localized_item_vat'](),
|
|
3124
|
-
duty: factories['io.flow.catalog.v0.models.localized_item_duty'](),
|
|
3125
|
-
shipping: factories['io.flow.common.v0.models.price'](),
|
|
3126
|
-
attributes: objectOf(function () { return factories['io.flow.common.v0.models.price_with_base'](); }),
|
|
3127
|
-
price_attributes: objectOf(function () { return factories['io.flow.item.v0.models.local_item_attribute_pricing'](); }),
|
|
3128
|
-
}); },
|
|
3129
|
-
'io.flow.merchant.of.record.v0.enums.economic_title_location': function () { return faker.helpers.arrayElement(['high_seas', 'origination', 'destination']); },
|
|
3130
|
-
'io.flow.merchant.of.record.v0.enums.flow_entity': function () { return faker.helpers.arrayElement(['flow-usa', 'flow-irl', 'flow-can', 'ge-usa']); },
|
|
3131
|
-
'io.flow.order.price.v0.enums.order_price_detail_component_key': function () { return faker.helpers.arrayElement([
|
|
3132
|
-
'adjustment',
|
|
3133
|
-
'vat_deminimis',
|
|
3134
|
-
'duty_deminimis',
|
|
3135
|
-
'duties_item_price',
|
|
3136
|
-
'duties_freight',
|
|
3137
|
-
'duties_insurance',
|
|
3138
|
-
'vat_item_price',
|
|
3139
|
-
'vat_freight',
|
|
3140
|
-
'vat_insurance',
|
|
3141
|
-
'vat_duties_item_price',
|
|
3142
|
-
'vat_duties_freight',
|
|
3143
|
-
'vat_duties_insurance',
|
|
3144
|
-
'item_price',
|
|
3145
|
-
'item_discount',
|
|
3146
|
-
'rounding',
|
|
3147
|
-
'insurance',
|
|
3148
|
-
'shipping',
|
|
3149
|
-
'shipping_discount',
|
|
3150
|
-
'order_discount',
|
|
3151
|
-
'subtotal_percent_sales_margin',
|
|
3152
|
-
'subtotal_vat_percent_sales_margin',
|
|
3153
|
-
'subtotal_duty_percent_sales_margin',
|
|
3154
|
-
'vat_subsidy',
|
|
3155
|
-
'duty_subsidy',
|
|
3156
|
-
'remote_area_surcharge',
|
|
3157
|
-
'fuel_surcharge',
|
|
3158
|
-
'emergency_situation_surcharge',
|
|
3159
|
-
'peak_surcharge',
|
|
3160
|
-
'duties_taxes_paid_surcharge',
|
|
3161
|
-
'tip',
|
|
3162
|
-
]); },
|
|
3163
|
-
'io.flow.order.price.v0.enums.order_price_detail_key': function () { return faker.helpers.arrayElement([
|
|
3164
|
-
'adjustment',
|
|
3165
|
-
'subtotal',
|
|
3166
|
-
'vat',
|
|
3167
|
-
'duty',
|
|
3168
|
-
'shipping',
|
|
3169
|
-
'insurance',
|
|
3170
|
-
'discount',
|
|
3171
|
-
'surcharges',
|
|
3172
|
-
'tip',
|
|
3173
|
-
]); },
|
|
3174
|
-
'io.flow.order.price.v0.models.order_price_detail': function () { return ({
|
|
3175
|
-
key: factories['io.flow.order.price.v0.enums.order_price_detail_key'](),
|
|
3176
|
-
currency: factories.string(),
|
|
3177
|
-
amount: factories.decimal(),
|
|
3178
|
-
label: factories.string(),
|
|
3179
|
-
base: factories['io.flow.common.v0.models.price'](),
|
|
3180
|
-
components: arrayOf(function () { return factories['io.flow.order.price.v0.models.order_price_detail_component'](); }),
|
|
3181
|
-
name: factories.string(),
|
|
3182
|
-
rate: factories.decimal(),
|
|
3183
|
-
accuracy: factories['io.flow.price.v0.enums.price_accuracy'](),
|
|
3184
|
-
rate_label: factories.string(),
|
|
3185
|
-
}); },
|
|
3186
|
-
'io.flow.order.price.v0.models.order_price_detail_component': function () { return ({
|
|
3187
|
-
key: factories['io.flow.order.price.v0.enums.order_price_detail_component_key'](),
|
|
3188
|
-
currency: factories.string(),
|
|
3189
|
-
amount: factories.decimal(),
|
|
3190
|
-
label: factories.string(),
|
|
3191
|
-
base: factories['io.flow.common.v0.models.price'](),
|
|
3192
|
-
name: factories.string(),
|
|
3193
|
-
}); },
|
|
3194
|
-
'io.flow.organization.v0.enums.country_picker_source': function () { return faker.helpers.arrayElement(['experience', 'destination']); },
|
|
3195
|
-
'io.flow.organization.v0.enums.ecommerce_platform_type': function () { return faker.helpers.arrayElement([
|
|
3196
|
-
'commercetools',
|
|
3197
|
-
'custom',
|
|
3198
|
-
'hybris',
|
|
3199
|
-
'magento',
|
|
3200
|
-
'shopify',
|
|
3201
|
-
'shopify_markets',
|
|
3202
|
-
'sfcc',
|
|
3203
|
-
'solidus',
|
|
3204
|
-
'workarea',
|
|
3205
|
-
]); },
|
|
3206
|
-
'io.flow.organization.v0.enums.invitation_error_code': function () { return faker.helpers.arrayElement(['expired', 'invalid_email']); },
|
|
3207
|
-
'io.flow.organization.v0.models.country_picker': function () { return ({
|
|
3208
|
-
id: factories.string(),
|
|
3209
|
-
source: factories['io.flow.organization.v0.enums.country_picker_source'](),
|
|
3210
|
-
}); },
|
|
3211
|
-
'io.flow.organization.v0.models.country_picker_form': function () { return ({
|
|
3212
|
-
source: factories['io.flow.organization.v0.enums.country_picker_source'](),
|
|
3213
|
-
}); },
|
|
3214
|
-
'io.flow.organization.v0.models.ecommerce_platform': function () { return ({
|
|
3215
|
-
id: factories.string(),
|
|
3216
|
-
type: factories['io.flow.organization.v0.enums.ecommerce_platform_type'](),
|
|
3217
|
-
version: factories.string(),
|
|
3218
|
-
}); },
|
|
3219
|
-
'io.flow.organization.v0.models.ecommerce_platform_form': function () { return ({
|
|
3220
|
-
type: factories['io.flow.organization.v0.enums.ecommerce_platform_type'](),
|
|
3221
|
-
version: factories.string(),
|
|
3222
|
-
}); },
|
|
3223
|
-
'io.flow.organization.v0.models.invitation': function () { return ({
|
|
3224
|
-
id: factories.string(),
|
|
3225
|
-
organization: factories['io.flow.common.v0.unions.expandable_organization'](),
|
|
3226
|
-
email: factories.string(),
|
|
3227
|
-
name: factories['io.flow.common.v0.models.name'](),
|
|
3228
|
-
role: factories['io.flow.common.v0.enums.role'](),
|
|
3229
|
-
roles: arrayOf(function () { return factories['io.flow.permission.v0.enums.flow_role'](); }),
|
|
3230
|
-
expiration: factories.date_time_iso_8601(),
|
|
3231
|
-
}); },
|
|
3232
|
-
'io.flow.organization.v0.models.invitation_error': function () { return ({
|
|
3233
|
-
code: factories['io.flow.organization.v0.enums.invitation_error_code'](),
|
|
3234
|
-
messages: arrayOf(function () { return factories.string(); }),
|
|
3235
|
-
}); },
|
|
3236
|
-
'io.flow.organization.v0.models.invitation_form': function () { return ({
|
|
3237
|
-
organization: factories.string(),
|
|
3238
|
-
email: factories.string(),
|
|
3239
|
-
name: factories['io.flow.common.v0.models.name'](),
|
|
3240
|
-
role: factories['io.flow.common.v0.enums.role'](),
|
|
3241
|
-
roles: arrayOf(function () { return factories['io.flow.permission.v0.enums.flow_role'](); }),
|
|
3242
|
-
}); },
|
|
3243
|
-
'io.flow.organization.v0.models.invitation_version': function () { return ({
|
|
3244
|
-
id: factories.string(),
|
|
3245
|
-
timestamp: factories.date_time_iso_8601(),
|
|
3246
|
-
type: factories['io.flow.common.v0.enums.change_type'](),
|
|
3247
|
-
invitation: factories['io.flow.organization.v0.models.invitation'](),
|
|
3248
|
-
}); },
|
|
3249
|
-
'io.flow.organization.v0.models.membership': function () { return ({
|
|
3250
|
-
id: factories.string(),
|
|
3251
|
-
organization: factories['io.flow.common.v0.unions.expandable_organization'](),
|
|
3252
|
-
user: factories['io.flow.common.v0.unions.expandable_user'](),
|
|
3253
|
-
role: factories['io.flow.common.v0.enums.role'](),
|
|
3254
|
-
roles: arrayOf(function () { return factories['io.flow.permission.v0.enums.flow_role'](); }),
|
|
3255
|
-
}); },
|
|
3256
|
-
'io.flow.organization.v0.models.membership_form': function () { return ({
|
|
3257
|
-
organization: factories.string(),
|
|
3258
|
-
user: factories.string(),
|
|
3259
|
-
role: factories['io.flow.common.v0.enums.role'](),
|
|
3260
|
-
roles: arrayOf(function () { return factories['io.flow.permission.v0.enums.flow_role'](); }),
|
|
3261
|
-
}); },
|
|
3262
|
-
'io.flow.organization.v0.models.membership_put_form': function () { return ({
|
|
3263
|
-
role: factories['io.flow.common.v0.enums.role'](),
|
|
3264
|
-
roles: arrayOf(function () { return factories['io.flow.permission.v0.enums.flow_role'](); }),
|
|
3265
|
-
}); },
|
|
3266
|
-
'io.flow.organization.v0.models.membership_version': function () { return ({
|
|
3267
|
-
id: factories.string(),
|
|
3268
|
-
timestamp: factories.date_time_iso_8601(),
|
|
3269
|
-
type: factories['io.flow.common.v0.enums.change_type'](),
|
|
3270
|
-
membership: factories['io.flow.organization.v0.models.membership'](),
|
|
3271
|
-
}); },
|
|
3272
|
-
'io.flow.organization.v0.models.organization_authorization': function () { return ({
|
|
3273
|
-
role: factories['io.flow.common.v0.enums.role'](),
|
|
3274
|
-
environment: factories['io.flow.common.v0.enums.environment'](),
|
|
3275
|
-
}); },
|
|
3276
|
-
'io.flow.organization.v0.models.organization_authorization_form': function () { return ({
|
|
3277
|
-
organization: factories.string(),
|
|
3278
|
-
environment: factories['io.flow.common.v0.enums.environment'](),
|
|
3279
|
-
}); },
|
|
3280
|
-
'io.flow.organization.v0.models.organization_configuration_reference': function () { return ({
|
|
3281
|
-
id: factories.string(),
|
|
3282
|
-
}); },
|
|
3283
|
-
'io.flow.organization.v0.models.organization_default_configurations': function () { return ({
|
|
3284
|
-
id: factories.string(),
|
|
3285
|
-
checkout_configuration: factories['io.flow.organization.v0.models.organization_configuration_reference'](),
|
|
3286
|
-
}); },
|
|
3287
|
-
'io.flow.organization.v0.models.organization_default_configurations_form': function () { return ({
|
|
3288
|
-
id: factories.string(),
|
|
3289
|
-
}); },
|
|
3290
|
-
'io.flow.organization.v0.models.organization_form': function () { return ({
|
|
3291
|
-
id: factories.string(),
|
|
3292
|
-
name: factories.string(),
|
|
3293
|
-
environment: factories['io.flow.common.v0.enums.environment'](),
|
|
3294
|
-
parent_id: factories.string(),
|
|
3295
|
-
defaults: factories['io.flow.common.v0.models.organization_defaults'](),
|
|
3296
|
-
status: factories['io.flow.common.v0.enums.organization_status'](),
|
|
3297
|
-
type: factories['io.flow.common.v0.enums.organization_type'](),
|
|
3298
|
-
}); },
|
|
3299
|
-
'io.flow.organization.v0.models.organization_put_form': function () { return ({
|
|
3300
|
-
name: factories.string(),
|
|
3301
|
-
environment: factories['io.flow.common.v0.enums.environment'](),
|
|
3302
|
-
parent_id: factories.string(),
|
|
3303
|
-
defaults: factories['io.flow.common.v0.models.organization_defaults'](),
|
|
3304
|
-
status: factories['io.flow.common.v0.enums.organization_status'](),
|
|
3305
|
-
}); },
|
|
3306
|
-
'io.flow.organization.v0.models.organization_version': function () { return ({
|
|
3307
|
-
id: factories.string(),
|
|
3308
|
-
timestamp: factories.date_time_iso_8601(),
|
|
3309
|
-
type: factories['io.flow.common.v0.enums.change_type'](),
|
|
3310
|
-
organization: factories['io.flow.common.v0.models.organization'](),
|
|
3311
|
-
}); },
|
|
3312
|
-
'io.flow.organization.v0.models.region_setting': function () { return ({
|
|
3313
|
-
id: factories.string(),
|
|
3314
|
-
region: factories.string(),
|
|
3315
|
-
status: factories['io.flow.common.v0.enums.availability_status'](),
|
|
3316
|
-
}); },
|
|
3317
|
-
'io.flow.organization.v0.models.region_setting_form': function () { return ({
|
|
3318
|
-
status: factories['io.flow.common.v0.enums.availability_status'](),
|
|
3319
|
-
}); },
|
|
3320
|
-
'io.flow.payment.v0.enums.address_verification_result_field_code': function () { return faker.helpers.arrayElement(['matched', 'not_available', 'not_checked', 'not_matched']); },
|
|
3321
|
-
'io.flow.payment.v0.enums.authorization_decline_code': function () { return faker.helpers.arrayElement([
|
|
3322
|
-
'expired',
|
|
3323
|
-
'invalid_name',
|
|
3324
|
-
'invalid_number',
|
|
3325
|
-
'invalid_expiration',
|
|
3326
|
-
'invalid_address',
|
|
3327
|
-
'invalid_token_type',
|
|
3328
|
-
'invalid_token',
|
|
3329
|
-
'no_account',
|
|
3330
|
-
'avs',
|
|
3331
|
-
'cvv',
|
|
3332
|
-
'fraud',
|
|
3333
|
-
'duplicate',
|
|
3334
|
-
'not_supported',
|
|
3335
|
-
'unknown',
|
|
3336
|
-
'online_payment_error',
|
|
3337
|
-
]); },
|
|
3338
|
-
'io.flow.payment.v0.enums.authorization_option': function () { return faker.helpers.arrayElement(['store_card']); },
|
|
3339
|
-
'io.flow.payment.v0.enums.authorization_result_action_type': function () { return faker.helpers.arrayElement(['native', 'redirect', 'wait']); },
|
|
3340
|
-
'io.flow.payment.v0.enums.authorization_status': function () { return faker.helpers.arrayElement([
|
|
3341
|
-
'initiated',
|
|
3342
|
-
'pending',
|
|
3343
|
-
'expired',
|
|
3344
|
-
'authorized',
|
|
3345
|
-
'review',
|
|
3346
|
-
'declined',
|
|
3347
|
-
'reversed',
|
|
3348
|
-
]); },
|
|
3349
|
-
'io.flow.payment.v0.enums.avs_code': function () { return faker.helpers.arrayElement(['match', 'partial', 'unsupported', 'no_match']); },
|
|
3350
|
-
'io.flow.payment.v0.enums.capture_decline_code': function () { return faker.helpers.arrayElement(['expired', 'insufficient_funds', 'unknown']); },
|
|
3351
|
-
'io.flow.payment.v0.enums.capture_status': function () { return faker.helpers.arrayElement(['initiated', 'pending', 'succeeded', 'failed', 'canceled']); },
|
|
3352
|
-
'io.flow.payment.v0.enums.card_error_code': function () { return faker.helpers.arrayElement([
|
|
3353
|
-
'invalid_address',
|
|
3354
|
-
'invalid_currency',
|
|
3355
|
-
'invalid_name',
|
|
3356
|
-
'invalid_number',
|
|
3357
|
-
'invalid_expiration',
|
|
3358
|
-
'invalid_token_type',
|
|
3359
|
-
'avs',
|
|
3360
|
-
'cvv',
|
|
3361
|
-
'fraud',
|
|
3362
|
-
'unknown',
|
|
3363
|
-
]); },
|
|
3364
|
-
'io.flow.payment.v0.enums.card_type': function () { return faker.helpers.arrayElement([
|
|
3365
|
-
'american_express',
|
|
3366
|
-
'cartes_bancaires',
|
|
3367
|
-
'china_union_pay',
|
|
3368
|
-
'dankort',
|
|
3369
|
-
'diners_club',
|
|
3370
|
-
'discover',
|
|
3371
|
-
'jcb',
|
|
3372
|
-
'maestro',
|
|
3373
|
-
'mastercard',
|
|
3374
|
-
'visa',
|
|
3375
|
-
]); },
|
|
3376
|
-
'io.flow.payment.v0.enums.cvv_code': function () { return faker.helpers.arrayElement(['match', 'suspicious', 'unsupported', 'no_match']); },
|
|
3377
|
-
'io.flow.payment.v0.enums.cvv_result_code': function () { return faker.helpers.arrayElement(['matched', 'not_available', 'not_checked', 'not_matched']); },
|
|
3378
|
-
'io.flow.payment.v0.enums.payment_error_code': function () { return faker.helpers.arrayElement([
|
|
3379
|
-
'duplicate',
|
|
3380
|
-
'invalid_amount',
|
|
3381
|
-
'invalid_currency',
|
|
3382
|
-
'invalid_method',
|
|
3383
|
-
'invalid_order',
|
|
3384
|
-
'invalid_customer',
|
|
3385
|
-
'invalid_destination',
|
|
3386
|
-
'unknown',
|
|
3387
|
-
]); },
|
|
3388
|
-
'io.flow.payment.v0.enums.payment_fee_type': function () { return faker.helpers.arrayElement(['fx', 'mor']); },
|
|
3389
|
-
'io.flow.payment.v0.enums.payment_source_confirmation_action_type': function () { return faker.helpers.arrayElement(['cvv', 'billing_address', 'number']); },
|
|
3390
|
-
'io.flow.payment.v0.enums.refund_decline_code': function () { return faker.helpers.arrayElement(['expired', 'insufficient_funds', 'unknown']); },
|
|
3391
|
-
'io.flow.payment.v0.enums.refund_failure_category': function () { return faker.helpers.arrayElement([
|
|
3392
|
-
'amount_too_high',
|
|
3393
|
-
'amount_too_low',
|
|
3394
|
-
'not_enough_balance',
|
|
3395
|
-
'insufficient_funds',
|
|
3396
|
-
'refund_period_expired',
|
|
3397
|
-
'dispute',
|
|
3398
|
-
'not_captured',
|
|
3399
|
-
'unsupported_payment_method',
|
|
3400
|
-
'unsupported_partial_refund',
|
|
3401
|
-
'invalid_currency',
|
|
3402
|
-
'card_no_longer_valid',
|
|
3403
|
-
'general',
|
|
3404
|
-
]); },
|
|
3405
|
-
'io.flow.payment.v0.enums.refund_status': function () { return faker.helpers.arrayElement(['pending', 'succeeded', 'failed', 'canceled']); },
|
|
3406
|
-
'io.flow.payment.v0.enums.reversal_error_code': function () { return faker.helpers.arrayElement([
|
|
3407
|
-
'amount_exceeds_balance',
|
|
3408
|
-
'authorization_declined',
|
|
3409
|
-
'authorization_expired',
|
|
3410
|
-
'invalid_authorization',
|
|
3411
|
-
'invalid_key',
|
|
3412
|
-
'invalid_amount',
|
|
3413
|
-
'invalid_currency',
|
|
3414
|
-
'no_remaining_balance',
|
|
3415
|
-
'partial_reversal_not_supported',
|
|
3416
|
-
'unknown',
|
|
3417
|
-
]); },
|
|
3418
|
-
'io.flow.payment.v0.enums.reversal_status': function () { return faker.helpers.arrayElement(['pending', 'processed', 'failed']); },
|
|
3419
|
-
'io.flow.payment.v0.enums.stored_method_usage_step': function () { return faker.helpers.arrayElement(['initial', 'subsequent']); },
|
|
3420
|
-
'io.flow.payment.v0.enums.three_d_secure_code': function () { return faker.helpers.arrayElement(['verified', 'not_verified', 'failed']); },
|
|
3421
|
-
'io.flow.payment.v0.enums.threeds_two_challenge_viewport': function () { return faker.helpers.arrayElement(['xxx_small', 'xx_small', 'x_small', 'small', 'fullscreen']); },
|
|
3422
|
-
'io.flow.payment.v0.enums.token_type': function () { return faker.helpers.arrayElement(['permanent', 'one_time']); },
|
|
3423
|
-
'io.flow.payment.v0.enums.transfer_status': function () { return faker.helpers.arrayElement(['succeeded', 'canceled']); },
|
|
3424
|
-
'io.flow.payment.v0.enums.transfer_type': function () { return faker.helpers.arrayElement([
|
|
3425
|
-
'payout_to_merchant',
|
|
3426
|
-
'disputed_amount_to_merchant',
|
|
3427
|
-
'duties_and_taxes_adjustment_to_merchant',
|
|
3428
|
-
'disputed_amount_from_merchant',
|
|
3429
|
-
'duties_and_taxes_adjustment_from_merchant',
|
|
3430
|
-
'refund_from_merchant',
|
|
3431
|
-
]); },
|
|
3432
|
-
'io.flow.payment.v0.models.ach_authorization_form': function () { return ({
|
|
3433
|
-
discriminator: 'ach_authorization_form',
|
|
3434
|
-
account_owner_name: factories.string(),
|
|
3435
|
-
account_number: factories.string(),
|
|
3436
|
-
routing_number: factories.string(),
|
|
3437
|
-
billing_address: factories['io.flow.common.v0.models.billing_address'](),
|
|
3438
|
-
order_number: factories.string(),
|
|
3439
|
-
amount: factories.decimal(),
|
|
3440
|
-
currency: factories.string(),
|
|
3441
|
-
key: factories.string(),
|
|
3442
|
-
attributes: objectOf(function () { return factories.string(); }),
|
|
3443
|
-
ip: factories.string(),
|
|
3444
|
-
}); },
|
|
3445
|
-
'io.flow.payment.v0.models.address_verification_result': function () { return ({
|
|
3446
|
-
street_code: factories['io.flow.payment.v0.enums.address_verification_result_field_code'](),
|
|
3447
|
-
postal_code: factories['io.flow.payment.v0.enums.address_verification_result_field_code'](),
|
|
3448
|
-
name_code: factories['io.flow.payment.v0.enums.address_verification_result_field_code'](),
|
|
3449
|
-
raw: factories.string(),
|
|
3450
|
-
}); },
|
|
3451
|
-
'io.flow.payment.v0.models.adyen_challenge_shopper_data': function () { return ({
|
|
3452
|
-
discriminator: 'adyen_challenge_shopper_data',
|
|
3453
|
-
challenge_token: factories.string(),
|
|
3454
|
-
}); },
|
|
3455
|
-
'io.flow.payment.v0.models.adyen_identify_shopper_data': function () { return ({
|
|
3456
|
-
discriminator: 'adyen_identify_shopper_data',
|
|
3457
|
-
fingerprint_token: factories.string(),
|
|
3458
|
-
}); },
|
|
3459
|
-
'io.flow.payment.v0.models.adyen_native_action_details': function () { return ({
|
|
3460
|
-
discriminator: 'adyen_native_action_details',
|
|
3461
|
-
origin_key: factories.string(),
|
|
3462
|
-
data: factories['io.flow.payment.v0.unions.adyen_native_data'](),
|
|
3463
|
-
}); },
|
|
3464
|
-
'io.flow.payment.v0.models.apple_pay_merchant_validation_payload': function () { return ({
|
|
3465
|
-
discriminator: 'apple_pay_merchant_validation_payload',
|
|
3466
|
-
validation_url: factories.string(),
|
|
3467
|
-
display_name: factories.string(),
|
|
3468
|
-
}); },
|
|
3469
|
-
'io.flow.payment.v0.models.applepay_sdk_create_result_action_details': function () { return ({
|
|
3470
|
-
discriminator: 'applepay_sdk_create_result_action_details',
|
|
3471
|
-
merchant_identifier: factories.string(),
|
|
3472
|
-
payment_data_request: factories.object(),
|
|
3473
|
-
}); },
|
|
3474
|
-
'io.flow.payment.v0.models.applepay_sdk_validate_result_action_details': function () { return ({
|
|
3475
|
-
discriminator: 'applepay_sdk_validate_result_action_details',
|
|
3476
|
-
payment_session: factories.object(),
|
|
3477
|
-
}); },
|
|
3478
|
-
'io.flow.payment.v0.models.authorization_code': function () { return ({
|
|
3479
|
-
result_code: factories.string(),
|
|
3480
|
-
code: factories.string(),
|
|
3481
|
-
}); },
|
|
3482
|
-
'io.flow.payment.v0.models.authorization_copy_form': function () { return ({
|
|
3483
|
-
discriminator: 'authorization_copy_form',
|
|
3484
|
-
source_authorization_key: factories.string(),
|
|
3485
|
-
amount: factories.decimal(),
|
|
3486
|
-
currency: factories.string(),
|
|
3487
|
-
attributes: objectOf(function () { return factories.string(); }),
|
|
3488
|
-
}); },
|
|
3489
|
-
'io.flow.payment.v0.models.authorization_error': function () { return ({
|
|
3490
|
-
code: factories['io.flow.payment.v0.enums.authorization_decline_code'](),
|
|
3491
|
-
messages: arrayOf(function () { return factories.string(); }),
|
|
3492
|
-
avs: factories['io.flow.payment.v0.models.avs'](),
|
|
3493
|
-
cvv: factories['io.flow.payment.v0.models.cvv'](),
|
|
3494
|
-
}); },
|
|
3495
|
-
'io.flow.payment.v0.models.authorization_order_reference': function () { return ({
|
|
3496
|
-
discriminator: 'flow_order',
|
|
3497
|
-
number: factories.string(),
|
|
3498
|
-
}); },
|
|
3499
|
-
'io.flow.payment.v0.models.authorization_payload': function () { return ({
|
|
3500
|
-
parameters: factories['io.flow.payment.v0.unions.authorization_payload_parameters'](),
|
|
3501
|
-
}); },
|
|
3502
|
-
'io.flow.payment.v0.models.authorization_reference': function () { return ({
|
|
3503
|
-
id: factories.string(),
|
|
3504
|
-
key: factories.string(),
|
|
3505
|
-
order: factories['io.flow.payment.v0.models.authorization_order_reference'](),
|
|
3506
|
-
}); },
|
|
3507
|
-
'io.flow.payment.v0.models.authorization_result': function () { return ({
|
|
3508
|
-
status: factories['io.flow.payment.v0.enums.authorization_status'](),
|
|
3509
|
-
action: factories['io.flow.payment.v0.unions.authorization_result_action'](),
|
|
3510
|
-
decline_code: factories['io.flow.payment.v0.enums.authorization_decline_code'](),
|
|
3511
|
-
avs: factories['io.flow.payment.v0.models.avs'](),
|
|
3512
|
-
cvv: factories['io.flow.payment.v0.models.cvv'](),
|
|
3513
|
-
three_d_secure: factories['io.flow.payment.v0.models.three_d_secure'](),
|
|
3514
|
-
description: factories['io.flow.payment.v0.models.authorization_result_description'](),
|
|
3515
|
-
authorization_code: factories['io.flow.payment.v0.models.authorization_code'](),
|
|
3516
|
-
}); },
|
|
3517
|
-
'io.flow.payment.v0.models.authorization_result_action_get': function () { return ({
|
|
3518
|
-
discriminator: 'authorization_result_action_get',
|
|
3519
|
-
type: factories['io.flow.payment.v0.enums.authorization_result_action_type'](),
|
|
3520
|
-
url: factories.string(),
|
|
3521
|
-
details: factories['io.flow.payment.v0.unions.authorization_result_action_details'](),
|
|
3522
|
-
}); },
|
|
3523
|
-
'io.flow.payment.v0.models.authorization_result_action_native': function () { return ({
|
|
3524
|
-
discriminator: 'authorization_result_action_native',
|
|
3525
|
-
type: factories['io.flow.payment.v0.enums.authorization_result_action_type'](),
|
|
3526
|
-
authorization: factories['io.flow.payment.v0.models.authorization_reference'](),
|
|
3527
|
-
details: factories['io.flow.payment.v0.unions.authorization_result_action_details'](),
|
|
3528
|
-
}); },
|
|
3529
|
-
'io.flow.payment.v0.models.authorization_result_action_post': function () { return ({
|
|
3530
|
-
discriminator: 'authorization_result_action_post',
|
|
3531
|
-
type: factories['io.flow.payment.v0.enums.authorization_result_action_type'](),
|
|
3532
|
-
url: factories.string(),
|
|
3533
|
-
parameters: factories.object(),
|
|
3534
|
-
}); },
|
|
3535
|
-
'io.flow.payment.v0.models.authorization_result_action_wait': function () { return ({
|
|
3536
|
-
discriminator: 'authorization_result_action_wait',
|
|
3537
|
-
type: factories['io.flow.payment.v0.enums.authorization_result_action_type'](),
|
|
3538
|
-
}); },
|
|
3539
|
-
'io.flow.payment.v0.models.authorization_result_description': function () { return ({
|
|
3540
|
-
display: factories.string(),
|
|
3541
|
-
}); },
|
|
3542
|
-
'io.flow.payment.v0.models.authorization_retry': function () { return ({
|
|
3543
|
-
id: factories.string(),
|
|
3544
|
-
authorization_request_id: factories.string(),
|
|
3545
|
-
authorization_id: factories.string(),
|
|
3546
|
-
organization_id: factories.string(),
|
|
3547
|
-
attempt: factories.integer(),
|
|
3548
|
-
last_failure_code: factories.string(),
|
|
3549
|
-
created_at: factories.date_time_iso_8601(),
|
|
3550
|
-
updated_at: factories.date_time_iso_8601(),
|
|
3551
|
-
}); },
|
|
3552
|
-
'io.flow.payment.v0.models.authorization_version': function () { return ({
|
|
3553
|
-
id: factories.string(),
|
|
3554
|
-
timestamp: factories.date_time_iso_8601(),
|
|
3555
|
-
type: factories['io.flow.common.v0.enums.change_type'](),
|
|
3556
|
-
authorization: factories['io.flow.payment.v0.unions.authorization'](),
|
|
3557
|
-
}); },
|
|
3558
|
-
'io.flow.payment.v0.models.avs': function () { return ({
|
|
3559
|
-
code: factories['io.flow.payment.v0.enums.avs_code'](),
|
|
3560
|
-
name: factories.boolean(),
|
|
3561
|
-
address: factories.boolean(),
|
|
3562
|
-
postal: factories.boolean(),
|
|
3563
|
-
description: factories.string(),
|
|
3564
|
-
}); },
|
|
3565
|
-
'io.flow.payment.v0.models.browser_info': function () { return ({
|
|
3566
|
-
origin: factories.string(),
|
|
3567
|
-
language: factories.string(),
|
|
3568
|
-
java_enabled: factories.boolean(),
|
|
3569
|
-
color_depth: factories.integer(),
|
|
3570
|
-
screen_height: factories.integer(),
|
|
3571
|
-
screen_width: factories.integer(),
|
|
3572
|
-
time_zone_offset: factories.integer(),
|
|
3573
|
-
user_agent: factories.string(),
|
|
3574
|
-
accept: factories.string(),
|
|
3575
|
-
}); },
|
|
3576
|
-
'io.flow.payment.v0.models.browser_inline_action_configuration': function () { return ({
|
|
3577
|
-
discriminator: 'browser_inline_action_configuration',
|
|
3578
|
-
inline_notification_urls: factories['io.flow.payment.v0.models.post_payment_redirect_urls'](),
|
|
3579
|
-
action_configuration: factories['io.flow.payment.v0.unions.browser_action_configuration'](),
|
|
3580
|
-
}); },
|
|
3581
|
-
'io.flow.payment.v0.models.capture': function () { return ({
|
|
3582
|
-
id: factories.string(),
|
|
3583
|
-
key: factories.string(),
|
|
3584
|
-
authorization: factories['io.flow.payment.v0.models.authorization_reference'](),
|
|
3585
|
-
amount: factories.decimal(),
|
|
3586
|
-
currency: factories.string(),
|
|
3587
|
-
requested: factories['io.flow.common.v0.models.money'](),
|
|
3588
|
-
created_at: factories.date_time_iso_8601(),
|
|
3589
|
-
attributes: objectOf(function () { return factories.string(); }),
|
|
3590
|
-
status: factories['io.flow.payment.v0.enums.capture_status'](),
|
|
3591
|
-
base: factories['io.flow.common.v0.models.money'](),
|
|
3592
|
-
fees: arrayOf(function () { return factories['io.flow.payment.v0.models.payment_fee'](); }),
|
|
3593
|
-
}); },
|
|
3594
|
-
'io.flow.payment.v0.models.capture_error': function () { return ({
|
|
3595
|
-
code: factories['io.flow.error.v0.enums.generic_error_code'](),
|
|
3596
|
-
messages: arrayOf(function () { return factories.string(); }),
|
|
3597
|
-
decline_code: factories['io.flow.payment.v0.enums.capture_decline_code'](),
|
|
3598
|
-
}); },
|
|
3599
|
-
'io.flow.payment.v0.models.capture_form': function () { return ({
|
|
3600
|
-
authorization_id: factories.string(),
|
|
3601
|
-
key: factories.string(),
|
|
3602
|
-
amount: factories.decimal(),
|
|
3603
|
-
currency: factories.string(),
|
|
3604
|
-
attributes: objectOf(function () { return factories.string(); }),
|
|
3605
|
-
}); },
|
|
3606
|
-
'io.flow.payment.v0.models.capture_identifier': function () { return ({
|
|
3607
|
-
id: factories.string(),
|
|
3608
|
-
capture: factories['io.flow.payment.v0.models.capture_reference'](),
|
|
3609
|
-
name: factories.string(),
|
|
3610
|
-
identifier: factories.string(),
|
|
3611
|
-
primary: factories.boolean(),
|
|
3612
|
-
}); },
|
|
3613
|
-
'io.flow.payment.v0.models.capture_reference': function () { return ({
|
|
3614
|
-
discriminator: 'capture_reference',
|
|
3615
|
-
id: factories.string(),
|
|
3616
|
-
key: factories.string(),
|
|
3617
|
-
}); },
|
|
3618
|
-
'io.flow.payment.v0.models.capture_version': function () { return ({
|
|
3619
|
-
id: factories.string(),
|
|
3620
|
-
timestamp: factories.date_time_iso_8601(),
|
|
3621
|
-
type: factories['io.flow.common.v0.enums.change_type'](),
|
|
3622
|
-
capture: factories['io.flow.payment.v0.models.capture'](),
|
|
3623
|
-
}); },
|
|
3624
|
-
'io.flow.payment.v0.models.card': function () { return ({
|
|
3625
|
-
discriminator: 'card',
|
|
3626
|
-
id: factories.string(),
|
|
3627
|
-
token: factories.string(),
|
|
3628
|
-
type: factories['io.flow.payment.v0.enums.card_type'](),
|
|
3629
|
-
expiration: factories['io.flow.payment.v0.models.expiration'](),
|
|
3630
|
-
iin: factories.string(),
|
|
3631
|
-
issuer: factories['io.flow.payment.v0.models.issuer_summary'](),
|
|
3632
|
-
last4: factories.string(),
|
|
3633
|
-
name: factories.string(),
|
|
3634
|
-
address: factories['io.flow.common.v0.models.billing_address'](),
|
|
3635
|
-
}); },
|
|
3636
|
-
'io.flow.payment.v0.models.card_authorization': function () { return ({
|
|
3637
|
-
discriminator: 'card_authorization',
|
|
3638
|
-
id: factories.string(),
|
|
3639
|
-
key: factories.string(),
|
|
3640
|
-
merchant_of_record: factories['io.flow.common.v0.enums.merchant_of_record'](),
|
|
3641
|
-
method: factories['io.flow.reference.v0.models.payment_method'](),
|
|
3642
|
-
card: factories['io.flow.payment.v0.unions.expandable_card'](),
|
|
3643
|
-
amount: factories.decimal(),
|
|
3644
|
-
currency: factories.string(),
|
|
3645
|
-
requested: factories['io.flow.common.v0.models.money'](),
|
|
3646
|
-
customer: factories['io.flow.common.v0.models.order_customer'](),
|
|
3647
|
-
attributes: objectOf(function () { return factories.string(); }),
|
|
3648
|
-
destination: factories['io.flow.common.v0.models.address'](),
|
|
3649
|
-
billing_address: factories['io.flow.common.v0.models.billing_address'](),
|
|
3650
|
-
order: factories['io.flow.payment.v0.models.authorization_order_reference'](),
|
|
3651
|
-
payment_order_reference: factories['io.flow.payment.v0.unions.payment_order_reference'](),
|
|
3652
|
-
ip: factories.string(),
|
|
3653
|
-
result: factories['io.flow.payment.v0.models.authorization_result'](),
|
|
3654
|
-
created_at: factories.date_time_iso_8601(),
|
|
3655
|
-
expires_at: factories.date_time_iso_8601(),
|
|
3656
|
-
base: factories['io.flow.common.v0.models.money'](),
|
|
3657
|
-
processor: factories['io.flow.payment.v0.unions.expandable_payment_processor'](),
|
|
3658
|
-
stored_method_usage_step: factories['io.flow.payment.v0.enums.stored_method_usage_step'](),
|
|
3659
|
-
authorized_at: factories.date_time_iso_8601(),
|
|
3660
|
-
authorization_request_id: factories.string(),
|
|
3661
|
-
}); },
|
|
3662
|
-
'io.flow.payment.v0.models.card_browser_action_configuration': function () { return ({
|
|
3663
|
-
discriminator: 'card_browser_action_configuration',
|
|
3664
|
-
viewport: factories['io.flow.payment.v0.enums.threeds_two_challenge_viewport'](),
|
|
3665
|
-
}); },
|
|
3666
|
-
'io.flow.payment.v0.models.card_confirmation_summary': function () { return ({
|
|
3667
|
-
discriminator: 'card_confirmation_summary',
|
|
3668
|
-
type: factories['io.flow.payment.v0.enums.card_type'](),
|
|
3669
|
-
funding_type: factories.string(),
|
|
3670
|
-
expiration: factories['io.flow.payment.v0.models.expiration'](),
|
|
3671
|
-
iin: factories.string(),
|
|
3672
|
-
issuer: factories['io.flow.payment.v0.models.issuer_summary'](),
|
|
3673
|
-
last4: factories.string(),
|
|
3674
|
-
}); },
|
|
3675
|
-
'io.flow.payment.v0.models.card_error': function () { return ({
|
|
3676
|
-
code: factories['io.flow.payment.v0.enums.card_error_code'](),
|
|
3677
|
-
messages: arrayOf(function () { return factories.string(); }),
|
|
3678
|
-
avs: factories['io.flow.payment.v0.models.avs'](),
|
|
3679
|
-
cvv: factories['io.flow.payment.v0.models.cvv'](),
|
|
3680
|
-
}); },
|
|
3681
|
-
'io.flow.payment.v0.models.card_form': function () { return ({
|
|
3682
|
-
number: factories.string(),
|
|
3683
|
-
cipher: factories.string(),
|
|
3684
|
-
expiration_month: factories.integer(),
|
|
3685
|
-
expiration_year: factories.integer(),
|
|
3686
|
-
name: factories.string(),
|
|
3687
|
-
cvv: factories.string(),
|
|
3688
|
-
address: factories['io.flow.common.v0.models.billing_address'](),
|
|
3689
|
-
ip: factories.string(),
|
|
3690
|
-
challenge_text: factories.string(),
|
|
3691
|
-
challenge_cipher: factories.string(),
|
|
3692
|
-
token_type: factories['io.flow.payment.v0.enums.token_type'](),
|
|
3693
|
-
requested_currency: factories.string(),
|
|
3694
|
-
metadata: factories['io.flow.payment.v0.models.card_metadata'](),
|
|
3695
|
-
}); },
|
|
3696
|
-
'io.flow.payment.v0.models.card_metadata': function () { return ({
|
|
3697
|
-
merchant_of_record: factories['io.flow.common.v0.enums.order_merchant_of_record'](),
|
|
3698
|
-
}); },
|
|
3699
|
-
'io.flow.payment.v0.models.card_nonce_form': function () { return ({
|
|
3700
|
-
token: factories.string(),
|
|
3701
|
-
}); },
|
|
3702
|
-
'io.flow.payment.v0.models.card_payment_source': function () { return ({
|
|
3703
|
-
discriminator: 'card_payment_source',
|
|
3704
|
-
id: factories.string(),
|
|
3705
|
-
actions: arrayOf(function () { return factories['io.flow.payment.v0.models.payment_source_confirmation_action'](); }),
|
|
3706
|
-
summary: factories['io.flow.payment.v0.models.card_payment_source_summary'](),
|
|
3707
|
-
}); },
|
|
3708
|
-
'io.flow.payment.v0.models.card_payment_source_authorization_form': function () { return ({
|
|
3709
|
-
discriminator: 'card_payment_source_authorization_form',
|
|
3710
|
-
key: factories.string(),
|
|
3711
|
-
card_payment_source_id: factories.string(),
|
|
3712
|
-
order_number: factories.string(),
|
|
3713
|
-
amount: factories.decimal(),
|
|
3714
|
-
currency: factories.string(),
|
|
3715
|
-
browser_info: factories['io.flow.payment.v0.models.browser_info'](),
|
|
3716
|
-
inline_action_configuration: factories['io.flow.payment.v0.unions.inline_action_configuration'](),
|
|
3717
|
-
}); },
|
|
3718
|
-
'io.flow.payment.v0.models.card_payment_source_form': function () { return ({
|
|
3719
|
-
discriminator: 'card_payment_source_form',
|
|
3720
|
-
customer_number: factories.string(),
|
|
3721
|
-
card_id: factories.string(),
|
|
3722
|
-
}); },
|
|
3723
|
-
'io.flow.payment.v0.models.card_payment_source_summary': function () { return ({
|
|
3724
|
-
customer_number: factories.string(),
|
|
3725
|
-
card: factories['io.flow.payment.v0.models.card_summary'](),
|
|
3726
|
-
}); },
|
|
3727
|
-
'io.flow.payment.v0.models.card_reference': function () { return ({
|
|
3728
|
-
discriminator: 'card_reference',
|
|
3729
|
-
id: factories.string(),
|
|
3730
|
-
token: factories.string(),
|
|
3731
|
-
}); },
|
|
3732
|
-
'io.flow.payment.v0.models.card_summary': function () { return ({
|
|
3733
|
-
discriminator: 'card_summary',
|
|
3734
|
-
id: factories.string(),
|
|
3735
|
-
type: factories['io.flow.payment.v0.enums.card_type'](),
|
|
3736
|
-
expiration: factories['io.flow.payment.v0.models.expiration'](),
|
|
3737
|
-
iin: factories.string(),
|
|
3738
|
-
issuer: factories['io.flow.payment.v0.models.issuer_summary'](),
|
|
3739
|
-
last4: factories.string(),
|
|
3740
|
-
name: factories.string(),
|
|
3741
|
-
address: factories['io.flow.common.v0.models.billing_address'](),
|
|
3742
|
-
}); },
|
|
3743
|
-
'io.flow.payment.v0.models.card_token_form': function () { return ({
|
|
3744
|
-
token: factories.string(),
|
|
3745
|
-
}); },
|
|
3746
|
-
'io.flow.payment.v0.models.card_version': function () { return ({
|
|
3747
|
-
id: factories.string(),
|
|
3748
|
-
timestamp: factories.date_time_iso_8601(),
|
|
3749
|
-
type: factories['io.flow.common.v0.enums.change_type'](),
|
|
3750
|
-
card: factories['io.flow.payment.v0.models.card'](),
|
|
3751
|
-
}); },
|
|
3752
|
-
'io.flow.payment.v0.models.cryptopay_authorization_details': function () { return ({
|
|
3753
|
-
discriminator: 'cryptopay_authorization_details',
|
|
3754
|
-
payment_id: factories.string(),
|
|
3755
|
-
}); },
|
|
3756
|
-
'io.flow.payment.v0.models.cvv': function () { return ({
|
|
3757
|
-
code: factories['io.flow.payment.v0.enums.cvv_code'](),
|
|
3758
|
-
description: factories.string(),
|
|
3759
|
-
}); },
|
|
3760
|
-
'io.flow.payment.v0.models.cvv_result': function () { return ({
|
|
3761
|
-
code: factories['io.flow.payment.v0.enums.cvv_result_code'](),
|
|
3762
|
-
raw: factories.string(),
|
|
3763
|
-
}); },
|
|
3764
|
-
'io.flow.payment.v0.models.device_details_browser': function () { return ({
|
|
3765
|
-
type: 'browser',
|
|
3766
|
-
user_agent: factories.string(),
|
|
3767
|
-
origin: factories.string(),
|
|
3768
|
-
accept_language: factories.string(),
|
|
3769
|
-
ip: factories.string(),
|
|
3770
|
-
time_zone_offset: factories.integer(),
|
|
3771
|
-
date_string: factories.string(),
|
|
3772
|
-
navigator_language: factories.string(),
|
|
3773
|
-
navigator_hardware_concurrency: factories.integer(),
|
|
3774
|
-
cookie_created_at: factories.integer(),
|
|
3775
|
-
session_duration: factories.integer(),
|
|
3776
|
-
fingerprint: factories.string(),
|
|
3777
|
-
fraud_references: objectOf(function () { return factories.string(); }),
|
|
3778
|
-
}); },
|
|
3779
|
-
'io.flow.payment.v0.models.direct_authorization_form': function () { return ({
|
|
3780
|
-
discriminator: 'direct_authorization_form',
|
|
3781
|
-
token: factories.string(),
|
|
3782
|
-
amount: factories.decimal(),
|
|
3783
|
-
currency: factories.string(),
|
|
3784
|
-
customer: factories['io.flow.common.v0.models.order_customer'](),
|
|
3785
|
-
key: factories.string(),
|
|
3786
|
-
cvv: factories.string(),
|
|
3787
|
-
attributes: objectOf(function () { return factories.string(); }),
|
|
3788
|
-
destination: factories['io.flow.common.v0.models.address'](),
|
|
3789
|
-
billing_address: factories['io.flow.common.v0.models.billing_address'](),
|
|
3790
|
-
ip: factories.string(),
|
|
3791
|
-
options: arrayOf(function () { return factories['io.flow.payment.v0.enums.authorization_option'](); }),
|
|
3792
|
-
redirect_urls: factories['io.flow.payment.v0.models.post_payment_redirect_urls'](),
|
|
3793
|
-
browser_info: factories['io.flow.payment.v0.models.browser_info'](),
|
|
3794
|
-
inline_action_configuration: factories['io.flow.payment.v0.unions.inline_action_configuration'](),
|
|
3795
|
-
}); },
|
|
3796
|
-
'io.flow.payment.v0.models.direct_debit': function () { return ({
|
|
3797
|
-
discriminator: 'direct_debit',
|
|
3798
|
-
bank_name: factories.string(),
|
|
3799
|
-
bic: factories.string(),
|
|
3800
|
-
iban: factories.string(),
|
|
3801
|
-
routing_number: factories.string(),
|
|
3802
|
-
last4: factories.string(),
|
|
3803
|
-
account_holder_name: factories.string(),
|
|
3804
|
-
}); },
|
|
3805
|
-
'io.flow.payment.v0.models.dispute_reference': function () { return ({
|
|
3806
|
-
discriminator: 'dispute_reference',
|
|
3807
|
-
id: factories.string(),
|
|
3808
|
-
key: factories.string(),
|
|
3809
|
-
}); },
|
|
3810
|
-
'io.flow.payment.v0.models.exchanged_money': function () { return ({
|
|
3811
|
-
fx_rate: factories.decimal(),
|
|
3812
|
-
money: factories['io.flow.common.v0.models.money'](),
|
|
3813
|
-
}); },
|
|
3814
|
-
'io.flow.payment.v0.models.expiration': function () { return ({
|
|
3815
|
-
month: factories.integer(),
|
|
3816
|
-
year: factories.integer(),
|
|
3817
|
-
}); },
|
|
3818
|
-
'io.flow.payment.v0.models.external_card': function () { return ({
|
|
3819
|
-
discriminator: 'external_card',
|
|
3820
|
-
id: factories.string(),
|
|
3821
|
-
type: factories['io.flow.payment.v0.enums.card_type'](),
|
|
3822
|
-
}); },
|
|
3823
|
-
'io.flow.payment.v0.models.google_pay_authorization_payload': function () { return ({
|
|
3824
|
-
discriminator: 'google_pay_authorization_payload',
|
|
3825
|
-
payload: factories.object(),
|
|
3826
|
-
}); },
|
|
3827
|
-
'io.flow.payment.v0.models.identifier_form': function () { return ({
|
|
3828
|
-
primary: factories.boolean(),
|
|
3829
|
-
name: factories.string(),
|
|
3830
|
-
}); },
|
|
3831
|
-
'io.flow.payment.v0.models.inline_authorization_details': function () { return ({
|
|
3832
|
-
discriminator: 'inline_authorization_details',
|
|
3833
|
-
id: factories.string(),
|
|
3834
|
-
client_token: factories.string(),
|
|
3835
|
-
parameters: factories.object(),
|
|
3836
|
-
}); },
|
|
3837
|
-
'io.flow.payment.v0.models.inline_authorization_form': function () { return ({
|
|
3838
|
-
discriminator: 'inline_authorization_form',
|
|
3839
|
-
method: factories.string(),
|
|
3840
|
-
issuer: factories['io.flow.payment.v0.models.issuer_reference'](),
|
|
3841
|
-
order_number: factories.string(),
|
|
3842
|
-
amount: factories.decimal(),
|
|
3843
|
-
currency: factories.string(),
|
|
3844
|
-
billing_address: factories['io.flow.common.v0.models.billing_address'](),
|
|
3845
|
-
key: factories.string(),
|
|
3846
|
-
attributes: objectOf(function () { return factories.string(); }),
|
|
3847
|
-
ip: factories.string(),
|
|
3848
|
-
payload: factories['io.flow.payment.v0.models.authorization_payload'](),
|
|
3849
|
-
}); },
|
|
3850
|
-
'io.flow.payment.v0.models.issuer_reference': function () { return ({
|
|
3851
|
-
id: factories.string(),
|
|
3852
|
-
}); },
|
|
3853
|
-
'io.flow.payment.v0.models.issuer_summary': function () { return ({
|
|
3854
|
-
iin: factories.string(),
|
|
3855
|
-
name: factories.string(),
|
|
3856
|
-
country: factories.string(),
|
|
3857
|
-
}); },
|
|
3858
|
-
'io.flow.payment.v0.models.issuer_v1': function () { return ({
|
|
3859
|
-
iin: factories.string(),
|
|
3860
|
-
card_brand: factories.string(),
|
|
3861
|
-
card_type: factories.string(),
|
|
3862
|
-
name: factories.string(),
|
|
3863
|
-
country: factories.string(),
|
|
3864
|
-
}); },
|
|
3865
|
-
'io.flow.payment.v0.models.klarna_payment_method_category': function () { return ({
|
|
3866
|
-
id: factories.string(),
|
|
3867
|
-
name: factories.string(),
|
|
3868
|
-
standard_asset_url: factories.string(),
|
|
3869
|
-
descriptive_asset_url: factories.string(),
|
|
3870
|
-
}); },
|
|
3871
|
-
'io.flow.payment.v0.models.klarna_sdk_authorization_result_action_details': function () { return ({
|
|
3872
|
-
discriminator: 'klarna_sdk_authorization_result_action_details',
|
|
3873
|
-
client_token: factories.string(),
|
|
3874
|
-
payment_method_categories: arrayOf(function () { return factories['io.flow.payment.v0.models.klarna_payment_method_category'](); }),
|
|
3875
|
-
}); },
|
|
3876
|
-
'io.flow.payment.v0.models.merchant_of_record_authorization_form': function () { return ({
|
|
3877
|
-
discriminator: 'merchant_of_record_authorization_form',
|
|
3878
|
-
token: factories.string(),
|
|
3879
|
-
order_number: factories.string(),
|
|
3880
|
-
amount: factories.decimal(),
|
|
3881
|
-
currency: factories.string(),
|
|
3882
|
-
key: factories.string(),
|
|
3883
|
-
cvv: factories.string(),
|
|
3884
|
-
attributes: objectOf(function () { return factories.string(); }),
|
|
3885
|
-
ip: factories.string(),
|
|
3886
|
-
options: arrayOf(function () { return factories['io.flow.payment.v0.enums.authorization_option'](); }),
|
|
3887
|
-
redirect_urls: factories['io.flow.payment.v0.models.post_payment_redirect_urls'](),
|
|
3888
|
-
browser_info: factories['io.flow.payment.v0.models.browser_info'](),
|
|
3889
|
-
inline_action_configuration: factories['io.flow.payment.v0.unions.inline_action_configuration'](),
|
|
3890
|
-
}); },
|
|
3891
|
-
'io.flow.payment.v0.models.merchant_of_record_payment_form': function () { return ({
|
|
3892
|
-
discriminator: 'merchant_of_record_payment_form',
|
|
3893
|
-
method: factories.string(),
|
|
3894
|
-
order_number: factories.string(),
|
|
3895
|
-
amount: factories.decimal(),
|
|
3896
|
-
currency: factories.string(),
|
|
3897
|
-
}); },
|
|
3898
|
-
'io.flow.payment.v0.models.online_authorization': function () { return ({
|
|
3899
|
-
discriminator: 'online_authorization',
|
|
3900
|
-
id: factories.string(),
|
|
3901
|
-
key: factories.string(),
|
|
3902
|
-
method: factories['io.flow.reference.v0.models.payment_method'](),
|
|
3903
|
-
merchant_of_record: factories['io.flow.common.v0.enums.merchant_of_record'](),
|
|
3904
|
-
details: factories['io.flow.payment.v0.unions.online_authorization_details'](),
|
|
3905
|
-
payment: factories.object(),
|
|
3906
|
-
amount: factories.decimal(),
|
|
3907
|
-
currency: factories.string(),
|
|
3908
|
-
requested: factories['io.flow.common.v0.models.money'](),
|
|
3909
|
-
customer: factories['io.flow.common.v0.models.order_customer'](),
|
|
3910
|
-
attributes: objectOf(function () { return factories.string(); }),
|
|
3911
|
-
destination: factories['io.flow.common.v0.models.address'](),
|
|
3912
|
-
billing_address: factories['io.flow.common.v0.models.billing_address'](),
|
|
3913
|
-
order: factories['io.flow.payment.v0.models.authorization_order_reference'](),
|
|
3914
|
-
payment_order_reference: factories['io.flow.payment.v0.unions.payment_order_reference'](),
|
|
3915
|
-
ip: factories.string(),
|
|
3916
|
-
result: factories['io.flow.payment.v0.models.authorization_result'](),
|
|
3917
|
-
created_at: factories.date_time_iso_8601(),
|
|
3918
|
-
expires_at: factories.date_time_iso_8601(),
|
|
3919
|
-
base: factories['io.flow.common.v0.models.money'](),
|
|
3920
|
-
processor: factories['io.flow.payment.v0.unions.expandable_payment_processor'](),
|
|
3921
|
-
confirmation_details: factories['io.flow.payment.v0.unions.confirmation_details'](),
|
|
3922
|
-
authorized_at: factories.date_time_iso_8601(),
|
|
3923
|
-
authorization_request_id: factories.string(),
|
|
3924
|
-
}); },
|
|
3925
|
-
'io.flow.payment.v0.models.online_payment_authorization_form': function () { return ({
|
|
3926
|
-
discriminator: 'online_payment_authorization_form',
|
|
3927
|
-
payment_id: factories.string(),
|
|
3928
|
-
key: factories.string(),
|
|
3929
|
-
}); },
|
|
3930
|
-
'io.flow.payment.v0.models.payment_cryptopay': function () { return ({
|
|
3931
|
-
discriminator: 'payment_cryptopay',
|
|
3932
|
-
id: factories.string(),
|
|
3933
|
-
order: factories['io.flow.payment.v0.models.authorization_order_reference'](),
|
|
3934
|
-
amount: factories.decimal(),
|
|
3935
|
-
currency: factories.string(),
|
|
3936
|
-
created_at: factories.date_time_iso_8601(),
|
|
3937
|
-
cryptopay: factories['io.flow.payment.v0.unions.online_authorization_details'](),
|
|
3938
|
-
}); },
|
|
3939
|
-
'io.flow.payment.v0.models.payment_error': function () { return ({
|
|
3940
|
-
code: factories.string(),
|
|
3941
|
-
messages: arrayOf(function () { return factories.string(); }),
|
|
3942
|
-
codes: arrayOf(function () { return factories['io.flow.payment.v0.enums.payment_error_code'](); }),
|
|
3943
|
-
}); },
|
|
3944
|
-
'io.flow.payment.v0.models.payment_fee': function () { return ({
|
|
3945
|
-
type: factories['io.flow.payment.v0.enums.payment_fee_type'](),
|
|
3946
|
-
money: factories['io.flow.common.v0.models.money'](),
|
|
3947
|
-
base: factories['io.flow.common.v0.models.money'](),
|
|
3948
|
-
}); },
|
|
3949
|
-
'io.flow.payment.v0.models.payment_payment_request_reference': function () { return ({
|
|
3950
|
-
discriminator: 'payment_request',
|
|
3951
|
-
payment_request_id: factories.string(),
|
|
3952
|
-
}); },
|
|
3953
|
-
'io.flow.payment.v0.models.payment_paypal': function () { return ({
|
|
3954
|
-
discriminator: 'payment_paypal',
|
|
3955
|
-
id: factories.string(),
|
|
3956
|
-
order: factories['io.flow.payment.v0.models.authorization_order_reference'](),
|
|
3957
|
-
amount: factories.decimal(),
|
|
3958
|
-
currency: factories.string(),
|
|
3959
|
-
created_at: factories.date_time_iso_8601(),
|
|
3960
|
-
paypal: factories['io.flow.payment.v0.unions.online_authorization_details'](),
|
|
3961
|
-
}); },
|
|
3962
|
-
'io.flow.payment.v0.models.payment_processor': function () { return ({
|
|
3963
|
-
discriminator: 'payment_processor',
|
|
3964
|
-
processor: factories.string(),
|
|
3965
|
-
operation_identifier: factories['io.flow.payment.v0.models.payment_processor_identifier'](),
|
|
3966
|
-
account: factories['io.flow.payment.v0.models.payment_processor_account'](),
|
|
3967
|
-
transaction_details: factories['io.flow.payment.v0.unions.payment_processor_transaction_details'](),
|
|
3968
|
-
}); },
|
|
3969
|
-
'io.flow.payment.v0.models.payment_processor_account': function () { return ({
|
|
3970
|
-
organization: factories.string(),
|
|
3971
|
-
key: factories.string(),
|
|
3972
|
-
identifier: factories['io.flow.payment.v0.models.payment_processor_identifier'](),
|
|
3973
|
-
parent_account: factories['io.flow.payment.v0.models.payment_processor_account_reference'](),
|
|
3974
|
-
}); },
|
|
3975
|
-
'io.flow.payment.v0.models.payment_processor_account_reference': function () { return ({
|
|
3976
|
-
organization: factories.string(),
|
|
3977
|
-
key: factories.string(),
|
|
3978
|
-
}); },
|
|
3979
|
-
'io.flow.payment.v0.models.payment_processor_identifier': function () { return ({
|
|
3980
|
-
id: factories.string(),
|
|
3981
|
-
label: factories.string(),
|
|
3982
|
-
}); },
|
|
3983
|
-
'io.flow.payment.v0.models.payment_processor_reference': function () { return ({
|
|
3984
|
-
discriminator: 'payment_processor_reference',
|
|
3985
|
-
processor: factories.string(),
|
|
3986
|
-
}); },
|
|
3987
|
-
'io.flow.payment.v0.models.payment_processor_transaction_details_apm': function () { return ({
|
|
3988
|
-
discriminator: 'apm',
|
|
3989
|
-
transaction_identifier: factories.string(),
|
|
3990
|
-
capture_identifier: factories.string(),
|
|
3991
|
-
method_type: factories.string(),
|
|
3992
|
-
result_status: factories.string(),
|
|
3993
|
-
reason_code: factories.string(),
|
|
3994
|
-
}); },
|
|
3995
|
-
'io.flow.payment.v0.models.payment_processor_transaction_details_card': function () { return ({
|
|
3996
|
-
discriminator: 'card',
|
|
3997
|
-
transaction_identifier: factories.string(),
|
|
3998
|
-
method_type: factories.string(),
|
|
3999
|
-
result_status: factories.string(),
|
|
4000
|
-
reason_code: factories.string(),
|
|
4001
|
-
avs_result_code: factories.string(),
|
|
4002
|
-
cvv_result_code: factories.string(),
|
|
4003
|
-
threeds_result_code: factories.string(),
|
|
4004
|
-
}); },
|
|
4005
|
-
'io.flow.payment.v0.models.payment_reference': function () { return ({
|
|
4006
|
-
id: factories.string(),
|
|
4007
|
-
}); },
|
|
4008
|
-
'io.flow.payment.v0.models.payment_source_confirmation_action': function () { return ({
|
|
4009
|
-
type: factories['io.flow.payment.v0.enums.payment_source_confirmation_action_type'](),
|
|
4010
|
-
}); },
|
|
4011
|
-
'io.flow.payment.v0.models.payment_version': function () { return ({
|
|
4012
|
-
id: factories.string(),
|
|
4013
|
-
timestamp: factories.date_time_iso_8601(),
|
|
4014
|
-
type: factories['io.flow.common.v0.enums.change_type'](),
|
|
4015
|
-
payment: factories['io.flow.payment.v0.unions.payment'](),
|
|
4016
|
-
}); },
|
|
4017
|
-
'io.flow.payment.v0.models.paypal_authorization_details': function () { return ({
|
|
4018
|
-
discriminator: 'paypal_authorization_details',
|
|
4019
|
-
payment_id: factories.string(),
|
|
4020
|
-
internal_payment_id: factories.string(),
|
|
4021
|
-
payment_method: factories.string(),
|
|
4022
|
-
payment_state: factories.string(),
|
|
4023
|
-
payer_id: factories.string(),
|
|
4024
|
-
payer_email: factories.string(),
|
|
4025
|
-
payer_status: factories.string(),
|
|
4026
|
-
approval_url: factories.string(),
|
|
4027
|
-
}); },
|
|
4028
|
-
'io.flow.payment.v0.models.paypal_authorization_form': function () { return ({
|
|
4029
|
-
discriminator: 'paypal_authorization_form',
|
|
4030
|
-
paypal_payment_id: factories.string(),
|
|
4031
|
-
paypal_payer_id: factories.string(),
|
|
4032
|
-
key: factories.string(),
|
|
4033
|
-
attributes: objectOf(function () { return factories.string(); }),
|
|
4034
|
-
ip: factories.string(),
|
|
4035
|
-
}); },
|
|
4036
|
-
'io.flow.payment.v0.models.post_payment_redirect_urls': function () { return ({
|
|
4037
|
-
success: factories.string(),
|
|
4038
|
-
failure: factories.string(),
|
|
4039
|
-
}); },
|
|
4040
|
-
'io.flow.payment.v0.models.public_key': function () { return ({
|
|
4041
|
-
id: factories.string(),
|
|
4042
|
-
}); },
|
|
4043
|
-
'io.flow.payment.v0.models.redirect_authorization_details': function () { return ({
|
|
4044
|
-
discriminator: 'redirect_authorization_details',
|
|
4045
|
-
id: factories.string(),
|
|
4046
|
-
payment_redirect_url: factories.string(),
|
|
4047
|
-
}); },
|
|
4048
|
-
'io.flow.payment.v0.models.redirect_authorization_form': function () { return ({
|
|
4049
|
-
discriminator: 'redirect_authorization_form',
|
|
4050
|
-
method: factories.string(),
|
|
4051
|
-
issuer: factories['io.flow.payment.v0.models.issuer_reference'](),
|
|
4052
|
-
order_number: factories.string(),
|
|
4053
|
-
amount: factories.decimal(),
|
|
4054
|
-
currency: factories.string(),
|
|
4055
|
-
redirect_urls: factories['io.flow.payment.v0.models.post_payment_redirect_urls'](),
|
|
4056
|
-
key: factories.string(),
|
|
4057
|
-
attributes: objectOf(function () { return factories.string(); }),
|
|
4058
|
-
ip: factories.string(),
|
|
4059
|
-
}); },
|
|
4060
|
-
'io.flow.payment.v0.models.refund': function () { return ({
|
|
4061
|
-
id: factories.string(),
|
|
4062
|
-
key: factories.string(),
|
|
4063
|
-
authorization: factories['io.flow.payment.v0.models.authorization_reference'](),
|
|
4064
|
-
amount: factories.decimal(),
|
|
4065
|
-
currency: factories.string(),
|
|
4066
|
-
requested: factories['io.flow.common.v0.models.money'](),
|
|
4067
|
-
captures: arrayOf(function () { return factories['io.flow.payment.v0.models.refund_capture_summary'](); }),
|
|
4068
|
-
created_at: factories.date_time_iso_8601(),
|
|
4069
|
-
attributes: objectOf(function () { return factories.string(); }),
|
|
4070
|
-
status: factories['io.flow.payment.v0.enums.refund_status'](),
|
|
4071
|
-
base: factories['io.flow.common.v0.models.money'](),
|
|
4072
|
-
failure_category: factories['io.flow.payment.v0.enums.refund_failure_category'](),
|
|
4073
|
-
failure_psp_reason: factories.string(),
|
|
4074
|
-
}); },
|
|
4075
|
-
'io.flow.payment.v0.models.refund_capture': function () { return ({
|
|
4076
|
-
id: factories.string(),
|
|
4077
|
-
refund: factories['io.flow.payment.v0.models.refund'](),
|
|
4078
|
-
capture: factories['io.flow.payment.v0.models.capture'](),
|
|
4079
|
-
amount: factories.decimal(),
|
|
4080
|
-
currency: factories.string(),
|
|
4081
|
-
base: factories['io.flow.common.v0.models.money'](),
|
|
4082
|
-
status: factories['io.flow.payment.v0.enums.refund_status'](),
|
|
4083
|
-
}); },
|
|
4084
|
-
'io.flow.payment.v0.models.refund_capture_summary': function () { return ({
|
|
4085
|
-
capture: factories['io.flow.payment.v0.models.capture'](),
|
|
4086
|
-
amount: factories.decimal(),
|
|
4087
|
-
}); },
|
|
4088
|
-
'io.flow.payment.v0.models.refund_error': function () { return ({
|
|
4089
|
-
code: factories['io.flow.error.v0.enums.generic_error_code'](),
|
|
4090
|
-
messages: arrayOf(function () { return factories.string(); }),
|
|
4091
|
-
decline_code: factories['io.flow.payment.v0.enums.refund_decline_code'](),
|
|
4092
|
-
}); },
|
|
4093
|
-
'io.flow.payment.v0.models.refund_form': function () { return ({
|
|
4094
|
-
authorization_id: factories.string(),
|
|
4095
|
-
capture_id: factories.string(),
|
|
4096
|
-
order_number: factories.string(),
|
|
4097
|
-
key: factories.string(),
|
|
4098
|
-
amount: factories.decimal(),
|
|
4099
|
-
currency: factories.string(),
|
|
4100
|
-
rma_key: factories.string(),
|
|
4101
|
-
attributes: objectOf(function () { return factories.string(); }),
|
|
4102
|
-
}); },
|
|
4103
|
-
'io.flow.payment.v0.models.refund_identifier': function () { return ({
|
|
4104
|
-
id: factories.string(),
|
|
4105
|
-
refund: factories['io.flow.payment.v0.models.refund_reference'](),
|
|
4106
|
-
name: factories.string(),
|
|
4107
|
-
identifier: factories.string(),
|
|
4108
|
-
primary: factories.boolean(),
|
|
4109
|
-
}); },
|
|
4110
|
-
'io.flow.payment.v0.models.refund_order_summary': function () { return ({
|
|
4111
|
-
order_number: factories.string(),
|
|
4112
|
-
currency: factories.string(),
|
|
4113
|
-
captured: factories.decimal(),
|
|
4114
|
-
refunded: factories.decimal(),
|
|
4115
|
-
amounts: factories['io.flow.payment.v0.models.refund_order_summary_amounts'](),
|
|
4116
|
-
}); },
|
|
4117
|
-
'io.flow.payment.v0.models.refund_order_summary_amounts': function () { return ({
|
|
4118
|
-
balance: factories.decimal(),
|
|
4119
|
-
balance_excluding_shipping: factories.decimal(),
|
|
4120
|
-
shipping: factories.decimal(),
|
|
4121
|
-
}); },
|
|
4122
|
-
'io.flow.payment.v0.models.refund_reference': function () { return ({
|
|
4123
|
-
discriminator: 'refund_reference',
|
|
4124
|
-
id: factories.string(),
|
|
4125
|
-
key: factories.string(),
|
|
4126
|
-
}); },
|
|
4127
|
-
'io.flow.payment.v0.models.refund_version': function () { return ({
|
|
4128
|
-
id: factories.string(),
|
|
4129
|
-
timestamp: factories.date_time_iso_8601(),
|
|
4130
|
-
type: factories['io.flow.common.v0.enums.change_type'](),
|
|
4131
|
-
refund: factories['io.flow.payment.v0.models.refund'](),
|
|
4132
|
-
}); },
|
|
4133
|
-
'io.flow.payment.v0.models.reversal': function () { return ({
|
|
4134
|
-
id: factories.string(),
|
|
4135
|
-
key: factories.string(),
|
|
4136
|
-
authorization: factories['io.flow.payment.v0.models.authorization_reference'](),
|
|
4137
|
-
status: factories['io.flow.payment.v0.enums.reversal_status'](),
|
|
4138
|
-
amount: factories.decimal(),
|
|
4139
|
-
currency: factories.string(),
|
|
4140
|
-
requested: factories['io.flow.common.v0.models.money'](),
|
|
4141
|
-
created_at: factories.date_time_iso_8601(),
|
|
4142
|
-
attributes: objectOf(function () { return factories.string(); }),
|
|
4143
|
-
base: factories['io.flow.common.v0.models.money'](),
|
|
4144
|
-
}); },
|
|
4145
|
-
'io.flow.payment.v0.models.reversal_error': function () { return ({
|
|
4146
|
-
code: factories.string(),
|
|
4147
|
-
messages: arrayOf(function () { return factories.string(); }),
|
|
4148
|
-
codes: arrayOf(function () { return factories['io.flow.payment.v0.enums.reversal_error_code'](); }),
|
|
4149
|
-
}); },
|
|
4150
|
-
'io.flow.payment.v0.models.reversal_form': function () { return ({
|
|
4151
|
-
key: factories.string(),
|
|
4152
|
-
authorization_id: factories.string(),
|
|
4153
|
-
amount: factories.decimal(),
|
|
4154
|
-
currency: factories.string(),
|
|
4155
|
-
attributes: objectOf(function () { return factories.string(); }),
|
|
4156
|
-
}); },
|
|
4157
|
-
'io.flow.payment.v0.models.reversal_put_form': function () { return ({
|
|
4158
|
-
authorization_id: factories.string(),
|
|
4159
|
-
amount: factories.decimal(),
|
|
4160
|
-
currency: factories.string(),
|
|
4161
|
-
attributes: objectOf(function () { return factories.string(); }),
|
|
4162
|
-
}); },
|
|
4163
|
-
'io.flow.payment.v0.models.reversal_version': function () { return ({
|
|
4164
|
-
id: factories.string(),
|
|
4165
|
-
timestamp: factories.date_time_iso_8601(),
|
|
4166
|
-
type: factories['io.flow.common.v0.enums.change_type'](),
|
|
4167
|
-
reversal: factories['io.flow.payment.v0.models.reversal'](),
|
|
4168
|
-
}); },
|
|
4169
|
-
'io.flow.payment.v0.models.select_issuer_option_action_details': function () { return ({
|
|
4170
|
-
discriminator: 'select_issuer_option_action_details',
|
|
4171
|
-
issuer_options: arrayOf(function () { return factories['io.flow.payment.v0.models.issuer_reference'](); }),
|
|
4172
|
-
}); },
|
|
4173
|
-
'io.flow.payment.v0.models.stripe_authentication_data': function () { return ({
|
|
4174
|
-
discriminator: 'stripe_authentication_data',
|
|
4175
|
-
secret_key_reference: factories.string(),
|
|
4176
|
-
}); },
|
|
4177
|
-
'io.flow.payment.v0.models.stripe_authentication_data_form': function () { return ({
|
|
4178
|
-
discriminator: 'stripe_authentication_data_form',
|
|
4179
|
-
account_id: factories.string(),
|
|
4180
|
-
secret_key: factories.string(),
|
|
4181
|
-
key: factories.string(),
|
|
4182
|
-
}); },
|
|
4183
|
-
'io.flow.payment.v0.models.stripe_authorization_result_action_details': function () { return ({
|
|
4184
|
-
discriminator: 'stripe_authorization_result_action_details',
|
|
4185
|
-
client_secret: factories.string(),
|
|
4186
|
-
payment_method_id: factories.string(),
|
|
4187
|
-
publishable_key: factories.string(),
|
|
4188
|
-
}); },
|
|
4189
|
-
'io.flow.payment.v0.models.three_d_secure': function () { return ({
|
|
4190
|
-
code: factories['io.flow.payment.v0.enums.three_d_secure_code'](),
|
|
4191
|
-
description: factories.string(),
|
|
4192
|
-
eci: factories.string(),
|
|
4193
|
-
liability_sift: factories.boolean(),
|
|
4194
|
-
version: factories.string(),
|
|
4195
|
-
authenticated: factories.boolean(),
|
|
4196
|
-
authenticated_result: factories.string(),
|
|
4197
|
-
offered: factories.boolean(),
|
|
4198
|
-
offered_result: factories.string(),
|
|
4199
|
-
sca_exemption: factories.string(),
|
|
4200
|
-
}); },
|
|
4201
|
-
'io.flow.payment.v0.models.threeds_challenge_action_details': function () { return ({
|
|
4202
|
-
discriminator: 'threeds_challenge_action_details',
|
|
4203
|
-
threeds_challenge_action: factories['io.flow.payment.v0.unions.threeds_challenge_action'](),
|
|
4204
|
-
expires_at: factories.date_time_iso_8601(),
|
|
4205
|
-
}); },
|
|
4206
|
-
'io.flow.payment.v0.models.threeds_identify_action_details': function () { return ({
|
|
4207
|
-
discriminator: 'threeds_identify_action_details',
|
|
4208
|
-
threeds_identify_action: factories['io.flow.payment.v0.unions.threeds_identify_action'](),
|
|
4209
|
-
expires_at: factories.date_time_iso_8601(),
|
|
4210
|
-
}); },
|
|
4211
|
-
'io.flow.payment.v0.models.threeds_two_challenge_request': function () { return ({
|
|
4212
|
-
discriminator: 'threeds_two_challenge_request',
|
|
4213
|
-
acs_url: factories.string(),
|
|
4214
|
-
challenge_request: factories.string(),
|
|
4215
|
-
session_data: factories.string(),
|
|
2048
|
+
timestamp: factories.date_time_iso_8601(),
|
|
2049
|
+
type: factories['io.flow.common.v0.enums.change_type'](),
|
|
2050
|
+
invitation: factories['io.flow.organization.v0.models.invitation'](),
|
|
4216
2051
|
}); },
|
|
4217
|
-
'io.flow.
|
|
4218
|
-
|
|
4219
|
-
|
|
2052
|
+
'io.flow.organization.v0.models.membership': function () { return ({
|
|
2053
|
+
id: factories.string(),
|
|
2054
|
+
organization: factories['io.flow.common.v0.unions.expandable_organization'](),
|
|
2055
|
+
user: factories['io.flow.common.v0.unions.expandable_user'](),
|
|
2056
|
+
role: factories['io.flow.common.v0.enums.role'](),
|
|
2057
|
+
roles: arrayOf(function () { return factories['io.flow.permission.v0.enums.flow_role'](); }),
|
|
4220
2058
|
}); },
|
|
4221
|
-
'io.flow.
|
|
4222
|
-
|
|
4223
|
-
|
|
4224
|
-
|
|
4225
|
-
|
|
2059
|
+
'io.flow.organization.v0.models.membership_form': function () { return ({
|
|
2060
|
+
organization: factories.string(),
|
|
2061
|
+
user: factories.string(),
|
|
2062
|
+
role: factories['io.flow.common.v0.enums.role'](),
|
|
2063
|
+
roles: arrayOf(function () { return factories['io.flow.permission.v0.enums.flow_role'](); }),
|
|
4226
2064
|
}); },
|
|
4227
|
-
'io.flow.
|
|
4228
|
-
|
|
4229
|
-
|
|
2065
|
+
'io.flow.organization.v0.models.membership_put_form': function () { return ({
|
|
2066
|
+
role: factories['io.flow.common.v0.enums.role'](),
|
|
2067
|
+
roles: arrayOf(function () { return factories['io.flow.permission.v0.enums.flow_role'](); }),
|
|
4230
2068
|
}); },
|
|
4231
|
-
'io.flow.
|
|
2069
|
+
'io.flow.organization.v0.models.membership_version': function () { return ({
|
|
4232
2070
|
id: factories.string(),
|
|
4233
|
-
|
|
4234
|
-
|
|
4235
|
-
|
|
4236
|
-
created_at: factories.date_time_iso_8601(),
|
|
4237
|
-
authorization: factories['io.flow.payment.v0.models.authorization_reference'](),
|
|
4238
|
-
transferred_at: factories.date_time_iso_8601(),
|
|
2071
|
+
timestamp: factories.date_time_iso_8601(),
|
|
2072
|
+
type: factories['io.flow.common.v0.enums.change_type'](),
|
|
2073
|
+
membership: factories['io.flow.organization.v0.models.membership'](),
|
|
4239
2074
|
}); },
|
|
4240
|
-
'io.flow.
|
|
4241
|
-
|
|
4242
|
-
|
|
4243
|
-
|
|
4244
|
-
|
|
4245
|
-
|
|
4246
|
-
|
|
4247
|
-
expiration: factories['io.flow.payment.v0.models.expiration'](),
|
|
4248
|
-
iin: factories.string(),
|
|
4249
|
-
last4: factories.string(),
|
|
4250
|
-
name: factories.string(),
|
|
4251
|
-
attributes: objectOf(function () { return factories.string(); }),
|
|
2075
|
+
'io.flow.organization.v0.models.organization_authorization': function () { return ({
|
|
2076
|
+
role: factories['io.flow.common.v0.enums.role'](),
|
|
2077
|
+
environment: factories['io.flow.common.v0.enums.environment'](),
|
|
2078
|
+
}); },
|
|
2079
|
+
'io.flow.organization.v0.models.organization_authorization_form': function () { return ({
|
|
2080
|
+
organization: factories.string(),
|
|
2081
|
+
environment: factories['io.flow.common.v0.enums.environment'](),
|
|
4252
2082
|
}); },
|
|
4253
|
-
'io.flow.
|
|
2083
|
+
'io.flow.organization.v0.models.organization_configuration_reference': function () { return ({
|
|
4254
2084
|
id: factories.string(),
|
|
4255
|
-
issuer: factories['io.flow.payment.v0.models.issuer_v1'](),
|
|
4256
|
-
virtual_card: factories['io.flow.payment.v0.models.virtual_card_reference'](),
|
|
4257
|
-
authorization: factories['io.flow.payment.v0.models.authorization_reference'](),
|
|
4258
|
-
amount: factories.decimal(),
|
|
4259
|
-
currency: factories.string(),
|
|
4260
|
-
created_at: factories.date_time_iso_8601(),
|
|
4261
2085
|
}); },
|
|
4262
|
-
'io.flow.
|
|
2086
|
+
'io.flow.organization.v0.models.organization_default_configurations': function () { return ({
|
|
4263
2087
|
id: factories.string(),
|
|
4264
|
-
|
|
4265
|
-
type: factories['io.flow.common.v0.enums.change_type'](),
|
|
4266
|
-
virtual_card_capture: factories['io.flow.payment.v0.models.virtual_card_capture'](),
|
|
2088
|
+
checkout_configuration: factories['io.flow.organization.v0.models.organization_configuration_reference'](),
|
|
4267
2089
|
}); },
|
|
4268
|
-
'io.flow.
|
|
2090
|
+
'io.flow.organization.v0.models.organization_default_configurations_form': function () { return ({
|
|
4269
2091
|
id: factories.string(),
|
|
4270
2092
|
}); },
|
|
4271
|
-
'io.flow.
|
|
2093
|
+
'io.flow.organization.v0.models.organization_form': function () { return ({
|
|
4272
2094
|
id: factories.string(),
|
|
4273
|
-
|
|
4274
|
-
|
|
4275
|
-
|
|
4276
|
-
|
|
4277
|
-
|
|
4278
|
-
|
|
2095
|
+
name: factories.string(),
|
|
2096
|
+
environment: factories['io.flow.common.v0.enums.environment'](),
|
|
2097
|
+
parent_id: factories.string(),
|
|
2098
|
+
defaults: factories['io.flow.common.v0.models.organization_defaults'](),
|
|
2099
|
+
status: factories['io.flow.common.v0.enums.organization_status'](),
|
|
2100
|
+
type: factories['io.flow.common.v0.enums.organization_type'](),
|
|
2101
|
+
}); },
|
|
2102
|
+
'io.flow.organization.v0.models.organization_put_form': function () { return ({
|
|
2103
|
+
name: factories.string(),
|
|
2104
|
+
environment: factories['io.flow.common.v0.enums.environment'](),
|
|
2105
|
+
parent_id: factories.string(),
|
|
2106
|
+
defaults: factories['io.flow.common.v0.models.organization_defaults'](),
|
|
2107
|
+
status: factories['io.flow.common.v0.enums.organization_status'](),
|
|
4279
2108
|
}); },
|
|
4280
|
-
'io.flow.
|
|
2109
|
+
'io.flow.organization.v0.models.organization_version': function () { return ({
|
|
4281
2110
|
id: factories.string(),
|
|
4282
2111
|
timestamp: factories.date_time_iso_8601(),
|
|
4283
2112
|
type: factories['io.flow.common.v0.enums.change_type'](),
|
|
4284
|
-
|
|
2113
|
+
organization: factories['io.flow.common.v0.models.organization'](),
|
|
4285
2114
|
}); },
|
|
4286
|
-
'io.flow.
|
|
2115
|
+
'io.flow.organization.v0.models.region_setting': function () { return ({
|
|
4287
2116
|
id: factories.string(),
|
|
4288
|
-
|
|
4289
|
-
|
|
4290
|
-
|
|
2117
|
+
region: factories.string(),
|
|
2118
|
+
status: factories['io.flow.common.v0.enums.availability_status'](),
|
|
2119
|
+
}); },
|
|
2120
|
+
'io.flow.organization.v0.models.region_setting_form': function () { return ({
|
|
2121
|
+
status: factories['io.flow.common.v0.enums.availability_status'](),
|
|
4291
2122
|
}); },
|
|
4292
|
-
'io.flow.payment.v0.unions.adyen_native_data': function () {
|
|
4293
|
-
var f = faker.helpers.arrayElement([
|
|
4294
|
-
function () { return factories['io.flow.payment.v0.models.adyen_identify_shopper_data'](); },
|
|
4295
|
-
function () { return factories['io.flow.payment.v0.models.adyen_challenge_shopper_data'](); },
|
|
4296
|
-
]);
|
|
4297
|
-
return f();
|
|
4298
|
-
},
|
|
4299
|
-
'io.flow.payment.v0.unions.authorization': function () {
|
|
4300
|
-
var f = faker.helpers.arrayElement([
|
|
4301
|
-
function () { return factories['io.flow.payment.v0.models.card_authorization'](); },
|
|
4302
|
-
function () { return factories['io.flow.payment.v0.models.online_authorization'](); },
|
|
4303
|
-
]);
|
|
4304
|
-
return f();
|
|
4305
|
-
},
|
|
4306
|
-
'io.flow.payment.v0.unions.authorization_form': function () {
|
|
4307
|
-
var f = faker.helpers.arrayElement([
|
|
4308
|
-
function () { return factories['io.flow.payment.v0.models.authorization_copy_form'](); },
|
|
4309
|
-
function () { return factories['io.flow.payment.v0.models.direct_authorization_form'](); },
|
|
4310
|
-
function () { return factories['io.flow.payment.v0.models.merchant_of_record_authorization_form'](); },
|
|
4311
|
-
function () { return factories['io.flow.payment.v0.models.paypal_authorization_form'](); },
|
|
4312
|
-
function () { return factories['io.flow.payment.v0.models.redirect_authorization_form'](); },
|
|
4313
|
-
function () { return factories['io.flow.payment.v0.models.inline_authorization_form'](); },
|
|
4314
|
-
function () { return factories['io.flow.payment.v0.models.ach_authorization_form'](); },
|
|
4315
|
-
function () { return factories['io.flow.payment.v0.models.card_payment_source_authorization_form'](); },
|
|
4316
|
-
function () { return factories['io.flow.payment.v0.models.online_payment_authorization_form'](); },
|
|
4317
|
-
]);
|
|
4318
|
-
return f();
|
|
4319
|
-
},
|
|
4320
|
-
'io.flow.payment.v0.unions.authorization_payload_parameters': function () {
|
|
4321
|
-
var f = faker.helpers.arrayElement([
|
|
4322
|
-
function () { return factories['io.flow.payment.v0.models.google_pay_authorization_payload'](); },
|
|
4323
|
-
function () { return factories['io.flow.payment.v0.models.apple_pay_merchant_validation_payload'](); },
|
|
4324
|
-
]);
|
|
4325
|
-
return f();
|
|
4326
|
-
},
|
|
4327
|
-
'io.flow.payment.v0.unions.authorization_result_action': function () {
|
|
4328
|
-
var f = faker.helpers.arrayElement([
|
|
4329
|
-
function () { return factories['io.flow.payment.v0.models.authorization_result_action_get'](); },
|
|
4330
|
-
function () { return factories['io.flow.payment.v0.models.authorization_result_action_post'](); },
|
|
4331
|
-
function () { return factories['io.flow.payment.v0.models.authorization_result_action_wait'](); },
|
|
4332
|
-
function () { return factories['io.flow.payment.v0.models.authorization_result_action_native'](); },
|
|
4333
|
-
]);
|
|
4334
|
-
return f();
|
|
4335
|
-
},
|
|
4336
|
-
'io.flow.payment.v0.unions.authorization_result_action_details': function () {
|
|
4337
|
-
var f = faker.helpers.arrayElement([
|
|
4338
|
-
function () { return factories['io.flow.payment.v0.models.adyen_native_action_details'](); },
|
|
4339
|
-
function () { return factories['io.flow.payment.v0.models.stripe_authorization_result_action_details'](); },
|
|
4340
|
-
function () { return factories['io.flow.payment.v0.models.threeds_identify_action_details'](); },
|
|
4341
|
-
function () { return factories['io.flow.payment.v0.models.threeds_challenge_action_details'](); },
|
|
4342
|
-
function () { return factories['io.flow.payment.v0.models.applepay_sdk_create_result_action_details'](); },
|
|
4343
|
-
function () { return factories['io.flow.payment.v0.models.applepay_sdk_validate_result_action_details'](); },
|
|
4344
|
-
function () { return factories['io.flow.payment.v0.models.klarna_sdk_authorization_result_action_details'](); },
|
|
4345
|
-
function () { return factories['io.flow.payment.v0.models.select_issuer_option_action_details'](); },
|
|
4346
|
-
]);
|
|
4347
|
-
return f();
|
|
4348
|
-
},
|
|
4349
|
-
'io.flow.payment.v0.unions.browser_action_configuration': function () {
|
|
4350
|
-
var f = faker.helpers.arrayElement([
|
|
4351
|
-
function () { return factories['io.flow.payment.v0.models.card_browser_action_configuration'](); },
|
|
4352
|
-
]);
|
|
4353
|
-
return f();
|
|
4354
|
-
},
|
|
4355
|
-
'io.flow.payment.v0.unions.confirmation_details': function () {
|
|
4356
|
-
var f = faker.helpers.arrayElement([
|
|
4357
|
-
function () { return factories['io.flow.payment.v0.models.direct_debit'](); },
|
|
4358
|
-
function () { return factories['io.flow.payment.v0.models.card_confirmation_summary'](); },
|
|
4359
|
-
]);
|
|
4360
|
-
return f();
|
|
4361
|
-
},
|
|
4362
|
-
'io.flow.payment.v0.unions.device_details': function () {
|
|
4363
|
-
var f = faker.helpers.arrayElement([function () { return factories['io.flow.payment.v0.models.device_details_browser'](); }]);
|
|
4364
|
-
return f();
|
|
4365
|
-
},
|
|
4366
|
-
'io.flow.payment.v0.unions.expandable_card': function () {
|
|
4367
|
-
var f = faker.helpers.arrayElement([
|
|
4368
|
-
function () { return factories['io.flow.payment.v0.models.card'](); },
|
|
4369
|
-
function () { return factories['io.flow.payment.v0.models.card_reference'](); },
|
|
4370
|
-
function () { return factories['io.flow.payment.v0.models.card_summary'](); },
|
|
4371
|
-
function () { return factories['io.flow.payment.v0.models.external_card'](); },
|
|
4372
|
-
]);
|
|
4373
|
-
return f();
|
|
4374
|
-
},
|
|
4375
|
-
'io.flow.payment.v0.unions.expandable_payment_processor': function () {
|
|
4376
|
-
var f = faker.helpers.arrayElement([
|
|
4377
|
-
function () { return factories['io.flow.payment.v0.models.payment_processor'](); },
|
|
4378
|
-
function () { return factories['io.flow.payment.v0.models.payment_processor_reference'](); },
|
|
4379
|
-
]);
|
|
4380
|
-
return f();
|
|
4381
|
-
},
|
|
4382
|
-
'io.flow.payment.v0.unions.gateway_authentication_data': function () {
|
|
4383
|
-
var f = faker.helpers.arrayElement([function () { return factories['io.flow.payment.v0.models.stripe_authentication_data'](); }]);
|
|
4384
|
-
return f();
|
|
4385
|
-
},
|
|
4386
|
-
'io.flow.payment.v0.unions.gateway_authentication_data_form': function () {
|
|
4387
|
-
var f = faker.helpers.arrayElement([
|
|
4388
|
-
function () { return factories['io.flow.payment.v0.models.stripe_authentication_data_form'](); },
|
|
4389
|
-
]);
|
|
4390
|
-
return f();
|
|
4391
|
-
},
|
|
4392
|
-
'io.flow.payment.v0.unions.inline_action_configuration': function () {
|
|
4393
|
-
var f = faker.helpers.arrayElement([
|
|
4394
|
-
function () { return factories['io.flow.payment.v0.models.browser_inline_action_configuration'](); },
|
|
4395
|
-
]);
|
|
4396
|
-
return f();
|
|
4397
|
-
},
|
|
4398
|
-
'io.flow.payment.v0.unions.online_authorization_details': function () {
|
|
4399
|
-
var f = faker.helpers.arrayElement([
|
|
4400
|
-
function () { return factories['io.flow.payment.v0.models.cryptopay_authorization_details'](); },
|
|
4401
|
-
function () { return factories['io.flow.payment.v0.models.paypal_authorization_details'](); },
|
|
4402
|
-
function () { return factories['io.flow.payment.v0.models.redirect_authorization_details'](); },
|
|
4403
|
-
function () { return factories['io.flow.payment.v0.models.inline_authorization_details'](); },
|
|
4404
|
-
]);
|
|
4405
|
-
return f();
|
|
4406
|
-
},
|
|
4407
|
-
'io.flow.payment.v0.unions.payment': function () {
|
|
4408
|
-
var f = faker.helpers.arrayElement([
|
|
4409
|
-
function () { return factories['io.flow.payment.v0.models.payment_paypal'](); },
|
|
4410
|
-
function () { return factories['io.flow.payment.v0.models.payment_cryptopay'](); },
|
|
4411
|
-
]);
|
|
4412
|
-
return f();
|
|
4413
|
-
},
|
|
4414
|
-
'io.flow.payment.v0.unions.payment_form': function () {
|
|
4415
|
-
var f = faker.helpers.arrayElement([
|
|
4416
|
-
function () { return factories['io.flow.payment.v0.models.merchant_of_record_payment_form'](); },
|
|
4417
|
-
]);
|
|
4418
|
-
return f();
|
|
4419
|
-
},
|
|
4420
|
-
'io.flow.payment.v0.unions.payment_order_reference': function () {
|
|
4421
|
-
var f = faker.helpers.arrayElement([
|
|
4422
|
-
function () { return factories['io.flow.payment.v0.models.authorization_order_reference'](); },
|
|
4423
|
-
function () { return factories['io.flow.payment.v0.models.payment_payment_request_reference'](); },
|
|
4424
|
-
]);
|
|
4425
|
-
return f();
|
|
4426
|
-
},
|
|
4427
|
-
'io.flow.payment.v0.unions.payment_processor_transaction_details': function () {
|
|
4428
|
-
var f = faker.helpers.arrayElement([
|
|
4429
|
-
function () { return factories['io.flow.payment.v0.models.payment_processor_transaction_details_card'](); },
|
|
4430
|
-
function () { return factories['io.flow.payment.v0.models.payment_processor_transaction_details_apm'](); },
|
|
4431
|
-
]);
|
|
4432
|
-
return f();
|
|
4433
|
-
},
|
|
4434
|
-
'io.flow.payment.v0.unions.payment_source': function () {
|
|
4435
|
-
var f = faker.helpers.arrayElement([function () { return factories['io.flow.payment.v0.models.card_payment_source'](); }]);
|
|
4436
|
-
return f();
|
|
4437
|
-
},
|
|
4438
|
-
'io.flow.payment.v0.unions.payment_source_form': function () {
|
|
4439
|
-
var f = faker.helpers.arrayElement([function () { return factories['io.flow.payment.v0.models.card_payment_source_form'](); }]);
|
|
4440
|
-
return f();
|
|
4441
|
-
},
|
|
4442
|
-
'io.flow.payment.v0.unions.threeds_challenge_action': function () {
|
|
4443
|
-
var f = faker.helpers.arrayElement([
|
|
4444
|
-
function () { return factories['io.flow.payment.v0.models.threeds_two_challenge_request'](); },
|
|
4445
|
-
]);
|
|
4446
|
-
return f();
|
|
4447
|
-
},
|
|
4448
|
-
'io.flow.payment.v0.unions.threeds_identify_action': function () {
|
|
4449
|
-
var f = faker.helpers.arrayElement([function () { return factories['io.flow.payment.v0.models.threeds_two_method'](); }]);
|
|
4450
|
-
return f();
|
|
4451
|
-
},
|
|
4452
|
-
'io.flow.payment.v0.unions.transaction_details': function () {
|
|
4453
|
-
var f = faker.helpers.arrayElement([function () { return factories['io.flow.payment.v0.models.transaction_details_card'](); }]);
|
|
4454
|
-
return f();
|
|
4455
|
-
},
|
|
4456
|
-
'io.flow.payment.v0.unions.transfer_reference': function () {
|
|
4457
|
-
var f = faker.helpers.arrayElement([
|
|
4458
|
-
function () { return factories['io.flow.payment.v0.models.capture_reference'](); },
|
|
4459
|
-
function () { return factories['io.flow.payment.v0.models.refund_reference'](); },
|
|
4460
|
-
function () { return factories['io.flow.payment.v0.models.dispute_reference'](); },
|
|
4461
|
-
]);
|
|
4462
|
-
return f();
|
|
4463
|
-
},
|
|
4464
2123
|
'io.flow.permission.v0.enums.authentication_technique': function () { return faker.helpers.arrayElement(['anonymous', 'session', 'token', 'partner_token', 'user']); },
|
|
4465
2124
|
'io.flow.permission.v0.enums.flow_behavior': function () { return faker.helpers.arrayElement(['view_consumer_data']); },
|
|
4466
2125
|
'io.flow.permission.v0.enums.flow_role': function () { return faker.helpers.arrayElement([
|
|
@@ -4897,6 +2556,7 @@ var factories = {
|
|
|
4897
2556
|
]); },
|
|
4898
2557
|
'io.flow.sellability.v0.enums.sellability_request_status': function () { return faker.helpers.arrayElement(['commit']); },
|
|
4899
2558
|
'io.flow.sellability.v0.models.product_sellability': function () { return ({
|
|
2559
|
+
discriminator: 'product_sellability',
|
|
4900
2560
|
shop_id: factories.string(),
|
|
4901
2561
|
product_id: factories.string(),
|
|
4902
2562
|
request_id: factories.string(),
|
|
@@ -4918,6 +2578,7 @@ var factories = {
|
|
|
4918
2578
|
amount: factories.decimal(),
|
|
4919
2579
|
}); },
|
|
4920
2580
|
'io.flow.sellability.v0.models.sellability_error': function () { return ({
|
|
2581
|
+
discriminator: 'sellability_error',
|
|
4921
2582
|
code: factories['io.flow.sellability.v0.enums.sellability_error_code'](),
|
|
4922
2583
|
messages: arrayOf(function () { return factories.string(); }),
|
|
4923
2584
|
}); },
|
|
@@ -4925,6 +2586,13 @@ var factories = {
|
|
|
4925
2586
|
type: factories['io.flow.sellability.v0.enums.rule_effect_type'](),
|
|
4926
2587
|
regions: arrayOf(function () { return factories.string(); }),
|
|
4927
2588
|
}); },
|
|
2589
|
+
'io.flow.sellability.v0.unions.sellability_response': function () {
|
|
2590
|
+
var f = faker.helpers.arrayElement([
|
|
2591
|
+
function () { return factories['io.flow.sellability.v0.models.product_sellability'](); },
|
|
2592
|
+
function () { return factories['io.flow.sellability.v0.models.sellability_error'](); },
|
|
2593
|
+
]);
|
|
2594
|
+
return f();
|
|
2595
|
+
},
|
|
4928
2596
|
'io.flow.shopify.external.v0.enums.cancel_reason': function () { return faker.helpers.arrayElement(['customer', 'fraud', 'inventory', 'declined', 'other']); },
|
|
4929
2597
|
'io.flow.shopify.external.v0.enums.discount_status': function () { return faker.helpers.arrayElement(['enabled', 'disabled', 'depleted']); },
|
|
4930
2598
|
'io.flow.shopify.external.v0.enums.discount_type': function () { return faker.helpers.arrayElement(['fixed_amount', 'percentage', 'shipping']); },
|
|
@@ -7721,126 +5389,6 @@ var factories = {
|
|
|
7721
5389
|
'io.flow.tech.onboarding.playground.v0.models.tech_onboarding_description': function () { return ({
|
|
7722
5390
|
description: factories.string(),
|
|
7723
5391
|
}); },
|
|
7724
|
-
'io.flow.token.v0.models.channel_token': function () { return ({
|
|
7725
|
-
discriminator: 'channel_token',
|
|
7726
|
-
id: factories.string(),
|
|
7727
|
-
channel: factories['io.flow.common.v0.models.channel_reference'](),
|
|
7728
|
-
user: factories['io.flow.common.v0.models.user_reference'](),
|
|
7729
|
-
partial: factories.string(),
|
|
7730
|
-
cleartext: factories.string(),
|
|
7731
|
-
created_at: factories.date_time_iso_8601(),
|
|
7732
|
-
description: factories.string(),
|
|
7733
|
-
}); },
|
|
7734
|
-
'io.flow.token.v0.models.channel_token_form': function () { return ({
|
|
7735
|
-
channel_id: factories.string(),
|
|
7736
|
-
description: factories.string(),
|
|
7737
|
-
}); },
|
|
7738
|
-
'io.flow.token.v0.models.channel_token_reference': function () { return ({
|
|
7739
|
-
discriminator: 'channel_token_reference',
|
|
7740
|
-
id: factories.string(),
|
|
7741
|
-
channel: factories['io.flow.common.v0.models.channel_reference'](),
|
|
7742
|
-
user: factories['io.flow.common.v0.models.user_reference'](),
|
|
7743
|
-
}); },
|
|
7744
|
-
'io.flow.token.v0.models.cleartext': function () { return ({
|
|
7745
|
-
value: factories.string(),
|
|
7746
|
-
}); },
|
|
7747
|
-
'io.flow.token.v0.models.organization_token': function () { return ({
|
|
7748
|
-
discriminator: 'organization_token',
|
|
7749
|
-
id: factories.string(),
|
|
7750
|
-
organization: factories['io.flow.common.v0.models.organization_reference'](),
|
|
7751
|
-
user: factories['io.flow.common.v0.models.user_reference'](),
|
|
7752
|
-
environment: factories['io.flow.common.v0.enums.environment'](),
|
|
7753
|
-
partial: factories.string(),
|
|
7754
|
-
created_at: factories.date_time_iso_8601(),
|
|
7755
|
-
description: factories.string(),
|
|
7756
|
-
}); },
|
|
7757
|
-
'io.flow.token.v0.models.organization_token_form': function () { return ({
|
|
7758
|
-
environment: factories['io.flow.common.v0.enums.environment'](),
|
|
7759
|
-
description: factories.string(),
|
|
7760
|
-
}); },
|
|
7761
|
-
'io.flow.token.v0.models.organization_token_form_v2': function () { return ({
|
|
7762
|
-
organization_id: factories.string(),
|
|
7763
|
-
description: factories.string(),
|
|
7764
|
-
}); },
|
|
7765
|
-
'io.flow.token.v0.models.organization_token_reference': function () { return ({
|
|
7766
|
-
discriminator: 'organization_token_reference',
|
|
7767
|
-
id: factories.string(),
|
|
7768
|
-
organization: factories['io.flow.common.v0.models.organization_reference'](),
|
|
7769
|
-
environment: factories['io.flow.common.v0.enums.environment'](),
|
|
7770
|
-
user: factories['io.flow.common.v0.models.user_reference'](),
|
|
7771
|
-
}); },
|
|
7772
|
-
'io.flow.token.v0.models.organization_token_v2': function () { return ({
|
|
7773
|
-
discriminator: 'organization_token_v2',
|
|
7774
|
-
id: factories.string(),
|
|
7775
|
-
organization: factories['io.flow.common.v0.models.organization_reference'](),
|
|
7776
|
-
user: factories['io.flow.common.v0.models.user_reference'](),
|
|
7777
|
-
partial: factories.string(),
|
|
7778
|
-
cleartext: factories.string(),
|
|
7779
|
-
created_at: factories.date_time_iso_8601(),
|
|
7780
|
-
description: factories.string(),
|
|
7781
|
-
}); },
|
|
7782
|
-
'io.flow.token.v0.models.organization_token_v2_reference': function () { return ({
|
|
7783
|
-
discriminator: 'organization_token_v2_reference',
|
|
7784
|
-
id: factories.string(),
|
|
7785
|
-
organization: factories['io.flow.common.v0.models.organization_reference'](),
|
|
7786
|
-
}); },
|
|
7787
|
-
'io.flow.token.v0.models.partner_token': function () { return ({
|
|
7788
|
-
discriminator: 'partner_token',
|
|
7789
|
-
id: factories.string(),
|
|
7790
|
-
partner: factories['io.flow.token.v0.models.token_partner_reference'](),
|
|
7791
|
-
user: factories['io.flow.common.v0.models.user_reference'](),
|
|
7792
|
-
environment: factories['io.flow.common.v0.enums.environment'](),
|
|
7793
|
-
partial: factories.string(),
|
|
7794
|
-
created_at: factories.date_time_iso_8601(),
|
|
7795
|
-
description: factories.string(),
|
|
7796
|
-
}); },
|
|
7797
|
-
'io.flow.token.v0.models.partner_token_form': function () { return ({
|
|
7798
|
-
environment: factories['io.flow.common.v0.enums.environment'](),
|
|
7799
|
-
description: factories.string(),
|
|
7800
|
-
}); },
|
|
7801
|
-
'io.flow.token.v0.models.partner_token_reference': function () { return ({
|
|
7802
|
-
discriminator: 'partner_token_reference',
|
|
7803
|
-
id: factories.string(),
|
|
7804
|
-
partner: factories['io.flow.token.v0.models.token_partner_reference'](),
|
|
7805
|
-
environment: factories['io.flow.common.v0.enums.environment'](),
|
|
7806
|
-
user: factories['io.flow.common.v0.models.user_reference'](),
|
|
7807
|
-
}); },
|
|
7808
|
-
'io.flow.token.v0.models.token_authentication_form': function () { return ({
|
|
7809
|
-
token: factories.string(),
|
|
7810
|
-
}); },
|
|
7811
|
-
'io.flow.token.v0.models.token_partner_reference': function () { return ({
|
|
7812
|
-
id: factories.string(),
|
|
7813
|
-
}); },
|
|
7814
|
-
'io.flow.token.v0.models.token_rbac_authentication_form': function () { return ({
|
|
7815
|
-
token: factories.string(),
|
|
7816
|
-
method: factories.string(),
|
|
7817
|
-
path_pattern: factories.string(),
|
|
7818
|
-
path: factories.string(),
|
|
7819
|
-
}); },
|
|
7820
|
-
'io.flow.token.v0.models.token_validation': function () { return ({
|
|
7821
|
-
status: factories.string(),
|
|
7822
|
-
}); },
|
|
7823
|
-
'io.flow.token.v0.models.token_validation_form': function () { return ({
|
|
7824
|
-
token: factories.string(),
|
|
7825
|
-
}); },
|
|
7826
|
-
'io.flow.token.v0.unions.token': function () {
|
|
7827
|
-
var f = faker.helpers.arrayElement([
|
|
7828
|
-
function () { return factories['io.flow.token.v0.models.channel_token'](); },
|
|
7829
|
-
function () { return factories['io.flow.token.v0.models.organization_token'](); },
|
|
7830
|
-
function () { return factories['io.flow.token.v0.models.organization_token_v2'](); },
|
|
7831
|
-
function () { return factories['io.flow.token.v0.models.partner_token'](); },
|
|
7832
|
-
]);
|
|
7833
|
-
return f();
|
|
7834
|
-
},
|
|
7835
|
-
'io.flow.token.v0.unions.token_reference': function () {
|
|
7836
|
-
var f = faker.helpers.arrayElement([
|
|
7837
|
-
function () { return factories['io.flow.token.v0.models.channel_token_reference'](); },
|
|
7838
|
-
function () { return factories['io.flow.token.v0.models.organization_token_reference'](); },
|
|
7839
|
-
function () { return factories['io.flow.token.v0.models.organization_token_v2_reference'](); },
|
|
7840
|
-
function () { return factories['io.flow.token.v0.models.partner_token_reference'](); },
|
|
7841
|
-
]);
|
|
7842
|
-
return f();
|
|
7843
|
-
},
|
|
7844
5392
|
'io.flow.v0.enums.abandoned_order_promotion_status': function () { return faker.helpers.arrayElement(['active', 'inactive']); },
|
|
7845
5393
|
'io.flow.v0.enums.abandoned_order_setting_status': function () { return faker.helpers.arrayElement(['active', 'inactive']); },
|
|
7846
5394
|
'io.flow.v0.enums.address_field_name': function () { return faker.helpers.arrayElement([
|
|
@@ -8244,6 +5792,7 @@ var factories = {
|
|
|
8244
5792
|
'rate_lock',
|
|
8245
5793
|
'transfer',
|
|
8246
5794
|
'negative_balance_guarantee',
|
|
5795
|
+
'sp',
|
|
8247
5796
|
]); },
|
|
8248
5797
|
'io.flow.v0.enums.flow_behavior': function () { return faker.helpers.arrayElement(['view_consumer_data']); },
|
|
8249
5798
|
'io.flow.v0.enums.flow_entity': function () { return faker.helpers.arrayElement(['flow-usa', 'flow-irl', 'flow-can', 'ge-usa']); },
|
|
@@ -8514,7 +6063,7 @@ var factories = {
|
|
|
8514
6063
|
'error',
|
|
8515
6064
|
'payment_checks_declined',
|
|
8516
6065
|
]); },
|
|
8517
|
-
'io.flow.v0.enums.payment_fee_type': function () { return faker.helpers.arrayElement(['fx', 'mor']); },
|
|
6066
|
+
'io.flow.v0.enums.payment_fee_type': function () { return faker.helpers.arrayElement(['fx', 'mor', 'sp']); },
|
|
8518
6067
|
'io.flow.v0.enums.payment_method_capability': function () { return faker.helpers.arrayElement(['credit', 'debit']); },
|
|
8519
6068
|
'io.flow.v0.enums.payment_method_data_option_type': function () { return faker.helpers.arrayElement(['ideal_issuer_option']); },
|
|
8520
6069
|
'io.flow.v0.enums.payment_method_rule_content_key': function () { return faker.helpers.arrayElement(['description']); },
|
|
@@ -8796,13 +6345,16 @@ var factories = {
|
|
|
8796
6345
|
'io.flow.v0.enums.surcharge_responsible_party': function () { return faker.helpers.arrayElement(['organization', 'customer']); },
|
|
8797
6346
|
'io.flow.v0.enums.tax_applicability': function () { return faker.helpers.arrayElement(['none', 'all']); },
|
|
8798
6347
|
'io.flow.v0.enums.tax_duty_transaction_reason_code': function () { return faker.helpers.arrayElement([
|
|
6348
|
+
'post_capture',
|
|
6349
|
+
'post_fulfilment',
|
|
6350
|
+
'manual_payment_or_gift_card',
|
|
8799
6351
|
'order_edit',
|
|
8800
|
-
'order_acceptance',
|
|
8801
6352
|
'mixed_fulfilment_non_lvg',
|
|
8802
6353
|
'lvg_refund',
|
|
8803
6354
|
'order_cancellation_above_de_min',
|
|
8804
6355
|
'wyol_shipment_above_de_min',
|
|
8805
6356
|
'full_refund_without_shipment',
|
|
6357
|
+
'unfulfilled_order_above_de_min',
|
|
8806
6358
|
]); },
|
|
8807
6359
|
'io.flow.v0.enums.tax_report_type': function () { return faker.helpers.arrayElement(['consumer', 'b2b']); },
|
|
8808
6360
|
'io.flow.v0.enums.tax_verification_result': function () { return faker.helpers.arrayElement(['valid', 'invalid', 'unable_to_validate']); },
|
|
@@ -14990,6 +12542,8 @@ var factories = {
|
|
|
14990
12542
|
amount: factories['io.flow.v0.models.money'](),
|
|
14991
12543
|
starts_at: factories.date_time_iso_8601(),
|
|
14992
12544
|
ends_at: factories.date_time_iso_8601(),
|
|
12545
|
+
regions: arrayOf(function () { return factories.string(); }),
|
|
12546
|
+
dependent_service_fees: arrayOf(function () { return factories.string(); }),
|
|
14993
12547
|
}); },
|
|
14994
12548
|
'io.flow.v0.models.pending_payout_transaction_reason': function () { return ({
|
|
14995
12549
|
code: factories['io.flow.v0.enums.pending_payout_transaction_reason_code'](),
|
|
@@ -15555,6 +13109,10 @@ var factories = {
|
|
|
15555
13109
|
rate_level_key: factories.string(),
|
|
15556
13110
|
line_items: arrayOf(function () { return factories['io.flow.v0.models.line_item_form'](); }),
|
|
15557
13111
|
}); },
|
|
13112
|
+
'io.flow.v0.models.ratecard_fee_summary': function () { return ({
|
|
13113
|
+
ratecard_fee: factories['io.flow.v0.unions.ratecard_fee'](),
|
|
13114
|
+
source_service_fees: arrayOf(function () { return factories.string(); }),
|
|
13115
|
+
}); },
|
|
15558
13116
|
'io.flow.v0.models.ratecard_form': function () { return ({
|
|
15559
13117
|
direction: factories['io.flow.v0.enums.direction'](),
|
|
15560
13118
|
effective_at: factories.date_time_iso_8601(),
|
|
@@ -20015,6 +17573,7 @@ export var makeRatecardEstimateV2 = function () { return factories['io.flow.v0.m
|
|
|
20015
17573
|
export var makeRatecardEstimateV3 = function () { return factories['io.flow.v0.models.ratecard_estimate_v3'](); };
|
|
20016
17574
|
export var makeRatecardEstimateV4 = function () { return factories['io.flow.v0.models.ratecard_estimate_v4'](); };
|
|
20017
17575
|
export var makeRatecardFee = function () { return factories['io.flow.v0.unions.ratecard_fee'](); };
|
|
17576
|
+
export var makeRatecardFeeSummary = function () { return factories['io.flow.v0.models.ratecard_fee_summary'](); };
|
|
20018
17577
|
export var makeRatecardForm = function () { return factories['io.flow.v0.models.ratecard_form'](); };
|
|
20019
17578
|
export var makeRatecardLane = function () { return factories['io.flow.v0.models.ratecard_lane'](); };
|
|
20020
17579
|
export var makeRatecardLaneDeleted = function () { return factories['io.flow.v0.models.ratecard_lane_deleted'](); };
|