@flowio/types 11.12.4 → 11.14.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -232,6 +232,8 @@ declare namespace io.flow.experience.v0.enums {
232
232
  type ExperienceStatus = 'draft' | 'active' | 'archiving' | 'archived';
233
233
  type OrderErrorCode = 'generic_error' | 'order_item_not_available' | 'order_identifier_error' | 'authorization_invalid' | 'domestic_shipping_unavailable' | 'shipping_unavailable' | 'value_threshold_exceeded' | 'invalid_currency' | 'invalid_country' | 'invalid_region' | 'invalid_language' | 'item_out_of_stock' | 'gift_card_not_accepted' | 'total_changed';
234
234
  type OrderPaymentType = 'card' | 'online' | 'credit' | 'installment_plan' | 'cash_on_delivery';
235
+ type OrderRefundSummaryIncludes = 'duties' | 'vat' | 'shipping';
236
+ type OrderRefundSummaryPartialCharged = 'per_item' | 'for_order' | 'by_value_percentage' | 'by_quantity_percentage';
235
237
  type OrderStatus = 'open' | 'submitted';
236
238
  type OrderStorage = 'do_not_persist' | 'persist';
237
239
  type OrganizationPaymentMethodTag = 'deny';
@@ -882,6 +884,36 @@ declare namespace io.flow.experience.v0.models {
882
884
  readonly id: string;
883
885
  readonly number: string;
884
886
  }
887
+ interface OrderRefundSummary {
888
+ readonly currency: string;
889
+ readonly amounts: io.flow.experience.v0.models.OrderRefundSummaryAmounts;
890
+ }
891
+ interface OrderRefundSummaryAmounts {
892
+ readonly balance: number;
893
+ readonly item_subtotal: number;
894
+ readonly discount?: number;
895
+ readonly refund_total: number;
896
+ readonly shipping: number;
897
+ readonly vat: number;
898
+ readonly duty: number;
899
+ }
900
+ interface OrderRefundSummaryFullForm {
901
+ readonly discriminator: 'order_refund_summary_full_form';
902
+ readonly includes: io.flow.experience.v0.enums.OrderRefundSummaryIncludes[];
903
+ }
904
+ interface OrderRefundSummaryItem {
905
+ readonly number: string;
906
+ readonly quantity_to_refund: number;
907
+ }
908
+ interface OrderRefundSummaryPartialForm {
909
+ readonly discriminator: 'order_refund_summary_partial_form';
910
+ readonly includes: io.flow.experience.v0.models.OrderRefundSummaryPartialIncludes[];
911
+ readonly items: io.flow.experience.v0.models.OrderRefundSummaryItem[];
912
+ }
913
+ interface OrderRefundSummaryPartialIncludes {
914
+ readonly key: io.flow.experience.v0.enums.OrderRefundSummaryIncludes;
915
+ readonly charged: io.flow.experience.v0.enums.OrderRefundSummaryPartialCharged;
916
+ }
885
917
  interface OrderRuleReference {
886
918
  readonly id: string;
887
919
  readonly key: string;
@@ -1035,6 +1067,7 @@ declare namespace io.flow.experience.v0.unions {
1035
1067
  type OrderNumberGenerator = io.flow.experience.v0.models.OrderNumberGeneratorUuid | io.flow.experience.v0.models.OrderNumberGeneratorHexadecimal | io.flow.experience.v0.models.OrderNumberGeneratorPrefixSuffix;
1036
1068
  type OrderPromotion = io.flow.experience.v0.models.FreeShippingOrderPromotion;
1037
1069
  type OrderPromotionForm = io.flow.experience.v0.models.FreeShippingOrderPromotionForm;
1070
+ type OrderRefundSummaryForm = io.flow.experience.v0.models.OrderRefundSummaryFullForm | io.flow.experience.v0.models.OrderRefundSummaryPartialForm;
1038
1071
  type PaymentMethodTag = {
1039
1072
  discriminator: 'organization_payment_method_tag';
1040
1073
  value: io.flow.experience.v0.enums.OrganizationPaymentMethodTag;
@@ -1376,63 +1409,6 @@ declare namespace io.flow.shopify.xborder.v0.models {
1376
1409
  interface ShopifyOrdersWrapper {
1377
1410
  readonly orders: io.flow.shopify.xborder.v0.models.ShopifyOrder[];
1378
1411
  }
1379
- interface ShopifyWebhookOrder {
1380
- readonly id: number;
1381
- readonly order_number: number;
1382
- readonly billing_address?: io.flow.shopify.xborder.v0.models.ShopifyOrderAddress;
1383
- readonly browser_ip?: string;
1384
- readonly buyer_accepts_marketing: boolean;
1385
- readonly cancel_reason?: io.flow.shopify.xborder.v0.enums.ShopifyOrderCancelReason;
1386
- readonly cancelled_at?: string;
1387
- readonly cart_token?: string;
1388
- readonly client_details?: io.flow.shopify.xborder.v0.models.ShopifyOrderClientDetail;
1389
- readonly closed_at?: string;
1390
- readonly created_at: string;
1391
- readonly currency: string;
1392
- readonly total_discounts_set: io.flow.shopify.xborder.v0.models.ShopifyOrderMoneySet;
1393
- readonly total_duties_set?: io.flow.shopify.xborder.v0.models.ShopifyOrderMoneySet;
1394
- readonly original_total_duties_set?: io.flow.shopify.xborder.v0.models.ShopifyOrderMoneySet;
1395
- readonly total_price_set: io.flow.shopify.xborder.v0.models.ShopifyOrderMoneySet;
1396
- readonly subtotal_price_set: io.flow.shopify.xborder.v0.models.ShopifyOrderMoneySet;
1397
- readonly total_tax_set: io.flow.shopify.xborder.v0.models.ShopifyOrderMoneySet;
1398
- readonly total_line_items_price_set: io.flow.shopify.xborder.v0.models.ShopifyOrderMoneySet;
1399
- readonly customer: io.flow.shopify.xborder.v0.models.ShopifyOrderCustomer;
1400
- readonly customer_locale?: string;
1401
- readonly discount_applications: io.flow.shopify.xborder.v0.models.ShopifyOrderDiscountApplication[];
1402
- readonly discount_codes: io.flow.shopify.xborder.v0.models.ShopifyOrderDiscountCode[];
1403
- readonly email?: string;
1404
- readonly financial_status: io.flow.shopify.xborder.v0.enums.ShopifyOrderFinancialStatusType;
1405
- readonly fulfillments: io.flow.shopify.xborder.v0.models.ShopifyOrderFulfillment[];
1406
- readonly fulfillment_status?: io.flow.shopify.xborder.v0.enums.ShopifyOrderFulfillmentStatusType;
1407
- readonly landing_site?: string;
1408
- readonly line_items: io.flow.shopify.xborder.v0.models.ShopifyOrderLineItem[];
1409
- readonly location_id?: number;
1410
- readonly name: string;
1411
- readonly note?: string;
1412
- readonly note_attributes: io.flow.shopify.xborder.v0.models.ShopifyOrderAttribute[];
1413
- readonly number?: number;
1414
- readonly payment_gateway_names: string[];
1415
- readonly processed_at?: string;
1416
- readonly processing_method?: io.flow.shopify.xborder.v0.enums.ShopifyOrderProcessingMethodType;
1417
- readonly referring_site?: string;
1418
- readonly refunds: io.flow.shopify.xborder.v0.models.ShopifyOrderRefund[];
1419
- readonly shipping_address?: io.flow.shopify.xborder.v0.models.ShopifyOrderAddress;
1420
- readonly shipping_lines?: io.flow.shopify.xborder.v0.models.ShopifyOrderShippingLine[];
1421
- readonly source_name?: string;
1422
- readonly tags?: string;
1423
- readonly tax_lines: io.flow.shopify.xborder.v0.models.ShopifyOrderTaxLine[];
1424
- readonly taxes_included: boolean;
1425
- readonly token?: string;
1426
- readonly total_weight?: number;
1427
- readonly updated_at?: string;
1428
- readonly user_id?: number;
1429
- readonly order_status_url?: string;
1430
- readonly inventory_behaviour?: io.flow.shopify.xborder.v0.enums.ShopifyOrderInventoryBehaviour;
1431
- readonly gateway?: string;
1432
- readonly transactions?: io.flow.shopify.xborder.v0.models.ShopifyOrderTransaction[];
1433
- readonly send_receipt?: boolean;
1434
- readonly metafields?: io.flow.shopify.xborder.v0.models.ShopifyOrderMetafield[];
1435
- }
1436
1412
  interface ShopifyWebhookRequest {
1437
1413
  readonly topic: io.flow.shopify.xborder.v0.enums.ShopifyWebhookTopic;
1438
1414
  readonly address: string;
@@ -8263,10 +8239,14 @@ declare namespace io.flow.label.internal.v0.models {
8263
8239
  readonly id: string;
8264
8240
  readonly carrier: io.flow.fulfillment.v0.models.CarrierReference;
8265
8241
  readonly credentials: io.flow.tracking.internal.v0.unions.CarrierCredentials;
8242
+ readonly q?: string;
8243
+ readonly position?: number;
8266
8244
  }
8267
8245
  interface CarrierAccountForm {
8268
8246
  readonly carrier_id: string;
8269
8247
  readonly credentials: io.flow.tracking.internal.v0.unions.CarrierCredentials;
8248
+ readonly q?: string;
8249
+ readonly position?: number;
8270
8250
  }
8271
8251
  interface CarrierInvoice {
8272
8252
  readonly number: string;
@@ -10612,6 +10592,7 @@ declare namespace io.flow.checkout.protocol.v0.enums {
10612
10592
  type CheckoutAddPaymentDetailsErrorCode = 'payment_failed' | 'authorization_form_not_supported' | 'authorization_invalid_amount' | 'authorization_invalid_currency' | 'authorization_amount_exceeds_balance' | 'address_street1_required';
10613
10593
  type CheckoutCreateAuthorizationDetailsErrorCode = 'checkout_not_found' | 'authorization_details_payment_not_found';
10614
10594
  type CheckoutCreateAuthorizationErrorCode = 'authorization_form_not_supported' | 'authorization_invalid_amount' | 'authorization_invalid_currency' | 'authorization_amount_exceeds_balance' | 'address_street1_required';
10595
+ type CheckoutCreateBySessionByOrderErrorCode = 'session_not_found' | 'session_experience_required' | 'country_not_supported' | 'order_not_found';
10615
10596
  type CheckoutCreateBySessionErrorCode = 'session_not_found' | 'session_experience_required' | 'country_not_supported';
10616
10597
  type CheckoutDeleteAddressStreetErrorCode = 'address_line_number_invalid';
10617
10598
  type CheckoutDeleteLineErrorCode = 'line_not_found';
@@ -10699,6 +10680,13 @@ declare namespace io.flow.checkout.protocol.v0.models {
10699
10680
  readonly code: io.flow.checkout.protocol.v0.enums.CheckoutCreateAuthorizationErrorCode;
10700
10681
  readonly message: string;
10701
10682
  }
10683
+ interface CheckoutCreateBySessionByOrderError {
10684
+ readonly code: io.flow.checkout.protocol.v0.enums.CheckoutCreateBySessionByOrderErrorCode;
10685
+ readonly message: string;
10686
+ }
10687
+ interface CheckoutCreateBySessionByOrderResponseError {
10688
+ readonly errors: io.flow.checkout.protocol.v0.models.CheckoutCreateBySessionByOrderError[];
10689
+ }
10702
10690
  interface CheckoutCreateBySessionError {
10703
10691
  readonly code: io.flow.checkout.protocol.v0.enums.CheckoutCreateBySessionErrorCode;
10704
10692
  readonly message: string;
@@ -12860,6 +12848,8 @@ declare namespace io.flow.checkout.backend.v0.enums {
12860
12848
  declare namespace io.flow.checkout.backend.v0.models {
12861
12849
  interface CheckoutAddress {
12862
12850
  readonly name?: string;
12851
+ readonly first_name?: string;
12852
+ readonly last_name?: string;
12863
12853
  readonly country?: string;
12864
12854
  readonly streets?: string[];
12865
12855
  readonly city?: string;
@@ -13209,6 +13199,9 @@ declare namespace io.flow.checkout.backend.v0.models {
13209
13199
  readonly contact: io.flow.checkout.backend.v0.models.CheckoutContact;
13210
13200
  readonly deliveries: io.flow.checkout.backend.v0.models.CheckoutOrderDeliveries;
13211
13201
  }
13202
+ interface CheckoutUrlParameters {
13203
+ readonly confirmation_url?: string;
13204
+ }
13212
13205
  interface InternalAvailableDelivery {
13213
13206
  readonly id: string;
13214
13207
  readonly items: io.flow.fulfillment.v0.models.DeliveryItem[];
@@ -13892,7 +13885,7 @@ declare namespace io.flow.internal.v0.enums {
13892
13885
  type BillingStatementReviewStatus = 'approved' | 'pending';
13893
13886
  type BillingTransactionStatus = 'pending' | 'posted';
13894
13887
  type BillingTransactionType = 'manual' | 'subscription' | 'invoice' | 'transfer' | 'adjustment' | 'capture' | 'refund' | 'virtual_card_capture' | 'virtual_card_refund' | 'tax_remittance' | 'fully_subsidized_order' | 'credit_payment';
13895
- type BlazeCheckoutStep = 'contact' | 'shipping' | 'delivery' | 'payment';
13888
+ type BlazeCheckoutStep = 'customer_info' | 'delivery' | 'payment';
13896
13889
  type BrowserBundleErrorCode = 'generic_error' | 'country_invalid';
13897
13890
  type CarrierLabelGenerationMethod = 'direct' | 'easypost';
13898
13891
  type CatalogImportType = 'catalog_items' | 'item_form_overlays' | 'item_prices' | 'price_book_items_import' | 'price_book_items_query_import';
@@ -13908,6 +13901,7 @@ declare namespace io.flow.internal.v0.enums {
13908
13901
  type CheckoutAssetType = 'stylesheet' | 'javascript';
13909
13902
  type CheckoutCreateAuthorizationDetailsErrorCode = 'checkout_not_found' | 'authorization_details_payment_not_found';
13910
13903
  type CheckoutCreateAuthorizationErrorCode = 'authorization_form_not_supported' | 'authorization_invalid_amount' | 'authorization_invalid_currency' | 'authorization_amount_exceeds_balance' | 'address_street1_required';
13904
+ type CheckoutCreateBySessionByOrderErrorCode = 'session_not_found' | 'session_experience_required' | 'country_not_supported' | 'order_not_found';
13911
13905
  type CheckoutCreateBySessionErrorCode = 'session_not_found' | 'session_experience_required' | 'country_not_supported';
13912
13906
  type CheckoutDeleteAddressStreetErrorCode = 'address_line_number_invalid';
13913
13907
  type CheckoutDeleteLineErrorCode = 'line_not_found';
@@ -14910,10 +14904,14 @@ declare namespace io.flow.internal.v0.models {
14910
14904
  readonly id: string;
14911
14905
  readonly carrier: io.flow.fulfillment.v0.models.CarrierReference;
14912
14906
  readonly credentials: io.flow.tracking.internal.v0.unions.CarrierCredentials;
14907
+ readonly q?: string;
14908
+ readonly position?: number;
14913
14909
  }
14914
14910
  interface CarrierAccountForm {
14915
14911
  readonly carrier_id: string;
14916
14912
  readonly credentials: io.flow.tracking.internal.v0.unions.CarrierCredentials;
14913
+ readonly q?: string;
14914
+ readonly position?: number;
14917
14915
  }
14918
14916
  interface CarrierAccountUpserted {
14919
14917
  readonly discriminator: 'carrier_account_upserted';
@@ -15044,6 +15042,8 @@ declare namespace io.flow.internal.v0.models {
15044
15042
  }
15045
15043
  interface CheckoutAddress {
15046
15044
  readonly name?: string;
15045
+ readonly first_name?: string;
15046
+ readonly last_name?: string;
15047
15047
  readonly country?: string;
15048
15048
  readonly streets?: string[];
15049
15049
  readonly city?: string;
@@ -15289,6 +15289,13 @@ declare namespace io.flow.internal.v0.models {
15289
15289
  readonly code: io.flow.internal.v0.enums.CheckoutCreateAuthorizationErrorCode;
15290
15290
  readonly message: string;
15291
15291
  }
15292
+ interface CheckoutCreateBySessionByOrderError {
15293
+ readonly code: io.flow.internal.v0.enums.CheckoutCreateBySessionByOrderErrorCode;
15294
+ readonly message: string;
15295
+ }
15296
+ interface CheckoutCreateBySessionByOrderResponseError {
15297
+ readonly errors: io.flow.internal.v0.models.CheckoutCreateBySessionByOrderError[];
15298
+ }
15292
15299
  interface CheckoutCreateBySessionError {
15293
15300
  readonly code: io.flow.internal.v0.enums.CheckoutCreateBySessionErrorCode;
15294
15301
  readonly message: string;
@@ -16448,6 +16455,9 @@ declare namespace io.flow.internal.v0.models {
16448
16455
  readonly url: string;
16449
16456
  readonly type: io.flow.internal.v0.enums.CheckoutUrlType;
16450
16457
  }
16458
+ interface CheckoutUrlParameters {
16459
+ readonly confirmation_url?: string;
16460
+ }
16451
16461
  interface Cipher {
16452
16462
  readonly id: string;
16453
16463
  readonly attributes: Record<string, string>;
@@ -20515,6 +20525,15 @@ declare namespace io.flow.internal.v0.models {
20515
20525
  readonly organization_id: string;
20516
20526
  readonly shop: string;
20517
20527
  readonly created_at: string;
20528
+ readonly api_key_masked: string;
20529
+ readonly api_password_masked: string;
20530
+ readonly shared_secret_masked: string;
20531
+ }
20532
+ interface ShopifyXborderShopForm {
20533
+ readonly shop: string;
20534
+ readonly api_key: string;
20535
+ readonly api_password: string;
20536
+ readonly shared_secret: string;
20518
20537
  }
20519
20538
  interface ShopifyCheckInventoryError {
20520
20539
  readonly code: io.flow.internal.v0.enums.ShopifyCheckInventoryErrorCode;
@@ -21841,6 +21860,9 @@ export declare type CheckoutCreateAuthorizationDetailsResponseError = io.flow.in
21841
21860
  export declare type CheckoutCreateAuthorizationDetailsResponseSuccess = io.flow.internal.v0.models.CheckoutCreateAuthorizationDetailsResponseSuccess;
21842
21861
  export declare type CheckoutCreateAuthorizationError = io.flow.internal.v0.models.CheckoutCreateAuthorizationError;
21843
21862
  export declare type CheckoutCreateAuthorizationErrorCode = io.flow.internal.v0.enums.CheckoutCreateAuthorizationErrorCode;
21863
+ export declare type CheckoutCreateBySessionByOrderError = io.flow.internal.v0.models.CheckoutCreateBySessionByOrderError;
21864
+ export declare type CheckoutCreateBySessionByOrderErrorCode = io.flow.internal.v0.enums.CheckoutCreateBySessionByOrderErrorCode;
21865
+ export declare type CheckoutCreateBySessionByOrderResponseError = io.flow.internal.v0.models.CheckoutCreateBySessionByOrderResponseError;
21844
21866
  export declare type CheckoutCreateBySessionError = io.flow.internal.v0.models.CheckoutCreateBySessionError;
21845
21867
  export declare type CheckoutCreateBySessionErrorCode = io.flow.internal.v0.enums.CheckoutCreateBySessionErrorCode;
21846
21868
  export declare type CheckoutCreateBySessionRequestForm = io.flow.internal.v0.models.CheckoutCreateBySessionRequestForm;
@@ -22198,6 +22220,7 @@ export declare type CheckoutSubmitOrderForm = io.flow.internal.v0.models.Checkou
22198
22220
  export declare type CheckoutSubmitOrderForms = io.flow.internal.v0.unions.CheckoutSubmitOrderForms;
22199
22221
  export declare type CheckoutSubmittedOrder = io.flow.internal.v0.models.CheckoutSubmittedOrder;
22200
22222
  export declare type CheckoutUrl = io.flow.internal.v0.models.CheckoutUrl;
22223
+ export declare type CheckoutUrlParameters = io.flow.internal.v0.models.CheckoutUrlParameters;
22201
22224
  export declare type CheckoutUrlType = io.flow.internal.v0.enums.CheckoutUrlType;
22202
22225
  export declare type Cipher = io.flow.internal.v0.models.Cipher;
22203
22226
  export declare type CipherForm = io.flow.internal.v0.models.CipherForm;
@@ -22923,6 +22946,7 @@ export declare type Shop = io.flow.internal.v0.models.Shop;
22923
22946
  export declare type ShopForm = io.flow.internal.v0.models.ShopForm;
22924
22947
  export declare type ShopVersion = io.flow.internal.v0.models.ShopVersion;
22925
22948
  export declare type ShopifyXborderShop = io.flow.internal.v0.models.ShopifyXborderShop;
22949
+ export declare type ShopifyXborderShopForm = io.flow.internal.v0.models.ShopifyXborderShopForm;
22926
22950
  export declare type ShopifyCheckInventoryError = io.flow.internal.v0.models.ShopifyCheckInventoryError;
22927
22951
  export declare type ShopifyCheckInventoryErrorCode = io.flow.internal.v0.enums.ShopifyCheckInventoryErrorCode;
22928
22952
  export declare type ShopifyCodeForm = io.flow.internal.v0.models.ShopifyCodeForm;
package/dist/api.d.ts CHANGED
@@ -901,8 +901,11 @@ declare namespace io.flow.v0.enums {
901
901
  type OrderPaymentType = 'card' | 'online' | 'credit' | 'installment_plan' | 'cash_on_delivery';
902
902
  type OrderPriceDetailComponentKey = 'adjustment' | 'vat_deminimis' | 'duty_deminimis' | 'duties_item_price' | 'duties_freight' | 'duties_insurance' | 'vat_item_price' | 'vat_freight' | 'vat_insurance' | 'vat_duties_item_price' | 'vat_duties_freight' | 'vat_duties_insurance' | 'item_price' | 'item_discount' | 'rounding' | 'insurance' | 'shipping' | 'shipping_discount' | 'order_discount' | 'subtotal_percent_sales_margin' | 'subtotal_vat_percent_sales_margin' | 'subtotal_duty_percent_sales_margin' | 'vat_subsidy' | 'duty_subsidy' | 'remote_area_surcharge' | 'fuel_surcharge' | 'emergency_situation_surcharge';
903
903
  type OrderPriceDetailKey = 'adjustment' | 'subtotal' | 'vat' | 'duty' | 'shipping' | 'insurance' | 'discount' | 'surcharges';
904
+ type OrderRefundSummaryIncludes = 'duties' | 'vat' | 'shipping';
905
+ type OrderRefundSummaryPartialCharged = 'per_item' | 'for_order' | 'by_value_percentage' | 'by_quantity_percentage';
904
906
  type OrderStatus = 'open' | 'submitted';
905
907
  type OrderStorage = 'do_not_persist' | 'persist';
908
+ type OrderType = 'standard' | 'replacement';
906
909
  type OrganizationPaymentMethodTag = 'deny';
907
910
  type OrganizationStatus = 'active' | 'inactive' | 'deactivated';
908
911
  type PaymentErrorCode = 'duplicate' | 'invalid_amount' | 'invalid_currency' | 'invalid_method' | 'invalid_order' | 'invalid_customer' | 'invalid_destination' | 'unknown';
@@ -1034,12 +1037,12 @@ declare namespace io.flow.v0.models {
1034
1037
  readonly type: 'add_payment_method';
1035
1038
  readonly expires_at?: string;
1036
1039
  readonly available_payment_methods: io.flow.v0.models.PaymentPaymentMethod[];
1037
- readonly payment_failure?: io.flow.v0.models.PaymentFailure;
1038
1040
  }
1039
1041
  interface ActionCapture {
1040
1042
  readonly type: 'capture';
1041
1043
  readonly expires_at?: string;
1042
1044
  readonly amount_awaiting_capture?: number;
1045
+ readonly currency?: string;
1043
1046
  }
1044
1047
  interface ActionDisplayInlineWindow {
1045
1048
  readonly type: 'display_inline_window';
@@ -4588,6 +4591,7 @@ declare namespace io.flow.v0.models {
4588
4591
  readonly discriminator: 'order';
4589
4592
  readonly id: string;
4590
4593
  readonly number: string;
4594
+ readonly order_type?: io.flow.v0.enums.OrderType;
4591
4595
  readonly merchant_of_record?: io.flow.v0.enums.OrderMerchantOfRecord;
4592
4596
  readonly experience?: io.flow.v0.unions.ExpandableExperience;
4593
4597
  readonly customer: io.flow.v0.models.OrderCustomer;
@@ -4887,6 +4891,7 @@ declare namespace io.flow.v0.models {
4887
4891
  readonly min?: io.flow.v0.models.Price;
4888
4892
  }
4889
4893
  interface OrderPutForm {
4894
+ readonly order_type?: io.flow.v0.enums.OrderType;
4890
4895
  readonly items: io.flow.v0.models.LineItemForm[];
4891
4896
  readonly customer?: io.flow.v0.models.OrderCustomerForm;
4892
4897
  readonly delivered_duty?: io.flow.v0.enums.DeliveredDuty;
@@ -4903,6 +4908,44 @@ declare namespace io.flow.v0.models {
4903
4908
  readonly id: string;
4904
4909
  readonly number: string;
4905
4910
  }
4911
+ interface OrderRefundSummary {
4912
+ readonly currency: string;
4913
+ readonly amounts: io.flow.v0.models.OrderRefundSummaryAmounts;
4914
+ }
4915
+ interface OrderRefundSummaryAmounts {
4916
+ readonly balance: number;
4917
+ readonly item_subtotal: number;
4918
+ readonly discount?: number;
4919
+ readonly refund_total: number;
4920
+ readonly shipping: number;
4921
+ readonly vat: number;
4922
+ readonly duty: number;
4923
+ }
4924
+ interface OrderRefundSummaryFullForm {
4925
+ readonly discriminator: 'order_refund_summary_full_form';
4926
+ readonly includes: io.flow.v0.enums.OrderRefundSummaryIncludes[];
4927
+ }
4928
+ interface OrderRefundSummaryItem {
4929
+ readonly number: string;
4930
+ readonly quantity_to_refund: number;
4931
+ }
4932
+ interface OrderRefundSummaryPartialForm {
4933
+ readonly discriminator: 'order_refund_summary_partial_form';
4934
+ readonly includes: io.flow.v0.models.OrderRefundSummaryPartialIncludes[];
4935
+ readonly items: io.flow.v0.models.OrderRefundSummaryItem[];
4936
+ }
4937
+ interface OrderRefundSummaryPartialIncludes {
4938
+ readonly key: io.flow.v0.enums.OrderRefundSummaryIncludes;
4939
+ readonly charged: io.flow.v0.enums.OrderRefundSummaryPartialCharged;
4940
+ }
4941
+ interface OrderReplacement {
4942
+ readonly id: string;
4943
+ readonly parent_order: io.flow.v0.models.Order;
4944
+ readonly replacement_order: io.flow.v0.models.Order;
4945
+ }
4946
+ interface OrderReplacementForm {
4947
+ readonly items?: io.flow.v0.models.LineItemForm[];
4948
+ }
4906
4949
  interface OrderRuleReference {
4907
4950
  readonly id: string;
4908
4951
  readonly key: string;
@@ -5334,7 +5377,7 @@ declare namespace io.flow.v0.models {
5334
5377
  readonly codes: io.flow.v0.enums.PaymentErrorCode[];
5335
5378
  }
5336
5379
  interface PaymentFailure {
5337
- readonly authorization_id: string;
5380
+ readonly authorization_id?: string;
5338
5381
  readonly failure_code: io.flow.v0.enums.PaymentFailureCode;
5339
5382
  readonly failure_message: string;
5340
5383
  }
@@ -5445,6 +5488,7 @@ declare namespace io.flow.v0.models {
5445
5488
  readonly type: 'card';
5446
5489
  readonly merchant_of_record: io.flow.v0.enums.MerchantOfRecord;
5447
5490
  readonly last_four: string;
5491
+ readonly card_type: io.flow.v0.enums.CardType;
5448
5492
  }
5449
5493
  interface PaymentMethodSummaryGooglepay {
5450
5494
  readonly type: 'googlepay';
@@ -5534,6 +5578,7 @@ declare namespace io.flow.v0.models {
5534
5578
  interface PaymentRequest {
5535
5579
  readonly id: string;
5536
5580
  readonly status: io.flow.v0.models.PaymentRequestStatus;
5581
+ readonly last_payment_failure?: io.flow.v0.models.PaymentFailure;
5537
5582
  readonly next_action?: io.flow.v0.unions.Action;
5538
5583
  readonly amount: number;
5539
5584
  readonly amount_refundable?: number;
@@ -7924,6 +7969,7 @@ declare namespace io.flow.v0.unions {
7924
7969
  type OrderNumberGenerator = io.flow.v0.models.OrderNumberGeneratorUuid | io.flow.v0.models.OrderNumberGeneratorHexadecimal | io.flow.v0.models.OrderNumberGeneratorPrefixSuffix;
7925
7970
  type OrderPromotion = io.flow.v0.models.FreeShippingOrderPromotion;
7926
7971
  type OrderPromotionForm = io.flow.v0.models.FreeShippingOrderPromotionForm;
7972
+ type OrderRefundSummaryForm = io.flow.v0.models.OrderRefundSummaryFullForm | io.flow.v0.models.OrderRefundSummaryPartialForm;
7927
7973
  type PartnerCenterFee = io.flow.v0.models.CommercialInvoiceFee | io.flow.v0.models.InboundCartonFee | io.flow.v0.models.OutboundCartonFee;
7928
7974
  type Payment = io.flow.v0.models.PaymentPaypal | io.flow.v0.models.PaymentCryptopay;
7929
7975
  type PaymentForm = io.flow.v0.models.MerchantOfRecordPaymentForm;
@@ -8738,6 +8784,17 @@ export declare type OrderPromotionForm = io.flow.v0.unions.OrderPromotionForm;
8738
8784
  export declare type OrderPromotionTrigger = io.flow.v0.models.OrderPromotionTrigger;
8739
8785
  export declare type OrderPutForm = io.flow.v0.models.OrderPutForm;
8740
8786
  export declare type OrderReference = io.flow.v0.models.OrderReference;
8787
+ export declare type OrderRefundSummary = io.flow.v0.models.OrderRefundSummary;
8788
+ export declare type OrderRefundSummaryAmounts = io.flow.v0.models.OrderRefundSummaryAmounts;
8789
+ export declare type OrderRefundSummaryForm = io.flow.v0.unions.OrderRefundSummaryForm;
8790
+ export declare type OrderRefundSummaryFullForm = io.flow.v0.models.OrderRefundSummaryFullForm;
8791
+ export declare type OrderRefundSummaryIncludes = io.flow.v0.enums.OrderRefundSummaryIncludes;
8792
+ export declare type OrderRefundSummaryItem = io.flow.v0.models.OrderRefundSummaryItem;
8793
+ export declare type OrderRefundSummaryPartialCharged = io.flow.v0.enums.OrderRefundSummaryPartialCharged;
8794
+ export declare type OrderRefundSummaryPartialForm = io.flow.v0.models.OrderRefundSummaryPartialForm;
8795
+ export declare type OrderRefundSummaryPartialIncludes = io.flow.v0.models.OrderRefundSummaryPartialIncludes;
8796
+ export declare type OrderReplacement = io.flow.v0.models.OrderReplacement;
8797
+ export declare type OrderReplacementForm = io.flow.v0.models.OrderReplacementForm;
8741
8798
  export declare type OrderRuleReference = io.flow.v0.models.OrderRuleReference;
8742
8799
  export declare type OrderRulesSummary = io.flow.v0.models.OrderRulesSummary;
8743
8800
  export declare type OrderServiceChange = io.flow.v0.models.OrderServiceChange;
@@ -8754,6 +8811,7 @@ export declare type OrderSummaryItem = io.flow.v0.models.OrderSummaryItem;
8754
8811
  export declare type OrderSummaryLevy = io.flow.v0.models.OrderSummaryLevy;
8755
8812
  export declare type OrderSummaryLineItem = io.flow.v0.models.OrderSummaryLineItem;
8756
8813
  export declare type OrderSummaryPriceDetail = io.flow.v0.models.OrderSummaryPriceDetail;
8814
+ export declare type OrderType = io.flow.v0.enums.OrderType;
8757
8815
  export declare type OrderUpserted = io.flow.v0.models.OrderUpserted;
8758
8816
  export declare type OrderUpsertedV2 = io.flow.v0.models.OrderUpsertedV2;
8759
8817
  export declare type OrderVersion = io.flow.v0.models.OrderVersion;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@flowio/types",
3
- "version": "11.12.4",
3
+ "version": "11.14.0",
4
4
  "description": "TypeScript type definitions for custom types found in Flow API",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -25,5 +25,5 @@
25
25
  "maintainers": [
26
26
  "Christian Muñoz <christian.munoz@flow.io>"
27
27
  ],
28
- "gitHead": "1b8fac5c9de3d7554d9755ad44bbd8b4a17de278"
28
+ "gitHead": "9769b7fb2d83cbbedf5b031b65d235cbea955967"
29
29
  }
@@ -351,6 +351,12 @@ declare namespace io.flow.experience.v0.enums {
351
351
  | 'credit'
352
352
  | 'installment_plan'
353
353
  | 'cash_on_delivery';
354
+ type OrderRefundSummaryIncludes = 'duties' | 'vat' | 'shipping';
355
+ type OrderRefundSummaryPartialCharged =
356
+ | 'per_item'
357
+ | 'for_order'
358
+ | 'by_value_percentage'
359
+ | 'by_quantity_percentage';
354
360
  type OrderStatus = 'open' | 'submitted';
355
361
  type OrderStorage = 'do_not_persist' | 'persist';
356
362
  type OrganizationPaymentMethodTag = 'deny';
@@ -1109,6 +1115,42 @@ declare namespace io.flow.experience.v0.models {
1109
1115
  readonly number: string;
1110
1116
  }
1111
1117
 
1118
+ interface OrderRefundSummary {
1119
+ readonly currency: string;
1120
+ readonly amounts: io.flow.experience.v0.models.OrderRefundSummaryAmounts;
1121
+ }
1122
+
1123
+ interface OrderRefundSummaryAmounts {
1124
+ readonly balance: number;
1125
+ readonly item_subtotal: number;
1126
+ readonly discount?: number;
1127
+ readonly refund_total: number;
1128
+ readonly shipping: number;
1129
+ readonly vat: number;
1130
+ readonly duty: number;
1131
+ }
1132
+
1133
+ interface OrderRefundSummaryFullForm {
1134
+ readonly discriminator: 'order_refund_summary_full_form';
1135
+ readonly includes: io.flow.experience.v0.enums.OrderRefundSummaryIncludes[];
1136
+ }
1137
+
1138
+ interface OrderRefundSummaryItem {
1139
+ readonly number: string;
1140
+ readonly quantity_to_refund: number;
1141
+ }
1142
+
1143
+ interface OrderRefundSummaryPartialForm {
1144
+ readonly discriminator: 'order_refund_summary_partial_form';
1145
+ readonly includes: io.flow.experience.v0.models.OrderRefundSummaryPartialIncludes[];
1146
+ readonly items: io.flow.experience.v0.models.OrderRefundSummaryItem[];
1147
+ }
1148
+
1149
+ interface OrderRefundSummaryPartialIncludes {
1150
+ readonly key: io.flow.experience.v0.enums.OrderRefundSummaryIncludes;
1151
+ readonly charged: io.flow.experience.v0.enums.OrderRefundSummaryPartialCharged;
1152
+ }
1153
+
1112
1154
  interface OrderRuleReference {
1113
1155
  readonly id: string;
1114
1156
  readonly key: string;
@@ -1299,6 +1341,9 @@ declare namespace io.flow.experience.v0.unions {
1299
1341
  | io.flow.experience.v0.models.OrderNumberGeneratorPrefixSuffix;
1300
1342
  type OrderPromotion = io.flow.experience.v0.models.FreeShippingOrderPromotion;
1301
1343
  type OrderPromotionForm = io.flow.experience.v0.models.FreeShippingOrderPromotionForm;
1344
+ type OrderRefundSummaryForm =
1345
+ | io.flow.experience.v0.models.OrderRefundSummaryFullForm
1346
+ | io.flow.experience.v0.models.OrderRefundSummaryPartialForm;
1302
1347
 
1303
1348
  type PaymentMethodTag =
1304
1349
  | {
@@ -1753,64 +1798,6 @@ declare namespace io.flow.shopify.xborder.v0.models {
1753
1798
  readonly orders: io.flow.shopify.xborder.v0.models.ShopifyOrder[];
1754
1799
  }
1755
1800
 
1756
- interface ShopifyWebhookOrder {
1757
- readonly id: number;
1758
- readonly order_number: number;
1759
- readonly billing_address?: io.flow.shopify.xborder.v0.models.ShopifyOrderAddress;
1760
- readonly browser_ip?: string;
1761
- readonly buyer_accepts_marketing: boolean;
1762
- readonly cancel_reason?: io.flow.shopify.xborder.v0.enums.ShopifyOrderCancelReason;
1763
- readonly cancelled_at?: string;
1764
- readonly cart_token?: string;
1765
- readonly client_details?: io.flow.shopify.xborder.v0.models.ShopifyOrderClientDetail;
1766
- readonly closed_at?: string;
1767
- readonly created_at: string;
1768
- readonly currency: string;
1769
- readonly total_discounts_set: io.flow.shopify.xborder.v0.models.ShopifyOrderMoneySet;
1770
- readonly total_duties_set?: io.flow.shopify.xborder.v0.models.ShopifyOrderMoneySet;
1771
- readonly original_total_duties_set?: io.flow.shopify.xborder.v0.models.ShopifyOrderMoneySet;
1772
- readonly total_price_set: io.flow.shopify.xborder.v0.models.ShopifyOrderMoneySet;
1773
- readonly subtotal_price_set: io.flow.shopify.xborder.v0.models.ShopifyOrderMoneySet;
1774
- readonly total_tax_set: io.flow.shopify.xborder.v0.models.ShopifyOrderMoneySet;
1775
- readonly total_line_items_price_set: io.flow.shopify.xborder.v0.models.ShopifyOrderMoneySet;
1776
- readonly customer: io.flow.shopify.xborder.v0.models.ShopifyOrderCustomer;
1777
- readonly customer_locale?: string;
1778
- readonly discount_applications: io.flow.shopify.xborder.v0.models.ShopifyOrderDiscountApplication[];
1779
- readonly discount_codes: io.flow.shopify.xborder.v0.models.ShopifyOrderDiscountCode[];
1780
- readonly email?: string;
1781
- readonly financial_status: io.flow.shopify.xborder.v0.enums.ShopifyOrderFinancialStatusType;
1782
- readonly fulfillments: io.flow.shopify.xborder.v0.models.ShopifyOrderFulfillment[];
1783
- readonly fulfillment_status?: io.flow.shopify.xborder.v0.enums.ShopifyOrderFulfillmentStatusType;
1784
- readonly landing_site?: string;
1785
- readonly line_items: io.flow.shopify.xborder.v0.models.ShopifyOrderLineItem[];
1786
- readonly location_id?: number;
1787
- readonly name: string;
1788
- readonly note?: string;
1789
- readonly note_attributes: io.flow.shopify.xborder.v0.models.ShopifyOrderAttribute[];
1790
- readonly number?: number;
1791
- readonly payment_gateway_names: string[];
1792
- readonly processed_at?: string;
1793
- readonly processing_method?: io.flow.shopify.xborder.v0.enums.ShopifyOrderProcessingMethodType;
1794
- readonly referring_site?: string;
1795
- readonly refunds: io.flow.shopify.xborder.v0.models.ShopifyOrderRefund[];
1796
- readonly shipping_address?: io.flow.shopify.xborder.v0.models.ShopifyOrderAddress;
1797
- readonly shipping_lines?: io.flow.shopify.xborder.v0.models.ShopifyOrderShippingLine[];
1798
- readonly source_name?: string;
1799
- readonly tags?: string;
1800
- readonly tax_lines: io.flow.shopify.xborder.v0.models.ShopifyOrderTaxLine[];
1801
- readonly taxes_included: boolean;
1802
- readonly token?: string;
1803
- readonly total_weight?: number;
1804
- readonly updated_at?: string;
1805
- readonly user_id?: number;
1806
- readonly order_status_url?: string;
1807
- readonly inventory_behaviour?: io.flow.shopify.xborder.v0.enums.ShopifyOrderInventoryBehaviour;
1808
- readonly gateway?: string;
1809
- readonly transactions?: io.flow.shopify.xborder.v0.models.ShopifyOrderTransaction[];
1810
- readonly send_receipt?: boolean;
1811
- readonly metafields?: io.flow.shopify.xborder.v0.models.ShopifyOrderMetafield[];
1812
- }
1813
-
1814
1801
  interface ShopifyWebhookRequest {
1815
1802
  readonly topic: io.flow.shopify.xborder.v0.enums.ShopifyWebhookTopic;
1816
1803
  readonly address: string;
@@ -10714,11 +10701,15 @@ declare namespace io.flow.label.internal.v0.models {
10714
10701
  readonly id: string;
10715
10702
  readonly carrier: io.flow.fulfillment.v0.models.CarrierReference;
10716
10703
  readonly credentials: io.flow.tracking.internal.v0.unions.CarrierCredentials;
10704
+ readonly q?: string;
10705
+ readonly position?: number;
10717
10706
  }
10718
10707
 
10719
10708
  interface CarrierAccountForm {
10720
10709
  readonly carrier_id: string;
10721
10710
  readonly credentials: io.flow.tracking.internal.v0.unions.CarrierCredentials;
10711
+ readonly q?: string;
10712
+ readonly position?: number;
10722
10713
  }
10723
10714
 
10724
10715
  interface CarrierInvoice {
@@ -13695,6 +13686,11 @@ declare namespace io.flow.checkout.protocol.v0.enums {
13695
13686
  | 'authorization_invalid_currency'
13696
13687
  | 'authorization_amount_exceeds_balance'
13697
13688
  | 'address_street1_required';
13689
+ type CheckoutCreateBySessionByOrderErrorCode =
13690
+ | 'session_not_found'
13691
+ | 'session_experience_required'
13692
+ | 'country_not_supported'
13693
+ | 'order_not_found';
13698
13694
  type CheckoutCreateBySessionErrorCode =
13699
13695
  | 'session_not_found'
13700
13696
  | 'session_experience_required'
@@ -13932,6 +13928,15 @@ declare namespace io.flow.checkout.protocol.v0.models {
13932
13928
  readonly message: string;
13933
13929
  }
13934
13930
 
13931
+ interface CheckoutCreateBySessionByOrderError {
13932
+ readonly code: io.flow.checkout.protocol.v0.enums.CheckoutCreateBySessionByOrderErrorCode;
13933
+ readonly message: string;
13934
+ }
13935
+
13936
+ interface CheckoutCreateBySessionByOrderResponseError {
13937
+ readonly errors: io.flow.checkout.protocol.v0.models.CheckoutCreateBySessionByOrderError[];
13938
+ }
13939
+
13935
13940
  interface CheckoutCreateBySessionError {
13936
13941
  readonly code: io.flow.checkout.protocol.v0.enums.CheckoutCreateBySessionErrorCode;
13937
13942
  readonly message: string;
@@ -16771,6 +16776,8 @@ declare namespace io.flow.checkout.backend.v0.enums {
16771
16776
  declare namespace io.flow.checkout.backend.v0.models {
16772
16777
  interface CheckoutAddress {
16773
16778
  readonly name?: string;
16779
+ readonly first_name?: string;
16780
+ readonly last_name?: string;
16774
16781
  readonly country?: string;
16775
16782
  readonly streets?: string[];
16776
16783
  readonly city?: string;
@@ -17192,6 +17199,10 @@ declare namespace io.flow.checkout.backend.v0.models {
17192
17199
  readonly deliveries: io.flow.checkout.backend.v0.models.CheckoutOrderDeliveries;
17193
17200
  }
17194
17201
 
17202
+ interface CheckoutUrlParameters {
17203
+ readonly confirmation_url?: string;
17204
+ }
17205
+
17195
17206
  interface InternalAvailableDelivery {
17196
17207
  readonly id: string;
17197
17208
  readonly items: io.flow.fulfillment.v0.models.DeliveryItem[];
@@ -18093,7 +18104,7 @@ declare namespace io.flow.internal.v0.enums {
18093
18104
  | 'tax_remittance'
18094
18105
  | 'fully_subsidized_order'
18095
18106
  | 'credit_payment';
18096
- type BlazeCheckoutStep = 'contact' | 'shipping' | 'delivery' | 'payment';
18107
+ type BlazeCheckoutStep = 'customer_info' | 'delivery' | 'payment';
18097
18108
  type BrowserBundleErrorCode = 'generic_error' | 'country_invalid';
18098
18109
  type CarrierLabelGenerationMethod = 'direct' | 'easypost';
18099
18110
  type CatalogImportType =
@@ -18144,6 +18155,11 @@ declare namespace io.flow.internal.v0.enums {
18144
18155
  | 'authorization_invalid_currency'
18145
18156
  | 'authorization_amount_exceeds_balance'
18146
18157
  | 'address_street1_required';
18158
+ type CheckoutCreateBySessionByOrderErrorCode =
18159
+ | 'session_not_found'
18160
+ | 'session_experience_required'
18161
+ | 'country_not_supported'
18162
+ | 'order_not_found';
18147
18163
  type CheckoutCreateBySessionErrorCode =
18148
18164
  | 'session_not_found'
18149
18165
  | 'session_experience_required'
@@ -19772,11 +19788,15 @@ declare namespace io.flow.internal.v0.models {
19772
19788
  readonly id: string;
19773
19789
  readonly carrier: io.flow.fulfillment.v0.models.CarrierReference;
19774
19790
  readonly credentials: io.flow.tracking.internal.v0.unions.CarrierCredentials;
19791
+ readonly q?: string;
19792
+ readonly position?: number;
19775
19793
  }
19776
19794
 
19777
19795
  interface CarrierAccountForm {
19778
19796
  readonly carrier_id: string;
19779
19797
  readonly credentials: io.flow.tracking.internal.v0.unions.CarrierCredentials;
19798
+ readonly q?: string;
19799
+ readonly position?: number;
19780
19800
  }
19781
19801
 
19782
19802
  interface CarrierAccountUpserted {
@@ -19930,6 +19950,8 @@ declare namespace io.flow.internal.v0.models {
19930
19950
 
19931
19951
  interface CheckoutAddress {
19932
19952
  readonly name?: string;
19953
+ readonly first_name?: string;
19954
+ readonly last_name?: string;
19933
19955
  readonly country?: string;
19934
19956
  readonly streets?: string[];
19935
19957
  readonly city?: string;
@@ -20228,6 +20250,15 @@ declare namespace io.flow.internal.v0.models {
20228
20250
  readonly message: string;
20229
20251
  }
20230
20252
 
20253
+ interface CheckoutCreateBySessionByOrderError {
20254
+ readonly code: io.flow.internal.v0.enums.CheckoutCreateBySessionByOrderErrorCode;
20255
+ readonly message: string;
20256
+ }
20257
+
20258
+ interface CheckoutCreateBySessionByOrderResponseError {
20259
+ readonly errors: io.flow.internal.v0.models.CheckoutCreateBySessionByOrderError[];
20260
+ }
20261
+
20231
20262
  interface CheckoutCreateBySessionError {
20232
20263
  readonly code: io.flow.internal.v0.enums.CheckoutCreateBySessionErrorCode;
20233
20264
  readonly message: string;
@@ -21643,6 +21674,10 @@ declare namespace io.flow.internal.v0.models {
21643
21674
  readonly type: io.flow.internal.v0.enums.CheckoutUrlType;
21644
21675
  }
21645
21676
 
21677
+ interface CheckoutUrlParameters {
21678
+ readonly confirmation_url?: string;
21679
+ }
21680
+
21646
21681
  interface Cipher {
21647
21682
  readonly id: string;
21648
21683
  readonly attributes: Record<string, string>;
@@ -26328,6 +26363,16 @@ declare namespace io.flow.internal.v0.models {
26328
26363
  readonly organization_id: string;
26329
26364
  readonly shop: string;
26330
26365
  readonly created_at: string;
26366
+ readonly api_key_masked: string;
26367
+ readonly api_password_masked: string;
26368
+ readonly shared_secret_masked: string;
26369
+ }
26370
+
26371
+ interface ShopifyXborderShopForm {
26372
+ readonly shop: string;
26373
+ readonly api_key: string;
26374
+ readonly api_password: string;
26375
+ readonly shared_secret: string;
26331
26376
  }
26332
26377
 
26333
26378
  interface ShopifyCheckInventoryError {
@@ -28381,6 +28426,9 @@ export type CheckoutCreateAuthorizationDetailsResponseError = io.flow.internal.v
28381
28426
  export type CheckoutCreateAuthorizationDetailsResponseSuccess = io.flow.internal.v0.models.CheckoutCreateAuthorizationDetailsResponseSuccess;
28382
28427
  export type CheckoutCreateAuthorizationError = io.flow.internal.v0.models.CheckoutCreateAuthorizationError;
28383
28428
  export type CheckoutCreateAuthorizationErrorCode = io.flow.internal.v0.enums.CheckoutCreateAuthorizationErrorCode;
28429
+ export type CheckoutCreateBySessionByOrderError = io.flow.internal.v0.models.CheckoutCreateBySessionByOrderError;
28430
+ export type CheckoutCreateBySessionByOrderErrorCode = io.flow.internal.v0.enums.CheckoutCreateBySessionByOrderErrorCode;
28431
+ export type CheckoutCreateBySessionByOrderResponseError = io.flow.internal.v0.models.CheckoutCreateBySessionByOrderResponseError;
28384
28432
  export type CheckoutCreateBySessionError = io.flow.internal.v0.models.CheckoutCreateBySessionError;
28385
28433
  export type CheckoutCreateBySessionErrorCode = io.flow.internal.v0.enums.CheckoutCreateBySessionErrorCode;
28386
28434
  export type CheckoutCreateBySessionRequestForm = io.flow.internal.v0.models.CheckoutCreateBySessionRequestForm;
@@ -28738,6 +28786,7 @@ export type CheckoutSubmitOrderForm = io.flow.internal.v0.models.CheckoutSubmitO
28738
28786
  export type CheckoutSubmitOrderForms = io.flow.internal.v0.unions.CheckoutSubmitOrderForms;
28739
28787
  export type CheckoutSubmittedOrder = io.flow.internal.v0.models.CheckoutSubmittedOrder;
28740
28788
  export type CheckoutUrl = io.flow.internal.v0.models.CheckoutUrl;
28789
+ export type CheckoutUrlParameters = io.flow.internal.v0.models.CheckoutUrlParameters;
28741
28790
  export type CheckoutUrlType = io.flow.internal.v0.enums.CheckoutUrlType;
28742
28791
  export type Cipher = io.flow.internal.v0.models.Cipher;
28743
28792
  export type CipherForm = io.flow.internal.v0.models.CipherForm;
@@ -29463,6 +29512,7 @@ export type Shop = io.flow.internal.v0.models.Shop;
29463
29512
  export type ShopForm = io.flow.internal.v0.models.ShopForm;
29464
29513
  export type ShopVersion = io.flow.internal.v0.models.ShopVersion;
29465
29514
  export type ShopifyXborderShop = io.flow.internal.v0.models.ShopifyXborderShop;
29515
+ export type ShopifyXborderShopForm = io.flow.internal.v0.models.ShopifyXborderShopForm;
29466
29516
  export type ShopifyCheckInventoryError = io.flow.internal.v0.models.ShopifyCheckInventoryError;
29467
29517
  export type ShopifyCheckInventoryErrorCode = io.flow.internal.v0.enums.ShopifyCheckInventoryErrorCode;
29468
29518
  export type ShopifyCodeForm = io.flow.internal.v0.models.ShopifyCodeForm;
package/src/api.ts CHANGED
@@ -1494,8 +1494,15 @@ declare namespace io.flow.v0.enums {
1494
1494
  | 'insurance'
1495
1495
  | 'discount'
1496
1496
  | 'surcharges';
1497
+ type OrderRefundSummaryIncludes = 'duties' | 'vat' | 'shipping';
1498
+ type OrderRefundSummaryPartialCharged =
1499
+ | 'per_item'
1500
+ | 'for_order'
1501
+ | 'by_value_percentage'
1502
+ | 'by_quantity_percentage';
1497
1503
  type OrderStatus = 'open' | 'submitted';
1498
1504
  type OrderStorage = 'do_not_persist' | 'persist';
1505
+ type OrderType = 'standard' | 'replacement';
1499
1506
  type OrganizationPaymentMethodTag = 'deny';
1500
1507
  type OrganizationStatus = 'active' | 'inactive' | 'deactivated';
1501
1508
  type PaymentErrorCode =
@@ -1786,13 +1793,13 @@ declare namespace io.flow.v0.models {
1786
1793
  readonly type: 'add_payment_method';
1787
1794
  readonly expires_at?: string;
1788
1795
  readonly available_payment_methods: io.flow.v0.models.PaymentPaymentMethod[];
1789
- readonly payment_failure?: io.flow.v0.models.PaymentFailure;
1790
1796
  }
1791
1797
 
1792
1798
  interface ActionCapture {
1793
1799
  readonly type: 'capture';
1794
1800
  readonly expires_at?: string;
1795
1801
  readonly amount_awaiting_capture?: number;
1802
+ readonly currency?: string;
1796
1803
  }
1797
1804
 
1798
1805
  interface ActionDisplayInlineWindow {
@@ -5922,6 +5929,7 @@ declare namespace io.flow.v0.models {
5922
5929
  readonly discriminator: 'order';
5923
5930
  readonly id: string;
5924
5931
  readonly number: string;
5932
+ readonly order_type?: io.flow.v0.enums.OrderType;
5925
5933
  readonly merchant_of_record?: io.flow.v0.enums.OrderMerchantOfRecord;
5926
5934
  readonly experience?: io.flow.v0.unions.ExpandableExperience;
5927
5935
  readonly customer: io.flow.v0.models.OrderCustomer;
@@ -6266,6 +6274,7 @@ declare namespace io.flow.v0.models {
6266
6274
  }
6267
6275
 
6268
6276
  interface OrderPutForm {
6277
+ readonly order_type?: io.flow.v0.enums.OrderType;
6269
6278
  readonly items: io.flow.v0.models.LineItemForm[];
6270
6279
  readonly customer?: io.flow.v0.models.OrderCustomerForm;
6271
6280
  readonly delivered_duty?: io.flow.v0.enums.DeliveredDuty;
@@ -6284,6 +6293,52 @@ declare namespace io.flow.v0.models {
6284
6293
  readonly number: string;
6285
6294
  }
6286
6295
 
6296
+ interface OrderRefundSummary {
6297
+ readonly currency: string;
6298
+ readonly amounts: io.flow.v0.models.OrderRefundSummaryAmounts;
6299
+ }
6300
+
6301
+ interface OrderRefundSummaryAmounts {
6302
+ readonly balance: number;
6303
+ readonly item_subtotal: number;
6304
+ readonly discount?: number;
6305
+ readonly refund_total: number;
6306
+ readonly shipping: number;
6307
+ readonly vat: number;
6308
+ readonly duty: number;
6309
+ }
6310
+
6311
+ interface OrderRefundSummaryFullForm {
6312
+ readonly discriminator: 'order_refund_summary_full_form';
6313
+ readonly includes: io.flow.v0.enums.OrderRefundSummaryIncludes[];
6314
+ }
6315
+
6316
+ interface OrderRefundSummaryItem {
6317
+ readonly number: string;
6318
+ readonly quantity_to_refund: number;
6319
+ }
6320
+
6321
+ interface OrderRefundSummaryPartialForm {
6322
+ readonly discriminator: 'order_refund_summary_partial_form';
6323
+ readonly includes: io.flow.v0.models.OrderRefundSummaryPartialIncludes[];
6324
+ readonly items: io.flow.v0.models.OrderRefundSummaryItem[];
6325
+ }
6326
+
6327
+ interface OrderRefundSummaryPartialIncludes {
6328
+ readonly key: io.flow.v0.enums.OrderRefundSummaryIncludes;
6329
+ readonly charged: io.flow.v0.enums.OrderRefundSummaryPartialCharged;
6330
+ }
6331
+
6332
+ interface OrderReplacement {
6333
+ readonly id: string;
6334
+ readonly parent_order: io.flow.v0.models.Order;
6335
+ readonly replacement_order: io.flow.v0.models.Order;
6336
+ }
6337
+
6338
+ interface OrderReplacementForm {
6339
+ readonly items?: io.flow.v0.models.LineItemForm[];
6340
+ }
6341
+
6287
6342
  interface OrderRuleReference {
6288
6343
  readonly id: string;
6289
6344
  readonly key: string;
@@ -6782,7 +6837,7 @@ declare namespace io.flow.v0.models {
6782
6837
  }
6783
6838
 
6784
6839
  interface PaymentFailure {
6785
- readonly authorization_id: string;
6840
+ readonly authorization_id?: string;
6786
6841
  readonly failure_code: io.flow.v0.enums.PaymentFailureCode;
6787
6842
  readonly failure_message: string;
6788
6843
  }
@@ -6916,6 +6971,7 @@ declare namespace io.flow.v0.models {
6916
6971
  readonly type: 'card';
6917
6972
  readonly merchant_of_record: io.flow.v0.enums.MerchantOfRecord;
6918
6973
  readonly last_four: string;
6974
+ readonly card_type: io.flow.v0.enums.CardType;
6919
6975
  }
6920
6976
 
6921
6977
  interface PaymentMethodSummaryGooglepay {
@@ -7022,6 +7078,7 @@ declare namespace io.flow.v0.models {
7022
7078
  interface PaymentRequest {
7023
7079
  readonly id: string;
7024
7080
  readonly status: io.flow.v0.models.PaymentRequestStatus;
7081
+ readonly last_payment_failure?: io.flow.v0.models.PaymentFailure;
7025
7082
  readonly next_action?: io.flow.v0.unions.Action;
7026
7083
  readonly amount: number;
7027
7084
  readonly amount_refundable?: number;
@@ -10069,6 +10126,9 @@ declare namespace io.flow.v0.unions {
10069
10126
  | io.flow.v0.models.OrderNumberGeneratorPrefixSuffix;
10070
10127
  type OrderPromotion = io.flow.v0.models.FreeShippingOrderPromotion;
10071
10128
  type OrderPromotionForm = io.flow.v0.models.FreeShippingOrderPromotionForm;
10129
+ type OrderRefundSummaryForm =
10130
+ | io.flow.v0.models.OrderRefundSummaryFullForm
10131
+ | io.flow.v0.models.OrderRefundSummaryPartialForm;
10072
10132
  type PartnerCenterFee =
10073
10133
  | io.flow.v0.models.CommercialInvoiceFee
10074
10134
  | io.flow.v0.models.InboundCartonFee
@@ -10966,6 +11026,17 @@ export type OrderPromotionForm = io.flow.v0.unions.OrderPromotionForm;
10966
11026
  export type OrderPromotionTrigger = io.flow.v0.models.OrderPromotionTrigger;
10967
11027
  export type OrderPutForm = io.flow.v0.models.OrderPutForm;
10968
11028
  export type OrderReference = io.flow.v0.models.OrderReference;
11029
+ export type OrderRefundSummary = io.flow.v0.models.OrderRefundSummary;
11030
+ export type OrderRefundSummaryAmounts = io.flow.v0.models.OrderRefundSummaryAmounts;
11031
+ export type OrderRefundSummaryForm = io.flow.v0.unions.OrderRefundSummaryForm;
11032
+ export type OrderRefundSummaryFullForm = io.flow.v0.models.OrderRefundSummaryFullForm;
11033
+ export type OrderRefundSummaryIncludes = io.flow.v0.enums.OrderRefundSummaryIncludes;
11034
+ export type OrderRefundSummaryItem = io.flow.v0.models.OrderRefundSummaryItem;
11035
+ export type OrderRefundSummaryPartialCharged = io.flow.v0.enums.OrderRefundSummaryPartialCharged;
11036
+ export type OrderRefundSummaryPartialForm = io.flow.v0.models.OrderRefundSummaryPartialForm;
11037
+ export type OrderRefundSummaryPartialIncludes = io.flow.v0.models.OrderRefundSummaryPartialIncludes;
11038
+ export type OrderReplacement = io.flow.v0.models.OrderReplacement;
11039
+ export type OrderReplacementForm = io.flow.v0.models.OrderReplacementForm;
10969
11040
  export type OrderRuleReference = io.flow.v0.models.OrderRuleReference;
10970
11041
  export type OrderRulesSummary = io.flow.v0.models.OrderRulesSummary;
10971
11042
  export type OrderServiceChange = io.flow.v0.models.OrderServiceChange;
@@ -10982,6 +11053,7 @@ export type OrderSummaryItem = io.flow.v0.models.OrderSummaryItem;
10982
11053
  export type OrderSummaryLevy = io.flow.v0.models.OrderSummaryLevy;
10983
11054
  export type OrderSummaryLineItem = io.flow.v0.models.OrderSummaryLineItem;
10984
11055
  export type OrderSummaryPriceDetail = io.flow.v0.models.OrderSummaryPriceDetail;
11056
+ export type OrderType = io.flow.v0.enums.OrderType;
10985
11057
  export type OrderUpserted = io.flow.v0.models.OrderUpserted;
10986
11058
  export type OrderUpsertedV2 = io.flow.v0.models.OrderUpsertedV2;
10987
11059
  export type OrderVersion = io.flow.v0.models.OrderVersion;