@flowio/types 0.0.5 → 0.0.6

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/api.d.ts CHANGED
@@ -370,9 +370,7 @@ declare namespace io.flow.shopify.external.v0.models {
370
370
  }
371
371
  interface ShopifyCustomer {
372
372
  readonly id: number;
373
- readonly addresses: {
374
- [key: string]: string;
375
- }[];
373
+ readonly addresses: io.flow.shopify.external.v0.models.ShopifyCustomerAddress[];
376
374
  readonly created_at: string;
377
375
  readonly tags: string;
378
376
  readonly tax_exempt: boolean;
@@ -393,6 +391,25 @@ declare namespace io.flow.shopify.external.v0.models {
393
391
  readonly total_spent?: string;
394
392
  readonly updated_at?: string;
395
393
  }
394
+ interface ShopifyCustomerAddress {
395
+ readonly id: number;
396
+ readonly customer_id: number;
397
+ readonly default: boolean;
398
+ readonly address1?: string;
399
+ readonly address2?: string;
400
+ readonly city?: string;
401
+ readonly company?: string;
402
+ readonly first_name?: string;
403
+ readonly last_name?: string;
404
+ readonly name?: string;
405
+ readonly phone?: string;
406
+ readonly country?: string;
407
+ readonly country_code?: string;
408
+ readonly country_name?: string;
409
+ readonly province?: string;
410
+ readonly province_code?: string;
411
+ readonly zip?: string;
412
+ }
396
413
  interface ShopifyCustomerDelete {
397
414
  readonly id: number;
398
415
  }
@@ -499,6 +516,7 @@ declare namespace io.flow.shopify.external.v0.models {
499
516
  readonly sku: string;
500
517
  readonly tracked: boolean;
501
518
  readonly cost?: string;
519
+ readonly country_code_of_origin?: string;
502
520
  readonly created_at: string;
503
521
  readonly updated_at?: string;
504
522
  }
@@ -841,9 +859,10 @@ declare namespace io.flow.v0.enums {
841
859
  type DeliveryWindowLocation = 'center' | 'crossdock' | 'customer';
842
860
  type Direction = 'outbound' | 'return';
843
861
  type DiscountTarget = 'item' | 'shipping';
862
+ type EcommercePlatformType = 'commercetools' | 'custom' | 'magento' | 'shopify' | 'sfcc' | 'solidus' | 'workarea';
844
863
  type EconomicTitleLocation = 'high_seas' | 'origination' | 'destination';
845
864
  type Environment = 'sandbox' | 'production';
846
- type EventType = 'attribute_upserted' | 'attribute_deleted' | 'attribute_upserted_v2' | 'attribute_deleted_v2' | 'catalog_upserted' | 'catalog_deleted' | 'subcatalog_upserted' | 'subcatalog_deleted' | 'catalog_item_upserted' | 'catalog_item_deleted' | 'catalog_item_upserted_v2' | 'catalog_item_deleted_v2' | 'subcatalog_item_upserted' | 'subcatalog_item_deleted' | 'b2b_invoice_upserted' | 'b2b_invoice_deleted' | 'consumer_invoice_upserted' | 'consumer_invoice_deleted' | 'credit_memo_upserted' | 'credit_memo_deleted' | 'crossdock_shipment_upserted' | 'rate_deleted' | 'rate_upserted' | 'customer_upserted' | 'customer_deleted' | 'customer_address_book_contact_upserted' | 'customer_address_book_contact_deleted' | 'available_promotions_upserted' | 'available_promotions_deleted' | 'available_promotions_upserted_v2' | 'available_promotions_deleted_v2' | 'allocation_deleted_v2' | 'allocation_upserted_v2' | 'currency_format_deleted' | 'currency_format_upserted' | 'experience_deleted' | 'experience_upserted' | 'experience_deleted_v2' | 'experience_upserted_v2' | 'experience_price_book_mapping_deleted' | 'experience_price_book_mapping_upserted' | 'experience_logistics_settings_upserted' | 'experience_logistics_settings_deleted' | 'item_margin_deleted' | 'item_margin_upserted' | 'item_sales_margin_deleted' | 'item_sales_margin_upserted' | 'label_format_deleted' | 'label_format_upserted' | 'order_deleted' | 'order_upserted' | 'order_deleted_v2' | 'order_upserted_v2' | 'order_identifier_deleted' | 'order_identifier_upserted' | 'order_identifier_deleted_v2' | 'order_identifier_upserted_v2' | 'order_identifier_upserted_v3' | 'pricing_deleted' | 'pricing_upserted' | 'fraud_status_changed' | 'center_upserted' | 'center_deleted' | 'delivery_option_upserted' | 'delivery_option_deleted' | 'shipping_configuration_upserted' | 'shipping_configuration_deleted' | 'tier_upserted_v2' | 'tier_deleted_v2' | 'shipping_lane_upserted' | 'shipping_lane_deleted' | 'shipping_configuration_item_availability_upserted' | 'shipping_configuration_item_availability_deleted' | 'shipping_configuration_item_shipping_pricing_upserted' | 'shipping_configuration_item_shipping_pricing_deleted' | 'hs6_code_upserted' | 'hs6_code_deleted' | 'hs10_code_upserted' | 'hs10_code_deleted' | 'item_origin_upserted' | 'item_origin_deleted' | 'harmonized_item_upserted' | 'harmonized_item_deleted' | 'harmonized_landed_cost_upserted' | 'fully_harmonized_item_upserted' | 'rule_upserted' | 'rule_deleted' | 'serial_upserted' | 'serial_deleted' | 'snapshot_upserted' | 'snapshot_deleted' | 'label_upserted' | 'notification_upserted' | 'notification_deleted' | 'manifested_label_upserted' | 'manifested_label_deleted' | 'local_item_upserted' | 'local_item_deleted' | 'checkout_optin_responses_upserted' | 'checkout_optin_responses_deleted' | 'browse_optin_responses_upserted' | 'browse_optin_responses_deleted' | 'order_placed' | 'order_placed_v2' | 'ready_to_fulfill' | 'membership_upserted_v2' | 'membership_deleted_v2' | 'organization_upserted' | 'organization_deleted' | 'organization_upserted_v2' | 'organization_deleted_v2' | 'organization_short_id_upserted' | 'organization_short_id_deleted' | 'organization_default_configurations_upserted' | 'organization_default_configurations_deleted' | 'authorization_deleted_v2' | 'authorization_status_changed' | 'card_authorization_upserted_v2' | 'card_authorization_deleted_v2' | 'online_authorization_upserted_v2' | 'online_authorization_deleted_v2' | 'capture_upserted_v2' | 'capture_deleted' | 'card_upserted_v2' | 'card_deleted' | 'payment_upserted' | 'payment_deleted' | 'refund_upserted_v2' | 'refund_deleted_v2' | 'refund_capture_upserted_v2' | 'reversal_upserted' | 'reversal_deleted' | 'capture_identifier_upserted' | 'capture_identifier_deleted' | 'refund_identifier_upserted' | 'refund_identifier_deleted' | 'virtual_card_capture_upserted' | 'virtual_card_capture_deleted' | 'virtual_card_refund_upserted' | 'virtual_card_refund_deleted' | 'price_book_upserted' | 'price_book_deleted' | 'price_book_item_upserted' | 'price_book_item_deleted' | 'organization_rates_published' | 'organization_countries_published' | 'ratecard_lane_upserted' | 'ratecard_lane_deleted' | 'return_upserted' | 'return_deleted' | 'shopify_localization_setting_upserted' | 'shopify_localization_setting_deleted' | 'targeting_item_upserted' | 'targeting_item_upserted_v2' | 'targeting_item_deleted' | 'targeting_item_deleted_v3' | 'tracking_label_event_upserted';
865
+ type EventType = 'attribute_upserted' | 'attribute_deleted' | 'attribute_upserted_v2' | 'attribute_deleted_v2' | 'catalog_upserted' | 'catalog_deleted' | 'subcatalog_upserted' | 'subcatalog_deleted' | 'catalog_item_upserted' | 'catalog_item_deleted' | 'catalog_item_upserted_v2' | 'catalog_item_deleted_v2' | 'subcatalog_item_upserted' | 'subcatalog_item_deleted' | 'b2b_invoice_upserted' | 'b2b_invoice_deleted' | 'consumer_invoice_upserted' | 'consumer_invoice_deleted' | 'credit_memo_upserted' | 'credit_memo_deleted' | 'crossdock_shipment_upserted' | 'rate_deleted' | 'rate_upserted' | 'rate_deleted_v3' | 'rate_upserted_v3' | 'customer_upserted' | 'customer_deleted' | 'customer_address_book_contact_upserted' | 'customer_address_book_contact_deleted' | 'available_promotions_upserted' | 'available_promotions_deleted' | 'available_promotions_upserted_v2' | 'available_promotions_deleted_v2' | 'allocation_deleted_v2' | 'allocation_upserted_v2' | 'currency_format_deleted' | 'currency_format_upserted' | 'experience_deleted' | 'experience_upserted' | 'experience_deleted_v2' | 'experience_upserted_v2' | 'experience_price_book_mapping_deleted' | 'experience_price_book_mapping_upserted' | 'experience_logistics_settings_upserted' | 'experience_logistics_settings_deleted' | 'item_margin_deleted' | 'item_margin_upserted' | 'item_sales_margin_deleted' | 'item_sales_margin_upserted' | 'label_format_deleted' | 'label_format_upserted' | 'order_deleted' | 'order_upserted' | 'order_deleted_v2' | 'order_upserted_v2' | 'order_identifier_deleted' | 'order_identifier_upserted' | 'order_identifier_deleted_v2' | 'order_identifier_upserted_v2' | 'order_identifier_upserted_v3' | 'pricing_deleted' | 'pricing_upserted' | 'fraud_status_changed' | 'center_upserted' | 'center_deleted' | 'delivery_option_upserted' | 'delivery_option_deleted' | 'shipping_configuration_upserted' | 'shipping_configuration_deleted' | 'tier_upserted_v2' | 'tier_deleted_v2' | 'shipping_lane_upserted' | 'shipping_lane_deleted' | 'shipping_configuration_item_availability_upserted' | 'shipping_configuration_item_availability_deleted' | 'shipping_configuration_item_shipping_pricing_upserted' | 'shipping_configuration_item_shipping_pricing_deleted' | 'hs6_code_upserted' | 'hs6_code_deleted' | 'hs10_code_upserted' | 'hs10_code_deleted' | 'item_origin_upserted' | 'item_origin_deleted' | 'harmonized_item_upserted' | 'harmonized_item_deleted' | 'harmonized_landed_cost_upserted' | 'fully_harmonized_item_upserted' | 'rule_upserted' | 'rule_deleted' | 'serial_upserted' | 'serial_deleted' | 'snapshot_upserted' | 'snapshot_deleted' | 'label_upserted' | 'notification_upserted' | 'notification_deleted' | 'manifested_label_upserted' | 'manifested_label_deleted' | 'local_item_upserted' | 'local_item_deleted' | 'checkout_optin_responses_upserted' | 'checkout_optin_responses_deleted' | 'browse_optin_responses_upserted' | 'browse_optin_responses_deleted' | 'order_placed' | 'order_placed_v2' | 'ready_to_fulfill' | 'membership_upserted_v2' | 'membership_deleted_v2' | 'organization_upserted' | 'organization_deleted' | 'organization_upserted_v2' | 'organization_deleted_v2' | 'organization_short_id_upserted' | 'organization_short_id_deleted' | 'organization_default_configurations_upserted' | 'organization_default_configurations_deleted' | 'ecommerce_platform_upserted' | 'ecommerce_platform_deleted' | 'authorization_deleted_v2' | 'authorization_status_changed' | 'card_authorization_upserted_v2' | 'card_authorization_deleted_v2' | 'online_authorization_upserted_v2' | 'online_authorization_deleted_v2' | 'capture_upserted_v2' | 'capture_deleted' | 'card_upserted_v2' | 'card_deleted' | 'payment_upserted' | 'payment_deleted' | 'refund_upserted_v2' | 'refund_deleted_v2' | 'refund_capture_upserted_v2' | 'reversal_upserted' | 'reversal_deleted' | 'capture_identifier_upserted' | 'capture_identifier_deleted' | 'refund_identifier_upserted' | 'refund_identifier_deleted' | 'virtual_card_capture_upserted' | 'virtual_card_capture_deleted' | 'virtual_card_refund_upserted' | 'virtual_card_refund_deleted' | 'price_book_upserted' | 'price_book_deleted' | 'price_book_item_upserted' | 'price_book_item_deleted' | 'organization_rates_published' | 'organization_countries_published' | 'ratecard_lane_upserted' | 'ratecard_lane_deleted' | 'return_upserted' | 'return_deleted' | 'shopify_localization_setting_upserted' | 'shopify_localization_setting_deleted' | 'targeting_item_upserted' | 'targeting_item_upserted_v2' | 'targeting_item_deleted' | 'targeting_item_deleted_v3' | 'tracking_label_event_upserted';
847
866
  type ExceptionType = 'open' | 'closed';
848
867
  type ExperienceCloneStatus = 'pending' | 'updating' | 'completed' | 'failed';
849
868
  type ExperiencePaymentMethodTag = 'display';
@@ -1007,78 +1026,14 @@ declare namespace io.flow.v0.models {
1007
1026
  readonly provinces: io.flow.v0.models.Province[];
1008
1027
  }
1009
1028
  interface AddressFieldValidation {
1010
- readonly first_name: ({
1011
- discriminator: 'required';
1012
- } & io.flow.v0.models.FieldValidationRequired | {
1013
- discriminator: 'min';
1014
- } & io.flow.v0.models.FieldValidationMin | {
1015
- discriminator: 'max';
1016
- } & io.flow.v0.models.FieldValidationMax | {
1017
- discriminator: 'pattern';
1018
- } & io.flow.v0.models.FieldValidationPattern)[];
1019
- readonly last_name: ({
1020
- discriminator: 'required';
1021
- } & io.flow.v0.models.FieldValidationRequired | {
1022
- discriminator: 'min';
1023
- } & io.flow.v0.models.FieldValidationMin | {
1024
- discriminator: 'max';
1025
- } & io.flow.v0.models.FieldValidationMax | {
1026
- discriminator: 'pattern';
1027
- } & io.flow.v0.models.FieldValidationPattern)[];
1028
- readonly street_1: ({
1029
- discriminator: 'required';
1030
- } & io.flow.v0.models.FieldValidationRequired | {
1031
- discriminator: 'min';
1032
- } & io.flow.v0.models.FieldValidationMin | {
1033
- discriminator: 'max';
1034
- } & io.flow.v0.models.FieldValidationMax | {
1035
- discriminator: 'pattern';
1036
- } & io.flow.v0.models.FieldValidationPattern)[];
1037
- readonly street_2: ({
1038
- discriminator: 'required';
1039
- } & io.flow.v0.models.FieldValidationRequired | {
1040
- discriminator: 'min';
1041
- } & io.flow.v0.models.FieldValidationMin | {
1042
- discriminator: 'max';
1043
- } & io.flow.v0.models.FieldValidationMax | {
1044
- discriminator: 'pattern';
1045
- } & io.flow.v0.models.FieldValidationPattern)[];
1046
- readonly city: ({
1047
- discriminator: 'required';
1048
- } & io.flow.v0.models.FieldValidationRequired | {
1049
- discriminator: 'min';
1050
- } & io.flow.v0.models.FieldValidationMin | {
1051
- discriminator: 'max';
1052
- } & io.flow.v0.models.FieldValidationMax | {
1053
- discriminator: 'pattern';
1054
- } & io.flow.v0.models.FieldValidationPattern)[];
1055
- readonly province: ({
1056
- discriminator: 'required';
1057
- } & io.flow.v0.models.FieldValidationRequired | {
1058
- discriminator: 'min';
1059
- } & io.flow.v0.models.FieldValidationMin | {
1060
- discriminator: 'max';
1061
- } & io.flow.v0.models.FieldValidationMax | {
1062
- discriminator: 'pattern';
1063
- } & io.flow.v0.models.FieldValidationPattern)[];
1064
- readonly postal: ({
1065
- discriminator: 'required';
1066
- } & io.flow.v0.models.FieldValidationRequired | {
1067
- discriminator: 'min';
1068
- } & io.flow.v0.models.FieldValidationMin | {
1069
- discriminator: 'max';
1070
- } & io.flow.v0.models.FieldValidationMax | {
1071
- discriminator: 'pattern';
1072
- } & io.flow.v0.models.FieldValidationPattern)[];
1073
- readonly phone: ({
1074
- discriminator: 'required';
1075
- } & io.flow.v0.models.FieldValidationRequired | {
1076
- discriminator: 'min';
1077
- } & io.flow.v0.models.FieldValidationMin | {
1078
- discriminator: 'max';
1079
- } & io.flow.v0.models.FieldValidationMax | {
1080
- discriminator: 'pattern';
1081
- } & io.flow.v0.models.FieldValidationPattern)[];
1029
+ readonly first_name: io.flow.v0.unions.FieldValidationRule[];
1030
+ readonly last_name: io.flow.v0.unions.FieldValidationRule[];
1031
+ readonly street_1: io.flow.v0.unions.FieldValidationRule[];
1032
+ readonly street_2: io.flow.v0.unions.FieldValidationRule[];
1033
+ readonly city: io.flow.v0.unions.FieldValidationRule[];
1034
+ readonly province: io.flow.v0.unions.FieldValidationRule[];
1035
+ readonly postal: io.flow.v0.unions.FieldValidationRule[];
1036
+ readonly phone: io.flow.v0.unions.FieldValidationRule[];
1082
1037
  }
1083
1038
  interface AddressSuggestion {
1084
1039
  readonly address: io.flow.v0.models.Address;
@@ -1099,11 +1054,7 @@ declare namespace io.flow.v0.models {
1099
1054
  }
1100
1055
  interface Allocation {
1101
1056
  readonly order: io.flow.v0.models.AllocationOrderSummary;
1102
- readonly details: ({
1103
- discriminator: 'allocation_line_detail';
1104
- } & io.flow.v0.models.AllocationLineDetail | {
1105
- discriminator: 'allocation_order_detail';
1106
- } & io.flow.v0.models.AllocationOrderDetail)[];
1057
+ readonly details: io.flow.v0.unions.AllocationDetail[];
1107
1058
  }
1108
1059
  interface AllocationDeletedV2 {
1109
1060
  readonly event_id: string;
@@ -1131,30 +1082,14 @@ declare namespace io.flow.v0.models {
1131
1082
  readonly key: io.flow.v0.enums.OrderPriceDetailKey;
1132
1083
  readonly price: io.flow.v0.models.PriceWithBase;
1133
1084
  readonly total: io.flow.v0.models.PriceWithBase;
1134
- readonly included: ({
1135
- discriminator: 'allocation_detail_component';
1136
- } & io.flow.v0.models.AllocationDetailComponent | {
1137
- discriminator: 'allocation_levy_component';
1138
- } & io.flow.v0.models.AllocationLevyComponent)[];
1139
- readonly not_included: ({
1140
- discriminator: 'allocation_detail_component';
1141
- } & io.flow.v0.models.AllocationDetailComponent | {
1142
- discriminator: 'allocation_levy_component';
1143
- } & io.flow.v0.models.AllocationLevyComponent)[];
1085
+ readonly included: io.flow.v0.unions.AllocationComponent[];
1086
+ readonly not_included: io.flow.v0.unions.AllocationComponent[];
1144
1087
  }
1145
1088
  interface AllocationOrderDetail {
1146
1089
  readonly key: io.flow.v0.enums.OrderPriceDetailKey;
1147
1090
  readonly total: io.flow.v0.models.PriceWithBase;
1148
- readonly included: ({
1149
- discriminator: 'allocation_detail_component';
1150
- } & io.flow.v0.models.AllocationDetailComponent | {
1151
- discriminator: 'allocation_levy_component';
1152
- } & io.flow.v0.models.AllocationLevyComponent)[];
1153
- readonly not_included: ({
1154
- discriminator: 'allocation_detail_component';
1155
- } & io.flow.v0.models.AllocationDetailComponent | {
1156
- discriminator: 'allocation_levy_component';
1157
- } & io.flow.v0.models.AllocationLevyComponent)[];
1091
+ readonly included: io.flow.v0.unions.AllocationComponent[];
1092
+ readonly not_included: io.flow.v0.unions.AllocationComponent[];
1158
1093
  }
1159
1094
  interface AllocationOrderSummary {
1160
1095
  readonly id: string;
@@ -1170,11 +1105,7 @@ declare namespace io.flow.v0.models {
1170
1105
  interface AllocationV2 {
1171
1106
  readonly id: string;
1172
1107
  readonly order: io.flow.v0.models.AllocationOrderSummary;
1173
- readonly details: ({
1174
- discriminator: 'allocation_line_detail';
1175
- } & io.flow.v0.models.AllocationLineDetail | {
1176
- discriminator: 'allocation_order_detail';
1177
- } & io.flow.v0.models.AllocationOrderDetail)[];
1108
+ readonly details: io.flow.v0.unions.AllocationDetail[];
1178
1109
  readonly total: io.flow.v0.models.LocalizedTotal;
1179
1110
  }
1180
1111
  interface AmountMargin {
@@ -1274,11 +1205,7 @@ declare namespace io.flow.v0.models {
1274
1205
  readonly number: string;
1275
1206
  }
1276
1207
  interface AuthorizationPayload {
1277
- readonly parameters: {
1278
- discriminator: 'google_pay_authorization_payload';
1279
- } & io.flow.v0.models.GooglePayAuthorizationPayload | {
1280
- discriminator: 'apple_pay_merchant_validation_payload';
1281
- } & io.flow.v0.models.ApplePayMerchantValidationPayload;
1208
+ readonly parameters: io.flow.v0.unions.AuthorizationPayloadParameters;
1282
1209
  }
1283
1210
  interface AuthorizationReference {
1284
1211
  readonly id: string;
@@ -1287,13 +1214,7 @@ declare namespace io.flow.v0.models {
1287
1214
  }
1288
1215
  interface AuthorizationResult {
1289
1216
  readonly status: io.flow.v0.enums.AuthorizationStatus;
1290
- readonly action?: {
1291
- discriminator: 'authorization_result_action_get';
1292
- } & io.flow.v0.models.AuthorizationResultActionGet | {
1293
- discriminator: 'authorization_result_action_post';
1294
- } & io.flow.v0.models.AuthorizationResultActionPost | {
1295
- discriminator: 'authorization_result_action_wait';
1296
- } & io.flow.v0.models.AuthorizationResultActionWait;
1217
+ readonly action?: io.flow.v0.unions.AuthorizationResultAction;
1297
1218
  readonly decline_code?: io.flow.v0.enums.AuthorizationDeclineCode;
1298
1219
  readonly avs?: io.flow.v0.models.Avs;
1299
1220
  readonly cvv?: io.flow.v0.models.Cvv;
@@ -1322,21 +1243,13 @@ declare namespace io.flow.v0.models {
1322
1243
  readonly timestamp: string;
1323
1244
  readonly organization: string;
1324
1245
  readonly id: string;
1325
- readonly authorization: {
1326
- discriminator: 'card_authorization';
1327
- } & io.flow.v0.models.CardAuthorization | {
1328
- discriminator: 'online_authorization';
1329
- } & io.flow.v0.models.OnlineAuthorization;
1246
+ readonly authorization: io.flow.v0.unions.Authorization;
1330
1247
  }
1331
1248
  interface AuthorizationVersion {
1332
1249
  readonly id: string;
1333
1250
  readonly timestamp: string;
1334
1251
  readonly type: io.flow.v0.enums.ChangeType;
1335
- readonly authorization: {
1336
- discriminator: 'card_authorization';
1337
- } & io.flow.v0.models.CardAuthorization | {
1338
- discriminator: 'online_authorization';
1339
- } & io.flow.v0.models.OnlineAuthorization;
1252
+ readonly authorization: io.flow.v0.unions.Authorization;
1340
1253
  }
1341
1254
  interface AvailableFilterStructured {
1342
1255
  readonly field: string;
@@ -1352,11 +1265,7 @@ declare namespace io.flow.v0.models {
1352
1265
  readonly id: string;
1353
1266
  readonly shipping_configuration: io.flow.v0.models.ShippingConfigurationReference;
1354
1267
  readonly region: io.flow.v0.models.RegionReference;
1355
- readonly promotions: ({
1356
- discriminator: 'free_shipping';
1357
- } & io.flow.v0.models.FreeShipping | {
1358
- discriminator: 'discount';
1359
- } & io.flow.v0.models.Discount)[];
1268
+ readonly promotions: io.flow.v0.unions.Promotion[];
1360
1269
  }
1361
1270
  interface AvailablePromotionsDeleted {
1362
1271
  readonly event_id: string;
@@ -1391,13 +1300,7 @@ declare namespace io.flow.v0.models {
1391
1300
  readonly lead_days?: io.flow.v0.models.NumberRange;
1392
1301
  }
1393
1302
  interface AvalaraTaxCsvSetting {
1394
- readonly schedule: {
1395
- discriminator: 'repeat_daily';
1396
- } & io.flow.v0.models.RepeatDaily | {
1397
- discriminator: 'repeat_weekly';
1398
- } & io.flow.v0.models.RepeatWeekly | {
1399
- discriminator: 'repeat_monthly';
1400
- } & io.flow.v0.models.RepeatMonthly;
1303
+ readonly schedule: io.flow.v0.unions.RepeatSchedule;
1401
1304
  readonly timezone: string;
1402
1305
  readonly email_recipients?: string[];
1403
1306
  }
@@ -1426,13 +1329,7 @@ declare namespace io.flow.v0.models {
1426
1329
  readonly center?: io.flow.v0.models.ConsumerInvoiceCenterReference;
1427
1330
  readonly destination?: io.flow.v0.models.OrderAddress;
1428
1331
  readonly tax: io.flow.v0.models.Money;
1429
- readonly lines: ({
1430
- discriminator: 'item';
1431
- } & io.flow.v0.models.ConsumerInvoiceLineItem | {
1432
- discriminator: 'discount';
1433
- } & io.flow.v0.models.ConsumerInvoiceLineDiscount | {
1434
- discriminator: 'shipping';
1435
- } & io.flow.v0.models.ConsumerInvoiceLineShipping)[];
1332
+ readonly lines: io.flow.v0.unions.ConsumerInvoiceLine[];
1436
1333
  readonly documents: io.flow.v0.models.ConsumerInvoiceDocument[];
1437
1334
  readonly attributes: {
1438
1335
  [key: string]: string;
@@ -1453,13 +1350,7 @@ declare namespace io.flow.v0.models {
1453
1350
  interface BehaviorAudit {
1454
1351
  readonly behavior: io.flow.v0.enums.FlowBehavior;
1455
1352
  readonly authentication_techniques: io.flow.v0.enums.AuthenticationTechnique[];
1456
- readonly roles: ({
1457
- discriminator: 'flow_user_role';
1458
- value: io.flow.v0.enums.FlowUserRole;
1459
- } | {
1460
- discriminator: 'flow_addon_role';
1461
- value: io.flow.v0.enums.FlowAddonRole;
1462
- })[];
1353
+ readonly roles: io.flow.v0.unions.FlowRole[];
1463
1354
  }
1464
1355
  interface BillingAddress {
1465
1356
  readonly name?: io.flow.v0.models.Name;
@@ -1572,13 +1463,7 @@ declare namespace io.flow.v0.models {
1572
1463
  readonly key: string;
1573
1464
  readonly merchant_of_record?: io.flow.v0.enums.MerchantOfRecord;
1574
1465
  readonly method?: io.flow.v0.models.PaymentMethod;
1575
- readonly card: {
1576
- discriminator: 'card';
1577
- } & io.flow.v0.models.Card | {
1578
- discriminator: 'card_reference';
1579
- } & io.flow.v0.models.CardReference | {
1580
- discriminator: 'card_summary';
1581
- } & io.flow.v0.models.CardSummary;
1466
+ readonly card: io.flow.v0.unions.ExpandableCard;
1582
1467
  readonly amount: number;
1583
1468
  readonly currency: string;
1584
1469
  readonly requested?: io.flow.v0.models.Money;
@@ -1869,11 +1754,13 @@ declare namespace io.flow.v0.models {
1869
1754
  readonly id: string;
1870
1755
  readonly experience: io.flow.v0.models.ExperienceReference;
1871
1756
  readonly key: string;
1757
+ readonly name: string;
1872
1758
  readonly attribute_keys: string[];
1873
1759
  readonly position: number;
1874
1760
  }
1875
1761
  interface CheckoutAttributeForm {
1876
1762
  readonly key: string;
1763
+ readonly name?: string;
1877
1764
  readonly experience_key: string;
1878
1765
  readonly attribute_keys: string[];
1879
1766
  readonly position?: number;
@@ -1887,6 +1774,7 @@ declare namespace io.flow.v0.models {
1887
1774
  }
1888
1775
  interface CheckoutItemContentAttribute {
1889
1776
  readonly key: string;
1777
+ readonly name: string;
1890
1778
  readonly value: string;
1891
1779
  }
1892
1780
  interface CheckoutOptinResponses {
@@ -1916,20 +1804,18 @@ declare namespace io.flow.v0.models {
1916
1804
  interface CheckoutToken {
1917
1805
  readonly id: string;
1918
1806
  readonly organization: io.flow.v0.models.OrganizationReference;
1807
+ readonly checkout: io.flow.v0.models.CheckoutReference;
1919
1808
  readonly order: io.flow.v0.models.OrderNumberReference;
1920
1809
  readonly urls: io.flow.v0.models.CheckoutUrls;
1921
1810
  readonly expires_at: string;
1922
- readonly session?: io.flow.v0.models.SessionReference;
1811
+ readonly session: io.flow.v0.models.SessionReference;
1923
1812
  readonly customer?: io.flow.v0.models.CustomerReference;
1924
- readonly checkout?: io.flow.v0.models.CheckoutReference;
1925
1813
  }
1926
1814
  interface CheckoutTokenOrderForm {
1927
1815
  readonly order_form: io.flow.v0.models.OrderForm;
1928
1816
  readonly customer?: io.flow.v0.models.CustomerForm;
1929
1817
  readonly address_book?: io.flow.v0.models.CustomerAddressBookForm;
1930
- readonly payment_sources?: ({
1931
- discriminator: 'card_payment_source_form';
1932
- } & io.flow.v0.models.CardPaymentSourceForm)[];
1818
+ readonly payment_sources?: io.flow.v0.unions.PaymentSourceForm[];
1933
1819
  readonly session_id: string;
1934
1820
  readonly urls?: io.flow.v0.models.CheckoutUrlsForm;
1935
1821
  }
@@ -1962,13 +1848,7 @@ declare namespace io.flow.v0.models {
1962
1848
  readonly center?: io.flow.v0.models.ConsumerInvoiceCenterReference;
1963
1849
  readonly destination: io.flow.v0.models.OrderAddress;
1964
1850
  readonly billing_address?: io.flow.v0.models.BillingAddress;
1965
- readonly lines: ({
1966
- discriminator: 'item';
1967
- } & io.flow.v0.models.ConsumerInvoiceLineItem | {
1968
- discriminator: 'discount';
1969
- } & io.flow.v0.models.ConsumerInvoiceLineDiscount | {
1970
- discriminator: 'shipping';
1971
- } & io.flow.v0.models.ConsumerInvoiceLineShipping)[];
1851
+ readonly lines: io.flow.v0.unions.ConsumerInvoiceLine[];
1972
1852
  readonly documents: io.flow.v0.models.ConsumerInvoiceDocument[];
1973
1853
  readonly attributes: {
1974
1854
  [key: string]: string;
@@ -2106,13 +1986,7 @@ declare namespace io.flow.v0.models {
2106
1986
  readonly invoice: io.flow.v0.models.ConsumerInvoiceReference;
2107
1987
  readonly entity: io.flow.v0.models.MerchantOfRecordEntity;
2108
1988
  readonly payments: io.flow.v0.models.ConsumerInvoicePayment[];
2109
- readonly lines: ({
2110
- discriminator: 'item';
2111
- } & io.flow.v0.models.ConsumerInvoiceLineItem | {
2112
- discriminator: 'discount';
2113
- } & io.flow.v0.models.ConsumerInvoiceLineDiscount | {
2114
- discriminator: 'shipping';
2115
- } & io.flow.v0.models.ConsumerInvoiceLineShipping)[];
1989
+ readonly lines: io.flow.v0.unions.ConsumerInvoiceLine[];
2116
1990
  readonly documents: io.flow.v0.models.ConsumerInvoiceDocument[];
2117
1991
  readonly attributes: {
2118
1992
  [key: string]: string;
@@ -2129,13 +2003,7 @@ declare namespace io.flow.v0.models {
2129
2003
  readonly refund_id?: string;
2130
2004
  readonly refund_key?: string;
2131
2005
  readonly refund_identifier?: string;
2132
- readonly lines: ({
2133
- discriminator: 'item';
2134
- } & io.flow.v0.models.ConsumerInvoiceLineItemForm | {
2135
- discriminator: 'discount';
2136
- } & io.flow.v0.models.ConsumerInvoiceLineDiscountForm | {
2137
- discriminator: 'shipping';
2138
- } & io.flow.v0.models.ConsumerInvoiceLineShippingForm)[];
2006
+ readonly lines: io.flow.v0.unions.ConsumerInvoiceLineForm[];
2139
2007
  readonly attributes?: {
2140
2008
  [key: string]: string;
2141
2009
  };
@@ -2148,11 +2016,7 @@ declare namespace io.flow.v0.models {
2148
2016
  }
2149
2017
  interface CreditPayment {
2150
2018
  readonly id: string;
2151
- readonly order: {
2152
- discriminator: 'order';
2153
- } & io.flow.v0.models.Order | {
2154
- discriminator: 'order_reference';
2155
- } & io.flow.v0.models.OrderReference;
2019
+ readonly order: io.flow.v0.unions.ExpandableOrder;
2156
2020
  readonly key: string;
2157
2021
  readonly description: string;
2158
2022
  readonly value: io.flow.v0.models.PriceWithBase;
@@ -2331,15 +2195,7 @@ declare namespace io.flow.v0.models {
2331
2195
  readonly service: io.flow.v0.models.ServiceSummary;
2332
2196
  readonly tier: io.flow.v0.models.TierSummary;
2333
2197
  readonly window: io.flow.v0.models.DeliveryWindow;
2334
- readonly rule_outcome?: {
2335
- discriminator: 'amount_margin';
2336
- } & io.flow.v0.models.AmountMargin | {
2337
- discriminator: 'at_cost';
2338
- } & io.flow.v0.models.AtCost | {
2339
- discriminator: 'flat_rate';
2340
- } & io.flow.v0.models.FlatRate | {
2341
- discriminator: 'percent_margin';
2342
- } & io.flow.v0.models.PercentMargin;
2198
+ readonly rule_outcome?: io.flow.v0.unions.TierRuleOutcome;
2343
2199
  readonly weight?: io.flow.v0.models.OptionWeightEstimates;
2344
2200
  readonly send_to?: io.flow.v0.models.ShippingAddress;
2345
2201
  readonly surcharge?: io.flow.v0.models.PriceWithBaseAndDetails;
@@ -2546,11 +2402,7 @@ declare namespace io.flow.v0.models {
2546
2402
  };
2547
2403
  }
2548
2404
  interface DiscountForm {
2549
- readonly offer: {
2550
- discriminator: 'discount_offer_fixed';
2551
- } & io.flow.v0.models.DiscountOfferFixed | {
2552
- discriminator: 'discount_offer_percent';
2553
- } & io.flow.v0.models.DiscountOfferPercent;
2405
+ readonly offer: io.flow.v0.unions.DiscountOffer;
2554
2406
  readonly target?: io.flow.v0.enums.DiscountTarget;
2555
2407
  readonly label?: string;
2556
2408
  }
@@ -2570,13 +2422,26 @@ declare namespace io.flow.v0.models {
2570
2422
  interface Duty {
2571
2423
  readonly rate: number;
2572
2424
  readonly components: io.flow.v0.enums.LevyComponent[];
2573
- readonly deminimis?: {
2574
- discriminator: 'deminimis_simple';
2575
- } & io.flow.v0.models.DeminimisSimple | {
2576
- discriminator: 'deminimis_per_item';
2577
- } & io.flow.v0.models.DeminimisPerItem;
2425
+ readonly deminimis?: io.flow.v0.unions.Deminimis;
2578
2426
  readonly name?: string;
2579
2427
  }
2428
+ interface EcommercePlatform {
2429
+ readonly id: string;
2430
+ readonly type: io.flow.v0.enums.EcommercePlatformType;
2431
+ readonly version?: string;
2432
+ }
2433
+ interface EcommercePlatformDeleted {
2434
+ readonly event_id: string;
2435
+ readonly timestamp: string;
2436
+ readonly organization: string;
2437
+ readonly ecommerce_platform: io.flow.v0.models.EcommercePlatform;
2438
+ }
2439
+ interface EcommercePlatformUpserted {
2440
+ readonly event_id: string;
2441
+ readonly timestamp: string;
2442
+ readonly organization: string;
2443
+ readonly ecommerce_platform: io.flow.v0.models.EcommercePlatform;
2444
+ }
2580
2445
  interface EmailVerification {
2581
2446
  readonly email: string;
2582
2447
  }
@@ -2802,78 +2667,20 @@ declare namespace io.flow.v0.models {
2802
2667
  }
2803
2668
  interface Export {
2804
2669
  readonly id: string;
2805
- readonly type: {
2806
- discriminator: 'account_transactions_export_type';
2807
- } & io.flow.v0.models.AccountTransactionsExportType | {
2808
- discriminator: 'account_orders_export_type';
2809
- } & io.flow.v0.models.AccountOrdersExportType | {
2810
- discriminator: 'analytics_export_type';
2811
- } & io.flow.v0.models.AnalyticsExportType | {
2812
- discriminator: 'catalog_item_export_type';
2813
- } & io.flow.v0.models.CatalogItemExportType | {
2814
- discriminator: 'experience_export_type';
2815
- } & io.flow.v0.models.ExperienceExportType | {
2816
- discriminator: 'harmonization_overview_export_type';
2817
- } & io.flow.v0.models.HarmonizationOverviewExportType | {
2818
- discriminator: 'harmonization_hs6_export_type';
2819
- } & io.flow.v0.models.HarmonizationHs6ExportType | {
2820
- discriminator: 'harmonization_hs10_export_type';
2821
- } & io.flow.v0.models.HarmonizationHs10ExportType | {
2822
- discriminator: 'unharmonized_item_export_type';
2823
- } & io.flow.v0.models.UnharmonizedItemExportType | {
2824
- discriminator: 'harmonization_landed_cost_export_type';
2825
- } & io.flow.v0.models.HarmonizationLandedCostExportType | {
2826
- discriminator: 'order_export_type';
2827
- } & io.flow.v0.models.OrderExportType | {
2828
- discriminator: 'solidus_product_export_type';
2829
- } & io.flow.v0.models.SolidusProductExportType | {
2830
- discriminator: 'solidus_variant_export_type';
2831
- } & io.flow.v0.models.SolidusVariantExportType | {
2832
- discriminator: 'localized_item_prices_export_type';
2833
- } & io.flow.v0.models.LocalizedItemPricesExportType;
2670
+ readonly type: io.flow.v0.unions.ExportType;
2834
2671
  readonly status: io.flow.v0.enums.ExportStatus;
2835
2672
  readonly organization_q: string;
2836
2673
  readonly created_at: string;
2837
2674
  readonly started_at?: string;
2838
2675
  readonly completed_at?: string;
2839
2676
  readonly url?: string;
2840
- readonly deliveries: ({
2841
- discriminator: 'export_delivery_email';
2842
- } & io.flow.v0.models.ExportDeliveryEmail)[];
2677
+ readonly deliveries: io.flow.v0.unions.ExportDelivery[];
2843
2678
  }
2844
2679
  interface ExportDeliveryEmail {
2845
2680
  readonly email: string;
2846
2681
  }
2847
2682
  interface ExportForm {
2848
- readonly type: {
2849
- discriminator: 'account_transactions_export_type';
2850
- } & io.flow.v0.models.AccountTransactionsExportType | {
2851
- discriminator: 'account_orders_export_type';
2852
- } & io.flow.v0.models.AccountOrdersExportType | {
2853
- discriminator: 'analytics_export_type';
2854
- } & io.flow.v0.models.AnalyticsExportType | {
2855
- discriminator: 'catalog_item_export_type';
2856
- } & io.flow.v0.models.CatalogItemExportType | {
2857
- discriminator: 'experience_export_type';
2858
- } & io.flow.v0.models.ExperienceExportType | {
2859
- discriminator: 'harmonization_overview_export_type';
2860
- } & io.flow.v0.models.HarmonizationOverviewExportType | {
2861
- discriminator: 'harmonization_hs6_export_type';
2862
- } & io.flow.v0.models.HarmonizationHs6ExportType | {
2863
- discriminator: 'harmonization_hs10_export_type';
2864
- } & io.flow.v0.models.HarmonizationHs10ExportType | {
2865
- discriminator: 'unharmonized_item_export_type';
2866
- } & io.flow.v0.models.UnharmonizedItemExportType | {
2867
- discriminator: 'harmonization_landed_cost_export_type';
2868
- } & io.flow.v0.models.HarmonizationLandedCostExportType | {
2869
- discriminator: 'order_export_type';
2870
- } & io.flow.v0.models.OrderExportType | {
2871
- discriminator: 'solidus_product_export_type';
2872
- } & io.flow.v0.models.SolidusProductExportType | {
2873
- discriminator: 'solidus_variant_export_type';
2874
- } & io.flow.v0.models.SolidusVariantExportType | {
2875
- discriminator: 'localized_item_prices_export_type';
2876
- } & io.flow.v0.models.LocalizedItemPricesExportType;
2683
+ readonly type: io.flow.v0.unions.ExportType;
2877
2684
  readonly emails?: string[];
2878
2685
  readonly organization_q?: string;
2879
2686
  }
@@ -2948,11 +2755,7 @@ declare namespace io.flow.v0.models {
2948
2755
  }
2949
2756
  interface FreeShippingOrderPromotion {
2950
2757
  readonly id: string;
2951
- readonly order: {
2952
- discriminator: 'order';
2953
- } & io.flow.v0.models.Order | {
2954
- discriminator: 'order_reference';
2955
- } & io.flow.v0.models.OrderReference;
2758
+ readonly order: io.flow.v0.unions.ExpandableOrder;
2956
2759
  readonly key: string;
2957
2760
  readonly trigger: io.flow.v0.models.OrderPromotionTrigger;
2958
2761
  readonly max?: io.flow.v0.models.Price;
@@ -3214,19 +3017,7 @@ declare namespace io.flow.v0.models {
3214
3017
  readonly shipment_window: io.flow.v0.models.ShipmentWindow;
3215
3018
  readonly currency: string;
3216
3019
  readonly amount: number;
3217
- readonly fees: ({
3218
- discriminator: 'ddp_ratecard_fee';
3219
- } & io.flow.v0.models.DdpRatecardFee | {
3220
- discriminator: 'fuel_surcharge_ratecard_fee';
3221
- } & io.flow.v0.models.FuelSurchargeRatecardFee | {
3222
- discriminator: 'oversized_shipment_ratecard_fee';
3223
- } & io.flow.v0.models.OversizedShipmentRatecardFee | {
3224
- discriminator: 'return_package_ratecard_fee';
3225
- } & io.flow.v0.models.ReturnPackageRatecardFee | {
3226
- discriminator: 'crossdock_ratecard_fee';
3227
- } & io.flow.v0.models.CrossdockRatecardFee | {
3228
- discriminator: 'remote_area_ratecard_fee';
3229
- } & io.flow.v0.models.RemoteAreaRatecardFee)[];
3020
+ readonly fees: io.flow.v0.unions.RatecardFee[];
3230
3021
  readonly total: number;
3231
3022
  }
3232
3023
  interface Hs10 {
@@ -3298,9 +3089,7 @@ declare namespace io.flow.v0.models {
3298
3089
  readonly started_at?: string;
3299
3090
  readonly completed_at?: string;
3300
3091
  readonly results?: io.flow.v0.models.ImportResults;
3301
- readonly deliveries: ({
3302
- discriminator: 'export_delivery_email';
3303
- } & io.flow.v0.models.ExportDeliveryEmail)[];
3092
+ readonly deliveries: io.flow.v0.unions.ExportDelivery[];
3304
3093
  }
3305
3094
  interface ImportForm {
3306
3095
  readonly type: io.flow.v0.enums.ImportType;
@@ -3375,9 +3164,7 @@ declare namespace io.flow.v0.models {
3375
3164
  readonly max: number;
3376
3165
  }
3377
3166
  interface InputSpecificationLimitations {
3378
- readonly limitations?: ({
3379
- discriminator: 'input_specification_limitation_max';
3380
- } & io.flow.v0.models.InputSpecificationLimitationMax)[];
3167
+ readonly limitations?: io.flow.v0.unions.InputSpecificationLimitation[];
3381
3168
  }
3382
3169
  interface InstallmentPlanPaymentError {
3383
3170
  readonly code: io.flow.v0.enums.InstallmentPlanPaymentErrorCode;
@@ -3424,24 +3211,12 @@ declare namespace io.flow.v0.models {
3424
3211
  readonly id: string;
3425
3212
  readonly position: number;
3426
3213
  readonly query: string;
3427
- readonly strategy: {
3428
- discriminator: 'inventory_backorder';
3429
- } & io.flow.v0.models.InventoryBackorder | {
3430
- discriminator: 'inventory_stock';
3431
- } & io.flow.v0.models.InventoryStock | {
3432
- discriminator: 'inventory_unlimited';
3433
- } & io.flow.v0.models.InventoryUnlimited;
3214
+ readonly strategy: io.flow.v0.unions.InventoryStrategy;
3434
3215
  }
3435
3216
  interface InventoryRuleForm {
3436
3217
  readonly position: number;
3437
3218
  readonly query: string;
3438
- readonly strategy: {
3439
- discriminator: 'inventory_backorder';
3440
- } & io.flow.v0.models.InventoryBackorder | {
3441
- discriminator: 'inventory_stock';
3442
- } & io.flow.v0.models.InventoryStock | {
3443
- discriminator: 'inventory_unlimited';
3444
- } & io.flow.v0.models.InventoryUnlimited;
3219
+ readonly strategy: io.flow.v0.unions.InventoryStrategy;
3445
3220
  }
3446
3221
  interface InventoryRuleVersion {
3447
3222
  readonly id: string;
@@ -3497,21 +3272,11 @@ declare namespace io.flow.v0.models {
3497
3272
  }
3498
3273
  interface Invitation {
3499
3274
  readonly id: string;
3500
- readonly organization: {
3501
- discriminator: 'organization';
3502
- } & io.flow.v0.models.Organization | {
3503
- discriminator: 'organization_reference';
3504
- } & io.flow.v0.models.OrganizationReference;
3275
+ readonly organization: io.flow.v0.unions.ExpandableOrganization;
3505
3276
  readonly email: string;
3506
3277
  readonly name: io.flow.v0.models.Name;
3507
3278
  readonly role?: io.flow.v0.enums.Role;
3508
- readonly roles?: ({
3509
- discriminator: 'flow_user_role';
3510
- value: io.flow.v0.enums.FlowUserRole;
3511
- } | {
3512
- discriminator: 'flow_addon_role';
3513
- value: io.flow.v0.enums.FlowAddonRole;
3514
- })[];
3279
+ readonly roles?: io.flow.v0.unions.FlowRole[];
3515
3280
  readonly expiration: string;
3516
3281
  }
3517
3282
  interface InvitationError {
@@ -3523,13 +3288,7 @@ declare namespace io.flow.v0.models {
3523
3288
  readonly email: string;
3524
3289
  readonly name?: io.flow.v0.models.Name;
3525
3290
  readonly role?: io.flow.v0.enums.Role;
3526
- readonly roles?: ({
3527
- discriminator: 'flow_user_role';
3528
- value: io.flow.v0.enums.FlowUserRole;
3529
- } | {
3530
- discriminator: 'flow_addon_role';
3531
- value: io.flow.v0.enums.FlowAddonRole;
3532
- })[];
3291
+ readonly roles?: io.flow.v0.unions.FlowRole[];
3533
3292
  }
3534
3293
  interface InvitationVersion {
3535
3294
  readonly id: string;
@@ -3852,15 +3611,7 @@ declare namespace io.flow.v0.models {
3852
3611
  }
3853
3612
  interface Local {
3854
3613
  readonly experience: io.flow.v0.models.ExperienceSummary;
3855
- readonly prices: ({
3856
- key: 'localized_item_price';
3857
- } & io.flow.v0.models.LocalizedItemPrice | {
3858
- key: 'localized_item_vat';
3859
- } & io.flow.v0.models.LocalizedItemVat | {
3860
- key: 'localized_item_duty';
3861
- } & io.flow.v0.models.LocalizedItemDuty | {
3862
- key: 'localized_total';
3863
- } & io.flow.v0.models.LocalizedTotal)[];
3614
+ readonly prices: io.flow.v0.unions.LocalizedPrice[];
3864
3615
  readonly rates: io.flow.v0.models.Rate[];
3865
3616
  readonly spot_rates: {
3866
3617
  [key: string]: string;
@@ -3971,13 +3722,7 @@ declare namespace io.flow.v0.models {
3971
3722
  };
3972
3723
  readonly local: io.flow.v0.models.Local;
3973
3724
  readonly shipment_estimate?: io.flow.v0.models.DatetimeRange;
3974
- readonly price_source?: {
3975
- discriminator: 'price_book';
3976
- } & io.flow.v0.models.PriceSourcePriceBook | {
3977
- discriminator: 'catalog';
3978
- } & io.flow.v0.models.PriceSourceCatalog | {
3979
- discriminator: 'provided';
3980
- } & io.flow.v0.models.PriceSourceProvided;
3725
+ readonly price_source?: io.flow.v0.unions.PriceSource;
3981
3726
  }
3982
3727
  interface LocalizedLineItemDiscount {
3983
3728
  readonly amount: number;
@@ -4038,24 +3783,10 @@ declare namespace io.flow.v0.models {
4038
3783
  }
4039
3784
  interface Membership {
4040
3785
  readonly id: string;
4041
- readonly organization: {
4042
- discriminator: 'organization';
4043
- } & io.flow.v0.models.Organization | {
4044
- discriminator: 'organization_reference';
4045
- } & io.flow.v0.models.OrganizationReference;
4046
- readonly user: {
4047
- discriminator: 'user';
4048
- } & io.flow.v0.models.User | {
4049
- discriminator: 'user_reference';
4050
- } & io.flow.v0.models.UserReference;
3786
+ readonly organization: io.flow.v0.unions.ExpandableOrganization;
3787
+ readonly user: io.flow.v0.unions.ExpandableUser;
4051
3788
  readonly role?: io.flow.v0.enums.Role;
4052
- readonly roles: ({
4053
- discriminator: 'flow_user_role';
4054
- value: io.flow.v0.enums.FlowUserRole;
4055
- } | {
4056
- discriminator: 'flow_addon_role';
4057
- value: io.flow.v0.enums.FlowAddonRole;
4058
- })[];
3789
+ readonly roles: io.flow.v0.unions.FlowRole[];
4059
3790
  }
4060
3791
  interface MembershipDeletedV2 {
4061
3792
  readonly event_id: string;
@@ -4066,23 +3797,11 @@ declare namespace io.flow.v0.models {
4066
3797
  readonly organization: string;
4067
3798
  readonly user: string;
4068
3799
  readonly role?: io.flow.v0.enums.Role;
4069
- readonly roles?: ({
4070
- discriminator: 'flow_user_role';
4071
- value: io.flow.v0.enums.FlowUserRole;
4072
- } | {
4073
- discriminator: 'flow_addon_role';
4074
- value: io.flow.v0.enums.FlowAddonRole;
4075
- })[];
3800
+ readonly roles?: io.flow.v0.unions.FlowRole[];
4076
3801
  }
4077
3802
  interface MembershipPutForm {
4078
3803
  readonly role?: io.flow.v0.enums.Role;
4079
- readonly roles?: ({
4080
- discriminator: 'flow_user_role';
4081
- value: io.flow.v0.enums.FlowUserRole;
4082
- } | {
4083
- discriminator: 'flow_addon_role';
4084
- value: io.flow.v0.enums.FlowAddonRole;
4085
- })[];
3804
+ readonly roles?: io.flow.v0.unions.FlowRole[];
4086
3805
  }
4087
3806
  interface MembershipUpsertedV2 {
4088
3807
  readonly event_id: string;
@@ -4202,13 +3921,7 @@ declare namespace io.flow.v0.models {
4202
3921
  readonly key: string;
4203
3922
  readonly method?: io.flow.v0.models.PaymentMethod;
4204
3923
  readonly merchant_of_record?: io.flow.v0.enums.MerchantOfRecord;
4205
- readonly details?: {
4206
- discriminator: 'paypal_authorization_details';
4207
- } & io.flow.v0.models.PaypalAuthorizationDetails | {
4208
- discriminator: 'redirect_authorization_details';
4209
- } & io.flow.v0.models.RedirectAuthorizationDetails | {
4210
- discriminator: 'inline_authorization_details';
4211
- } & io.flow.v0.models.InlineAuthorizationDetails;
3924
+ readonly details?: io.flow.v0.unions.OnlineAuthorizationDetails;
4212
3925
  readonly payment?: {
4213
3926
  [key: string]: string;
4214
3927
  };
@@ -4258,21 +3971,13 @@ declare namespace io.flow.v0.models {
4258
3971
  readonly id: string;
4259
3972
  readonly number: string;
4260
3973
  readonly merchant_of_record?: io.flow.v0.enums.OrderMerchantOfRecord;
4261
- readonly experience?: {
4262
- discriminator: 'experience';
4263
- } & io.flow.v0.models.Experience | {
4264
- discriminator: 'experience_reference';
4265
- } & io.flow.v0.models.ExperienceReference;
3974
+ readonly experience?: io.flow.v0.unions.ExpandableExperience;
4266
3975
  readonly customer: io.flow.v0.models.OrderCustomer;
4267
3976
  readonly delivered_duty: io.flow.v0.enums.DeliveredDuty;
4268
3977
  readonly destination: io.flow.v0.models.OrderAddress;
4269
3978
  readonly expires_at: string;
4270
3979
  readonly items: io.flow.v0.models.LocalizedLineItem[];
4271
- readonly deliveries: ({
4272
- discriminator: 'digital_delivery';
4273
- } & io.flow.v0.models.DigitalDelivery | {
4274
- discriminator: 'physical_delivery';
4275
- } & io.flow.v0.models.PhysicalDelivery)[];
3980
+ readonly deliveries: io.flow.v0.unions.Delivery[];
4276
3981
  readonly selections: string[];
4277
3982
  readonly prices: io.flow.v0.models.OrderPriceDetail[];
4278
3983
  readonly total: io.flow.v0.models.LocalizedTotal;
@@ -4363,11 +4068,7 @@ declare namespace io.flow.v0.models {
4363
4068
  readonly id: string;
4364
4069
  readonly items: io.flow.v0.models.LocalizedLineItem[];
4365
4070
  readonly destination: io.flow.v0.models.OrderAddress;
4366
- readonly deliveries: ({
4367
- discriminator: 'digital_delivery';
4368
- } & io.flow.v0.models.DigitalDelivery | {
4369
- discriminator: 'physical_delivery';
4370
- } & io.flow.v0.models.PhysicalDelivery)[];
4071
+ readonly deliveries: io.flow.v0.unions.Delivery[];
4371
4072
  readonly prices: io.flow.v0.models.OrderPriceDetail[];
4372
4073
  readonly selections: string[];
4373
4074
  readonly total: io.flow.v0.models.LocalizedTotal;
@@ -4583,11 +4284,7 @@ declare namespace io.flow.v0.models {
4583
4284
  readonly selections: string[];
4584
4285
  readonly items: io.flow.v0.models.LocalizedLineItem[];
4585
4286
  readonly destination: io.flow.v0.models.OrderAddress;
4586
- readonly deliveries: ({
4587
- discriminator: 'digital_delivery';
4588
- } & io.flow.v0.models.DigitalDelivery | {
4589
- discriminator: 'physical_delivery';
4590
- } & io.flow.v0.models.PhysicalDelivery)[];
4287
+ readonly deliveries: io.flow.v0.unions.Delivery[];
4591
4288
  readonly prices: io.flow.v0.models.OrderPriceDetail[];
4592
4289
  readonly order_id?: string;
4593
4290
  readonly payments?: io.flow.v0.models.OrderPayment[];
@@ -4827,24 +4524,12 @@ declare namespace io.flow.v0.models {
4827
4524
  interface PartnerCenter {
4828
4525
  readonly partner_reference: io.flow.v0.models.PartnerReference;
4829
4526
  readonly number?: string;
4830
- readonly fees?: ({
4831
- discriminator: 'commercial_invoice_fee';
4832
- } & io.flow.v0.models.CommercialInvoiceFee | {
4833
- discriminator: 'inbound_carton_fee';
4834
- } & io.flow.v0.models.InboundCartonFee | {
4835
- discriminator: 'outbound_carton_fee';
4836
- } & io.flow.v0.models.OutboundCartonFee)[];
4527
+ readonly fees?: io.flow.v0.unions.PartnerCenterFee[];
4837
4528
  }
4838
4529
  interface PartnerCenterForm {
4839
4530
  readonly partner_id: string;
4840
4531
  readonly number?: string;
4841
- readonly fees?: ({
4842
- discriminator: 'commercial_invoice_fee';
4843
- } & io.flow.v0.models.CommercialInvoiceFee | {
4844
- discriminator: 'inbound_carton_fee';
4845
- } & io.flow.v0.models.InboundCartonFee | {
4846
- discriminator: 'outbound_carton_fee';
4847
- } & io.flow.v0.models.OutboundCartonFee)[];
4532
+ readonly fees?: io.flow.v0.unions.PartnerCenterFee[];
4848
4533
  }
4849
4534
  interface PartnerReference {
4850
4535
  readonly id: string;
@@ -4912,13 +4597,7 @@ declare namespace io.flow.v0.models {
4912
4597
  readonly name: string;
4913
4598
  }
4914
4599
  interface PaymentMethodRule {
4915
- readonly tags: ({
4916
- discriminator: 'organization_payment_method_tag';
4917
- value: io.flow.v0.enums.OrganizationPaymentMethodTag;
4918
- } | {
4919
- discriminator: 'experience_payment_method_tag';
4920
- value: io.flow.v0.enums.ExperiencePaymentMethodTag;
4921
- })[];
4600
+ readonly tags: io.flow.v0.unions.PaymentMethodTag[];
4922
4601
  readonly payment_method: io.flow.v0.models.PaymentMethod;
4923
4602
  readonly display_position: number;
4924
4603
  readonly content?: io.flow.v0.models.PaymentMethodRuleContent[];
@@ -4950,17 +4629,13 @@ declare namespace io.flow.v0.models {
4950
4629
  readonly timestamp: string;
4951
4630
  readonly organization: string;
4952
4631
  readonly id: string;
4953
- readonly payment: {
4954
- discriminator: 'payment_paypal';
4955
- } & io.flow.v0.models.PaymentPaypal;
4632
+ readonly payment: io.flow.v0.unions.Payment;
4956
4633
  }
4957
4634
  interface PaymentVersion {
4958
4635
  readonly id: string;
4959
4636
  readonly timestamp: string;
4960
4637
  readonly type: io.flow.v0.enums.ChangeType;
4961
- readonly payment: {
4962
- discriminator: 'payment_paypal';
4963
- } & io.flow.v0.models.PaymentPaypal;
4638
+ readonly payment: io.flow.v0.unions.Payment;
4964
4639
  }
4965
4640
  interface PaypalAuthorizationDetails {
4966
4641
  readonly payment_id: string;
@@ -4983,31 +4658,15 @@ declare namespace io.flow.v0.models {
4983
4658
  }
4984
4659
  interface PermissionCheck {
4985
4660
  readonly authentication_technique: io.flow.v0.enums.AuthenticationTechnique;
4986
- readonly user?: {
4987
- discriminator: 'user';
4988
- } & io.flow.v0.models.User | {
4989
- discriminator: 'user_reference';
4990
- } & io.flow.v0.models.UserReference;
4991
- readonly roles: ({
4992
- discriminator: 'flow_user_role';
4993
- value: io.flow.v0.enums.FlowUserRole;
4994
- } | {
4995
- discriminator: 'flow_addon_role';
4996
- value: io.flow.v0.enums.FlowAddonRole;
4997
- })[];
4661
+ readonly user?: io.flow.v0.unions.ExpandableUser;
4662
+ readonly roles: io.flow.v0.unions.FlowRole[];
4998
4663
  readonly behaviors: io.flow.v0.enums.FlowBehavior[];
4999
4664
  readonly routes: io.flow.v0.models.PermittedRoute[];
5000
4665
  }
5001
4666
  interface PermissionError {
5002
4667
  readonly code: io.flow.v0.enums.GenericErrorCode;
5003
4668
  readonly messages: string[];
5004
- readonly granting_roles?: ({
5005
- discriminator: 'flow_user_role';
5006
- value: io.flow.v0.enums.FlowUserRole;
5007
- } | {
5008
- discriminator: 'flow_addon_role';
5009
- value: io.flow.v0.enums.FlowAddonRole;
5010
- })[];
4669
+ readonly granting_roles?: io.flow.v0.unions.FlowRole[];
5011
4670
  readonly admin_users?: io.flow.v0.models.User[];
5012
4671
  }
5013
4672
  interface PermittedRoute {
@@ -5236,16 +4895,8 @@ declare namespace io.flow.v0.models {
5236
4895
  readonly min?: io.flow.v0.models.PriceForm;
5237
4896
  }
5238
4897
  interface Promotions {
5239
- readonly applied: ({
5240
- discriminator: 'free_shipping';
5241
- } & io.flow.v0.models.FreeShipping | {
5242
- discriminator: 'discount';
5243
- } & io.flow.v0.models.Discount)[];
5244
- readonly available: ({
5245
- discriminator: 'free_shipping';
5246
- } & io.flow.v0.models.FreeShipping | {
5247
- discriminator: 'discount';
5248
- } & io.flow.v0.models.Discount)[];
4898
+ readonly applied: io.flow.v0.unions.Promotion[];
4899
+ readonly available: io.flow.v0.unions.Promotion[];
5249
4900
  }
5250
4901
  interface Province {
5251
4902
  readonly id: string;
@@ -5260,31 +4911,15 @@ declare namespace io.flow.v0.models {
5260
4911
  }
5261
4912
  interface Query {
5262
4913
  readonly q: string;
5263
- readonly filters: ({
5264
- discriminator: 'structured';
5265
- } & io.flow.v0.models.QueryFilterStructured | {
5266
- discriminator: 'unstructured';
5267
- } & io.flow.v0.models.QueryFilterUnstructured)[];
4914
+ readonly filters: io.flow.v0.unions.QueryFilter[];
5268
4915
  }
5269
4916
  interface QueryBuilder {
5270
4917
  readonly q: string;
5271
- readonly filters: ({
5272
- discriminator: 'structured';
5273
- } & io.flow.v0.models.QueryFilterStructured | {
5274
- discriminator: 'unstructured';
5275
- } & io.flow.v0.models.QueryFilterUnstructured)[];
5276
- readonly available: ({
5277
- discriminator: 'structured';
5278
- } & io.flow.v0.models.AvailableFilterStructured | {
5279
- discriminator: 'unstructured';
5280
- } & io.flow.v0.models.AvailableFilterUnstructured)[];
4918
+ readonly filters: io.flow.v0.unions.QueryFilter[];
4919
+ readonly available: io.flow.v0.unions.AvailableFilter[];
5281
4920
  }
5282
4921
  interface QueryBuilderFilterForm {
5283
- readonly filters: ({
5284
- discriminator: 'structured';
5285
- } & io.flow.v0.models.QueryFilterStructuredForm | {
5286
- discriminator: 'unstructured';
5287
- } & io.flow.v0.models.QueryFilterUnstructuredForm)[];
4922
+ readonly filters: io.flow.v0.unions.QueryFilterForm[];
5288
4923
  }
5289
4924
  interface QueryBuilderQueryForm {
5290
4925
  readonly q: string;
@@ -5309,11 +4944,7 @@ declare namespace io.flow.v0.models {
5309
4944
  interface Quote {
5310
4945
  readonly id: string;
5311
4946
  readonly destination: io.flow.v0.models.ShippingAddress;
5312
- readonly deliveries: ({
5313
- discriminator: 'digital_delivery';
5314
- } & io.flow.v0.models.DigitalDelivery | {
5315
- discriminator: 'physical_delivery';
5316
- } & io.flow.v0.models.PhysicalDelivery)[];
4947
+ readonly deliveries: io.flow.v0.unions.Delivery[];
5317
4948
  readonly selections: io.flow.v0.models.DeliveryOptionReference[];
5318
4949
  readonly delivered_duty: io.flow.v0.enums.DeliveredDuty;
5319
4950
  readonly delivered_duties: io.flow.v0.enums.DeliveredDuty[];
@@ -5365,6 +4996,12 @@ declare namespace io.flow.v0.models {
5365
4996
  readonly timestamp: string;
5366
4997
  readonly rate_id: string;
5367
4998
  }
4999
+ interface RateDeletedV3 {
5000
+ readonly event_id: string;
5001
+ readonly timestamp: string;
5002
+ readonly organization: string;
5003
+ readonly rate: io.flow.v0.models.Rate;
5004
+ }
5368
5005
  interface RateForm {
5369
5006
  readonly base: string;
5370
5007
  readonly target: string;
@@ -5380,6 +5017,12 @@ declare namespace io.flow.v0.models {
5380
5017
  readonly effective_at: string;
5381
5018
  readonly value: number;
5382
5019
  }
5020
+ interface RateUpsertedV3 {
5021
+ readonly event_id: string;
5022
+ readonly timestamp: string;
5023
+ readonly organization: string;
5024
+ readonly rate: io.flow.v0.models.Rate;
5025
+ }
5383
5026
  interface RateVersion {
5384
5027
  readonly id: string;
5385
5028
  readonly timestamp: string;
@@ -5437,19 +5080,7 @@ declare namespace io.flow.v0.models {
5437
5080
  readonly shipment_window: io.flow.v0.models.ShipmentWindow;
5438
5081
  readonly currency: string;
5439
5082
  readonly amount: number;
5440
- readonly fees: ({
5441
- discriminator: 'ddp_ratecard_fee';
5442
- } & io.flow.v0.models.DdpRatecardFee | {
5443
- discriminator: 'fuel_surcharge_ratecard_fee';
5444
- } & io.flow.v0.models.FuelSurchargeRatecardFee | {
5445
- discriminator: 'oversized_shipment_ratecard_fee';
5446
- } & io.flow.v0.models.OversizedShipmentRatecardFee | {
5447
- discriminator: 'return_package_ratecard_fee';
5448
- } & io.flow.v0.models.ReturnPackageRatecardFee | {
5449
- discriminator: 'crossdock_ratecard_fee';
5450
- } & io.flow.v0.models.CrossdockRatecardFee | {
5451
- discriminator: 'remote_area_ratecard_fee';
5452
- } & io.flow.v0.models.RemoteAreaRatecardFee)[];
5083
+ readonly fees: io.flow.v0.unions.RatecardFee[];
5453
5084
  readonly total: number;
5454
5085
  readonly delivered_duty: io.flow.v0.enums.DeliveredDuty;
5455
5086
  readonly dimensional_weight?: io.flow.v0.models.Measurement;
@@ -5478,19 +5109,7 @@ declare namespace io.flow.v0.models {
5478
5109
  readonly shipment_window: io.flow.v0.models.ShipmentWindow;
5479
5110
  readonly destination: io.flow.v0.models.Zone;
5480
5111
  readonly dim_factor: number;
5481
- readonly fees: ({
5482
- discriminator: 'ddp_ratecard_fee';
5483
- } & io.flow.v0.models.DdpRatecardFee | {
5484
- discriminator: 'fuel_surcharge_ratecard_fee';
5485
- } & io.flow.v0.models.FuelSurchargeRatecardFee | {
5486
- discriminator: 'oversized_shipment_ratecard_fee';
5487
- } & io.flow.v0.models.OversizedShipmentRatecardFee | {
5488
- discriminator: 'return_package_ratecard_fee';
5489
- } & io.flow.v0.models.ReturnPackageRatecardFee | {
5490
- discriminator: 'crossdock_ratecard_fee';
5491
- } & io.flow.v0.models.CrossdockRatecardFee | {
5492
- discriminator: 'remote_area_ratecard_fee';
5493
- } & io.flow.v0.models.RemoteAreaRatecardFee)[];
5112
+ readonly fees: io.flow.v0.unions.RatecardFee[];
5494
5113
  readonly origin: io.flow.v0.models.Zone;
5495
5114
  readonly service: io.flow.v0.models.RatecardServiceSummary;
5496
5115
  readonly rates: io.flow.v0.models.RatecardRate[];
@@ -5511,19 +5130,7 @@ declare namespace io.flow.v0.models {
5511
5130
  readonly shipment_window: io.flow.v0.models.ShipmentWindow;
5512
5131
  readonly delivered_duty: io.flow.v0.enums.DeliveredDuty;
5513
5132
  readonly dim_factor: number;
5514
- readonly fees: ({
5515
- discriminator: 'ddp_ratecard_fee';
5516
- } & io.flow.v0.models.DdpRatecardFee | {
5517
- discriminator: 'fuel_surcharge_ratecard_fee';
5518
- } & io.flow.v0.models.FuelSurchargeRatecardFee | {
5519
- discriminator: 'oversized_shipment_ratecard_fee';
5520
- } & io.flow.v0.models.OversizedShipmentRatecardFee | {
5521
- discriminator: 'return_package_ratecard_fee';
5522
- } & io.flow.v0.models.ReturnPackageRatecardFee | {
5523
- discriminator: 'crossdock_ratecard_fee';
5524
- } & io.flow.v0.models.CrossdockRatecardFee | {
5525
- discriminator: 'remote_area_ratecard_fee';
5526
- } & io.flow.v0.models.RemoteAreaRatecardFee)[];
5133
+ readonly fees: io.flow.v0.unions.RatecardFee[];
5527
5134
  readonly origin: io.flow.v0.models.Zone;
5528
5135
  readonly rounding: io.flow.v0.models.Rounding;
5529
5136
  readonly rates: io.flow.v0.models.RatecardRateForm[];
@@ -5600,9 +5207,7 @@ declare namespace io.flow.v0.models {
5600
5207
  interface RedirectAuthorizationDetails {
5601
5208
  readonly id: string;
5602
5209
  readonly payment_redirect_url: string;
5603
- readonly confirmation_details?: {
5604
- discriminator: 'direct_debit';
5605
- } & io.flow.v0.models.DirectDebit;
5210
+ readonly confirmation_details?: io.flow.v0.unions.ConfirmationDetails;
5606
5211
  }
5607
5212
  interface RedirectAuthorizationForm {
5608
5213
  readonly method: string;
@@ -5912,13 +5517,7 @@ declare namespace io.flow.v0.models {
5912
5517
  readonly method: io.flow.v0.enums.PermittedHttpMethod;
5913
5518
  readonly path: string;
5914
5519
  readonly authentication_techniques: io.flow.v0.enums.AuthenticationTechnique[];
5915
- readonly roles: ({
5916
- discriminator: 'flow_user_role';
5917
- value: io.flow.v0.enums.FlowUserRole;
5918
- } | {
5919
- discriminator: 'flow_addon_role';
5920
- value: io.flow.v0.enums.FlowAddonRole;
5921
- })[];
5520
+ readonly roles: io.flow.v0.unions.FlowRole[];
5922
5521
  }
5923
5522
  interface RuleDeleted {
5924
5523
  readonly event_id: string;
@@ -5946,35 +5545,7 @@ declare namespace io.flow.v0.models {
5946
5545
  readonly hour: number;
5947
5546
  readonly minute: number;
5948
5547
  readonly timezone: string;
5949
- readonly types: ({
5950
- discriminator: 'account_transactions_export_type';
5951
- } & io.flow.v0.models.AccountTransactionsExportType | {
5952
- discriminator: 'account_orders_export_type';
5953
- } & io.flow.v0.models.AccountOrdersExportType | {
5954
- discriminator: 'analytics_export_type';
5955
- } & io.flow.v0.models.AnalyticsExportType | {
5956
- discriminator: 'catalog_item_export_type';
5957
- } & io.flow.v0.models.CatalogItemExportType | {
5958
- discriminator: 'experience_export_type';
5959
- } & io.flow.v0.models.ExperienceExportType | {
5960
- discriminator: 'harmonization_overview_export_type';
5961
- } & io.flow.v0.models.HarmonizationOverviewExportType | {
5962
- discriminator: 'harmonization_hs6_export_type';
5963
- } & io.flow.v0.models.HarmonizationHs6ExportType | {
5964
- discriminator: 'harmonization_hs10_export_type';
5965
- } & io.flow.v0.models.HarmonizationHs10ExportType | {
5966
- discriminator: 'unharmonized_item_export_type';
5967
- } & io.flow.v0.models.UnharmonizedItemExportType | {
5968
- discriminator: 'harmonization_landed_cost_export_type';
5969
- } & io.flow.v0.models.HarmonizationLandedCostExportType | {
5970
- discriminator: 'order_export_type';
5971
- } & io.flow.v0.models.OrderExportType | {
5972
- discriminator: 'solidus_product_export_type';
5973
- } & io.flow.v0.models.SolidusProductExportType | {
5974
- discriminator: 'solidus_variant_export_type';
5975
- } & io.flow.v0.models.SolidusVariantExportType | {
5976
- discriminator: 'localized_item_prices_export_type';
5977
- } & io.flow.v0.models.LocalizedItemPricesExportType)[];
5548
+ readonly types: io.flow.v0.unions.ExportType[];
5978
5549
  readonly last_sent_at?: string;
5979
5550
  }
5980
5551
  interface ScheduledExportForm {
@@ -5983,35 +5554,7 @@ declare namespace io.flow.v0.models {
5983
5554
  readonly hour: number;
5984
5555
  readonly minute: number;
5985
5556
  readonly timezone: string;
5986
- readonly types: ({
5987
- discriminator: 'account_transactions_export_type';
5988
- } & io.flow.v0.models.AccountTransactionsExportType | {
5989
- discriminator: 'account_orders_export_type';
5990
- } & io.flow.v0.models.AccountOrdersExportType | {
5991
- discriminator: 'analytics_export_type';
5992
- } & io.flow.v0.models.AnalyticsExportType | {
5993
- discriminator: 'catalog_item_export_type';
5994
- } & io.flow.v0.models.CatalogItemExportType | {
5995
- discriminator: 'experience_export_type';
5996
- } & io.flow.v0.models.ExperienceExportType | {
5997
- discriminator: 'harmonization_overview_export_type';
5998
- } & io.flow.v0.models.HarmonizationOverviewExportType | {
5999
- discriminator: 'harmonization_hs6_export_type';
6000
- } & io.flow.v0.models.HarmonizationHs6ExportType | {
6001
- discriminator: 'harmonization_hs10_export_type';
6002
- } & io.flow.v0.models.HarmonizationHs10ExportType | {
6003
- discriminator: 'unharmonized_item_export_type';
6004
- } & io.flow.v0.models.UnharmonizedItemExportType | {
6005
- discriminator: 'harmonization_landed_cost_export_type';
6006
- } & io.flow.v0.models.HarmonizationLandedCostExportType | {
6007
- discriminator: 'order_export_type';
6008
- } & io.flow.v0.models.OrderExportType | {
6009
- discriminator: 'solidus_product_export_type';
6010
- } & io.flow.v0.models.SolidusProductExportType | {
6011
- discriminator: 'solidus_variant_export_type';
6012
- } & io.flow.v0.models.SolidusVariantExportType | {
6013
- discriminator: 'localized_item_prices_export_type';
6014
- } & io.flow.v0.models.LocalizedItemPricesExportType)[];
5557
+ readonly types: io.flow.v0.unions.ExportType[];
6015
5558
  }
6016
5559
  interface ScheduledPickup {
6017
5560
  readonly day_of_week: io.flow.v0.enums.DayOfWeek;
@@ -6275,11 +5818,7 @@ declare namespace io.flow.v0.models {
6275
5818
  readonly id: string;
6276
5819
  readonly shipping_configuration: io.flow.v0.models.ShippingConfigurationReference;
6277
5820
  readonly region: string;
6278
- readonly centers: ({
6279
- discriminator: 'center';
6280
- } & io.flow.v0.models.Center | {
6281
- discriminator: 'center_reference';
6282
- } & io.flow.v0.models.CenterReference)[];
5821
+ readonly centers: io.flow.v0.unions.ExpandableCenter[];
6283
5822
  readonly tiers: io.flow.v0.models.Tier[];
6284
5823
  readonly query: io.flow.v0.models.Query;
6285
5824
  readonly strategy: io.flow.v0.enums.LaneStrategy;
@@ -6417,13 +5956,7 @@ declare namespace io.flow.v0.models {
6417
5956
  readonly quantity: number;
6418
5957
  readonly price: io.flow.v0.models.ShopifyPrice;
6419
5958
  readonly total: io.flow.v0.models.ShopifyPrice;
6420
- readonly price_source?: {
6421
- discriminator: 'price_book';
6422
- } & io.flow.v0.models.PriceSourcePriceBook | {
6423
- discriminator: 'catalog';
6424
- } & io.flow.v0.models.PriceSourceCatalog | {
6425
- discriminator: 'provided';
6426
- } & io.flow.v0.models.PriceSourceProvided;
5959
+ readonly price_source?: io.flow.v0.unions.PriceSource;
6427
5960
  }
6428
5961
  interface ShopifyLocalCartItemMetadata {
6429
5962
  readonly line_price: io.flow.v0.models.PriceWithBase;
@@ -6467,11 +6000,7 @@ declare namespace io.flow.v0.models {
6467
6000
  readonly lines: io.flow.v0.models.ShopifyLine[];
6468
6001
  readonly prices: io.flow.v0.models.ShopifyPrice[];
6469
6002
  readonly total: io.flow.v0.models.ShopifyPrice;
6470
- readonly allocation_details: ({
6471
- discriminator: 'allocation_line_detail';
6472
- } & io.flow.v0.models.AllocationLineDetail | {
6473
- discriminator: 'allocation_order_detail';
6474
- } & io.flow.v0.models.AllocationOrderDetail)[];
6003
+ readonly allocation_details: io.flow.v0.unions.AllocationDetail[];
6475
6004
  readonly merchant_of_record?: io.flow.v0.enums.OrderMerchantOfRecord;
6476
6005
  readonly merchant_of_record_entity?: io.flow.v0.models.MerchantOfRecordEntity;
6477
6006
  readonly incoterm?: io.flow.v0.enums.Incoterm;
@@ -6551,9 +6080,7 @@ declare namespace io.flow.v0.models {
6551
6080
  readonly range: io.flow.v0.models.DatetimeRange;
6552
6081
  readonly interval_seconds: number;
6553
6082
  readonly total: number;
6554
- readonly buckets: ({
6555
- discriminator: 'shopify_item_event_bucket';
6556
- } & io.flow.v0.models.ShopifyItemEventBucket)[];
6083
+ readonly buckets: io.flow.v0.unions.ShopifyEventBucket[];
6557
6084
  }
6558
6085
  interface ShopifyVariantFlowMetafield {
6559
6086
  readonly prices_item: string;
@@ -6792,11 +6319,7 @@ declare namespace io.flow.v0.models {
6792
6319
  readonly name: string;
6793
6320
  readonly rate: number;
6794
6321
  readonly components: io.flow.v0.enums.LevyComponent[];
6795
- readonly deminimis?: {
6796
- discriminator: 'deminimis_simple';
6797
- } & io.flow.v0.models.DeminimisSimple | {
6798
- discriminator: 'deminimis_per_item';
6799
- } & io.flow.v0.models.DeminimisPerItem;
6322
+ readonly deminimis?: io.flow.v0.unions.Deminimis;
6800
6323
  }
6801
6324
  interface TaxRegistration {
6802
6325
  readonly id: string;
@@ -6871,28 +6394,12 @@ declare namespace io.flow.v0.models {
6871
6394
  readonly id: string;
6872
6395
  readonly position: number;
6873
6396
  readonly query: string;
6874
- readonly outcome: {
6875
- discriminator: 'amount_margin';
6876
- } & io.flow.v0.models.AmountMargin | {
6877
- discriminator: 'at_cost';
6878
- } & io.flow.v0.models.AtCost | {
6879
- discriminator: 'flat_rate';
6880
- } & io.flow.v0.models.FlatRate | {
6881
- discriminator: 'percent_margin';
6882
- } & io.flow.v0.models.PercentMargin;
6397
+ readonly outcome: io.flow.v0.unions.TierRuleOutcome;
6883
6398
  }
6884
6399
  interface TierRuleForm {
6885
6400
  readonly position?: number;
6886
6401
  readonly query: string;
6887
- readonly outcome: {
6888
- discriminator: 'amount_margin_form';
6889
- } & io.flow.v0.models.AmountMarginForm | {
6890
- discriminator: 'flat_rate_form';
6891
- } & io.flow.v0.models.FlatRateForm | {
6892
- discriminator: 'at_cost';
6893
- } & io.flow.v0.models.AtCost | {
6894
- discriminator: 'percent_margin';
6895
- } & io.flow.v0.models.PercentMargin;
6402
+ readonly outcome: io.flow.v0.unions.TierRuleOutcomeForm;
6896
6403
  }
6897
6404
  interface TierRuleVersion {
6898
6405
  readonly id: string;
@@ -7371,6 +6878,10 @@ declare namespace io.flow.v0.unions {
7371
6878
  } & io.flow.v0.models.RateDeleted | {
7372
6879
  discriminator: 'rate_upserted';
7373
6880
  } & io.flow.v0.models.RateUpserted | {
6881
+ discriminator: 'rate_deleted_v3';
6882
+ } & io.flow.v0.models.RateDeletedV3 | {
6883
+ discriminator: 'rate_upserted_v3';
6884
+ } & io.flow.v0.models.RateUpsertedV3 | {
7374
6885
  discriminator: 'customer_upserted';
7375
6886
  } & io.flow.v0.models.CustomerUpserted | {
7376
6887
  discriminator: 'customer_deleted';
@@ -7555,6 +7066,10 @@ declare namespace io.flow.v0.unions {
7555
7066
  } & io.flow.v0.models.OrganizationDefaultConfigurationsUpserted | {
7556
7067
  discriminator: 'organization_default_configurations_deleted';
7557
7068
  } & io.flow.v0.models.OrganizationDefaultConfigurationsDeleted | {
7069
+ discriminator: 'ecommerce_platform_upserted';
7070
+ } & io.flow.v0.models.EcommercePlatformUpserted | {
7071
+ discriminator: 'ecommerce_platform_deleted';
7072
+ } & io.flow.v0.models.EcommercePlatformDeleted | {
7558
7073
  discriminator: 'authorization_deleted_v2';
7559
7074
  } & io.flow.v0.models.AuthorizationDeletedV2 | {
7560
7075
  discriminator: 'authorization_status_changed';
@@ -8201,6 +7716,10 @@ export declare type DiscountsForm = io.flow.v0.models.DiscountsForm;
8201
7716
  export declare type Document = io.flow.v0.unions.Document;
8202
7717
  export declare type Duration = io.flow.v0.models.Duration;
8203
7718
  export declare type Duty = io.flow.v0.models.Duty;
7719
+ export declare type EcommercePlatform = io.flow.v0.models.EcommercePlatform;
7720
+ export declare type EcommercePlatformDeleted = io.flow.v0.models.EcommercePlatformDeleted;
7721
+ export declare type EcommercePlatformType = io.flow.v0.enums.EcommercePlatformType;
7722
+ export declare type EcommercePlatformUpserted = io.flow.v0.models.EcommercePlatformUpserted;
8204
7723
  export declare type EconomicTitleLocation = io.flow.v0.enums.EconomicTitleLocation;
8205
7724
  export declare type EmailVerification = io.flow.v0.models.EmailVerification;
8206
7725
  export declare type Environment = io.flow.v0.enums.Environment;
@@ -8713,9 +8232,11 @@ export declare type QuoteSummary = io.flow.v0.models.QuoteSummary;
8713
8232
  export declare type QuoteVersion = io.flow.v0.models.QuoteVersion;
8714
8233
  export declare type Rate = io.flow.v0.models.Rate;
8715
8234
  export declare type RateDeleted = io.flow.v0.models.RateDeleted;
8235
+ export declare type RateDeletedV3 = io.flow.v0.models.RateDeletedV3;
8716
8236
  export declare type RateForm = io.flow.v0.models.RateForm;
8717
8237
  export declare type RateType = io.flow.v0.enums.RateType;
8718
8238
  export declare type RateUpserted = io.flow.v0.models.RateUpserted;
8239
+ export declare type RateUpsertedV3 = io.flow.v0.models.RateUpsertedV3;
8719
8240
  export declare type RateVersion = io.flow.v0.models.RateVersion;
8720
8241
  export declare type Ratecard = io.flow.v0.models.Ratecard;
8721
8242
  export declare type RatecardCarrierSummary = io.flow.v0.models.RatecardCarrierSummary;