@flowio/types 11.19.11 → 11.19.12

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.
@@ -1936,485 +1936,6 @@ declare namespace io.flow.price.v0.models {
1936
1936
  declare namespace io.flow.price.v0.unions {
1937
1937
  type Deminimis = io.flow.price.v0.models.DeminimisSimple | io.flow.price.v0.models.DeminimisPerItem;
1938
1938
  }
1939
- declare namespace io.flow.shopify.xborder.v0.enums {
1940
- type CancelReason = 'customer' | 'fraud' | 'inventory' | 'declined' | 'other';
1941
- type ShopifyDiscrepancyReason = 'restock' | 'damage' | 'customer' | 'other';
1942
- type ShopifyOrderCancelReason = 'customer' | 'fraud' | 'inventory' | 'declined' | 'other';
1943
- type ShopifyOrderDiscountAllocationMethod = 'across' | 'each' | 'one';
1944
- type ShopifyOrderDiscountApplicationTargetSelection = 'all' | 'entitled' | 'explicit';
1945
- type ShopifyOrderDiscountApplicationTargetType = 'line_item' | 'shipping_line';
1946
- type ShopifyOrderDiscountApplicationType = 'automatic' | 'discount_code' | 'manual' | 'script';
1947
- type ShopifyOrderDiscountApplicationValueType = 'fixed_amount' | 'percentage';
1948
- type ShopifyOrderDiscountType = 'fixed_amount' | 'percentage' | 'shipping';
1949
- type ShopifyOrderFinancialStatusType = 'pending' | 'authorized' | 'partially_paid' | 'paid' | 'partially_refunded' | 'refunded' | 'voided';
1950
- type ShopifyOrderFulfillmentShipmentStatus = 'label_printed' | 'label_purchased' | 'attempted_delivery' | 'ready_for_pickup' | 'confirmed' | 'in_transit' | 'out_for_delivery' | 'delivered' | 'failure';
1951
- type ShopifyOrderFulfillmentStatus = 'pending' | 'open' | 'success' | 'cancelled' | 'error' | 'failure';
1952
- type ShopifyOrderFulfillmentStatusType = 'fulfilled' | 'null' | 'partial';
1953
- type ShopifyOrderInventoryBehaviour = 'bypass' | 'decrement_ignoring_policy' | 'decrement_obeying_policy';
1954
- type ShopifyOrderKindType = 'authorization' | 'capture' | 'sale' | 'void' | 'refund';
1955
- type ShopifyOrderProcessingMethodType = 'checkout' | 'direct' | 'manual' | 'offsite' | 'express';
1956
- type ShopifyOrderRestockType = 'no_restock' | 'cancel' | 'return';
1957
- type ShopifyOrderStatusType = 'open' | 'closed' | 'cancelled' | 'any';
1958
- 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';
1959
- type ShopifyOrderTransactionStatus = 'pending' | 'failure' | 'success' | 'error';
1960
- type ShopifyOrderValueType = 'string' | 'integer';
1961
- type ShopifyWebhookFormat = 'json' | 'xml';
1962
- type ShopifyWebhookTopic = 'orders/cancelled' | 'orders/create' | 'orders/fulfilled' | 'orders/paid' | 'orders/partially_fulfilled' | 'orders/updated' | 'orders/delete' | 'orders/edited' | 'products/create' | 'products/delete' | 'products/update' | 'refunds/create' | 'fulfillment_events/create' | 'fulfillment_events/delete' | 'themes/create' | 'themes/publish' | 'themes/update';
1963
- }
1964
- declare namespace io.flow.shopify.xborder.v0.models {
1965
- interface ResponseShopifyTransactions {
1966
- readonly transactions: io.flow.shopify.xborder.v0.models.ShopifyOrderTransaction[];
1967
- }
1968
- interface ShopifyCountryHarmonizedSystemCode {
1969
- readonly country_code: string;
1970
- readonly harmonized_system_code: string;
1971
- }
1972
- interface ShopifyError {
1973
- readonly errors: any;
1974
- }
1975
- interface ShopifyFulfillmentOrder {
1976
- readonly assigned_location_id: number;
1977
- readonly line_items: io.flow.shopify.xborder.v0.models.ShopifyFulfillmentOrderLineItem[];
1978
- }
1979
- interface ShopifyFulfillmentOrderLineItem {
1980
- readonly line_item_id: number;
1981
- }
1982
- interface ShopifyFulfillmentOrdersWrapper {
1983
- readonly fulfillment_orders: io.flow.shopify.xborder.v0.models.ShopifyFulfillmentOrder[];
1984
- }
1985
- interface ShopifyInventoryItem {
1986
- readonly id: number;
1987
- readonly cost: number;
1988
- readonly country_code_of_origin?: string;
1989
- readonly country_harmonized_system_codes?: io.flow.shopify.xborder.v0.models.ShopifyCountryHarmonizedSystemCode[];
1990
- readonly harmonized_system_code?: string;
1991
- readonly province_code_of_origin?: string;
1992
- readonly sku: string;
1993
- readonly tracked?: boolean;
1994
- readonly requires_shipping: boolean;
1995
- readonly created_at: string;
1996
- readonly updated_at: string;
1997
- }
1998
- interface ShopifyInventoryItemForm {
1999
- readonly harmonized_system_code?: string;
2000
- readonly country_harmonized_system_codes?: io.flow.shopify.xborder.v0.models.ShopifyCountryHarmonizedSystemCode[];
2001
- }
2002
- interface ShopifyInventoryItemFormWrapper {
2003
- readonly inventory_item: io.flow.shopify.xborder.v0.models.ShopifyInventoryItemForm;
2004
- }
2005
- interface ShopifyInventoryItemWrapper {
2006
- readonly inventory_item: io.flow.shopify.xborder.v0.models.ShopifyInventoryItem;
2007
- }
2008
- interface ShopifyInventoryItemsWrapper {
2009
- readonly inventory_items: io.flow.shopify.xborder.v0.models.ShopifyInventoryItem[];
2010
- }
2011
- interface ShopifyLocation {
2012
- readonly active: boolean;
2013
- readonly address1?: string;
2014
- readonly address2?: string;
2015
- readonly city?: string;
2016
- readonly country?: string;
2017
- readonly country_code?: string;
2018
- readonly created_at: string;
2019
- readonly id: number;
2020
- readonly legacy: boolean;
2021
- readonly name: string;
2022
- readonly phone?: string;
2023
- readonly province?: string;
2024
- readonly province_code?: string;
2025
- readonly updated_at?: string;
2026
- readonly zip?: string;
2027
- readonly localized_country_name?: string;
2028
- readonly localized_province_name?: string;
2029
- }
2030
- interface ShopifyLocationsResponseWrapper {
2031
- readonly locations: io.flow.shopify.xborder.v0.models.ShopifyLocation[];
2032
- }
2033
- interface ShopifyOrder {
2034
- readonly id: number;
2035
- readonly order_number: number;
2036
- readonly checkout_id: number;
2037
- readonly checkout_token: string;
2038
- readonly billing_address?: io.flow.shopify.xborder.v0.models.ShopifyOrderAddress;
2039
- readonly browser_ip?: string;
2040
- readonly buyer_accepts_marketing: boolean;
2041
- readonly cancel_reason?: io.flow.shopify.xborder.v0.enums.ShopifyOrderCancelReason;
2042
- readonly cancelled_at?: string;
2043
- readonly cart_token?: string;
2044
- readonly client_details?: io.flow.shopify.xborder.v0.models.ShopifyOrderClientDetail;
2045
- readonly closed_at?: string;
2046
- readonly created_at: string;
2047
- readonly currency: string;
2048
- readonly total_discounts_set: io.flow.shopify.xborder.v0.models.ShopifyOrderMoneySet;
2049
- readonly current_total_discounts_set: io.flow.shopify.xborder.v0.models.ShopifyOrderMoneySet;
2050
- readonly total_duties_set?: io.flow.shopify.xborder.v0.models.ShopifyOrderMoneySet;
2051
- readonly current_total_duties_set?: io.flow.shopify.xborder.v0.models.ShopifyOrderMoneySet;
2052
- readonly original_total_duties_set?: io.flow.shopify.xborder.v0.models.ShopifyOrderMoneySet;
2053
- readonly total_price_set: io.flow.shopify.xborder.v0.models.ShopifyOrderMoneySet;
2054
- readonly current_total_price_set: io.flow.shopify.xborder.v0.models.ShopifyOrderMoneySet;
2055
- readonly subtotal_price_set: io.flow.shopify.xborder.v0.models.ShopifyOrderMoneySet;
2056
- readonly current_subtotal_price_set: io.flow.shopify.xborder.v0.models.ShopifyOrderMoneySet;
2057
- readonly total_tax_set: io.flow.shopify.xborder.v0.models.ShopifyOrderMoneySet;
2058
- readonly current_total_tax_set: io.flow.shopify.xborder.v0.models.ShopifyOrderMoneySet;
2059
- readonly total_line_items_price_set: io.flow.shopify.xborder.v0.models.ShopifyOrderMoneySet;
2060
- readonly customer: io.flow.shopify.xborder.v0.models.ShopifyOrderCustomer;
2061
- readonly customer_locale?: string;
2062
- readonly discount_applications: io.flow.shopify.xborder.v0.models.ShopifyOrderDiscountApplication[];
2063
- readonly discount_codes: io.flow.shopify.xborder.v0.models.ShopifyOrderDiscountCode[];
2064
- readonly email?: string;
2065
- readonly financial_status: io.flow.shopify.xborder.v0.enums.ShopifyOrderFinancialStatusType;
2066
- readonly fulfillments: io.flow.shopify.xborder.v0.models.ShopifyOrderFulfillment[];
2067
- readonly fulfillment_status?: io.flow.shopify.xborder.v0.enums.ShopifyOrderFulfillmentStatusType;
2068
- readonly landing_site?: string;
2069
- readonly line_items: io.flow.shopify.xborder.v0.models.ShopifyOrderLineItem[];
2070
- readonly location_id?: number;
2071
- readonly name: string;
2072
- readonly note?: string;
2073
- readonly note_attributes: io.flow.shopify.xborder.v0.models.ShopifyOrderAttribute[];
2074
- readonly number?: number;
2075
- readonly payment_gateway_names: string[];
2076
- readonly processed_at?: string;
2077
- readonly processing_method?: io.flow.shopify.xborder.v0.enums.ShopifyOrderProcessingMethodType;
2078
- readonly referring_site?: string;
2079
- readonly refunds: io.flow.shopify.xborder.v0.models.ShopifyOrderRefund[];
2080
- readonly shipping_address?: io.flow.shopify.xborder.v0.models.ShopifyOrderAddress;
2081
- readonly shipping_lines: io.flow.shopify.xborder.v0.models.ShopifyOrderShippingLine[];
2082
- readonly source_name?: string;
2083
- readonly tags?: string;
2084
- readonly tax_lines: io.flow.shopify.xborder.v0.models.ShopifyOrderTaxLine[];
2085
- readonly taxes_included: boolean;
2086
- readonly token?: string;
2087
- readonly total_weight?: number;
2088
- readonly updated_at?: string;
2089
- readonly user_id?: number;
2090
- readonly order_status_url?: string;
2091
- readonly inventory_behaviour?: io.flow.shopify.xborder.v0.enums.ShopifyOrderInventoryBehaviour;
2092
- readonly gateway?: string;
2093
- readonly transactions?: io.flow.shopify.xborder.v0.models.ShopifyOrderTransaction[];
2094
- readonly send_receipt?: boolean;
2095
- readonly metafields?: io.flow.shopify.xborder.v0.models.ShopifyOrderMetafield[];
2096
- }
2097
- interface ShopifyOrderAddress {
2098
- readonly id?: number;
2099
- readonly address1?: string;
2100
- readonly address2?: string;
2101
- readonly city?: string;
2102
- readonly company?: string;
2103
- readonly country?: string;
2104
- readonly country_code?: string;
2105
- readonly default?: boolean;
2106
- readonly first_name?: string;
2107
- readonly last_name?: string;
2108
- readonly latitude?: number;
2109
- readonly longitude?: number;
2110
- readonly name?: string;
2111
- readonly phone?: string;
2112
- readonly province?: string;
2113
- readonly province_code?: string;
2114
- readonly zip?: string;
2115
- }
2116
- interface ShopifyOrderAttribute {
2117
- readonly name: string;
2118
- readonly value: string;
2119
- }
2120
- interface ShopifyOrderCancellationForm {
2121
- readonly refund: io.flow.shopify.xborder.v0.models.ShopifyRefund;
2122
- }
2123
- interface ShopifyOrderClientDetail {
2124
- readonly accept_language?: string;
2125
- readonly browser_height?: number;
2126
- readonly browser_ip?: string;
2127
- readonly browser_width?: number;
2128
- readonly session_hash?: string;
2129
- readonly user_agent?: string;
2130
- }
2131
- interface ShopifyOrderCustomer {
2132
- readonly id?: number;
2133
- readonly email?: string;
2134
- readonly accepts_marketing?: boolean;
2135
- readonly created_at?: string;
2136
- readonly updated_at?: string;
2137
- readonly first_name?: string;
2138
- readonly last_name?: string;
2139
- readonly orders_count?: number;
2140
- readonly state?: string;
2141
- readonly total_spent?: string;
2142
- readonly last_order_id?: number;
2143
- readonly note?: string;
2144
- readonly verified_email?: boolean;
2145
- readonly multipass_identifier?: string;
2146
- readonly tax_exempt?: boolean;
2147
- readonly tax_exemptions?: any[];
2148
- readonly phone?: string;
2149
- readonly tags?: string;
2150
- readonly last_order_name?: string;
2151
- readonly currency?: string;
2152
- readonly addresses?: io.flow.shopify.xborder.v0.models.ShopifyOrderAddress;
2153
- readonly default_address?: io.flow.shopify.xborder.v0.models.ShopifyOrderAddress;
2154
- }
2155
- interface ShopifyOrderDiscountAllocation {
2156
- readonly amount: string;
2157
- readonly discount_application_index: number;
2158
- readonly amount_set: io.flow.shopify.xborder.v0.models.ShopifyOrderMoneySet;
2159
- }
2160
- interface ShopifyOrderDiscountApplication {
2161
- readonly type: io.flow.shopify.xborder.v0.enums.ShopifyOrderDiscountApplicationType;
2162
- readonly allocation_method: io.flow.shopify.xborder.v0.enums.ShopifyOrderDiscountAllocationMethod;
2163
- readonly code?: string;
2164
- readonly description?: string;
2165
- readonly target_selection: io.flow.shopify.xborder.v0.enums.ShopifyOrderDiscountApplicationTargetSelection;
2166
- readonly target_type: io.flow.shopify.xborder.v0.enums.ShopifyOrderDiscountApplicationTargetType;
2167
- readonly title?: string;
2168
- readonly value: string;
2169
- readonly value_type: io.flow.shopify.xborder.v0.enums.ShopifyOrderDiscountApplicationValueType;
2170
- }
2171
- interface ShopifyOrderDiscountCode {
2172
- readonly amount: string;
2173
- readonly code: string;
2174
- readonly type: io.flow.shopify.xborder.v0.enums.ShopifyOrderDiscountType;
2175
- }
2176
- interface ShopifyOrderDuty {
2177
- readonly id: string;
2178
- readonly harmonized_system_code: string;
2179
- readonly country_code_of_origin: string;
2180
- readonly presentment_money: io.flow.shopify.xborder.v0.models.ShopifyOrderMoney;
2181
- readonly shop_money: io.flow.shopify.xborder.v0.models.ShopifyOrderMoney;
2182
- readonly tax_lines: io.flow.shopify.xborder.v0.models.ShopifyOrderTaxLine[];
2183
- }
2184
- interface ShopifyOrderEdit {
2185
- readonly id: number;
2186
- readonly created_at: string;
2187
- readonly notify_customer: boolean;
2188
- readonly order_id: number;
2189
- readonly staff_note: string;
2190
- readonly user_id?: number;
2191
- readonly line_items: io.flow.shopify.xborder.v0.models.ShopifyOrderEditLineItems;
2192
- readonly discounts: any;
2193
- readonly shipping_lines: any;
2194
- }
2195
- interface ShopifyOrderEditLineItems {
2196
- readonly additions: io.flow.shopify.xborder.v0.models.ShopifyOrderEditLineItemsChange[];
2197
- readonly removals: io.flow.shopify.xborder.v0.models.ShopifyOrderEditLineItemsChange[];
2198
- }
2199
- interface ShopifyOrderEditLineItemsChange {
2200
- readonly id: number;
2201
- readonly delta: number;
2202
- }
2203
- interface ShopifyOrderEditWrapper {
2204
- readonly order_edit: io.flow.shopify.xborder.v0.models.ShopifyOrderEdit;
2205
- }
2206
- interface ShopifyOrderFulfillment {
2207
- readonly created_at?: string;
2208
- readonly id?: number;
2209
- readonly line_items: io.flow.shopify.xborder.v0.models.ShopifyOrderLineItem[];
2210
- readonly location_id: number;
2211
- readonly name: string;
2212
- readonly notify_customer?: boolean;
2213
- readonly order_id?: number;
2214
- readonly receipt?: any;
2215
- readonly service: string;
2216
- readonly shipment_status?: io.flow.shopify.xborder.v0.enums.ShopifyOrderFulfillmentShipmentStatus;
2217
- readonly status?: io.flow.shopify.xborder.v0.enums.ShopifyOrderFulfillmentStatus;
2218
- readonly tracking_company?: string;
2219
- readonly tracking_number?: string;
2220
- readonly tracking_numbers?: string[];
2221
- readonly tracking_urls?: string[];
2222
- readonly updated_at?: string;
2223
- readonly variant_inventory_management?: string;
2224
- }
2225
- interface ShopifyOrderLineItem {
2226
- readonly fulfillable_quantity?: number;
2227
- readonly fulfillment_service: string;
2228
- readonly fulfillment_status?: io.flow.shopify.xborder.v0.enums.ShopifyOrderFulfillmentStatusType;
2229
- readonly grams?: number;
2230
- readonly id: number;
2231
- readonly price?: string;
2232
- readonly price_set?: io.flow.shopify.xborder.v0.models.ShopifyOrderMoneySet;
2233
- readonly product_id?: number;
2234
- readonly quantity: number;
2235
- readonly requires_shipping: boolean;
2236
- readonly sku?: string;
2237
- readonly title?: string;
2238
- readonly variant_id?: number;
2239
- readonly variant_title?: string;
2240
- readonly vendor?: string;
2241
- readonly name?: string;
2242
- readonly gift_card: boolean;
2243
- readonly properties: io.flow.shopify.xborder.v0.models.ShopifyOrderProperty[];
2244
- readonly taxable: boolean;
2245
- readonly tax_lines: io.flow.shopify.xborder.v0.models.ShopifyOrderTaxLine[];
2246
- readonly tip_payment_gateway?: string;
2247
- readonly tip_payment_method?: string;
2248
- readonly total_discount?: string;
2249
- readonly total_discount_set?: io.flow.shopify.xborder.v0.models.ShopifyOrderMoneySet;
2250
- readonly discount_allocations?: io.flow.shopify.xborder.v0.models.ShopifyOrderDiscountAllocation[];
2251
- readonly origin_location?: io.flow.shopify.xborder.v0.models.ShopifyOrderOriginLocation;
2252
- readonly variant_inventory_management?: string;
2253
- readonly product_exists?: boolean;
2254
- readonly duties: io.flow.shopify.xborder.v0.models.ShopifyOrderDuty[];
2255
- }
2256
- interface ShopifyOrderMetafield {
2257
- readonly id: number;
2258
- readonly key: string;
2259
- readonly namespace: string;
2260
- readonly value: string;
2261
- readonly value_type: io.flow.shopify.xborder.v0.enums.ShopifyOrderValueType;
2262
- readonly description?: string;
2263
- readonly owner_id: number;
2264
- readonly owner_resource: string;
2265
- }
2266
- interface ShopifyOrderMetafieldForm {
2267
- readonly key: string;
2268
- readonly namespace: string;
2269
- readonly value: string;
2270
- readonly value_type: io.flow.shopify.xborder.v0.enums.ShopifyOrderValueType;
2271
- readonly description?: string;
2272
- }
2273
- interface ShopifyOrderMoney {
2274
- readonly amount: number;
2275
- readonly currency_code: string;
2276
- }
2277
- interface ShopifyOrderMoneySet {
2278
- readonly shop_money: io.flow.shopify.xborder.v0.models.ShopifyOrderMoney;
2279
- readonly presentment_money: io.flow.shopify.xborder.v0.models.ShopifyOrderMoney;
2280
- }
2281
- interface ShopifyOrderOriginLocation {
2282
- readonly id: number;
2283
- readonly country_code: string;
2284
- readonly province_code: string;
2285
- readonly name: string;
2286
- readonly address1: string;
2287
- readonly address2: string;
2288
- readonly city: string;
2289
- readonly zip: string;
2290
- }
2291
- interface ShopifyOrderPaymentDetail {
2292
- readonly avs_result_code?: string;
2293
- readonly credit_card_bin?: string;
2294
- readonly credit_card_company: string;
2295
- readonly credit_card_number: string;
2296
- readonly cvv_result_code?: string;
2297
- }
2298
- interface ShopifyOrderProperty {
2299
- readonly name: string;
2300
- readonly value: any;
2301
- }
2302
- interface ShopifyOrderRefund {
2303
- readonly id: number;
2304
- readonly order_id: number;
2305
- readonly created_at: string;
2306
- readonly processed_at: string;
2307
- readonly note?: string;
2308
- readonly refund_line_items?: io.flow.shopify.xborder.v0.models.ShopifyOrderRefundLineItem[];
2309
- readonly restock?: boolean;
2310
- readonly transactions?: io.flow.shopify.xborder.v0.models.ShopifyOrderTransaction[];
2311
- readonly user_id?: number;
2312
- }
2313
- interface ShopifyOrderRefundLineItem {
2314
- readonly id: number;
2315
- readonly line_item: io.flow.shopify.xborder.v0.models.ShopifyOrderLineItem;
2316
- readonly line_item_id: number;
2317
- readonly quantity: number;
2318
- readonly restock_type: io.flow.shopify.xborder.v0.enums.ShopifyOrderRestockType;
2319
- readonly location_id?: number;
2320
- readonly subtotal?: number;
2321
- readonly total_tax?: number;
2322
- }
2323
- interface ShopifyOrderShippingLine {
2324
- readonly code?: string;
2325
- readonly price: string;
2326
- readonly source: string;
2327
- readonly title: string;
2328
- readonly tax_lines: io.flow.shopify.xborder.v0.models.ShopifyOrderTaxLine[];
2329
- readonly carrier_identifier?: string;
2330
- readonly requested_fulfillment_service_id?: string;
2331
- readonly price_set: io.flow.shopify.xborder.v0.models.ShopifyOrderMoneySet;
2332
- readonly discounted_price_set: io.flow.shopify.xborder.v0.models.ShopifyOrderMoneySet;
2333
- }
2334
- interface ShopifyOrderTaxLine {
2335
- readonly price_set: io.flow.shopify.xborder.v0.models.ShopifyOrderMoneySet;
2336
- readonly rate: number;
2337
- readonly title: string;
2338
- }
2339
- interface ShopifyOrderTransaction {
2340
- readonly id: number;
2341
- readonly order_id: number;
2342
- readonly amount: number;
2343
- readonly kind: io.flow.shopify.xborder.v0.enums.ShopifyOrderKindType;
2344
- readonly gateway: string;
2345
- readonly currency: string;
2346
- readonly status: io.flow.shopify.xborder.v0.enums.ShopifyOrderTransactionStatus;
2347
- readonly payment_details?: io.flow.shopify.xborder.v0.models.ShopifyOrderPaymentDetail;
2348
- readonly receipt: any;
2349
- readonly authorization?: string;
2350
- readonly created_at: string;
2351
- readonly device_id?: number;
2352
- readonly gift_card_id?: number;
2353
- readonly source_name: string;
2354
- readonly error_code?: io.flow.shopify.xborder.v0.enums.ShopifyOrderTransactionErrorCode;
2355
- readonly test: boolean;
2356
- readonly parent_id?: number;
2357
- readonly user_id?: number;
2358
- }
2359
- interface ShopifyOrderWrapper {
2360
- readonly order: io.flow.shopify.xborder.v0.models.ShopifyOrder;
2361
- }
2362
- interface ShopifyOrdersWrapper {
2363
- readonly orders: io.flow.shopify.xborder.v0.models.ShopifyOrder[];
2364
- }
2365
- interface ShopifyRefund {
2366
- readonly notify_x: boolean;
2367
- readonly note?: string;
2368
- readonly discrepancy_reason?: io.flow.shopify.xborder.v0.enums.ShopifyDiscrepancyReason;
2369
- readonly shipping: io.flow.shopify.xborder.v0.models.ShopifyRefundShipping;
2370
- readonly refund_line_items: io.flow.shopify.xborder.v0.models.ShopifyRefundLineItem[];
2371
- readonly transactions: io.flow.shopify.xborder.v0.models.ShopifyRefundTransaction[];
2372
- readonly currency: string;
2373
- }
2374
- interface ShopifyRefundLineItem {
2375
- readonly line_item_id: number;
2376
- readonly quantity: number;
2377
- readonly restock_type: io.flow.shopify.xborder.v0.enums.ShopifyOrderRestockType;
2378
- readonly location_id?: number;
2379
- }
2380
- interface ShopifyRefundShipping {
2381
- readonly full_refund?: boolean;
2382
- readonly amount?: number;
2383
- }
2384
- interface ShopifyRefundTransaction {
2385
- readonly parent_id: number;
2386
- readonly amount: string;
2387
- readonly currency: string;
2388
- readonly kind: string;
2389
- readonly gateway: string;
2390
- }
2391
- interface ShopifyWebhookRequest {
2392
- readonly topic: io.flow.shopify.xborder.v0.enums.ShopifyWebhookTopic;
2393
- readonly address: string;
2394
- readonly format: io.flow.shopify.xborder.v0.enums.ShopifyWebhookFormat;
2395
- }
2396
- interface ShopifyWebhookRequestWrapper {
2397
- readonly webhook: io.flow.shopify.xborder.v0.models.ShopifyWebhookRequest;
2398
- }
2399
- interface ShopifyWebhookResponse {
2400
- readonly id: number;
2401
- readonly address: string;
2402
- readonly topic: io.flow.shopify.xborder.v0.enums.ShopifyWebhookTopic;
2403
- readonly created_at: string;
2404
- readonly updated_at: string;
2405
- readonly format: io.flow.shopify.xborder.v0.enums.ShopifyWebhookFormat;
2406
- readonly fields: any[];
2407
- readonly metafield_namespaces: any[];
2408
- readonly api_version: string;
2409
- readonly private_metafield_namespaces: any[];
2410
- }
2411
- interface ShopifyWebhookResponseWrapper {
2412
- readonly webhook: io.flow.shopify.xborder.v0.models.ShopifyWebhookResponse;
2413
- }
2414
- interface ShopifyWebhooksResponseWrapper {
2415
- readonly webhooks: io.flow.shopify.xborder.v0.models.ShopifyWebhookResponse[];
2416
- }
2417
- }
2418
1939
  declare namespace io.flow.reference.v0.enums {
2419
1940
  type PaymentMethodCapability = 'credit' | 'debit';
2420
1941
  type PaymentMethodType = 'card' | 'online' | 'offline';
@@ -4195,7 +3716,7 @@ declare namespace io.flow.stripe.v0.models {
4195
3716
  readonly payment_method_options?: io.flow.stripe.v0.models.PaymentMethodOptions;
4196
3717
  readonly payment_method_types?: string[];
4197
3718
  readonly receipt_email?: string;
4198
- readonly save_payment_method: boolean;
3719
+ readonly save_payment_method?: boolean;
4199
3720
  readonly setup_future_usage?: io.flow.stripe.v0.enums.SetupFutureUsage;
4200
3721
  }
4201
3722
  interface PaymentIntentForm {
@@ -4215,7 +3736,7 @@ declare namespace io.flow.stripe.v0.models {
4215
3736
  readonly payment_method_types?: string[];
4216
3737
  readonly receipt_email?: string;
4217
3738
  readonly return_url?: string;
4218
- readonly save_payment_method: boolean;
3739
+ readonly save_payment_method?: boolean;
4219
3740
  readonly setup_future_usage?: io.flow.stripe.v0.enums.SetupFutureUsage;
4220
3741
  readonly statement_descriptor?: string;
4221
3742
  readonly statement_descriptor_suffix?: string;
@@ -4231,7 +3752,7 @@ declare namespace io.flow.stripe.v0.models {
4231
3752
  readonly payment_method?: string;
4232
3753
  readonly payment_method_types?: string[];
4233
3754
  readonly receipt_email?: string;
4234
- readonly save_payment_method: boolean;
3755
+ readonly save_payment_method?: boolean;
4235
3756
  readonly statement_descriptor?: string;
4236
3757
  readonly statement_descriptor_suffix?: string;
4237
3758
  readonly transfer_data?: io.flow.stripe.v0.models.TransferData;
@@ -5312,7 +4833,7 @@ declare namespace io.flow.brickftp.v0.models {
5312
4833
  readonly id: number;
5313
4834
  readonly path: string;
5314
4835
  readonly behavior: io.flow.brickftp.v0.enums.BehaviorType;
5315
- readonly value: string[];
4836
+ readonly value: any;
5316
4837
  }
5317
4838
  interface BehaviorForm {
5318
4839
  readonly path: string;
@@ -5444,6 +4965,10 @@ declare namespace io.flow.adyen.v0.models {
5444
4965
  readonly value: number;
5445
4966
  readonly currency: string;
5446
4967
  }
4968
+ interface Applepay {
4969
+ readonly type: 'applepay';
4970
+ readonly applePayToken: string;
4971
+ }
5447
4972
  interface Authentication {
5448
4973
  readonly 'threeds2.fingerprintToken'?: string;
5449
4974
  readonly 'threeds2.challengeToken'?: string;
@@ -5603,6 +5128,12 @@ declare namespace io.flow.adyen.v0.models {
5603
5128
  readonly details: any;
5604
5129
  readonly paymentData?: string;
5605
5130
  }
5131
+ interface PaymentDetailsV663Ds2Challenge {
5132
+ readonly 'threeds2.challengeResult': string;
5133
+ }
5134
+ interface PaymentDetailsV663Ds2Fingerprint {
5135
+ readonly 'threeds2.fingerprint': string;
5136
+ }
5606
5137
  interface PaymentRequest {
5607
5138
  readonly reference: string;
5608
5139
  readonly merchantAccount: string;
@@ -5624,7 +5155,7 @@ declare namespace io.flow.adyen.v0.models {
5624
5155
  readonly browserInfo?: io.flow.adyen.v0.unions.BrowserInfo;
5625
5156
  readonly origin?: string;
5626
5157
  readonly channel?: io.flow.adyen.v0.enums.Channel;
5627
- readonly returnURL?: string;
5158
+ readonly returnUrl?: string;
5628
5159
  }
5629
5160
  interface PaymentResponse {
5630
5161
  readonly resultCode: io.flow.adyen.v0.enums.ResultCode;
@@ -5672,6 +5203,13 @@ declare namespace io.flow.adyen.v0.models {
5672
5203
  readonly number: string;
5673
5204
  readonly cvc?: string;
5674
5205
  }
5206
+ interface SdkV3OnCompleteData {
5207
+ readonly details: any;
5208
+ readonly payment_data?: string;
5209
+ }
5210
+ interface SdkV3OnCompleteResult {
5211
+ readonly data: io.flow.adyen.v0.models.SdkV3OnCompleteData;
5212
+ }
5675
5213
  interface ThreeDSecureData {
5676
5214
  readonly authenticationResponse?: string;
5677
5215
  readonly cavv?: string;
@@ -5697,7 +5235,7 @@ declare namespace io.flow.adyen.v0.models {
5697
5235
  }
5698
5236
  declare namespace io.flow.adyen.v0.unions {
5699
5237
  type BrowserInfo = io.flow.adyen.v0.models.BrowserInfo3Ds1 | io.flow.adyen.v0.models.BrowserInfo3Ds2;
5700
- type PaymentMethodData = io.flow.adyen.v0.models.Scheme;
5238
+ type PaymentMethodData = io.flow.adyen.v0.models.Scheme | io.flow.adyen.v0.models.Applepay;
5701
5239
  }
5702
5240
  declare namespace io.flow.order.management.v0.enums {
5703
5241
  type CancelReason = 'out_of_stock' | 'consumer_requested' | 'flow_cancel';
@@ -5960,346 +5498,664 @@ declare namespace io.flow.shopify.external.v0.models {
5960
5498
  interface ResponsePriceRuleDiscountCode {
5961
5499
  readonly discount_code: io.flow.shopify.external.v0.models.PriceRuleDiscountCode;
5962
5500
  }
5963
- interface ResponsePriceRuleDiscountCodes {
5964
- readonly discount_codes: io.flow.shopify.external.v0.models.PriceRuleDiscountCode[];
5501
+ interface ResponsePriceRuleDiscountCodes {
5502
+ readonly discount_codes: io.flow.shopify.external.v0.models.PriceRuleDiscountCode[];
5503
+ }
5504
+ interface ResponsePriceRules {
5505
+ readonly price_rules: io.flow.shopify.external.v0.models.PriceRule[];
5506
+ }
5507
+ interface ResponseProduct {
5508
+ readonly product: io.flow.shopify.external.v0.models.Product;
5509
+ }
5510
+ interface ResponseProducts {
5511
+ readonly products: io.flow.shopify.external.v0.models.Product[];
5512
+ }
5513
+ interface ResponseShopifyGiftCard {
5514
+ readonly gift_card: io.flow.shopify.external.v0.models.ShopifyGiftCard;
5515
+ }
5516
+ interface ResponseShopifyGiftCards {
5517
+ readonly gift_cards: io.flow.shopify.external.v0.models.ShopifyGiftCard[];
5518
+ }
5519
+ interface ResponseShopifyRefundSingle {
5520
+ readonly refund: io.flow.shopify.external.v0.models.ShopifyRefund;
5521
+ }
5522
+ interface ResponseShopifyTransaction {
5523
+ readonly transactions: io.flow.shopify.external.v0.models.ShopifyTransaction[];
5524
+ }
5525
+ interface ResponseShopifyTransactionSingle {
5526
+ readonly transaction: io.flow.shopify.external.v0.models.ShopifyTransaction;
5527
+ }
5528
+ interface ResponseSmartCollection {
5529
+ readonly smart_collections: io.flow.shopify.external.v0.models.SmartCollection[];
5530
+ }
5531
+ interface ResponseVariant {
5532
+ readonly variant: io.flow.shopify.external.v0.models.ProductVariant;
5533
+ }
5534
+ interface Shop {
5535
+ readonly id: number;
5536
+ readonly domain: string;
5537
+ readonly myshopify_domain: string;
5538
+ readonly name: string;
5539
+ readonly primary_locale: string;
5540
+ readonly currency: string;
5541
+ readonly country_code: string;
5542
+ }
5543
+ interface ShopResponse {
5544
+ readonly shop: io.flow.shopify.external.v0.models.Shop;
5545
+ }
5546
+ interface ShopifyAddress {
5547
+ readonly id?: number;
5548
+ readonly address1?: string;
5549
+ readonly address2?: string;
5550
+ readonly city?: string;
5551
+ readonly company?: string;
5552
+ readonly country?: string;
5553
+ readonly country_code?: string;
5554
+ readonly default?: boolean;
5555
+ readonly first_name?: string;
5556
+ readonly last_name?: string;
5557
+ readonly latitude?: number;
5558
+ readonly longitude?: number;
5559
+ readonly name?: string;
5560
+ readonly phone?: string;
5561
+ readonly province?: string;
5562
+ readonly province_code?: string;
5563
+ readonly zip?: string;
5564
+ }
5565
+ interface ShopifyAttribute {
5566
+ readonly name: string;
5567
+ readonly value: string;
5568
+ }
5569
+ interface ShopifyCartItemDiscount {
5570
+ readonly amount: number;
5571
+ readonly title: string;
5572
+ }
5573
+ interface ShopifyClientDetail {
5574
+ readonly accept_language?: boolean;
5575
+ readonly browser_height?: number;
5576
+ readonly browser_ip?: string;
5577
+ readonly browser_width?: number;
5578
+ readonly session_hash?: string;
5579
+ readonly user_agent?: string;
5580
+ }
5581
+ interface ShopifyCustomer {
5582
+ readonly id: number;
5583
+ readonly addresses: io.flow.shopify.external.v0.models.ShopifyCustomerAddress[];
5584
+ readonly created_at: string;
5585
+ readonly tags: string;
5586
+ readonly tax_exempt: boolean;
5587
+ readonly verified_email: boolean;
5588
+ readonly state: io.flow.shopify.external.v0.enums.ShopifyCustomerState;
5589
+ readonly accepts_marketing?: boolean;
5590
+ readonly default_address?: any;
5591
+ readonly email?: string;
5592
+ readonly first_name?: string;
5593
+ readonly last_name?: string;
5594
+ readonly last_order_id?: number;
5595
+ readonly last_order_name?: string;
5596
+ readonly note?: string;
5597
+ readonly orders_count?: number;
5598
+ readonly phone?: string;
5599
+ readonly total_spent?: string;
5600
+ readonly updated_at?: string;
5601
+ }
5602
+ interface ShopifyCustomerAddress {
5603
+ readonly id: number;
5604
+ readonly customer_id: number;
5605
+ readonly default: boolean;
5606
+ readonly address1?: string;
5607
+ readonly address2?: string;
5608
+ readonly city?: string;
5609
+ readonly company?: string;
5610
+ readonly first_name?: string;
5611
+ readonly last_name?: string;
5612
+ readonly name?: string;
5613
+ readonly phone?: string;
5614
+ readonly country?: string;
5615
+ readonly country_code?: string;
5616
+ readonly country_name?: string;
5617
+ readonly province?: string;
5618
+ readonly province_code?: string;
5619
+ readonly zip?: string;
5620
+ }
5621
+ interface ShopifyCustomerDelete {
5622
+ readonly id: number;
5623
+ }
5624
+ interface ShopifyCustomersResponseWrapper {
5625
+ readonly customers: io.flow.shopify.external.v0.models.ShopifyCustomer[];
5626
+ }
5627
+ interface ShopifyDiscountApplication {
5628
+ readonly type: string;
5629
+ readonly key: string;
5630
+ readonly title: string;
5631
+ readonly description?: string;
5632
+ readonly value: string;
5633
+ readonly created_at: string;
5634
+ readonly value_type: string;
5635
+ readonly allocation_method: string;
5636
+ readonly target_selection: string;
5637
+ readonly target_type: string;
5638
+ readonly total_allocated_amount: number;
5639
+ }
5640
+ interface ShopifyDiscountCode {
5641
+ readonly amount: string;
5642
+ readonly code: string;
5643
+ readonly type: io.flow.shopify.external.v0.enums.DiscountType;
5644
+ }
5645
+ interface ShopifyError {
5646
+ readonly errors: any;
5647
+ }
5648
+ interface ShopifyExternalCart {
5649
+ readonly token?: string;
5650
+ readonly note?: string;
5651
+ readonly attributes?: any;
5652
+ readonly items_subtotal_price?: number;
5653
+ readonly total_price: number;
5654
+ readonly total_weight: number;
5655
+ readonly total_discount: number;
5656
+ readonly original_total_price: number;
5657
+ readonly item_count: number;
5658
+ readonly requires_shipping: boolean;
5659
+ readonly currency?: string;
5660
+ readonly items: io.flow.shopify.external.v0.models.ShopifyExternalCartItem[];
5661
+ readonly cart_level_discount_applications?: io.flow.shopify.external.v0.models.ShopifyDiscountApplication[];
5662
+ }
5663
+ interface ShopifyExternalCartItem {
5664
+ readonly id: number;
5665
+ readonly title: string;
5666
+ readonly key?: string;
5667
+ readonly price: number;
5668
+ readonly line_price: number;
5669
+ readonly final_price: number;
5670
+ readonly final_line_price: number;
5671
+ readonly original_price: number;
5672
+ readonly original_line_price: number;
5673
+ readonly total_discount: number;
5674
+ readonly discounted_price: number;
5675
+ readonly discounts?: io.flow.shopify.external.v0.models.ShopifyCartItemDiscount[];
5676
+ readonly taxable: boolean;
5677
+ readonly quantity: number;
5678
+ readonly sku?: string;
5679
+ readonly grams?: number;
5680
+ readonly vendor?: string;
5681
+ readonly properties?: any;
5682
+ readonly variant_id?: number;
5683
+ readonly gift_card: boolean;
5684
+ readonly url: string;
5685
+ readonly image?: string;
5686
+ readonly handle: string;
5687
+ readonly requires_shipping: boolean;
5688
+ readonly product_id: number;
5689
+ readonly product_title: string;
5690
+ readonly product_description?: string;
5691
+ readonly product_type: string;
5692
+ readonly variant_title?: string;
5693
+ readonly variant_options?: string[];
5694
+ readonly line_level_discount_allocations?: io.flow.shopify.external.v0.models.ShopifyLineLevelDiscountAllocation[];
5695
+ }
5696
+ interface ShopifyFulfillment {
5697
+ readonly location_id: number;
5698
+ readonly created_at?: string;
5699
+ readonly id?: number;
5700
+ readonly line_items: io.flow.shopify.external.v0.models.ShopifyLineItem[];
5701
+ readonly order_id?: number;
5702
+ readonly receipt?: any;
5703
+ readonly status?: string;
5704
+ readonly tracking_company?: string;
5705
+ readonly tracking_number?: string;
5706
+ readonly tracking_numbers?: string[];
5707
+ readonly tracking_url?: string;
5708
+ readonly tracking_urls?: string[];
5709
+ readonly updated_at?: string;
5710
+ readonly notify_customer?: boolean;
5711
+ }
5712
+ interface ShopifyFulfillmentWrapper {
5713
+ readonly fulfillment: io.flow.shopify.external.v0.models.ShopifyFulfillment;
5714
+ }
5715
+ interface ShopifyGiftCard {
5716
+ readonly id: number;
5717
+ readonly balance: number;
5718
+ readonly currency: string;
5719
+ readonly initial_value: number;
5720
+ readonly last_characters: string;
5721
+ readonly created_at: string;
5722
+ readonly updated_at: string;
5723
+ readonly api_client_id?: number;
5724
+ readonly code?: string;
5725
+ readonly customer_id?: number;
5726
+ readonly disabled_at?: string;
5727
+ readonly expires_on?: string;
5728
+ readonly line_item_id?: number;
5729
+ readonly note?: string;
5730
+ readonly order_id?: number;
5731
+ readonly template_suffix?: string;
5732
+ readonly user_id?: number;
5733
+ }
5734
+ interface ShopifyGiftCardAdjustment {
5735
+ readonly id: number;
5736
+ readonly gift_card_id: number;
5737
+ readonly number: number;
5738
+ readonly amount: number;
5739
+ readonly created_at: string;
5740
+ readonly processed_at: string;
5741
+ readonly note?: string;
5742
+ readonly remote_transaction_ref?: string;
5743
+ readonly remote_transaction_url?: string;
5744
+ readonly api_client_id?: number;
5745
+ readonly user_id?: number;
5746
+ readonly order_transaction_id?: number;
5965
5747
  }
5966
- interface ResponsePriceRules {
5967
- readonly price_rules: io.flow.shopify.external.v0.models.PriceRule[];
5748
+ interface ShopifyGiftCardAdjustmentForm {
5749
+ readonly amount: number;
5750
+ readonly note?: string;
5751
+ readonly order_transaction_id?: number;
5752
+ readonly processed_at?: string;
5968
5753
  }
5969
- interface ResponseProduct {
5970
- readonly product: io.flow.shopify.external.v0.models.Product;
5754
+ interface ShopifyGiftCardAdjustmentFormWrapper {
5755
+ readonly adjustment: io.flow.shopify.external.v0.models.ShopifyGiftCardAdjustmentForm;
5971
5756
  }
5972
- interface ResponseProducts {
5973
- readonly products: io.flow.shopify.external.v0.models.Product[];
5757
+ interface ShopifyGiftCardAdjustmentResponseWrapper {
5758
+ readonly adjustment: io.flow.shopify.external.v0.models.ShopifyGiftCardAdjustment;
5974
5759
  }
5975
- interface ResponseShopifyGiftCard {
5976
- readonly gift_card: io.flow.shopify.external.v0.models.ShopifyGiftCard;
5760
+ interface ShopifyGiftCardAdjustmentsResponseWrapper {
5761
+ readonly adjustments: io.flow.shopify.external.v0.models.ShopifyGiftCardAdjustment[];
5977
5762
  }
5978
- interface ResponseShopifyGiftCards {
5979
- readonly gift_cards: io.flow.shopify.external.v0.models.ShopifyGiftCard[];
5763
+ interface ShopifyGiftCardForm {
5764
+ readonly initial_value: number;
5765
+ readonly code?: string;
5766
+ readonly note?: string;
5767
+ readonly template_suffix?: string;
5980
5768
  }
5981
- interface ResponseShopifyRefundSingle {
5982
- readonly refund: io.flow.shopify.external.v0.models.ShopifyRefund;
5769
+ interface ShopifyInventoryItem {
5770
+ readonly id: number;
5771
+ readonly tracked: boolean;
5772
+ readonly sku?: string;
5773
+ readonly cost?: string;
5774
+ readonly country_code_of_origin?: string;
5775
+ readonly created_at: string;
5776
+ readonly updated_at?: string;
5983
5777
  }
5984
- interface ResponseShopifyTransaction {
5985
- readonly transactions: io.flow.shopify.external.v0.models.ShopifyTransaction[];
5778
+ interface ShopifyInventoryItemDelete {
5779
+ readonly id: number;
5986
5780
  }
5987
- interface ResponseShopifyTransactionSingle {
5988
- readonly transaction: io.flow.shopify.external.v0.models.ShopifyTransaction;
5781
+ interface ShopifyInventoryLevel {
5782
+ readonly inventory_item_id: number;
5783
+ readonly location_id: number;
5784
+ readonly updated_at: string;
5785
+ readonly available?: number;
5989
5786
  }
5990
- interface ResponseSmartCollection {
5991
- readonly smart_collections: io.flow.shopify.external.v0.models.SmartCollection[];
5787
+ interface ShopifyInventoryLevelDisconnect {
5788
+ readonly inventory_item_id: number;
5789
+ readonly location_id: number;
5992
5790
  }
5993
- interface ResponseVariant {
5994
- readonly variant: io.flow.shopify.external.v0.models.ProductVariant;
5791
+ interface ShopifyInventoryLevelResponseWrapper {
5792
+ readonly inventory_levels: io.flow.shopify.external.v0.models.ShopifyInventoryLevel[];
5995
5793
  }
5996
- interface Shop {
5794
+ interface ShopifyLineItem {
5997
5795
  readonly id: number;
5998
- readonly domain: string;
5999
- readonly myshopify_domain: string;
6000
- readonly name: string;
6001
- readonly primary_locale: string;
6002
- readonly currency: string;
6003
- readonly country_code: string;
6004
- }
6005
- interface ShopResponse {
6006
- readonly shop: io.flow.shopify.external.v0.models.Shop;
5796
+ readonly quantity: number;
5797
+ readonly fulfillable_quantity?: number;
5798
+ readonly fulfillment_service: string;
5799
+ readonly fulfillment_status?: io.flow.shopify.external.v0.enums.FulfillmentStatusType;
5800
+ readonly grams?: number;
5801
+ readonly price?: string;
5802
+ readonly product_id?: number;
5803
+ readonly requires_shipping: boolean;
5804
+ readonly sku?: string;
5805
+ readonly title?: string;
5806
+ readonly variant_id?: number;
5807
+ readonly variant_title?: string;
5808
+ readonly vendor?: string;
5809
+ readonly name?: string;
5810
+ readonly gift_card: boolean;
5811
+ readonly properties: io.flow.shopify.external.v0.models.ShopifyProperty[];
5812
+ readonly taxable: boolean;
5813
+ readonly tax_lines: io.flow.shopify.external.v0.models.ShopifyTaxLine[];
5814
+ readonly total_discount?: string;
6007
5815
  }
6008
- interface ShopifyAddress {
5816
+ interface ShopifyLineItemForm {
5817
+ readonly fulfillable_quantity?: number;
5818
+ readonly fulfillment_service: string;
5819
+ readonly fulfillment_status?: io.flow.shopify.external.v0.enums.FulfillmentStatusType;
5820
+ readonly grams?: number;
5821
+ readonly price?: string;
5822
+ readonly product_id?: number;
5823
+ readonly quantity?: number;
5824
+ readonly requires_shipping: boolean;
5825
+ readonly sku?: string;
5826
+ readonly title?: string;
5827
+ readonly variant_id?: number;
5828
+ readonly variant_title?: string;
5829
+ readonly vendor?: string;
5830
+ readonly name?: string;
5831
+ readonly gift_card: boolean;
5832
+ readonly properties?: io.flow.shopify.external.v0.models.ShopifyProperty[];
5833
+ readonly taxable: boolean;
5834
+ readonly tax_lines: io.flow.shopify.external.v0.models.ShopifyTaxLine[];
5835
+ readonly total_discount?: string;
6009
5836
  readonly id?: number;
5837
+ }
5838
+ interface ShopifyLineLevelDiscountAllocation {
5839
+ readonly amount: number;
5840
+ readonly discount_application: io.flow.shopify.external.v0.models.ShopifyDiscountApplication;
5841
+ }
5842
+ interface ShopifyLocation {
5843
+ readonly active: boolean;
6010
5844
  readonly address1?: string;
6011
5845
  readonly address2?: string;
6012
5846
  readonly city?: string;
6013
- readonly company?: string;
6014
5847
  readonly country?: string;
6015
5848
  readonly country_code?: string;
6016
- readonly default?: boolean;
6017
- readonly first_name?: string;
6018
- readonly last_name?: string;
6019
- readonly latitude?: number;
6020
- readonly longitude?: number;
6021
- readonly name?: string;
5849
+ readonly created_at: string;
5850
+ readonly id: number;
5851
+ readonly legacy: boolean;
5852
+ readonly name: string;
6022
5853
  readonly phone?: string;
6023
5854
  readonly province?: string;
6024
5855
  readonly province_code?: string;
5856
+ readonly updated_at?: string;
6025
5857
  readonly zip?: string;
5858
+ readonly localized_country_name?: string;
5859
+ readonly localized_province_name?: string;
6026
5860
  }
6027
- interface ShopifyAttribute {
6028
- readonly name: string;
6029
- readonly value: string;
5861
+ interface ShopifyLocationDelete {
5862
+ readonly id: number;
6030
5863
  }
6031
- interface ShopifyCartItemDiscount {
6032
- readonly amount: number;
6033
- readonly title: string;
5864
+ interface ShopifyLocationsResponseWrapper {
5865
+ readonly locations: io.flow.shopify.external.v0.models.ShopifyLocation[];
6034
5866
  }
6035
- interface ShopifyClientDetail {
6036
- readonly accept_language?: boolean;
6037
- readonly browser_height?: number;
5867
+ interface ShopifyOrder {
5868
+ readonly billing_address?: io.flow.shopify.external.v0.models.ShopifyAddress;
6038
5869
  readonly browser_ip?: string;
6039
- readonly browser_width?: number;
6040
- readonly session_hash?: string;
6041
- readonly user_agent?: string;
5870
+ readonly buyer_accepts_marketing: boolean;
5871
+ readonly cancel_reason?: io.flow.shopify.external.v0.enums.CancelReason;
5872
+ readonly cancelled_at?: string;
5873
+ readonly cart_token?: string;
5874
+ readonly client_details?: io.flow.shopify.external.v0.models.ShopifyClientDetail;
5875
+ readonly closed_at?: string;
5876
+ readonly created_at?: string;
5877
+ readonly currency?: string;
5878
+ readonly customer?: io.flow.shopify.external.v0.models.ShopifyOrderCustomer;
5879
+ readonly discount_codes: io.flow.shopify.external.v0.models.ShopifyDiscountCode[];
5880
+ readonly email?: string;
5881
+ readonly financial_status: io.flow.shopify.external.v0.enums.FinancialStatusType;
5882
+ readonly fulfillments: io.flow.shopify.external.v0.models.ShopifyFulfillment[];
5883
+ readonly fulfillment_status?: io.flow.shopify.external.v0.enums.FulfillmentStatusType;
5884
+ readonly id?: number;
5885
+ readonly landing_site?: string;
5886
+ readonly line_items: io.flow.shopify.external.v0.models.ShopifyLineItemForm[];
5887
+ readonly location_id?: number;
5888
+ readonly name?: string;
5889
+ readonly note?: string;
5890
+ readonly note_attributes: io.flow.shopify.external.v0.models.ShopifyAttribute[];
5891
+ readonly number?: number;
5892
+ readonly order_number?: number;
5893
+ readonly payment_gateway_names: string[];
5894
+ readonly processed_at?: string;
5895
+ readonly processing_method?: io.flow.shopify.external.v0.enums.ShopifyProcessingMethodType;
5896
+ readonly referring_site?: string;
5897
+ readonly refunds: io.flow.shopify.external.v0.models.ShopifyRefund[];
5898
+ readonly shipping_address?: io.flow.shopify.external.v0.models.ShopifyAddress;
5899
+ readonly shipping_lines: io.flow.shopify.external.v0.models.ShopifyShippingLine[];
5900
+ readonly source_name?: string;
5901
+ readonly subtotal_price?: string;
5902
+ readonly tags?: string;
5903
+ readonly tax_lines: io.flow.shopify.external.v0.models.ShopifyTaxLine[];
5904
+ readonly taxes_included: boolean;
5905
+ readonly token?: string;
5906
+ readonly total_discounts?: string;
5907
+ readonly total_line_items_price?: string;
5908
+ readonly total_price?: string;
5909
+ readonly total_tax?: string;
5910
+ readonly total_weight?: number;
5911
+ readonly updated_at?: string;
5912
+ readonly user_id?: number;
5913
+ readonly order_status_url?: string;
5914
+ readonly inventory_behaviour?: io.flow.shopify.external.v0.enums.InventoryBehaviour;
5915
+ readonly gateway?: string;
5916
+ readonly transactions?: io.flow.shopify.external.v0.models.ShopifyTransactionForm[];
5917
+ readonly send_receipt?: boolean;
5918
+ readonly metafields?: io.flow.shopify.external.v0.models.MetafieldForm[];
6042
5919
  }
6043
- interface ShopifyCustomer {
6044
- readonly id: number;
6045
- readonly addresses: io.flow.shopify.external.v0.models.ShopifyCustomerAddress[];
6046
- readonly created_at: string;
6047
- readonly tags: string;
6048
- readonly tax_exempt: boolean;
6049
- readonly verified_email: boolean;
6050
- readonly state: io.flow.shopify.external.v0.enums.ShopifyCustomerState;
6051
- readonly accepts_marketing?: boolean;
6052
- readonly default_address?: any;
5920
+ interface ShopifyOrderCount {
5921
+ readonly count: number;
5922
+ }
5923
+ interface ShopifyOrderCustomer {
6053
5924
  readonly email?: string;
6054
5925
  readonly first_name?: string;
6055
5926
  readonly last_name?: string;
6056
- readonly last_order_id?: number;
6057
- readonly last_order_name?: string;
6058
- readonly note?: string;
6059
- readonly orders_count?: number;
6060
5927
  readonly phone?: string;
6061
- readonly total_spent?: string;
6062
- readonly updated_at?: string;
6063
5928
  }
6064
- interface ShopifyCustomerAddress {
5929
+ interface ShopifyOrderWrapper {
5930
+ readonly order: io.flow.shopify.external.v0.models.ShopifyOrder;
5931
+ }
5932
+ interface ShopifyPaymentDetail {
5933
+ readonly avs_result_code?: string;
5934
+ readonly credit_card_bin?: string;
5935
+ readonly credit_card_company: string;
5936
+ readonly credit_card_number: string;
5937
+ readonly cvv_result_code?: string;
5938
+ }
5939
+ interface ShopifyProperty {
5940
+ readonly name: string;
5941
+ readonly value: any;
5942
+ }
5943
+ interface ShopifyRefund {
6065
5944
  readonly id: number;
6066
- readonly customer_id: number;
6067
- readonly default: boolean;
6068
- readonly address1?: string;
6069
- readonly address2?: string;
6070
- readonly city?: string;
6071
- readonly company?: string;
6072
- readonly first_name?: string;
6073
- readonly last_name?: string;
6074
- readonly name?: string;
6075
- readonly phone?: string;
6076
- readonly country?: string;
6077
- readonly country_code?: string;
6078
- readonly country_name?: string;
6079
- readonly province?: string;
6080
- readonly province_code?: string;
6081
- readonly zip?: string;
5945
+ readonly order_id: number;
5946
+ readonly created_at: string;
5947
+ readonly processed_at: string;
5948
+ readonly note?: string;
5949
+ readonly refund_line_items?: io.flow.shopify.external.v0.models.ShopifyRefundLineItem[];
5950
+ readonly restock?: boolean;
5951
+ readonly transactions?: io.flow.shopify.external.v0.models.ShopifyTransaction[];
5952
+ readonly user_id?: number;
6082
5953
  }
6083
- interface ShopifyCustomerDelete {
5954
+ interface ShopifyRefundForm {
5955
+ readonly note?: string;
5956
+ readonly discrepancy_reason?: io.flow.shopify.external.v0.enums.DiscrepancyReason;
5957
+ readonly refund_line_items: io.flow.shopify.external.v0.models.ShopifyRefundLineItemForm[];
5958
+ readonly transactions: io.flow.shopify.external.v0.models.ShopifyTransactionForm[];
5959
+ readonly currency: string;
5960
+ }
5961
+ interface ShopifyRefundLineItem {
6084
5962
  readonly id: number;
5963
+ readonly line_item: io.flow.shopify.external.v0.models.ShopifyLineItem;
5964
+ readonly line_item_id: number;
5965
+ readonly quantity: number;
5966
+ readonly restock_type: io.flow.shopify.external.v0.enums.RestockType;
5967
+ readonly location_id?: number;
5968
+ readonly subtotal?: number;
5969
+ readonly total_tax?: number;
6085
5970
  }
6086
- interface ShopifyCustomersResponseWrapper {
6087
- readonly customers: io.flow.shopify.external.v0.models.ShopifyCustomer[];
5971
+ interface ShopifyRefundLineItemForm {
5972
+ readonly line_item_id: number;
5973
+ readonly quantity: number;
5974
+ readonly restock_type: io.flow.shopify.external.v0.enums.RestockType;
5975
+ readonly location_id?: number;
6088
5976
  }
6089
- interface ShopifyDiscountApplication {
6090
- readonly type: string;
6091
- readonly key: string;
5977
+ interface ShopifyShippingLine {
5978
+ readonly code: string;
5979
+ readonly price: string;
5980
+ readonly source: string;
6092
5981
  readonly title: string;
6093
- readonly description?: string;
6094
- readonly value: string;
5982
+ readonly tax_lines: io.flow.shopify.external.v0.models.ShopifyTaxLine[];
5983
+ readonly carrier_identifier?: string;
5984
+ readonly requested_fulfillment_service_id?: string;
5985
+ }
5986
+ interface ShopifyTaxLine {
5987
+ readonly price: string;
5988
+ readonly rate: number;
5989
+ readonly title: string;
5990
+ }
5991
+ interface ShopifyTransaction {
5992
+ readonly id: number;
5993
+ readonly order_id: number;
5994
+ readonly amount: number;
5995
+ readonly kind: io.flow.shopify.external.v0.enums.KindType;
5996
+ readonly gateway: string;
5997
+ readonly currency: string;
5998
+ readonly status: io.flow.shopify.external.v0.enums.ShopifyTransactionStatus;
5999
+ readonly payment_details?: io.flow.shopify.external.v0.models.ShopifyPaymentDetail;
6000
+ readonly receipt: any;
6001
+ readonly authorization?: string;
6095
6002
  readonly created_at: string;
6096
- readonly value_type: string;
6097
- readonly allocation_method: string;
6098
- readonly target_selection: string;
6099
- readonly target_type: string;
6100
- readonly total_allocated_amount: number;
6003
+ readonly device_id?: number;
6004
+ readonly gift_card_id?: number;
6005
+ readonly source_name: string;
6006
+ readonly error_code?: io.flow.shopify.external.v0.enums.ShopifyTransactionErrorCode;
6007
+ readonly test: boolean;
6008
+ readonly parent_id?: number;
6009
+ readonly user_id?: number;
6101
6010
  }
6102
- interface ShopifyDiscountCode {
6103
- readonly amount: string;
6104
- readonly code: string;
6105
- readonly type: io.flow.shopify.external.v0.enums.DiscountType;
6011
+ interface ShopifyTransactionForm {
6012
+ readonly amount: number;
6013
+ readonly currency: string;
6014
+ readonly gateway: string;
6015
+ readonly kind: io.flow.shopify.external.v0.enums.KindType;
6016
+ readonly source: string;
6017
+ readonly authorization?: string;
6018
+ readonly gift_card_id?: number;
6019
+ readonly parent_id?: number;
6020
+ readonly receipt?: any;
6106
6021
  }
6107
- interface ShopifyError {
6108
- readonly errors: any;
6022
+ interface ShopifyTransactionGiftCardReceipt {
6023
+ readonly gift_card_id: number;
6024
+ readonly gift_card_last_characters: string;
6109
6025
  }
6110
- interface ShopifyExternalCart {
6111
- readonly token?: string;
6112
- readonly note?: string;
6113
- readonly attributes?: any;
6114
- readonly items_subtotal_price?: number;
6115
- readonly total_price: number;
6116
- readonly total_weight: number;
6117
- readonly total_discount: number;
6118
- readonly original_total_price: number;
6119
- readonly item_count: number;
6120
- readonly requires_shipping: boolean;
6121
- readonly currency?: string;
6122
- readonly items: io.flow.shopify.external.v0.models.ShopifyExternalCartItem[];
6123
- readonly cart_level_discount_applications?: io.flow.shopify.external.v0.models.ShopifyDiscountApplication[];
6026
+ interface ShopifyWebhookCustomersRedact {
6027
+ readonly shop_id: number;
6028
+ readonly shop_domain: string;
6029
+ readonly customer: io.flow.shopify.external.v0.models.ShopifyWebhookCustomersRedactCustomer;
6030
+ readonly orders_to_redact?: number[];
6124
6031
  }
6125
- interface ShopifyExternalCartItem {
6032
+ interface ShopifyWebhookCustomersRedactCustomer {
6126
6033
  readonly id: number;
6127
- readonly title: string;
6128
- readonly key?: string;
6129
- readonly price: number;
6130
- readonly line_price: number;
6131
- readonly final_price: number;
6132
- readonly final_line_price: number;
6133
- readonly original_price: number;
6134
- readonly original_line_price: number;
6135
- readonly total_discount: number;
6136
- readonly discounted_price: number;
6137
- readonly discounts?: io.flow.shopify.external.v0.models.ShopifyCartItemDiscount[];
6138
- readonly taxable: boolean;
6139
- readonly quantity: number;
6140
- readonly sku?: string;
6141
- readonly grams?: number;
6142
- readonly vendor?: string;
6143
- readonly properties?: any;
6144
- readonly variant_id?: number;
6145
- readonly gift_card: boolean;
6146
- readonly url: string;
6147
- readonly image?: string;
6148
- readonly handle: string;
6149
- readonly requires_shipping: boolean;
6150
- readonly product_id: number;
6151
- readonly product_title: string;
6152
- readonly product_description?: string;
6153
- readonly product_type: string;
6154
- readonly variant_title?: string;
6155
- readonly variant_options?: string[];
6156
- readonly line_level_discount_allocations?: io.flow.shopify.external.v0.models.ShopifyLineLevelDiscountAllocation[];
6034
+ readonly email?: string;
6035
+ readonly phone?: string;
6157
6036
  }
6158
- interface ShopifyFulfillment {
6159
- readonly location_id: number;
6160
- readonly created_at?: string;
6037
+ interface ShopifyWebhookOrder {
6161
6038
  readonly id?: number;
6162
- readonly line_items: io.flow.shopify.external.v0.models.ShopifyLineItem[];
6163
- readonly order_id?: number;
6164
- readonly receipt?: any;
6165
- readonly status?: string;
6166
- readonly tracking_company?: string;
6167
- readonly tracking_number?: string;
6168
- readonly tracking_numbers?: string[];
6169
- readonly tracking_url?: string;
6170
- readonly tracking_urls?: string[];
6171
- readonly updated_at?: string;
6172
- readonly notify_customer?: boolean;
6039
+ readonly line_items?: io.flow.shopify.external.v0.models.ShopifyWebhookOrderLineItem[];
6173
6040
  }
6174
- interface ShopifyFulfillmentWrapper {
6175
- readonly fulfillment: io.flow.shopify.external.v0.models.ShopifyFulfillment;
6041
+ interface ShopifyWebhookOrderCancelled {
6042
+ readonly id: number;
6176
6043
  }
6177
- interface ShopifyGiftCard {
6044
+ interface ShopifyWebhookOrderLineItem {
6045
+ readonly fulfillable_quantity?: number;
6046
+ readonly fulfillment_status?: io.flow.shopify.external.v0.enums.FulfillmentStatusType;
6047
+ readonly product_id?: number;
6048
+ readonly quantity?: number;
6049
+ readonly requires_shipping: boolean;
6050
+ readonly variant_id?: number;
6051
+ }
6052
+ interface ShopifyWebhookShopRedact {
6053
+ readonly shop_id: number;
6054
+ readonly shop_domain: string;
6055
+ }
6056
+ interface SmartCollection {
6178
6057
  readonly id: number;
6179
- readonly balance: number;
6180
- readonly currency: string;
6181
- readonly initial_value: number;
6182
- readonly last_characters: string;
6183
- readonly created_at: string;
6058
+ readonly handle: string;
6059
+ readonly title: string;
6184
6060
  readonly updated_at: string;
6185
- readonly api_client_id?: number;
6186
- readonly code?: string;
6187
- readonly customer_id?: number;
6188
- readonly disabled_at?: string;
6189
- readonly expires_on?: string;
6190
- readonly line_item_id?: number;
6191
- readonly note?: string;
6192
- readonly order_id?: number;
6193
- readonly template_suffix?: string;
6194
- readonly user_id?: number;
6195
6061
  }
6196
- interface ShopifyGiftCardAdjustment {
6197
- readonly id: number;
6198
- readonly gift_card_id: number;
6199
- readonly number: number;
6200
- readonly amount: number;
6062
+ interface Webhook {
6063
+ readonly address: string;
6201
6064
  readonly created_at: string;
6202
- readonly processed_at: string;
6203
- readonly note?: string;
6204
- readonly remote_transaction_ref?: string;
6205
- readonly remote_transaction_url?: string;
6206
- readonly api_client_id?: number;
6207
- readonly user_id?: number;
6208
- readonly order_transaction_id?: number;
6065
+ readonly format: io.flow.shopify.external.v0.enums.Format;
6066
+ readonly id: number;
6067
+ readonly topic: io.flow.shopify.external.v0.enums.Topic;
6068
+ readonly updated_at: string;
6069
+ readonly fields?: string[];
6070
+ readonly metafield_namespaces?: string[];
6071
+ }
6072
+ interface WebhookForm {
6073
+ readonly topic: io.flow.shopify.external.v0.enums.Topic;
6074
+ readonly address: string;
6075
+ readonly format: io.flow.shopify.external.v0.enums.Format;
6076
+ readonly metafield_namespaces?: string[];
6077
+ }
6078
+ interface WebhookFormWrapper {
6079
+ readonly webhook: io.flow.shopify.external.v0.models.WebhookForm;
6080
+ }
6081
+ interface WebhookResponseList {
6082
+ readonly webhooks: io.flow.shopify.external.v0.models.Webhook[];
6083
+ }
6084
+ interface WebhookResponseSingle {
6085
+ readonly webhook: io.flow.shopify.external.v0.models.Webhook;
6086
+ }
6087
+ }
6088
+ declare namespace io.flow.shopify.markets.v0.enums {
6089
+ type CancelReason = 'customer' | 'fraud' | 'inventory' | 'declined' | 'other';
6090
+ type ShopifyDiscrepancyReason = 'restock' | 'damage' | 'customer' | 'other';
6091
+ type ShopifyOrderCancelReason = 'customer' | 'fraud' | 'inventory' | 'declined' | 'other';
6092
+ type ShopifyOrderDiscountAllocationMethod = 'across' | 'each' | 'one';
6093
+ type ShopifyOrderDiscountApplicationTargetSelection = 'all' | 'entitled' | 'explicit';
6094
+ type ShopifyOrderDiscountApplicationTargetType = 'line_item' | 'shipping_line';
6095
+ type ShopifyOrderDiscountApplicationType = 'automatic' | 'discount_code' | 'manual' | 'script';
6096
+ type ShopifyOrderDiscountApplicationValueType = 'fixed_amount' | 'percentage';
6097
+ type ShopifyOrderDiscountType = 'fixed_amount' | 'percentage' | 'shipping';
6098
+ type ShopifyOrderFinancialStatusType = 'pending' | 'authorized' | 'partially_paid' | 'paid' | 'partially_refunded' | 'refunded' | 'voided';
6099
+ type ShopifyOrderFulfillmentShipmentStatus = 'label_printed' | 'label_purchased' | 'attempted_delivery' | 'ready_for_pickup' | 'confirmed' | 'in_transit' | 'out_for_delivery' | 'delivered' | 'failure';
6100
+ type ShopifyOrderFulfillmentStatus = 'pending' | 'open' | 'success' | 'cancelled' | 'error' | 'failure';
6101
+ type ShopifyOrderFulfillmentStatusType = 'fulfilled' | 'null' | 'partial';
6102
+ type ShopifyOrderInventoryBehaviour = 'bypass' | 'decrement_ignoring_policy' | 'decrement_obeying_policy';
6103
+ type ShopifyOrderKindType = 'authorization' | 'capture' | 'sale' | 'void' | 'refund';
6104
+ type ShopifyOrderProcessingMethodType = 'checkout' | 'direct' | 'manual' | 'offsite' | 'express';
6105
+ type ShopifyOrderRestockType = 'no_restock' | 'cancel' | 'return';
6106
+ type ShopifyOrderStatusType = 'open' | 'closed' | 'cancelled' | 'any';
6107
+ 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';
6108
+ type ShopifyOrderTransactionStatus = 'pending' | 'failure' | 'success' | 'error';
6109
+ type ShopifyOrderValueType = 'string' | 'integer';
6110
+ type ShopifyWebhookFormat = 'json' | 'xml';
6111
+ type ShopifyWebhookTopic = 'orders/cancelled' | 'orders/create' | 'orders/fulfilled' | 'orders/paid' | 'orders/partially_fulfilled' | 'orders/updated' | 'orders/delete' | 'orders/edited' | 'products/create' | 'products/delete' | 'products/update' | 'refunds/create' | 'fulfillment_events/create' | 'fulfillment_events/delete' | 'themes/create' | 'themes/publish' | 'themes/update';
6112
+ }
6113
+ declare namespace io.flow.shopify.markets.v0.models {
6114
+ interface ResponseShopifyTransactions {
6115
+ readonly transactions: io.flow.shopify.markets.v0.models.ShopifyOrderTransaction[];
6209
6116
  }
6210
- interface ShopifyGiftCardAdjustmentForm {
6211
- readonly amount: number;
6212
- readonly note?: string;
6213
- readonly order_transaction_id?: number;
6214
- readonly processed_at?: string;
6117
+ interface ShopifyCountryHarmonizedSystemCode {
6118
+ readonly country_code: string;
6119
+ readonly harmonized_system_code: string;
6215
6120
  }
6216
- interface ShopifyGiftCardAdjustmentFormWrapper {
6217
- readonly adjustment: io.flow.shopify.external.v0.models.ShopifyGiftCardAdjustmentForm;
6121
+ interface ShopifyError {
6122
+ readonly errors: any;
6218
6123
  }
6219
- interface ShopifyGiftCardAdjustmentResponseWrapper {
6220
- readonly adjustment: io.flow.shopify.external.v0.models.ShopifyGiftCardAdjustment;
6124
+ interface ShopifyFulfillmentOrder {
6125
+ readonly assigned_location_id: number;
6126
+ readonly line_items: io.flow.shopify.markets.v0.models.ShopifyFulfillmentOrderLineItem[];
6221
6127
  }
6222
- interface ShopifyGiftCardAdjustmentsResponseWrapper {
6223
- readonly adjustments: io.flow.shopify.external.v0.models.ShopifyGiftCardAdjustment[];
6128
+ interface ShopifyFulfillmentOrderLineItem {
6129
+ readonly line_item_id: number;
6224
6130
  }
6225
- interface ShopifyGiftCardForm {
6226
- readonly initial_value: number;
6227
- readonly code?: string;
6228
- readonly note?: string;
6229
- readonly template_suffix?: string;
6131
+ interface ShopifyFulfillmentOrdersWrapper {
6132
+ readonly fulfillment_orders: io.flow.shopify.markets.v0.models.ShopifyFulfillmentOrder[];
6230
6133
  }
6231
6134
  interface ShopifyInventoryItem {
6232
6135
  readonly id: number;
6233
- readonly tracked: boolean;
6234
- readonly sku?: string;
6235
- readonly cost?: string;
6136
+ readonly cost: number;
6236
6137
  readonly country_code_of_origin?: string;
6138
+ readonly country_harmonized_system_codes?: io.flow.shopify.markets.v0.models.ShopifyCountryHarmonizedSystemCode[];
6139
+ readonly harmonized_system_code?: string;
6140
+ readonly province_code_of_origin?: string;
6141
+ readonly sku: string;
6142
+ readonly tracked?: boolean;
6143
+ readonly requires_shipping: boolean;
6237
6144
  readonly created_at: string;
6238
- readonly updated_at?: string;
6239
- }
6240
- interface ShopifyInventoryItemDelete {
6241
- readonly id: number;
6242
- }
6243
- interface ShopifyInventoryLevel {
6244
- readonly inventory_item_id: number;
6245
- readonly location_id: number;
6246
6145
  readonly updated_at: string;
6247
- readonly available?: number;
6248
- }
6249
- interface ShopifyInventoryLevelDisconnect {
6250
- readonly inventory_item_id: number;
6251
- readonly location_id: number;
6252
6146
  }
6253
- interface ShopifyInventoryLevelResponseWrapper {
6254
- readonly inventory_levels: io.flow.shopify.external.v0.models.ShopifyInventoryLevel[];
6147
+ interface ShopifyInventoryItemForm {
6148
+ readonly harmonized_system_code?: string;
6149
+ readonly country_harmonized_system_codes?: io.flow.shopify.markets.v0.models.ShopifyCountryHarmonizedSystemCode[];
6255
6150
  }
6256
- interface ShopifyLineItem {
6257
- readonly id: number;
6258
- readonly quantity: number;
6259
- readonly fulfillable_quantity?: number;
6260
- readonly fulfillment_service: string;
6261
- readonly fulfillment_status?: io.flow.shopify.external.v0.enums.FulfillmentStatusType;
6262
- readonly grams?: number;
6263
- readonly price?: string;
6264
- readonly product_id?: number;
6265
- readonly requires_shipping: boolean;
6266
- readonly sku?: string;
6267
- readonly title?: string;
6268
- readonly variant_id?: number;
6269
- readonly variant_title?: string;
6270
- readonly vendor?: string;
6271
- readonly name?: string;
6272
- readonly gift_card: boolean;
6273
- readonly properties: io.flow.shopify.external.v0.models.ShopifyProperty[];
6274
- readonly taxable: boolean;
6275
- readonly tax_lines: io.flow.shopify.external.v0.models.ShopifyTaxLine[];
6276
- readonly total_discount?: string;
6151
+ interface ShopifyInventoryItemFormWrapper {
6152
+ readonly inventory_item: io.flow.shopify.markets.v0.models.ShopifyInventoryItemForm;
6277
6153
  }
6278
- interface ShopifyLineItemForm {
6279
- readonly fulfillable_quantity?: number;
6280
- readonly fulfillment_service: string;
6281
- readonly fulfillment_status?: io.flow.shopify.external.v0.enums.FulfillmentStatusType;
6282
- readonly grams?: number;
6283
- readonly price?: string;
6284
- readonly product_id?: number;
6285
- readonly quantity?: number;
6286
- readonly requires_shipping: boolean;
6287
- readonly sku?: string;
6288
- readonly title?: string;
6289
- readonly variant_id?: number;
6290
- readonly variant_title?: string;
6291
- readonly vendor?: string;
6292
- readonly name?: string;
6293
- readonly gift_card: boolean;
6294
- readonly properties?: io.flow.shopify.external.v0.models.ShopifyProperty[];
6295
- readonly taxable: boolean;
6296
- readonly tax_lines: io.flow.shopify.external.v0.models.ShopifyTaxLine[];
6297
- readonly total_discount?: string;
6298
- readonly id?: number;
6154
+ interface ShopifyInventoryItemWrapper {
6155
+ readonly inventory_item: io.flow.shopify.markets.v0.models.ShopifyInventoryItem;
6299
6156
  }
6300
- interface ShopifyLineLevelDiscountAllocation {
6301
- readonly amount: number;
6302
- readonly discount_application: io.flow.shopify.external.v0.models.ShopifyDiscountApplication;
6157
+ interface ShopifyInventoryItemsWrapper {
6158
+ readonly inventory_items: io.flow.shopify.markets.v0.models.ShopifyInventoryItem[];
6303
6159
  }
6304
6160
  interface ShopifyLocation {
6305
6161
  readonly active: boolean;
@@ -6320,231 +6176,392 @@ declare namespace io.flow.shopify.external.v0.models {
6320
6176
  readonly localized_country_name?: string;
6321
6177
  readonly localized_province_name?: string;
6322
6178
  }
6323
- interface ShopifyLocationDelete {
6324
- readonly id: number;
6325
- }
6326
6179
  interface ShopifyLocationsResponseWrapper {
6327
- readonly locations: io.flow.shopify.external.v0.models.ShopifyLocation[];
6180
+ readonly locations: io.flow.shopify.markets.v0.models.ShopifyLocation[];
6328
6181
  }
6329
6182
  interface ShopifyOrder {
6330
- readonly billing_address?: io.flow.shopify.external.v0.models.ShopifyAddress;
6183
+ readonly id: number;
6184
+ readonly order_number: number;
6185
+ readonly checkout_id: number;
6186
+ readonly checkout_token: string;
6187
+ readonly billing_address?: io.flow.shopify.markets.v0.models.ShopifyOrderAddress;
6331
6188
  readonly browser_ip?: string;
6332
6189
  readonly buyer_accepts_marketing: boolean;
6333
- readonly cancel_reason?: io.flow.shopify.external.v0.enums.CancelReason;
6190
+ readonly cancel_reason?: io.flow.shopify.markets.v0.enums.ShopifyOrderCancelReason;
6334
6191
  readonly cancelled_at?: string;
6335
6192
  readonly cart_token?: string;
6336
- readonly client_details?: io.flow.shopify.external.v0.models.ShopifyClientDetail;
6193
+ readonly client_details?: io.flow.shopify.markets.v0.models.ShopifyOrderClientDetail;
6337
6194
  readonly closed_at?: string;
6338
- readonly created_at?: string;
6339
- readonly currency?: string;
6340
- readonly customer?: io.flow.shopify.external.v0.models.ShopifyOrderCustomer;
6341
- readonly discount_codes: io.flow.shopify.external.v0.models.ShopifyDiscountCode[];
6195
+ readonly created_at: string;
6196
+ readonly currency: string;
6197
+ readonly total_discounts_set: io.flow.shopify.markets.v0.models.ShopifyOrderMoneySet;
6198
+ readonly current_total_discounts_set: io.flow.shopify.markets.v0.models.ShopifyOrderMoneySet;
6199
+ readonly total_duties_set?: io.flow.shopify.markets.v0.models.ShopifyOrderMoneySet;
6200
+ readonly current_total_duties_set?: io.flow.shopify.markets.v0.models.ShopifyOrderMoneySet;
6201
+ readonly original_total_duties_set?: io.flow.shopify.markets.v0.models.ShopifyOrderMoneySet;
6202
+ readonly total_price_set: io.flow.shopify.markets.v0.models.ShopifyOrderMoneySet;
6203
+ readonly current_total_price_set: io.flow.shopify.markets.v0.models.ShopifyOrderMoneySet;
6204
+ readonly subtotal_price_set: io.flow.shopify.markets.v0.models.ShopifyOrderMoneySet;
6205
+ readonly current_subtotal_price_set: io.flow.shopify.markets.v0.models.ShopifyOrderMoneySet;
6206
+ readonly total_tax_set: io.flow.shopify.markets.v0.models.ShopifyOrderMoneySet;
6207
+ readonly current_total_tax_set: io.flow.shopify.markets.v0.models.ShopifyOrderMoneySet;
6208
+ readonly total_line_items_price_set: io.flow.shopify.markets.v0.models.ShopifyOrderMoneySet;
6209
+ readonly customer: io.flow.shopify.markets.v0.models.ShopifyOrderCustomer;
6210
+ readonly customer_locale?: string;
6211
+ readonly discount_applications: io.flow.shopify.markets.v0.models.ShopifyOrderDiscountApplication[];
6212
+ readonly discount_codes: io.flow.shopify.markets.v0.models.ShopifyOrderDiscountCode[];
6342
6213
  readonly email?: string;
6343
- readonly financial_status: io.flow.shopify.external.v0.enums.FinancialStatusType;
6344
- readonly fulfillments: io.flow.shopify.external.v0.models.ShopifyFulfillment[];
6345
- readonly fulfillment_status?: io.flow.shopify.external.v0.enums.FulfillmentStatusType;
6346
- readonly id?: number;
6214
+ readonly financial_status: io.flow.shopify.markets.v0.enums.ShopifyOrderFinancialStatusType;
6215
+ readonly fulfillments: io.flow.shopify.markets.v0.models.ShopifyOrderFulfillment[];
6216
+ readonly fulfillment_status?: io.flow.shopify.markets.v0.enums.ShopifyOrderFulfillmentStatusType;
6347
6217
  readonly landing_site?: string;
6348
- readonly line_items: io.flow.shopify.external.v0.models.ShopifyLineItemForm[];
6218
+ readonly line_items: io.flow.shopify.markets.v0.models.ShopifyOrderLineItem[];
6349
6219
  readonly location_id?: number;
6350
- readonly name?: string;
6220
+ readonly name: string;
6351
6221
  readonly note?: string;
6352
- readonly note_attributes: io.flow.shopify.external.v0.models.ShopifyAttribute[];
6222
+ readonly note_attributes: io.flow.shopify.markets.v0.models.ShopifyOrderAttribute[];
6353
6223
  readonly number?: number;
6354
- readonly order_number?: number;
6355
6224
  readonly payment_gateway_names: string[];
6356
6225
  readonly processed_at?: string;
6357
- readonly processing_method?: io.flow.shopify.external.v0.enums.ShopifyProcessingMethodType;
6226
+ readonly processing_method?: io.flow.shopify.markets.v0.enums.ShopifyOrderProcessingMethodType;
6358
6227
  readonly referring_site?: string;
6359
- readonly refunds: io.flow.shopify.external.v0.models.ShopifyRefund[];
6360
- readonly shipping_address?: io.flow.shopify.external.v0.models.ShopifyAddress;
6361
- readonly shipping_lines: io.flow.shopify.external.v0.models.ShopifyShippingLine[];
6228
+ readonly refunds: io.flow.shopify.markets.v0.models.ShopifyOrderRefund[];
6229
+ readonly shipping_address?: io.flow.shopify.markets.v0.models.ShopifyOrderAddress;
6230
+ readonly shipping_lines: io.flow.shopify.markets.v0.models.ShopifyOrderShippingLine[];
6362
6231
  readonly source_name?: string;
6363
- readonly subtotal_price?: string;
6364
6232
  readonly tags?: string;
6365
- readonly tax_lines: io.flow.shopify.external.v0.models.ShopifyTaxLine[];
6233
+ readonly tax_lines: io.flow.shopify.markets.v0.models.ShopifyOrderTaxLine[];
6366
6234
  readonly taxes_included: boolean;
6367
6235
  readonly token?: string;
6368
- readonly total_discounts?: string;
6369
- readonly total_line_items_price?: string;
6370
- readonly total_price?: string;
6371
- readonly total_tax?: string;
6372
6236
  readonly total_weight?: number;
6373
6237
  readonly updated_at?: string;
6374
- readonly user_id?: number;
6375
- readonly order_status_url?: string;
6376
- readonly inventory_behaviour?: io.flow.shopify.external.v0.enums.InventoryBehaviour;
6377
- readonly gateway?: string;
6378
- readonly transactions?: io.flow.shopify.external.v0.models.ShopifyTransactionForm[];
6379
- readonly send_receipt?: boolean;
6380
- readonly metafields?: io.flow.shopify.external.v0.models.MetafieldForm[];
6238
+ readonly user_id?: number;
6239
+ readonly order_status_url?: string;
6240
+ readonly inventory_behaviour?: io.flow.shopify.markets.v0.enums.ShopifyOrderInventoryBehaviour;
6241
+ readonly gateway?: string;
6242
+ readonly transactions?: io.flow.shopify.markets.v0.models.ShopifyOrderTransaction[];
6243
+ readonly send_receipt?: boolean;
6244
+ readonly metafields?: io.flow.shopify.markets.v0.models.ShopifyOrderMetafield[];
6245
+ }
6246
+ interface ShopifyOrderAddress {
6247
+ readonly id?: number;
6248
+ readonly address1?: string;
6249
+ readonly address2?: string;
6250
+ readonly city?: string;
6251
+ readonly company?: string;
6252
+ readonly country?: string;
6253
+ readonly country_code?: string;
6254
+ readonly default?: boolean;
6255
+ readonly first_name?: string;
6256
+ readonly last_name?: string;
6257
+ readonly latitude?: number;
6258
+ readonly longitude?: number;
6259
+ readonly name?: string;
6260
+ readonly phone?: string;
6261
+ readonly province?: string;
6262
+ readonly province_code?: string;
6263
+ readonly zip?: string;
6264
+ }
6265
+ interface ShopifyOrderAttribute {
6266
+ readonly name: string;
6267
+ readonly value: string;
6268
+ }
6269
+ interface ShopifyOrderCancellationForm {
6270
+ readonly refund: io.flow.shopify.markets.v0.models.ShopifyRefund;
6271
+ }
6272
+ interface ShopifyOrderClientDetail {
6273
+ readonly accept_language?: string;
6274
+ readonly browser_height?: number;
6275
+ readonly browser_ip?: string;
6276
+ readonly browser_width?: number;
6277
+ readonly session_hash?: string;
6278
+ readonly user_agent?: string;
6279
+ }
6280
+ interface ShopifyOrderCustomer {
6281
+ readonly id?: number;
6282
+ readonly email?: string;
6283
+ readonly accepts_marketing?: boolean;
6284
+ readonly created_at?: string;
6285
+ readonly updated_at?: string;
6286
+ readonly first_name?: string;
6287
+ readonly last_name?: string;
6288
+ readonly orders_count?: number;
6289
+ readonly state?: string;
6290
+ readonly total_spent?: string;
6291
+ readonly last_order_id?: number;
6292
+ readonly note?: string;
6293
+ readonly verified_email?: boolean;
6294
+ readonly multipass_identifier?: string;
6295
+ readonly tax_exempt?: boolean;
6296
+ readonly tax_exemptions?: any[];
6297
+ readonly phone?: string;
6298
+ readonly tags?: string;
6299
+ readonly last_order_name?: string;
6300
+ readonly currency?: string;
6301
+ readonly addresses?: io.flow.shopify.markets.v0.models.ShopifyOrderAddress;
6302
+ readonly default_address?: io.flow.shopify.markets.v0.models.ShopifyOrderAddress;
6303
+ }
6304
+ interface ShopifyOrderDiscountAllocation {
6305
+ readonly amount: string;
6306
+ readonly discount_application_index: number;
6307
+ readonly amount_set: io.flow.shopify.markets.v0.models.ShopifyOrderMoneySet;
6308
+ }
6309
+ interface ShopifyOrderDiscountApplication {
6310
+ readonly type: io.flow.shopify.markets.v0.enums.ShopifyOrderDiscountApplicationType;
6311
+ readonly allocation_method: io.flow.shopify.markets.v0.enums.ShopifyOrderDiscountAllocationMethod;
6312
+ readonly code?: string;
6313
+ readonly description?: string;
6314
+ readonly target_selection: io.flow.shopify.markets.v0.enums.ShopifyOrderDiscountApplicationTargetSelection;
6315
+ readonly target_type: io.flow.shopify.markets.v0.enums.ShopifyOrderDiscountApplicationTargetType;
6316
+ readonly title?: string;
6317
+ readonly value: string;
6318
+ readonly value_type: io.flow.shopify.markets.v0.enums.ShopifyOrderDiscountApplicationValueType;
6319
+ }
6320
+ interface ShopifyOrderDiscountCode {
6321
+ readonly amount: string;
6322
+ readonly code: string;
6323
+ readonly type: io.flow.shopify.markets.v0.enums.ShopifyOrderDiscountType;
6324
+ }
6325
+ interface ShopifyOrderDuty {
6326
+ readonly id: string;
6327
+ readonly harmonized_system_code: string;
6328
+ readonly country_code_of_origin: string;
6329
+ readonly presentment_money: io.flow.shopify.markets.v0.models.ShopifyOrderMoney;
6330
+ readonly shop_money: io.flow.shopify.markets.v0.models.ShopifyOrderMoney;
6331
+ readonly tax_lines: io.flow.shopify.markets.v0.models.ShopifyOrderTaxLine[];
6332
+ }
6333
+ interface ShopifyOrderEdit {
6334
+ readonly id: number;
6335
+ readonly created_at: string;
6336
+ readonly notify_customer: boolean;
6337
+ readonly order_id: number;
6338
+ readonly staff_note: string;
6339
+ readonly user_id?: number;
6340
+ readonly line_items: io.flow.shopify.markets.v0.models.ShopifyOrderEditLineItems;
6341
+ readonly discounts: any;
6342
+ readonly shipping_lines: any;
6343
+ }
6344
+ interface ShopifyOrderEditLineItems {
6345
+ readonly additions: io.flow.shopify.markets.v0.models.ShopifyOrderEditLineItemsChange[];
6346
+ readonly removals: io.flow.shopify.markets.v0.models.ShopifyOrderEditLineItemsChange[];
6347
+ }
6348
+ interface ShopifyOrderEditLineItemsChange {
6349
+ readonly id: number;
6350
+ readonly delta: number;
6351
+ }
6352
+ interface ShopifyOrderEditWrapper {
6353
+ readonly order_edit: io.flow.shopify.markets.v0.models.ShopifyOrderEdit;
6354
+ }
6355
+ interface ShopifyOrderFulfillment {
6356
+ readonly created_at?: string;
6357
+ readonly id?: number;
6358
+ readonly line_items: io.flow.shopify.markets.v0.models.ShopifyOrderLineItem[];
6359
+ readonly location_id: number;
6360
+ readonly name: string;
6361
+ readonly notify_customer?: boolean;
6362
+ readonly order_id?: number;
6363
+ readonly receipt?: any;
6364
+ readonly service: string;
6365
+ readonly shipment_status?: io.flow.shopify.markets.v0.enums.ShopifyOrderFulfillmentShipmentStatus;
6366
+ readonly status?: io.flow.shopify.markets.v0.enums.ShopifyOrderFulfillmentStatus;
6367
+ readonly tracking_company?: string;
6368
+ readonly tracking_number?: string;
6369
+ readonly tracking_numbers?: string[];
6370
+ readonly tracking_urls?: string[];
6371
+ readonly updated_at?: string;
6372
+ readonly variant_inventory_management?: string;
6381
6373
  }
6382
- interface ShopifyOrderCount {
6383
- readonly count: number;
6374
+ interface ShopifyOrderLineItem {
6375
+ readonly fulfillable_quantity?: number;
6376
+ readonly fulfillment_service: string;
6377
+ readonly fulfillment_status?: io.flow.shopify.markets.v0.enums.ShopifyOrderFulfillmentStatusType;
6378
+ readonly grams?: number;
6379
+ readonly id: number;
6380
+ readonly price?: string;
6381
+ readonly price_set?: io.flow.shopify.markets.v0.models.ShopifyOrderMoneySet;
6382
+ readonly product_id?: number;
6383
+ readonly quantity: number;
6384
+ readonly requires_shipping: boolean;
6385
+ readonly sku?: string;
6386
+ readonly title?: string;
6387
+ readonly variant_id?: number;
6388
+ readonly variant_title?: string;
6389
+ readonly vendor?: string;
6390
+ readonly name?: string;
6391
+ readonly gift_card: boolean;
6392
+ readonly properties: io.flow.shopify.markets.v0.models.ShopifyOrderProperty[];
6393
+ readonly taxable: boolean;
6394
+ readonly tax_lines: io.flow.shopify.markets.v0.models.ShopifyOrderTaxLine[];
6395
+ readonly tip_payment_gateway?: string;
6396
+ readonly tip_payment_method?: string;
6397
+ readonly total_discount?: string;
6398
+ readonly total_discount_set?: io.flow.shopify.markets.v0.models.ShopifyOrderMoneySet;
6399
+ readonly discount_allocations?: io.flow.shopify.markets.v0.models.ShopifyOrderDiscountAllocation[];
6400
+ readonly origin_location?: io.flow.shopify.markets.v0.models.ShopifyOrderOriginLocation;
6401
+ readonly variant_inventory_management?: string;
6402
+ readonly product_exists?: boolean;
6403
+ readonly duties: io.flow.shopify.markets.v0.models.ShopifyOrderDuty[];
6384
6404
  }
6385
- interface ShopifyOrderCustomer {
6386
- readonly email?: string;
6387
- readonly first_name?: string;
6388
- readonly last_name?: string;
6389
- readonly phone?: string;
6405
+ interface ShopifyOrderMetafield {
6406
+ readonly id: number;
6407
+ readonly key: string;
6408
+ readonly namespace: string;
6409
+ readonly value: string;
6410
+ readonly value_type: io.flow.shopify.markets.v0.enums.ShopifyOrderValueType;
6411
+ readonly description?: string;
6412
+ readonly owner_id: number;
6413
+ readonly owner_resource: string;
6390
6414
  }
6391
- interface ShopifyOrderWrapper {
6392
- readonly order: io.flow.shopify.external.v0.models.ShopifyOrder;
6415
+ interface ShopifyOrderMetafieldForm {
6416
+ readonly key: string;
6417
+ readonly namespace: string;
6418
+ readonly value: string;
6419
+ readonly value_type: io.flow.shopify.markets.v0.enums.ShopifyOrderValueType;
6420
+ readonly description?: string;
6393
6421
  }
6394
- interface ShopifyPaymentDetail {
6422
+ interface ShopifyOrderMoney {
6423
+ readonly amount: number;
6424
+ readonly currency_code: string;
6425
+ }
6426
+ interface ShopifyOrderMoneySet {
6427
+ readonly shop_money: io.flow.shopify.markets.v0.models.ShopifyOrderMoney;
6428
+ readonly presentment_money: io.flow.shopify.markets.v0.models.ShopifyOrderMoney;
6429
+ }
6430
+ interface ShopifyOrderOriginLocation {
6431
+ readonly id: number;
6432
+ readonly country_code: string;
6433
+ readonly province_code: string;
6434
+ readonly name: string;
6435
+ readonly address1: string;
6436
+ readonly address2: string;
6437
+ readonly city: string;
6438
+ readonly zip: string;
6439
+ }
6440
+ interface ShopifyOrderPaymentDetail {
6395
6441
  readonly avs_result_code?: string;
6396
6442
  readonly credit_card_bin?: string;
6397
6443
  readonly credit_card_company: string;
6398
6444
  readonly credit_card_number: string;
6399
6445
  readonly cvv_result_code?: string;
6400
6446
  }
6401
- interface ShopifyProperty {
6447
+ interface ShopifyOrderProperty {
6402
6448
  readonly name: string;
6403
6449
  readonly value: any;
6404
6450
  }
6405
- interface ShopifyRefund {
6451
+ interface ShopifyOrderRefund {
6406
6452
  readonly id: number;
6407
6453
  readonly order_id: number;
6408
6454
  readonly created_at: string;
6409
6455
  readonly processed_at: string;
6410
6456
  readonly note?: string;
6411
- readonly refund_line_items?: io.flow.shopify.external.v0.models.ShopifyRefundLineItem[];
6457
+ readonly refund_line_items?: io.flow.shopify.markets.v0.models.ShopifyOrderRefundLineItem[];
6412
6458
  readonly restock?: boolean;
6413
- readonly transactions?: io.flow.shopify.external.v0.models.ShopifyTransaction[];
6459
+ readonly transactions?: io.flow.shopify.markets.v0.models.ShopifyOrderTransaction[];
6414
6460
  readonly user_id?: number;
6415
6461
  }
6416
- interface ShopifyRefundForm {
6417
- readonly note?: string;
6418
- readonly discrepancy_reason?: io.flow.shopify.external.v0.enums.DiscrepancyReason;
6419
- readonly refund_line_items: io.flow.shopify.external.v0.models.ShopifyRefundLineItemForm[];
6420
- readonly transactions: io.flow.shopify.external.v0.models.ShopifyTransactionForm[];
6421
- readonly currency: string;
6422
- }
6423
- interface ShopifyRefundLineItem {
6462
+ interface ShopifyOrderRefundLineItem {
6424
6463
  readonly id: number;
6425
- readonly line_item: io.flow.shopify.external.v0.models.ShopifyLineItem;
6464
+ readonly line_item: io.flow.shopify.markets.v0.models.ShopifyOrderLineItem;
6426
6465
  readonly line_item_id: number;
6427
6466
  readonly quantity: number;
6428
- readonly restock_type: io.flow.shopify.external.v0.enums.RestockType;
6467
+ readonly restock_type: io.flow.shopify.markets.v0.enums.ShopifyOrderRestockType;
6429
6468
  readonly location_id?: number;
6430
6469
  readonly subtotal?: number;
6431
6470
  readonly total_tax?: number;
6432
6471
  }
6433
- interface ShopifyRefundLineItemForm {
6434
- readonly line_item_id: number;
6435
- readonly quantity: number;
6436
- readonly restock_type: io.flow.shopify.external.v0.enums.RestockType;
6437
- readonly location_id?: number;
6438
- }
6439
- interface ShopifyShippingLine {
6440
- readonly code: string;
6472
+ interface ShopifyOrderShippingLine {
6473
+ readonly code?: string;
6441
6474
  readonly price: string;
6442
6475
  readonly source: string;
6443
6476
  readonly title: string;
6444
- readonly tax_lines: io.flow.shopify.external.v0.models.ShopifyTaxLine[];
6477
+ readonly tax_lines: io.flow.shopify.markets.v0.models.ShopifyOrderTaxLine[];
6445
6478
  readonly carrier_identifier?: string;
6446
6479
  readonly requested_fulfillment_service_id?: string;
6480
+ readonly price_set: io.flow.shopify.markets.v0.models.ShopifyOrderMoneySet;
6481
+ readonly discounted_price_set: io.flow.shopify.markets.v0.models.ShopifyOrderMoneySet;
6447
6482
  }
6448
- interface ShopifyTaxLine {
6449
- readonly price: string;
6483
+ interface ShopifyOrderTaxLine {
6484
+ readonly price_set: io.flow.shopify.markets.v0.models.ShopifyOrderMoneySet;
6450
6485
  readonly rate: number;
6451
6486
  readonly title: string;
6452
6487
  }
6453
- interface ShopifyTransaction {
6488
+ interface ShopifyOrderTransaction {
6454
6489
  readonly id: number;
6455
6490
  readonly order_id: number;
6456
6491
  readonly amount: number;
6457
- readonly kind: io.flow.shopify.external.v0.enums.KindType;
6492
+ readonly kind: io.flow.shopify.markets.v0.enums.ShopifyOrderKindType;
6458
6493
  readonly gateway: string;
6459
6494
  readonly currency: string;
6460
- readonly status: io.flow.shopify.external.v0.enums.ShopifyTransactionStatus;
6461
- readonly payment_details?: io.flow.shopify.external.v0.models.ShopifyPaymentDetail;
6495
+ readonly status: io.flow.shopify.markets.v0.enums.ShopifyOrderTransactionStatus;
6496
+ readonly payment_details?: io.flow.shopify.markets.v0.models.ShopifyOrderPaymentDetail;
6462
6497
  readonly receipt: any;
6463
6498
  readonly authorization?: string;
6464
6499
  readonly created_at: string;
6465
6500
  readonly device_id?: number;
6466
6501
  readonly gift_card_id?: number;
6467
6502
  readonly source_name: string;
6468
- readonly error_code?: io.flow.shopify.external.v0.enums.ShopifyTransactionErrorCode;
6503
+ readonly error_code?: io.flow.shopify.markets.v0.enums.ShopifyOrderTransactionErrorCode;
6469
6504
  readonly test: boolean;
6470
6505
  readonly parent_id?: number;
6471
6506
  readonly user_id?: number;
6472
6507
  }
6473
- interface ShopifyTransactionForm {
6474
- readonly amount: number;
6475
- readonly currency: string;
6476
- readonly gateway: string;
6477
- readonly kind: io.flow.shopify.external.v0.enums.KindType;
6478
- readonly source: string;
6479
- readonly authorization?: string;
6480
- readonly gift_card_id?: number;
6481
- readonly parent_id?: number;
6482
- readonly receipt?: any;
6508
+ interface ShopifyOrderWrapper {
6509
+ readonly order: io.flow.shopify.markets.v0.models.ShopifyOrder;
6483
6510
  }
6484
- interface ShopifyTransactionGiftCardReceipt {
6485
- readonly gift_card_id: number;
6486
- readonly gift_card_last_characters: string;
6511
+ interface ShopifyOrdersWrapper {
6512
+ readonly orders: io.flow.shopify.markets.v0.models.ShopifyOrder[];
6487
6513
  }
6488
- interface ShopifyWebhookCustomersRedact {
6489
- readonly shop_id: number;
6490
- readonly shop_domain: string;
6491
- readonly customer: io.flow.shopify.external.v0.models.ShopifyWebhookCustomersRedactCustomer;
6492
- readonly orders_to_redact?: number[];
6514
+ interface ShopifyRefund {
6515
+ readonly notify_x: boolean;
6516
+ readonly note?: string;
6517
+ readonly discrepancy_reason?: io.flow.shopify.markets.v0.enums.ShopifyDiscrepancyReason;
6518
+ readonly shipping: io.flow.shopify.markets.v0.models.ShopifyRefundShipping;
6519
+ readonly refund_line_items: io.flow.shopify.markets.v0.models.ShopifyRefundLineItem[];
6520
+ readonly transactions: io.flow.shopify.markets.v0.models.ShopifyRefundTransaction[];
6521
+ readonly currency: string;
6493
6522
  }
6494
- interface ShopifyWebhookCustomersRedactCustomer {
6495
- readonly id: number;
6496
- readonly email?: string;
6497
- readonly phone?: string;
6523
+ interface ShopifyRefundLineItem {
6524
+ readonly line_item_id: number;
6525
+ readonly quantity: number;
6526
+ readonly restock_type: io.flow.shopify.markets.v0.enums.ShopifyOrderRestockType;
6527
+ readonly location_id?: number;
6498
6528
  }
6499
- interface ShopifyWebhookOrder {
6500
- readonly id?: number;
6501
- readonly line_items?: io.flow.shopify.external.v0.models.ShopifyWebhookOrderLineItem[];
6529
+ interface ShopifyRefundShipping {
6530
+ readonly full_refund?: boolean;
6531
+ readonly amount?: number;
6502
6532
  }
6503
- interface ShopifyWebhookOrderCancelled {
6504
- readonly id: number;
6533
+ interface ShopifyRefundTransaction {
6534
+ readonly parent_id: number;
6535
+ readonly amount: string;
6536
+ readonly currency: string;
6537
+ readonly kind: string;
6538
+ readonly gateway: string;
6505
6539
  }
6506
- interface ShopifyWebhookOrderLineItem {
6507
- readonly fulfillable_quantity?: number;
6508
- readonly fulfillment_status?: io.flow.shopify.external.v0.enums.FulfillmentStatusType;
6509
- readonly product_id?: number;
6510
- readonly quantity?: number;
6511
- readonly requires_shipping: boolean;
6512
- readonly variant_id?: number;
6540
+ interface ShopifyWebhookRequest {
6541
+ readonly topic: io.flow.shopify.markets.v0.enums.ShopifyWebhookTopic;
6542
+ readonly address: string;
6543
+ readonly format: io.flow.shopify.markets.v0.enums.ShopifyWebhookFormat;
6513
6544
  }
6514
- interface ShopifyWebhookShopRedact {
6515
- readonly shop_id: number;
6516
- readonly shop_domain: string;
6545
+ interface ShopifyWebhookRequestWrapper {
6546
+ readonly webhook: io.flow.shopify.markets.v0.models.ShopifyWebhookRequest;
6517
6547
  }
6518
- interface SmartCollection {
6548
+ interface ShopifyWebhookResponse {
6519
6549
  readonly id: number;
6520
- readonly handle: string;
6521
- readonly title: string;
6522
- readonly updated_at: string;
6523
- }
6524
- interface Webhook {
6525
6550
  readonly address: string;
6551
+ readonly topic: io.flow.shopify.markets.v0.enums.ShopifyWebhookTopic;
6526
6552
  readonly created_at: string;
6527
- readonly format: io.flow.shopify.external.v0.enums.Format;
6528
- readonly id: number;
6529
- readonly topic: io.flow.shopify.external.v0.enums.Topic;
6530
6553
  readonly updated_at: string;
6531
- readonly fields?: string[];
6532
- readonly metafield_namespaces?: string[];
6533
- }
6534
- interface WebhookForm {
6535
- readonly topic: io.flow.shopify.external.v0.enums.Topic;
6536
- readonly address: string;
6537
- readonly format: io.flow.shopify.external.v0.enums.Format;
6538
- readonly metafield_namespaces?: string[];
6539
- }
6540
- interface WebhookFormWrapper {
6541
- readonly webhook: io.flow.shopify.external.v0.models.WebhookForm;
6554
+ readonly format: io.flow.shopify.markets.v0.enums.ShopifyWebhookFormat;
6555
+ readonly fields: any[];
6556
+ readonly metafield_namespaces: any[];
6557
+ readonly api_version: string;
6558
+ readonly private_metafield_namespaces: any[];
6542
6559
  }
6543
- interface WebhookResponseList {
6544
- readonly webhooks: io.flow.shopify.external.v0.models.Webhook[];
6560
+ interface ShopifyWebhookResponseWrapper {
6561
+ readonly webhook: io.flow.shopify.markets.v0.models.ShopifyWebhookResponse;
6545
6562
  }
6546
- interface WebhookResponseSingle {
6547
- readonly webhook: io.flow.shopify.external.v0.models.Webhook;
6563
+ interface ShopifyWebhooksResponseWrapper {
6564
+ readonly webhooks: io.flow.shopify.markets.v0.models.ShopifyWebhookResponse[];
6548
6565
  }
6549
6566
  }
6550
6567
  declare namespace io.flow.pricing.indicator.internal.event.v0.enums {
@@ -6721,6 +6738,7 @@ declare namespace io.flow.svb.v0.models {
6721
6738
  }
6722
6739
  }
6723
6740
  declare namespace io.flow.payment.gateway.v0.enums {
6741
+ type InlineWindowViewportSize = 'xxx_small' | 'xx_small' | 'x_small' | 'small' | 'fullscreen' | 'responsive';
6724
6742
  type PaymentActionType = 'redirect' | 'use_sdk_klarna_v1' | 'use_sdk_applepay_js' | 'use_sdk_googlepay' | 'use_sdk_paypal' | 'use_sdk_stripe_v3' | 'use_sdk_adyen_v3' | 'use_sdk_adyen_v4' | 'execute_script' | 'display_inline_window';
6725
6743
  type PaymentFailureCode = 'action_expired' | 'action_cancelled' | 'action_failed' | 'authorization_declined' | 'not_supported' | 'fraudulent' | 'error';
6726
6744
  type PaymentStatus = 'requires_payment_method' | 'requires_action' | 'processing' | 'cancelled' | 'expired' | 'authorized' | 'reversed' | 'captured' | 'refunded' | 'in_dispute' | 'charged_back';
@@ -6733,6 +6751,7 @@ declare namespace io.flow.payment.gateway.v0.models {
6733
6751
  readonly method: string;
6734
6752
  readonly url: string;
6735
6753
  readonly data?: any;
6754
+ readonly window_size?: io.flow.payment.gateway.v0.enums.InlineWindowViewportSize;
6736
6755
  }
6737
6756
  interface ActionExecuteScript {
6738
6757
  readonly type: 'execute_script';
@@ -7305,7 +7324,6 @@ declare namespace io.flow.crypto.v0.models {
7305
7324
  readonly recipient: string;
7306
7325
  readonly refunded: boolean;
7307
7326
  readonly status: io.flow.crypto.v0.enums.PaymentStatus;
7308
- readonly time_window: number;
7309
7327
  }
7310
7328
  interface PaymentRequest {
7311
7329
  readonly amount: number;
@@ -13097,7 +13115,7 @@ declare namespace io.flow.internal.v0.models {
13097
13115
  readonly id: string;
13098
13116
  readonly fraud_review_id: string;
13099
13117
  readonly order: io.flow.experience.v0.models.OrderReference;
13100
- readonly fraud_order_reference: io.flow.fraud.v0.unions.FraudOrderReference;
13118
+ readonly fraud_order_reference?: io.flow.fraud.v0.unions.FraudOrderReference;
13101
13119
  readonly recommended_status: io.flow.fraud.v0.enums.FraudStatus;
13102
13120
  readonly apply_at?: string;
13103
13121
  readonly liability?: io.flow.fraud.v0.enums.FraudLiability;
@@ -13132,7 +13150,7 @@ declare namespace io.flow.internal.v0.models {
13132
13150
  readonly id: string;
13133
13151
  readonly organization_id: string;
13134
13152
  readonly order: io.flow.experience.v0.models.OrderReference;
13135
- readonly fraud_order_reference: io.flow.fraud.v0.unions.FraudOrderReference;
13153
+ readonly fraud_order_reference?: io.flow.fraud.v0.unions.FraudOrderReference;
13136
13154
  readonly status: io.flow.fraud.v0.enums.FraudStatus;
13137
13155
  readonly responsible_party: io.flow.internal.v0.enums.FraudReviewResponsibleParty;
13138
13156
  readonly description?: string;
@@ -13146,7 +13164,7 @@ declare namespace io.flow.internal.v0.models {
13146
13164
  readonly id: string;
13147
13165
  readonly fraud_review_id: string;
13148
13166
  readonly order: io.flow.experience.v0.models.OrderReference;
13149
- readonly fraud_order_reference: io.flow.fraud.v0.unions.FraudOrderReference;
13167
+ readonly fraud_order_reference?: io.flow.fraud.v0.unions.FraudOrderReference;
13150
13168
  readonly status: io.flow.fraud.v0.enums.FraudStatus;
13151
13169
  readonly created_at: string;
13152
13170
  readonly liability?: io.flow.fraud.v0.enums.FraudLiability;
@@ -14979,6 +14997,10 @@ declare namespace io.flow.internal.v0.models {
14979
14997
  readonly localized_feed_count?: number;
14980
14998
  readonly connected_at?: string;
14981
14999
  }
15000
+ interface MarketsOrder {
15001
+ readonly shopify_order: io.flow.shopify.markets.v0.models.ShopifyOrder;
15002
+ readonly flow_authorization: io.flow.payment.v0.unions.Authorization;
15003
+ }
14982
15004
  interface MerchantOfRecordEntitySettings {
14983
15005
  readonly id: string;
14984
15006
  readonly merchant_of_record_entity: io.flow.common.v0.models.MerchantOfRecordEntity;
@@ -16285,6 +16307,25 @@ declare namespace io.flow.internal.v0.models {
16285
16307
  interface ShopifyGrantsCheck {
16286
16308
  readonly placeholder: string;
16287
16309
  }
16310
+ interface ShopifyMarketsShop {
16311
+ readonly id: string;
16312
+ readonly domain: string;
16313
+ readonly myshopify_domain: string;
16314
+ readonly organization_id: string;
16315
+ readonly shop: string;
16316
+ readonly created_at: string;
16317
+ readonly api_key_masked: string;
16318
+ readonly api_password_masked: string;
16319
+ readonly shared_secret_masked: string;
16320
+ }
16321
+ interface ShopifyMarketsShopForm {
16322
+ readonly shop: string;
16323
+ readonly domain: string;
16324
+ readonly myshopify_domain: string;
16325
+ readonly api_key: string;
16326
+ readonly api_password: string;
16327
+ readonly shared_secret: string;
16328
+ }
16288
16329
  interface ShopifyOrderAuthorization {
16289
16330
  readonly result: io.flow.payment.v0.models.AuthorizationResult;
16290
16331
  readonly detail?: io.flow.internal.v0.models.ShopifyOrderDetail;
@@ -16449,25 +16490,6 @@ declare namespace io.flow.internal.v0.models {
16449
16490
  readonly address: string;
16450
16491
  readonly topic: io.flow.shopify.external.v0.enums.Topic;
16451
16492
  }
16452
- interface ShopifyXborderShop {
16453
- readonly id: string;
16454
- readonly domain: string;
16455
- readonly myshopify_domain: string;
16456
- readonly organization_id: string;
16457
- readonly shop: string;
16458
- readonly created_at: string;
16459
- readonly api_key_masked: string;
16460
- readonly api_password_masked: string;
16461
- readonly shared_secret_masked: string;
16462
- }
16463
- interface ShopifyXborderShopForm {
16464
- readonly shop: string;
16465
- readonly domain: string;
16466
- readonly myshopify_domain: string;
16467
- readonly api_key: string;
16468
- readonly api_password: string;
16469
- readonly shared_secret: string;
16470
- }
16471
16493
  interface SimplifiedItemLabel {
16472
16494
  readonly discriminator: 'item';
16473
16495
  readonly item_type: string;
@@ -17117,6 +17139,15 @@ declare namespace io.flow.internal.v0.models {
17117
17139
  interface UserStatusForm {
17118
17140
  readonly status: io.flow.common.v0.enums.UserStatus;
17119
17141
  }
17142
+ interface UserStatusRule {
17143
+ readonly id: string;
17144
+ readonly domain: string;
17145
+ readonly status: io.flow.common.v0.enums.UserStatus;
17146
+ }
17147
+ interface UserStatusRuleForm {
17148
+ readonly domain: string;
17149
+ readonly status: io.flow.common.v0.enums.UserStatus;
17150
+ }
17120
17151
  interface UserUpsertedV2 {
17121
17152
  readonly discriminator: 'user_upserted_v2';
17122
17153
  readonly event_id: string;
@@ -17197,10 +17228,6 @@ declare namespace io.flow.internal.v0.models {
17197
17228
  readonly discriminator: 'whole_order_action_form';
17198
17229
  readonly action: io.flow.internal.v0.enums.OrderAction;
17199
17230
  }
17200
- interface XborderOrder {
17201
- readonly shopify_order: io.flow.shopify.xborder.v0.models.ShopifyOrder;
17202
- readonly flow_authorization: io.flow.payment.v0.unions.Authorization;
17203
- }
17204
17231
  }
17205
17232
  declare namespace io.flow.internal.v0.unions {
17206
17233
  type AuthorizationPayload = io.flow.internal.v0.models.ApplePayAuthorizationPayload | io.flow.internal.v0.models.PaypalAuthorizationPayload;
@@ -18538,6 +18565,7 @@ export declare type MarketingGatewaySchemaCompatibility = io.flow.internal.v0.en
18538
18565
  export declare type MarketingGatewaySchemaSummary = io.flow.internal.v0.models.MarketingGatewaySchemaSummary;
18539
18566
  export declare type MarketingGatewaySourceSummary = io.flow.internal.v0.unions.MarketingGatewaySourceSummary;
18540
18567
  export declare type MarketingGatewaySupportedChannelDetails = io.flow.internal.v0.models.MarketingGatewaySupportedChannelDetails;
18568
+ export declare type MarketsOrder = io.flow.internal.v0.models.MarketsOrder;
18541
18569
  export declare type MerchantOfRecordEntitySettings = io.flow.internal.v0.models.MerchantOfRecordEntitySettings;
18542
18570
  export declare type MerchantOfRecordEntitySettingsForm = io.flow.internal.v0.models.MerchantOfRecordEntitySettingsForm;
18543
18571
  export declare type NatureOfSale = io.flow.internal.v0.enums.NatureOfSale;
@@ -18792,6 +18820,8 @@ export declare type ShopifyGiftCardReversal = io.flow.internal.v0.models.Shopify
18792
18820
  export declare type ShopifyGiftCardReversalForm = io.flow.internal.v0.models.ShopifyGiftCardReversalForm;
18793
18821
  export declare type ShopifyGrantStatus = io.flow.internal.v0.enums.ShopifyGrantStatus;
18794
18822
  export declare type ShopifyGrantsCheck = io.flow.internal.v0.models.ShopifyGrantsCheck;
18823
+ export declare type ShopifyMarketsShop = io.flow.internal.v0.models.ShopifyMarketsShop;
18824
+ export declare type ShopifyMarketsShopForm = io.flow.internal.v0.models.ShopifyMarketsShopForm;
18795
18825
  export declare type ShopifyOrderAuthorization = io.flow.internal.v0.models.ShopifyOrderAuthorization;
18796
18826
  export declare type ShopifyOrderCancelForm = io.flow.internal.v0.models.ShopifyOrderCancelForm;
18797
18827
  export declare type ShopifyOrderCancelResponse = io.flow.internal.v0.models.ShopifyOrderCancelResponse;
@@ -18831,8 +18861,6 @@ export declare type ShopifyShopUpserted = io.flow.internal.v0.models.ShopifyShop
18831
18861
  export declare type ShopifyWebhook = io.flow.internal.v0.models.ShopifyWebhook;
18832
18862
  export declare type ShopifyWebhookEvent = io.flow.internal.v0.models.ShopifyWebhookEvent;
18833
18863
  export declare type ShopifyWebhookForm = io.flow.internal.v0.models.ShopifyWebhookForm;
18834
- export declare type ShopifyXborderShop = io.flow.internal.v0.models.ShopifyXborderShop;
18835
- export declare type ShopifyXborderShopForm = io.flow.internal.v0.models.ShopifyXborderShopForm;
18836
18864
  export declare type SignificanceAction = io.flow.internal.v0.enums.SignificanceAction;
18837
18865
  export declare type SimpleRoundingStrategy = io.flow.internal.v0.enums.SimpleRoundingStrategy;
18838
18866
  export declare type SimplifiedClassificationTaxonomy = io.flow.internal.v0.unions.SimplifiedClassificationTaxonomy;
@@ -18951,6 +18979,8 @@ export declare type UpsRegistrationForm = io.flow.internal.v0.models.UpsRegistra
18951
18979
  export declare type UserDeletedV2 = io.flow.internal.v0.models.UserDeletedV2;
18952
18980
  export declare type UserOneTimeToken = io.flow.internal.v0.models.UserOneTimeToken;
18953
18981
  export declare type UserStatusForm = io.flow.internal.v0.models.UserStatusForm;
18982
+ export declare type UserStatusRule = io.flow.internal.v0.models.UserStatusRule;
18983
+ export declare type UserStatusRuleForm = io.flow.internal.v0.models.UserStatusRuleForm;
18954
18984
  export declare type UserUpsertedV2 = io.flow.internal.v0.models.UserUpsertedV2;
18955
18985
  export declare type V1Checkout = io.flow.internal.v0.models.V1Checkout;
18956
18986
  export declare type V2Checkout = io.flow.internal.v0.models.V2Checkout;
@@ -18965,5 +18995,4 @@ export declare type WasteElectricalAndElectronicEquipmentComplianceData = io.flo
18965
18995
  export declare type WasteElectricalAndElectronicEquipmentComplianceForm = io.flow.internal.v0.models.WasteElectricalAndElectronicEquipmentComplianceForm;
18966
18996
  export declare type Webhook = io.flow.internal.v0.models.Webhook;
18967
18997
  export declare type WholeOrderActionForm = io.flow.internal.v0.models.WholeOrderActionForm;
18968
- export declare type XborderOrder = io.flow.internal.v0.models.XborderOrder;
18969
18998
  export {};