@flowio/types 11.11.0 → 11.12.0

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.
@@ -1042,6 +1042,419 @@ declare namespace io.flow.experience.v0.unions {
1042
1042
  };
1043
1043
  type Promotion = io.flow.experience.v0.models.FreeShipping | io.flow.experience.v0.models.Discount;
1044
1044
  }
1045
+ declare namespace io.flow.shopify.xborder.v0.enums {
1046
+ type ShopifyOrderCancelReason = 'customer' | 'fraud' | 'inventory' | 'declined' | 'other';
1047
+ type ShopifyOrderDiscountAllocationMethod = 'across' | 'each' | 'one';
1048
+ type ShopifyOrderDiscountApplicationTargetSelection = 'all' | 'entitled' | 'explicit';
1049
+ type ShopifyOrderDiscountApplicationTargetType = 'line_item' | 'shipping_line';
1050
+ type ShopifyOrderDiscountApplicationType = 'automatic' | 'discount_code' | 'manual' | 'script';
1051
+ type ShopifyOrderDiscountApplicationValueType = 'fixed_amount' | 'percentage';
1052
+ type ShopifyOrderDiscountType = 'fixed_amount' | 'percentage' | 'shipping';
1053
+ type ShopifyOrderFinancialStatusType = 'pending' | 'authorized' | 'partially_paid' | 'paid' | 'partially_refunded' | 'refunded' | 'voided';
1054
+ type ShopifyOrderFulfillmentShipmentStatus = 'label_printed' | 'label_purchased' | 'attempted_delivery' | 'ready_for_pickup' | 'confirmed' | 'in_transit' | 'out_for_delivery' | 'delivered' | 'failure';
1055
+ type ShopifyOrderFulfillmentStatus = 'pending' | 'open' | 'success' | 'cancelled' | 'error' | 'failure';
1056
+ type ShopifyOrderFulfillmentStatusType = 'fulfilled' | 'null' | 'partial';
1057
+ type ShopifyOrderInventoryBehaviour = 'bypass' | 'decrement_ignoring_policy' | 'decrement_obeying_policy';
1058
+ type ShopifyOrderKindType = 'authorization' | 'capture' | 'sale' | 'void' | 'refund';
1059
+ type ShopifyOrderProcessingMethodType = 'checkout' | 'direct' | 'manual' | 'offsite' | 'express';
1060
+ type ShopifyOrderRestockType = 'no_restock' | 'cancel' | 'return';
1061
+ type ShopifyOrderStatusType = 'open' | 'closed' | 'cancelled' | 'any';
1062
+ type ShopifyOrderTransactionErrorCode = 'incorrect_number' | 'invalid_number' | 'invalid_expiry_date' | 'invalid_cvc' | 'expired_card' | 'incorrect_cvc' | 'incorrect_zip' | 'incorrect_address' | 'card_declined' | 'processing_error' | 'call_issuer' | 'pick_up_card';
1063
+ type ShopifyOrderTransactionStatus = 'pending' | 'failure' | 'success' | 'error';
1064
+ type ShopifyOrderValueType = 'string' | 'integer';
1065
+ type ShopifyWebhookFormat = 'json' | 'xml';
1066
+ type ShopifyWebhookTopic = 'orders/cancelled' | 'orders/create' | 'orders/fulfilled' | 'orders/paid' | 'orders/partially_fulfilled' | 'orders/updated' | 'orders/delete' | 'orders/edited' | 'refunds/create' | 'fulfillment_events/create' | 'fulfillment_events/delete' | 'themes/update';
1067
+ }
1068
+ declare namespace io.flow.shopify.xborder.v0.models {
1069
+ interface ShopifyOrder {
1070
+ readonly id: number;
1071
+ readonly order_number: number;
1072
+ readonly billing_address?: io.flow.shopify.xborder.v0.models.ShopifyOrderAddress;
1073
+ readonly browser_ip?: string;
1074
+ readonly buyer_accepts_marketing: boolean;
1075
+ readonly cancel_reason?: io.flow.shopify.xborder.v0.enums.ShopifyOrderCancelReason;
1076
+ readonly cancelled_at?: string;
1077
+ readonly cart_token?: string;
1078
+ readonly client_details: io.flow.shopify.xborder.v0.models.ShopifyOrderClientDetail;
1079
+ readonly closed_at?: string;
1080
+ readonly created_at: string;
1081
+ readonly currency: string;
1082
+ readonly total_discounts_set: io.flow.shopify.xborder.v0.models.ShopifyOrderMoneySet;
1083
+ readonly current_total_discounts_set: io.flow.shopify.xborder.v0.models.ShopifyOrderMoneySet;
1084
+ readonly total_duties_set?: io.flow.shopify.xborder.v0.models.ShopifyOrderMoneySet;
1085
+ readonly current_total_duties_set?: io.flow.shopify.xborder.v0.models.ShopifyOrderMoneySet;
1086
+ readonly original_total_duties_set?: io.flow.shopify.xborder.v0.models.ShopifyOrderMoneySet;
1087
+ readonly total_price_set: io.flow.shopify.xborder.v0.models.ShopifyOrderMoneySet;
1088
+ readonly current_total_price_set: io.flow.shopify.xborder.v0.models.ShopifyOrderMoneySet;
1089
+ readonly subtotal_price_set: io.flow.shopify.xborder.v0.models.ShopifyOrderMoneySet;
1090
+ readonly current_subtotal_price_set: io.flow.shopify.xborder.v0.models.ShopifyOrderMoneySet;
1091
+ readonly total_tax_set: io.flow.shopify.xborder.v0.models.ShopifyOrderMoneySet;
1092
+ readonly current_total_tax_set: io.flow.shopify.xborder.v0.models.ShopifyOrderMoneySet;
1093
+ readonly total_line_items_price_set: io.flow.shopify.xborder.v0.models.ShopifyOrderMoneySet;
1094
+ readonly customer: io.flow.shopify.xborder.v0.models.ShopifyOrderCustomer;
1095
+ readonly customer_locale?: string;
1096
+ readonly discount_applications: io.flow.shopify.xborder.v0.models.ShopifyOrderDiscountApplication[];
1097
+ readonly discount_codes: io.flow.shopify.xborder.v0.models.ShopifyOrderDiscountCode[];
1098
+ readonly email?: string;
1099
+ readonly financial_status: io.flow.shopify.xborder.v0.enums.ShopifyOrderFinancialStatusType;
1100
+ readonly fulfillments: io.flow.shopify.xborder.v0.models.ShopifyOrderFulfillment[];
1101
+ readonly fulfillment_status?: io.flow.shopify.xborder.v0.enums.ShopifyOrderFulfillmentStatusType;
1102
+ readonly landing_site?: string;
1103
+ readonly line_items: io.flow.shopify.xborder.v0.models.ShopifyOrderLineItem[];
1104
+ readonly location_id?: number;
1105
+ readonly name: string;
1106
+ readonly note?: string;
1107
+ readonly note_attributes: io.flow.shopify.xborder.v0.models.ShopifyOrderAttribute[];
1108
+ readonly number?: number;
1109
+ readonly payment_gateway_names: string[];
1110
+ readonly processed_at?: string;
1111
+ readonly processing_method?: io.flow.shopify.xborder.v0.enums.ShopifyOrderProcessingMethodType;
1112
+ readonly referring_site?: string;
1113
+ readonly refunds: io.flow.shopify.xborder.v0.models.ShopifyOrderRefund[];
1114
+ readonly shipping_address?: io.flow.shopify.xborder.v0.models.ShopifyOrderAddress;
1115
+ readonly shipping_lines: io.flow.shopify.xborder.v0.models.ShopifyOrderShippingLine[];
1116
+ readonly source_name?: string;
1117
+ readonly tags?: string;
1118
+ readonly tax_lines: io.flow.shopify.xborder.v0.models.ShopifyOrderTaxLine[];
1119
+ readonly taxes_included: boolean;
1120
+ readonly token?: string;
1121
+ readonly total_weight?: number;
1122
+ readonly updated_at?: string;
1123
+ readonly user_id?: number;
1124
+ readonly order_status_url?: string;
1125
+ readonly inventory_behaviour?: io.flow.shopify.xborder.v0.enums.ShopifyOrderInventoryBehaviour;
1126
+ readonly gateway?: string;
1127
+ readonly transactions?: io.flow.shopify.xborder.v0.models.ShopifyOrderTransaction[];
1128
+ readonly send_receipt?: boolean;
1129
+ readonly metafields?: io.flow.shopify.xborder.v0.models.ShopifyOrderMetafield[];
1130
+ }
1131
+ interface ShopifyOrderAddress {
1132
+ readonly id?: number;
1133
+ readonly address1?: string;
1134
+ readonly address2?: string;
1135
+ readonly city?: string;
1136
+ readonly company?: string;
1137
+ readonly country?: string;
1138
+ readonly country_code?: string;
1139
+ readonly default?: boolean;
1140
+ readonly first_name?: string;
1141
+ readonly last_name?: string;
1142
+ readonly latitude?: number;
1143
+ readonly longitude?: number;
1144
+ readonly name?: string;
1145
+ readonly phone?: string;
1146
+ readonly province?: string;
1147
+ readonly province_code?: string;
1148
+ readonly zip?: string;
1149
+ }
1150
+ interface ShopifyOrderAttribute {
1151
+ readonly name: string;
1152
+ readonly value: string;
1153
+ }
1154
+ interface ShopifyOrderClientDetail {
1155
+ readonly accept_language?: string;
1156
+ readonly browser_height?: number;
1157
+ readonly browser_ip?: string;
1158
+ readonly browser_width?: number;
1159
+ readonly session_hash?: string;
1160
+ readonly user_agent?: string;
1161
+ }
1162
+ interface ShopifyOrderCustomer {
1163
+ readonly id?: number;
1164
+ readonly email?: string;
1165
+ readonly accepts_marketing?: boolean;
1166
+ readonly created_at?: string;
1167
+ readonly updated_at?: string;
1168
+ readonly first_name?: string;
1169
+ readonly last_name?: string;
1170
+ readonly orders_count?: number;
1171
+ readonly state?: string;
1172
+ readonly total_spent?: string;
1173
+ readonly last_order_id?: number;
1174
+ readonly note?: string;
1175
+ readonly verified_email?: boolean;
1176
+ readonly multipass_identifier?: string;
1177
+ readonly tax_exempt?: boolean;
1178
+ readonly tax_exemptions?: any[];
1179
+ readonly phone?: string;
1180
+ readonly tags?: string;
1181
+ readonly last_order_name?: string;
1182
+ readonly currency?: string;
1183
+ readonly addresses?: io.flow.shopify.xborder.v0.models.ShopifyOrderAddress;
1184
+ readonly default_address?: io.flow.shopify.xborder.v0.models.ShopifyOrderAddress;
1185
+ }
1186
+ interface ShopifyOrderDiscountAllocation {
1187
+ readonly amount: string;
1188
+ readonly discount_application_index: number;
1189
+ readonly amount_set: io.flow.shopify.xborder.v0.models.ShopifyOrderMoneySet;
1190
+ }
1191
+ interface ShopifyOrderDiscountApplication {
1192
+ readonly type: io.flow.shopify.xborder.v0.enums.ShopifyOrderDiscountApplicationType;
1193
+ readonly allocation_method: io.flow.shopify.xborder.v0.enums.ShopifyOrderDiscountAllocationMethod;
1194
+ readonly code?: string;
1195
+ readonly description?: string;
1196
+ readonly target_selection: io.flow.shopify.xborder.v0.enums.ShopifyOrderDiscountApplicationTargetSelection;
1197
+ readonly target_type: io.flow.shopify.xborder.v0.enums.ShopifyOrderDiscountApplicationTargetType;
1198
+ readonly title?: string;
1199
+ readonly value: string;
1200
+ readonly value_type: io.flow.shopify.xborder.v0.enums.ShopifyOrderDiscountApplicationValueType;
1201
+ }
1202
+ interface ShopifyOrderDiscountCode {
1203
+ readonly amount: string;
1204
+ readonly code: string;
1205
+ readonly type: io.flow.shopify.xborder.v0.enums.ShopifyOrderDiscountType;
1206
+ }
1207
+ interface ShopifyOrderDuty {
1208
+ readonly id: string;
1209
+ readonly harmonized_system_code: string;
1210
+ readonly country_code_of_origin: string;
1211
+ readonly presentment_money: io.flow.shopify.xborder.v0.models.ShopifyOrderMoney;
1212
+ readonly shop_money: io.flow.shopify.xborder.v0.models.ShopifyOrderMoney;
1213
+ readonly tax_lines: io.flow.shopify.xborder.v0.models.ShopifyOrderTaxLine[];
1214
+ }
1215
+ interface ShopifyOrderFulfillment {
1216
+ readonly created_at?: string;
1217
+ readonly id?: number;
1218
+ readonly line_items: io.flow.shopify.xborder.v0.models.ShopifyOrderLineItem[];
1219
+ readonly location_id: number;
1220
+ readonly name: string;
1221
+ readonly notify_customer?: boolean;
1222
+ readonly order_id?: number;
1223
+ readonly receipt?: any;
1224
+ readonly service: string;
1225
+ readonly shipment_status?: io.flow.shopify.xborder.v0.enums.ShopifyOrderFulfillmentShipmentStatus;
1226
+ readonly status?: io.flow.shopify.xborder.v0.enums.ShopifyOrderFulfillmentStatus;
1227
+ readonly tracking_company?: string;
1228
+ readonly tracking_number?: string;
1229
+ readonly tracking_numbers?: string[];
1230
+ readonly tracking_urls?: string[];
1231
+ readonly updated_at?: string;
1232
+ readonly variant_inventory_management?: string;
1233
+ }
1234
+ interface ShopifyOrderLineItem {
1235
+ readonly fulfillable_quantity?: number;
1236
+ readonly fulfillment_service: string;
1237
+ readonly fulfillment_status?: io.flow.shopify.xborder.v0.enums.ShopifyOrderFulfillmentStatusType;
1238
+ readonly grams?: number;
1239
+ readonly id: number;
1240
+ readonly price?: string;
1241
+ readonly price_set?: io.flow.shopify.xborder.v0.models.ShopifyOrderMoneySet;
1242
+ readonly product_id?: number;
1243
+ readonly quantity: number;
1244
+ readonly requires_shipping: boolean;
1245
+ readonly sku?: string;
1246
+ readonly title?: string;
1247
+ readonly variant_id?: number;
1248
+ readonly variant_title?: string;
1249
+ readonly vendor?: string;
1250
+ readonly name?: string;
1251
+ readonly gift_card: boolean;
1252
+ readonly properties: io.flow.shopify.xborder.v0.models.ShopifyOrderProperty[];
1253
+ readonly taxable: boolean;
1254
+ readonly tax_lines: io.flow.shopify.xborder.v0.models.ShopifyOrderTaxLine[];
1255
+ readonly tip_payment_gateway?: string;
1256
+ readonly tip_payment_method?: string;
1257
+ readonly total_discount?: string;
1258
+ readonly total_discount_set?: io.flow.shopify.xborder.v0.models.ShopifyOrderMoneySet;
1259
+ readonly discount_allocations?: io.flow.shopify.xborder.v0.models.ShopifyOrderDiscountAllocation[];
1260
+ readonly origin_location?: io.flow.shopify.xborder.v0.models.ShopifyOrderOriginLocation;
1261
+ readonly variant_inventory_management?: string;
1262
+ readonly product_exists?: boolean;
1263
+ readonly duties: io.flow.shopify.xborder.v0.models.ShopifyOrderDuty[];
1264
+ }
1265
+ interface ShopifyOrderMetafield {
1266
+ readonly id: number;
1267
+ readonly key: string;
1268
+ readonly namespace: string;
1269
+ readonly value: string;
1270
+ readonly value_type: io.flow.shopify.xborder.v0.enums.ShopifyOrderValueType;
1271
+ readonly description?: string;
1272
+ readonly owner_id: number;
1273
+ readonly owner_resource: string;
1274
+ }
1275
+ interface ShopifyOrderMetafieldForm {
1276
+ readonly key: string;
1277
+ readonly namespace: string;
1278
+ readonly value: string;
1279
+ readonly value_type: io.flow.shopify.xborder.v0.enums.ShopifyOrderValueType;
1280
+ readonly description?: string;
1281
+ }
1282
+ interface ShopifyOrderMoney {
1283
+ readonly amount: number;
1284
+ readonly currency_code: string;
1285
+ }
1286
+ interface ShopifyOrderMoneySet {
1287
+ readonly shop_money: io.flow.shopify.xborder.v0.models.ShopifyOrderMoney;
1288
+ readonly presentment_money: io.flow.shopify.xborder.v0.models.ShopifyOrderMoney;
1289
+ }
1290
+ interface ShopifyOrderOriginLocation {
1291
+ readonly id: number;
1292
+ readonly country_code: string;
1293
+ readonly province_code: string;
1294
+ readonly name: string;
1295
+ readonly address1: string;
1296
+ readonly address2: string;
1297
+ readonly city: string;
1298
+ readonly zip: string;
1299
+ }
1300
+ interface ShopifyOrderPaymentDetail {
1301
+ readonly avs_result_code?: string;
1302
+ readonly credit_card_bin?: string;
1303
+ readonly credit_card_company: string;
1304
+ readonly credit_card_number: string;
1305
+ readonly cvv_result_code?: string;
1306
+ }
1307
+ interface ShopifyOrderProperty {
1308
+ readonly name: string;
1309
+ readonly value: any;
1310
+ }
1311
+ interface ShopifyOrderRefund {
1312
+ readonly id: number;
1313
+ readonly order_id: number;
1314
+ readonly created_at: string;
1315
+ readonly processed_at: string;
1316
+ readonly note?: string;
1317
+ readonly refund_line_items?: io.flow.shopify.xborder.v0.models.ShopifyOrderRefundLineItem[];
1318
+ readonly restock?: boolean;
1319
+ readonly transactions?: io.flow.shopify.xborder.v0.models.ShopifyOrderTransaction[];
1320
+ readonly user_id?: number;
1321
+ }
1322
+ interface ShopifyOrderRefundLineItem {
1323
+ readonly id: number;
1324
+ readonly line_item: io.flow.shopify.xborder.v0.models.ShopifyOrderLineItem;
1325
+ readonly line_item_id: number;
1326
+ readonly quantity: number;
1327
+ readonly restock_type: io.flow.shopify.xborder.v0.enums.ShopifyOrderRestockType;
1328
+ readonly location_id?: number;
1329
+ readonly subtotal?: number;
1330
+ readonly total_tax?: number;
1331
+ }
1332
+ interface ShopifyOrderShippingLine {
1333
+ readonly code?: string;
1334
+ readonly price: string;
1335
+ readonly source: string;
1336
+ readonly title: string;
1337
+ readonly tax_lines: io.flow.shopify.xborder.v0.models.ShopifyOrderTaxLine[];
1338
+ readonly carrier_identifier?: string;
1339
+ readonly requested_fulfillment_service_id?: string;
1340
+ readonly price_set: io.flow.shopify.xborder.v0.models.ShopifyOrderMoneySet;
1341
+ readonly discounted_price_set: io.flow.shopify.xborder.v0.models.ShopifyOrderMoneySet;
1342
+ }
1343
+ interface ShopifyOrderTaxLine {
1344
+ readonly price_set: io.flow.shopify.xborder.v0.models.ShopifyOrderMoneySet;
1345
+ readonly rate: number;
1346
+ readonly title: string;
1347
+ }
1348
+ interface ShopifyOrderTransaction {
1349
+ readonly id: number;
1350
+ readonly order_id: number;
1351
+ readonly amount: number;
1352
+ readonly kind: io.flow.shopify.xborder.v0.enums.ShopifyOrderKindType;
1353
+ readonly gateway: string;
1354
+ readonly currency: string;
1355
+ readonly status: io.flow.shopify.xborder.v0.enums.ShopifyOrderTransactionStatus;
1356
+ readonly payment_details?: io.flow.shopify.xborder.v0.models.ShopifyOrderPaymentDetail;
1357
+ readonly receipt: any;
1358
+ readonly authorization?: string;
1359
+ readonly created_at: string;
1360
+ readonly device_id?: number;
1361
+ readonly gift_card_id?: number;
1362
+ readonly source_name: string;
1363
+ readonly error_code?: io.flow.shopify.xborder.v0.enums.ShopifyOrderTransactionErrorCode;
1364
+ readonly test: boolean;
1365
+ readonly parent_id?: number;
1366
+ readonly user_id?: number;
1367
+ }
1368
+ interface ShopifyOrderWrapper {
1369
+ readonly order: any;
1370
+ }
1371
+ interface ShopifyOrdersWrapper {
1372
+ readonly orders: io.flow.shopify.xborder.v0.models.ShopifyOrder[];
1373
+ }
1374
+ interface ShopifyWebhookOrder {
1375
+ readonly id: number;
1376
+ readonly order_number: number;
1377
+ readonly billing_address?: io.flow.shopify.xborder.v0.models.ShopifyOrderAddress;
1378
+ readonly browser_ip?: string;
1379
+ readonly buyer_accepts_marketing: boolean;
1380
+ readonly cancel_reason?: io.flow.shopify.xborder.v0.enums.ShopifyOrderCancelReason;
1381
+ readonly cancelled_at?: string;
1382
+ readonly cart_token?: string;
1383
+ readonly client_details?: io.flow.shopify.xborder.v0.models.ShopifyOrderClientDetail;
1384
+ readonly closed_at?: string;
1385
+ readonly created_at: string;
1386
+ readonly currency: string;
1387
+ readonly total_discounts_set: io.flow.shopify.xborder.v0.models.ShopifyOrderMoneySet;
1388
+ readonly total_duties_set?: io.flow.shopify.xborder.v0.models.ShopifyOrderMoneySet;
1389
+ readonly original_total_duties_set?: io.flow.shopify.xborder.v0.models.ShopifyOrderMoneySet;
1390
+ readonly total_price_set: io.flow.shopify.xborder.v0.models.ShopifyOrderMoneySet;
1391
+ readonly subtotal_price_set: io.flow.shopify.xborder.v0.models.ShopifyOrderMoneySet;
1392
+ readonly total_tax_set: io.flow.shopify.xborder.v0.models.ShopifyOrderMoneySet;
1393
+ readonly total_line_items_price_set: io.flow.shopify.xborder.v0.models.ShopifyOrderMoneySet;
1394
+ readonly customer: io.flow.shopify.xborder.v0.models.ShopifyOrderCustomer;
1395
+ readonly customer_locale?: string;
1396
+ readonly discount_applications: io.flow.shopify.xborder.v0.models.ShopifyOrderDiscountApplication[];
1397
+ readonly discount_codes: io.flow.shopify.xborder.v0.models.ShopifyOrderDiscountCode[];
1398
+ readonly email?: string;
1399
+ readonly financial_status: io.flow.shopify.xborder.v0.enums.ShopifyOrderFinancialStatusType;
1400
+ readonly fulfillments: io.flow.shopify.xborder.v0.models.ShopifyOrderFulfillment[];
1401
+ readonly fulfillment_status?: io.flow.shopify.xborder.v0.enums.ShopifyOrderFulfillmentStatusType;
1402
+ readonly landing_site?: string;
1403
+ readonly line_items: io.flow.shopify.xborder.v0.models.ShopifyOrderLineItem[];
1404
+ readonly location_id?: number;
1405
+ readonly name: string;
1406
+ readonly note?: string;
1407
+ readonly note_attributes: io.flow.shopify.xborder.v0.models.ShopifyOrderAttribute[];
1408
+ readonly number?: number;
1409
+ readonly payment_gateway_names: string[];
1410
+ readonly processed_at?: string;
1411
+ readonly processing_method?: io.flow.shopify.xborder.v0.enums.ShopifyOrderProcessingMethodType;
1412
+ readonly referring_site?: string;
1413
+ readonly refunds: io.flow.shopify.xborder.v0.models.ShopifyOrderRefund[];
1414
+ readonly shipping_address?: io.flow.shopify.xborder.v0.models.ShopifyOrderAddress;
1415
+ readonly shipping_lines?: io.flow.shopify.xborder.v0.models.ShopifyOrderShippingLine[];
1416
+ readonly source_name?: string;
1417
+ readonly tags?: string;
1418
+ readonly tax_lines: io.flow.shopify.xborder.v0.models.ShopifyOrderTaxLine[];
1419
+ readonly taxes_included: boolean;
1420
+ readonly token?: string;
1421
+ readonly total_weight?: number;
1422
+ readonly updated_at?: string;
1423
+ readonly user_id?: number;
1424
+ readonly order_status_url?: string;
1425
+ readonly inventory_behaviour?: io.flow.shopify.xborder.v0.enums.ShopifyOrderInventoryBehaviour;
1426
+ readonly gateway?: string;
1427
+ readonly transactions?: io.flow.shopify.xborder.v0.models.ShopifyOrderTransaction[];
1428
+ readonly send_receipt?: boolean;
1429
+ readonly metafields?: io.flow.shopify.xborder.v0.models.ShopifyOrderMetafield[];
1430
+ }
1431
+ interface ShopifyWebhookRequest {
1432
+ readonly topic: io.flow.shopify.xborder.v0.enums.ShopifyWebhookTopic;
1433
+ readonly address: string;
1434
+ readonly format: io.flow.shopify.xborder.v0.enums.ShopifyWebhookFormat;
1435
+ }
1436
+ interface ShopifyWebhookRequestWrapper {
1437
+ readonly webhook: io.flow.shopify.xborder.v0.models.ShopifyWebhookRequest;
1438
+ }
1439
+ interface ShopifyWebhookResponse {
1440
+ readonly id: number;
1441
+ readonly address: string;
1442
+ readonly topic: io.flow.shopify.xborder.v0.enums.ShopifyWebhookTopic;
1443
+ readonly created_at: string;
1444
+ readonly updated_at: string;
1445
+ readonly format: io.flow.shopify.xborder.v0.enums.ShopifyWebhookFormat;
1446
+ readonly fields: any[];
1447
+ readonly metafield_namespaces: any[];
1448
+ readonly api_version: string;
1449
+ readonly private_metafield_namespaces: any[];
1450
+ }
1451
+ interface ShopifyWebhookResponseWrapper {
1452
+ readonly webhook: io.flow.shopify.xborder.v0.models.ShopifyWebhookResponse;
1453
+ }
1454
+ interface ShopifyWebhooksResponseWrapper {
1455
+ readonly webhooks: io.flow.shopify.xborder.v0.models.ShopifyWebhookResponse[];
1456
+ }
1457
+ }
1045
1458
  declare namespace io.flow.reference.v0.enums {
1046
1459
  type PaymentMethodCapability = 'credit' | 'debit';
1047
1460
  type PaymentMethodType = 'card' | 'online' | 'offline';
@@ -1585,445 +1998,117 @@ declare namespace io.flow.RESERVED_WORD_return.v0.models {
1585
1998
  readonly destination?: io.flow.fulfillment.v0.models.ShippingAddress;
1586
1999
  readonly key?: string;
1587
2000
  readonly origin?: io.flow.fulfillment.v0.models.ShippingAddress;
1588
- readonly center_key?: string;
1589
- readonly source?: io.flow.RESERVED_WORD_return.v0.unions.ReturnSource;
1590
- readonly tracking_status?: io.flow.RESERVED_WORD_return.v0.enums.ReturnTrackingStatus;
1591
- readonly tracking_status_timestamp?: string;
1592
- readonly carrier_tracking_number?: string;
1593
- }
1594
- interface ReturnItemReference {
1595
- readonly number: string;
1596
- }
1597
- interface ReturnLineItem {
1598
- readonly item_number: string;
1599
- readonly order_number?: string;
1600
- readonly quantity: number;
1601
- readonly reason?: io.flow.RESERVED_WORD_return.v0.models.ReturnReason;
1602
- readonly notes?: string;
1603
- readonly attributes?: Record<string, string>;
1604
- }
1605
- interface ReturnOrderReference {
1606
- readonly number: string;
1607
- }
1608
- interface ReturnReason {
1609
- readonly name: string;
1610
- }
1611
- interface ReturnReasonForm {
1612
- readonly name?: string;
1613
- }
1614
- interface ReturnReasonPutForm {
1615
- readonly name?: string;
1616
- }
1617
- interface ReturnSourceExternalVendor {
1618
- readonly discriminator: 'return_source_external_vendor';
1619
- readonly key: string;
1620
- }
1621
- interface ReturnSourceFlow {
1622
- readonly discriminator: 'return_source_flow';
1623
- readonly attributes?: Record<string, string>;
1624
- }
1625
- interface ReturnVersion {
1626
- readonly id: string;
1627
- readonly timestamp: string;
1628
- readonly type: io.flow.common.v0.enums.ChangeType;
1629
- readonly return: io.flow.RESERVED_WORD_return.v0.models.Return;
1630
- }
1631
- }
1632
- declare namespace io.flow.RESERVED_WORD_return.v0.unions {
1633
- type ReturnSource = io.flow.RESERVED_WORD_return.v0.models.ReturnSourceFlow | io.flow.RESERVED_WORD_return.v0.models.ReturnSourceExternalVendor;
1634
- }
1635
- declare namespace io.flow.harmonization.engine.internal.v0.enums {
1636
- type StatisticType = 'time-to-classify' | 'time-to-classify-aggregated' | 'rate-source' | 'rate-freshness';
1637
- }
1638
- declare namespace io.flow.harmonization.engine.internal.v0.models {
1639
- interface ClassificationRequeueRequest {
1640
- readonly message: string;
1641
- }
1642
- interface RateDestinationFreshnessSummary {
1643
- readonly destination: io.flow.reference.v0.models.Country;
1644
- readonly percentage_updated: number;
1645
- }
1646
- interface RateFreshnessSummary {
1647
- readonly discriminator: 'rate-freshness';
1648
- readonly key: string;
1649
- readonly updated_since: string;
1650
- readonly destination_freshness_summaries: io.flow.harmonization.engine.internal.v0.models.RateDestinationFreshnessSummary[];
1651
- }
1652
- interface RateSourceCompositionSummary {
1653
- readonly rate_name: string;
1654
- readonly percentage_composition: number;
1655
- }
1656
- interface RateSourceSummary {
1657
- readonly discriminator: 'rate-source';
1658
- readonly key: string;
1659
- readonly destination: io.flow.reference.v0.models.Country;
1660
- readonly rate_source_composition_summaries: io.flow.harmonization.engine.internal.v0.models.RateSourceCompositionSummary[];
1661
- }
1662
- interface RequeueRequestForm {
1663
- readonly product_ids?: string[];
1664
- readonly hs6_codes?: string[];
1665
- readonly preferred_item_type?: string;
1666
- readonly ignore_classification_status: boolean;
1667
- readonly select_mismatching_item_types: boolean;
1668
- }
1669
- interface TimeToClassify {
1670
- readonly discriminator: 'time-to-classify';
1671
- readonly key: string;
1672
- readonly from: string;
1673
- readonly to: string;
1674
- readonly organization_id: string;
1675
- readonly average_hours: number;
1676
- readonly median_hours: number;
1677
- readonly percentile_75_hours: number;
1678
- readonly percentile_90_hours: number;
1679
- readonly percentile_99_hours: number;
1680
- }
1681
- interface TimeToClassifyAggregated {
1682
- readonly discriminator: 'time-to-classify-aggregated';
1683
- readonly key: string;
1684
- readonly from: string;
1685
- readonly to: string;
1686
- readonly average_hours: number;
1687
- readonly median_hours: number;
1688
- readonly percentile_75_hours: number;
1689
- readonly percentile_90_hours: number;
1690
- readonly percentile_99_hours: number;
1691
- }
1692
- interface UnclassifiedProductsPurgeRequest {
1693
- readonly num_deleted_products: Record<string, number>;
1694
- }
1695
- }
1696
- declare namespace io.flow.harmonization.engine.internal.v0.unions {
1697
- type InternalHarmonizationStatistic = io.flow.harmonization.engine.internal.v0.models.TimeToClassify | io.flow.harmonization.engine.internal.v0.models.TimeToClassifyAggregated | io.flow.harmonization.engine.internal.v0.models.RateSourceSummary | io.flow.harmonization.engine.internal.v0.models.RateFreshnessSummary;
1698
- }
1699
- declare namespace io.flow.shopify.xborder.integration.test.v0.enums {
1700
- type ShopifyOrderCancelReason = 'customer' | 'fraud' | 'inventory' | 'declined' | 'other';
1701
- type ShopifyOrderDiscountAllocationMethod = 'across' | 'each' | 'one';
1702
- type ShopifyOrderDiscountApplicationTargetSelection = 'all' | 'entitled' | 'explicit';
1703
- type ShopifyOrderDiscountApplicationTargetType = 'line_item' | 'shipping_line';
1704
- type ShopifyOrderDiscountApplicationType = 'automatic' | 'discount_code' | 'manual' | 'script';
1705
- type ShopifyOrderDiscountApplicationValueType = 'fixed_amount' | 'percentage';
1706
- type ShopifyOrderDiscountType = 'fixed_amount' | 'percentage' | 'shipping';
1707
- type ShopifyOrderFinancialStatusType = 'pending' | 'authorized' | 'partially_paid' | 'paid' | 'partially_refunded' | 'refunded' | 'voided';
1708
- type ShopifyOrderFulfillmentShipmentStatus = 'label_printed' | 'label_purchased' | 'attempted_delivery' | 'ready_for_pickup' | 'confirmed' | 'in_transit' | 'out_for_delivery' | 'delivered' | 'failure';
1709
- type ShopifyOrderFulfillmentStatus = 'pending' | 'open' | 'success' | 'cancelled' | 'error' | 'failure';
1710
- type ShopifyOrderFulfillmentStatusType = 'fulfilled' | 'null' | 'partial';
1711
- type ShopifyOrderInventoryBehaviour = 'bypass' | 'decrement_ignoring_policy' | 'decrement_obeying_policy';
1712
- type ShopifyOrderKindType = 'authorization' | 'capture' | 'sale' | 'void' | 'refund';
1713
- type ShopifyOrderProcessingMethodType = 'checkout' | 'direct' | 'manual' | 'offsite' | 'express';
1714
- type ShopifyOrderRestockType = 'no_restock' | 'cancel' | 'return';
1715
- type ShopifyOrderStatusType = 'open' | 'closed' | 'cancelled' | 'any';
1716
- type ShopifyOrderTransactionErrorCode = 'incorrect_number' | 'invalid_number' | 'invalid_expiry_date' | 'invalid_cvc' | 'expired_card' | 'incorrect_cvc' | 'incorrect_zip' | 'incorrect_address' | 'card_declined' | 'processing_error' | 'call_issuer' | 'pick_up_card';
1717
- type ShopifyOrderTransactionStatus = 'pending' | 'failure' | 'success' | 'error';
1718
- type ShopifyOrderValueType = 'string' | 'integer';
1719
- }
1720
- declare namespace io.flow.shopify.xborder.integration.test.v0.models {
1721
- interface ShopifyOrder {
1722
- readonly id: number;
1723
- readonly order_number: number;
1724
- readonly billing_address?: io.flow.shopify.xborder.integration.test.v0.models.ShopifyOrderAddress;
1725
- readonly browser_ip?: string;
1726
- readonly buyer_accepts_marketing: boolean;
1727
- readonly cancel_reason?: io.flow.shopify.xborder.integration.test.v0.enums.ShopifyOrderCancelReason;
1728
- readonly cancelled_at?: string;
1729
- readonly cart_token?: string;
1730
- readonly client_details: io.flow.shopify.xborder.integration.test.v0.models.ShopifyOrderClientDetail;
1731
- readonly closed_at?: string;
1732
- readonly created_at: string;
1733
- readonly currency: string;
1734
- readonly total_discounts_set: io.flow.shopify.xborder.integration.test.v0.models.ShopifyOrderMoneySet;
1735
- readonly current_total_discounts_set: io.flow.shopify.xborder.integration.test.v0.models.ShopifyOrderMoneySet;
1736
- readonly total_duties_set?: io.flow.shopify.xborder.integration.test.v0.models.ShopifyOrderMoneySet;
1737
- readonly current_total_duties_set?: io.flow.shopify.xborder.integration.test.v0.models.ShopifyOrderMoneySet;
1738
- readonly original_total_duties_set?: io.flow.shopify.xborder.integration.test.v0.models.ShopifyOrderMoneySet;
1739
- readonly total_price_set: io.flow.shopify.xborder.integration.test.v0.models.ShopifyOrderMoneySet;
1740
- readonly current_total_price_set: io.flow.shopify.xborder.integration.test.v0.models.ShopifyOrderMoneySet;
1741
- readonly subtotal_price_set: io.flow.shopify.xborder.integration.test.v0.models.ShopifyOrderMoneySet;
1742
- readonly current_subtotal_price_set: io.flow.shopify.xborder.integration.test.v0.models.ShopifyOrderMoneySet;
1743
- readonly total_tax_set: io.flow.shopify.xborder.integration.test.v0.models.ShopifyOrderMoneySet;
1744
- readonly current_total_tax_set: io.flow.shopify.xborder.integration.test.v0.models.ShopifyOrderMoneySet;
1745
- readonly total_line_items_price_set: io.flow.shopify.xborder.integration.test.v0.models.ShopifyOrderMoneySet;
1746
- readonly customer: io.flow.shopify.xborder.integration.test.v0.models.ShopifyOrderCustomer;
1747
- readonly customer_locale?: string;
1748
- readonly discount_applications: io.flow.shopify.xborder.integration.test.v0.models.ShopifyOrderDiscountApplication[];
1749
- readonly discount_codes: io.flow.shopify.xborder.integration.test.v0.models.ShopifyOrderDiscountCode[];
1750
- readonly email?: string;
1751
- readonly financial_status: io.flow.shopify.xborder.integration.test.v0.enums.ShopifyOrderFinancialStatusType;
1752
- readonly fulfillments: io.flow.shopify.xborder.integration.test.v0.models.ShopifyOrderFulfillment[];
1753
- readonly fulfillment_status?: io.flow.shopify.xborder.integration.test.v0.enums.ShopifyOrderFulfillmentStatusType;
1754
- readonly landing_site?: string;
1755
- readonly line_items: io.flow.shopify.xborder.integration.test.v0.models.ShopifyOrderLineItem[];
1756
- readonly location_id?: number;
1757
- readonly name: string;
1758
- readonly note?: string;
1759
- readonly note_attributes: io.flow.shopify.xborder.integration.test.v0.models.ShopifyOrderAttribute[];
1760
- readonly number?: number;
1761
- readonly payment_gateway_names: string[];
1762
- readonly processed_at?: string;
1763
- readonly processing_method?: io.flow.shopify.xborder.integration.test.v0.enums.ShopifyOrderProcessingMethodType;
1764
- readonly referring_site?: string;
1765
- readonly refunds: io.flow.shopify.xborder.integration.test.v0.models.ShopifyOrderRefund[];
1766
- readonly shipping_address?: io.flow.shopify.xborder.integration.test.v0.models.ShopifyOrderAddress;
1767
- readonly shipping_lines: io.flow.shopify.xborder.integration.test.v0.models.ShopifyOrderShippingLine[];
1768
- readonly source_name?: string;
1769
- readonly tags?: string;
1770
- readonly tax_lines: io.flow.shopify.xborder.integration.test.v0.models.ShopifyOrderTaxLine[];
1771
- readonly taxes_included: boolean;
1772
- readonly token?: string;
1773
- readonly total_weight?: number;
1774
- readonly updated_at?: string;
1775
- readonly user_id?: number;
1776
- readonly order_status_url?: string;
1777
- readonly inventory_behaviour?: io.flow.shopify.xborder.integration.test.v0.enums.ShopifyOrderInventoryBehaviour;
1778
- readonly gateway?: string;
1779
- readonly transactions?: io.flow.shopify.xborder.integration.test.v0.models.ShopifyOrderTransaction[];
1780
- readonly send_receipt?: boolean;
1781
- readonly metafields?: io.flow.shopify.xborder.integration.test.v0.models.ShopifyOrderMetafield[];
1782
- }
1783
- interface ShopifyOrderAddress {
1784
- readonly id?: number;
1785
- readonly address1?: string;
1786
- readonly address2?: string;
1787
- readonly city?: string;
1788
- readonly company?: string;
1789
- readonly country?: string;
1790
- readonly country_code?: string;
1791
- readonly default?: boolean;
1792
- readonly first_name?: string;
1793
- readonly last_name?: string;
1794
- readonly latitude?: number;
1795
- readonly longitude?: number;
1796
- readonly name?: string;
1797
- readonly phone?: string;
1798
- readonly province?: string;
1799
- readonly province_code?: string;
1800
- readonly zip?: string;
1801
- }
1802
- interface ShopifyOrderAttribute {
1803
- readonly name: string;
1804
- readonly value: string;
1805
- }
1806
- interface ShopifyOrderClientDetail {
1807
- readonly accept_language?: string;
1808
- readonly browser_height?: number;
1809
- readonly browser_ip?: string;
1810
- readonly browser_width?: number;
1811
- readonly session_hash?: string;
1812
- readonly user_agent?: string;
1813
- }
1814
- interface ShopifyOrderCustomer {
1815
- readonly id?: number;
1816
- readonly email?: string;
1817
- readonly accepts_marketing?: boolean;
1818
- readonly created_at?: string;
1819
- readonly updated_at?: string;
1820
- readonly first_name?: string;
1821
- readonly last_name?: string;
1822
- readonly orders_count?: number;
1823
- readonly state?: string;
1824
- readonly total_spent?: string;
1825
- readonly last_order_id?: number;
1826
- readonly note?: string;
1827
- readonly verified_email?: boolean;
1828
- readonly multipass_identifier?: string;
1829
- readonly tax_exempt?: boolean;
1830
- readonly tax_exemptions?: any[];
1831
- readonly phone?: string;
1832
- readonly tags?: string;
1833
- readonly last_order_name?: string;
1834
- readonly currency?: string;
1835
- readonly addresses?: io.flow.shopify.xborder.integration.test.v0.models.ShopifyOrderAddress;
1836
- readonly default_address?: io.flow.shopify.xborder.integration.test.v0.models.ShopifyOrderAddress;
1837
- }
1838
- interface ShopifyOrderDiscountAllocation {
1839
- readonly amount: string;
1840
- readonly discount_application_index: number;
1841
- readonly amount_set: io.flow.shopify.xborder.integration.test.v0.models.ShopifyOrderMoneySet;
2001
+ readonly center_key?: string;
2002
+ readonly source?: io.flow.RESERVED_WORD_return.v0.unions.ReturnSource;
2003
+ readonly tracking_status?: io.flow.RESERVED_WORD_return.v0.enums.ReturnTrackingStatus;
2004
+ readonly tracking_status_timestamp?: string;
2005
+ readonly carrier_tracking_number?: string;
1842
2006
  }
1843
- interface ShopifyOrderDiscountApplication {
1844
- readonly type: io.flow.shopify.xborder.integration.test.v0.enums.ShopifyOrderDiscountApplicationType;
1845
- readonly allocation_method: io.flow.shopify.xborder.integration.test.v0.enums.ShopifyOrderDiscountAllocationMethod;
1846
- readonly code?: string;
1847
- readonly description?: string;
1848
- readonly target_selection: io.flow.shopify.xborder.integration.test.v0.enums.ShopifyOrderDiscountApplicationTargetSelection;
1849
- readonly target_type: io.flow.shopify.xborder.integration.test.v0.enums.ShopifyOrderDiscountApplicationTargetType;
1850
- readonly title?: string;
1851
- readonly value: string;
1852
- readonly value_type: io.flow.shopify.xborder.integration.test.v0.enums.ShopifyOrderDiscountApplicationValueType;
2007
+ interface ReturnItemReference {
2008
+ readonly number: string;
1853
2009
  }
1854
- interface ShopifyOrderDiscountCode {
1855
- readonly amount: string;
1856
- readonly code: string;
1857
- readonly type: io.flow.shopify.xborder.integration.test.v0.enums.ShopifyOrderDiscountType;
2010
+ interface ReturnLineItem {
2011
+ readonly item_number: string;
2012
+ readonly order_number?: string;
2013
+ readonly quantity: number;
2014
+ readonly reason?: io.flow.RESERVED_WORD_return.v0.models.ReturnReason;
2015
+ readonly notes?: string;
2016
+ readonly attributes?: Record<string, string>;
1858
2017
  }
1859
- interface ShopifyOrderDuty {
1860
- readonly id: string;
1861
- readonly harmonized_system_code: string;
1862
- readonly country_code_of_origin: string;
1863
- readonly presentment_money: io.flow.shopify.xborder.integration.test.v0.models.ShopifyOrderMoney;
1864
- readonly shop_money: io.flow.shopify.xborder.integration.test.v0.models.ShopifyOrderMoney;
1865
- readonly tax_lines: io.flow.shopify.xborder.integration.test.v0.models.ShopifyOrderTaxLine[];
2018
+ interface ReturnOrderReference {
2019
+ readonly number: string;
1866
2020
  }
1867
- interface ShopifyOrderFulfillment {
1868
- readonly created_at?: string;
1869
- readonly id?: number;
1870
- readonly line_items: io.flow.shopify.xborder.integration.test.v0.models.ShopifyOrderLineItem[];
1871
- readonly location_id: number;
2021
+ interface ReturnReason {
1872
2022
  readonly name: string;
1873
- readonly notify_customer?: boolean;
1874
- readonly order_id?: number;
1875
- readonly receipt?: any;
1876
- readonly service: string;
1877
- readonly shipment_status?: io.flow.shopify.xborder.integration.test.v0.enums.ShopifyOrderFulfillmentShipmentStatus;
1878
- readonly status?: io.flow.shopify.xborder.integration.test.v0.enums.ShopifyOrderFulfillmentStatus;
1879
- readonly tracking_company?: string;
1880
- readonly tracking_number?: string;
1881
- readonly tracking_numbers?: string[];
1882
- readonly tracking_urls?: string[];
1883
- readonly updated_at?: string;
1884
- readonly variant_inventory_management?: string;
1885
2023
  }
1886
- interface ShopifyOrderLineItem {
1887
- readonly fulfillable_quantity?: number;
1888
- readonly fulfillment_service: string;
1889
- readonly fulfillment_status?: io.flow.shopify.xborder.integration.test.v0.enums.ShopifyOrderFulfillmentStatusType;
1890
- readonly grams?: number;
1891
- readonly id: number;
1892
- readonly price?: string;
1893
- readonly price_set?: io.flow.shopify.xborder.integration.test.v0.models.ShopifyOrderMoneySet;
1894
- readonly product_id?: number;
1895
- readonly quantity: number;
1896
- readonly requires_shipping: boolean;
1897
- readonly sku?: string;
1898
- readonly title?: string;
1899
- readonly variant_id?: number;
1900
- readonly variant_title?: string;
1901
- readonly vendor?: string;
2024
+ interface ReturnReasonForm {
1902
2025
  readonly name?: string;
1903
- readonly gift_card: boolean;
1904
- readonly properties: io.flow.shopify.xborder.integration.test.v0.models.ShopifyOrderProperty[];
1905
- readonly taxable: boolean;
1906
- readonly tax_lines: io.flow.shopify.xborder.integration.test.v0.models.ShopifyOrderTaxLine[];
1907
- readonly tip_payment_gateway?: string;
1908
- readonly tip_payment_method?: string;
1909
- readonly total_discount?: string;
1910
- readonly total_discount_set?: io.flow.shopify.xborder.integration.test.v0.models.ShopifyOrderMoneySet;
1911
- readonly discount_allocations?: io.flow.shopify.xborder.integration.test.v0.models.ShopifyOrderDiscountAllocation[];
1912
- readonly origin_location: io.flow.shopify.xborder.integration.test.v0.models.ShopifyOrderOriginLocation;
1913
- readonly variant_inventory_management?: string;
1914
- readonly product_exists?: boolean;
1915
- readonly duties: io.flow.shopify.xborder.integration.test.v0.models.ShopifyOrderDuty[];
1916
2026
  }
1917
- interface ShopifyOrderMetafield {
1918
- readonly id: number;
1919
- readonly key: string;
1920
- readonly namespace: string;
1921
- readonly value: string;
1922
- readonly value_type: io.flow.shopify.xborder.integration.test.v0.enums.ShopifyOrderValueType;
1923
- readonly description?: string;
1924
- readonly owner_id: number;
1925
- readonly owner_resource: string;
2027
+ interface ReturnReasonPutForm {
2028
+ readonly name?: string;
1926
2029
  }
1927
- interface ShopifyOrderMetafieldForm {
2030
+ interface ReturnSourceExternalVendor {
2031
+ readonly discriminator: 'return_source_external_vendor';
1928
2032
  readonly key: string;
1929
- readonly namespace: string;
1930
- readonly value: string;
1931
- readonly value_type: io.flow.shopify.xborder.integration.test.v0.enums.ShopifyOrderValueType;
1932
- readonly description?: string;
1933
- }
1934
- interface ShopifyOrderMoney {
1935
- readonly amount: number;
1936
- readonly currency_code: string;
1937
2033
  }
1938
- interface ShopifyOrderMoneySet {
1939
- readonly shop_money: io.flow.shopify.xborder.integration.test.v0.models.ShopifyOrderMoney;
1940
- readonly presentment_money: io.flow.shopify.xborder.integration.test.v0.models.ShopifyOrderMoney;
2034
+ interface ReturnSourceFlow {
2035
+ readonly discriminator: 'return_source_flow';
2036
+ readonly attributes?: Record<string, string>;
1941
2037
  }
1942
- interface ShopifyOrderOriginLocation {
1943
- readonly id: number;
1944
- readonly country_code: string;
1945
- readonly province_code: string;
1946
- readonly name: string;
1947
- readonly address1: string;
1948
- readonly address2: string;
1949
- readonly city: string;
1950
- readonly zip: string;
2038
+ interface ReturnVersion {
2039
+ readonly id: string;
2040
+ readonly timestamp: string;
2041
+ readonly type: io.flow.common.v0.enums.ChangeType;
2042
+ readonly return: io.flow.RESERVED_WORD_return.v0.models.Return;
1951
2043
  }
1952
- interface ShopifyOrderPaymentDetail {
1953
- readonly avs_result_code?: string;
1954
- readonly credit_card_bin?: string;
1955
- readonly credit_card_company: string;
1956
- readonly credit_card_number: string;
1957
- readonly cvv_result_code?: string;
2044
+ }
2045
+ declare namespace io.flow.RESERVED_WORD_return.v0.unions {
2046
+ type ReturnSource = io.flow.RESERVED_WORD_return.v0.models.ReturnSourceFlow | io.flow.RESERVED_WORD_return.v0.models.ReturnSourceExternalVendor;
2047
+ }
2048
+ declare namespace io.flow.harmonization.engine.internal.v0.enums {
2049
+ type StatisticType = 'time-to-classify' | 'time-to-classify-aggregated' | 'rate-source' | 'rate-freshness';
2050
+ }
2051
+ declare namespace io.flow.harmonization.engine.internal.v0.models {
2052
+ interface ClassificationRequeueRequest {
2053
+ readonly message: string;
1958
2054
  }
1959
- interface ShopifyOrderProperty {
1960
- readonly name: string;
1961
- readonly value: any;
2055
+ interface RateDestinationFreshnessSummary {
2056
+ readonly destination: io.flow.reference.v0.models.Country;
2057
+ readonly percentage_updated: number;
1962
2058
  }
1963
- interface ShopifyOrderRefund {
1964
- readonly id: number;
1965
- readonly order_id: number;
1966
- readonly created_at: string;
1967
- readonly processed_at: string;
1968
- readonly note?: string;
1969
- readonly refund_line_items?: io.flow.shopify.xborder.integration.test.v0.models.ShopifyOrderRefundLineItem[];
1970
- readonly restock?: boolean;
1971
- readonly transactions?: io.flow.shopify.xborder.integration.test.v0.models.ShopifyOrderTransaction[];
1972
- readonly user_id?: number;
2059
+ interface RateFreshnessSummary {
2060
+ readonly discriminator: 'rate-freshness';
2061
+ readonly key: string;
2062
+ readonly updated_since: string;
2063
+ readonly destination_freshness_summaries: io.flow.harmonization.engine.internal.v0.models.RateDestinationFreshnessSummary[];
1973
2064
  }
1974
- interface ShopifyOrderRefundLineItem {
1975
- readonly id: number;
1976
- readonly line_item: io.flow.shopify.xborder.integration.test.v0.models.ShopifyOrderLineItem;
1977
- readonly line_item_id: number;
1978
- readonly quantity: number;
1979
- readonly restock_type: io.flow.shopify.xborder.integration.test.v0.enums.ShopifyOrderRestockType;
1980
- readonly location_id?: number;
1981
- readonly subtotal?: number;
1982
- readonly total_tax?: number;
2065
+ interface RateSourceCompositionSummary {
2066
+ readonly rate_name: string;
2067
+ readonly percentage_composition: number;
1983
2068
  }
1984
- interface ShopifyOrderShippingLine {
1985
- readonly code: string;
1986
- readonly price: string;
1987
- readonly source: string;
1988
- readonly title: string;
1989
- readonly tax_lines: io.flow.shopify.xborder.integration.test.v0.models.ShopifyOrderTaxLine[];
1990
- readonly carrier_identifier?: string;
1991
- readonly requested_fulfillment_service_id?: string;
1992
- readonly price_set: io.flow.shopify.xborder.integration.test.v0.models.ShopifyOrderMoneySet;
1993
- readonly discounted_price_set: io.flow.shopify.xborder.integration.test.v0.models.ShopifyOrderMoneySet;
2069
+ interface RateSourceSummary {
2070
+ readonly discriminator: 'rate-source';
2071
+ readonly key: string;
2072
+ readonly destination: io.flow.reference.v0.models.Country;
2073
+ readonly rate_source_composition_summaries: io.flow.harmonization.engine.internal.v0.models.RateSourceCompositionSummary[];
1994
2074
  }
1995
- interface ShopifyOrderTaxLine {
1996
- readonly price_set: io.flow.shopify.xborder.integration.test.v0.models.ShopifyOrderMoneySet;
1997
- readonly rate: number;
1998
- readonly title: string;
2075
+ interface RequeueRequestForm {
2076
+ readonly product_ids?: string[];
2077
+ readonly hs6_codes?: string[];
2078
+ readonly preferred_item_type?: string;
2079
+ readonly ignore_classification_status: boolean;
2080
+ readonly select_mismatching_item_types: boolean;
1999
2081
  }
2000
- interface ShopifyOrderTransaction {
2001
- readonly id: number;
2002
- readonly order_id: number;
2003
- readonly amount: number;
2004
- readonly kind: io.flow.shopify.xborder.integration.test.v0.enums.ShopifyOrderKindType;
2005
- readonly gateway: string;
2006
- readonly currency: string;
2007
- readonly status: io.flow.shopify.xborder.integration.test.v0.enums.ShopifyOrderTransactionStatus;
2008
- readonly payment_details?: io.flow.shopify.xborder.integration.test.v0.models.ShopifyOrderPaymentDetail;
2009
- readonly receipt: any;
2010
- readonly authorization?: string;
2011
- readonly created_at: string;
2012
- readonly device_id?: number;
2013
- readonly gift_card_id?: number;
2014
- readonly source_name: string;
2015
- readonly error_code?: io.flow.shopify.xborder.integration.test.v0.enums.ShopifyOrderTransactionErrorCode;
2016
- readonly test: boolean;
2017
- readonly parent_id?: number;
2018
- readonly user_id?: number;
2082
+ interface TimeToClassify {
2083
+ readonly discriminator: 'time-to-classify';
2084
+ readonly key: string;
2085
+ readonly from: string;
2086
+ readonly to: string;
2087
+ readonly organization_id: string;
2088
+ readonly average_hours: number;
2089
+ readonly median_hours: number;
2090
+ readonly percentile_75_hours: number;
2091
+ readonly percentile_90_hours: number;
2092
+ readonly percentile_99_hours: number;
2019
2093
  }
2020
- interface ShopifyOrderWrapper {
2021
- readonly order: any;
2094
+ interface TimeToClassifyAggregated {
2095
+ readonly discriminator: 'time-to-classify-aggregated';
2096
+ readonly key: string;
2097
+ readonly from: string;
2098
+ readonly to: string;
2099
+ readonly average_hours: number;
2100
+ readonly median_hours: number;
2101
+ readonly percentile_75_hours: number;
2102
+ readonly percentile_90_hours: number;
2103
+ readonly percentile_99_hours: number;
2022
2104
  }
2023
- interface ShopifyOrdersWrapper {
2024
- readonly orders: io.flow.shopify.xborder.integration.test.v0.models.ShopifyOrder[];
2105
+ interface UnclassifiedProductsPurgeRequest {
2106
+ readonly num_deleted_products: Record<string, number>;
2025
2107
  }
2026
2108
  }
2109
+ declare namespace io.flow.harmonization.engine.internal.v0.unions {
2110
+ type InternalHarmonizationStatistic = io.flow.harmonization.engine.internal.v0.models.TimeToClassify | io.flow.harmonization.engine.internal.v0.models.TimeToClassifyAggregated | io.flow.harmonization.engine.internal.v0.models.RateSourceSummary | io.flow.harmonization.engine.internal.v0.models.RateFreshnessSummary;
2111
+ }
2027
2112
  declare namespace io.flow.catalog.internal.v0.models {
2028
2113
  interface CatalogItemBatchIndexTask {
2029
2114
  readonly discriminator: 'catalog_item_batch_index_task';
@@ -8190,6 +8275,13 @@ declare namespace io.flow.label.internal.v0.models {
8190
8275
  readonly organization: string;
8191
8276
  readonly default_contents: string;
8192
8277
  }
8278
+ interface InvoiceInfoForm {
8279
+ readonly invoice_number: string;
8280
+ readonly invoice_date: string;
8281
+ readonly currency_code: string;
8282
+ readonly invoice_amount: string;
8283
+ readonly control_id?: string;
8284
+ }
8193
8285
  interface LabelGenerationSettings {
8194
8286
  readonly id: string;
8195
8287
  readonly item_identifier?: string;
@@ -8201,6 +8293,41 @@ declare namespace io.flow.label.internal.v0.models {
8201
8293
  readonly auto_generate_query?: string;
8202
8294
  readonly commercial_invoice_only_query?: string;
8203
8295
  }
8296
+ interface ShipperAccountInfoForm {
8297
+ readonly account_name?: string;
8298
+ readonly account_number: string;
8299
+ readonly postal: string;
8300
+ readonly country: string;
8301
+ readonly invoice_info?: io.flow.label.internal.v0.models.InvoiceInfoForm;
8302
+ }
8303
+ interface UpsLicense {
8304
+ readonly access_license_number: string;
8305
+ readonly address: io.flow.common.v0.models.BillingAddress;
8306
+ readonly contact: io.flow.common.v0.models.Contact;
8307
+ readonly secondary_contact?: io.flow.common.v0.models.Contact;
8308
+ readonly company_url: string;
8309
+ }
8310
+ interface UpsLicenseForm {
8311
+ readonly address: io.flow.common.v0.models.BillingAddress;
8312
+ readonly contact: io.flow.common.v0.models.Contact;
8313
+ readonly secondary_contact?: io.flow.common.v0.models.Contact;
8314
+ readonly developer_license_number: string;
8315
+ readonly company_url: string;
8316
+ }
8317
+ interface UpsRegistration {
8318
+ readonly username: string;
8319
+ readonly address: io.flow.common.v0.models.BillingAddress;
8320
+ readonly contact: io.flow.common.v0.models.Contact;
8321
+ readonly suggest_username_indicator?: string;
8322
+ }
8323
+ interface UpsRegistrationForm {
8324
+ readonly username: string;
8325
+ readonly password: string;
8326
+ readonly access_license_number: string;
8327
+ readonly address: io.flow.common.v0.models.BillingAddress;
8328
+ readonly contact: io.flow.common.v0.models.Contact;
8329
+ readonly shipper_account?: io.flow.label.internal.v0.models.ShipperAccountInfoForm;
8330
+ }
8204
8331
  }
8205
8332
  declare namespace io.flow.catalog.v0.enums {
8206
8333
  type AdjustmentReasonKey = 'duty_deminimis' | 'vat_deminimis';
@@ -8719,6 +8846,7 @@ declare namespace io.flow.item.v0.models {
8719
8846
  readonly item: io.flow.common.v0.models.CatalogItemReference;
8720
8847
  readonly pricing: io.flow.item.v0.models.LocalItemPricing;
8721
8848
  readonly status: io.flow.catalog.v0.enums.SubcatalogItemStatus;
8849
+ readonly attributes?: Record<string, string>;
8722
8850
  }
8723
8851
  interface LocalItemAttributePricing {
8724
8852
  readonly pretax_price: io.flow.common.v0.models.PriceWithBase;
@@ -18743,7 +18871,7 @@ declare namespace io.flow.internal.v0.models {
18743
18871
  readonly event_id: string;
18744
18872
  readonly timestamp: string;
18745
18873
  readonly organization: string;
18746
- readonly item: io.flow.internal.v0.models.LocalizedPriceBookItem;
18874
+ readonly id: string;
18747
18875
  }
18748
18876
  interface LocalizedPriceBookItemUpserted {
18749
18877
  readonly discriminator: 'localized_price_book_item_upserted';
@@ -21186,7 +21314,7 @@ declare namespace io.flow.internal.v0.models {
21186
21314
  readonly action: io.flow.internal.v0.enums.OrderAction;
21187
21315
  }
21188
21316
  interface XborderOrder {
21189
- readonly shopify_order: io.flow.shopify.xborder.integration.test.v0.models.ShopifyOrder;
21317
+ readonly shopify_order: io.flow.shopify.xborder.v0.models.ShopifyOrder;
21190
21318
  readonly flow_authorization: io.flow.payment.v0.unions.Authorization;
21191
21319
  }
21192
21320
  }