@flowio/api-internal-prop-types 9.12.4 → 9.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.
@@ -273,6 +273,8 @@ declare namespace io.flow.experience.v0.enums {
273
273
  type ExperienceStatus = 'draft' | 'active' | 'archiving' | 'archived';
274
274
  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';
275
275
  type OrderPaymentType = 'card' | 'online' | 'credit' | 'installment_plan' | 'cash_on_delivery';
276
+ type OrderRefundSummaryIncludes = 'duties' | 'vat' | 'shipping';
277
+ type OrderRefundSummaryPartialCharged = 'per_item' | 'for_order' | 'by_value_percentage' | 'by_quantity_percentage';
276
278
  type OrderStatus = 'open' | 'submitted';
277
279
  type OrderStorage = 'do_not_persist' | 'persist';
278
280
  type OrganizationPaymentMethodTag = 'deny';
@@ -1031,6 +1033,42 @@ declare namespace io.flow.experience.v0.models {
1031
1033
  readonly 'number': string;
1032
1034
  }
1033
1035
 
1036
+ interface OrderRefundSummary {
1037
+ readonly 'currency': string;
1038
+ readonly 'amounts': io.flow.experience.v0.models.OrderRefundSummaryAmounts;
1039
+ }
1040
+
1041
+ interface OrderRefundSummaryAmounts {
1042
+ readonly 'balance': number;
1043
+ readonly 'item_subtotal': number;
1044
+ readonly 'discount'?: number;
1045
+ readonly 'refund_total': number;
1046
+ readonly 'shipping': number;
1047
+ readonly 'vat': number;
1048
+ readonly 'duty': number;
1049
+ }
1050
+
1051
+ interface OrderRefundSummaryFullForm {
1052
+ readonly 'discriminator': 'order_refund_summary_full_form';
1053
+ readonly 'includes': io.flow.experience.v0.enums.OrderRefundSummaryIncludes[];
1054
+ }
1055
+
1056
+ interface OrderRefundSummaryItem {
1057
+ readonly 'number': string;
1058
+ readonly 'quantity_to_refund': number;
1059
+ }
1060
+
1061
+ interface OrderRefundSummaryPartialForm {
1062
+ readonly 'discriminator': 'order_refund_summary_partial_form';
1063
+ readonly 'includes': io.flow.experience.v0.models.OrderRefundSummaryPartialIncludes[];
1064
+ readonly 'items': io.flow.experience.v0.models.OrderRefundSummaryItem[];
1065
+ }
1066
+
1067
+ interface OrderRefundSummaryPartialIncludes {
1068
+ readonly 'key': io.flow.experience.v0.enums.OrderRefundSummaryIncludes;
1069
+ readonly 'charged': io.flow.experience.v0.enums.OrderRefundSummaryPartialCharged;
1070
+ }
1071
+
1034
1072
  interface OrderRuleReference {
1035
1073
  readonly 'id': string;
1036
1074
  readonly 'key': string;
@@ -1210,6 +1248,7 @@ declare namespace io.flow.experience.v0.unions {
1210
1248
  type OrderNumberGenerator = (io.flow.experience.v0.models.OrderNumberGeneratorUuid | io.flow.experience.v0.models.OrderNumberGeneratorHexadecimal | io.flow.experience.v0.models.OrderNumberGeneratorPrefixSuffix);
1211
1249
  type OrderPromotion = (io.flow.experience.v0.models.FreeShippingOrderPromotion);
1212
1250
  type OrderPromotionForm = (io.flow.experience.v0.models.FreeShippingOrderPromotionForm);
1251
+ type OrderRefundSummaryForm = (io.flow.experience.v0.models.OrderRefundSummaryFullForm | io.flow.experience.v0.models.OrderRefundSummaryPartialForm);
1213
1252
 
1214
1253
  type PaymentMethodTag = ({
1215
1254
  discriminator: 'organization_payment_method_tag',
@@ -1581,64 +1620,6 @@ declare namespace io.flow.shopify.xborder.v0.models {
1581
1620
  readonly 'orders': io.flow.shopify.xborder.v0.models.ShopifyOrder[];
1582
1621
  }
1583
1622
 
1584
- interface ShopifyWebhookOrder {
1585
- readonly 'id': number;
1586
- readonly 'order_number': number;
1587
- readonly 'billing_address'?: io.flow.shopify.xborder.v0.models.ShopifyOrderAddress;
1588
- readonly 'browser_ip'?: string;
1589
- readonly 'buyer_accepts_marketing': boolean;
1590
- readonly 'cancel_reason'?: io.flow.shopify.xborder.v0.enums.ShopifyOrderCancelReason;
1591
- readonly 'cancelled_at'?: string;
1592
- readonly 'cart_token'?: string;
1593
- readonly 'client_details'?: io.flow.shopify.xborder.v0.models.ShopifyOrderClientDetail;
1594
- readonly 'closed_at'?: string;
1595
- readonly 'created_at': string;
1596
- readonly 'currency': string;
1597
- readonly 'total_discounts_set': io.flow.shopify.xborder.v0.models.ShopifyOrderMoneySet;
1598
- readonly 'total_duties_set'?: io.flow.shopify.xborder.v0.models.ShopifyOrderMoneySet;
1599
- readonly 'original_total_duties_set'?: io.flow.shopify.xborder.v0.models.ShopifyOrderMoneySet;
1600
- readonly 'total_price_set': io.flow.shopify.xborder.v0.models.ShopifyOrderMoneySet;
1601
- readonly 'subtotal_price_set': io.flow.shopify.xborder.v0.models.ShopifyOrderMoneySet;
1602
- readonly 'total_tax_set': io.flow.shopify.xborder.v0.models.ShopifyOrderMoneySet;
1603
- readonly 'total_line_items_price_set': io.flow.shopify.xborder.v0.models.ShopifyOrderMoneySet;
1604
- readonly 'customer': io.flow.shopify.xborder.v0.models.ShopifyOrderCustomer;
1605
- readonly 'customer_locale'?: string;
1606
- readonly 'discount_applications': io.flow.shopify.xborder.v0.models.ShopifyOrderDiscountApplication[];
1607
- readonly 'discount_codes': io.flow.shopify.xborder.v0.models.ShopifyOrderDiscountCode[];
1608
- readonly 'email'?: string;
1609
- readonly 'financial_status': io.flow.shopify.xborder.v0.enums.ShopifyOrderFinancialStatusType;
1610
- readonly 'fulfillments': io.flow.shopify.xborder.v0.models.ShopifyOrderFulfillment[];
1611
- readonly 'fulfillment_status'?: io.flow.shopify.xborder.v0.enums.ShopifyOrderFulfillmentStatusType;
1612
- readonly 'landing_site'?: string;
1613
- readonly 'line_items': io.flow.shopify.xborder.v0.models.ShopifyOrderLineItem[];
1614
- readonly 'location_id'?: number;
1615
- readonly 'name': string;
1616
- readonly 'note'?: string;
1617
- readonly 'note_attributes': io.flow.shopify.xborder.v0.models.ShopifyOrderAttribute[];
1618
- readonly 'number'?: number;
1619
- readonly 'payment_gateway_names': string[];
1620
- readonly 'processed_at'?: string;
1621
- readonly 'processing_method'?: io.flow.shopify.xborder.v0.enums.ShopifyOrderProcessingMethodType;
1622
- readonly 'referring_site'?: string;
1623
- readonly 'refunds': io.flow.shopify.xborder.v0.models.ShopifyOrderRefund[];
1624
- readonly 'shipping_address'?: io.flow.shopify.xborder.v0.models.ShopifyOrderAddress;
1625
- readonly 'shipping_lines'?: io.flow.shopify.xborder.v0.models.ShopifyOrderShippingLine[];
1626
- readonly 'source_name'?: string;
1627
- readonly 'tags'?: string;
1628
- readonly 'tax_lines': io.flow.shopify.xborder.v0.models.ShopifyOrderTaxLine[];
1629
- readonly 'taxes_included': boolean;
1630
- readonly 'token'?: string;
1631
- readonly 'total_weight'?: number;
1632
- readonly 'updated_at'?: string;
1633
- readonly 'user_id'?: number;
1634
- readonly 'order_status_url'?: string;
1635
- readonly 'inventory_behaviour'?: io.flow.shopify.xborder.v0.enums.ShopifyOrderInventoryBehaviour;
1636
- readonly 'gateway'?: string;
1637
- readonly 'transactions'?: io.flow.shopify.xborder.v0.models.ShopifyOrderTransaction[];
1638
- readonly 'send_receipt'?: boolean;
1639
- readonly 'metafields'?: io.flow.shopify.xborder.v0.models.ShopifyOrderMetafield[];
1640
- }
1641
-
1642
1623
  interface ShopifyWebhookRequest {
1643
1624
  readonly 'topic': io.flow.shopify.xborder.v0.enums.ShopifyWebhookTopic;
1644
1625
  readonly 'address': string;
@@ -9467,11 +9448,15 @@ declare namespace io.flow.label.internal.v0.models {
9467
9448
  readonly 'id': string;
9468
9449
  readonly 'carrier': io.flow.fulfillment.v0.models.CarrierReference;
9469
9450
  readonly 'credentials': io.flow.tracking.internal.v0.unions.CarrierCredentials;
9451
+ readonly 'q'?: string;
9452
+ readonly 'position'?: number;
9470
9453
  }
9471
9454
 
9472
9455
  interface CarrierAccountForm {
9473
9456
  readonly 'carrier_id': string;
9474
9457
  readonly 'credentials': io.flow.tracking.internal.v0.unions.CarrierCredentials;
9458
+ readonly 'q'?: string;
9459
+ readonly 'position'?: number;
9475
9460
  }
9476
9461
 
9477
9462
  interface CarrierInvoice {
@@ -12196,6 +12181,7 @@ declare namespace io.flow.checkout.protocol.v0.enums {
12196
12181
  type CheckoutAddPaymentDetailsErrorCode = 'payment_failed' | 'authorization_form_not_supported' | 'authorization_invalid_amount' | 'authorization_invalid_currency' | 'authorization_amount_exceeds_balance' | 'address_street1_required';
12197
12182
  type CheckoutCreateAuthorizationDetailsErrorCode = 'checkout_not_found' | 'authorization_details_payment_not_found';
12198
12183
  type CheckoutCreateAuthorizationErrorCode = 'authorization_form_not_supported' | 'authorization_invalid_amount' | 'authorization_invalid_currency' | 'authorization_amount_exceeds_balance' | 'address_street1_required';
12184
+ type CheckoutCreateBySessionByOrderErrorCode = 'session_not_found' | 'session_experience_required' | 'country_not_supported' | 'order_not_found';
12199
12185
  type CheckoutCreateBySessionErrorCode = 'session_not_found' | 'session_experience_required' | 'country_not_supported';
12200
12186
  type CheckoutDeleteAddressStreetErrorCode = 'address_line_number_invalid';
12201
12187
  type CheckoutDeleteLineErrorCode = 'line_not_found';
@@ -12295,6 +12281,15 @@ declare namespace io.flow.checkout.protocol.v0.models {
12295
12281
  readonly 'message': string;
12296
12282
  }
12297
12283
 
12284
+ interface CheckoutCreateBySessionByOrderError {
12285
+ readonly 'code': io.flow.checkout.protocol.v0.enums.CheckoutCreateBySessionByOrderErrorCode;
12286
+ readonly 'message': string;
12287
+ }
12288
+
12289
+ interface CheckoutCreateBySessionByOrderResponseError {
12290
+ readonly 'errors': io.flow.checkout.protocol.v0.models.CheckoutCreateBySessionByOrderError[];
12291
+ }
12292
+
12298
12293
  interface CheckoutCreateBySessionError {
12299
12294
  readonly 'code': io.flow.checkout.protocol.v0.enums.CheckoutCreateBySessionErrorCode;
12300
12295
  readonly 'message': string;
@@ -14853,6 +14848,8 @@ declare namespace io.flow.checkout.backend.v0.enums {
14853
14848
  declare namespace io.flow.checkout.backend.v0.models {
14854
14849
  interface CheckoutAddress {
14855
14850
  readonly 'name'?: string;
14851
+ readonly 'first_name'?: string;
14852
+ readonly 'last_name'?: string;
14856
14853
  readonly 'country'?: string;
14857
14854
  readonly 'streets'?: string[];
14858
14855
  readonly 'city'?: string;
@@ -15271,6 +15268,10 @@ declare namespace io.flow.checkout.backend.v0.models {
15271
15268
  readonly 'deliveries': io.flow.checkout.backend.v0.models.CheckoutOrderDeliveries;
15272
15269
  }
15273
15270
 
15271
+ interface CheckoutUrlParameters {
15272
+ readonly 'confirmation_url'?: string;
15273
+ }
15274
+
15274
15275
  interface InternalAvailableDelivery {
15275
15276
  readonly 'id': string;
15276
15277
  readonly 'items': io.flow.fulfillment.v0.models.DeliveryItem[];
@@ -16073,7 +16074,7 @@ declare namespace io.flow.internal.v0.enums {
16073
16074
  type BillingStatementReviewStatus = 'approved' | 'pending';
16074
16075
  type BillingTransactionStatus = 'pending' | 'posted';
16075
16076
  type BillingTransactionType = 'manual' | 'subscription' | 'invoice' | 'transfer' | 'adjustment' | 'capture' | 'refund' | 'virtual_card_capture' | 'virtual_card_refund' | 'tax_remittance' | 'fully_subsidized_order' | 'credit_payment';
16076
- type BlazeCheckoutStep = 'contact' | 'shipping' | 'delivery' | 'payment';
16077
+ type BlazeCheckoutStep = 'customer_info' | 'delivery' | 'payment';
16077
16078
  type BrowserBundleErrorCode = 'generic_error' | 'country_invalid';
16078
16079
  type CarrierLabelGenerationMethod = 'direct' | 'easypost';
16079
16080
  type CatalogImportType = 'catalog_items' | 'item_form_overlays' | 'item_prices' | 'price_book_items_import' | 'price_book_items_query_import';
@@ -16089,6 +16090,7 @@ declare namespace io.flow.internal.v0.enums {
16089
16090
  type CheckoutAssetType = 'stylesheet' | 'javascript';
16090
16091
  type CheckoutCreateAuthorizationDetailsErrorCode = 'checkout_not_found' | 'authorization_details_payment_not_found';
16091
16092
  type CheckoutCreateAuthorizationErrorCode = 'authorization_form_not_supported' | 'authorization_invalid_amount' | 'authorization_invalid_currency' | 'authorization_amount_exceeds_balance' | 'address_street1_required';
16093
+ type CheckoutCreateBySessionByOrderErrorCode = 'session_not_found' | 'session_experience_required' | 'country_not_supported' | 'order_not_found';
16092
16094
  type CheckoutCreateBySessionErrorCode = 'session_not_found' | 'session_experience_required' | 'country_not_supported';
16093
16095
  type CheckoutDeleteAddressStreetErrorCode = 'address_line_number_invalid';
16094
16096
  type CheckoutDeleteLineErrorCode = 'line_not_found';
@@ -17229,11 +17231,15 @@ declare namespace io.flow.internal.v0.models {
17229
17231
  readonly 'id': string;
17230
17232
  readonly 'carrier': io.flow.fulfillment.v0.models.CarrierReference;
17231
17233
  readonly 'credentials': io.flow.tracking.internal.v0.unions.CarrierCredentials;
17234
+ readonly 'q'?: string;
17235
+ readonly 'position'?: number;
17232
17236
  }
17233
17237
 
17234
17238
  interface CarrierAccountForm {
17235
17239
  readonly 'carrier_id': string;
17236
17240
  readonly 'credentials': io.flow.tracking.internal.v0.unions.CarrierCredentials;
17241
+ readonly 'q'?: string;
17242
+ readonly 'position'?: number;
17237
17243
  }
17238
17244
 
17239
17245
  interface CarrierAccountUpserted {
@@ -17387,6 +17393,8 @@ declare namespace io.flow.internal.v0.models {
17387
17393
 
17388
17394
  interface CheckoutAddress {
17389
17395
  readonly 'name'?: string;
17396
+ readonly 'first_name'?: string;
17397
+ readonly 'last_name'?: string;
17390
17398
  readonly 'country'?: string;
17391
17399
  readonly 'streets'?: string[];
17392
17400
  readonly 'city'?: string;
@@ -17685,6 +17693,15 @@ declare namespace io.flow.internal.v0.models {
17685
17693
  readonly 'message': string;
17686
17694
  }
17687
17695
 
17696
+ interface CheckoutCreateBySessionByOrderError {
17697
+ readonly 'code': io.flow.internal.v0.enums.CheckoutCreateBySessionByOrderErrorCode;
17698
+ readonly 'message': string;
17699
+ }
17700
+
17701
+ interface CheckoutCreateBySessionByOrderResponseError {
17702
+ readonly 'errors': io.flow.internal.v0.models.CheckoutCreateBySessionByOrderError[];
17703
+ }
17704
+
17688
17705
  interface CheckoutCreateBySessionError {
17689
17706
  readonly 'code': io.flow.internal.v0.enums.CheckoutCreateBySessionErrorCode;
17690
17707
  readonly 'message': string;
@@ -19097,6 +19114,10 @@ declare namespace io.flow.internal.v0.models {
19097
19114
  readonly 'type': io.flow.internal.v0.enums.CheckoutUrlType;
19098
19115
  }
19099
19116
 
19117
+ interface CheckoutUrlParameters {
19118
+ readonly 'confirmation_url'?: string;
19119
+ }
19120
+
19100
19121
  interface Cipher {
19101
19122
  readonly 'id': string;
19102
19123
  readonly 'attributes': Record<string, string>;
@@ -23761,6 +23782,16 @@ declare namespace io.flow.internal.v0.models {
23761
23782
  readonly 'organization_id': string;
23762
23783
  readonly 'shop': string;
23763
23784
  readonly 'created_at': string;
23785
+ readonly 'api_key_masked': string;
23786
+ readonly 'api_password_masked': string;
23787
+ readonly 'shared_secret_masked': string;
23788
+ }
23789
+
23790
+ interface ShopifyXborderShopForm {
23791
+ readonly 'shop': string;
23792
+ readonly 'api_key': string;
23793
+ readonly 'api_password': string;
23794
+ readonly 'shared_secret': string;
23764
23795
  }
23765
23796
 
23766
23797
  interface ShopifyCheckInventoryError {
@@ -25017,6 +25048,7 @@ export const checkoutAddressType: PropTypes.Requireable<io.flow.internal.v0.enum
25017
25048
  export const checkoutAssetType: PropTypes.Requireable<io.flow.internal.v0.enums.CheckoutAssetType>;
25018
25049
  export const checkoutCreateAuthorizationDetailsErrorCode: PropTypes.Requireable<io.flow.internal.v0.enums.CheckoutCreateAuthorizationDetailsErrorCode>;
25019
25050
  export const checkoutCreateAuthorizationErrorCode: PropTypes.Requireable<io.flow.internal.v0.enums.CheckoutCreateAuthorizationErrorCode>;
25051
+ export const checkoutCreateBySessionByOrderErrorCode: PropTypes.Requireable<io.flow.internal.v0.enums.CheckoutCreateBySessionByOrderErrorCode>;
25020
25052
  export const checkoutCreateBySessionErrorCode: PropTypes.Requireable<io.flow.internal.v0.enums.CheckoutCreateBySessionErrorCode>;
25021
25053
  export const checkoutDeleteAddressStreetErrorCode: PropTypes.Requireable<io.flow.internal.v0.enums.CheckoutDeleteAddressStreetErrorCode>;
25022
25054
  export const checkoutDeleteLineErrorCode: PropTypes.Requireable<io.flow.internal.v0.enums.CheckoutDeleteLineErrorCode>;
@@ -25382,6 +25414,8 @@ export const checkoutCreateAuthorizationDetailsRequestForm: PropTypes.Requireabl
25382
25414
  export const checkoutCreateAuthorizationDetailsResponseError: PropTypes.Requireable<io.flow.internal.v0.models.CheckoutCreateAuthorizationDetailsResponseError>;
25383
25415
  export const checkoutCreateAuthorizationDetailsResponseSuccess: PropTypes.Requireable<io.flow.internal.v0.models.CheckoutCreateAuthorizationDetailsResponseSuccess>;
25384
25416
  export const checkoutCreateAuthorizationError: PropTypes.Requireable<io.flow.internal.v0.models.CheckoutCreateAuthorizationError>;
25417
+ export const checkoutCreateBySessionByOrderError: PropTypes.Requireable<io.flow.internal.v0.models.CheckoutCreateBySessionByOrderError>;
25418
+ export const checkoutCreateBySessionByOrderResponseError: PropTypes.Requireable<io.flow.internal.v0.models.CheckoutCreateBySessionByOrderResponseError>;
25385
25419
  export const checkoutCreateBySessionError: PropTypes.Requireable<io.flow.internal.v0.models.CheckoutCreateBySessionError>;
25386
25420
  export const checkoutCreateBySessionRequestForm: PropTypes.Requireable<io.flow.internal.v0.models.CheckoutCreateBySessionRequestForm>;
25387
25421
  export const checkoutCreateBySessionResponseError: PropTypes.Requireable<io.flow.internal.v0.models.CheckoutCreateBySessionResponseError>;
@@ -25635,6 +25669,7 @@ export const checkoutSubmitOrderBundle: PropTypes.Requireable<io.flow.internal.v
25635
25669
  export const checkoutSubmitOrderForm: PropTypes.Requireable<io.flow.internal.v0.models.CheckoutSubmitOrderForm>;
25636
25670
  export const checkoutSubmittedOrder: PropTypes.Requireable<io.flow.internal.v0.models.CheckoutSubmittedOrder>;
25637
25671
  export const checkoutUrl: PropTypes.Requireable<io.flow.internal.v0.models.CheckoutUrl>;
25672
+ export const checkoutUrlParameters: PropTypes.Requireable<io.flow.internal.v0.models.CheckoutUrlParameters>;
25638
25673
  export const cipher: PropTypes.Requireable<io.flow.internal.v0.models.Cipher>;
25639
25674
  export const cipherForm: PropTypes.Requireable<io.flow.internal.v0.models.CipherForm>;
25640
25675
  export const cipherReference: PropTypes.Requireable<io.flow.internal.v0.models.CipherReference>;
@@ -26233,6 +26268,7 @@ export const shop: PropTypes.Requireable<io.flow.internal.v0.models.Shop>;
26233
26268
  export const shopForm: PropTypes.Requireable<io.flow.internal.v0.models.ShopForm>;
26234
26269
  export const shopVersion: PropTypes.Requireable<io.flow.internal.v0.models.ShopVersion>;
26235
26270
  export const shopifyXborderShop: PropTypes.Requireable<io.flow.internal.v0.models.ShopifyXborderShop>;
26271
+ export const shopifyXborderShopForm: PropTypes.Requireable<io.flow.internal.v0.models.ShopifyXborderShopForm>;
26236
26272
  export const shopifyCheckInventoryError: PropTypes.Requireable<io.flow.internal.v0.models.ShopifyCheckInventoryError>;
26237
26273
  export const shopifyCodeForm: PropTypes.Requireable<io.flow.internal.v0.models.ShopifyCodeForm>;
26238
26274
  export const shopifyExperienceShortId: PropTypes.Requireable<io.flow.internal.v0.models.ShopifyExperienceShortId>;