@flowio/types 0.0.4 → 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,19 @@ 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[];
1819
+ readonly session_id: string;
1933
1820
  readonly urls?: io.flow.v0.models.CheckoutUrlsForm;
1934
1821
  }
1935
1822
  interface CheckoutTokenReferenceForm {
@@ -1961,13 +1848,7 @@ declare namespace io.flow.v0.models {
1961
1848
  readonly center?: io.flow.v0.models.ConsumerInvoiceCenterReference;
1962
1849
  readonly destination: io.flow.v0.models.OrderAddress;
1963
1850
  readonly billing_address?: io.flow.v0.models.BillingAddress;
1964
- readonly lines: ({
1965
- discriminator: 'item';
1966
- } & io.flow.v0.models.ConsumerInvoiceLineItem | {
1967
- discriminator: 'discount';
1968
- } & io.flow.v0.models.ConsumerInvoiceLineDiscount | {
1969
- discriminator: 'shipping';
1970
- } & io.flow.v0.models.ConsumerInvoiceLineShipping)[];
1851
+ readonly lines: io.flow.v0.unions.ConsumerInvoiceLine[];
1971
1852
  readonly documents: io.flow.v0.models.ConsumerInvoiceDocument[];
1972
1853
  readonly attributes: {
1973
1854
  [key: string]: string;
@@ -2105,13 +1986,7 @@ declare namespace io.flow.v0.models {
2105
1986
  readonly invoice: io.flow.v0.models.ConsumerInvoiceReference;
2106
1987
  readonly entity: io.flow.v0.models.MerchantOfRecordEntity;
2107
1988
  readonly payments: io.flow.v0.models.ConsumerInvoicePayment[];
2108
- readonly lines: ({
2109
- discriminator: 'item';
2110
- } & io.flow.v0.models.ConsumerInvoiceLineItem | {
2111
- discriminator: 'discount';
2112
- } & io.flow.v0.models.ConsumerInvoiceLineDiscount | {
2113
- discriminator: 'shipping';
2114
- } & io.flow.v0.models.ConsumerInvoiceLineShipping)[];
1989
+ readonly lines: io.flow.v0.unions.ConsumerInvoiceLine[];
2115
1990
  readonly documents: io.flow.v0.models.ConsumerInvoiceDocument[];
2116
1991
  readonly attributes: {
2117
1992
  [key: string]: string;
@@ -2128,13 +2003,7 @@ declare namespace io.flow.v0.models {
2128
2003
  readonly refund_id?: string;
2129
2004
  readonly refund_key?: string;
2130
2005
  readonly refund_identifier?: string;
2131
- readonly lines: ({
2132
- discriminator: 'item';
2133
- } & io.flow.v0.models.ConsumerInvoiceLineItemForm | {
2134
- discriminator: 'discount';
2135
- } & io.flow.v0.models.ConsumerInvoiceLineDiscountForm | {
2136
- discriminator: 'shipping';
2137
- } & io.flow.v0.models.ConsumerInvoiceLineShippingForm)[];
2006
+ readonly lines: io.flow.v0.unions.ConsumerInvoiceLineForm[];
2138
2007
  readonly attributes?: {
2139
2008
  [key: string]: string;
2140
2009
  };
@@ -2147,11 +2016,7 @@ declare namespace io.flow.v0.models {
2147
2016
  }
2148
2017
  interface CreditPayment {
2149
2018
  readonly id: string;
2150
- readonly order: {
2151
- discriminator: 'order';
2152
- } & io.flow.v0.models.Order | {
2153
- discriminator: 'order_reference';
2154
- } & io.flow.v0.models.OrderReference;
2019
+ readonly order: io.flow.v0.unions.ExpandableOrder;
2155
2020
  readonly key: string;
2156
2021
  readonly description: string;
2157
2022
  readonly value: io.flow.v0.models.PriceWithBase;
@@ -2330,15 +2195,7 @@ declare namespace io.flow.v0.models {
2330
2195
  readonly service: io.flow.v0.models.ServiceSummary;
2331
2196
  readonly tier: io.flow.v0.models.TierSummary;
2332
2197
  readonly window: io.flow.v0.models.DeliveryWindow;
2333
- readonly rule_outcome?: {
2334
- discriminator: 'amount_margin';
2335
- } & io.flow.v0.models.AmountMargin | {
2336
- discriminator: 'at_cost';
2337
- } & io.flow.v0.models.AtCost | {
2338
- discriminator: 'flat_rate';
2339
- } & io.flow.v0.models.FlatRate | {
2340
- discriminator: 'percent_margin';
2341
- } & io.flow.v0.models.PercentMargin;
2198
+ readonly rule_outcome?: io.flow.v0.unions.TierRuleOutcome;
2342
2199
  readonly weight?: io.flow.v0.models.OptionWeightEstimates;
2343
2200
  readonly send_to?: io.flow.v0.models.ShippingAddress;
2344
2201
  readonly surcharge?: io.flow.v0.models.PriceWithBaseAndDetails;
@@ -2545,11 +2402,7 @@ declare namespace io.flow.v0.models {
2545
2402
  };
2546
2403
  }
2547
2404
  interface DiscountForm {
2548
- readonly offer: {
2549
- discriminator: 'discount_offer_fixed';
2550
- } & io.flow.v0.models.DiscountOfferFixed | {
2551
- discriminator: 'discount_offer_percent';
2552
- } & io.flow.v0.models.DiscountOfferPercent;
2405
+ readonly offer: io.flow.v0.unions.DiscountOffer;
2553
2406
  readonly target?: io.flow.v0.enums.DiscountTarget;
2554
2407
  readonly label?: string;
2555
2408
  }
@@ -2569,13 +2422,26 @@ declare namespace io.flow.v0.models {
2569
2422
  interface Duty {
2570
2423
  readonly rate: number;
2571
2424
  readonly components: io.flow.v0.enums.LevyComponent[];
2572
- readonly deminimis?: {
2573
- discriminator: 'deminimis_simple';
2574
- } & io.flow.v0.models.DeminimisSimple | {
2575
- discriminator: 'deminimis_per_item';
2576
- } & io.flow.v0.models.DeminimisPerItem;
2425
+ readonly deminimis?: io.flow.v0.unions.Deminimis;
2577
2426
  readonly name?: string;
2578
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
+ }
2579
2445
  interface EmailVerification {
2580
2446
  readonly email: string;
2581
2447
  }
@@ -2801,78 +2667,20 @@ declare namespace io.flow.v0.models {
2801
2667
  }
2802
2668
  interface Export {
2803
2669
  readonly id: string;
2804
- readonly type: {
2805
- discriminator: 'account_transactions_export_type';
2806
- } & io.flow.v0.models.AccountTransactionsExportType | {
2807
- discriminator: 'account_orders_export_type';
2808
- } & io.flow.v0.models.AccountOrdersExportType | {
2809
- discriminator: 'analytics_export_type';
2810
- } & io.flow.v0.models.AnalyticsExportType | {
2811
- discriminator: 'catalog_item_export_type';
2812
- } & io.flow.v0.models.CatalogItemExportType | {
2813
- discriminator: 'experience_export_type';
2814
- } & io.flow.v0.models.ExperienceExportType | {
2815
- discriminator: 'harmonization_overview_export_type';
2816
- } & io.flow.v0.models.HarmonizationOverviewExportType | {
2817
- discriminator: 'harmonization_hs6_export_type';
2818
- } & io.flow.v0.models.HarmonizationHs6ExportType | {
2819
- discriminator: 'harmonization_hs10_export_type';
2820
- } & io.flow.v0.models.HarmonizationHs10ExportType | {
2821
- discriminator: 'unharmonized_item_export_type';
2822
- } & io.flow.v0.models.UnharmonizedItemExportType | {
2823
- discriminator: 'harmonization_landed_cost_export_type';
2824
- } & io.flow.v0.models.HarmonizationLandedCostExportType | {
2825
- discriminator: 'order_export_type';
2826
- } & io.flow.v0.models.OrderExportType | {
2827
- discriminator: 'solidus_product_export_type';
2828
- } & io.flow.v0.models.SolidusProductExportType | {
2829
- discriminator: 'solidus_variant_export_type';
2830
- } & io.flow.v0.models.SolidusVariantExportType | {
2831
- discriminator: 'localized_item_prices_export_type';
2832
- } & io.flow.v0.models.LocalizedItemPricesExportType;
2670
+ readonly type: io.flow.v0.unions.ExportType;
2833
2671
  readonly status: io.flow.v0.enums.ExportStatus;
2834
2672
  readonly organization_q: string;
2835
2673
  readonly created_at: string;
2836
2674
  readonly started_at?: string;
2837
2675
  readonly completed_at?: string;
2838
2676
  readonly url?: string;
2839
- readonly deliveries: ({
2840
- discriminator: 'export_delivery_email';
2841
- } & io.flow.v0.models.ExportDeliveryEmail)[];
2677
+ readonly deliveries: io.flow.v0.unions.ExportDelivery[];
2842
2678
  }
2843
2679
  interface ExportDeliveryEmail {
2844
2680
  readonly email: string;
2845
2681
  }
2846
2682
  interface ExportForm {
2847
- readonly type: {
2848
- discriminator: 'account_transactions_export_type';
2849
- } & io.flow.v0.models.AccountTransactionsExportType | {
2850
- discriminator: 'account_orders_export_type';
2851
- } & io.flow.v0.models.AccountOrdersExportType | {
2852
- discriminator: 'analytics_export_type';
2853
- } & io.flow.v0.models.AnalyticsExportType | {
2854
- discriminator: 'catalog_item_export_type';
2855
- } & io.flow.v0.models.CatalogItemExportType | {
2856
- discriminator: 'experience_export_type';
2857
- } & io.flow.v0.models.ExperienceExportType | {
2858
- discriminator: 'harmonization_overview_export_type';
2859
- } & io.flow.v0.models.HarmonizationOverviewExportType | {
2860
- discriminator: 'harmonization_hs6_export_type';
2861
- } & io.flow.v0.models.HarmonizationHs6ExportType | {
2862
- discriminator: 'harmonization_hs10_export_type';
2863
- } & io.flow.v0.models.HarmonizationHs10ExportType | {
2864
- discriminator: 'unharmonized_item_export_type';
2865
- } & io.flow.v0.models.UnharmonizedItemExportType | {
2866
- discriminator: 'harmonization_landed_cost_export_type';
2867
- } & io.flow.v0.models.HarmonizationLandedCostExportType | {
2868
- discriminator: 'order_export_type';
2869
- } & io.flow.v0.models.OrderExportType | {
2870
- discriminator: 'solidus_product_export_type';
2871
- } & io.flow.v0.models.SolidusProductExportType | {
2872
- discriminator: 'solidus_variant_export_type';
2873
- } & io.flow.v0.models.SolidusVariantExportType | {
2874
- discriminator: 'localized_item_prices_export_type';
2875
- } & io.flow.v0.models.LocalizedItemPricesExportType;
2683
+ readonly type: io.flow.v0.unions.ExportType;
2876
2684
  readonly emails?: string[];
2877
2685
  readonly organization_q?: string;
2878
2686
  }
@@ -2947,11 +2755,7 @@ declare namespace io.flow.v0.models {
2947
2755
  }
2948
2756
  interface FreeShippingOrderPromotion {
2949
2757
  readonly id: string;
2950
- readonly order: {
2951
- discriminator: 'order';
2952
- } & io.flow.v0.models.Order | {
2953
- discriminator: 'order_reference';
2954
- } & io.flow.v0.models.OrderReference;
2758
+ readonly order: io.flow.v0.unions.ExpandableOrder;
2955
2759
  readonly key: string;
2956
2760
  readonly trigger: io.flow.v0.models.OrderPromotionTrigger;
2957
2761
  readonly max?: io.flow.v0.models.Price;
@@ -3213,19 +3017,7 @@ declare namespace io.flow.v0.models {
3213
3017
  readonly shipment_window: io.flow.v0.models.ShipmentWindow;
3214
3018
  readonly currency: string;
3215
3019
  readonly amount: number;
3216
- readonly fees: ({
3217
- discriminator: 'ddp_ratecard_fee';
3218
- } & io.flow.v0.models.DdpRatecardFee | {
3219
- discriminator: 'fuel_surcharge_ratecard_fee';
3220
- } & io.flow.v0.models.FuelSurchargeRatecardFee | {
3221
- discriminator: 'oversized_shipment_ratecard_fee';
3222
- } & io.flow.v0.models.OversizedShipmentRatecardFee | {
3223
- discriminator: 'return_package_ratecard_fee';
3224
- } & io.flow.v0.models.ReturnPackageRatecardFee | {
3225
- discriminator: 'crossdock_ratecard_fee';
3226
- } & io.flow.v0.models.CrossdockRatecardFee | {
3227
- discriminator: 'remote_area_ratecard_fee';
3228
- } & io.flow.v0.models.RemoteAreaRatecardFee)[];
3020
+ readonly fees: io.flow.v0.unions.RatecardFee[];
3229
3021
  readonly total: number;
3230
3022
  }
3231
3023
  interface Hs10 {
@@ -3297,9 +3089,7 @@ declare namespace io.flow.v0.models {
3297
3089
  readonly started_at?: string;
3298
3090
  readonly completed_at?: string;
3299
3091
  readonly results?: io.flow.v0.models.ImportResults;
3300
- readonly deliveries: ({
3301
- discriminator: 'export_delivery_email';
3302
- } & io.flow.v0.models.ExportDeliveryEmail)[];
3092
+ readonly deliveries: io.flow.v0.unions.ExportDelivery[];
3303
3093
  }
3304
3094
  interface ImportForm {
3305
3095
  readonly type: io.flow.v0.enums.ImportType;
@@ -3374,9 +3164,7 @@ declare namespace io.flow.v0.models {
3374
3164
  readonly max: number;
3375
3165
  }
3376
3166
  interface InputSpecificationLimitations {
3377
- readonly limitations?: ({
3378
- discriminator: 'input_specification_limitation_max';
3379
- } & io.flow.v0.models.InputSpecificationLimitationMax)[];
3167
+ readonly limitations?: io.flow.v0.unions.InputSpecificationLimitation[];
3380
3168
  }
3381
3169
  interface InstallmentPlanPaymentError {
3382
3170
  readonly code: io.flow.v0.enums.InstallmentPlanPaymentErrorCode;
@@ -3423,24 +3211,12 @@ declare namespace io.flow.v0.models {
3423
3211
  readonly id: string;
3424
3212
  readonly position: number;
3425
3213
  readonly query: string;
3426
- readonly strategy: {
3427
- discriminator: 'inventory_backorder';
3428
- } & io.flow.v0.models.InventoryBackorder | {
3429
- discriminator: 'inventory_stock';
3430
- } & io.flow.v0.models.InventoryStock | {
3431
- discriminator: 'inventory_unlimited';
3432
- } & io.flow.v0.models.InventoryUnlimited;
3214
+ readonly strategy: io.flow.v0.unions.InventoryStrategy;
3433
3215
  }
3434
3216
  interface InventoryRuleForm {
3435
3217
  readonly position: number;
3436
3218
  readonly query: string;
3437
- readonly strategy: {
3438
- discriminator: 'inventory_backorder';
3439
- } & io.flow.v0.models.InventoryBackorder | {
3440
- discriminator: 'inventory_stock';
3441
- } & io.flow.v0.models.InventoryStock | {
3442
- discriminator: 'inventory_unlimited';
3443
- } & io.flow.v0.models.InventoryUnlimited;
3219
+ readonly strategy: io.flow.v0.unions.InventoryStrategy;
3444
3220
  }
3445
3221
  interface InventoryRuleVersion {
3446
3222
  readonly id: string;
@@ -3496,21 +3272,11 @@ declare namespace io.flow.v0.models {
3496
3272
  }
3497
3273
  interface Invitation {
3498
3274
  readonly id: string;
3499
- readonly organization: {
3500
- discriminator: 'organization';
3501
- } & io.flow.v0.models.Organization | {
3502
- discriminator: 'organization_reference';
3503
- } & io.flow.v0.models.OrganizationReference;
3275
+ readonly organization: io.flow.v0.unions.ExpandableOrganization;
3504
3276
  readonly email: string;
3505
3277
  readonly name: io.flow.v0.models.Name;
3506
3278
  readonly role?: io.flow.v0.enums.Role;
3507
- readonly roles?: ({
3508
- discriminator: 'flow_user_role';
3509
- value: io.flow.v0.enums.FlowUserRole;
3510
- } | {
3511
- discriminator: 'flow_addon_role';
3512
- value: io.flow.v0.enums.FlowAddonRole;
3513
- })[];
3279
+ readonly roles?: io.flow.v0.unions.FlowRole[];
3514
3280
  readonly expiration: string;
3515
3281
  }
3516
3282
  interface InvitationError {
@@ -3522,13 +3288,7 @@ declare namespace io.flow.v0.models {
3522
3288
  readonly email: string;
3523
3289
  readonly name?: io.flow.v0.models.Name;
3524
3290
  readonly role?: io.flow.v0.enums.Role;
3525
- readonly roles?: ({
3526
- discriminator: 'flow_user_role';
3527
- value: io.flow.v0.enums.FlowUserRole;
3528
- } | {
3529
- discriminator: 'flow_addon_role';
3530
- value: io.flow.v0.enums.FlowAddonRole;
3531
- })[];
3291
+ readonly roles?: io.flow.v0.unions.FlowRole[];
3532
3292
  }
3533
3293
  interface InvitationVersion {
3534
3294
  readonly id: string;
@@ -3851,15 +3611,7 @@ declare namespace io.flow.v0.models {
3851
3611
  }
3852
3612
  interface Local {
3853
3613
  readonly experience: io.flow.v0.models.ExperienceSummary;
3854
- readonly prices: ({
3855
- key: 'localized_item_price';
3856
- } & io.flow.v0.models.LocalizedItemPrice | {
3857
- key: 'localized_item_vat';
3858
- } & io.flow.v0.models.LocalizedItemVat | {
3859
- key: 'localized_item_duty';
3860
- } & io.flow.v0.models.LocalizedItemDuty | {
3861
- key: 'localized_total';
3862
- } & io.flow.v0.models.LocalizedTotal)[];
3614
+ readonly prices: io.flow.v0.unions.LocalizedPrice[];
3863
3615
  readonly rates: io.flow.v0.models.Rate[];
3864
3616
  readonly spot_rates: {
3865
3617
  [key: string]: string;
@@ -3970,13 +3722,7 @@ declare namespace io.flow.v0.models {
3970
3722
  };
3971
3723
  readonly local: io.flow.v0.models.Local;
3972
3724
  readonly shipment_estimate?: io.flow.v0.models.DatetimeRange;
3973
- readonly price_source?: {
3974
- discriminator: 'price_book';
3975
- } & io.flow.v0.models.PriceSourcePriceBook | {
3976
- discriminator: 'catalog';
3977
- } & io.flow.v0.models.PriceSourceCatalog | {
3978
- discriminator: 'provided';
3979
- } & io.flow.v0.models.PriceSourceProvided;
3725
+ readonly price_source?: io.flow.v0.unions.PriceSource;
3980
3726
  }
3981
3727
  interface LocalizedLineItemDiscount {
3982
3728
  readonly amount: number;
@@ -4037,24 +3783,10 @@ declare namespace io.flow.v0.models {
4037
3783
  }
4038
3784
  interface Membership {
4039
3785
  readonly id: string;
4040
- readonly organization: {
4041
- discriminator: 'organization';
4042
- } & io.flow.v0.models.Organization | {
4043
- discriminator: 'organization_reference';
4044
- } & io.flow.v0.models.OrganizationReference;
4045
- readonly user: {
4046
- discriminator: 'user';
4047
- } & io.flow.v0.models.User | {
4048
- discriminator: 'user_reference';
4049
- } & io.flow.v0.models.UserReference;
3786
+ readonly organization: io.flow.v0.unions.ExpandableOrganization;
3787
+ readonly user: io.flow.v0.unions.ExpandableUser;
4050
3788
  readonly role?: io.flow.v0.enums.Role;
4051
- readonly roles: ({
4052
- discriminator: 'flow_user_role';
4053
- value: io.flow.v0.enums.FlowUserRole;
4054
- } | {
4055
- discriminator: 'flow_addon_role';
4056
- value: io.flow.v0.enums.FlowAddonRole;
4057
- })[];
3789
+ readonly roles: io.flow.v0.unions.FlowRole[];
4058
3790
  }
4059
3791
  interface MembershipDeletedV2 {
4060
3792
  readonly event_id: string;
@@ -4065,23 +3797,11 @@ declare namespace io.flow.v0.models {
4065
3797
  readonly organization: string;
4066
3798
  readonly user: string;
4067
3799
  readonly role?: io.flow.v0.enums.Role;
4068
- readonly roles?: ({
4069
- discriminator: 'flow_user_role';
4070
- value: io.flow.v0.enums.FlowUserRole;
4071
- } | {
4072
- discriminator: 'flow_addon_role';
4073
- value: io.flow.v0.enums.FlowAddonRole;
4074
- })[];
3800
+ readonly roles?: io.flow.v0.unions.FlowRole[];
4075
3801
  }
4076
3802
  interface MembershipPutForm {
4077
3803
  readonly role?: io.flow.v0.enums.Role;
4078
- readonly roles?: ({
4079
- discriminator: 'flow_user_role';
4080
- value: io.flow.v0.enums.FlowUserRole;
4081
- } | {
4082
- discriminator: 'flow_addon_role';
4083
- value: io.flow.v0.enums.FlowAddonRole;
4084
- })[];
3804
+ readonly roles?: io.flow.v0.unions.FlowRole[];
4085
3805
  }
4086
3806
  interface MembershipUpsertedV2 {
4087
3807
  readonly event_id: string;
@@ -4201,13 +3921,7 @@ declare namespace io.flow.v0.models {
4201
3921
  readonly key: string;
4202
3922
  readonly method?: io.flow.v0.models.PaymentMethod;
4203
3923
  readonly merchant_of_record?: io.flow.v0.enums.MerchantOfRecord;
4204
- readonly details?: {
4205
- discriminator: 'paypal_authorization_details';
4206
- } & io.flow.v0.models.PaypalAuthorizationDetails | {
4207
- discriminator: 'redirect_authorization_details';
4208
- } & io.flow.v0.models.RedirectAuthorizationDetails | {
4209
- discriminator: 'inline_authorization_details';
4210
- } & io.flow.v0.models.InlineAuthorizationDetails;
3924
+ readonly details?: io.flow.v0.unions.OnlineAuthorizationDetails;
4211
3925
  readonly payment?: {
4212
3926
  [key: string]: string;
4213
3927
  };
@@ -4257,21 +3971,13 @@ declare namespace io.flow.v0.models {
4257
3971
  readonly id: string;
4258
3972
  readonly number: string;
4259
3973
  readonly merchant_of_record?: io.flow.v0.enums.OrderMerchantOfRecord;
4260
- readonly experience?: {
4261
- discriminator: 'experience';
4262
- } & io.flow.v0.models.Experience | {
4263
- discriminator: 'experience_reference';
4264
- } & io.flow.v0.models.ExperienceReference;
3974
+ readonly experience?: io.flow.v0.unions.ExpandableExperience;
4265
3975
  readonly customer: io.flow.v0.models.OrderCustomer;
4266
3976
  readonly delivered_duty: io.flow.v0.enums.DeliveredDuty;
4267
3977
  readonly destination: io.flow.v0.models.OrderAddress;
4268
3978
  readonly expires_at: string;
4269
3979
  readonly items: io.flow.v0.models.LocalizedLineItem[];
4270
- readonly deliveries: ({
4271
- discriminator: 'digital_delivery';
4272
- } & io.flow.v0.models.DigitalDelivery | {
4273
- discriminator: 'physical_delivery';
4274
- } & io.flow.v0.models.PhysicalDelivery)[];
3980
+ readonly deliveries: io.flow.v0.unions.Delivery[];
4275
3981
  readonly selections: string[];
4276
3982
  readonly prices: io.flow.v0.models.OrderPriceDetail[];
4277
3983
  readonly total: io.flow.v0.models.LocalizedTotal;
@@ -4362,11 +4068,7 @@ declare namespace io.flow.v0.models {
4362
4068
  readonly id: string;
4363
4069
  readonly items: io.flow.v0.models.LocalizedLineItem[];
4364
4070
  readonly destination: io.flow.v0.models.OrderAddress;
4365
- readonly deliveries: ({
4366
- discriminator: 'digital_delivery';
4367
- } & io.flow.v0.models.DigitalDelivery | {
4368
- discriminator: 'physical_delivery';
4369
- } & io.flow.v0.models.PhysicalDelivery)[];
4071
+ readonly deliveries: io.flow.v0.unions.Delivery[];
4370
4072
  readonly prices: io.flow.v0.models.OrderPriceDetail[];
4371
4073
  readonly selections: string[];
4372
4074
  readonly total: io.flow.v0.models.LocalizedTotal;
@@ -4582,11 +4284,7 @@ declare namespace io.flow.v0.models {
4582
4284
  readonly selections: string[];
4583
4285
  readonly items: io.flow.v0.models.LocalizedLineItem[];
4584
4286
  readonly destination: io.flow.v0.models.OrderAddress;
4585
- readonly deliveries: ({
4586
- discriminator: 'digital_delivery';
4587
- } & io.flow.v0.models.DigitalDelivery | {
4588
- discriminator: 'physical_delivery';
4589
- } & io.flow.v0.models.PhysicalDelivery)[];
4287
+ readonly deliveries: io.flow.v0.unions.Delivery[];
4590
4288
  readonly prices: io.flow.v0.models.OrderPriceDetail[];
4591
4289
  readonly order_id?: string;
4592
4290
  readonly payments?: io.flow.v0.models.OrderPayment[];
@@ -4826,24 +4524,12 @@ declare namespace io.flow.v0.models {
4826
4524
  interface PartnerCenter {
4827
4525
  readonly partner_reference: io.flow.v0.models.PartnerReference;
4828
4526
  readonly number?: string;
4829
- readonly fees?: ({
4830
- discriminator: 'commercial_invoice_fee';
4831
- } & io.flow.v0.models.CommercialInvoiceFee | {
4832
- discriminator: 'inbound_carton_fee';
4833
- } & io.flow.v0.models.InboundCartonFee | {
4834
- discriminator: 'outbound_carton_fee';
4835
- } & io.flow.v0.models.OutboundCartonFee)[];
4527
+ readonly fees?: io.flow.v0.unions.PartnerCenterFee[];
4836
4528
  }
4837
4529
  interface PartnerCenterForm {
4838
4530
  readonly partner_id: string;
4839
4531
  readonly number?: string;
4840
- readonly fees?: ({
4841
- discriminator: 'commercial_invoice_fee';
4842
- } & io.flow.v0.models.CommercialInvoiceFee | {
4843
- discriminator: 'inbound_carton_fee';
4844
- } & io.flow.v0.models.InboundCartonFee | {
4845
- discriminator: 'outbound_carton_fee';
4846
- } & io.flow.v0.models.OutboundCartonFee)[];
4532
+ readonly fees?: io.flow.v0.unions.PartnerCenterFee[];
4847
4533
  }
4848
4534
  interface PartnerReference {
4849
4535
  readonly id: string;
@@ -4911,13 +4597,7 @@ declare namespace io.flow.v0.models {
4911
4597
  readonly name: string;
4912
4598
  }
4913
4599
  interface PaymentMethodRule {
4914
- readonly tags: ({
4915
- discriminator: 'organization_payment_method_tag';
4916
- value: io.flow.v0.enums.OrganizationPaymentMethodTag;
4917
- } | {
4918
- discriminator: 'experience_payment_method_tag';
4919
- value: io.flow.v0.enums.ExperiencePaymentMethodTag;
4920
- })[];
4600
+ readonly tags: io.flow.v0.unions.PaymentMethodTag[];
4921
4601
  readonly payment_method: io.flow.v0.models.PaymentMethod;
4922
4602
  readonly display_position: number;
4923
4603
  readonly content?: io.flow.v0.models.PaymentMethodRuleContent[];
@@ -4949,17 +4629,13 @@ declare namespace io.flow.v0.models {
4949
4629
  readonly timestamp: string;
4950
4630
  readonly organization: string;
4951
4631
  readonly id: string;
4952
- readonly payment: {
4953
- discriminator: 'payment_paypal';
4954
- } & io.flow.v0.models.PaymentPaypal;
4632
+ readonly payment: io.flow.v0.unions.Payment;
4955
4633
  }
4956
4634
  interface PaymentVersion {
4957
4635
  readonly id: string;
4958
4636
  readonly timestamp: string;
4959
4637
  readonly type: io.flow.v0.enums.ChangeType;
4960
- readonly payment: {
4961
- discriminator: 'payment_paypal';
4962
- } & io.flow.v0.models.PaymentPaypal;
4638
+ readonly payment: io.flow.v0.unions.Payment;
4963
4639
  }
4964
4640
  interface PaypalAuthorizationDetails {
4965
4641
  readonly payment_id: string;
@@ -4982,31 +4658,15 @@ declare namespace io.flow.v0.models {
4982
4658
  }
4983
4659
  interface PermissionCheck {
4984
4660
  readonly authentication_technique: io.flow.v0.enums.AuthenticationTechnique;
4985
- readonly user?: {
4986
- discriminator: 'user';
4987
- } & io.flow.v0.models.User | {
4988
- discriminator: 'user_reference';
4989
- } & io.flow.v0.models.UserReference;
4990
- readonly roles: ({
4991
- discriminator: 'flow_user_role';
4992
- value: io.flow.v0.enums.FlowUserRole;
4993
- } | {
4994
- discriminator: 'flow_addon_role';
4995
- value: io.flow.v0.enums.FlowAddonRole;
4996
- })[];
4661
+ readonly user?: io.flow.v0.unions.ExpandableUser;
4662
+ readonly roles: io.flow.v0.unions.FlowRole[];
4997
4663
  readonly behaviors: io.flow.v0.enums.FlowBehavior[];
4998
4664
  readonly routes: io.flow.v0.models.PermittedRoute[];
4999
4665
  }
5000
4666
  interface PermissionError {
5001
4667
  readonly code: io.flow.v0.enums.GenericErrorCode;
5002
4668
  readonly messages: string[];
5003
- readonly granting_roles?: ({
5004
- discriminator: 'flow_user_role';
5005
- value: io.flow.v0.enums.FlowUserRole;
5006
- } | {
5007
- discriminator: 'flow_addon_role';
5008
- value: io.flow.v0.enums.FlowAddonRole;
5009
- })[];
4669
+ readonly granting_roles?: io.flow.v0.unions.FlowRole[];
5010
4670
  readonly admin_users?: io.flow.v0.models.User[];
5011
4671
  }
5012
4672
  interface PermittedRoute {
@@ -5235,16 +4895,8 @@ declare namespace io.flow.v0.models {
5235
4895
  readonly min?: io.flow.v0.models.PriceForm;
5236
4896
  }
5237
4897
  interface Promotions {
5238
- readonly applied: ({
5239
- discriminator: 'free_shipping';
5240
- } & io.flow.v0.models.FreeShipping | {
5241
- discriminator: 'discount';
5242
- } & io.flow.v0.models.Discount)[];
5243
- readonly available: ({
5244
- discriminator: 'free_shipping';
5245
- } & io.flow.v0.models.FreeShipping | {
5246
- discriminator: 'discount';
5247
- } & io.flow.v0.models.Discount)[];
4898
+ readonly applied: io.flow.v0.unions.Promotion[];
4899
+ readonly available: io.flow.v0.unions.Promotion[];
5248
4900
  }
5249
4901
  interface Province {
5250
4902
  readonly id: string;
@@ -5259,31 +4911,15 @@ declare namespace io.flow.v0.models {
5259
4911
  }
5260
4912
  interface Query {
5261
4913
  readonly q: string;
5262
- readonly filters: ({
5263
- discriminator: 'structured';
5264
- } & io.flow.v0.models.QueryFilterStructured | {
5265
- discriminator: 'unstructured';
5266
- } & io.flow.v0.models.QueryFilterUnstructured)[];
4914
+ readonly filters: io.flow.v0.unions.QueryFilter[];
5267
4915
  }
5268
4916
  interface QueryBuilder {
5269
4917
  readonly q: string;
5270
- readonly filters: ({
5271
- discriminator: 'structured';
5272
- } & io.flow.v0.models.QueryFilterStructured | {
5273
- discriminator: 'unstructured';
5274
- } & io.flow.v0.models.QueryFilterUnstructured)[];
5275
- readonly available: ({
5276
- discriminator: 'structured';
5277
- } & io.flow.v0.models.AvailableFilterStructured | {
5278
- discriminator: 'unstructured';
5279
- } & io.flow.v0.models.AvailableFilterUnstructured)[];
4918
+ readonly filters: io.flow.v0.unions.QueryFilter[];
4919
+ readonly available: io.flow.v0.unions.AvailableFilter[];
5280
4920
  }
5281
4921
  interface QueryBuilderFilterForm {
5282
- readonly filters: ({
5283
- discriminator: 'structured';
5284
- } & io.flow.v0.models.QueryFilterStructuredForm | {
5285
- discriminator: 'unstructured';
5286
- } & io.flow.v0.models.QueryFilterUnstructuredForm)[];
4922
+ readonly filters: io.flow.v0.unions.QueryFilterForm[];
5287
4923
  }
5288
4924
  interface QueryBuilderQueryForm {
5289
4925
  readonly q: string;
@@ -5308,11 +4944,7 @@ declare namespace io.flow.v0.models {
5308
4944
  interface Quote {
5309
4945
  readonly id: string;
5310
4946
  readonly destination: io.flow.v0.models.ShippingAddress;
5311
- readonly deliveries: ({
5312
- discriminator: 'digital_delivery';
5313
- } & io.flow.v0.models.DigitalDelivery | {
5314
- discriminator: 'physical_delivery';
5315
- } & io.flow.v0.models.PhysicalDelivery)[];
4947
+ readonly deliveries: io.flow.v0.unions.Delivery[];
5316
4948
  readonly selections: io.flow.v0.models.DeliveryOptionReference[];
5317
4949
  readonly delivered_duty: io.flow.v0.enums.DeliveredDuty;
5318
4950
  readonly delivered_duties: io.flow.v0.enums.DeliveredDuty[];
@@ -5364,6 +4996,12 @@ declare namespace io.flow.v0.models {
5364
4996
  readonly timestamp: string;
5365
4997
  readonly rate_id: string;
5366
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
+ }
5367
5005
  interface RateForm {
5368
5006
  readonly base: string;
5369
5007
  readonly target: string;
@@ -5379,6 +5017,12 @@ declare namespace io.flow.v0.models {
5379
5017
  readonly effective_at: string;
5380
5018
  readonly value: number;
5381
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
+ }
5382
5026
  interface RateVersion {
5383
5027
  readonly id: string;
5384
5028
  readonly timestamp: string;
@@ -5436,19 +5080,7 @@ declare namespace io.flow.v0.models {
5436
5080
  readonly shipment_window: io.flow.v0.models.ShipmentWindow;
5437
5081
  readonly currency: string;
5438
5082
  readonly amount: number;
5439
- readonly fees: ({
5440
- discriminator: 'ddp_ratecard_fee';
5441
- } & io.flow.v0.models.DdpRatecardFee | {
5442
- discriminator: 'fuel_surcharge_ratecard_fee';
5443
- } & io.flow.v0.models.FuelSurchargeRatecardFee | {
5444
- discriminator: 'oversized_shipment_ratecard_fee';
5445
- } & io.flow.v0.models.OversizedShipmentRatecardFee | {
5446
- discriminator: 'return_package_ratecard_fee';
5447
- } & io.flow.v0.models.ReturnPackageRatecardFee | {
5448
- discriminator: 'crossdock_ratecard_fee';
5449
- } & io.flow.v0.models.CrossdockRatecardFee | {
5450
- discriminator: 'remote_area_ratecard_fee';
5451
- } & io.flow.v0.models.RemoteAreaRatecardFee)[];
5083
+ readonly fees: io.flow.v0.unions.RatecardFee[];
5452
5084
  readonly total: number;
5453
5085
  readonly delivered_duty: io.flow.v0.enums.DeliveredDuty;
5454
5086
  readonly dimensional_weight?: io.flow.v0.models.Measurement;
@@ -5477,19 +5109,7 @@ declare namespace io.flow.v0.models {
5477
5109
  readonly shipment_window: io.flow.v0.models.ShipmentWindow;
5478
5110
  readonly destination: io.flow.v0.models.Zone;
5479
5111
  readonly dim_factor: number;
5480
- readonly fees: ({
5481
- discriminator: 'ddp_ratecard_fee';
5482
- } & io.flow.v0.models.DdpRatecardFee | {
5483
- discriminator: 'fuel_surcharge_ratecard_fee';
5484
- } & io.flow.v0.models.FuelSurchargeRatecardFee | {
5485
- discriminator: 'oversized_shipment_ratecard_fee';
5486
- } & io.flow.v0.models.OversizedShipmentRatecardFee | {
5487
- discriminator: 'return_package_ratecard_fee';
5488
- } & io.flow.v0.models.ReturnPackageRatecardFee | {
5489
- discriminator: 'crossdock_ratecard_fee';
5490
- } & io.flow.v0.models.CrossdockRatecardFee | {
5491
- discriminator: 'remote_area_ratecard_fee';
5492
- } & io.flow.v0.models.RemoteAreaRatecardFee)[];
5112
+ readonly fees: io.flow.v0.unions.RatecardFee[];
5493
5113
  readonly origin: io.flow.v0.models.Zone;
5494
5114
  readonly service: io.flow.v0.models.RatecardServiceSummary;
5495
5115
  readonly rates: io.flow.v0.models.RatecardRate[];
@@ -5510,19 +5130,7 @@ declare namespace io.flow.v0.models {
5510
5130
  readonly shipment_window: io.flow.v0.models.ShipmentWindow;
5511
5131
  readonly delivered_duty: io.flow.v0.enums.DeliveredDuty;
5512
5132
  readonly dim_factor: number;
5513
- readonly fees: ({
5514
- discriminator: 'ddp_ratecard_fee';
5515
- } & io.flow.v0.models.DdpRatecardFee | {
5516
- discriminator: 'fuel_surcharge_ratecard_fee';
5517
- } & io.flow.v0.models.FuelSurchargeRatecardFee | {
5518
- discriminator: 'oversized_shipment_ratecard_fee';
5519
- } & io.flow.v0.models.OversizedShipmentRatecardFee | {
5520
- discriminator: 'return_package_ratecard_fee';
5521
- } & io.flow.v0.models.ReturnPackageRatecardFee | {
5522
- discriminator: 'crossdock_ratecard_fee';
5523
- } & io.flow.v0.models.CrossdockRatecardFee | {
5524
- discriminator: 'remote_area_ratecard_fee';
5525
- } & io.flow.v0.models.RemoteAreaRatecardFee)[];
5133
+ readonly fees: io.flow.v0.unions.RatecardFee[];
5526
5134
  readonly origin: io.flow.v0.models.Zone;
5527
5135
  readonly rounding: io.flow.v0.models.Rounding;
5528
5136
  readonly rates: io.flow.v0.models.RatecardRateForm[];
@@ -5599,9 +5207,7 @@ declare namespace io.flow.v0.models {
5599
5207
  interface RedirectAuthorizationDetails {
5600
5208
  readonly id: string;
5601
5209
  readonly payment_redirect_url: string;
5602
- readonly confirmation_details?: {
5603
- discriminator: 'direct_debit';
5604
- } & io.flow.v0.models.DirectDebit;
5210
+ readonly confirmation_details?: io.flow.v0.unions.ConfirmationDetails;
5605
5211
  }
5606
5212
  interface RedirectAuthorizationForm {
5607
5213
  readonly method: string;
@@ -5911,13 +5517,7 @@ declare namespace io.flow.v0.models {
5911
5517
  readonly method: io.flow.v0.enums.PermittedHttpMethod;
5912
5518
  readonly path: string;
5913
5519
  readonly authentication_techniques: io.flow.v0.enums.AuthenticationTechnique[];
5914
- readonly roles: ({
5915
- discriminator: 'flow_user_role';
5916
- value: io.flow.v0.enums.FlowUserRole;
5917
- } | {
5918
- discriminator: 'flow_addon_role';
5919
- value: io.flow.v0.enums.FlowAddonRole;
5920
- })[];
5520
+ readonly roles: io.flow.v0.unions.FlowRole[];
5921
5521
  }
5922
5522
  interface RuleDeleted {
5923
5523
  readonly event_id: string;
@@ -5945,35 +5545,7 @@ declare namespace io.flow.v0.models {
5945
5545
  readonly hour: number;
5946
5546
  readonly minute: number;
5947
5547
  readonly timezone: string;
5948
- readonly types: ({
5949
- discriminator: 'account_transactions_export_type';
5950
- } & io.flow.v0.models.AccountTransactionsExportType | {
5951
- discriminator: 'account_orders_export_type';
5952
- } & io.flow.v0.models.AccountOrdersExportType | {
5953
- discriminator: 'analytics_export_type';
5954
- } & io.flow.v0.models.AnalyticsExportType | {
5955
- discriminator: 'catalog_item_export_type';
5956
- } & io.flow.v0.models.CatalogItemExportType | {
5957
- discriminator: 'experience_export_type';
5958
- } & io.flow.v0.models.ExperienceExportType | {
5959
- discriminator: 'harmonization_overview_export_type';
5960
- } & io.flow.v0.models.HarmonizationOverviewExportType | {
5961
- discriminator: 'harmonization_hs6_export_type';
5962
- } & io.flow.v0.models.HarmonizationHs6ExportType | {
5963
- discriminator: 'harmonization_hs10_export_type';
5964
- } & io.flow.v0.models.HarmonizationHs10ExportType | {
5965
- discriminator: 'unharmonized_item_export_type';
5966
- } & io.flow.v0.models.UnharmonizedItemExportType | {
5967
- discriminator: 'harmonization_landed_cost_export_type';
5968
- } & io.flow.v0.models.HarmonizationLandedCostExportType | {
5969
- discriminator: 'order_export_type';
5970
- } & io.flow.v0.models.OrderExportType | {
5971
- discriminator: 'solidus_product_export_type';
5972
- } & io.flow.v0.models.SolidusProductExportType | {
5973
- discriminator: 'solidus_variant_export_type';
5974
- } & io.flow.v0.models.SolidusVariantExportType | {
5975
- discriminator: 'localized_item_prices_export_type';
5976
- } & io.flow.v0.models.LocalizedItemPricesExportType)[];
5548
+ readonly types: io.flow.v0.unions.ExportType[];
5977
5549
  readonly last_sent_at?: string;
5978
5550
  }
5979
5551
  interface ScheduledExportForm {
@@ -5982,35 +5554,7 @@ declare namespace io.flow.v0.models {
5982
5554
  readonly hour: number;
5983
5555
  readonly minute: number;
5984
5556
  readonly timezone: string;
5985
- readonly types: ({
5986
- discriminator: 'account_transactions_export_type';
5987
- } & io.flow.v0.models.AccountTransactionsExportType | {
5988
- discriminator: 'account_orders_export_type';
5989
- } & io.flow.v0.models.AccountOrdersExportType | {
5990
- discriminator: 'analytics_export_type';
5991
- } & io.flow.v0.models.AnalyticsExportType | {
5992
- discriminator: 'catalog_item_export_type';
5993
- } & io.flow.v0.models.CatalogItemExportType | {
5994
- discriminator: 'experience_export_type';
5995
- } & io.flow.v0.models.ExperienceExportType | {
5996
- discriminator: 'harmonization_overview_export_type';
5997
- } & io.flow.v0.models.HarmonizationOverviewExportType | {
5998
- discriminator: 'harmonization_hs6_export_type';
5999
- } & io.flow.v0.models.HarmonizationHs6ExportType | {
6000
- discriminator: 'harmonization_hs10_export_type';
6001
- } & io.flow.v0.models.HarmonizationHs10ExportType | {
6002
- discriminator: 'unharmonized_item_export_type';
6003
- } & io.flow.v0.models.UnharmonizedItemExportType | {
6004
- discriminator: 'harmonization_landed_cost_export_type';
6005
- } & io.flow.v0.models.HarmonizationLandedCostExportType | {
6006
- discriminator: 'order_export_type';
6007
- } & io.flow.v0.models.OrderExportType | {
6008
- discriminator: 'solidus_product_export_type';
6009
- } & io.flow.v0.models.SolidusProductExportType | {
6010
- discriminator: 'solidus_variant_export_type';
6011
- } & io.flow.v0.models.SolidusVariantExportType | {
6012
- discriminator: 'localized_item_prices_export_type';
6013
- } & io.flow.v0.models.LocalizedItemPricesExportType)[];
5557
+ readonly types: io.flow.v0.unions.ExportType[];
6014
5558
  }
6015
5559
  interface ScheduledPickup {
6016
5560
  readonly day_of_week: io.flow.v0.enums.DayOfWeek;
@@ -6274,11 +5818,7 @@ declare namespace io.flow.v0.models {
6274
5818
  readonly id: string;
6275
5819
  readonly shipping_configuration: io.flow.v0.models.ShippingConfigurationReference;
6276
5820
  readonly region: string;
6277
- readonly centers: ({
6278
- discriminator: 'center';
6279
- } & io.flow.v0.models.Center | {
6280
- discriminator: 'center_reference';
6281
- } & io.flow.v0.models.CenterReference)[];
5821
+ readonly centers: io.flow.v0.unions.ExpandableCenter[];
6282
5822
  readonly tiers: io.flow.v0.models.Tier[];
6283
5823
  readonly query: io.flow.v0.models.Query;
6284
5824
  readonly strategy: io.flow.v0.enums.LaneStrategy;
@@ -6416,13 +5956,7 @@ declare namespace io.flow.v0.models {
6416
5956
  readonly quantity: number;
6417
5957
  readonly price: io.flow.v0.models.ShopifyPrice;
6418
5958
  readonly total: io.flow.v0.models.ShopifyPrice;
6419
- readonly price_source?: {
6420
- discriminator: 'price_book';
6421
- } & io.flow.v0.models.PriceSourcePriceBook | {
6422
- discriminator: 'catalog';
6423
- } & io.flow.v0.models.PriceSourceCatalog | {
6424
- discriminator: 'provided';
6425
- } & io.flow.v0.models.PriceSourceProvided;
5959
+ readonly price_source?: io.flow.v0.unions.PriceSource;
6426
5960
  }
6427
5961
  interface ShopifyLocalCartItemMetadata {
6428
5962
  readonly line_price: io.flow.v0.models.PriceWithBase;
@@ -6466,11 +6000,7 @@ declare namespace io.flow.v0.models {
6466
6000
  readonly lines: io.flow.v0.models.ShopifyLine[];
6467
6001
  readonly prices: io.flow.v0.models.ShopifyPrice[];
6468
6002
  readonly total: io.flow.v0.models.ShopifyPrice;
6469
- readonly allocation_details: ({
6470
- discriminator: 'allocation_line_detail';
6471
- } & io.flow.v0.models.AllocationLineDetail | {
6472
- discriminator: 'allocation_order_detail';
6473
- } & io.flow.v0.models.AllocationOrderDetail)[];
6003
+ readonly allocation_details: io.flow.v0.unions.AllocationDetail[];
6474
6004
  readonly merchant_of_record?: io.flow.v0.enums.OrderMerchantOfRecord;
6475
6005
  readonly merchant_of_record_entity?: io.flow.v0.models.MerchantOfRecordEntity;
6476
6006
  readonly incoterm?: io.flow.v0.enums.Incoterm;
@@ -6550,9 +6080,7 @@ declare namespace io.flow.v0.models {
6550
6080
  readonly range: io.flow.v0.models.DatetimeRange;
6551
6081
  readonly interval_seconds: number;
6552
6082
  readonly total: number;
6553
- readonly buckets: ({
6554
- discriminator: 'shopify_item_event_bucket';
6555
- } & io.flow.v0.models.ShopifyItemEventBucket)[];
6083
+ readonly buckets: io.flow.v0.unions.ShopifyEventBucket[];
6556
6084
  }
6557
6085
  interface ShopifyVariantFlowMetafield {
6558
6086
  readonly prices_item: string;
@@ -6791,11 +6319,7 @@ declare namespace io.flow.v0.models {
6791
6319
  readonly name: string;
6792
6320
  readonly rate: number;
6793
6321
  readonly components: io.flow.v0.enums.LevyComponent[];
6794
- readonly deminimis?: {
6795
- discriminator: 'deminimis_simple';
6796
- } & io.flow.v0.models.DeminimisSimple | {
6797
- discriminator: 'deminimis_per_item';
6798
- } & io.flow.v0.models.DeminimisPerItem;
6322
+ readonly deminimis?: io.flow.v0.unions.Deminimis;
6799
6323
  }
6800
6324
  interface TaxRegistration {
6801
6325
  readonly id: string;
@@ -6870,28 +6394,12 @@ declare namespace io.flow.v0.models {
6870
6394
  readonly id: string;
6871
6395
  readonly position: number;
6872
6396
  readonly query: string;
6873
- readonly outcome: {
6874
- discriminator: 'amount_margin';
6875
- } & io.flow.v0.models.AmountMargin | {
6876
- discriminator: 'at_cost';
6877
- } & io.flow.v0.models.AtCost | {
6878
- discriminator: 'flat_rate';
6879
- } & io.flow.v0.models.FlatRate | {
6880
- discriminator: 'percent_margin';
6881
- } & io.flow.v0.models.PercentMargin;
6397
+ readonly outcome: io.flow.v0.unions.TierRuleOutcome;
6882
6398
  }
6883
6399
  interface TierRuleForm {
6884
6400
  readonly position?: number;
6885
6401
  readonly query: string;
6886
- readonly outcome: {
6887
- discriminator: 'amount_margin_form';
6888
- } & io.flow.v0.models.AmountMarginForm | {
6889
- discriminator: 'flat_rate_form';
6890
- } & io.flow.v0.models.FlatRateForm | {
6891
- discriminator: 'at_cost';
6892
- } & io.flow.v0.models.AtCost | {
6893
- discriminator: 'percent_margin';
6894
- } & io.flow.v0.models.PercentMargin;
6402
+ readonly outcome: io.flow.v0.unions.TierRuleOutcomeForm;
6895
6403
  }
6896
6404
  interface TierRuleVersion {
6897
6405
  readonly id: string;
@@ -7370,6 +6878,10 @@ declare namespace io.flow.v0.unions {
7370
6878
  } & io.flow.v0.models.RateDeleted | {
7371
6879
  discriminator: 'rate_upserted';
7372
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 | {
7373
6885
  discriminator: 'customer_upserted';
7374
6886
  } & io.flow.v0.models.CustomerUpserted | {
7375
6887
  discriminator: 'customer_deleted';
@@ -7554,6 +7066,10 @@ declare namespace io.flow.v0.unions {
7554
7066
  } & io.flow.v0.models.OrganizationDefaultConfigurationsUpserted | {
7555
7067
  discriminator: 'organization_default_configurations_deleted';
7556
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 | {
7557
7073
  discriminator: 'authorization_deleted_v2';
7558
7074
  } & io.flow.v0.models.AuthorizationDeletedV2 | {
7559
7075
  discriminator: 'authorization_status_changed';
@@ -8200,6 +7716,10 @@ export declare type DiscountsForm = io.flow.v0.models.DiscountsForm;
8200
7716
  export declare type Document = io.flow.v0.unions.Document;
8201
7717
  export declare type Duration = io.flow.v0.models.Duration;
8202
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;
8203
7723
  export declare type EconomicTitleLocation = io.flow.v0.enums.EconomicTitleLocation;
8204
7724
  export declare type EmailVerification = io.flow.v0.models.EmailVerification;
8205
7725
  export declare type Environment = io.flow.v0.enums.Environment;
@@ -8712,9 +8232,11 @@ export declare type QuoteSummary = io.flow.v0.models.QuoteSummary;
8712
8232
  export declare type QuoteVersion = io.flow.v0.models.QuoteVersion;
8713
8233
  export declare type Rate = io.flow.v0.models.Rate;
8714
8234
  export declare type RateDeleted = io.flow.v0.models.RateDeleted;
8235
+ export declare type RateDeletedV3 = io.flow.v0.models.RateDeletedV3;
8715
8236
  export declare type RateForm = io.flow.v0.models.RateForm;
8716
8237
  export declare type RateType = io.flow.v0.enums.RateType;
8717
8238
  export declare type RateUpserted = io.flow.v0.models.RateUpserted;
8239
+ export declare type RateUpsertedV3 = io.flow.v0.models.RateUpsertedV3;
8718
8240
  export declare type RateVersion = io.flow.v0.models.RateVersion;
8719
8241
  export declare type Ratecard = io.flow.v0.models.Ratecard;
8720
8242
  export declare type RatecardCarrierSummary = io.flow.v0.models.RatecardCarrierSummary;