@flowio/api-factories 0.0.107 → 0.0.108
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 +3286 -972
- package/dist/esm/api.js +3254 -936
- package/dist/types/api.d.ts +4 -8
- package/package.json +2 -2
- package/src/api.ts +3862 -1056
package/dist/esm/api.js
CHANGED
|
@@ -468,6 +468,7 @@ var factories = {
|
|
|
468
468
|
order_created_at: factories.date_time_iso_8601(),
|
|
469
469
|
order_updated_at: factories.date_time_iso_8601(),
|
|
470
470
|
order_edit_summary: factories['io.flow.channel.internal.v0.models.order_edit_summary'](),
|
|
471
|
+
payment_source: factories['io.flow.experience.v0.enums.order_payment_source_type'](),
|
|
471
472
|
}); },
|
|
472
473
|
'io.flow.channel.internal.v0.models.channel_order_acceptance_details': function () { return ({
|
|
473
474
|
order_acceptance: factories['io.flow.channel.internal.v0.models.channel_order_acceptance'](),
|
|
@@ -1027,1097 +1028,3439 @@ var factories = {
|
|
|
1027
1028
|
code: factories['io.flow.error.v0.enums.generic_error_code'](),
|
|
1028
1029
|
messages: arrayOf(function () { return factories.string(); }),
|
|
1029
1030
|
}); },
|
|
1030
|
-
'io.flow.
|
|
1031
|
-
|
|
1032
|
-
'
|
|
1033
|
-
'
|
|
1034
|
-
'
|
|
1035
|
-
'
|
|
1036
|
-
'
|
|
1037
|
-
'
|
|
1038
|
-
'
|
|
1039
|
-
'
|
|
1040
|
-
'
|
|
1041
|
-
'
|
|
1042
|
-
'center_outbound_carton_fee',
|
|
1031
|
+
'io.flow.experience.v0.enums.address_field_name': function () { return faker.helpers.arrayElement([
|
|
1032
|
+
'first_name',
|
|
1033
|
+
'last_name',
|
|
1034
|
+
'street_1',
|
|
1035
|
+
'street_2',
|
|
1036
|
+
'city',
|
|
1037
|
+
'province',
|
|
1038
|
+
'postal',
|
|
1039
|
+
'country',
|
|
1040
|
+
'phone',
|
|
1041
|
+
'company',
|
|
1042
|
+
'vat_registration_number',
|
|
1043
1043
|
]); },
|
|
1044
|
-
'io.flow.
|
|
1045
|
-
|
|
1046
|
-
|
|
1047
|
-
|
|
1048
|
-
|
|
1049
|
-
|
|
1050
|
-
|
|
1051
|
-
|
|
1052
|
-
|
|
1053
|
-
|
|
1054
|
-
'io.flow.
|
|
1055
|
-
'io.flow.
|
|
1056
|
-
'io.flow.
|
|
1057
|
-
'io.flow.
|
|
1058
|
-
'io.flow.
|
|
1059
|
-
'io.flow.
|
|
1060
|
-
'io.flow.
|
|
1061
|
-
'io.flow.
|
|
1062
|
-
'io.flow.
|
|
1063
|
-
|
|
1064
|
-
|
|
1065
|
-
|
|
1066
|
-
|
|
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',
|
|
1087
|
+
]); },
|
|
1088
|
+
'io.flow.experience.v0.enums.order_refund_summary_includes': function () { return faker.helpers.arrayElement(['duties', 'vat', 'shipping']); },
|
|
1089
|
+
'io.flow.experience.v0.enums.order_refund_summary_partial_charged': function () { return faker.helpers.arrayElement(['per_item', 'for_order', 'by_value_percentage', 'by_quantity_percentage']); },
|
|
1090
|
+
'io.flow.experience.v0.enums.order_status': function () { return faker.helpers.arrayElement(['open', 'submitted']); },
|
|
1091
|
+
'io.flow.experience.v0.enums.order_storage': function () { return faker.helpers.arrayElement(['do_not_persist', 'persist']); },
|
|
1092
|
+
'io.flow.experience.v0.enums.order_type': function () { return faker.helpers.arrayElement(['standard', 'replacement', 'edit']); },
|
|
1093
|
+
'io.flow.experience.v0.enums.organization_payment_method_tag': function () { return faker.helpers.arrayElement(['deny']); },
|
|
1094
|
+
'io.flow.experience.v0.enums.payment_method_rule_content_key': function () { return faker.helpers.arrayElement(['description']); },
|
|
1095
|
+
'io.flow.experience.v0.enums.price_facet_boundary': function () { return faker.helpers.arrayElement(['min', 'max']); },
|
|
1096
|
+
'io.flow.experience.v0.enums.promotion_trigger_type': function () { return faker.helpers.arrayElement(['automatic', 'order_subtotal']); },
|
|
1097
|
+
'io.flow.experience.v0.models.address_configuration': function () { return ({
|
|
1098
|
+
country: factories.string(),
|
|
1099
|
+
field_validation: factories['io.flow.experience.v0.models.address_field_validation'](),
|
|
1100
|
+
provinces: arrayOf(function () { return factories['io.flow.experience.v0.models.address_configuration_province'](); }),
|
|
1101
|
+
formats: arrayOf(function () { return factories['io.flow.experience.v0.models.address_configuration_format'](); }),
|
|
1102
|
+
province_type: factories['io.flow.reference.v0.enums.province_type'](),
|
|
1103
|
+
postal_type: factories['io.flow.reference.v0.enums.postal_type'](),
|
|
1067
1104
|
}); },
|
|
1068
|
-
'io.flow.
|
|
1069
|
-
|
|
1070
|
-
margin: factories['io.flow.common.v0.models.money'](),
|
|
1105
|
+
'io.flow.experience.v0.models.address_configuration_field_placement': function () { return ({
|
|
1106
|
+
name: factories['io.flow.experience.v0.enums.address_field_name'](),
|
|
1071
1107
|
}); },
|
|
1072
|
-
'io.flow.
|
|
1073
|
-
|
|
1074
|
-
ignore: factories.string(),
|
|
1108
|
+
'io.flow.experience.v0.models.address_configuration_format': function () { return ({
|
|
1109
|
+
placements: arrayOf(function () { return factories['io.flow.experience.v0.models.address_configuration_field_placement'](); }),
|
|
1075
1110
|
}); },
|
|
1076
|
-
'io.flow.
|
|
1077
|
-
|
|
1078
|
-
|
|
1079
|
-
|
|
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'](); }),
|
|
1080
1115
|
}); },
|
|
1081
|
-
'io.flow.
|
|
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 ({
|
|
1082
1121
|
id: factories.string(),
|
|
1122
|
+
name: factories.string(),
|
|
1123
|
+
language: factories.string(),
|
|
1083
1124
|
}); },
|
|
1084
|
-
'io.flow.
|
|
1085
|
-
|
|
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'](),
|
|
1155
|
+
}); },
|
|
1156
|
+
'io.flow.experience.v0.models.allocation_line_detail': function () { return ({
|
|
1157
|
+
discriminator: 'allocation_line_detail',
|
|
1158
|
+
id: factories.string(),
|
|
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'](); }),
|
|
1204
|
+
}); },
|
|
1205
|
+
'io.flow.experience.v0.models.allocation_order_summary': function () { return ({
|
|
1206
|
+
id: factories.string(),
|
|
1207
|
+
number: factories.string(),
|
|
1208
|
+
submitted_at: factories.date_time_iso_8601(),
|
|
1209
|
+
}); },
|
|
1210
|
+
'io.flow.experience.v0.models.allocation_v2': function () { return ({
|
|
1211
|
+
id: factories.string(),
|
|
1212
|
+
order: factories['io.flow.experience.v0.models.allocation_order_summary'](),
|
|
1213
|
+
details: arrayOf(function () { return factories['io.flow.experience.v0.unions.allocation_detail'](); }),
|
|
1214
|
+
total: factories['io.flow.catalog.v0.models.localized_total'](),
|
|
1215
|
+
}); },
|
|
1216
|
+
'io.flow.experience.v0.models.available_promotion': function () { return ({
|
|
1217
|
+
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
|
+
}); },
|
|
1222
|
+
'io.flow.experience.v0.models.checkout_attribute': function () { return ({
|
|
1086
1223
|
id: factories.string(),
|
|
1224
|
+
experience: factories['io.flow.experience.v0.models.experience_reference'](),
|
|
1087
1225
|
key: factories.string(),
|
|
1088
|
-
address: factories['io.flow.fulfillment.v0.models.shipping_address'](),
|
|
1089
|
-
packaging: arrayOf(function () { return factories['io.flow.fulfillment.v0.models.packaging'](); }),
|
|
1090
1226
|
name: factories.string(),
|
|
1091
|
-
|
|
1092
|
-
|
|
1093
|
-
timezone: factories.string(),
|
|
1094
|
-
capabilities: arrayOf(function () { return factories['io.flow.fulfillment.v0.enums.center_capability'](); }),
|
|
1095
|
-
partner_center: factories['io.flow.fulfillment.v0.models.partner_center'](),
|
|
1227
|
+
attribute_keys: arrayOf(function () { return factories.string(); }),
|
|
1228
|
+
position: factories.long(),
|
|
1096
1229
|
}); },
|
|
1097
|
-
'io.flow.
|
|
1098
|
-
|
|
1099
|
-
packaging: arrayOf(function () { return factories['io.flow.fulfillment.v0.models.packaging'](); }),
|
|
1230
|
+
'io.flow.experience.v0.models.checkout_attribute_form': function () { return ({
|
|
1231
|
+
key: factories.string(),
|
|
1100
1232
|
name: factories.string(),
|
|
1101
|
-
|
|
1102
|
-
|
|
1103
|
-
|
|
1233
|
+
experience_key: factories.string(),
|
|
1234
|
+
attribute_keys: arrayOf(function () { return factories.string(); }),
|
|
1235
|
+
position: factories.long(),
|
|
1236
|
+
}); },
|
|
1237
|
+
'io.flow.experience.v0.models.checkout_item_content': function () { return ({
|
|
1238
|
+
item: factories['io.flow.catalog.v0.models.item'](),
|
|
1239
|
+
name: factories.string(),
|
|
1240
|
+
description: factories.string(),
|
|
1241
|
+
attributes: arrayOf(function () { return factories['io.flow.experience.v0.models.checkout_item_content_attribute'](); }),
|
|
1242
|
+
image: factories['io.flow.catalog.v0.models.image'](),
|
|
1243
|
+
}); },
|
|
1244
|
+
'io.flow.experience.v0.models.checkout_item_content_attribute': function () { return ({
|
|
1104
1245
|
key: factories.string(),
|
|
1105
|
-
|
|
1106
|
-
|
|
1246
|
+
name: factories.string(),
|
|
1247
|
+
value: factories.string(),
|
|
1107
1248
|
}); },
|
|
1108
|
-
'io.flow.
|
|
1109
|
-
|
|
1249
|
+
'io.flow.experience.v0.models.country_status': function () { return ({
|
|
1250
|
+
id: factories.string(),
|
|
1251
|
+
country: factories.string(),
|
|
1252
|
+
status: factories['io.flow.experience.v0.enums.experience_country_status'](),
|
|
1110
1253
|
}); },
|
|
1111
|
-
'io.flow.
|
|
1112
|
-
|
|
1113
|
-
organization_id: factories.string(),
|
|
1114
|
-
center_key: factories.string(),
|
|
1254
|
+
'io.flow.experience.v0.models.country_status_form': function () { return ({
|
|
1255
|
+
status: factories['io.flow.experience.v0.enums.experience_country_status'](),
|
|
1115
1256
|
}); },
|
|
1116
|
-
'io.flow.
|
|
1257
|
+
'io.flow.experience.v0.models.credit_payment': function () { return ({
|
|
1117
1258
|
id: factories.string(),
|
|
1259
|
+
order: factories['io.flow.experience.v0.unions.expandable_order'](),
|
|
1118
1260
|
key: factories.string(),
|
|
1119
|
-
|
|
1261
|
+
description: factories.string(),
|
|
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(); }),
|
|
1120
1265
|
}); },
|
|
1121
|
-
'io.flow.
|
|
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(); }),
|
|
1278
|
+
}); },
|
|
1279
|
+
'io.flow.experience.v0.models.credit_payment_version': function () { return ({
|
|
1122
1280
|
id: factories.string(),
|
|
1123
1281
|
timestamp: factories.date_time_iso_8601(),
|
|
1124
1282
|
type: factories['io.flow.common.v0.enums.change_type'](),
|
|
1125
|
-
|
|
1283
|
+
credit_payment: factories['io.flow.experience.v0.models.credit_payment'](),
|
|
1126
1284
|
}); },
|
|
1127
|
-
'io.flow.
|
|
1128
|
-
|
|
1129
|
-
|
|
1285
|
+
'io.flow.experience.v0.models.datetime_with_timezone': function () { return ({
|
|
1286
|
+
datetime: factories.date_time_iso_8601(),
|
|
1287
|
+
timezone: factories.string(),
|
|
1130
1288
|
}); },
|
|
1131
|
-
'io.flow.
|
|
1132
|
-
|
|
1133
|
-
|
|
1289
|
+
'io.flow.experience.v0.models.delivered_duty_setting': function () { return ({
|
|
1290
|
+
'default': factories['io.flow.common.v0.enums.delivered_duty'](),
|
|
1291
|
+
available: arrayOf(function () { return factories['io.flow.common.v0.enums.delivered_duty'](); }),
|
|
1292
|
+
display: factories['io.flow.experience.v0.enums.delivered_duty_display_type'](),
|
|
1134
1293
|
}); },
|
|
1135
|
-
'io.flow.
|
|
1136
|
-
|
|
1137
|
-
|
|
1294
|
+
'io.flow.experience.v0.models.destination_contact_detail': function () { return ({
|
|
1295
|
+
title: factories.string(),
|
|
1296
|
+
country: factories.string(),
|
|
1297
|
+
import_identifier: factories.string(),
|
|
1138
1298
|
}); },
|
|
1139
|
-
'io.flow.
|
|
1299
|
+
'io.flow.experience.v0.models.discount': function () { return ({
|
|
1300
|
+
discriminator: 'discount',
|
|
1140
1301
|
id: factories.string(),
|
|
1141
|
-
|
|
1142
|
-
|
|
1143
|
-
|
|
1144
|
-
price: factories['io.flow.common.v0.models.money_with_optional_base'](),
|
|
1302
|
+
code: factories.string(),
|
|
1303
|
+
label: factories.string(),
|
|
1304
|
+
price: factories['io.flow.common.v0.models.price_with_base'](),
|
|
1145
1305
|
attributes: objectOf(function () { return factories.string(); }),
|
|
1146
|
-
center: factories.string(),
|
|
1147
|
-
line_number: factories.long(),
|
|
1148
1306
|
}); },
|
|
1149
|
-
'io.flow.
|
|
1307
|
+
'io.flow.experience.v0.models.discount_rule': function () { return ({
|
|
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 ({
|
|
1150
1315
|
id: factories.string(),
|
|
1151
|
-
|
|
1152
|
-
|
|
1153
|
-
|
|
1154
|
-
|
|
1155
|
-
|
|
1156
|
-
|
|
1157
|
-
rule_outcome: factories['io.flow.fulfillment.v0.unions.tier_rule_outcome'](),
|
|
1158
|
-
weight: factories['io.flow.fulfillment.v0.models.option_weight_estimates'](),
|
|
1159
|
-
send_to: factories['io.flow.fulfillment.v0.models.shipping_address'](),
|
|
1160
|
-
surcharge: factories['io.flow.fulfillment.v0.models.price_with_base_and_details'](),
|
|
1161
|
-
ratecard_owner: factories['io.flow.fulfillment.v0.enums.ratecard_owner'](),
|
|
1316
|
+
name: factories.string(),
|
|
1317
|
+
from_with_tz: factories['io.flow.experience.v0.models.datetime_with_timezone'](),
|
|
1318
|
+
to_with_tz: factories['io.flow.experience.v0.models.datetime_with_timezone'](),
|
|
1319
|
+
status: factories['io.flow.experience.v0.enums.discount_rule_status'](),
|
|
1320
|
+
experience_keys: arrayOf(function () { return factories.string(); }),
|
|
1321
|
+
rule: factories['io.flow.experience.v0.models.discount_rule'](),
|
|
1162
1322
|
}); },
|
|
1163
|
-
'io.flow.
|
|
1164
|
-
|
|
1165
|
-
|
|
1166
|
-
|
|
1167
|
-
|
|
1168
|
-
|
|
1323
|
+
'io.flow.experience.v0.models.discount_rule_settings_form': function () { return ({
|
|
1324
|
+
name: factories.string(),
|
|
1325
|
+
from_with_tz: factories['io.flow.experience.v0.models.datetime_with_timezone'](),
|
|
1326
|
+
to_with_tz: factories['io.flow.experience.v0.models.datetime_with_timezone'](),
|
|
1327
|
+
experience_keys: arrayOf(function () { return factories.string(); }),
|
|
1328
|
+
rule: factories['io.flow.experience.v0.models.discount_rule'](),
|
|
1169
1329
|
}); },
|
|
1170
|
-
'io.flow.
|
|
1171
|
-
|
|
1172
|
-
|
|
1330
|
+
'io.flow.experience.v0.models.discount_rule_subsidy_entitlement': function () { return ({
|
|
1331
|
+
discriminator: 'subsidy',
|
|
1332
|
+
targets: arrayOf(function () { return factories['io.flow.experience.v0.enums.discount_rule_subsidy_target'](); }),
|
|
1333
|
+
}); },
|
|
1334
|
+
'io.flow.experience.v0.models.experience': function () { return ({
|
|
1335
|
+
discriminator: 'experience',
|
|
1336
|
+
id: factories.string(),
|
|
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(),
|
|
1173
1342
|
currency: factories.string(),
|
|
1174
|
-
|
|
1175
|
-
|
|
1176
|
-
|
|
1177
|
-
|
|
1343
|
+
language: factories.string(),
|
|
1344
|
+
measurement_system: factories['io.flow.common.v0.enums.measurement_system'](),
|
|
1345
|
+
subcatalog: factories['io.flow.catalog.v0.models.subcatalog_reference'](),
|
|
1346
|
+
position: factories.long(),
|
|
1347
|
+
settings: factories['io.flow.experience.v0.models.experience_settings'](),
|
|
1348
|
+
status: factories['io.flow.experience.v0.enums.experience_status'](),
|
|
1178
1349
|
}); },
|
|
1179
|
-
'io.flow.
|
|
1180
|
-
|
|
1181
|
-
items: arrayOf(function () { return factories['io.flow.fulfillment.v0.models.quote_line_item_form'](); }),
|
|
1182
|
-
destination: factories['io.flow.fulfillment.v0.models.shipping_address'](),
|
|
1350
|
+
'io.flow.experience.v0.models.experience_checkout_configuration_settings': function () { return ({
|
|
1351
|
+
configuration: factories['io.flow.experience.v0.models.experience_configuration_reference'](),
|
|
1183
1352
|
}); },
|
|
1184
|
-
'io.flow.
|
|
1353
|
+
'io.flow.experience.v0.models.experience_checkout_settings': function () { return ({
|
|
1185
1354
|
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'](),
|
|
1186
1357
|
}); },
|
|
1187
|
-
'io.flow.
|
|
1358
|
+
'io.flow.experience.v0.models.experience_checkout_settings_form': function () { return ({
|
|
1359
|
+
checkout_configuration_id: factories.string(),
|
|
1360
|
+
}); },
|
|
1361
|
+
'io.flow.experience.v0.models.experience_clone': function () { return ({
|
|
1188
1362
|
id: factories.string(),
|
|
1189
|
-
|
|
1190
|
-
|
|
1191
|
-
|
|
1192
|
-
service: factories['io.flow.fulfillment.v0.models.service_reference'](),
|
|
1193
|
-
tier: factories['io.flow.fulfillment.v0.models.tier_reference'](),
|
|
1194
|
-
window: factories['io.flow.common.v0.models.datetime_range'](),
|
|
1195
|
-
}); },
|
|
1196
|
-
'io.flow.fulfillment.v0.models.delivery_option_version': function () { return ({
|
|
1197
|
-
id: factories.string(),
|
|
1198
|
-
timestamp: factories.date_time_iso_8601(),
|
|
1199
|
-
type: factories['io.flow.common.v0.enums.change_type'](),
|
|
1200
|
-
delivery_option: factories['io.flow.fulfillment.v0.models.delivery_option_summary'](),
|
|
1363
|
+
source_experience: factories['io.flow.experience.v0.models.experience_reference'](),
|
|
1364
|
+
cloned_experience: factories['io.flow.experience.v0.models.experience_reference'](),
|
|
1365
|
+
status: factories['io.flow.experience.v0.enums.experience_clone_status'](),
|
|
1201
1366
|
}); },
|
|
1202
|
-
'io.flow.
|
|
1203
|
-
|
|
1204
|
-
items: arrayOf(function () { return factories['io.flow.common.v0.models.line_item_form'](); }),
|
|
1367
|
+
'io.flow.experience.v0.models.experience_clone_form': function () { return ({
|
|
1368
|
+
name: factories.string(),
|
|
1205
1369
|
}); },
|
|
1206
|
-
'io.flow.
|
|
1370
|
+
'io.flow.experience.v0.models.experience_configuration_reference': function () { return ({
|
|
1207
1371
|
id: factories.string(),
|
|
1208
|
-
timestamp: factories.date_time_iso_8601(),
|
|
1209
|
-
type: factories['io.flow.common.v0.enums.change_type'](),
|
|
1210
|
-
delivery: factories['io.flow.fulfillment.v0.models.delivery_summary'](),
|
|
1211
|
-
}); },
|
|
1212
|
-
'io.flow.fulfillment.v0.models.delivery_window': function () { return ({
|
|
1213
|
-
from: factories.date_time_iso_8601(),
|
|
1214
|
-
to: factories.date_time_iso_8601(),
|
|
1215
|
-
timezone: factories.string(),
|
|
1216
|
-
label: factories.string(),
|
|
1217
|
-
min_days: factories.long(),
|
|
1218
|
-
max_days: factories.long(),
|
|
1219
|
-
}); },
|
|
1220
|
-
'io.flow.fulfillment.v0.models.delivery_window_component': function () { return ({
|
|
1221
|
-
from: factories.date_time_iso_8601(),
|
|
1222
|
-
to: factories.date_time_iso_8601(),
|
|
1223
|
-
source: factories['io.flow.fulfillment.v0.enums.delivery_window_component_source'](),
|
|
1224
1372
|
}); },
|
|
1225
|
-
'io.flow.
|
|
1226
|
-
|
|
1227
|
-
|
|
1373
|
+
'io.flow.experience.v0.models.experience_currency_format': function () { return ({
|
|
1374
|
+
symbol: factories['io.flow.common.v0.enums.currency_symbol_format'](),
|
|
1375
|
+
label_formatters: arrayOf(function () { return factories['io.flow.common.v0.enums.currency_label_formatter'](); }),
|
|
1228
1376
|
}); },
|
|
1229
|
-
'io.flow.
|
|
1230
|
-
|
|
1231
|
-
|
|
1377
|
+
'io.flow.experience.v0.models.experience_currency_format_form': function () { return ({
|
|
1378
|
+
symbol: factories['io.flow.common.v0.enums.currency_symbol_format'](),
|
|
1379
|
+
label_formatters: arrayOf(function () { return factories['io.flow.common.v0.enums.currency_label_formatter'](); }),
|
|
1232
1380
|
}); },
|
|
1233
|
-
'io.flow.
|
|
1381
|
+
'io.flow.experience.v0.models.experience_defaults': function () { return ({
|
|
1382
|
+
key: factories.string(),
|
|
1383
|
+
name: factories.string(),
|
|
1384
|
+
delivered_duty: factories['io.flow.common.v0.enums.delivered_duty'](),
|
|
1234
1385
|
country: factories.string(),
|
|
1235
|
-
|
|
1386
|
+
currency: factories.string(),
|
|
1387
|
+
language: factories.string(),
|
|
1388
|
+
measurement_system: factories['io.flow.common.v0.enums.measurement_system'](),
|
|
1236
1389
|
}); },
|
|
1237
|
-
'io.flow.
|
|
1238
|
-
|
|
1239
|
-
|
|
1390
|
+
'io.flow.experience.v0.models.experience_form': function () { return ({
|
|
1391
|
+
region_id: factories.string(),
|
|
1392
|
+
name: factories.string(),
|
|
1393
|
+
delivered_duty: factories['io.flow.common.v0.enums.delivered_duty'](),
|
|
1394
|
+
country: factories.string(),
|
|
1395
|
+
currency: factories.string(),
|
|
1396
|
+
language: factories.string(),
|
|
1240
1397
|
key: factories.string(),
|
|
1241
|
-
|
|
1242
|
-
|
|
1243
|
-
|
|
1244
|
-
}); },
|
|
1245
|
-
'io.flow.fulfillment.v0.models.estimated_window': function () { return ({
|
|
1246
|
-
from: factories.long(),
|
|
1247
|
-
to: factories.long(),
|
|
1248
|
-
unit: factories['io.flow.common.v0.enums.unit_of_time'](),
|
|
1249
|
-
}); },
|
|
1250
|
-
'io.flow.fulfillment.v0.models.flat_rate': function () { return ({
|
|
1251
|
-
discriminator: 'flat_rate',
|
|
1252
|
-
price: factories['io.flow.common.v0.models.price'](),
|
|
1253
|
-
zero_amount_indicator: factories['io.flow.fulfillment.v0.enums.zero_amount_indicator'](),
|
|
1398
|
+
position: factories.long(),
|
|
1399
|
+
measurement_system: factories['io.flow.common.v0.enums.measurement_system'](),
|
|
1400
|
+
subcatalog_id: factories.string(),
|
|
1254
1401
|
}); },
|
|
1255
|
-
'io.flow.
|
|
1256
|
-
|
|
1257
|
-
|
|
1258
|
-
|
|
1402
|
+
'io.flow.experience.v0.models.experience_geo': function () { return ({
|
|
1403
|
+
key: factories.string(),
|
|
1404
|
+
name: factories.string(),
|
|
1405
|
+
region: factories['io.flow.experience.v0.models.region_reference'](),
|
|
1406
|
+
country: factories.string(),
|
|
1407
|
+
currency: factories.string(),
|
|
1408
|
+
language: factories.string(),
|
|
1409
|
+
measurement_system: factories['io.flow.common.v0.enums.measurement_system'](),
|
|
1259
1410
|
}); },
|
|
1260
|
-
'io.flow.
|
|
1411
|
+
'io.flow.experience.v0.models.experience_logistics_settings': function () { return ({
|
|
1261
1412
|
id: factories.string(),
|
|
1262
|
-
|
|
1413
|
+
experience: factories['io.flow.experience.v0.models.experience_overview'](),
|
|
1414
|
+
shipping_configuration: factories['io.flow.fulfillment.v0.models.shipping_configuration_reference'](),
|
|
1263
1415
|
}); },
|
|
1264
|
-
'io.flow.
|
|
1265
|
-
|
|
1266
|
-
amount: factories['io.flow.common.v0.models.money'](),
|
|
1416
|
+
'io.flow.experience.v0.models.experience_logistics_settings_put_form': function () { return ({
|
|
1417
|
+
shipping_configuration_key: factories.string(),
|
|
1267
1418
|
}); },
|
|
1268
|
-
'io.flow.
|
|
1269
|
-
|
|
1270
|
-
|
|
1419
|
+
'io.flow.experience.v0.models.experience_logistics_summary': function () { return ({
|
|
1420
|
+
outbound: factories['io.flow.experience.v0.models.experience_logistics_tier_summary'](),
|
|
1421
|
+
'return': factories['io.flow.experience.v0.models.experience_logistics_tier_summary'](),
|
|
1271
1422
|
}); },
|
|
1272
|
-
'io.flow.
|
|
1273
|
-
|
|
1274
|
-
max: factories.long(),
|
|
1423
|
+
'io.flow.experience.v0.models.experience_logistics_tier_summary': function () { return ({
|
|
1424
|
+
prices: factories['io.flow.experience.v0.models.experience_logistics_tier_summary_prices'](),
|
|
1275
1425
|
}); },
|
|
1276
|
-
'io.flow.
|
|
1277
|
-
|
|
1278
|
-
dimensional: factories['io.flow.common.v0.models.measurement'](),
|
|
1426
|
+
'io.flow.experience.v0.models.experience_logistics_tier_summary_prices': function () { return ({
|
|
1427
|
+
minimum: factories['io.flow.common.v0.models.price'](),
|
|
1279
1428
|
}); },
|
|
1280
|
-
'io.flow.
|
|
1281
|
-
|
|
1282
|
-
|
|
1429
|
+
'io.flow.experience.v0.models.experience_overview': function () { return ({
|
|
1430
|
+
id: factories.string(),
|
|
1431
|
+
key: factories.string(),
|
|
1283
1432
|
}); },
|
|
1284
|
-
'io.flow.
|
|
1285
|
-
|
|
1286
|
-
|
|
1287
|
-
number: factories.string(),
|
|
1433
|
+
'io.flow.experience.v0.models.experience_payment_method_rule': function () { return ({
|
|
1434
|
+
experience_key: factories.string(),
|
|
1435
|
+
payment_method_rules: arrayOf(function () { return factories['io.flow.experience.v0.models.payment_method_rule'](); }),
|
|
1288
1436
|
}); },
|
|
1289
|
-
'io.flow.
|
|
1290
|
-
|
|
1291
|
-
|
|
1292
|
-
|
|
1437
|
+
'io.flow.experience.v0.models.experience_payment_method_rule_form': function () { return ({
|
|
1438
|
+
payment_method_id: factories.string(),
|
|
1439
|
+
tags: arrayOf(function () { return factories['io.flow.experience.v0.enums.experience_payment_method_tag'](); }),
|
|
1440
|
+
q: factories.string(),
|
|
1293
1441
|
}); },
|
|
1294
|
-
'io.flow.
|
|
1295
|
-
|
|
1296
|
-
|
|
1297
|
-
|
|
1442
|
+
'io.flow.experience.v0.models.experience_price_book_mapping': function () { return ({
|
|
1443
|
+
id: factories.string(),
|
|
1444
|
+
experience: factories['io.flow.experience.v0.models.experience_reference'](),
|
|
1445
|
+
price_book: factories['io.flow.price.v0.models.price_book_reference'](),
|
|
1446
|
+
position: factories.long(),
|
|
1298
1447
|
}); },
|
|
1299
|
-
'io.flow.
|
|
1300
|
-
|
|
1301
|
-
|
|
1448
|
+
'io.flow.experience.v0.models.experience_price_book_mapping_form': function () { return ({
|
|
1449
|
+
price_book_key: factories.string(),
|
|
1450
|
+
position: factories.long(),
|
|
1302
1451
|
}); },
|
|
1303
|
-
'io.flow.
|
|
1304
|
-
|
|
1305
|
-
id: factories.string(),
|
|
1306
|
-
key: factories.string(),
|
|
1307
|
-
center: factories['io.flow.fulfillment.v0.models.center_summary'](),
|
|
1308
|
-
fulfillment_routing: factories['io.flow.fulfillment.v0.enums.fulfillment_routing'](),
|
|
1309
|
-
ship_from_country: factories.string(),
|
|
1310
|
-
items: arrayOf(function () { return factories['io.flow.fulfillment.v0.models.delivery_item'](); }),
|
|
1311
|
-
options: arrayOf(function () { return factories['io.flow.fulfillment.v0.models.delivery_option'](); }),
|
|
1312
|
-
special_services: arrayOf(function () { return factories['io.flow.fulfillment.v0.enums.physical_delivery_special_serivce'](); }),
|
|
1313
|
-
prices: arrayOf(function () { return factories['io.flow.order.price.v0.models.order_price_detail'](); }),
|
|
1314
|
-
total: factories['io.flow.catalog.v0.models.localized_total'](),
|
|
1315
|
-
goods_supply: factories['io.flow.common.v0.enums.goods_supply'](),
|
|
1316
|
-
merchant_of_record_flow_entity: factories['io.flow.merchant.of.record.v0.enums.flow_entity'](),
|
|
1317
|
-
preferred_service: factories['io.flow.fulfillment.v0.models.physical_delivery_preferred_service'](),
|
|
1452
|
+
'io.flow.experience.v0.models.experience_price_book_mapping_put_form': function () { return ({
|
|
1453
|
+
price_books: arrayOf(function () { return factories['io.flow.experience.v0.models.experience_price_book_mapping_form'](); }),
|
|
1318
1454
|
}); },
|
|
1319
|
-
'io.flow.
|
|
1320
|
-
|
|
1321
|
-
|
|
1455
|
+
'io.flow.experience.v0.models.experience_price_conversion': function () { return ({
|
|
1456
|
+
request: factories['io.flow.experience.v0.models.experience_price_conversion_request'](),
|
|
1457
|
+
price: factories['io.flow.common.v0.models.price_with_base'](),
|
|
1322
1458
|
}); },
|
|
1323
|
-
'io.flow.
|
|
1324
|
-
|
|
1325
|
-
|
|
1326
|
-
|
|
1327
|
-
base: factories['io.flow.common.v0.models.price'](),
|
|
1328
|
-
details: arrayOf(function () { return factories['io.flow.fulfillment.v0.models.delivery_option_cost_detail'](); }),
|
|
1459
|
+
'io.flow.experience.v0.models.experience_price_conversion_request': function () { return ({
|
|
1460
|
+
value: factories.decimal(),
|
|
1461
|
+
base: factories.string(),
|
|
1462
|
+
local: factories.string(),
|
|
1329
1463
|
}); },
|
|
1330
|
-
'io.flow.
|
|
1331
|
-
|
|
1332
|
-
min_date: factories.date_time_iso_8601(),
|
|
1333
|
-
max_date: factories.date_time_iso_8601(),
|
|
1334
|
-
source: factories['io.flow.fulfillment.v0.enums.delivery_window_component_source'](),
|
|
1464
|
+
'io.flow.experience.v0.models.experience_price_conversion_response': function () { return ({
|
|
1465
|
+
prices: arrayOf(function () { return factories['io.flow.experience.v0.models.experience_price_conversion'](); }),
|
|
1335
1466
|
}); },
|
|
1336
|
-
'io.flow.
|
|
1337
|
-
|
|
1338
|
-
|
|
1339
|
-
deliveries: arrayOf(function () { return factories['io.flow.fulfillment.v0.unions.delivery'](); }),
|
|
1340
|
-
selections: arrayOf(function () { return factories['io.flow.fulfillment.v0.models.delivery_option_reference'](); }),
|
|
1341
|
-
delivered_duty: factories['io.flow.common.v0.enums.delivered_duty'](),
|
|
1342
|
-
delivered_duties: arrayOf(function () { return factories['io.flow.common.v0.enums.delivered_duty'](); }),
|
|
1467
|
+
'io.flow.experience.v0.models.experience_price_facet_conversion': function () { return ({
|
|
1468
|
+
request: factories['io.flow.experience.v0.models.experience_price_facet_conversion_request'](),
|
|
1469
|
+
price: factories['io.flow.common.v0.models.price_with_base'](),
|
|
1343
1470
|
}); },
|
|
1344
|
-
'io.flow.
|
|
1345
|
-
|
|
1346
|
-
|
|
1347
|
-
|
|
1471
|
+
'io.flow.experience.v0.models.experience_price_facet_conversion_request': function () { return ({
|
|
1472
|
+
boundary: factories['io.flow.experience.v0.enums.price_facet_boundary'](),
|
|
1473
|
+
value: factories.decimal(),
|
|
1474
|
+
base: factories.string(),
|
|
1475
|
+
local: factories.string(),
|
|
1348
1476
|
}); },
|
|
1349
|
-
'io.flow.
|
|
1350
|
-
|
|
1351
|
-
experience: factories.string(),
|
|
1352
|
-
items: arrayOf(function () { return factories['io.flow.fulfillment.v0.models.quote_line_item_form'](); }),
|
|
1353
|
-
delivered_duty: factories['io.flow.common.v0.enums.delivered_duty'](),
|
|
1354
|
-
delivered_duties: arrayOf(function () { return factories['io.flow.common.v0.enums.delivered_duty'](); }),
|
|
1355
|
-
direction: factories['io.flow.fulfillment.v0.enums.lane_direction'](),
|
|
1477
|
+
'io.flow.experience.v0.models.experience_price_facet_conversion_response': function () { return ({
|
|
1478
|
+
facets: arrayOf(function () { return factories['io.flow.experience.v0.models.experience_price_facet_conversion'](); }),
|
|
1356
1479
|
}); },
|
|
1357
|
-
'io.flow.
|
|
1358
|
-
|
|
1359
|
-
|
|
1360
|
-
shipment_estimate: factories['io.flow.common.v0.models.datetime_range'](),
|
|
1361
|
-
price: factories['io.flow.common.v0.models.money_with_base'](),
|
|
1362
|
-
attributes: objectOf(function () { return factories.string(); }),
|
|
1363
|
-
center: factories.string(),
|
|
1480
|
+
'io.flow.experience.v0.models.experience_reference': function () { return ({
|
|
1481
|
+
discriminator: 'experience_reference',
|
|
1482
|
+
key: factories.string(),
|
|
1364
1483
|
}); },
|
|
1365
|
-
'io.flow.
|
|
1366
|
-
|
|
1367
|
-
|
|
1484
|
+
'io.flow.experience.v0.models.experience_settings': function () { return ({
|
|
1485
|
+
delivered_duty: factories['io.flow.experience.v0.models.delivered_duty_setting'](),
|
|
1486
|
+
pricing_settings: factories['io.flow.experience.v0.models.pricing_settings'](),
|
|
1487
|
+
logistics_settings: factories['io.flow.experience.v0.models.logistics_settings'](),
|
|
1488
|
+
checkout_settings: factories['io.flow.experience.v0.models.experience_checkout_configuration_settings'](),
|
|
1368
1489
|
}); },
|
|
1369
|
-
'io.flow.
|
|
1490
|
+
'io.flow.experience.v0.models.experience_status_form': function () { return ({
|
|
1491
|
+
status: factories['io.flow.experience.v0.enums.experience_status'](),
|
|
1492
|
+
}); },
|
|
1493
|
+
'io.flow.experience.v0.models.experience_version': function () { return ({
|
|
1370
1494
|
id: factories.string(),
|
|
1371
1495
|
timestamp: factories.date_time_iso_8601(),
|
|
1372
1496
|
type: factories['io.flow.common.v0.enums.change_type'](),
|
|
1373
|
-
|
|
1497
|
+
experience: factories['io.flow.experience.v0.models.experience'](),
|
|
1374
1498
|
}); },
|
|
1375
|
-
'io.flow.
|
|
1376
|
-
|
|
1377
|
-
|
|
1378
|
-
|
|
1499
|
+
'io.flow.experience.v0.models.free_shipping': function () { return ({
|
|
1500
|
+
discriminator: 'free_shipping',
|
|
1501
|
+
trigger: factories['io.flow.experience.v0.models.promotion_trigger'](),
|
|
1502
|
+
max: factories['io.flow.common.v0.models.price'](),
|
|
1379
1503
|
}); },
|
|
1380
|
-
'io.flow.
|
|
1504
|
+
'io.flow.experience.v0.models.free_shipping_order_promotion': function () { return ({
|
|
1505
|
+
discriminator: 'free_shipping_order_promotion',
|
|
1381
1506
|
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(); }),
|
|
1382
1512
|
}); },
|
|
1383
|
-
'io.flow.
|
|
1384
|
-
discriminator: '
|
|
1385
|
-
|
|
1386
|
-
|
|
1387
|
-
|
|
1388
|
-
center_code: factories.string(),
|
|
1513
|
+
'io.flow.experience.v0.models.free_shipping_order_promotion_form': function () { return ({
|
|
1514
|
+
discriminator: 'free_shipping_order_promotion_form',
|
|
1515
|
+
trigger: factories['io.flow.experience.v0.models.promotion_trigger_form'](),
|
|
1516
|
+
max: factories['io.flow.common.v0.models.price_form'](),
|
|
1517
|
+
attributes: objectOf(function () { return factories.string(); }),
|
|
1389
1518
|
}); },
|
|
1390
|
-
'io.flow.
|
|
1391
|
-
|
|
1392
|
-
|
|
1519
|
+
'io.flow.experience.v0.models.incoterm_includes': function () { return ({
|
|
1520
|
+
duties: factories.boolean(),
|
|
1521
|
+
taxes: factories.boolean(),
|
|
1393
1522
|
}); },
|
|
1394
|
-
'io.flow.
|
|
1395
|
-
|
|
1396
|
-
|
|
1397
|
-
|
|
1398
|
-
center_reference: factories['io.flow.fulfillment.v0.models.center_reference'](),
|
|
1399
|
-
service: factories['io.flow.fulfillment.v0.models.service_summary'](),
|
|
1523
|
+
'io.flow.experience.v0.models.incoterm_summary': function () { return ({
|
|
1524
|
+
configuration: factories['io.flow.experience.v0.enums.incoterm_configuration'](),
|
|
1525
|
+
includes: factories['io.flow.experience.v0.models.incoterm_includes'](),
|
|
1526
|
+
reason: factories.string(),
|
|
1400
1527
|
}); },
|
|
1401
|
-
'io.flow.
|
|
1528
|
+
'io.flow.experience.v0.models.item_margin': function () { return ({
|
|
1402
1529
|
id: factories.string(),
|
|
1403
|
-
name: factories.string(),
|
|
1404
1530
|
key: factories.string(),
|
|
1405
|
-
|
|
1406
|
-
|
|
1407
|
-
|
|
1408
|
-
|
|
1409
|
-
|
|
1410
|
-
|
|
1531
|
+
name: factories.string(),
|
|
1532
|
+
q: factories.string(),
|
|
1533
|
+
fixed: factories.decimal(),
|
|
1534
|
+
percent: factories.decimal(),
|
|
1535
|
+
position: factories.long(),
|
|
1536
|
+
experience: factories['io.flow.experience.v0.models.experience_reference'](),
|
|
1411
1537
|
}); },
|
|
1412
|
-
'io.flow.
|
|
1538
|
+
'io.flow.experience.v0.models.item_margin_post_form': function () { return ({
|
|
1413
1539
|
name: factories.string(),
|
|
1540
|
+
q: factories.string(),
|
|
1541
|
+
key: factories.string(),
|
|
1542
|
+
fixed: factories.decimal(),
|
|
1543
|
+
percent: factories.decimal(),
|
|
1544
|
+
position: factories.long(),
|
|
1414
1545
|
}); },
|
|
1415
|
-
'io.flow.
|
|
1546
|
+
'io.flow.experience.v0.models.item_margin_put_form': function () { return ({
|
|
1416
1547
|
name: factories.string(),
|
|
1548
|
+
q: factories.string(),
|
|
1549
|
+
fixed: factories.decimal(),
|
|
1550
|
+
percent: factories.decimal(),
|
|
1551
|
+
position: factories.long(),
|
|
1417
1552
|
}); },
|
|
1418
|
-
'io.flow.
|
|
1553
|
+
'io.flow.experience.v0.models.item_margin_version': function () { return ({
|
|
1419
1554
|
id: factories.string(),
|
|
1420
|
-
|
|
1421
|
-
|
|
1422
|
-
|
|
1555
|
+
timestamp: factories.date_time_iso_8601(),
|
|
1556
|
+
type: factories['io.flow.common.v0.enums.change_type'](),
|
|
1557
|
+
item_margin: factories['io.flow.experience.v0.models.item_margin'](),
|
|
1423
1558
|
}); },
|
|
1424
|
-
'io.flow.
|
|
1559
|
+
'io.flow.experience.v0.models.line': function () { return ({
|
|
1425
1560
|
id: factories.string(),
|
|
1426
|
-
|
|
1427
|
-
|
|
1428
|
-
|
|
1429
|
-
|
|
1430
|
-
|
|
1431
|
-
key: factories.string(),
|
|
1561
|
+
item_number: factories.string(),
|
|
1562
|
+
quantity: factories.long(),
|
|
1563
|
+
price: factories['io.flow.common.v0.models.price_with_base'](),
|
|
1564
|
+
total: factories['io.flow.common.v0.models.price_with_base'](),
|
|
1565
|
+
attributes: objectOf(function () { return factories.string(); }),
|
|
1432
1566
|
}); },
|
|
1433
|
-
'io.flow.
|
|
1567
|
+
'io.flow.experience.v0.models.localized_line_item': function () { return ({
|
|
1434
1568
|
id: factories.string(),
|
|
1569
|
+
number: factories.string(),
|
|
1435
1570
|
name: factories.string(),
|
|
1436
|
-
|
|
1437
|
-
|
|
1571
|
+
quantity: factories.long(),
|
|
1572
|
+
image: factories['io.flow.experience.v0.models.order_summary_image'](),
|
|
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'](),
|
|
1438
1581
|
}); },
|
|
1439
|
-
'io.flow.
|
|
1440
|
-
|
|
1441
|
-
|
|
1442
|
-
|
|
1443
|
-
|
|
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(),
|
|
1444
1589
|
}); },
|
|
1445
|
-
'io.flow.
|
|
1446
|
-
id: factories.string(),
|
|
1590
|
+
'io.flow.experience.v0.models.logistics_settings': function () { return ({
|
|
1447
1591
|
shipping_configuration: factories['io.flow.fulfillment.v0.models.shipping_configuration_reference'](),
|
|
1448
|
-
region: factories.string(),
|
|
1449
|
-
centers: arrayOf(function () { return factories['io.flow.fulfillment.v0.unions.expandable_center'](); }),
|
|
1450
|
-
tiers: arrayOf(function () { return factories['io.flow.fulfillment.v0.models.tier'](); }),
|
|
1451
|
-
query: factories['io.flow.query.builder.v0.models.query'](),
|
|
1452
|
-
strategy: factories['io.flow.fulfillment.v0.enums.lane_strategy'](),
|
|
1453
|
-
direction: factories['io.flow.fulfillment.v0.enums.lane_direction'](),
|
|
1454
|
-
preference: factories['io.flow.fulfillment.v0.enums.lane_preselect_preference'](),
|
|
1455
1592
|
}); },
|
|
1456
|
-
'io.flow.
|
|
1593
|
+
'io.flow.experience.v0.models.order': function () { return ({
|
|
1594
|
+
discriminator: 'order',
|
|
1457
1595
|
id: factories.string(),
|
|
1458
|
-
|
|
1596
|
+
number: factories.string(),
|
|
1597
|
+
order_type: factories['io.flow.experience.v0.enums.order_type'](),
|
|
1598
|
+
merchant_of_record: factories['io.flow.common.v0.enums.order_merchant_of_record'](),
|
|
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'](),
|
|
1459
1634
|
}); },
|
|
1460
|
-
'io.flow.
|
|
1461
|
-
|
|
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'](); }),
|
|
1462
1638
|
}); },
|
|
1463
|
-
'io.flow.
|
|
1464
|
-
|
|
1465
|
-
to: factories.string(),
|
|
1466
|
-
strategy: factories['io.flow.fulfillment.v0.enums.lane_strategy'](),
|
|
1467
|
-
direction: factories['io.flow.fulfillment.v0.enums.lane_direction'](),
|
|
1468
|
-
preference: factories['io.flow.fulfillment.v0.enums.lane_preselect_preference'](),
|
|
1639
|
+
'io.flow.experience.v0.models.order_builder_attributes_form': function () { return ({
|
|
1640
|
+
attributes: objectOf(function () { return factories.string(); }),
|
|
1469
1641
|
}); },
|
|
1470
|
-
'io.flow.
|
|
1471
|
-
|
|
1472
|
-
region: factories.string(),
|
|
1473
|
-
centers: arrayOf(function () { return factories['io.flow.fulfillment.v0.unions.expandable_center'](); }),
|
|
1642
|
+
'io.flow.experience.v0.models.order_builder_customer_form': function () { return ({
|
|
1643
|
+
customer: factories['io.flow.common.v0.models.order_customer_form'](),
|
|
1474
1644
|
}); },
|
|
1475
|
-
'io.flow.
|
|
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'](),
|
|
1669
|
+
}); },
|
|
1670
|
+
'io.flow.experience.v0.models.order_estimate': function () { return ({
|
|
1476
1671
|
id: factories.string(),
|
|
1477
|
-
|
|
1478
|
-
|
|
1479
|
-
|
|
1672
|
+
items: arrayOf(function () { return factories['io.flow.experience.v0.models.localized_line_item'](); }),
|
|
1673
|
+
destination: factories['io.flow.experience.v0.models.order_address'](),
|
|
1674
|
+
deliveries: arrayOf(function () { return factories['io.flow.fulfillment.v0.unions.delivery'](); }),
|
|
1675
|
+
prices: arrayOf(function () { return factories['io.flow.order.price.v0.models.order_price_detail'](); }),
|
|
1676
|
+
selections: arrayOf(function () { return factories.string(); }),
|
|
1677
|
+
total: factories['io.flow.catalog.v0.models.localized_total'](),
|
|
1678
|
+
lines: arrayOf(function () { return factories['io.flow.experience.v0.models.line'](); }),
|
|
1679
|
+
promotions: factories['io.flow.experience.v0.models.promotions'](),
|
|
1480
1680
|
}); },
|
|
1481
|
-
'io.flow.
|
|
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(),
|
|
1705
|
+
}); },
|
|
1706
|
+
'io.flow.experience.v0.models.order_identifier': function () { return ({
|
|
1707
|
+
id: factories.string(),
|
|
1708
|
+
order: factories['io.flow.experience.v0.models.order_reference'](),
|
|
1482
1709
|
name: factories.string(),
|
|
1483
|
-
|
|
1710
|
+
identifier: factories.string(),
|
|
1711
|
+
primary: factories.boolean(),
|
|
1712
|
+
number: factories.string(),
|
|
1484
1713
|
}); },
|
|
1485
|
-
'io.flow.
|
|
1486
|
-
|
|
1487
|
-
|
|
1714
|
+
'io.flow.experience.v0.models.order_identifier_form': function () { return ({
|
|
1715
|
+
order: factories.string(),
|
|
1716
|
+
name: factories.string(),
|
|
1717
|
+
identifier: factories.string(),
|
|
1718
|
+
number: factories.string(),
|
|
1719
|
+
primary: factories.boolean(),
|
|
1488
1720
|
}); },
|
|
1489
|
-
'io.flow.
|
|
1721
|
+
'io.flow.experience.v0.models.order_identifier_put_form': function () { return ({
|
|
1722
|
+
order: factories.string(),
|
|
1490
1723
|
name: factories.string(),
|
|
1491
|
-
|
|
1492
|
-
key: factories['io.flow.fulfillment.v0.enums.delivery_option_cost_detail_component_key'](),
|
|
1493
|
-
available: arrayOf(function () { return factories['io.flow.fulfillment.v0.models.surcharge_responsible_party_display'](); }),
|
|
1724
|
+
primary: factories.boolean(),
|
|
1494
1725
|
}); },
|
|
1495
|
-
'io.flow.
|
|
1726
|
+
'io.flow.experience.v0.models.order_identifier_version': function () { return ({
|
|
1496
1727
|
id: factories.string(),
|
|
1497
|
-
|
|
1498
|
-
|
|
1499
|
-
|
|
1500
|
-
message: factories.string(),
|
|
1501
|
-
rules: arrayOf(function () { return factories['io.flow.fulfillment.v0.models.tier_rule'](); }),
|
|
1502
|
-
services: arrayOf(function () { return factories['io.flow.reference.v0.models.carrier_service'](); }),
|
|
1503
|
-
strategy: factories['io.flow.fulfillment.v0.enums.tier_strategy'](),
|
|
1504
|
-
visibility: factories['io.flow.common.v0.enums.visibility'](),
|
|
1505
|
-
currency: factories.string(),
|
|
1506
|
-
description: factories.string(),
|
|
1507
|
-
display: factories['io.flow.fulfillment.v0.models.tier_display'](),
|
|
1508
|
-
shipping_lane: factories.string(),
|
|
1509
|
-
surcharge_settings: arrayOf(function () { return factories['io.flow.fulfillment.v0.models.surcharge_setting'](); }),
|
|
1510
|
-
lane: factories['io.flow.fulfillment.v0.models.shipping_lane_summary'](),
|
|
1511
|
-
settings: factories['io.flow.fulfillment.v0.models.tier_settings'](),
|
|
1728
|
+
timestamp: factories.date_time_iso_8601(),
|
|
1729
|
+
type: factories['io.flow.common.v0.enums.change_type'](),
|
|
1730
|
+
order_identifier: factories['io.flow.experience.v0.models.order_identifier'](),
|
|
1512
1731
|
}); },
|
|
1513
|
-
'io.flow.
|
|
1514
|
-
|
|
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(),
|
|
1515
1736
|
}); },
|
|
1516
|
-
'io.flow.
|
|
1517
|
-
|
|
1737
|
+
'io.flow.experience.v0.models.order_number_generator_fixed_length': function () { return ({
|
|
1738
|
+
length: factories.integer(),
|
|
1739
|
+
padding: factories.string(),
|
|
1518
1740
|
}); },
|
|
1519
|
-
'io.flow.
|
|
1520
|
-
|
|
1521
|
-
label: factories.string(),
|
|
1741
|
+
'io.flow.experience.v0.models.order_number_generator_generated_number': function () { return ({
|
|
1742
|
+
number: factories.string(),
|
|
1522
1743
|
}); },
|
|
1523
|
-
'io.flow.
|
|
1524
|
-
|
|
1525
|
-
|
|
1526
|
-
name: factories.string(),
|
|
1527
|
-
message: factories.string(),
|
|
1528
|
-
rules: arrayOf(function () { return factories['io.flow.fulfillment.v0.models.tier_rule_form'](); }),
|
|
1529
|
-
services: arrayOf(function () { return factories.string(); }),
|
|
1530
|
-
strategy: factories['io.flow.fulfillment.v0.enums.tier_strategy'](),
|
|
1531
|
-
visibility: factories['io.flow.common.v0.enums.visibility'](),
|
|
1532
|
-
description: factories.string(),
|
|
1533
|
-
direction: factories['io.flow.fulfillment.v0.enums.lane_direction'](),
|
|
1534
|
-
display: factories['io.flow.fulfillment.v0.models.tier_display_form'](),
|
|
1535
|
-
shipping_lane: factories.string(),
|
|
1536
|
-
surcharge_settings: arrayOf(function () { return factories['io.flow.fulfillment.v0.models.surcharge_setting'](); }),
|
|
1537
|
-
settings: factories['io.flow.fulfillment.v0.models.tier_settings'](),
|
|
1744
|
+
'io.flow.experience.v0.models.order_number_generator_hexadecimal': function () { return ({
|
|
1745
|
+
discriminator: 'hexadecimal',
|
|
1746
|
+
length: factories.integer(),
|
|
1538
1747
|
}); },
|
|
1539
|
-
'io.flow.
|
|
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(),
|
|
1758
|
+
}); },
|
|
1759
|
+
'io.flow.experience.v0.models.order_number_reference': function () { return ({
|
|
1760
|
+
number: factories.string(),
|
|
1761
|
+
}); },
|
|
1762
|
+
'io.flow.experience.v0.models.order_options': function () { return ({
|
|
1763
|
+
storage: factories['io.flow.experience.v0.enums.order_storage'](),
|
|
1764
|
+
}); },
|
|
1765
|
+
'io.flow.experience.v0.models.order_payment': function () { return ({
|
|
1540
1766
|
id: factories.string(),
|
|
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(),
|
|
1770
|
+
description: factories.string(),
|
|
1771
|
+
total: factories['io.flow.common.v0.models.price_with_base'](),
|
|
1772
|
+
address: factories['io.flow.common.v0.models.billing_address'](),
|
|
1773
|
+
date: factories.date_time_iso_8601(),
|
|
1774
|
+
attributes: objectOf(function () { return factories.string(); }),
|
|
1775
|
+
method: factories.string(),
|
|
1541
1776
|
}); },
|
|
1542
|
-
'io.flow.
|
|
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'](),
|
|
1795
|
+
}); },
|
|
1796
|
+
'io.flow.experience.v0.models.order_reference': function () { return ({
|
|
1797
|
+
discriminator: 'order_reference',
|
|
1543
1798
|
id: factories.string(),
|
|
1544
|
-
|
|
1545
|
-
query: factories.string(),
|
|
1546
|
-
outcome: factories['io.flow.fulfillment.v0.unions.tier_rule_outcome'](),
|
|
1799
|
+
number: factories.string(),
|
|
1547
1800
|
}); },
|
|
1548
|
-
'io.flow.
|
|
1549
|
-
|
|
1550
|
-
|
|
1551
|
-
outcome: factories['io.flow.fulfillment.v0.unions.tier_rule_outcome_form'](),
|
|
1801
|
+
'io.flow.experience.v0.models.order_refund_summary': function () { return ({
|
|
1802
|
+
currency: factories.string(),
|
|
1803
|
+
amounts: factories['io.flow.experience.v0.models.order_refund_summary_amounts'](),
|
|
1552
1804
|
}); },
|
|
1553
|
-
'io.flow.
|
|
1805
|
+
'io.flow.experience.v0.models.order_refund_summary_amounts': function () { return ({
|
|
1806
|
+
balance: factories.decimal(),
|
|
1807
|
+
item_subtotal: factories.decimal(),
|
|
1808
|
+
discount: factories.decimal(),
|
|
1809
|
+
refund_total: factories.decimal(),
|
|
1810
|
+
shipping: factories.decimal(),
|
|
1811
|
+
vat: factories.decimal(),
|
|
1812
|
+
duty: factories.decimal(),
|
|
1813
|
+
}); },
|
|
1814
|
+
'io.flow.experience.v0.models.order_refund_summary_full_form': function () { return ({
|
|
1815
|
+
discriminator: 'order_refund_summary_full_form',
|
|
1816
|
+
includes: arrayOf(function () { return factories['io.flow.experience.v0.enums.order_refund_summary_includes'](); }),
|
|
1817
|
+
}); },
|
|
1818
|
+
'io.flow.experience.v0.models.order_refund_summary_item': function () { return ({
|
|
1819
|
+
number: factories.string(),
|
|
1820
|
+
quantity_to_refund: factories.long(),
|
|
1821
|
+
}); },
|
|
1822
|
+
'io.flow.experience.v0.models.order_refund_summary_partial_form': function () { return ({
|
|
1823
|
+
discriminator: 'order_refund_summary_partial_form',
|
|
1824
|
+
includes: arrayOf(function () { return factories['io.flow.experience.v0.models.order_refund_summary_partial_includes'](); }),
|
|
1825
|
+
items: arrayOf(function () { return factories['io.flow.experience.v0.models.order_refund_summary_item'](); }),
|
|
1826
|
+
}); },
|
|
1827
|
+
'io.flow.experience.v0.models.order_refund_summary_partial_includes': function () { return ({
|
|
1828
|
+
key: factories['io.flow.experience.v0.enums.order_refund_summary_includes'](),
|
|
1829
|
+
charged: factories['io.flow.experience.v0.enums.order_refund_summary_partial_charged'](),
|
|
1830
|
+
}); },
|
|
1831
|
+
'io.flow.experience.v0.models.order_replacement': function () { return ({
|
|
1554
1832
|
id: factories.string(),
|
|
1555
|
-
|
|
1556
|
-
|
|
1557
|
-
tier_rule: factories['io.flow.fulfillment.v0.models.tier_rule'](),
|
|
1833
|
+
parent_order: factories['io.flow.experience.v0.models.order'](),
|
|
1834
|
+
replacement_order: factories['io.flow.experience.v0.models.order'](),
|
|
1558
1835
|
}); },
|
|
1559
|
-
'io.flow.
|
|
1560
|
-
|
|
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'](); }),
|
|
1561
1838
|
}); },
|
|
1562
|
-
'io.flow.
|
|
1839
|
+
'io.flow.experience.v0.models.order_rule_reference': function () { return ({
|
|
1563
1840
|
id: factories.string(),
|
|
1564
|
-
|
|
1565
|
-
integration: factories['io.flow.fulfillment.v0.enums.shipment_integration_type'](),
|
|
1566
|
-
name: factories.string(),
|
|
1567
|
-
services: arrayOf(function () { return factories.string(); }),
|
|
1568
|
-
strategy: factories['io.flow.fulfillment.v0.enums.tier_strategy'](),
|
|
1569
|
-
visibility: factories['io.flow.common.v0.enums.visibility'](),
|
|
1570
|
-
currency: factories.string(),
|
|
1571
|
-
display: factories['io.flow.fulfillment.v0.models.tier_display'](),
|
|
1572
|
-
message: factories.string(),
|
|
1573
|
-
settings: factories['io.flow.fulfillment.v0.models.tier_settings'](),
|
|
1841
|
+
key: factories.string(),
|
|
1574
1842
|
}); },
|
|
1575
|
-
'io.flow.
|
|
1843
|
+
'io.flow.experience.v0.models.order_rules_summary': function () { return ({
|
|
1844
|
+
applied: arrayOf(function () { return factories['io.flow.experience.v0.models.order_rule_reference'](); }),
|
|
1845
|
+
}); },
|
|
1846
|
+
'io.flow.experience.v0.models.order_service_change': function () { return ({
|
|
1576
1847
|
id: factories.string(),
|
|
1577
|
-
|
|
1578
|
-
|
|
1579
|
-
tier: factories['io.flow.fulfillment.v0.models.tier_summary'](),
|
|
1848
|
+
from: factories['io.flow.reference.v0.models.carrier_service'](),
|
|
1849
|
+
to: factories['io.flow.reference.v0.models.carrier_service'](),
|
|
1580
1850
|
}); },
|
|
1581
|
-
'io.flow.
|
|
1582
|
-
|
|
1583
|
-
|
|
1584
|
-
min_date: factories.date_time_iso_8601(),
|
|
1585
|
-
max_date: factories.date_time_iso_8601(),
|
|
1586
|
-
source: factories['io.flow.fulfillment.v0.enums.delivery_window_component_source'](),
|
|
1851
|
+
'io.flow.experience.v0.models.order_service_change_form': function () { return ({
|
|
1852
|
+
from_service_id: factories.string(),
|
|
1853
|
+
to_service_id: factories.string(),
|
|
1587
1854
|
}); },
|
|
1588
|
-
'io.flow.
|
|
1855
|
+
'io.flow.experience.v0.models.order_service_change_request_data': function () { return ({
|
|
1856
|
+
id: factories.string(),
|
|
1857
|
+
source_url: factories.string(),
|
|
1858
|
+
filename: factories.string(),
|
|
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(),
|
|
1865
|
+
name: factories.string(),
|
|
1866
|
+
primary: factories.boolean(),
|
|
1867
|
+
}); },
|
|
1868
|
+
'io.flow.experience.v0.models.order_summary': function () { return ({
|
|
1869
|
+
number: factories.string(),
|
|
1870
|
+
subtotal: factories['io.flow.experience.v0.models.order_summary_price_detail'](),
|
|
1871
|
+
shipping: factories['io.flow.experience.v0.models.order_summary_price_detail'](),
|
|
1872
|
+
tax: factories['io.flow.experience.v0.models.order_summary_price_detail'](),
|
|
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'](),
|
|
1956
|
+
}); },
|
|
1957
|
+
'io.flow.experience.v0.models.pricing_version': function () { return ({
|
|
1958
|
+
id: factories.string(),
|
|
1959
|
+
timestamp: factories.date_time_iso_8601(),
|
|
1960
|
+
type: factories['io.flow.common.v0.enums.change_type'](),
|
|
1961
|
+
pricing: factories['io.flow.price.v0.models.pricing'](),
|
|
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(),
|
|
1978
|
+
}); },
|
|
1979
|
+
'io.flow.experience.v0.models.value_threshold_exceeded_details': function () { return ({
|
|
1980
|
+
local: factories['io.flow.common.v0.models.price'](),
|
|
1981
|
+
original: factories['io.flow.common.v0.models.price'](),
|
|
1982
|
+
}); },
|
|
1983
|
+
'io.flow.experience.v0.unions.allocation_component': function () {
|
|
1589
1984
|
var f = faker.helpers.arrayElement([
|
|
1590
|
-
function () { return factories['io.flow.
|
|
1591
|
-
function () { return factories['io.flow.
|
|
1985
|
+
function () { return factories['io.flow.experience.v0.models.allocation_detail_component'](); },
|
|
1986
|
+
function () { return factories['io.flow.experience.v0.models.allocation_levy_component'](); },
|
|
1592
1987
|
]);
|
|
1593
1988
|
return f();
|
|
1594
1989
|
},
|
|
1595
|
-
'io.flow.
|
|
1990
|
+
'io.flow.experience.v0.unions.allocation_detail': function () {
|
|
1596
1991
|
var f = faker.helpers.arrayElement([
|
|
1597
|
-
function () { return factories['io.flow.
|
|
1598
|
-
function () { return factories['io.flow.
|
|
1992
|
+
function () { return factories['io.flow.experience.v0.models.allocation_line_detail'](); },
|
|
1993
|
+
function () { return factories['io.flow.experience.v0.models.allocation_order_detail'](); },
|
|
1599
1994
|
]);
|
|
1600
1995
|
return f();
|
|
1601
1996
|
},
|
|
1602
|
-
'io.flow.
|
|
1997
|
+
'io.flow.experience.v0.unions.discount_rule_entitlement': function () {
|
|
1603
1998
|
var f = faker.helpers.arrayElement([
|
|
1604
|
-
function () { return factories['io.flow.
|
|
1605
|
-
function () { return factories['io.flow.fulfillment.v0.models.inbound_carton_fee'](); },
|
|
1606
|
-
function () { return factories['io.flow.fulfillment.v0.models.outbound_carton_fee'](); },
|
|
1999
|
+
function () { return factories['io.flow.experience.v0.models.discount_rule_subsidy_entitlement'](); },
|
|
1607
2000
|
]);
|
|
1608
2001
|
return f();
|
|
1609
2002
|
},
|
|
1610
|
-
'io.flow.
|
|
2003
|
+
'io.flow.experience.v0.unions.expandable_experience': function () {
|
|
1611
2004
|
var f = faker.helpers.arrayElement([
|
|
1612
|
-
function () { return factories['io.flow.
|
|
1613
|
-
function () { return factories['io.flow.
|
|
2005
|
+
function () { return factories['io.flow.experience.v0.models.experience'](); },
|
|
2006
|
+
function () { return factories['io.flow.experience.v0.models.experience_reference'](); },
|
|
1614
2007
|
]);
|
|
1615
2008
|
return f();
|
|
1616
2009
|
},
|
|
1617
|
-
'io.flow.
|
|
2010
|
+
'io.flow.experience.v0.unions.expandable_order': function () {
|
|
1618
2011
|
var f = faker.helpers.arrayElement([
|
|
1619
|
-
function () { return factories['io.flow.
|
|
1620
|
-
function () { return factories['io.flow.
|
|
1621
|
-
function () { return factories['io.flow.fulfillment.v0.models.flat_rate'](); },
|
|
1622
|
-
function () { return factories['io.flow.fulfillment.v0.models.percent_margin'](); },
|
|
2012
|
+
function () { return factories['io.flow.experience.v0.models.order'](); },
|
|
2013
|
+
function () { return factories['io.flow.experience.v0.models.order_reference'](); },
|
|
1623
2014
|
]);
|
|
1624
2015
|
return f();
|
|
1625
2016
|
},
|
|
1626
|
-
'io.flow.
|
|
2017
|
+
'io.flow.experience.v0.unions.order_number_generator': function () {
|
|
1627
2018
|
var f = faker.helpers.arrayElement([
|
|
1628
|
-
function () { return factories['io.flow.
|
|
1629
|
-
function () { return factories['io.flow.
|
|
1630
|
-
function () { return factories['io.flow.
|
|
1631
|
-
function () { return factories['io.flow.fulfillment.v0.models.percent_margin'](); },
|
|
2019
|
+
function () { return factories['io.flow.experience.v0.models.order_number_generator_uuid'](); },
|
|
2020
|
+
function () { return factories['io.flow.experience.v0.models.order_number_generator_hexadecimal'](); },
|
|
2021
|
+
function () { return factories['io.flow.experience.v0.models.order_number_generator_prefix_suffix'](); },
|
|
1632
2022
|
]);
|
|
1633
2023
|
return f();
|
|
1634
2024
|
},
|
|
1635
|
-
'io.flow.
|
|
1636
|
-
|
|
1637
|
-
|
|
1638
|
-
|
|
1639
|
-
|
|
1640
|
-
|
|
1641
|
-
'io.flow.
|
|
1642
|
-
|
|
1643
|
-
|
|
1644
|
-
|
|
1645
|
-
|
|
1646
|
-
|
|
1647
|
-
|
|
1648
|
-
|
|
1649
|
-
|
|
1650
|
-
|
|
1651
|
-
|
|
1652
|
-
|
|
1653
|
-
|
|
1654
|
-
|
|
1655
|
-
|
|
1656
|
-
|
|
1657
|
-
|
|
1658
|
-
|
|
1659
|
-
|
|
1660
|
-
|
|
1661
|
-
|
|
2025
|
+
'io.flow.experience.v0.unions.order_promotion': function () {
|
|
2026
|
+
var f = faker.helpers.arrayElement([
|
|
2027
|
+
function () { return factories['io.flow.experience.v0.models.free_shipping_order_promotion'](); },
|
|
2028
|
+
]);
|
|
2029
|
+
return f();
|
|
2030
|
+
},
|
|
2031
|
+
'io.flow.experience.v0.unions.order_promotion_form': function () {
|
|
2032
|
+
var f = faker.helpers.arrayElement([
|
|
2033
|
+
function () { return factories['io.flow.experience.v0.models.free_shipping_order_promotion_form'](); },
|
|
2034
|
+
]);
|
|
2035
|
+
return f();
|
|
2036
|
+
},
|
|
2037
|
+
'io.flow.experience.v0.unions.order_refund_summary_form': function () {
|
|
2038
|
+
var f = faker.helpers.arrayElement([
|
|
2039
|
+
function () { return factories['io.flow.experience.v0.models.order_refund_summary_full_form'](); },
|
|
2040
|
+
function () { return factories['io.flow.experience.v0.models.order_refund_summary_partial_form'](); },
|
|
2041
|
+
]);
|
|
2042
|
+
return f();
|
|
2043
|
+
},
|
|
2044
|
+
'io.flow.experience.v0.unions.payment_method_tag': function () {
|
|
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 () {
|
|
2055
|
+
var f = faker.helpers.arrayElement([
|
|
2056
|
+
function () { return factories['io.flow.experience.v0.models.free_shipping'](); },
|
|
2057
|
+
function () { return factories['io.flow.experience.v0.models.discount'](); },
|
|
2058
|
+
]);
|
|
2059
|
+
return f();
|
|
2060
|
+
},
|
|
2061
|
+
'io.flow.field.validation.v0.models.field_validation_max': function () { return ({
|
|
2062
|
+
discriminator: 'max',
|
|
2063
|
+
length: factories.integer(),
|
|
1662
2064
|
}); },
|
|
1663
|
-
'io.flow.
|
|
1664
|
-
|
|
1665
|
-
|
|
2065
|
+
'io.flow.field.validation.v0.models.field_validation_min': function () { return ({
|
|
2066
|
+
discriminator: 'min',
|
|
2067
|
+
length: factories.integer(),
|
|
1666
2068
|
}); },
|
|
1667
|
-
'io.flow.
|
|
1668
|
-
|
|
1669
|
-
|
|
1670
|
-
billingAddress: factories['io.flow.google.pay.v0.models.address'](),
|
|
2069
|
+
'io.flow.field.validation.v0.models.field_validation_pattern': function () { return ({
|
|
2070
|
+
discriminator: 'pattern',
|
|
2071
|
+
pattern: factories.string(),
|
|
1671
2072
|
}); },
|
|
1672
|
-
'io.flow.
|
|
1673
|
-
|
|
1674
|
-
|
|
1675
|
-
billingAddressRequired: factories.boolean(),
|
|
1676
|
-
billingAddressParameters: factories['io.flow.google.pay.v0.models.billing_address_parameters'](),
|
|
2073
|
+
'io.flow.field.validation.v0.models.field_validation_required': function () { return ({
|
|
2074
|
+
discriminator: 'required',
|
|
2075
|
+
placeholder: factories.string(),
|
|
1677
2076
|
}); },
|
|
1678
|
-
'io.flow.
|
|
1679
|
-
discriminator: '
|
|
1680
|
-
|
|
1681
|
-
signature: factories.string(),
|
|
1682
|
-
signedMessage: factories.string(),
|
|
2077
|
+
'io.flow.field.validation.v0.models.field_validation_required_if_present': function () { return ({
|
|
2078
|
+
discriminator: 'required_if_present',
|
|
2079
|
+
placeholder: factories.string(),
|
|
1683
2080
|
}); },
|
|
1684
|
-
'io.flow.
|
|
1685
|
-
|
|
1686
|
-
|
|
1687
|
-
|
|
1688
|
-
|
|
2081
|
+
'io.flow.field.validation.v0.unions.field_validation_rule': function () {
|
|
2082
|
+
var f = faker.helpers.arrayElement([
|
|
2083
|
+
function () { return factories['io.flow.field.validation.v0.models.field_validation_required'](); },
|
|
2084
|
+
function () { return factories['io.flow.field.validation.v0.models.field_validation_required_if_present'](); },
|
|
2085
|
+
function () { return factories['io.flow.field.validation.v0.models.field_validation_min'](); },
|
|
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'](),
|
|
1689
2128
|
}); },
|
|
1690
|
-
'io.flow.
|
|
1691
|
-
|
|
1692
|
-
|
|
1693
|
-
authJwt: factories.string(),
|
|
2129
|
+
'io.flow.fulfillment.v0.models.amount_margin_form': function () { return ({
|
|
2130
|
+
discriminator: 'amount_margin_form',
|
|
2131
|
+
margin: factories['io.flow.common.v0.models.money'](),
|
|
1694
2132
|
}); },
|
|
1695
|
-
'io.flow.
|
|
1696
|
-
|
|
1697
|
-
|
|
1698
|
-
paymentMethodData: factories['io.flow.google.pay.v0.models.payment_method_data'](),
|
|
1699
|
-
email: factories.string(),
|
|
1700
|
-
shippingAddress: factories['io.flow.google.pay.v0.models.address'](),
|
|
2133
|
+
'io.flow.fulfillment.v0.models.at_cost': function () { return ({
|
|
2134
|
+
discriminator: 'at_cost',
|
|
2135
|
+
ignore: factories.string(),
|
|
1701
2136
|
}); },
|
|
1702
|
-
'io.flow.
|
|
1703
|
-
|
|
1704
|
-
|
|
1705
|
-
|
|
1706
|
-
allowedPaymentMethods: arrayOf(function () { return factories['io.flow.google.pay.v0.models.payment_method'](); }),
|
|
1707
|
-
transactionInfo: factories['io.flow.google.pay.v0.models.transaction_info'](),
|
|
1708
|
-
emailRequired: factories.boolean(),
|
|
1709
|
-
shippingAddressRequired: factories.boolean(),
|
|
1710
|
-
shippingAddressParameters: factories['io.flow.google.pay.v0.models.shipping_address_parameters'](),
|
|
2137
|
+
'io.flow.fulfillment.v0.models.available_service': function () { return ({
|
|
2138
|
+
service: factories.string(),
|
|
2139
|
+
scheduled_pickups: arrayOf(function () { return factories['io.flow.fulfillment.v0.models.scheduled_pickup'](); }),
|
|
2140
|
+
lead_days: factories['io.flow.fulfillment.v0.models.number_range'](),
|
|
1711
2141
|
}); },
|
|
1712
|
-
'io.flow.
|
|
1713
|
-
|
|
1714
|
-
parameters: factories['io.flow.google.pay.v0.models.card_payment_method_parameters'](),
|
|
1715
|
-
tokenizationSpecification: factories['io.flow.google.pay.v0.models.payment_method_tokenization_specification'](),
|
|
2142
|
+
'io.flow.fulfillment.v0.models.carrier_reference': function () { return ({
|
|
2143
|
+
id: factories.string(),
|
|
1716
2144
|
}); },
|
|
1717
|
-
'io.flow.
|
|
1718
|
-
|
|
1719
|
-
|
|
1720
|
-
|
|
1721
|
-
|
|
1722
|
-
|
|
1723
|
-
|
|
1724
|
-
|
|
1725
|
-
|
|
1726
|
-
|
|
1727
|
-
|
|
1728
|
-
|
|
1729
|
-
eciIndicator: factories.string(),
|
|
1730
|
-
}); },
|
|
1731
|
-
'io.flow.google.pay.v0.models.payment_method_tokenization_data': function () { return ({
|
|
1732
|
-
type: factories.string(),
|
|
1733
|
-
token: factories.string(),
|
|
1734
|
-
}); },
|
|
1735
|
-
'io.flow.google.pay.v0.models.payment_method_tokenization_specification': function () { return ({
|
|
1736
|
-
type: factories['io.flow.google.pay.v0.enums.tokenization_type'](),
|
|
1737
|
-
parameters: factories.object(),
|
|
1738
|
-
}); },
|
|
1739
|
-
'io.flow.google.pay.v0.models.shipping_address_parameters': function () { return ({
|
|
1740
|
-
allowedCountryCodes: arrayOf(function () { return factories.string(); }),
|
|
1741
|
-
}); },
|
|
1742
|
-
'io.flow.google.pay.v0.models.signed_message': function () { return ({
|
|
1743
|
-
encryptedMessage: factories.string(),
|
|
1744
|
-
ephemeralPublicKey: factories.string(),
|
|
1745
|
-
tag: factories.string(),
|
|
1746
|
-
}); },
|
|
1747
|
-
'io.flow.google.pay.v0.models.stripe_payment_method_token': function () { return ({
|
|
1748
|
-
discriminator: 'stripe_payment_method_token',
|
|
1749
|
-
token: factories['io.flow.stripe.v0.models.token'](),
|
|
1750
|
-
}); },
|
|
1751
|
-
'io.flow.google.pay.v0.models.transaction_info': function () { return ({
|
|
1752
|
-
totalPriceStatus: factories['io.flow.google.pay.v0.enums.total_price_status'](),
|
|
1753
|
-
totalPrice: factories.string(),
|
|
1754
|
-
currencyCode: factories.string(),
|
|
1755
|
-
}); },
|
|
1756
|
-
'io.flow.google.pay.v0.unions.payment_method_token': function () {
|
|
1757
|
-
var f = faker.helpers.arrayElement([
|
|
1758
|
-
function () { return factories['io.flow.google.pay.v0.models.direct_payment_method_token'](); },
|
|
1759
|
-
function () { return factories['io.flow.google.pay.v0.models.stripe_payment_method_token'](); },
|
|
1760
|
-
]);
|
|
1761
|
-
return f();
|
|
1762
|
-
},
|
|
1763
|
-
'io.flow.inventory.v0.enums.aggregate': function () { return faker.helpers.arrayElement(['maximum', 'minimum']); },
|
|
1764
|
-
'io.flow.inventory.v0.enums.inventory_status': function () { return faker.helpers.arrayElement(['has_inventory', 'no_inventory']); },
|
|
1765
|
-
'io.flow.inventory.v0.enums.update_type': function () { return faker.helpers.arrayElement(['change', 'set']); },
|
|
1766
|
-
'io.flow.inventory.v0.models.external_api_timeout_reservation_error': function () { return ({
|
|
1767
|
-
code: 'external_api_timeout',
|
|
1768
|
-
messages: arrayOf(function () { return factories.string(); }),
|
|
1769
|
-
}); },
|
|
1770
|
-
'io.flow.inventory.v0.models.generic_reservation_error': function () { return ({
|
|
1771
|
-
code: 'generic_reservation_error',
|
|
1772
|
-
messages: arrayOf(function () { return factories.string(); }),
|
|
1773
|
-
}); },
|
|
1774
|
-
'io.flow.inventory.v0.models.inventory_backorder': function () { return ({
|
|
1775
|
-
discriminator: 'inventory_backorder',
|
|
1776
|
-
quantity: factories.long(),
|
|
2145
|
+
'io.flow.fulfillment.v0.models.center': function () { return ({
|
|
2146
|
+
discriminator: 'center',
|
|
2147
|
+
id: factories.string(),
|
|
2148
|
+
key: factories.string(),
|
|
2149
|
+
address: factories['io.flow.fulfillment.v0.models.shipping_address'](),
|
|
2150
|
+
packaging: arrayOf(function () { return factories['io.flow.fulfillment.v0.models.packaging'](); }),
|
|
2151
|
+
name: factories.string(),
|
|
2152
|
+
services: arrayOf(function () { return factories['io.flow.fulfillment.v0.models.available_service'](); }),
|
|
2153
|
+
schedule: factories['io.flow.common.v0.models.schedule'](),
|
|
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'](),
|
|
1777
2157
|
}); },
|
|
1778
|
-
'io.flow.
|
|
2158
|
+
'io.flow.fulfillment.v0.models.center_form': function () { return ({
|
|
2159
|
+
address: factories['io.flow.fulfillment.v0.models.shipping_address'](),
|
|
2160
|
+
packaging: arrayOf(function () { return factories['io.flow.fulfillment.v0.models.packaging'](); }),
|
|
2161
|
+
name: factories.string(),
|
|
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(),
|
|
1779
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'](),
|
|
1780
2168
|
}); },
|
|
1781
|
-
'io.flow.
|
|
1782
|
-
|
|
2169
|
+
'io.flow.fulfillment.v0.models.center_query': function () { return ({
|
|
2170
|
+
q: factories.string(),
|
|
1783
2171
|
}); },
|
|
1784
|
-
'io.flow.
|
|
1785
|
-
|
|
1786
|
-
|
|
1787
|
-
|
|
2172
|
+
'io.flow.fulfillment.v0.models.center_reference': function () { return ({
|
|
2173
|
+
discriminator: 'center_reference',
|
|
2174
|
+
organization_id: factories.string(),
|
|
2175
|
+
center_key: factories.string(),
|
|
1788
2176
|
}); },
|
|
1789
|
-
'io.flow.
|
|
2177
|
+
'io.flow.fulfillment.v0.models.center_summary': function () { return ({
|
|
2178
|
+
id: factories.string(),
|
|
1790
2179
|
key: factories.string(),
|
|
2180
|
+
address: factories['io.flow.fulfillment.v0.models.shipping_address'](),
|
|
1791
2181
|
}); },
|
|
1792
|
-
'io.flow.
|
|
1793
|
-
|
|
1794
|
-
|
|
2182
|
+
'io.flow.fulfillment.v0.models.center_version': function () { return ({
|
|
2183
|
+
id: factories.string(),
|
|
2184
|
+
timestamp: factories.date_time_iso_8601(),
|
|
2185
|
+
type: factories['io.flow.common.v0.enums.change_type'](),
|
|
2186
|
+
center: factories['io.flow.fulfillment.v0.models.center'](),
|
|
1795
2187
|
}); },
|
|
1796
|
-
'io.flow.
|
|
1797
|
-
|
|
2188
|
+
'io.flow.fulfillment.v0.models.commercial_invoice_fee': function () { return ({
|
|
2189
|
+
discriminator: 'commercial_invoice_fee',
|
|
2190
|
+
amount: factories['io.flow.common.v0.models.money'](),
|
|
1798
2191
|
}); },
|
|
1799
|
-
'io.flow.
|
|
1800
|
-
|
|
2192
|
+
'io.flow.fulfillment.v0.models.country_availability': function () { return ({
|
|
2193
|
+
status: factories['io.flow.fulfillment.v0.enums.item_availability_status'](),
|
|
2194
|
+
countries: arrayOf(function () { return factories.string(); }),
|
|
1801
2195
|
}); },
|
|
1802
|
-
'io.flow.
|
|
2196
|
+
'io.flow.fulfillment.v0.models.country_shipping_pricing': function () { return ({
|
|
2197
|
+
pricing: factories['io.flow.fulfillment.v0.models.item_shipping_pricing'](),
|
|
2198
|
+
countries: arrayOf(function () { return factories.string(); }),
|
|
2199
|
+
}); },
|
|
2200
|
+
'io.flow.fulfillment.v0.models.delivery_item': function () { return ({
|
|
2201
|
+
id: factories.string(),
|
|
1803
2202
|
number: factories.string(),
|
|
1804
2203
|
quantity: factories.long(),
|
|
2204
|
+
shipment_estimate: factories['io.flow.common.v0.models.datetime_range'](),
|
|
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(),
|
|
1805
2209
|
}); },
|
|
1806
|
-
'io.flow.
|
|
2210
|
+
'io.flow.fulfillment.v0.models.delivery_option': function () { return ({
|
|
1807
2211
|
id: factories.string(),
|
|
1808
|
-
|
|
1809
|
-
|
|
1810
|
-
|
|
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'](),
|
|
1811
2223
|
}); },
|
|
1812
|
-
'io.flow.
|
|
1813
|
-
|
|
1814
|
-
|
|
1815
|
-
|
|
2224
|
+
'io.flow.fulfillment.v0.models.delivery_option_cost_component': function () { return ({
|
|
2225
|
+
key: factories['io.flow.fulfillment.v0.enums.delivery_option_cost_detail_component_key'](),
|
|
2226
|
+
currency: factories.string(),
|
|
2227
|
+
amount: factories.decimal(),
|
|
2228
|
+
label: factories.string(),
|
|
2229
|
+
base: factories['io.flow.common.v0.models.price'](),
|
|
1816
2230
|
}); },
|
|
1817
|
-
'io.flow.
|
|
2231
|
+
'io.flow.fulfillment.v0.models.delivery_option_cost_detail': function () { return ({
|
|
2232
|
+
source: factories['io.flow.fulfillment.v0.enums.delivery_option_cost_detail_source'](),
|
|
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'](); }),
|
|
2239
|
+
}); },
|
|
2240
|
+
'io.flow.fulfillment.v0.models.delivery_option_form': function () { return ({
|
|
2241
|
+
delivery: factories.string(),
|
|
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'](),
|
|
2244
|
+
}); },
|
|
2245
|
+
'io.flow.fulfillment.v0.models.delivery_option_reference': function () { return ({
|
|
1818
2246
|
id: factories.string(),
|
|
1819
|
-
timestamp: factories.date_time_iso_8601(),
|
|
1820
|
-
type: factories['io.flow.common.v0.enums.change_type'](),
|
|
1821
|
-
inventory_rule: factories['io.flow.inventory.v0.models.inventory_rule'](),
|
|
1822
2247
|
}); },
|
|
1823
|
-
'io.flow.
|
|
2248
|
+
'io.flow.fulfillment.v0.models.delivery_option_summary': function () { return ({
|
|
1824
2249
|
id: factories.string(),
|
|
1825
|
-
|
|
1826
|
-
|
|
1827
|
-
|
|
1828
|
-
|
|
2250
|
+
cost: factories['io.flow.common.v0.models.price'](),
|
|
2251
|
+
delivered_duty: factories['io.flow.common.v0.enums.delivered_duty'](),
|
|
2252
|
+
price: factories['io.flow.common.v0.models.price'](),
|
|
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'](),
|
|
1829
2256
|
}); },
|
|
1830
|
-
'io.flow.
|
|
2257
|
+
'io.flow.fulfillment.v0.models.delivery_option_version': function () { return ({
|
|
1831
2258
|
id: factories.string(),
|
|
1832
2259
|
timestamp: factories.date_time_iso_8601(),
|
|
1833
2260
|
type: factories['io.flow.common.v0.enums.change_type'](),
|
|
1834
|
-
|
|
1835
|
-
}); },
|
|
1836
|
-
'io.flow.inventory.v0.models.inventory_stock': function () { return ({
|
|
1837
|
-
discriminator: 'inventory_stock',
|
|
1838
|
-
quantity: factories.long(),
|
|
1839
|
-
}); },
|
|
1840
|
-
'io.flow.inventory.v0.models.inventory_unlimited': function () { return ({
|
|
1841
|
-
discriminator: 'inventory_unlimited',
|
|
1842
|
-
placeholder: factories.string(),
|
|
2261
|
+
delivery_option: factories['io.flow.fulfillment.v0.models.delivery_option_summary'](),
|
|
1843
2262
|
}); },
|
|
1844
|
-
'io.flow.
|
|
2263
|
+
'io.flow.fulfillment.v0.models.delivery_summary': function () { return ({
|
|
1845
2264
|
id: factories.string(),
|
|
1846
|
-
|
|
1847
|
-
center: factories['io.flow.inventory.v0.models.inventory_center_reference'](),
|
|
1848
|
-
item: factories['io.flow.inventory.v0.models.inventory_item_reference'](),
|
|
1849
|
-
notes: factories.object(),
|
|
1850
|
-
quantity: factories.long(),
|
|
1851
|
-
type: factories['io.flow.inventory.v0.enums.update_type'](),
|
|
1852
|
-
}); },
|
|
1853
|
-
'io.flow.inventory.v0.models.inventory_update_form': function () { return ({
|
|
1854
|
-
center: factories.string(),
|
|
1855
|
-
idempotency_key: factories.string(),
|
|
1856
|
-
item_number: factories.string(),
|
|
1857
|
-
quantity: factories.long(),
|
|
1858
|
-
type: factories['io.flow.inventory.v0.enums.update_type'](),
|
|
1859
|
-
notes: factories.object(),
|
|
2265
|
+
items: arrayOf(function () { return factories['io.flow.common.v0.models.line_item_form'](); }),
|
|
1860
2266
|
}); },
|
|
1861
|
-
'io.flow.
|
|
2267
|
+
'io.flow.fulfillment.v0.models.delivery_version': function () { return ({
|
|
1862
2268
|
id: factories.string(),
|
|
1863
2269
|
timestamp: factories.date_time_iso_8601(),
|
|
1864
2270
|
type: factories['io.flow.common.v0.enums.change_type'](),
|
|
1865
|
-
|
|
2271
|
+
delivery: factories['io.flow.fulfillment.v0.models.delivery_summary'](),
|
|
1866
2272
|
}); },
|
|
1867
|
-
'io.flow.
|
|
1868
|
-
|
|
1869
|
-
|
|
1870
|
-
|
|
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(),
|
|
1871
2280
|
}); },
|
|
1872
|
-
'io.flow.
|
|
1873
|
-
|
|
1874
|
-
|
|
1875
|
-
|
|
2281
|
+
'io.flow.fulfillment.v0.models.delivery_window_component': function () { return ({
|
|
2282
|
+
from: factories.date_time_iso_8601(),
|
|
2283
|
+
to: factories.date_time_iso_8601(),
|
|
2284
|
+
source: factories['io.flow.fulfillment.v0.enums.delivery_window_component_source'](),
|
|
1876
2285
|
}); },
|
|
1877
|
-
'io.flow.
|
|
1878
|
-
|
|
2286
|
+
'io.flow.fulfillment.v0.models.delivery_window_components': function () { return ({
|
|
2287
|
+
shipment_estimate: factories['io.flow.fulfillment.v0.models.delivery_window_component'](),
|
|
2288
|
+
transit_estimate: factories['io.flow.fulfillment.v0.models.delivery_window_component'](),
|
|
1879
2289
|
}); },
|
|
1880
|
-
'io.flow.
|
|
1881
|
-
|
|
1882
|
-
|
|
1883
|
-
in_stock: factories.boolean(),
|
|
2290
|
+
'io.flow.fulfillment.v0.models.delivery_window_components_v2': function () { return ({
|
|
2291
|
+
processing_estimates: arrayOf(function () { return factories['io.flow.fulfillment.v0.models.processing_estimate'](); }),
|
|
2292
|
+
transit_estimates: arrayOf(function () { return factories['io.flow.fulfillment.v0.models.transit_estimate'](); }),
|
|
1884
2293
|
}); },
|
|
1885
|
-
'io.flow.
|
|
1886
|
-
|
|
2294
|
+
'io.flow.fulfillment.v0.models.delivery_window_summary': function () { return ({
|
|
2295
|
+
country: factories.string(),
|
|
2296
|
+
delivery_window: factories['io.flow.fulfillment.v0.models.delivery_window'](),
|
|
1887
2297
|
}); },
|
|
1888
|
-
'io.flow.
|
|
2298
|
+
'io.flow.fulfillment.v0.models.digital_delivery': function () { return ({
|
|
2299
|
+
discriminator: 'digital_delivery',
|
|
1889
2300
|
id: factories.string(),
|
|
1890
2301
|
key: factories.string(),
|
|
1891
|
-
|
|
1892
|
-
|
|
1893
|
-
|
|
2302
|
+
items: arrayOf(function () { return factories['io.flow.fulfillment.v0.models.delivery_item'](); }),
|
|
2303
|
+
prices: arrayOf(function () { return factories['io.flow.order.price.v0.models.order_price_detail'](); }),
|
|
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'](),
|
|
2310
|
+
}); },
|
|
2311
|
+
'io.flow.fulfillment.v0.models.flat_rate': function () { return ({
|
|
2312
|
+
discriminator: 'flat_rate',
|
|
2313
|
+
price: factories['io.flow.common.v0.models.price'](),
|
|
2314
|
+
zero_amount_indicator: factories['io.flow.fulfillment.v0.enums.zero_amount_indicator'](),
|
|
2315
|
+
}); },
|
|
2316
|
+
'io.flow.fulfillment.v0.models.flat_rate_form': function () { return ({
|
|
2317
|
+
discriminator: 'flat_rate_form',
|
|
2318
|
+
price: factories['io.flow.common.v0.models.money'](),
|
|
2319
|
+
zero_amount_indicator: factories['io.flow.fulfillment.v0.enums.zero_amount_indicator'](),
|
|
2320
|
+
}); },
|
|
2321
|
+
'io.flow.fulfillment.v0.models.fulfillment_experience_reference': function () { return ({
|
|
2322
|
+
id: factories.string(),
|
|
2323
|
+
currency: factories.string(),
|
|
2324
|
+
}); },
|
|
2325
|
+
'io.flow.fulfillment.v0.models.inbound_carton_fee': function () { return ({
|
|
2326
|
+
discriminator: 'inbound_carton_fee',
|
|
2327
|
+
amount: factories['io.flow.common.v0.models.money'](),
|
|
2328
|
+
}); },
|
|
2329
|
+
'io.flow.fulfillment.v0.models.item_shipping_pricing': function () { return ({
|
|
2330
|
+
min: factories['io.flow.common.v0.models.price'](),
|
|
2331
|
+
max: factories['io.flow.common.v0.models.price'](),
|
|
2332
|
+
}); },
|
|
2333
|
+
'io.flow.fulfillment.v0.models.number_range': function () { return ({
|
|
2334
|
+
min: factories.long(),
|
|
2335
|
+
max: factories.long(),
|
|
2336
|
+
}); },
|
|
2337
|
+
'io.flow.fulfillment.v0.models.option_weight_estimates': function () { return ({
|
|
2338
|
+
gravitational: factories['io.flow.common.v0.models.measurement'](),
|
|
2339
|
+
dimensional: factories['io.flow.common.v0.models.measurement'](),
|
|
2340
|
+
}); },
|
|
2341
|
+
'io.flow.fulfillment.v0.models.outbound_carton_fee': function () { return ({
|
|
2342
|
+
discriminator: 'outbound_carton_fee',
|
|
2343
|
+
amount: factories['io.flow.common.v0.models.money'](),
|
|
2344
|
+
}); },
|
|
2345
|
+
'io.flow.fulfillment.v0.models.packaging': function () { return ({
|
|
2346
|
+
dimensions: factories['io.flow.common.v0.models.dimensions'](),
|
|
2347
|
+
name: factories.string(),
|
|
2348
|
+
number: factories.string(),
|
|
2349
|
+
}); },
|
|
2350
|
+
'io.flow.fulfillment.v0.models.partner_center': function () { return ({
|
|
2351
|
+
partner_reference: factories['io.flow.common.v0.models.partner_reference'](),
|
|
2352
|
+
number: factories.string(),
|
|
2353
|
+
fees: arrayOf(function () { return factories['io.flow.fulfillment.v0.unions.partner_center_fee'](); }),
|
|
2354
|
+
}); },
|
|
2355
|
+
'io.flow.fulfillment.v0.models.partner_center_form': function () { return ({
|
|
2356
|
+
partner_id: factories.string(),
|
|
2357
|
+
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
|
+
}); },
|
|
2384
|
+
'io.flow.fulfillment.v0.models.price_with_base_and_details': function () { return ({
|
|
2385
|
+
currency: factories.string(),
|
|
2386
|
+
amount: factories.double(),
|
|
2387
|
+
label: factories.string(),
|
|
2388
|
+
base: factories['io.flow.common.v0.models.price'](),
|
|
2389
|
+
details: arrayOf(function () { return factories['io.flow.fulfillment.v0.models.delivery_option_cost_detail'](); }),
|
|
2390
|
+
}); },
|
|
2391
|
+
'io.flow.fulfillment.v0.models.processing_estimate': function () { return ({
|
|
2392
|
+
location: factories['io.flow.fulfillment.v0.enums.delivery_window_location'](),
|
|
2393
|
+
min_date: factories.date_time_iso_8601(),
|
|
2394
|
+
max_date: factories.date_time_iso_8601(),
|
|
2395
|
+
source: factories['io.flow.fulfillment.v0.enums.delivery_window_component_source'](),
|
|
2396
|
+
}); },
|
|
2397
|
+
'io.flow.fulfillment.v0.models.quote': function () { return ({
|
|
2398
|
+
id: factories.string(),
|
|
2399
|
+
destination: factories['io.flow.fulfillment.v0.models.shipping_address'](),
|
|
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(),
|
|
2425
|
+
}); },
|
|
2426
|
+
'io.flow.fulfillment.v0.models.quote_summary': function () { return ({
|
|
2427
|
+
id: factories.string(),
|
|
2428
|
+
destination: factories['io.flow.fulfillment.v0.models.shipping_address'](),
|
|
2429
|
+
}); },
|
|
2430
|
+
'io.flow.fulfillment.v0.models.quote_version': function () { return ({
|
|
2431
|
+
id: factories.string(),
|
|
2432
|
+
timestamp: factories.date_time_iso_8601(),
|
|
2433
|
+
type: factories['io.flow.common.v0.enums.change_type'](),
|
|
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(),
|
|
2440
|
+
}); },
|
|
2441
|
+
'io.flow.fulfillment.v0.models.service_reference': function () { return ({
|
|
2442
|
+
id: factories.string(),
|
|
2443
|
+
}); },
|
|
2444
|
+
'io.flow.fulfillment.v0.models.service_summary': function () { return ({
|
|
2445
|
+
discriminator: 'service_summary',
|
|
2446
|
+
id: factories.string(),
|
|
2447
|
+
carrier: factories['io.flow.fulfillment.v0.models.carrier_reference'](),
|
|
2448
|
+
name: factories.string(),
|
|
2449
|
+
center_code: factories.string(),
|
|
2450
|
+
}); },
|
|
2451
|
+
'io.flow.fulfillment.v0.models.service_unknown': function () { return ({
|
|
2452
|
+
discriminator: 'service_unknown',
|
|
2453
|
+
name: factories.string(),
|
|
2454
|
+
}); },
|
|
2455
|
+
'io.flow.fulfillment.v0.models.shipping_address': function () { return ({
|
|
2456
|
+
contact: factories['io.flow.common.v0.models.contact'](),
|
|
2457
|
+
location: factories['io.flow.common.v0.models.address'](),
|
|
2458
|
+
center_key: factories.string(),
|
|
2459
|
+
center_reference: factories['io.flow.fulfillment.v0.models.center_reference'](),
|
|
2460
|
+
service: factories['io.flow.fulfillment.v0.models.service_summary'](),
|
|
2461
|
+
}); },
|
|
2462
|
+
'io.flow.fulfillment.v0.models.shipping_configuration': function () { return ({
|
|
2463
|
+
id: factories.string(),
|
|
2464
|
+
name: factories.string(),
|
|
2465
|
+
key: factories.string(),
|
|
2466
|
+
type: factories['io.flow.fulfillment.v0.enums.shipping_configuration_type'](),
|
|
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(),
|
|
1894
3982
|
}); },
|
|
1895
|
-
'io.flow.
|
|
1896
|
-
|
|
1897
|
-
|
|
3983
|
+
'io.flow.payment.v0.models.payment_processor_reference': function () { return ({
|
|
3984
|
+
discriminator: 'payment_processor_reference',
|
|
3985
|
+
processor: factories.string(),
|
|
1898
3986
|
}); },
|
|
1899
|
-
'io.flow.
|
|
1900
|
-
|
|
1901
|
-
|
|
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(),
|
|
1902
3994
|
}); },
|
|
1903
|
-
'io.flow.
|
|
1904
|
-
|
|
1905
|
-
|
|
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(),
|
|
1906
4004
|
}); },
|
|
1907
|
-
'io.flow.
|
|
1908
|
-
|
|
4005
|
+
'io.flow.payment.v0.models.payment_reference': function () { return ({
|
|
4006
|
+
id: factories.string(),
|
|
1909
4007
|
}); },
|
|
1910
|
-
'io.flow.
|
|
1911
|
-
|
|
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'](),
|
|
1912
4010
|
}); },
|
|
1913
|
-
'io.flow.
|
|
1914
|
-
|
|
1915
|
-
|
|
1916
|
-
|
|
1917
|
-
|
|
1918
|
-
|
|
1919
|
-
|
|
1920
|
-
|
|
1921
|
-
|
|
1922
|
-
|
|
1923
|
-
|
|
1924
|
-
|
|
1925
|
-
|
|
1926
|
-
|
|
1927
|
-
|
|
1928
|
-
|
|
1929
|
-
},
|
|
1930
|
-
'io.flow.
|
|
1931
|
-
|
|
1932
|
-
|
|
1933
|
-
|
|
1934
|
-
|
|
1935
|
-
|
|
1936
|
-
|
|
1937
|
-
|
|
1938
|
-
|
|
1939
|
-
|
|
1940
|
-
|
|
1941
|
-
|
|
1942
|
-
|
|
1943
|
-
|
|
1944
|
-
|
|
1945
|
-
|
|
1946
|
-
'
|
|
1947
|
-
|
|
1948
|
-
|
|
1949
|
-
|
|
1950
|
-
|
|
1951
|
-
'
|
|
1952
|
-
|
|
1953
|
-
'
|
|
1954
|
-
|
|
1955
|
-
|
|
1956
|
-
'duty_subsidy',
|
|
1957
|
-
'remote_area_surcharge',
|
|
1958
|
-
'fuel_surcharge',
|
|
1959
|
-
'emergency_situation_surcharge',
|
|
1960
|
-
'peak_surcharge',
|
|
1961
|
-
'duties_taxes_paid_surcharge',
|
|
1962
|
-
'tip',
|
|
1963
|
-
]); },
|
|
1964
|
-
'io.flow.order.price.v0.enums.order_price_detail_key': function () { return faker.helpers.arrayElement([
|
|
1965
|
-
'adjustment',
|
|
1966
|
-
'subtotal',
|
|
1967
|
-
'vat',
|
|
1968
|
-
'duty',
|
|
1969
|
-
'shipping',
|
|
1970
|
-
'insurance',
|
|
1971
|
-
'discount',
|
|
1972
|
-
'surcharges',
|
|
1973
|
-
'tip',
|
|
1974
|
-
]); },
|
|
1975
|
-
'io.flow.order.price.v0.models.order_price_detail': function () { return ({
|
|
1976
|
-
key: factories['io.flow.order.price.v0.enums.order_price_detail_key'](),
|
|
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(),
|
|
1977
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'](),
|
|
1978
4064
|
amount: factories.decimal(),
|
|
1979
|
-
|
|
1980
|
-
|
|
1981
|
-
|
|
1982
|
-
|
|
1983
|
-
|
|
1984
|
-
|
|
1985
|
-
|
|
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(),
|
|
1986
4074
|
}); },
|
|
1987
|
-
'io.flow.
|
|
1988
|
-
|
|
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(),
|
|
1989
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'](),
|
|
1990
4086
|
amount: factories.decimal(),
|
|
1991
|
-
|
|
1992
|
-
|
|
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'](),
|
|
1993
4106
|
name: factories.string(),
|
|
4107
|
+
identifier: factories.string(),
|
|
4108
|
+
primary: factories.boolean(),
|
|
1994
4109
|
}); },
|
|
1995
|
-
'io.flow.
|
|
1996
|
-
|
|
1997
|
-
|
|
1998
|
-
|
|
1999
|
-
|
|
2000
|
-
'
|
|
2001
|
-
|
|
2002
|
-
|
|
2003
|
-
|
|
2004
|
-
|
|
2005
|
-
|
|
2006
|
-
|
|
2007
|
-
'io.flow.
|
|
2008
|
-
|
|
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',
|
|
2009
4124
|
id: factories.string(),
|
|
2010
|
-
|
|
4125
|
+
key: factories.string(),
|
|
2011
4126
|
}); },
|
|
2012
|
-
'io.flow.
|
|
2013
|
-
|
|
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'](),
|
|
2014
4132
|
}); },
|
|
2015
|
-
'io.flow.
|
|
4133
|
+
'io.flow.payment.v0.models.reversal': function () { return ({
|
|
2016
4134
|
id: factories.string(),
|
|
2017
|
-
|
|
2018
|
-
|
|
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'](),
|
|
2019
4144
|
}); },
|
|
2020
|
-
'io.flow.
|
|
2021
|
-
|
|
2022
|
-
|
|
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'](); }),
|
|
2023
4149
|
}); },
|
|
2024
|
-
'io.flow.
|
|
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 ({
|
|
2025
4164
|
id: factories.string(),
|
|
2026
|
-
|
|
2027
|
-
|
|
2028
|
-
|
|
2029
|
-
|
|
2030
|
-
|
|
2031
|
-
|
|
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(),
|
|
2032
4200
|
}); },
|
|
2033
|
-
'io.flow.
|
|
2034
|
-
|
|
2035
|
-
|
|
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(),
|
|
2036
4205
|
}); },
|
|
2037
|
-
'io.flow.
|
|
2038
|
-
|
|
2039
|
-
|
|
2040
|
-
|
|
2041
|
-
role: factories['io.flow.common.v0.enums.role'](),
|
|
2042
|
-
roles: arrayOf(function () { return factories['io.flow.permission.v0.enums.flow_role'](); }),
|
|
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(),
|
|
2043
4210
|
}); },
|
|
2044
|
-
'io.flow.
|
|
2045
|
-
|
|
2046
|
-
|
|
2047
|
-
|
|
2048
|
-
|
|
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(),
|
|
2049
4216
|
}); },
|
|
2050
|
-
'io.flow.
|
|
2051
|
-
|
|
2052
|
-
|
|
2053
|
-
user: factories['io.flow.common.v0.unions.expandable_user'](),
|
|
2054
|
-
role: factories['io.flow.common.v0.enums.role'](),
|
|
2055
|
-
roles: arrayOf(function () { return factories['io.flow.permission.v0.enums.flow_role'](); }),
|
|
4217
|
+
'io.flow.payment.v0.models.threeds_two_method': function () { return ({
|
|
4218
|
+
discriminator: 'threeds_two_method',
|
|
4219
|
+
method: factories.string(),
|
|
2056
4220
|
}); },
|
|
2057
|
-
'io.flow.
|
|
2058
|
-
|
|
2059
|
-
|
|
2060
|
-
|
|
2061
|
-
|
|
4221
|
+
'io.flow.payment.v0.models.transaction_details_card': function () { return ({
|
|
4222
|
+
type: 'card',
|
|
4223
|
+
address_verification_result: factories['io.flow.payment.v0.models.address_verification_result'](),
|
|
4224
|
+
cvv_result: factories['io.flow.payment.v0.models.cvv_result'](),
|
|
4225
|
+
network_details: factories['io.flow.payment.v0.models.transaction_network_details_card'](),
|
|
2062
4226
|
}); },
|
|
2063
|
-
'io.flow.
|
|
2064
|
-
|
|
2065
|
-
|
|
4227
|
+
'io.flow.payment.v0.models.transaction_network_details_card': function () { return ({
|
|
4228
|
+
network_transaction_id: factories.string(),
|
|
4229
|
+
network: factories['io.flow.payment.v0.enums.card_type'](),
|
|
2066
4230
|
}); },
|
|
2067
|
-
'io.flow.
|
|
4231
|
+
'io.flow.payment.v0.models.transfer': function () { return ({
|
|
2068
4232
|
id: factories.string(),
|
|
2069
|
-
|
|
2070
|
-
|
|
2071
|
-
|
|
2072
|
-
|
|
2073
|
-
|
|
2074
|
-
|
|
2075
|
-
environment: factories['io.flow.common.v0.enums.environment'](),
|
|
2076
|
-
}); },
|
|
2077
|
-
'io.flow.organization.v0.models.organization_authorization_form': function () { return ({
|
|
2078
|
-
organization: factories.string(),
|
|
2079
|
-
environment: factories['io.flow.common.v0.enums.environment'](),
|
|
4233
|
+
type: factories['io.flow.payment.v0.enums.transfer_type'](),
|
|
4234
|
+
base: factories['io.flow.common.v0.models.money'](),
|
|
4235
|
+
status: factories['io.flow.payment.v0.enums.transfer_status'](),
|
|
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(),
|
|
2080
4239
|
}); },
|
|
2081
|
-
'io.flow.
|
|
4240
|
+
'io.flow.payment.v0.models.virtual_card': function () { return ({
|
|
2082
4241
|
id: factories.string(),
|
|
4242
|
+
key: factories.string(),
|
|
4243
|
+
number: factories.string(),
|
|
4244
|
+
cvv: factories.string(),
|
|
4245
|
+
limit: factories['io.flow.common.v0.models.price'](),
|
|
4246
|
+
type: factories['io.flow.payment.v0.enums.card_type'](),
|
|
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(); }),
|
|
2083
4252
|
}); },
|
|
2084
|
-
'io.flow.
|
|
4253
|
+
'io.flow.payment.v0.models.virtual_card_capture': function () { return ({
|
|
2085
4254
|
id: factories.string(),
|
|
2086
|
-
|
|
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(),
|
|
2087
4261
|
}); },
|
|
2088
|
-
'io.flow.
|
|
4262
|
+
'io.flow.payment.v0.models.virtual_card_capture_version': function () { return ({
|
|
2089
4263
|
id: factories.string(),
|
|
4264
|
+
timestamp: factories.date_time_iso_8601(),
|
|
4265
|
+
type: factories['io.flow.common.v0.enums.change_type'](),
|
|
4266
|
+
virtual_card_capture: factories['io.flow.payment.v0.models.virtual_card_capture'](),
|
|
2090
4267
|
}); },
|
|
2091
|
-
'io.flow.
|
|
4268
|
+
'io.flow.payment.v0.models.virtual_card_reference': function () { return ({
|
|
2092
4269
|
id: factories.string(),
|
|
2093
|
-
name: factories.string(),
|
|
2094
|
-
environment: factories['io.flow.common.v0.enums.environment'](),
|
|
2095
|
-
parent_id: factories.string(),
|
|
2096
|
-
defaults: factories['io.flow.common.v0.models.organization_defaults'](),
|
|
2097
|
-
status: factories['io.flow.common.v0.enums.organization_status'](),
|
|
2098
|
-
type: factories['io.flow.common.v0.enums.organization_type'](),
|
|
2099
4270
|
}); },
|
|
2100
|
-
'io.flow.
|
|
2101
|
-
|
|
2102
|
-
|
|
2103
|
-
|
|
2104
|
-
|
|
2105
|
-
|
|
4271
|
+
'io.flow.payment.v0.models.virtual_card_refund': function () { return ({
|
|
4272
|
+
id: factories.string(),
|
|
4273
|
+
issuer: factories['io.flow.payment.v0.models.issuer_v1'](),
|
|
4274
|
+
virtual_card: factories['io.flow.payment.v0.models.virtual_card_reference'](),
|
|
4275
|
+
authorization: factories['io.flow.payment.v0.models.authorization_reference'](),
|
|
4276
|
+
amount: factories.decimal(),
|
|
4277
|
+
currency: factories.string(),
|
|
4278
|
+
created_at: factories.date_time_iso_8601(),
|
|
2106
4279
|
}); },
|
|
2107
|
-
'io.flow.
|
|
4280
|
+
'io.flow.payment.v0.models.virtual_card_refund_version': function () { return ({
|
|
2108
4281
|
id: factories.string(),
|
|
2109
4282
|
timestamp: factories.date_time_iso_8601(),
|
|
2110
4283
|
type: factories['io.flow.common.v0.enums.change_type'](),
|
|
2111
|
-
|
|
4284
|
+
virtual_card_refund: factories['io.flow.payment.v0.models.virtual_card_refund'](),
|
|
2112
4285
|
}); },
|
|
2113
|
-
'io.flow.
|
|
4286
|
+
'io.flow.payment.v0.models.virtual_card_version': function () { return ({
|
|
2114
4287
|
id: factories.string(),
|
|
2115
|
-
|
|
2116
|
-
|
|
2117
|
-
|
|
2118
|
-
'io.flow.organization.v0.models.region_setting_form': function () { return ({
|
|
2119
|
-
status: factories['io.flow.common.v0.enums.availability_status'](),
|
|
4288
|
+
timestamp: factories.date_time_iso_8601(),
|
|
4289
|
+
type: factories['io.flow.common.v0.enums.change_type'](),
|
|
4290
|
+
virtual_card: factories['io.flow.payment.v0.models.virtual_card'](),
|
|
2120
4291
|
}); },
|
|
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
|
+
},
|
|
2121
4464
|
'io.flow.permission.v0.enums.authentication_technique': function () { return faker.helpers.arrayElement(['anonymous', 'session', 'token', 'partner_token', 'user']); },
|
|
2122
4465
|
'io.flow.permission.v0.enums.flow_behavior': function () { return faker.helpers.arrayElement(['view_consumer_data']); },
|
|
2123
4466
|
'io.flow.permission.v0.enums.flow_role': function () { return faker.helpers.arrayElement([
|
|
@@ -2546,7 +4889,12 @@ var factories = {
|
|
|
2546
4889
|
offset: factories.integer(),
|
|
2547
4890
|
}); },
|
|
2548
4891
|
'io.flow.sellability.v0.enums.rule_effect_type': function () { return faker.helpers.arrayElement(['market', 'dhl', 'dhl_ecommerce', 'ups']); },
|
|
2549
|
-
'io.flow.sellability.v0.enums.sellability_error_code': function () { return faker.helpers.arrayElement([
|
|
4892
|
+
'io.flow.sellability.v0.enums.sellability_error_code': function () { return faker.helpers.arrayElement([
|
|
4893
|
+
'insufficient_details',
|
|
4894
|
+
'ineligible_category',
|
|
4895
|
+
'wait_for_high_fidelity',
|
|
4896
|
+
'external_service_unavailable',
|
|
4897
|
+
]); },
|
|
2550
4898
|
'io.flow.sellability.v0.enums.sellability_request_status': function () { return faker.helpers.arrayElement(['commit']); },
|
|
2551
4899
|
'io.flow.sellability.v0.models.product_sellability': function () { return ({
|
|
2552
4900
|
shop_id: factories.string(),
|
|
@@ -2563,6 +4911,7 @@ var factories = {
|
|
|
2563
4911
|
description: factories.string(),
|
|
2564
4912
|
taxonomy_category: factories['io.flow.product.v0.models.product_taxonomy_category'](),
|
|
2565
4913
|
status: factories['io.flow.sellability.v0.enums.sellability_request_status'](),
|
|
4914
|
+
dry_run: factories.boolean(),
|
|
2566
4915
|
}); },
|
|
2567
4916
|
'io.flow.sellability.v0.models.product_sellability_price': function () { return ({
|
|
2568
4917
|
currency: factories.string(),
|
|
@@ -5289,6 +7638,7 @@ var factories = {
|
|
|
5289
7638
|
'io.flow.tech.onboarding.playground.v0.enums.ansh_item_type': function () { return faker.helpers.arrayElement(['physical', 'digital']); },
|
|
5290
7639
|
'io.flow.tech.onboarding.playground.v0.enums.niall_item_type': function () { return faker.helpers.arrayElement(['physical', 'digital']); },
|
|
5291
7640
|
'io.flow.tech.onboarding.playground.v0.enums.prateek_item_type': function () { return faker.helpers.arrayElement(['physical', 'digital']); },
|
|
7641
|
+
'io.flow.tech.onboarding.playground.v0.enums.rohan_item_type': function () { return faker.helpers.arrayElement(['physical', 'digital']); },
|
|
5292
7642
|
'io.flow.tech.onboarding.playground.v0.models.aldo_item': function () { return ({
|
|
5293
7643
|
id: factories.string(),
|
|
5294
7644
|
number: factories.string(),
|
|
@@ -5353,6 +7703,21 @@ var factories = {
|
|
|
5353
7703
|
type: factories['io.flow.tech.onboarding.playground.v0.enums.prateek_item_type'](),
|
|
5354
7704
|
added_on: factories.date_iso_8601(),
|
|
5355
7705
|
}); },
|
|
7706
|
+
'io.flow.tech.onboarding.playground.v0.models.rohan_item': function () { return ({
|
|
7707
|
+
id: factories.string(),
|
|
7708
|
+
number: factories.string(),
|
|
7709
|
+
amount: factories['io.flow.common.v0.models.price'](),
|
|
7710
|
+
description: factories.string(),
|
|
7711
|
+
type: factories['io.flow.tech.onboarding.playground.v0.enums.rohan_item_type'](),
|
|
7712
|
+
added_on: factories.date_iso_8601(),
|
|
7713
|
+
}); },
|
|
7714
|
+
'io.flow.tech.onboarding.playground.v0.models.rohan_item_form': function () { return ({
|
|
7715
|
+
number: factories.string(),
|
|
7716
|
+
amount: factories['io.flow.common.v0.models.price'](),
|
|
7717
|
+
description: factories.string(),
|
|
7718
|
+
type: factories['io.flow.tech.onboarding.playground.v0.enums.rohan_item_type'](),
|
|
7719
|
+
added_on: factories.date_iso_8601(),
|
|
7720
|
+
}); },
|
|
5356
7721
|
'io.flow.tech.onboarding.playground.v0.models.tech_onboarding_description': function () { return ({
|
|
5357
7722
|
description: factories.string(),
|
|
5358
7723
|
}); },
|
|
@@ -5664,6 +8029,8 @@ var factories = {
|
|
|
5664
8029
|
'generate_load',
|
|
5665
8030
|
'niall_item_upserted',
|
|
5666
8031
|
'niall_item_deleted',
|
|
8032
|
+
'rohan_item_upserted',
|
|
8033
|
+
'rohan_item_deleted',
|
|
5667
8034
|
'aldo_item_upserted',
|
|
5668
8035
|
'aldo_item_deleted',
|
|
5669
8036
|
'ansh_item_upserted',
|
|
@@ -5722,10 +8089,6 @@ var factories = {
|
|
|
5722
8089
|
'rate_upserted',
|
|
5723
8090
|
'rate_deleted_v3',
|
|
5724
8091
|
'rate_upserted_v3',
|
|
5725
|
-
'customer_upserted',
|
|
5726
|
-
'customer_deleted',
|
|
5727
|
-
'customer_address_book_contact_upserted',
|
|
5728
|
-
'customer_address_book_contact_deleted',
|
|
5729
8092
|
'available_promotions_upserted',
|
|
5730
8093
|
'available_promotions_deleted',
|
|
5731
8094
|
'available_promotions_upserted_v2',
|
|
@@ -5860,10 +8223,6 @@ var factories = {
|
|
|
5860
8223
|
'ratecard_deleted',
|
|
5861
8224
|
'product_restriction_result_upserted',
|
|
5862
8225
|
'product_restriction_result_deleted',
|
|
5863
|
-
'return_upserted',
|
|
5864
|
-
'return_deleted',
|
|
5865
|
-
'return_upserted_v2',
|
|
5866
|
-
'return_deleted_v2',
|
|
5867
8226
|
'shopify_localization_setting_upserted',
|
|
5868
8227
|
'shopify_localization_setting_deleted',
|
|
5869
8228
|
'tracking_label_event_upserted',
|
|
@@ -6436,6 +8795,15 @@ var factories = {
|
|
|
6436
8795
|
]); },
|
|
6437
8796
|
'io.flow.v0.enums.surcharge_responsible_party': function () { return faker.helpers.arrayElement(['organization', 'customer']); },
|
|
6438
8797
|
'io.flow.v0.enums.tax_applicability': function () { return faker.helpers.arrayElement(['none', 'all']); },
|
|
8798
|
+
'io.flow.v0.enums.tax_duty_transaction_reason_code': function () { return faker.helpers.arrayElement([
|
|
8799
|
+
'order_edit',
|
|
8800
|
+
'order_acceptance',
|
|
8801
|
+
'mixed_fulfilment_non_lvg',
|
|
8802
|
+
'lvg_refund',
|
|
8803
|
+
'order_cancellation_above_de_min',
|
|
8804
|
+
'wyol_shipment_above_de_min',
|
|
8805
|
+
'full_refund_without_shipment',
|
|
8806
|
+
]); },
|
|
6439
8807
|
'io.flow.v0.enums.tax_report_type': function () { return faker.helpers.arrayElement(['consumer', 'b2b']); },
|
|
6440
8808
|
'io.flow.v0.enums.tax_verification_result': function () { return faker.helpers.arrayElement(['valid', 'invalid', 'unable_to_validate']); },
|
|
6441
8809
|
'io.flow.v0.enums.taxability_type': function () { return faker.helpers.arrayElement(['tax_rule']); },
|
|
@@ -8488,25 +10856,11 @@ var factories = {
|
|
|
8488
10856
|
contact: factories['io.flow.v0.models.contact'](),
|
|
8489
10857
|
address_preferences: arrayOf(function () { return factories['io.flow.v0.models.customer_address_preference'](); }),
|
|
8490
10858
|
}); },
|
|
8491
|
-
'io.flow.v0.models.customer_address_book_contact_deleted': function () { return ({
|
|
8492
|
-
discriminator: 'customer_address_book_contact_deleted',
|
|
8493
|
-
event_id: factories.string(),
|
|
8494
|
-
timestamp: factories.date_time_iso_8601(),
|
|
8495
|
-
organization: factories.string(),
|
|
8496
|
-
customer_address_book_contact: factories['io.flow.v0.models.customer_address_book_contact'](),
|
|
8497
|
-
}); },
|
|
8498
10859
|
'io.flow.v0.models.customer_address_book_contact_form': function () { return ({
|
|
8499
10860
|
address: factories['io.flow.v0.models.address'](),
|
|
8500
10861
|
contact: factories['io.flow.v0.models.contact'](),
|
|
8501
10862
|
address_preferences: arrayOf(function () { return factories['io.flow.v0.models.customer_address_preference'](); }),
|
|
8502
10863
|
}); },
|
|
8503
|
-
'io.flow.v0.models.customer_address_book_contact_upserted': function () { return ({
|
|
8504
|
-
discriminator: 'customer_address_book_contact_upserted',
|
|
8505
|
-
event_id: factories.string(),
|
|
8506
|
-
timestamp: factories.date_time_iso_8601(),
|
|
8507
|
-
organization: factories.string(),
|
|
8508
|
-
customer_address_book_contact: factories['io.flow.v0.models.customer_address_book_contact'](),
|
|
8509
|
-
}); },
|
|
8510
10864
|
'io.flow.v0.models.customer_address_book_form': function () { return ({
|
|
8511
10865
|
contacts: arrayOf(function () { return factories['io.flow.v0.models.customer_address_book_contact_form'](); }),
|
|
8512
10866
|
}); },
|
|
@@ -8520,13 +10874,6 @@ var factories = {
|
|
|
8520
10874
|
'io.flow.v0.models.customer_client_token': function () { return ({
|
|
8521
10875
|
token: factories.string(),
|
|
8522
10876
|
}); },
|
|
8523
|
-
'io.flow.v0.models.customer_deleted': function () { return ({
|
|
8524
|
-
discriminator: 'customer_deleted',
|
|
8525
|
-
event_id: factories.string(),
|
|
8526
|
-
timestamp: factories.date_time_iso_8601(),
|
|
8527
|
-
organization: factories.string(),
|
|
8528
|
-
customer: factories['io.flow.v0.models.customer'](),
|
|
8529
|
-
}); },
|
|
8530
10877
|
'io.flow.v0.models.customer_form': function () { return ({
|
|
8531
10878
|
number: factories.string(),
|
|
8532
10879
|
email: factories.string(),
|
|
@@ -8571,13 +10918,6 @@ var factories = {
|
|
|
8571
10918
|
customer: factories['io.flow.v0.models.customer_reference'](),
|
|
8572
10919
|
token: factories.string(),
|
|
8573
10920
|
}); },
|
|
8574
|
-
'io.flow.v0.models.customer_upserted': function () { return ({
|
|
8575
|
-
discriminator: 'customer_upserted',
|
|
8576
|
-
event_id: factories.string(),
|
|
8577
|
-
timestamp: factories.date_time_iso_8601(),
|
|
8578
|
-
organization: factories.string(),
|
|
8579
|
-
customer: factories['io.flow.v0.models.customer'](),
|
|
8580
|
-
}); },
|
|
8581
10921
|
'io.flow.v0.models.cvv': function () { return ({
|
|
8582
10922
|
code: factories['io.flow.v0.enums.cvv_code'](),
|
|
8583
10923
|
description: factories.string(),
|
|
@@ -9693,7 +12033,7 @@ var factories = {
|
|
|
9693
12033
|
ge_hs6_code: factories.string(),
|
|
9694
12034
|
product_id: factories.string(),
|
|
9695
12035
|
ge_organization_name: factories.string(),
|
|
9696
|
-
|
|
12036
|
+
ge_shipping_origin_country: factories.string(),
|
|
9697
12037
|
}); },
|
|
9698
12038
|
'io.flow.v0.models.ge_input_price': function () { return ({
|
|
9699
12039
|
amount: factories.double(),
|
|
@@ -9729,6 +12069,7 @@ var factories = {
|
|
|
9729
12069
|
environment: factories['io.flow.v0.enums.environment'](),
|
|
9730
12070
|
timestamp: factories.date_time_iso_8601(),
|
|
9731
12071
|
id: factories.string(),
|
|
12072
|
+
operation: factories['io.flow.v0.enums.change_type'](),
|
|
9732
12073
|
}); },
|
|
9733
12074
|
'io.flow.v0.models.ge_product_restriction_result_upsert': function () { return ({
|
|
9734
12075
|
discriminator: 'ge_product_restriction_result_upsert',
|
|
@@ -9737,6 +12078,7 @@ var factories = {
|
|
|
9737
12078
|
event_type: factories['io.flow.v0.enums.ge_event_type'](),
|
|
9738
12079
|
environment: factories['io.flow.v0.enums.environment'](),
|
|
9739
12080
|
timestamp: factories.date_time_iso_8601(),
|
|
12081
|
+
operation: factories['io.flow.v0.enums.change_type'](),
|
|
9740
12082
|
ge_product_restriction_result: factories['io.flow.v0.models.product_restriction_result'](),
|
|
9741
12083
|
}); },
|
|
9742
12084
|
'io.flow.v0.models.generate_load': function () { return ({
|
|
@@ -12932,6 +15274,7 @@ var factories = {
|
|
|
12932
15274
|
product_id: factories.string(),
|
|
12933
15275
|
item_numbers: arrayOf(function () { return factories.string(); }),
|
|
12934
15276
|
prohibited_regions: arrayOf(function () { return factories.string(); }),
|
|
15277
|
+
sellability_restricted_regions: arrayOf(function () { return factories.string(); }),
|
|
12935
15278
|
reasons_per_region: arrayOf(function () { return factories['io.flow.v0.models.reasons_per_region'](); }),
|
|
12936
15279
|
review_status: factories['io.flow.v0.enums.review_status'](),
|
|
12937
15280
|
rules: arrayOf(function () { return factories['io.flow.v0.enums.product_restriction_rule'](); }),
|
|
@@ -13563,19 +15906,6 @@ var factories = {
|
|
|
13563
15906
|
tracking_status_timestamp: factories.date_time_iso_8601(),
|
|
13564
15907
|
carrier_tracking_number: factories.string(),
|
|
13565
15908
|
}); },
|
|
13566
|
-
'io.flow.v0.models.return_deleted': function () { return ({
|
|
13567
|
-
discriminator: 'return_deleted',
|
|
13568
|
-
event_id: factories.string(),
|
|
13569
|
-
timestamp: factories.date_time_iso_8601(),
|
|
13570
|
-
id: factories.string(),
|
|
13571
|
-
}); },
|
|
13572
|
-
'io.flow.v0.models.return_deleted_v2': function () { return ({
|
|
13573
|
-
discriminator: 'return_deleted_v2',
|
|
13574
|
-
event_id: factories.string(),
|
|
13575
|
-
timestamp: factories.date_time_iso_8601(),
|
|
13576
|
-
organization: factories.string(),
|
|
13577
|
-
'return': factories['io.flow.v0.models.return'](),
|
|
13578
|
-
}); },
|
|
13579
15909
|
'io.flow.v0.models.return_form': function () { return ({
|
|
13580
15910
|
items: arrayOf(function () { return factories['io.flow.v0.models.return_line_item'](); }),
|
|
13581
15911
|
tier_id: factories.string(),
|
|
@@ -13654,26 +15984,6 @@ var factories = {
|
|
|
13654
15984
|
discriminator: 'return_source_flow',
|
|
13655
15985
|
attributes: objectOf(function () { return factories.string(); }),
|
|
13656
15986
|
}); },
|
|
13657
|
-
'io.flow.v0.models.return_upserted': function () { return ({
|
|
13658
|
-
discriminator: 'return_upserted',
|
|
13659
|
-
event_id: factories.string(),
|
|
13660
|
-
timestamp: factories.date_time_iso_8601(),
|
|
13661
|
-
id: factories.string(),
|
|
13662
|
-
organization: factories.string(),
|
|
13663
|
-
destination: factories['io.flow.v0.models.shipping_address'](),
|
|
13664
|
-
items: arrayOf(function () { return factories['io.flow.v0.models.return_line_item'](); }),
|
|
13665
|
-
key: factories.string(),
|
|
13666
|
-
labels: arrayOf(function () { return factories['io.flow.v0.models.shipping_label'](); }),
|
|
13667
|
-
service: factories.string(),
|
|
13668
|
-
origin: factories['io.flow.v0.models.shipping_address'](),
|
|
13669
|
-
}); },
|
|
13670
|
-
'io.flow.v0.models.return_upserted_v2': function () { return ({
|
|
13671
|
-
discriminator: 'return_upserted_v2',
|
|
13672
|
-
event_id: factories.string(),
|
|
13673
|
-
timestamp: factories.date_time_iso_8601(),
|
|
13674
|
-
organization: factories.string(),
|
|
13675
|
-
'return': factories['io.flow.v0.models.return'](),
|
|
13676
|
-
}); },
|
|
13677
15987
|
'io.flow.v0.models.return_version': function () { return ({
|
|
13678
15988
|
id: factories.string(),
|
|
13679
15989
|
timestamp: factories.date_time_iso_8601(),
|
|
@@ -13731,6 +16041,18 @@ var factories = {
|
|
|
13731
16041
|
type: factories['io.flow.v0.enums.change_type'](),
|
|
13732
16042
|
reversal: factories['io.flow.v0.models.reversal'](),
|
|
13733
16043
|
}); },
|
|
16044
|
+
'io.flow.v0.models.rohan_item_deleted': function () { return ({
|
|
16045
|
+
discriminator: 'rohan_item_deleted',
|
|
16046
|
+
event_id: factories.string(),
|
|
16047
|
+
timestamp: factories.date_time_iso_8601(),
|
|
16048
|
+
id: factories.string(),
|
|
16049
|
+
}); },
|
|
16050
|
+
'io.flow.v0.models.rohan_item_upserted': function () { return ({
|
|
16051
|
+
discriminator: 'rohan_item_upserted',
|
|
16052
|
+
event_id: factories.string(),
|
|
16053
|
+
timestamp: factories.date_time_iso_8601(),
|
|
16054
|
+
item: factories['io.flow.tech.onboarding.playground.v0.models.rohan_item'](),
|
|
16055
|
+
}); },
|
|
13734
16056
|
'io.flow.v0.models.romanization': function () { return ({
|
|
13735
16057
|
address: factories['io.flow.v0.models.address'](),
|
|
13736
16058
|
contact: factories['io.flow.v0.models.contact'](),
|
|
@@ -15020,8 +17342,13 @@ var factories = {
|
|
|
15020
17342
|
}); },
|
|
15021
17343
|
'io.flow.v0.models.transaction_metadata_shipping_label_carrier': function () { return ({
|
|
15022
17344
|
id: factories.string(),
|
|
17345
|
+
service_id: factories.string(),
|
|
15023
17346
|
tracking_number: factories.string(),
|
|
15024
17347
|
}); },
|
|
17348
|
+
'io.flow.v0.models.transaction_metadata_tax_duty': function () { return ({
|
|
17349
|
+
discriminator: 'transaction_tax_duty',
|
|
17350
|
+
reason_code: factories['io.flow.v0.enums.tax_duty_transaction_reason_code'](),
|
|
17351
|
+
}); },
|
|
15025
17352
|
'io.flow.v0.models.transaction_metadata_trueup': function () { return ({
|
|
15026
17353
|
discriminator: 'trueup',
|
|
15027
17354
|
original: factories['io.flow.v0.models.transaction_metadata_original_transaction'](),
|
|
@@ -15553,6 +17880,8 @@ var factories = {
|
|
|
15553
17880
|
function () { return factories['io.flow.v0.models.generate_load'](); },
|
|
15554
17881
|
function () { return factories['io.flow.v0.models.niall_item_upserted'](); },
|
|
15555
17882
|
function () { return factories['io.flow.v0.models.niall_item_deleted'](); },
|
|
17883
|
+
function () { return factories['io.flow.v0.models.rohan_item_upserted'](); },
|
|
17884
|
+
function () { return factories['io.flow.v0.models.rohan_item_deleted'](); },
|
|
15556
17885
|
function () { return factories['io.flow.v0.models.aldo_item_upserted'](); },
|
|
15557
17886
|
function () { return factories['io.flow.v0.models.aldo_item_deleted'](); },
|
|
15558
17887
|
function () { return factories['io.flow.v0.models.ansh_item_upserted'](); },
|
|
@@ -15611,10 +17940,6 @@ var factories = {
|
|
|
15611
17940
|
function () { return factories['io.flow.v0.models.rate_upserted'](); },
|
|
15612
17941
|
function () { return factories['io.flow.v0.models.rate_deleted_v3'](); },
|
|
15613
17942
|
function () { return factories['io.flow.v0.models.rate_upserted_v3'](); },
|
|
15614
|
-
function () { return factories['io.flow.v0.models.customer_upserted'](); },
|
|
15615
|
-
function () { return factories['io.flow.v0.models.customer_deleted'](); },
|
|
15616
|
-
function () { return factories['io.flow.v0.models.customer_address_book_contact_upserted'](); },
|
|
15617
|
-
function () { return factories['io.flow.v0.models.customer_address_book_contact_deleted'](); },
|
|
15618
17943
|
function () { return factories['io.flow.v0.models.available_promotions_upserted'](); },
|
|
15619
17944
|
function () { return factories['io.flow.v0.models.available_promotions_deleted'](); },
|
|
15620
17945
|
function () { return factories['io.flow.v0.models.available_promotions_upserted_v2'](); },
|
|
@@ -15749,10 +18074,6 @@ var factories = {
|
|
|
15749
18074
|
function () { return factories['io.flow.v0.models.ratecard_deleted'](); },
|
|
15750
18075
|
function () { return factories['io.flow.v0.models.product_restriction_result_upserted'](); },
|
|
15751
18076
|
function () { return factories['io.flow.v0.models.product_restriction_result_deleted'](); },
|
|
15752
|
-
function () { return factories['io.flow.v0.models.return_upserted'](); },
|
|
15753
|
-
function () { return factories['io.flow.v0.models.return_deleted'](); },
|
|
15754
|
-
function () { return factories['io.flow.v0.models.return_upserted_v2'](); },
|
|
15755
|
-
function () { return factories['io.flow.v0.models.return_deleted_v2'](); },
|
|
15756
18077
|
function () { return factories['io.flow.v0.models.shopify_localization_setting_upserted'](); },
|
|
15757
18078
|
function () { return factories['io.flow.v0.models.shopify_localization_setting_deleted'](); },
|
|
15758
18079
|
function () { return factories['io.flow.v0.models.tracking_label_event_upserted'](); },
|
|
@@ -16368,6 +18689,7 @@ var factories = {
|
|
|
16368
18689
|
function () { return factories['io.flow.v0.models.transaction_metadata_manual'](); },
|
|
16369
18690
|
function () { return factories['io.flow.v0.models.transaction_metadata_failed_payout'](); },
|
|
16370
18691
|
function () { return factories['io.flow.v0.models.transaction_metadata_payment_transaction'](); },
|
|
18692
|
+
function () { return factories['io.flow.v0.models.transaction_metadata_tax_duty'](); },
|
|
16371
18693
|
]);
|
|
16372
18694
|
return f();
|
|
16373
18695
|
},
|
|
@@ -16739,15 +19061,12 @@ export var makeCurrencySymbols = function () { return factories['io.flow.v0.mode
|
|
|
16739
19061
|
export var makeCustomer = function () { return factories['io.flow.v0.models.customer'](); };
|
|
16740
19062
|
export var makeCustomerAddressBook = function () { return factories['io.flow.v0.models.customer_address_book'](); };
|
|
16741
19063
|
export var makeCustomerAddressBookContact = function () { return factories['io.flow.v0.models.customer_address_book_contact'](); };
|
|
16742
|
-
export var makeCustomerAddressBookContactDeleted = function () { return factories['io.flow.v0.models.customer_address_book_contact_deleted'](); };
|
|
16743
19064
|
export var makeCustomerAddressBookContactForm = function () { return factories['io.flow.v0.models.customer_address_book_contact_form'](); };
|
|
16744
|
-
export var makeCustomerAddressBookContactUpserted = function () { return factories['io.flow.v0.models.customer_address_book_contact_upserted'](); };
|
|
16745
19065
|
export var makeCustomerAddressBookForm = function () { return factories['io.flow.v0.models.customer_address_book_form'](); };
|
|
16746
19066
|
export var makeCustomerAddressPreference = function () { return factories['io.flow.v0.models.customer_address_preference'](); };
|
|
16747
19067
|
export var makeCustomerAddressType = function () { return factories['io.flow.v0.enums.customer_address_type'](); };
|
|
16748
19068
|
export var makeCustomerBundle = function () { return factories['io.flow.v0.models.customer_bundle'](); };
|
|
16749
19069
|
export var makeCustomerClientToken = function () { return factories['io.flow.v0.models.customer_client_token'](); };
|
|
16750
|
-
export var makeCustomerDeleted = function () { return factories['io.flow.v0.models.customer_deleted'](); };
|
|
16751
19070
|
export var makeCustomerForm = function () { return factories['io.flow.v0.models.customer_form'](); };
|
|
16752
19071
|
export var makeCustomerInvoice = function () { return factories['io.flow.v0.models.customer_invoice'](); };
|
|
16753
19072
|
export var makeCustomerLastUsed = function () { return factories['io.flow.v0.models.customer_last_used'](); };
|
|
@@ -16758,7 +19077,6 @@ export var makeCustomerPurgeSettingsForm = function () { return factories['io.fl
|
|
|
16758
19077
|
export var makeCustomerPutForm = function () { return factories['io.flow.v0.models.customer_put_form'](); };
|
|
16759
19078
|
export var makeCustomerReference = function () { return factories['io.flow.v0.models.customer_reference'](); };
|
|
16760
19079
|
export var makeCustomerToken = function () { return factories['io.flow.v0.models.customer_token'](); };
|
|
16761
|
-
export var makeCustomerUpserted = function () { return factories['io.flow.v0.models.customer_upserted'](); };
|
|
16762
19080
|
export var makeCvv = function () { return factories['io.flow.v0.models.cvv'](); };
|
|
16763
19081
|
export var makeCvvCode = function () { return factories['io.flow.v0.enums.cvv_code'](); };
|
|
16764
19082
|
export var makeCvvResult = function () { return factories['io.flow.v0.models.cvv_result'](); };
|
|
@@ -17755,8 +20073,6 @@ export var makeRepeatSchedule = function () { return factories['io.flow.v0.union
|
|
|
17755
20073
|
export var makeRepeatWeekly = function () { return factories['io.flow.v0.models.repeat_weekly'](); };
|
|
17756
20074
|
export var makeRestrictedReviewStatus = function () { return factories['io.flow.v0.enums.restricted_review_status'](); };
|
|
17757
20075
|
export var makeReturn = function () { return factories['io.flow.v0.models.return'](); };
|
|
17758
|
-
export var makeReturnDeleted = function () { return factories['io.flow.v0.models.return_deleted'](); };
|
|
17759
|
-
export var makeReturnDeletedV2 = function () { return factories['io.flow.v0.models.return_deleted_v2'](); };
|
|
17760
20076
|
export var makeReturnForm = function () { return factories['io.flow.v0.models.return_form'](); };
|
|
17761
20077
|
export var makeReturnItemReference = function () { return factories['io.flow.v0.models.return_item_reference'](); };
|
|
17762
20078
|
export var makeReturnItemStatus = function () { return factories['io.flow.v0.enums.return_item_status'](); };
|
|
@@ -17777,8 +20093,6 @@ export var makeReturnSourceExternalVendor = function () { return factories['io.f
|
|
|
17777
20093
|
export var makeReturnSourceFlow = function () { return factories['io.flow.v0.models.return_source_flow'](); };
|
|
17778
20094
|
export var makeReturnStatus = function () { return factories['io.flow.v0.enums.return_status'](); };
|
|
17779
20095
|
export var makeReturnTrackingStatus = function () { return factories['io.flow.v0.enums.return_tracking_status'](); };
|
|
17780
|
-
export var makeReturnUpserted = function () { return factories['io.flow.v0.models.return_upserted'](); };
|
|
17781
|
-
export var makeReturnUpsertedV2 = function () { return factories['io.flow.v0.models.return_upserted_v2'](); };
|
|
17782
20096
|
export var makeReturnVersion = function () { return factories['io.flow.v0.models.return_version'](); };
|
|
17783
20097
|
export var makeReversal = function () { return factories['io.flow.v0.models.reversal'](); };
|
|
17784
20098
|
export var makeReversalDeleted = function () { return factories['io.flow.v0.models.reversal_deleted'](); };
|
|
@@ -17790,6 +20104,8 @@ export var makeReversalStatus = function () { return factories['io.flow.v0.enums
|
|
|
17790
20104
|
export var makeReversalUpserted = function () { return factories['io.flow.v0.models.reversal_upserted'](); };
|
|
17791
20105
|
export var makeReversalVersion = function () { return factories['io.flow.v0.models.reversal_version'](); };
|
|
17792
20106
|
export var makeReviewStatus = function () { return factories['io.flow.v0.enums.review_status'](); };
|
|
20107
|
+
export var makeRohanItemDeleted = function () { return factories['io.flow.v0.models.rohan_item_deleted'](); };
|
|
20108
|
+
export var makeRohanItemUpserted = function () { return factories['io.flow.v0.models.rohan_item_upserted'](); };
|
|
17793
20109
|
export var makeRole = function () { return factories['io.flow.v0.enums.role'](); };
|
|
17794
20110
|
export var makeRomanization = function () { return factories['io.flow.v0.models.romanization'](); };
|
|
17795
20111
|
export var makeRomanizationForm = function () { return factories['io.flow.v0.models.romanization_form'](); };
|
|
@@ -17957,6 +20273,7 @@ export var makeSurchargeSetting = function () { return factories['io.flow.v0.mod
|
|
|
17957
20273
|
export var makeSurchargeSettingDisplay = function () { return factories['io.flow.v0.models.surcharge_setting_display'](); };
|
|
17958
20274
|
export var makeTax = function () { return factories['io.flow.v0.models.tax'](); };
|
|
17959
20275
|
export var makeTaxApplicability = function () { return factories['io.flow.v0.enums.tax_applicability'](); };
|
|
20276
|
+
export var makeTaxDutyTransactionReasonCode = function () { return factories['io.flow.v0.enums.tax_duty_transaction_reason_code'](); };
|
|
17960
20277
|
export var makeTaxRegistration = function () { return factories['io.flow.v0.models.tax_registration'](); };
|
|
17961
20278
|
export var makeTaxRegistrationForm = function () { return factories['io.flow.v0.models.tax_registration_form'](); };
|
|
17962
20279
|
export var makeTaxReport = function () { return factories['io.flow.v0.models.tax_report'](); };
|
|
@@ -18041,6 +20358,7 @@ export var makeTransactionMetadataOutboundTransaction = function () { return fac
|
|
|
18041
20358
|
export var makeTransactionMetadataPaymentTransaction = function () { return factories['io.flow.v0.models.transaction_metadata_payment_transaction'](); };
|
|
18042
20359
|
export var makeTransactionMetadataShippingLabel = function () { return factories['io.flow.v0.models.transaction_metadata_shipping_label'](); };
|
|
18043
20360
|
export var makeTransactionMetadataShippingLabelCarrier = function () { return factories['io.flow.v0.models.transaction_metadata_shipping_label_carrier'](); };
|
|
20361
|
+
export var makeTransactionMetadataTaxDuty = function () { return factories['io.flow.v0.models.transaction_metadata_tax_duty'](); };
|
|
18044
20362
|
export var makeTransactionMetadataTrueup = function () { return factories['io.flow.v0.models.transaction_metadata_trueup'](); };
|
|
18045
20363
|
export var makeTransactionMetadataTrueupBase = function () { return factories['io.flow.v0.models.transaction_metadata_trueup_base'](); };
|
|
18046
20364
|
export var makeTransactionMetadataTrueupBaseData = function () { return factories['io.flow.v0.models.transaction_metadata_trueup_base_data'](); };
|