@flowio/types 10.5.2 → 10.6.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.
@@ -1225,8 +1225,10 @@ declare namespace io.flow.checkout.protocol.v0.enums {
1225
1225
  type CheckoutDeletePaymentErrorCode = 'payment_not_found' | 'payment_type_does_not_support_delete';
1226
1226
  type CheckoutDeletePromotionCodeErrorCode = 'promotion_code_not_supported' | 'promotion_code_invalid' | 'promotion_code_expired' | 'promotion_code_does_not_meet_requirements';
1227
1227
  type CheckoutFeaturesErrorCode = 'checkout_not_found';
1228
+ type CheckoutGetAddressPredictionErrorCode = 'invalid_prediction';
1228
1229
  type CheckoutGetErrorCode = 'checkout_not_found';
1229
1230
  type CheckoutInfoAddressConfigurationFormDataKeyField = 'country';
1231
+ type CheckoutInfoAddressPredictionsKeyField = 'input';
1230
1232
  type CheckoutInfoContentKeyField = 'locale';
1231
1233
  type CheckoutInfoDeliveriesFormDataKeyField = 'country' | 'lines';
1232
1234
  type CheckoutInfoOrderSummaryKeyField = 'shipping_country' | 'shipping_province' | 'shipping_postal' | 'delivery_option_id';
@@ -1248,7 +1250,7 @@ declare namespace io.flow.checkout.protocol.v0.enums {
1248
1250
  type CheckoutSetLocaleErrorCode = 'locale_invalid';
1249
1251
  type CheckoutSetOptinPromptErrorCode = 'optin_prompt_not_found' | 'optin_prompt_consent_required' | 'optin_prompt_invalid_value';
1250
1252
  type CheckoutSetPromotionCodeErrorCode = 'promotion_code_not_supported' | 'promotion_code_invalid' | 'promotion_code_expired' | 'promotion_code_does_not_meet_requirements';
1251
- type CheckoutSubmitErrorCode = 'balance_not_zero' | 'address_city_invalid' | 'address_city_required' | 'address_country_invalid' | 'address_country_required' | 'address_line_number_invalid' | 'address_postal_invalid' | 'address_postal_required' | 'address_province_invalid' | 'address_province_required' | 'address_street1_invalid' | 'address_street1_required' | 'address_street2_invalid' | 'address_street2_required' | 'address_streets_must_be_unique' | 'authorization_amount_exceeds_balance' | 'authorization_form_not_supported' | 'authorization_invalid_amount' | 'authorization_invalid_currency' | 'checkout_requires_at_least_one_line' | 'contact_email_invalid' | 'contact_email_required' | 'contact_phone_invalid' | 'contact_phone_required' | 'country_not_supported' | 'currency_invalid' | 'delivery_not_found' | 'delivery_option_not_found' | 'delivery_option_not_supported' | 'delivery_option_required' | 'gift_card_insufficient_funds' | 'gift_card_invalid_number' | 'gift_card_not_supported' | 'language_invalid' | 'line_item_number_invalid' | 'line_item_number_not_available' | 'line_not_found' | 'line_quantity_invalid' | 'line_value_threshold_exceeded' | 'locale_invalid' | 'name_missing_first_or_last' | 'name_required' | 'optin_prompt_consent_required' | 'optin_prompt_invalid_value' | 'optin_prompt_not_found' | 'order_identifier_invalid' | 'payment_not_found' | 'payment_type_does_not_support_delete' | 'promotion_code_does_not_meet_requirements' | 'promotion_code_expired' | 'promotion_code_invalid' | 'promotion_code_not_supported';
1253
+ type CheckoutSubmitErrorCode = 'balance_not_zero' | 'address_city_invalid' | 'address_city_required' | 'address_country_invalid' | 'address_country_required' | 'address_line_number_invalid' | 'address_postal_invalid' | 'address_postal_required' | 'address_province_invalid' | 'address_province_required' | 'address_street1_invalid' | 'address_street1_required' | 'address_street2_invalid' | 'address_street2_required' | 'address_streets_must_be_unique' | 'authorization_amount_exceeds_balance' | 'authorization_form_not_supported' | 'authorization_invalid_amount' | 'authorization_invalid_currency' | 'checkout_requires_at_least_one_line' | 'contact_email_invalid' | 'contact_email_required' | 'contact_phone_invalid' | 'contact_phone_required' | 'country_not_supported' | 'currency_invalid' | 'delivery_not_found' | 'delivery_option_not_found' | 'delivery_option_not_supported' | 'delivery_option_required' | 'gift_card_insufficient_funds' | 'gift_card_invalid_number' | 'gift_card_not_supported' | 'invalid_prediction' | 'language_invalid' | 'line_item_number_invalid' | 'line_item_number_not_available' | 'line_not_found' | 'line_quantity_invalid' | 'line_value_threshold_exceeded' | 'locale_invalid' | 'name_missing_first_or_last' | 'name_required' | 'optin_prompt_consent_required' | 'optin_prompt_invalid_value' | 'optin_prompt_not_found' | 'order_identifier_invalid' | 'payment_not_found' | 'payment_type_does_not_support_delete' | 'promotion_code_does_not_meet_requirements' | 'promotion_code_expired' | 'promotion_code_invalid' | 'promotion_code_not_supported';
1252
1254
  }
1253
1255
  declare namespace io.flow.checkout.protocol.v0.models {
1254
1256
  interface CheckoutAddGiftCardAndPromotionCodeError {
@@ -1338,6 +1340,10 @@ declare namespace io.flow.checkout.protocol.v0.models {
1338
1340
  readonly discriminator: 'checkout_features_response_success';
1339
1341
  readonly features: io.flow.feature.v0.models.FeatureValueResult;
1340
1342
  }
1343
+ interface CheckoutGetAddressPredictionError {
1344
+ readonly code: io.flow.checkout.protocol.v0.enums.CheckoutGetAddressPredictionErrorCode;
1345
+ readonly message: string;
1346
+ }
1341
1347
  interface CheckoutGetError {
1342
1348
  readonly code: io.flow.checkout.protocol.v0.enums.CheckoutGetErrorCode;
1343
1349
  readonly message: string;
@@ -1370,6 +1376,15 @@ declare namespace io.flow.checkout.protocol.v0.models {
1370
1376
  readonly field: io.flow.checkout.protocol.v0.enums.CheckoutInfoAddressConfigurationFormDataKeyField;
1371
1377
  readonly value: string;
1372
1378
  }
1379
+ interface CheckoutInfoAddressPredictions {
1380
+ readonly discriminator: 'checkout_info_address_predictions';
1381
+ readonly key: io.flow.checkout.protocol.v0.models.CheckoutInfoAddressPredictionsKey[];
1382
+ readonly data: io.flow.checkout.backend.v0.models.CheckoutAddressPredictions;
1383
+ }
1384
+ interface CheckoutInfoAddressPredictionsKey {
1385
+ readonly field: io.flow.checkout.protocol.v0.enums.CheckoutInfoAddressPredictionsKeyField;
1386
+ readonly value: string;
1387
+ }
1373
1388
  interface CheckoutInfoAnalyticsOrder {
1374
1389
  readonly discriminator: 'checkout_info_analytics_order';
1375
1390
  readonly data: io.flow.checkout.analytics.v0.unions.CheckoutAnalyticsOrder;
@@ -1595,6 +1610,18 @@ declare namespace io.flow.checkout.protocol.v0.models {
1595
1610
  readonly discriminator: 'checkout_sequenced_delete_promotion_code_response_error';
1596
1611
  readonly errors: io.flow.checkout.protocol.v0.models.CheckoutDeletePromotionCodeError[];
1597
1612
  }
1613
+ interface CheckoutSequencedGetAddressPredictionRequestForm {
1614
+ readonly discriminator: 'checkout_sequenced_get_address_prediction_request_form';
1615
+ readonly prediction: io.flow.checkout.backend.v0.models.CheckoutAddressPrediction;
1616
+ }
1617
+ interface CheckoutSequencedGetAddressPredictionResponseError {
1618
+ readonly discriminator: 'checkout_sequenced_get_address_prediction_response_error';
1619
+ readonly errors: io.flow.checkout.protocol.v0.models.CheckoutGetAddressPredictionError[];
1620
+ }
1621
+ interface CheckoutSequencedGetAddressPredictionResponseSuccess {
1622
+ readonly discriminator: 'checkout_sequenced_get_address_prediction_response_success';
1623
+ readonly address: io.flow.checkout.backend.v0.models.CheckoutAddress;
1624
+ }
1598
1625
  interface CheckoutSequencedSetAddressCityRequestForm {
1599
1626
  readonly discriminator: 'checkout_sequenced_set_address_city_request_form';
1600
1627
  readonly type: io.flow.checkout.backend.v0.enums.CheckoutAddressType;
@@ -1842,7 +1869,7 @@ declare namespace io.flow.checkout.protocol.v0.unions {
1842
1869
  type CheckoutCreateBySessionResponse = io.flow.checkout.protocol.v0.models.CheckoutCreateBySessionResponseError | io.flow.checkout.protocol.v0.models.CheckoutCreateBySessionResponseSuccess;
1843
1870
  type CheckoutFeaturesResponse = io.flow.checkout.protocol.v0.models.CheckoutFeaturesResponseError | io.flow.checkout.protocol.v0.models.CheckoutFeaturesResponseSuccess;
1844
1871
  type CheckoutGetResponse = io.flow.checkout.protocol.v0.models.CheckoutGetResponseError | io.flow.checkout.protocol.v0.models.CheckoutGetResponseSuccess;
1845
- type CheckoutInfo = io.flow.checkout.protocol.v0.models.CheckoutInfoAddressConfigurationFormData | io.flow.checkout.protocol.v0.models.CheckoutInfoAnalyticsOrder | io.flow.checkout.protocol.v0.models.CheckoutInfoAnalyticsSession | io.flow.checkout.protocol.v0.models.CheckoutInfoContent | io.flow.checkout.protocol.v0.models.CheckoutInfoCountriesFormData | io.flow.checkout.protocol.v0.models.CheckoutInfoDeliveriesFormData | io.flow.checkout.protocol.v0.models.CheckoutInfoHostedConfirmationPage | io.flow.checkout.protocol.v0.models.CheckoutInfoMustUseOrder | io.flow.checkout.protocol.v0.models.CheckoutInfoOptins | io.flow.checkout.protocol.v0.models.CheckoutInfoOrderSummary | io.flow.checkout.protocol.v0.models.CheckoutInfoPaymentDetails | io.flow.checkout.protocol.v0.models.CheckoutInfoPaymentsFormData | io.flow.checkout.protocol.v0.models.CheckoutInfoPublicKey;
1872
+ type CheckoutInfo = io.flow.checkout.protocol.v0.models.CheckoutInfoAddressConfigurationFormData | io.flow.checkout.protocol.v0.models.CheckoutInfoAddressPredictions | io.flow.checkout.protocol.v0.models.CheckoutInfoAnalyticsOrder | io.flow.checkout.protocol.v0.models.CheckoutInfoAnalyticsSession | io.flow.checkout.protocol.v0.models.CheckoutInfoContent | io.flow.checkout.protocol.v0.models.CheckoutInfoCountriesFormData | io.flow.checkout.protocol.v0.models.CheckoutInfoDeliveriesFormData | io.flow.checkout.protocol.v0.models.CheckoutInfoHostedConfirmationPage | io.flow.checkout.protocol.v0.models.CheckoutInfoMustUseOrder | io.flow.checkout.protocol.v0.models.CheckoutInfoOptins | io.flow.checkout.protocol.v0.models.CheckoutInfoOrderSummary | io.flow.checkout.protocol.v0.models.CheckoutInfoPaymentDetails | io.flow.checkout.protocol.v0.models.CheckoutInfoPaymentsFormData | io.flow.checkout.protocol.v0.models.CheckoutInfoPublicKey;
1846
1873
  type CheckoutInput = io.flow.checkout.protocol.v0.models.CheckoutInputAddAttributes | io.flow.checkout.protocol.v0.models.CheckoutInputDeleteAddressStreet | io.flow.checkout.protocol.v0.models.CheckoutInputSetAddressCity | io.flow.checkout.protocol.v0.models.CheckoutInputSetAddressCountry | io.flow.checkout.protocol.v0.models.CheckoutInputSetAddressName | io.flow.checkout.protocol.v0.models.CheckoutInputSetAddressPostal | io.flow.checkout.protocol.v0.models.CheckoutInputSetAddressProvince | io.flow.checkout.protocol.v0.models.CheckoutInputSetAddressStreet | io.flow.checkout.protocol.v0.models.CheckoutInputSetAttributes | io.flow.checkout.protocol.v0.models.CheckoutInputSetContactEmail | io.flow.checkout.protocol.v0.models.CheckoutInputSetContactPhone | io.flow.checkout.protocol.v0.models.CheckoutInputSetCurrency | io.flow.checkout.protocol.v0.models.CheckoutInputSetDeliveryOption | io.flow.checkout.protocol.v0.models.CheckoutInputSetLanguage | io.flow.checkout.protocol.v0.models.CheckoutInputSetLocale | io.flow.checkout.protocol.v0.models.CheckoutInputSetOptinPrompt;
1847
1874
  type CheckoutRequestForm = io.flow.checkout.protocol.v0.models.CheckoutCreateAuthorizationDetailsRequestForm | io.flow.checkout.protocol.v0.models.CheckoutCreateBySessionRequestForm | io.flow.checkout.protocol.v0.models.CheckoutFeaturesRequestForm | io.flow.checkout.protocol.v0.models.CheckoutGetRequestForm;
1848
1875
  type CheckoutResponse = io.flow.checkout.protocol.v0.models.CheckoutCreateAuthorizationDetailsResponseError | io.flow.checkout.protocol.v0.models.CheckoutCreateAuthorizationDetailsResponseSuccess | io.flow.checkout.protocol.v0.models.CheckoutCreateBySessionResponseError | io.flow.checkout.protocol.v0.models.CheckoutCreateBySessionResponseSuccess | io.flow.checkout.protocol.v0.models.CheckoutFeaturesResponseError | io.flow.checkout.protocol.v0.models.CheckoutFeaturesResponseSuccess | io.flow.checkout.protocol.v0.models.CheckoutGetResponseError | io.flow.checkout.protocol.v0.models.CheckoutGetResponseSuccess;
@@ -1855,8 +1882,9 @@ declare namespace io.flow.checkout.protocol.v0.unions {
1855
1882
  type CheckoutSequencedDeleteLineResponse = io.flow.checkout.protocol.v0.models.CheckoutSequencedDeleteLineResponseError;
1856
1883
  type CheckoutSequencedDeletePaymentResponse = io.flow.checkout.protocol.v0.models.CheckoutSequencedDeletePaymentResponseError;
1857
1884
  type CheckoutSequencedDeletePromotionCodeResponse = io.flow.checkout.protocol.v0.models.CheckoutSequencedDeletePromotionCodeResponseError;
1858
- type CheckoutSequencedRequestForm = io.flow.checkout.protocol.v0.models.CheckoutSequencedAddAttributesRequestForm | io.flow.checkout.protocol.v0.models.CheckoutSequencedAddGiftCardAndPromotionCodeRequestForm | io.flow.checkout.protocol.v0.models.CheckoutSequencedAddGiftCardRequestForm | io.flow.checkout.protocol.v0.models.CheckoutSequencedAddLineRequestForm | io.flow.checkout.protocol.v0.models.CheckoutSequencedAddOrderIdentifierRequestForm | io.flow.checkout.protocol.v0.models.CheckoutSequencedCreateAuthorizationRequestForm | io.flow.checkout.protocol.v0.models.CheckoutSequencedDeleteAddressStreetRequestForm | io.flow.checkout.protocol.v0.models.CheckoutSequencedDeleteLineRequestForm | io.flow.checkout.protocol.v0.models.CheckoutSequencedDeletePaymentRequestForm | io.flow.checkout.protocol.v0.models.CheckoutSequencedDeletePromotionCodeRequestForm | io.flow.checkout.protocol.v0.models.CheckoutSequencedSetAddressCityRequestForm | io.flow.checkout.protocol.v0.models.CheckoutSequencedSetAddressCountryRequestForm | io.flow.checkout.protocol.v0.models.CheckoutSequencedSetAddressNameRequestForm | io.flow.checkout.protocol.v0.models.CheckoutSequencedSetAddressPostalRequestForm | io.flow.checkout.protocol.v0.models.CheckoutSequencedSetAddressProvinceRequestForm | io.flow.checkout.protocol.v0.models.CheckoutSequencedSetAddressStreetRequestForm | io.flow.checkout.protocol.v0.models.CheckoutSequencedSetAttributesRequestForm | io.flow.checkout.protocol.v0.models.CheckoutSequencedSetContactEmailRequestForm | io.flow.checkout.protocol.v0.models.CheckoutSequencedSetContactPhoneRequestForm | io.flow.checkout.protocol.v0.models.CheckoutSequencedSetCurrencyRequestForm | io.flow.checkout.protocol.v0.models.CheckoutSequencedSetDeliveryOptionRequestForm | io.flow.checkout.protocol.v0.models.CheckoutSequencedSetLanguageRequestForm | io.flow.checkout.protocol.v0.models.CheckoutSequencedSetLineAttributesRequestForm | io.flow.checkout.protocol.v0.models.CheckoutSequencedSetLineQuantityRequestForm | io.flow.checkout.protocol.v0.models.CheckoutSequencedSetLinesRequestForm | io.flow.checkout.protocol.v0.models.CheckoutSequencedSetLocaleRequestForm | io.flow.checkout.protocol.v0.models.CheckoutSequencedSetOptinPromptRequestForm | io.flow.checkout.protocol.v0.models.CheckoutSequencedSetPromotionCodeRequestForm | io.flow.checkout.protocol.v0.models.CheckoutSequencedSubmitRequestForm;
1859
- type CheckoutSequencedResponse = io.flow.checkout.protocol.v0.models.CheckoutSequencedAddGiftCardAndPromotionCodeResponseError | io.flow.checkout.protocol.v0.models.CheckoutSequencedAddGiftCardResponseError | io.flow.checkout.protocol.v0.models.CheckoutSequencedAddLineResponseError | io.flow.checkout.protocol.v0.models.CheckoutSequencedAddOrderIdentifierResponseError | io.flow.checkout.protocol.v0.models.CheckoutSequencedCreateAuthorizationResponseError | io.flow.checkout.protocol.v0.models.CheckoutSequencedCreateAuthorizationResponseSuccess | io.flow.checkout.protocol.v0.models.CheckoutSequencedDeleteAddressStreetResponseError | io.flow.checkout.protocol.v0.models.CheckoutSequencedDeleteLineResponseError | io.flow.checkout.protocol.v0.models.CheckoutSequencedDeletePaymentResponseError | io.flow.checkout.protocol.v0.models.CheckoutSequencedDeletePromotionCodeResponseError | io.flow.checkout.protocol.v0.models.CheckoutSequencedSetAddressCityResponseError | io.flow.checkout.protocol.v0.models.CheckoutSequencedSetAddressCountryResponseError | io.flow.checkout.protocol.v0.models.CheckoutSequencedSetAddressNameResponseError | io.flow.checkout.protocol.v0.models.CheckoutSequencedSetAddressPostalResponseError | io.flow.checkout.protocol.v0.models.CheckoutSequencedSetAddressProvinceResponseError | io.flow.checkout.protocol.v0.models.CheckoutSequencedSetAddressStreetResponseError | io.flow.checkout.protocol.v0.models.CheckoutSequencedSetContactEmailResponseError | io.flow.checkout.protocol.v0.models.CheckoutSequencedSetContactPhoneResponseError | io.flow.checkout.protocol.v0.models.CheckoutSequencedSetCurrencyResponseError | io.flow.checkout.protocol.v0.models.CheckoutSequencedSetDeliveryOptionResponseError | io.flow.checkout.protocol.v0.models.CheckoutSequencedSetLanguageResponseError | io.flow.checkout.protocol.v0.models.CheckoutSequencedSetLineAttributesResponseError | io.flow.checkout.protocol.v0.models.CheckoutSequencedSetLineQuantityResponseError | io.flow.checkout.protocol.v0.models.CheckoutSequencedSetLinesResponseError | io.flow.checkout.protocol.v0.models.CheckoutSequencedSetLocaleResponseError | io.flow.checkout.protocol.v0.models.CheckoutSequencedSetOptinPromptResponseError | io.flow.checkout.protocol.v0.models.CheckoutSequencedSetPromotionCodeResponseError | io.flow.checkout.protocol.v0.models.CheckoutSequencedSubmitResponseError | io.flow.checkout.protocol.v0.models.CheckoutSequencedSubmitResponseSuccess;
1885
+ type CheckoutSequencedGetAddressPredictionResponse = io.flow.checkout.protocol.v0.models.CheckoutSequencedGetAddressPredictionResponseError | io.flow.checkout.protocol.v0.models.CheckoutSequencedGetAddressPredictionResponseSuccess;
1886
+ type CheckoutSequencedRequestForm = io.flow.checkout.protocol.v0.models.CheckoutSequencedAddAttributesRequestForm | io.flow.checkout.protocol.v0.models.CheckoutSequencedAddGiftCardAndPromotionCodeRequestForm | io.flow.checkout.protocol.v0.models.CheckoutSequencedAddGiftCardRequestForm | io.flow.checkout.protocol.v0.models.CheckoutSequencedAddLineRequestForm | io.flow.checkout.protocol.v0.models.CheckoutSequencedAddOrderIdentifierRequestForm | io.flow.checkout.protocol.v0.models.CheckoutSequencedCreateAuthorizationRequestForm | io.flow.checkout.protocol.v0.models.CheckoutSequencedDeleteAddressStreetRequestForm | io.flow.checkout.protocol.v0.models.CheckoutSequencedDeleteLineRequestForm | io.flow.checkout.protocol.v0.models.CheckoutSequencedDeletePaymentRequestForm | io.flow.checkout.protocol.v0.models.CheckoutSequencedDeletePromotionCodeRequestForm | io.flow.checkout.protocol.v0.models.CheckoutSequencedGetAddressPredictionRequestForm | io.flow.checkout.protocol.v0.models.CheckoutSequencedSetAddressCityRequestForm | io.flow.checkout.protocol.v0.models.CheckoutSequencedSetAddressCountryRequestForm | io.flow.checkout.protocol.v0.models.CheckoutSequencedSetAddressNameRequestForm | io.flow.checkout.protocol.v0.models.CheckoutSequencedSetAddressPostalRequestForm | io.flow.checkout.protocol.v0.models.CheckoutSequencedSetAddressProvinceRequestForm | io.flow.checkout.protocol.v0.models.CheckoutSequencedSetAddressStreetRequestForm | io.flow.checkout.protocol.v0.models.CheckoutSequencedSetAttributesRequestForm | io.flow.checkout.protocol.v0.models.CheckoutSequencedSetContactEmailRequestForm | io.flow.checkout.protocol.v0.models.CheckoutSequencedSetContactPhoneRequestForm | io.flow.checkout.protocol.v0.models.CheckoutSequencedSetCurrencyRequestForm | io.flow.checkout.protocol.v0.models.CheckoutSequencedSetDeliveryOptionRequestForm | io.flow.checkout.protocol.v0.models.CheckoutSequencedSetLanguageRequestForm | io.flow.checkout.protocol.v0.models.CheckoutSequencedSetLineAttributesRequestForm | io.flow.checkout.protocol.v0.models.CheckoutSequencedSetLineQuantityRequestForm | io.flow.checkout.protocol.v0.models.CheckoutSequencedSetLinesRequestForm | io.flow.checkout.protocol.v0.models.CheckoutSequencedSetLocaleRequestForm | io.flow.checkout.protocol.v0.models.CheckoutSequencedSetOptinPromptRequestForm | io.flow.checkout.protocol.v0.models.CheckoutSequencedSetPromotionCodeRequestForm | io.flow.checkout.protocol.v0.models.CheckoutSequencedSubmitRequestForm;
1887
+ type CheckoutSequencedResponse = io.flow.checkout.protocol.v0.models.CheckoutSequencedAddGiftCardAndPromotionCodeResponseError | io.flow.checkout.protocol.v0.models.CheckoutSequencedAddGiftCardResponseError | io.flow.checkout.protocol.v0.models.CheckoutSequencedAddLineResponseError | io.flow.checkout.protocol.v0.models.CheckoutSequencedAddOrderIdentifierResponseError | io.flow.checkout.protocol.v0.models.CheckoutSequencedCreateAuthorizationResponseError | io.flow.checkout.protocol.v0.models.CheckoutSequencedCreateAuthorizationResponseSuccess | io.flow.checkout.protocol.v0.models.CheckoutSequencedDeleteAddressStreetResponseError | io.flow.checkout.protocol.v0.models.CheckoutSequencedDeleteLineResponseError | io.flow.checkout.protocol.v0.models.CheckoutSequencedDeletePaymentResponseError | io.flow.checkout.protocol.v0.models.CheckoutSequencedDeletePromotionCodeResponseError | io.flow.checkout.protocol.v0.models.CheckoutSequencedGetAddressPredictionResponseError | io.flow.checkout.protocol.v0.models.CheckoutSequencedGetAddressPredictionResponseSuccess | io.flow.checkout.protocol.v0.models.CheckoutSequencedSetAddressCityResponseError | io.flow.checkout.protocol.v0.models.CheckoutSequencedSetAddressCountryResponseError | io.flow.checkout.protocol.v0.models.CheckoutSequencedSetAddressNameResponseError | io.flow.checkout.protocol.v0.models.CheckoutSequencedSetAddressPostalResponseError | io.flow.checkout.protocol.v0.models.CheckoutSequencedSetAddressProvinceResponseError | io.flow.checkout.protocol.v0.models.CheckoutSequencedSetAddressStreetResponseError | io.flow.checkout.protocol.v0.models.CheckoutSequencedSetContactEmailResponseError | io.flow.checkout.protocol.v0.models.CheckoutSequencedSetContactPhoneResponseError | io.flow.checkout.protocol.v0.models.CheckoutSequencedSetCurrencyResponseError | io.flow.checkout.protocol.v0.models.CheckoutSequencedSetDeliveryOptionResponseError | io.flow.checkout.protocol.v0.models.CheckoutSequencedSetLanguageResponseError | io.flow.checkout.protocol.v0.models.CheckoutSequencedSetLineAttributesResponseError | io.flow.checkout.protocol.v0.models.CheckoutSequencedSetLineQuantityResponseError | io.flow.checkout.protocol.v0.models.CheckoutSequencedSetLinesResponseError | io.flow.checkout.protocol.v0.models.CheckoutSequencedSetLocaleResponseError | io.flow.checkout.protocol.v0.models.CheckoutSequencedSetOptinPromptResponseError | io.flow.checkout.protocol.v0.models.CheckoutSequencedSetPromotionCodeResponseError | io.flow.checkout.protocol.v0.models.CheckoutSequencedSubmitResponseError | io.flow.checkout.protocol.v0.models.CheckoutSequencedSubmitResponseSuccess;
1860
1888
  type CheckoutSequencedSetAddressCityResponse = io.flow.checkout.protocol.v0.models.CheckoutSequencedSetAddressCityResponseError;
1861
1889
  type CheckoutSequencedSetAddressCountryResponse = io.flow.checkout.protocol.v0.models.CheckoutSequencedSetAddressCountryResponseError;
1862
1890
  type CheckoutSequencedSetAddressNameResponse = io.flow.checkout.protocol.v0.models.CheckoutSequencedSetAddressNameResponseError;
@@ -8746,11 +8774,18 @@ declare namespace io.flow.item.v0.models {
8746
8774
  readonly pricing: io.flow.item.v0.models.LocalItemPricing;
8747
8775
  readonly status: io.flow.catalog.v0.enums.SubcatalogItemStatus;
8748
8776
  }
8777
+ interface LocalItemAttributePricing {
8778
+ readonly pretax_price: io.flow.common.v0.models.PriceWithBase;
8779
+ readonly vat?: io.flow.catalog.v0.models.LocalizedItemVat;
8780
+ readonly duty?: io.flow.catalog.v0.models.LocalizedItemDuty;
8781
+ readonly price: io.flow.catalog.v0.models.LocalizedItemPrice;
8782
+ }
8749
8783
  interface LocalItemPricing {
8750
8784
  readonly price: io.flow.catalog.v0.models.LocalizedItemPrice;
8751
8785
  readonly vat?: io.flow.catalog.v0.models.LocalizedItemVat;
8752
8786
  readonly duty?: io.flow.catalog.v0.models.LocalizedItemDuty;
8753
8787
  readonly attributes: Record<string, io.flow.common.v0.models.PriceWithBase>;
8788
+ readonly price_attributes?: Record<string, io.flow.item.v0.models.LocalItemAttributePricing>;
8754
8789
  }
8755
8790
  }
8756
8791
  declare namespace io.flow.billing.internal.v0.enums {
@@ -11874,6 +11909,16 @@ declare namespace io.flow.checkout.backend.v0.models {
11874
11909
  readonly postal?: string;
11875
11910
  readonly company?: string;
11876
11911
  }
11912
+ interface CheckoutAddressPrediction {
11913
+ readonly description: string;
11914
+ readonly id: string;
11915
+ }
11916
+ interface CheckoutAddressPredictionMetadata {
11917
+ readonly session_token: string;
11918
+ }
11919
+ interface CheckoutAddressPredictions {
11920
+ readonly predictions: io.flow.checkout.backend.v0.models.CheckoutAddressPrediction[];
11921
+ }
11877
11922
  interface CheckoutContact {
11878
11923
  readonly email?: string;
11879
11924
  readonly phone?: string;
@@ -12007,6 +12052,7 @@ declare namespace io.flow.checkout.backend.v0.models {
12007
12052
  readonly currency?: string;
12008
12053
  readonly locale?: string;
12009
12054
  readonly language?: string;
12055
+ readonly predictions?: io.flow.checkout.backend.v0.models.CheckoutPredictionInputs;
12010
12056
  }
12011
12057
  interface CheckoutOrderPaymentCard {
12012
12058
  readonly discriminator: 'card';
@@ -12112,6 +12158,9 @@ declare namespace io.flow.checkout.backend.v0.models {
12112
12158
  readonly name: string;
12113
12159
  readonly images: io.flow.reference.v0.models.PaymentMethodImages;
12114
12160
  }
12161
+ interface CheckoutPredictionInputs {
12162
+ readonly address_prediction_metadata?: io.flow.checkout.backend.v0.models.CheckoutAddressPredictionMetadata;
12163
+ }
12115
12164
  interface CheckoutPriceFree {
12116
12165
  readonly discriminator: 'free';
12117
12166
  readonly placeholder?: string;
@@ -12605,6 +12654,7 @@ declare namespace io.flow.experiment.internal.v0.models {
12605
12654
  readonly currency?: string;
12606
12655
  readonly average_order_value?: number;
12607
12656
  readonly revenue_generated?: number;
12657
+ readonly total_order_count?: number;
12608
12658
  readonly conversion_rate_uplift?: number;
12609
12659
  readonly average_order_value_uplift?: number;
12610
12660
  readonly revenue_generated_uplift?: number;
@@ -12679,9 +12729,11 @@ declare namespace io.flow.internal.v0.enums {
12679
12729
  type CheckoutDeletePromotionCodeErrorCode = 'promotion_code_not_supported' | 'promotion_code_invalid' | 'promotion_code_expired' | 'promotion_code_does_not_meet_requirements';
12680
12730
  type CheckoutErrorCode = 'generic_error' | 'order_identifier_invalid' | 'url_invalid' | 'organization_invalid' | 'session_invalid' | 'session_missing' | 'session_organization_invalid' | 'country_invalid' | 'currency_invalid' | 'language_invalid' | 'checkout_invalid';
12681
12731
  type CheckoutFeaturesErrorCode = 'checkout_not_found';
12732
+ type CheckoutGetAddressPredictionErrorCode = 'invalid_prediction';
12682
12733
  type CheckoutGetErrorCode = 'checkout_not_found';
12683
12734
  type CheckoutHttpSequencedRequestErrorCode = 'checkout_not_found' | 'sequence_number_already_exists' | 'sequence_number_must_be_greater_than_starting_number';
12684
12735
  type CheckoutInfoAddressConfigurationFormDataKeyField = 'country';
12736
+ type CheckoutInfoAddressPredictionsKeyField = 'input';
12685
12737
  type CheckoutInfoContentKeyField = 'locale';
12686
12738
  type CheckoutInfoDeliveriesFormDataKeyField = 'country' | 'lines';
12687
12739
  type CheckoutInfoOrderSummaryKeyField = 'shipping_country' | 'shipping_province' | 'shipping_postal' | 'delivery_option_id';
@@ -12707,7 +12759,7 @@ declare namespace io.flow.internal.v0.enums {
12707
12759
  type CheckoutSetOptinPromptErrorCode = 'optin_prompt_not_found' | 'optin_prompt_consent_required' | 'optin_prompt_invalid_value';
12708
12760
  type CheckoutSetPromotionCodeErrorCode = 'promotion_code_not_supported' | 'promotion_code_invalid' | 'promotion_code_expired' | 'promotion_code_does_not_meet_requirements';
12709
12761
  type CheckoutShippingMethodPromptBehavior = 'always' | 'multiple';
12710
- type CheckoutSubmitErrorCode = 'balance_not_zero' | 'address_city_invalid' | 'address_city_required' | 'address_country_invalid' | 'address_country_required' | 'address_line_number_invalid' | 'address_postal_invalid' | 'address_postal_required' | 'address_province_invalid' | 'address_province_required' | 'address_street1_invalid' | 'address_street1_required' | 'address_street2_invalid' | 'address_street2_required' | 'address_streets_must_be_unique' | 'authorization_amount_exceeds_balance' | 'authorization_form_not_supported' | 'authorization_invalid_amount' | 'authorization_invalid_currency' | 'checkout_requires_at_least_one_line' | 'contact_email_invalid' | 'contact_email_required' | 'contact_phone_invalid' | 'contact_phone_required' | 'country_not_supported' | 'currency_invalid' | 'delivery_not_found' | 'delivery_option_not_found' | 'delivery_option_not_supported' | 'delivery_option_required' | 'gift_card_insufficient_funds' | 'gift_card_invalid_number' | 'gift_card_not_supported' | 'language_invalid' | 'line_item_number_invalid' | 'line_item_number_not_available' | 'line_not_found' | 'line_quantity_invalid' | 'line_value_threshold_exceeded' | 'locale_invalid' | 'name_missing_first_or_last' | 'name_required' | 'optin_prompt_consent_required' | 'optin_prompt_invalid_value' | 'optin_prompt_not_found' | 'order_identifier_invalid' | 'payment_not_found' | 'payment_type_does_not_support_delete' | 'promotion_code_does_not_meet_requirements' | 'promotion_code_expired' | 'promotion_code_invalid' | 'promotion_code_not_supported';
12762
+ type CheckoutSubmitErrorCode = 'balance_not_zero' | 'address_city_invalid' | 'address_city_required' | 'address_country_invalid' | 'address_country_required' | 'address_line_number_invalid' | 'address_postal_invalid' | 'address_postal_required' | 'address_province_invalid' | 'address_province_required' | 'address_street1_invalid' | 'address_street1_required' | 'address_street2_invalid' | 'address_street2_required' | 'address_streets_must_be_unique' | 'authorization_amount_exceeds_balance' | 'authorization_form_not_supported' | 'authorization_invalid_amount' | 'authorization_invalid_currency' | 'checkout_requires_at_least_one_line' | 'contact_email_invalid' | 'contact_email_required' | 'contact_phone_invalid' | 'contact_phone_required' | 'country_not_supported' | 'currency_invalid' | 'delivery_not_found' | 'delivery_option_not_found' | 'delivery_option_not_supported' | 'delivery_option_required' | 'gift_card_insufficient_funds' | 'gift_card_invalid_number' | 'gift_card_not_supported' | 'invalid_prediction' | 'language_invalid' | 'line_item_number_invalid' | 'line_item_number_not_available' | 'line_not_found' | 'line_quantity_invalid' | 'line_value_threshold_exceeded' | 'locale_invalid' | 'name_missing_first_or_last' | 'name_required' | 'optin_prompt_consent_required' | 'optin_prompt_invalid_value' | 'optin_prompt_not_found' | 'order_identifier_invalid' | 'payment_not_found' | 'payment_type_does_not_support_delete' | 'promotion_code_does_not_meet_requirements' | 'promotion_code_expired' | 'promotion_code_invalid' | 'promotion_code_not_supported';
12711
12763
  type CheckoutUrlType = 'continue_shopping' | 'confirmation' | 'invalid_checkout';
12712
12764
  type ComplianceType = 'weee';
12713
12765
  type ContentElementType = 'markdown' | 'html' | 'plain_text' | 'href';
@@ -13731,6 +13783,16 @@ declare namespace io.flow.internal.v0.models {
13731
13783
  readonly postal?: string;
13732
13784
  readonly company?: string;
13733
13785
  }
13786
+ interface CheckoutAddressPrediction {
13787
+ readonly description: string;
13788
+ readonly id: string;
13789
+ }
13790
+ interface CheckoutAddressPredictionMetadata {
13791
+ readonly session_token: string;
13792
+ }
13793
+ interface CheckoutAddressPredictions {
13794
+ readonly predictions: io.flow.internal.v0.models.CheckoutAddressPrediction[];
13795
+ }
13734
13796
  interface CheckoutAnalytics {
13735
13797
  readonly trackers: io.flow.internal.v0.unions.Tracker[];
13736
13798
  readonly use_base_currency: boolean;
@@ -14039,6 +14101,10 @@ declare namespace io.flow.internal.v0.models {
14039
14101
  readonly language?: string;
14040
14102
  readonly locale?: string;
14041
14103
  }
14104
+ interface CheckoutGetAddressPredictionError {
14105
+ readonly code: io.flow.internal.v0.enums.CheckoutGetAddressPredictionErrorCode;
14106
+ readonly message: string;
14107
+ }
14042
14108
  interface CheckoutGetError {
14043
14109
  readonly code: io.flow.internal.v0.enums.CheckoutGetErrorCode;
14044
14110
  readonly message: string;
@@ -14102,6 +14168,15 @@ declare namespace io.flow.internal.v0.models {
14102
14168
  readonly field: io.flow.internal.v0.enums.CheckoutInfoAddressConfigurationFormDataKeyField;
14103
14169
  readonly value: string;
14104
14170
  }
14171
+ interface CheckoutInfoAddressPredictions {
14172
+ readonly discriminator: 'checkout_info_address_predictions';
14173
+ readonly key: io.flow.internal.v0.models.CheckoutInfoAddressPredictionsKey[];
14174
+ readonly data: io.flow.checkout.backend.v0.models.CheckoutAddressPredictions;
14175
+ }
14176
+ interface CheckoutInfoAddressPredictionsKey {
14177
+ readonly field: io.flow.internal.v0.enums.CheckoutInfoAddressPredictionsKeyField;
14178
+ readonly value: string;
14179
+ }
14105
14180
  interface CheckoutInfoAnalyticsOrder {
14106
14181
  readonly discriminator: 'checkout_info_analytics_order';
14107
14182
  readonly data: io.flow.checkout.analytics.v0.unions.CheckoutAnalyticsOrder;
@@ -14357,6 +14432,7 @@ declare namespace io.flow.internal.v0.models {
14357
14432
  readonly currency?: string;
14358
14433
  readonly locale?: string;
14359
14434
  readonly language?: string;
14435
+ readonly predictions?: io.flow.internal.v0.models.CheckoutPredictionInputs;
14360
14436
  }
14361
14437
  interface CheckoutOrderNumberForm {
14362
14438
  readonly discriminator: 'order_number';
@@ -14497,6 +14573,9 @@ declare namespace io.flow.internal.v0.models {
14497
14573
  interface CheckoutPlatformData {
14498
14574
  readonly order_number?: string;
14499
14575
  }
14576
+ interface CheckoutPredictionInputs {
14577
+ readonly address_prediction_metadata?: io.flow.internal.v0.models.CheckoutAddressPredictionMetadata;
14578
+ }
14500
14579
  interface CheckoutPriceFree {
14501
14580
  readonly discriminator: 'free';
14502
14581
  readonly placeholder?: string;
@@ -14611,6 +14690,18 @@ declare namespace io.flow.internal.v0.models {
14611
14690
  readonly discriminator: 'checkout_sequenced_delete_promotion_code_response_error';
14612
14691
  readonly errors: io.flow.internal.v0.models.CheckoutDeletePromotionCodeError[];
14613
14692
  }
14693
+ interface CheckoutSequencedGetAddressPredictionRequestForm {
14694
+ readonly discriminator: 'checkout_sequenced_get_address_prediction_request_form';
14695
+ readonly prediction: io.flow.checkout.backend.v0.models.CheckoutAddressPrediction;
14696
+ }
14697
+ interface CheckoutSequencedGetAddressPredictionResponseError {
14698
+ readonly discriminator: 'checkout_sequenced_get_address_prediction_response_error';
14699
+ readonly errors: io.flow.internal.v0.models.CheckoutGetAddressPredictionError[];
14700
+ }
14701
+ interface CheckoutSequencedGetAddressPredictionResponseSuccess {
14702
+ readonly discriminator: 'checkout_sequenced_get_address_prediction_response_success';
14703
+ readonly address: io.flow.checkout.backend.v0.models.CheckoutAddress;
14704
+ }
14614
14705
  interface CheckoutSequencedSetAddressCityRequestForm {
14615
14706
  readonly discriminator: 'checkout_sequenced_set_address_city_request_form';
14616
14707
  readonly type: io.flow.checkout.backend.v0.enums.CheckoutAddressType;
@@ -15504,6 +15595,7 @@ declare namespace io.flow.internal.v0.models {
15504
15595
  readonly currency?: string;
15505
15596
  readonly average_order_value?: number;
15506
15597
  readonly revenue_generated?: number;
15598
+ readonly total_order_count?: number;
15507
15599
  readonly conversion_rate_uplift?: number;
15508
15600
  readonly average_order_value_uplift?: number;
15509
15601
  readonly revenue_generated_uplift?: number;
@@ -18996,7 +19088,7 @@ declare namespace io.flow.internal.v0.unions {
18996
19088
  type CheckoutFeaturesResponse = io.flow.internal.v0.models.CheckoutFeaturesResponseError | io.flow.internal.v0.models.CheckoutFeaturesResponseSuccess;
18997
19089
  type CheckoutForm = io.flow.internal.v0.models.CheckoutOrderForm | io.flow.internal.v0.models.CheckoutOrderNumberForm;
18998
19090
  type CheckoutGetResponse = io.flow.internal.v0.models.CheckoutGetResponseError | io.flow.internal.v0.models.CheckoutGetResponseSuccess;
18999
- type CheckoutInfo = io.flow.internal.v0.models.CheckoutInfoAddressConfigurationFormData | io.flow.internal.v0.models.CheckoutInfoAnalyticsOrder | io.flow.internal.v0.models.CheckoutInfoAnalyticsSession | io.flow.internal.v0.models.CheckoutInfoContent | io.flow.internal.v0.models.CheckoutInfoCountriesFormData | io.flow.internal.v0.models.CheckoutInfoDeliveriesFormData | io.flow.internal.v0.models.CheckoutInfoHostedConfirmationPage | io.flow.internal.v0.models.CheckoutInfoMustUseOrder | io.flow.internal.v0.models.CheckoutInfoOptins | io.flow.internal.v0.models.CheckoutInfoOrderSummary | io.flow.internal.v0.models.CheckoutInfoPaymentDetails | io.flow.internal.v0.models.CheckoutInfoPaymentsFormData | io.flow.internal.v0.models.CheckoutInfoPublicKey;
19091
+ type CheckoutInfo = io.flow.internal.v0.models.CheckoutInfoAddressConfigurationFormData | io.flow.internal.v0.models.CheckoutInfoAddressPredictions | io.flow.internal.v0.models.CheckoutInfoAnalyticsOrder | io.flow.internal.v0.models.CheckoutInfoAnalyticsSession | io.flow.internal.v0.models.CheckoutInfoContent | io.flow.internal.v0.models.CheckoutInfoCountriesFormData | io.flow.internal.v0.models.CheckoutInfoDeliveriesFormData | io.flow.internal.v0.models.CheckoutInfoHostedConfirmationPage | io.flow.internal.v0.models.CheckoutInfoMustUseOrder | io.flow.internal.v0.models.CheckoutInfoOptins | io.flow.internal.v0.models.CheckoutInfoOrderSummary | io.flow.internal.v0.models.CheckoutInfoPaymentDetails | io.flow.internal.v0.models.CheckoutInfoPaymentsFormData | io.flow.internal.v0.models.CheckoutInfoPublicKey;
19000
19092
  type CheckoutInput = io.flow.internal.v0.models.CheckoutInputAddAttributes | io.flow.internal.v0.models.CheckoutInputDeleteAddressStreet | io.flow.internal.v0.models.CheckoutInputSetAddressCity | io.flow.internal.v0.models.CheckoutInputSetAddressCountry | io.flow.internal.v0.models.CheckoutInputSetAddressName | io.flow.internal.v0.models.CheckoutInputSetAddressPostal | io.flow.internal.v0.models.CheckoutInputSetAddressProvince | io.flow.internal.v0.models.CheckoutInputSetAddressStreet | io.flow.internal.v0.models.CheckoutInputSetAttributes | io.flow.internal.v0.models.CheckoutInputSetContactEmail | io.flow.internal.v0.models.CheckoutInputSetContactPhone | io.flow.internal.v0.models.CheckoutInputSetCurrency | io.flow.internal.v0.models.CheckoutInputSetDeliveryOption | io.flow.internal.v0.models.CheckoutInputSetLanguage | io.flow.internal.v0.models.CheckoutInputSetLocale | io.flow.internal.v0.models.CheckoutInputSetOptinPrompt;
19001
19093
  type CheckoutOrder = io.flow.internal.v0.models.CheckoutOpenOrder | io.flow.internal.v0.models.CheckoutSubmittedOrder;
19002
19094
  type CheckoutOrderDeliveryOption = io.flow.internal.v0.models.CheckoutOrderDigitalDeliveryOption | io.flow.internal.v0.models.CheckoutOrderPhysicalDeliveryOption;
@@ -19015,8 +19107,9 @@ declare namespace io.flow.internal.v0.unions {
19015
19107
  type CheckoutSequencedDeleteLineResponse = io.flow.internal.v0.models.CheckoutSequencedDeleteLineResponseError;
19016
19108
  type CheckoutSequencedDeletePaymentResponse = io.flow.internal.v0.models.CheckoutSequencedDeletePaymentResponseError;
19017
19109
  type CheckoutSequencedDeletePromotionCodeResponse = io.flow.internal.v0.models.CheckoutSequencedDeletePromotionCodeResponseError;
19018
- type CheckoutSequencedRequestForm = io.flow.internal.v0.models.CheckoutSequencedAddAttributesRequestForm | io.flow.internal.v0.models.CheckoutSequencedAddGiftCardAndPromotionCodeRequestForm | io.flow.internal.v0.models.CheckoutSequencedAddGiftCardRequestForm | io.flow.internal.v0.models.CheckoutSequencedAddLineRequestForm | io.flow.internal.v0.models.CheckoutSequencedAddOrderIdentifierRequestForm | io.flow.internal.v0.models.CheckoutSequencedCreateAuthorizationRequestForm | io.flow.internal.v0.models.CheckoutSequencedDeleteAddressStreetRequestForm | io.flow.internal.v0.models.CheckoutSequencedDeleteLineRequestForm | io.flow.internal.v0.models.CheckoutSequencedDeletePaymentRequestForm | io.flow.internal.v0.models.CheckoutSequencedDeletePromotionCodeRequestForm | io.flow.internal.v0.models.CheckoutSequencedSetAddressCityRequestForm | io.flow.internal.v0.models.CheckoutSequencedSetAddressCountryRequestForm | io.flow.internal.v0.models.CheckoutSequencedSetAddressNameRequestForm | io.flow.internal.v0.models.CheckoutSequencedSetAddressPostalRequestForm | io.flow.internal.v0.models.CheckoutSequencedSetAddressProvinceRequestForm | io.flow.internal.v0.models.CheckoutSequencedSetAddressStreetRequestForm | io.flow.internal.v0.models.CheckoutSequencedSetAttributesRequestForm | io.flow.internal.v0.models.CheckoutSequencedSetContactEmailRequestForm | io.flow.internal.v0.models.CheckoutSequencedSetContactPhoneRequestForm | io.flow.internal.v0.models.CheckoutSequencedSetCurrencyRequestForm | io.flow.internal.v0.models.CheckoutSequencedSetDeliveryOptionRequestForm | io.flow.internal.v0.models.CheckoutSequencedSetLanguageRequestForm | io.flow.internal.v0.models.CheckoutSequencedSetLineAttributesRequestForm | io.flow.internal.v0.models.CheckoutSequencedSetLineQuantityRequestForm | io.flow.internal.v0.models.CheckoutSequencedSetLinesRequestForm | io.flow.internal.v0.models.CheckoutSequencedSetLocaleRequestForm | io.flow.internal.v0.models.CheckoutSequencedSetOptinPromptRequestForm | io.flow.internal.v0.models.CheckoutSequencedSetPromotionCodeRequestForm | io.flow.internal.v0.models.CheckoutSequencedSubmitRequestForm;
19019
- type CheckoutSequencedResponse = io.flow.internal.v0.models.CheckoutSequencedAddGiftCardAndPromotionCodeResponseError | io.flow.internal.v0.models.CheckoutSequencedAddGiftCardResponseError | io.flow.internal.v0.models.CheckoutSequencedAddLineResponseError | io.flow.internal.v0.models.CheckoutSequencedAddOrderIdentifierResponseError | io.flow.internal.v0.models.CheckoutSequencedCreateAuthorizationResponseError | io.flow.internal.v0.models.CheckoutSequencedCreateAuthorizationResponseSuccess | io.flow.internal.v0.models.CheckoutSequencedDeleteAddressStreetResponseError | io.flow.internal.v0.models.CheckoutSequencedDeleteLineResponseError | io.flow.internal.v0.models.CheckoutSequencedDeletePaymentResponseError | io.flow.internal.v0.models.CheckoutSequencedDeletePromotionCodeResponseError | io.flow.internal.v0.models.CheckoutSequencedSetAddressCityResponseError | io.flow.internal.v0.models.CheckoutSequencedSetAddressCountryResponseError | io.flow.internal.v0.models.CheckoutSequencedSetAddressNameResponseError | io.flow.internal.v0.models.CheckoutSequencedSetAddressPostalResponseError | io.flow.internal.v0.models.CheckoutSequencedSetAddressProvinceResponseError | io.flow.internal.v0.models.CheckoutSequencedSetAddressStreetResponseError | io.flow.internal.v0.models.CheckoutSequencedSetContactEmailResponseError | io.flow.internal.v0.models.CheckoutSequencedSetContactPhoneResponseError | io.flow.internal.v0.models.CheckoutSequencedSetCurrencyResponseError | io.flow.internal.v0.models.CheckoutSequencedSetDeliveryOptionResponseError | io.flow.internal.v0.models.CheckoutSequencedSetLanguageResponseError | io.flow.internal.v0.models.CheckoutSequencedSetLineAttributesResponseError | io.flow.internal.v0.models.CheckoutSequencedSetLineQuantityResponseError | io.flow.internal.v0.models.CheckoutSequencedSetLinesResponseError | io.flow.internal.v0.models.CheckoutSequencedSetLocaleResponseError | io.flow.internal.v0.models.CheckoutSequencedSetOptinPromptResponseError | io.flow.internal.v0.models.CheckoutSequencedSetPromotionCodeResponseError | io.flow.internal.v0.models.CheckoutSequencedSubmitResponseError | io.flow.internal.v0.models.CheckoutSequencedSubmitResponseSuccess;
19110
+ type CheckoutSequencedGetAddressPredictionResponse = io.flow.internal.v0.models.CheckoutSequencedGetAddressPredictionResponseError | io.flow.internal.v0.models.CheckoutSequencedGetAddressPredictionResponseSuccess;
19111
+ type CheckoutSequencedRequestForm = io.flow.internal.v0.models.CheckoutSequencedAddAttributesRequestForm | io.flow.internal.v0.models.CheckoutSequencedAddGiftCardAndPromotionCodeRequestForm | io.flow.internal.v0.models.CheckoutSequencedAddGiftCardRequestForm | io.flow.internal.v0.models.CheckoutSequencedAddLineRequestForm | io.flow.internal.v0.models.CheckoutSequencedAddOrderIdentifierRequestForm | io.flow.internal.v0.models.CheckoutSequencedCreateAuthorizationRequestForm | io.flow.internal.v0.models.CheckoutSequencedDeleteAddressStreetRequestForm | io.flow.internal.v0.models.CheckoutSequencedDeleteLineRequestForm | io.flow.internal.v0.models.CheckoutSequencedDeletePaymentRequestForm | io.flow.internal.v0.models.CheckoutSequencedDeletePromotionCodeRequestForm | io.flow.internal.v0.models.CheckoutSequencedGetAddressPredictionRequestForm | io.flow.internal.v0.models.CheckoutSequencedSetAddressCityRequestForm | io.flow.internal.v0.models.CheckoutSequencedSetAddressCountryRequestForm | io.flow.internal.v0.models.CheckoutSequencedSetAddressNameRequestForm | io.flow.internal.v0.models.CheckoutSequencedSetAddressPostalRequestForm | io.flow.internal.v0.models.CheckoutSequencedSetAddressProvinceRequestForm | io.flow.internal.v0.models.CheckoutSequencedSetAddressStreetRequestForm | io.flow.internal.v0.models.CheckoutSequencedSetAttributesRequestForm | io.flow.internal.v0.models.CheckoutSequencedSetContactEmailRequestForm | io.flow.internal.v0.models.CheckoutSequencedSetContactPhoneRequestForm | io.flow.internal.v0.models.CheckoutSequencedSetCurrencyRequestForm | io.flow.internal.v0.models.CheckoutSequencedSetDeliveryOptionRequestForm | io.flow.internal.v0.models.CheckoutSequencedSetLanguageRequestForm | io.flow.internal.v0.models.CheckoutSequencedSetLineAttributesRequestForm | io.flow.internal.v0.models.CheckoutSequencedSetLineQuantityRequestForm | io.flow.internal.v0.models.CheckoutSequencedSetLinesRequestForm | io.flow.internal.v0.models.CheckoutSequencedSetLocaleRequestForm | io.flow.internal.v0.models.CheckoutSequencedSetOptinPromptRequestForm | io.flow.internal.v0.models.CheckoutSequencedSetPromotionCodeRequestForm | io.flow.internal.v0.models.CheckoutSequencedSubmitRequestForm;
19112
+ type CheckoutSequencedResponse = io.flow.internal.v0.models.CheckoutSequencedAddGiftCardAndPromotionCodeResponseError | io.flow.internal.v0.models.CheckoutSequencedAddGiftCardResponseError | io.flow.internal.v0.models.CheckoutSequencedAddLineResponseError | io.flow.internal.v0.models.CheckoutSequencedAddOrderIdentifierResponseError | io.flow.internal.v0.models.CheckoutSequencedCreateAuthorizationResponseError | io.flow.internal.v0.models.CheckoutSequencedCreateAuthorizationResponseSuccess | io.flow.internal.v0.models.CheckoutSequencedDeleteAddressStreetResponseError | io.flow.internal.v0.models.CheckoutSequencedDeleteLineResponseError | io.flow.internal.v0.models.CheckoutSequencedDeletePaymentResponseError | io.flow.internal.v0.models.CheckoutSequencedDeletePromotionCodeResponseError | io.flow.internal.v0.models.CheckoutSequencedGetAddressPredictionResponseError | io.flow.internal.v0.models.CheckoutSequencedGetAddressPredictionResponseSuccess | io.flow.internal.v0.models.CheckoutSequencedSetAddressCityResponseError | io.flow.internal.v0.models.CheckoutSequencedSetAddressCountryResponseError | io.flow.internal.v0.models.CheckoutSequencedSetAddressNameResponseError | io.flow.internal.v0.models.CheckoutSequencedSetAddressPostalResponseError | io.flow.internal.v0.models.CheckoutSequencedSetAddressProvinceResponseError | io.flow.internal.v0.models.CheckoutSequencedSetAddressStreetResponseError | io.flow.internal.v0.models.CheckoutSequencedSetContactEmailResponseError | io.flow.internal.v0.models.CheckoutSequencedSetContactPhoneResponseError | io.flow.internal.v0.models.CheckoutSequencedSetCurrencyResponseError | io.flow.internal.v0.models.CheckoutSequencedSetDeliveryOptionResponseError | io.flow.internal.v0.models.CheckoutSequencedSetLanguageResponseError | io.flow.internal.v0.models.CheckoutSequencedSetLineAttributesResponseError | io.flow.internal.v0.models.CheckoutSequencedSetLineQuantityResponseError | io.flow.internal.v0.models.CheckoutSequencedSetLinesResponseError | io.flow.internal.v0.models.CheckoutSequencedSetLocaleResponseError | io.flow.internal.v0.models.CheckoutSequencedSetOptinPromptResponseError | io.flow.internal.v0.models.CheckoutSequencedSetPromotionCodeResponseError | io.flow.internal.v0.models.CheckoutSequencedSubmitResponseError | io.flow.internal.v0.models.CheckoutSequencedSubmitResponseSuccess;
19020
19113
  type CheckoutSequencedSetAddressCityResponse = io.flow.internal.v0.models.CheckoutSequencedSetAddressCityResponseError;
19021
19114
  type CheckoutSequencedSetAddressCountryResponse = io.flow.internal.v0.models.CheckoutSequencedSetAddressCountryResponseError;
19022
19115
  type CheckoutSequencedSetAddressNameResponse = io.flow.internal.v0.models.CheckoutSequencedSetAddressNameResponseError;
@@ -19257,6 +19350,9 @@ export declare type CheckoutAddLineErrorCode = io.flow.internal.v0.enums.Checkou
19257
19350
  export declare type CheckoutAddOrderIdentifierError = io.flow.internal.v0.models.CheckoutAddOrderIdentifierError;
19258
19351
  export declare type CheckoutAddOrderIdentifierErrorCode = io.flow.internal.v0.enums.CheckoutAddOrderIdentifierErrorCode;
19259
19352
  export declare type CheckoutAddress = io.flow.internal.v0.models.CheckoutAddress;
19353
+ export declare type CheckoutAddressPrediction = io.flow.internal.v0.models.CheckoutAddressPrediction;
19354
+ export declare type CheckoutAddressPredictionMetadata = io.flow.internal.v0.models.CheckoutAddressPredictionMetadata;
19355
+ export declare type CheckoutAddressPredictions = io.flow.internal.v0.models.CheckoutAddressPredictions;
19260
19356
  export declare type CheckoutAddressType = io.flow.internal.v0.enums.CheckoutAddressType;
19261
19357
  export declare type CheckoutAnalytics = io.flow.internal.v0.models.CheckoutAnalytics;
19262
19358
  export declare type CheckoutAnalyticsDeliveries = io.flow.internal.v0.models.CheckoutAnalyticsDeliveries;
@@ -19343,6 +19439,8 @@ export declare type CheckoutFeaturesResponseSuccess = io.flow.internal.v0.models
19343
19439
  export declare type CheckoutFinalizeOrderForm = io.flow.internal.v0.models.CheckoutFinalizeOrderForm;
19344
19440
  export declare type CheckoutForm = io.flow.internal.v0.unions.CheckoutForm;
19345
19441
  export declare type CheckoutGeoParameters = io.flow.internal.v0.models.CheckoutGeoParameters;
19442
+ export declare type CheckoutGetAddressPredictionError = io.flow.internal.v0.models.CheckoutGetAddressPredictionError;
19443
+ export declare type CheckoutGetAddressPredictionErrorCode = io.flow.internal.v0.enums.CheckoutGetAddressPredictionErrorCode;
19346
19444
  export declare type CheckoutGetError = io.flow.internal.v0.models.CheckoutGetError;
19347
19445
  export declare type CheckoutGetErrorCode = io.flow.internal.v0.enums.CheckoutGetErrorCode;
19348
19446
  export declare type CheckoutGetRequestForm = io.flow.internal.v0.models.CheckoutGetRequestForm;
@@ -19363,6 +19461,9 @@ export declare type CheckoutInfo = io.flow.internal.v0.unions.CheckoutInfo;
19363
19461
  export declare type CheckoutInfoAddressConfigurationFormData = io.flow.internal.v0.models.CheckoutInfoAddressConfigurationFormData;
19364
19462
  export declare type CheckoutInfoAddressConfigurationFormDataKey = io.flow.internal.v0.models.CheckoutInfoAddressConfigurationFormDataKey;
19365
19463
  export declare type CheckoutInfoAddressConfigurationFormDataKeyField = io.flow.internal.v0.enums.CheckoutInfoAddressConfigurationFormDataKeyField;
19464
+ export declare type CheckoutInfoAddressPredictions = io.flow.internal.v0.models.CheckoutInfoAddressPredictions;
19465
+ export declare type CheckoutInfoAddressPredictionsKey = io.flow.internal.v0.models.CheckoutInfoAddressPredictionsKey;
19466
+ export declare type CheckoutInfoAddressPredictionsKeyField = io.flow.internal.v0.enums.CheckoutInfoAddressPredictionsKeyField;
19366
19467
  export declare type CheckoutInfoAnalyticsOrder = io.flow.internal.v0.models.CheckoutInfoAnalyticsOrder;
19367
19468
  export declare type CheckoutInfoAnalyticsSession = io.flow.internal.v0.models.CheckoutInfoAnalyticsSession;
19368
19469
  export declare type CheckoutInfoContent = io.flow.internal.v0.models.CheckoutInfoContent;
@@ -19452,6 +19553,7 @@ export declare type CheckoutPaymentContent = io.flow.internal.v0.models.Checkout
19452
19553
  export declare type CheckoutPaymentGroupType = io.flow.internal.v0.enums.CheckoutPaymentGroupType;
19453
19554
  export declare type CheckoutPaymentMethod = io.flow.internal.v0.models.CheckoutPaymentMethod;
19454
19555
  export declare type CheckoutPlatformData = io.flow.internal.v0.models.CheckoutPlatformData;
19556
+ export declare type CheckoutPredictionInputs = io.flow.internal.v0.models.CheckoutPredictionInputs;
19455
19557
  export declare type CheckoutPrice = io.flow.internal.v0.unions.CheckoutPrice;
19456
19558
  export declare type CheckoutPriceFree = io.flow.internal.v0.models.CheckoutPriceFree;
19457
19559
  export declare type CheckoutPriceIncluded = io.flow.internal.v0.models.CheckoutPriceIncluded;
@@ -19492,6 +19594,10 @@ export declare type CheckoutSequencedDeletePaymentResponseError = io.flow.intern
19492
19594
  export declare type CheckoutSequencedDeletePromotionCodeRequestForm = io.flow.internal.v0.models.CheckoutSequencedDeletePromotionCodeRequestForm;
19493
19595
  export declare type CheckoutSequencedDeletePromotionCodeResponse = io.flow.internal.v0.unions.CheckoutSequencedDeletePromotionCodeResponse;
19494
19596
  export declare type CheckoutSequencedDeletePromotionCodeResponseError = io.flow.internal.v0.models.CheckoutSequencedDeletePromotionCodeResponseError;
19597
+ export declare type CheckoutSequencedGetAddressPredictionRequestForm = io.flow.internal.v0.models.CheckoutSequencedGetAddressPredictionRequestForm;
19598
+ export declare type CheckoutSequencedGetAddressPredictionResponse = io.flow.internal.v0.unions.CheckoutSequencedGetAddressPredictionResponse;
19599
+ export declare type CheckoutSequencedGetAddressPredictionResponseError = io.flow.internal.v0.models.CheckoutSequencedGetAddressPredictionResponseError;
19600
+ export declare type CheckoutSequencedGetAddressPredictionResponseSuccess = io.flow.internal.v0.models.CheckoutSequencedGetAddressPredictionResponseSuccess;
19495
19601
  export declare type CheckoutSequencedRequestForm = io.flow.internal.v0.unions.CheckoutSequencedRequestForm;
19496
19602
  export declare type CheckoutSequencedResponse = io.flow.internal.v0.unions.CheckoutSequencedResponse;
19497
19603
  export declare type CheckoutSequencedSetAddressCityRequestForm = io.flow.internal.v0.models.CheckoutSequencedSetAddressCityRequestForm;
package/dist/api.d.ts CHANGED
@@ -4030,6 +4030,12 @@ declare namespace io.flow.v0.models {
4030
4030
  readonly pricing: io.flow.v0.models.LocalItemPricing;
4031
4031
  readonly status: io.flow.v0.enums.SubcatalogItemStatus;
4032
4032
  }
4033
+ interface LocalItemAttributePricing {
4034
+ readonly pretax_price: io.flow.v0.models.PriceWithBase;
4035
+ readonly vat?: io.flow.v0.models.LocalizedItemVat;
4036
+ readonly duty?: io.flow.v0.models.LocalizedItemDuty;
4037
+ readonly price: io.flow.v0.models.LocalizedItemPrice;
4038
+ }
4033
4039
  interface LocalItemDeleted {
4034
4040
  readonly discriminator: 'local_item_deleted';
4035
4041
  readonly event_id: string;
@@ -4042,6 +4048,7 @@ declare namespace io.flow.v0.models {
4042
4048
  readonly vat?: io.flow.v0.models.LocalizedItemVat;
4043
4049
  readonly duty?: io.flow.v0.models.LocalizedItemDuty;
4044
4050
  readonly attributes: Record<string, io.flow.v0.models.PriceWithBase>;
4051
+ readonly price_attributes?: Record<string, io.flow.v0.models.LocalItemAttributePricing>;
4045
4052
  }
4046
4053
  interface LocalItemUpserted {
4047
4054
  readonly discriminator: 'local_item_upserted';
@@ -8090,6 +8097,7 @@ export declare type LineItemQuantityForm = io.flow.v0.models.LineItemQuantityFor
8090
8097
  export declare type Link = io.flow.v0.models.Link;
8091
8098
  export declare type Local = io.flow.v0.models.Local;
8092
8099
  export declare type LocalItem = io.flow.v0.models.LocalItem;
8100
+ export declare type LocalItemAttributePricing = io.flow.v0.models.LocalItemAttributePricing;
8093
8101
  export declare type LocalItemDeleted = io.flow.v0.models.LocalItemDeleted;
8094
8102
  export declare type LocalItemPricing = io.flow.v0.models.LocalItemPricing;
8095
8103
  export declare type LocalItemUpserted = io.flow.v0.models.LocalItemUpserted;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@flowio/types",
3
- "version": "10.5.2",
3
+ "version": "10.6.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",
@@ -27,5 +27,5 @@
27
27
  "prettier": "^1.18.2",
28
28
  "typescript": "3.8.3"
29
29
  },
30
- "gitHead": "033cf8f7b46043a28e9ac701ef130de12b0de7f1"
30
+ "gitHead": "662d6415029a12c2767db07c2cc0ac8a4b44679c"
31
31
  }
@@ -1585,8 +1585,10 @@ declare namespace io.flow.checkout.protocol.v0.enums {
1585
1585
  | 'promotion_code_expired'
1586
1586
  | 'promotion_code_does_not_meet_requirements';
1587
1587
  type CheckoutFeaturesErrorCode = 'checkout_not_found';
1588
+ type CheckoutGetAddressPredictionErrorCode = 'invalid_prediction';
1588
1589
  type CheckoutGetErrorCode = 'checkout_not_found';
1589
1590
  type CheckoutInfoAddressConfigurationFormDataKeyField = 'country';
1591
+ type CheckoutInfoAddressPredictionsKeyField = 'input';
1590
1592
  type CheckoutInfoContentKeyField = 'locale';
1591
1593
  type CheckoutInfoDeliveriesFormDataKeyField = 'country' | 'lines';
1592
1594
  type CheckoutInfoOrderSummaryKeyField =
@@ -1688,6 +1690,7 @@ declare namespace io.flow.checkout.protocol.v0.enums {
1688
1690
  | 'gift_card_insufficient_funds'
1689
1691
  | 'gift_card_invalid_number'
1690
1692
  | 'gift_card_not_supported'
1693
+ | 'invalid_prediction'
1691
1694
  | 'language_invalid'
1692
1695
  | 'line_item_number_invalid'
1693
1696
  | 'line_item_number_not_available'
@@ -1818,6 +1821,11 @@ declare namespace io.flow.checkout.protocol.v0.models {
1818
1821
  readonly features: io.flow.feature.v0.models.FeatureValueResult;
1819
1822
  }
1820
1823
 
1824
+ interface CheckoutGetAddressPredictionError {
1825
+ readonly code: io.flow.checkout.protocol.v0.enums.CheckoutGetAddressPredictionErrorCode;
1826
+ readonly message: string;
1827
+ }
1828
+
1821
1829
  interface CheckoutGetError {
1822
1830
  readonly code: io.flow.checkout.protocol.v0.enums.CheckoutGetErrorCode;
1823
1831
  readonly message: string;
@@ -1857,6 +1865,17 @@ declare namespace io.flow.checkout.protocol.v0.models {
1857
1865
  readonly value: string;
1858
1866
  }
1859
1867
 
1868
+ interface CheckoutInfoAddressPredictions {
1869
+ readonly discriminator: 'checkout_info_address_predictions';
1870
+ readonly key: io.flow.checkout.protocol.v0.models.CheckoutInfoAddressPredictionsKey[];
1871
+ readonly data: io.flow.checkout.backend.v0.models.CheckoutAddressPredictions;
1872
+ }
1873
+
1874
+ interface CheckoutInfoAddressPredictionsKey {
1875
+ readonly field: io.flow.checkout.protocol.v0.enums.CheckoutInfoAddressPredictionsKeyField;
1876
+ readonly value: string;
1877
+ }
1878
+
1860
1879
  interface CheckoutInfoAnalyticsOrder {
1861
1880
  readonly discriminator: 'checkout_info_analytics_order';
1862
1881
  readonly data: io.flow.checkout.analytics.v0.unions.CheckoutAnalyticsOrder;
@@ -2134,6 +2153,21 @@ declare namespace io.flow.checkout.protocol.v0.models {
2134
2153
  readonly errors: io.flow.checkout.protocol.v0.models.CheckoutDeletePromotionCodeError[];
2135
2154
  }
2136
2155
 
2156
+ interface CheckoutSequencedGetAddressPredictionRequestForm {
2157
+ readonly discriminator: 'checkout_sequenced_get_address_prediction_request_form';
2158
+ readonly prediction: io.flow.checkout.backend.v0.models.CheckoutAddressPrediction;
2159
+ }
2160
+
2161
+ interface CheckoutSequencedGetAddressPredictionResponseError {
2162
+ readonly discriminator: 'checkout_sequenced_get_address_prediction_response_error';
2163
+ readonly errors: io.flow.checkout.protocol.v0.models.CheckoutGetAddressPredictionError[];
2164
+ }
2165
+
2166
+ interface CheckoutSequencedGetAddressPredictionResponseSuccess {
2167
+ readonly discriminator: 'checkout_sequenced_get_address_prediction_response_success';
2168
+ readonly address: io.flow.checkout.backend.v0.models.CheckoutAddress;
2169
+ }
2170
+
2137
2171
  interface CheckoutSequencedSetAddressCityRequestForm {
2138
2172
  readonly discriminator: 'checkout_sequenced_set_address_city_request_form';
2139
2173
  readonly type: io.flow.checkout.backend.v0.enums.CheckoutAddressType;
@@ -2449,6 +2483,7 @@ declare namespace io.flow.checkout.protocol.v0.unions {
2449
2483
  | io.flow.checkout.protocol.v0.models.CheckoutGetResponseSuccess;
2450
2484
  type CheckoutInfo =
2451
2485
  | io.flow.checkout.protocol.v0.models.CheckoutInfoAddressConfigurationFormData
2486
+ | io.flow.checkout.protocol.v0.models.CheckoutInfoAddressPredictions
2452
2487
  | io.flow.checkout.protocol.v0.models.CheckoutInfoAnalyticsOrder
2453
2488
  | io.flow.checkout.protocol.v0.models.CheckoutInfoAnalyticsSession
2454
2489
  | io.flow.checkout.protocol.v0.models.CheckoutInfoContent
@@ -2503,6 +2538,9 @@ declare namespace io.flow.checkout.protocol.v0.unions {
2503
2538
  type CheckoutSequencedDeleteLineResponse = io.flow.checkout.protocol.v0.models.CheckoutSequencedDeleteLineResponseError;
2504
2539
  type CheckoutSequencedDeletePaymentResponse = io.flow.checkout.protocol.v0.models.CheckoutSequencedDeletePaymentResponseError;
2505
2540
  type CheckoutSequencedDeletePromotionCodeResponse = io.flow.checkout.protocol.v0.models.CheckoutSequencedDeletePromotionCodeResponseError;
2541
+ type CheckoutSequencedGetAddressPredictionResponse =
2542
+ | io.flow.checkout.protocol.v0.models.CheckoutSequencedGetAddressPredictionResponseError
2543
+ | io.flow.checkout.protocol.v0.models.CheckoutSequencedGetAddressPredictionResponseSuccess;
2506
2544
  type CheckoutSequencedRequestForm =
2507
2545
  | io.flow.checkout.protocol.v0.models.CheckoutSequencedAddAttributesRequestForm
2508
2546
  | io.flow.checkout.protocol.v0.models.CheckoutSequencedAddGiftCardAndPromotionCodeRequestForm
@@ -2514,6 +2552,7 @@ declare namespace io.flow.checkout.protocol.v0.unions {
2514
2552
  | io.flow.checkout.protocol.v0.models.CheckoutSequencedDeleteLineRequestForm
2515
2553
  | io.flow.checkout.protocol.v0.models.CheckoutSequencedDeletePaymentRequestForm
2516
2554
  | io.flow.checkout.protocol.v0.models.CheckoutSequencedDeletePromotionCodeRequestForm
2555
+ | io.flow.checkout.protocol.v0.models.CheckoutSequencedGetAddressPredictionRequestForm
2517
2556
  | io.flow.checkout.protocol.v0.models.CheckoutSequencedSetAddressCityRequestForm
2518
2557
  | io.flow.checkout.protocol.v0.models.CheckoutSequencedSetAddressCountryRequestForm
2519
2558
  | io.flow.checkout.protocol.v0.models.CheckoutSequencedSetAddressNameRequestForm
@@ -2544,6 +2583,8 @@ declare namespace io.flow.checkout.protocol.v0.unions {
2544
2583
  | io.flow.checkout.protocol.v0.models.CheckoutSequencedDeleteLineResponseError
2545
2584
  | io.flow.checkout.protocol.v0.models.CheckoutSequencedDeletePaymentResponseError
2546
2585
  | io.flow.checkout.protocol.v0.models.CheckoutSequencedDeletePromotionCodeResponseError
2586
+ | io.flow.checkout.protocol.v0.models.CheckoutSequencedGetAddressPredictionResponseError
2587
+ | io.flow.checkout.protocol.v0.models.CheckoutSequencedGetAddressPredictionResponseSuccess
2547
2588
  | io.flow.checkout.protocol.v0.models.CheckoutSequencedSetAddressCityResponseError
2548
2589
  | io.flow.checkout.protocol.v0.models.CheckoutSequencedSetAddressCountryResponseError
2549
2590
  | io.flow.checkout.protocol.v0.models.CheckoutSequencedSetAddressNameResponseError
@@ -11526,11 +11567,22 @@ declare namespace io.flow.item.v0.models {
11526
11567
  readonly status: io.flow.catalog.v0.enums.SubcatalogItemStatus;
11527
11568
  }
11528
11569
 
11570
+ interface LocalItemAttributePricing {
11571
+ readonly pretax_price: io.flow.common.v0.models.PriceWithBase;
11572
+ readonly vat?: io.flow.catalog.v0.models.LocalizedItemVat;
11573
+ readonly duty?: io.flow.catalog.v0.models.LocalizedItemDuty;
11574
+ readonly price: io.flow.catalog.v0.models.LocalizedItemPrice;
11575
+ }
11576
+
11529
11577
  interface LocalItemPricing {
11530
11578
  readonly price: io.flow.catalog.v0.models.LocalizedItemPrice;
11531
11579
  readonly vat?: io.flow.catalog.v0.models.LocalizedItemVat;
11532
11580
  readonly duty?: io.flow.catalog.v0.models.LocalizedItemDuty;
11533
11581
  readonly attributes: Record<string, io.flow.common.v0.models.PriceWithBase>;
11582
+ readonly price_attributes?: Record<
11583
+ string,
11584
+ io.flow.item.v0.models.LocalItemAttributePricing
11585
+ >;
11534
11586
  }
11535
11587
  }
11536
11588
 
@@ -15428,6 +15480,19 @@ declare namespace io.flow.checkout.backend.v0.models {
15428
15480
  readonly company?: string;
15429
15481
  }
15430
15482
 
15483
+ interface CheckoutAddressPrediction {
15484
+ readonly description: string;
15485
+ readonly id: string;
15486
+ }
15487
+
15488
+ interface CheckoutAddressPredictionMetadata {
15489
+ readonly session_token: string;
15490
+ }
15491
+
15492
+ interface CheckoutAddressPredictions {
15493
+ readonly predictions: io.flow.checkout.backend.v0.models.CheckoutAddressPrediction[];
15494
+ }
15495
+
15431
15496
  interface CheckoutContact {
15432
15497
  readonly email?: string;
15433
15498
  readonly phone?: string;
@@ -15589,6 +15654,7 @@ declare namespace io.flow.checkout.backend.v0.models {
15589
15654
  readonly currency?: string;
15590
15655
  readonly locale?: string;
15591
15656
  readonly language?: string;
15657
+ readonly predictions?: io.flow.checkout.backend.v0.models.CheckoutPredictionInputs;
15592
15658
  }
15593
15659
 
15594
15660
  interface CheckoutOrderPaymentCard {
@@ -15715,6 +15781,10 @@ declare namespace io.flow.checkout.backend.v0.models {
15715
15781
  readonly images: io.flow.reference.v0.models.PaymentMethodImages;
15716
15782
  }
15717
15783
 
15784
+ interface CheckoutPredictionInputs {
15785
+ readonly address_prediction_metadata?: io.flow.checkout.backend.v0.models.CheckoutAddressPredictionMetadata;
15786
+ }
15787
+
15718
15788
  interface CheckoutPriceFree {
15719
15789
  readonly discriminator: 'free';
15720
15790
  readonly placeholder?: string;
@@ -16329,6 +16399,7 @@ declare namespace io.flow.experiment.internal.v0.models {
16329
16399
  readonly currency?: string;
16330
16400
  readonly average_order_value?: number;
16331
16401
  readonly revenue_generated?: number;
16402
+ readonly total_order_count?: number;
16332
16403
  readonly conversion_rate_uplift?: number;
16333
16404
  readonly average_order_value_uplift?: number;
16334
16405
  readonly revenue_generated_uplift?: number;
@@ -16510,12 +16581,14 @@ declare namespace io.flow.internal.v0.enums {
16510
16581
  | 'language_invalid'
16511
16582
  | 'checkout_invalid';
16512
16583
  type CheckoutFeaturesErrorCode = 'checkout_not_found';
16584
+ type CheckoutGetAddressPredictionErrorCode = 'invalid_prediction';
16513
16585
  type CheckoutGetErrorCode = 'checkout_not_found';
16514
16586
  type CheckoutHttpSequencedRequestErrorCode =
16515
16587
  | 'checkout_not_found'
16516
16588
  | 'sequence_number_already_exists'
16517
16589
  | 'sequence_number_must_be_greater_than_starting_number';
16518
16590
  type CheckoutInfoAddressConfigurationFormDataKeyField = 'country';
16591
+ type CheckoutInfoAddressPredictionsKeyField = 'input';
16519
16592
  type CheckoutInfoContentKeyField = 'locale';
16520
16593
  type CheckoutInfoDeliveriesFormDataKeyField = 'country' | 'lines';
16521
16594
  type CheckoutInfoOrderSummaryKeyField =
@@ -16621,6 +16694,7 @@ declare namespace io.flow.internal.v0.enums {
16621
16694
  | 'gift_card_insufficient_funds'
16622
16695
  | 'gift_card_invalid_number'
16623
16696
  | 'gift_card_not_supported'
16697
+ | 'invalid_prediction'
16624
16698
  | 'language_invalid'
16625
16699
  | 'line_item_number_invalid'
16626
16700
  | 'line_item_number_not_available'
@@ -18125,6 +18199,19 @@ declare namespace io.flow.internal.v0.models {
18125
18199
  readonly company?: string;
18126
18200
  }
18127
18201
 
18202
+ interface CheckoutAddressPrediction {
18203
+ readonly description: string;
18204
+ readonly id: string;
18205
+ }
18206
+
18207
+ interface CheckoutAddressPredictionMetadata {
18208
+ readonly session_token: string;
18209
+ }
18210
+
18211
+ interface CheckoutAddressPredictions {
18212
+ readonly predictions: io.flow.internal.v0.models.CheckoutAddressPrediction[];
18213
+ }
18214
+
18128
18215
  interface CheckoutAnalytics {
18129
18216
  readonly trackers: io.flow.internal.v0.unions.Tracker[];
18130
18217
  readonly use_base_currency: boolean;
@@ -18500,6 +18587,11 @@ declare namespace io.flow.internal.v0.models {
18500
18587
  readonly locale?: string;
18501
18588
  }
18502
18589
 
18590
+ interface CheckoutGetAddressPredictionError {
18591
+ readonly code: io.flow.internal.v0.enums.CheckoutGetAddressPredictionErrorCode;
18592
+ readonly message: string;
18593
+ }
18594
+
18503
18595
  interface CheckoutGetError {
18504
18596
  readonly code: io.flow.internal.v0.enums.CheckoutGetErrorCode;
18505
18597
  readonly message: string;
@@ -18578,6 +18670,17 @@ declare namespace io.flow.internal.v0.models {
18578
18670
  readonly value: string;
18579
18671
  }
18580
18672
 
18673
+ interface CheckoutInfoAddressPredictions {
18674
+ readonly discriminator: 'checkout_info_address_predictions';
18675
+ readonly key: io.flow.internal.v0.models.CheckoutInfoAddressPredictionsKey[];
18676
+ readonly data: io.flow.checkout.backend.v0.models.CheckoutAddressPredictions;
18677
+ }
18678
+
18679
+ interface CheckoutInfoAddressPredictionsKey {
18680
+ readonly field: io.flow.internal.v0.enums.CheckoutInfoAddressPredictionsKeyField;
18681
+ readonly value: string;
18682
+ }
18683
+
18581
18684
  interface CheckoutInfoAnalyticsOrder {
18582
18685
  readonly discriminator: 'checkout_info_analytics_order';
18583
18686
  readonly data: io.flow.checkout.analytics.v0.unions.CheckoutAnalyticsOrder;
@@ -18887,6 +18990,7 @@ declare namespace io.flow.internal.v0.models {
18887
18990
  readonly currency?: string;
18888
18991
  readonly locale?: string;
18889
18992
  readonly language?: string;
18993
+ readonly predictions?: io.flow.internal.v0.models.CheckoutPredictionInputs;
18890
18994
  }
18891
18995
 
18892
18996
  interface CheckoutOrderNumberForm {
@@ -19054,6 +19158,10 @@ declare namespace io.flow.internal.v0.models {
19054
19158
  readonly order_number?: string;
19055
19159
  }
19056
19160
 
19161
+ interface CheckoutPredictionInputs {
19162
+ readonly address_prediction_metadata?: io.flow.internal.v0.models.CheckoutAddressPredictionMetadata;
19163
+ }
19164
+
19057
19165
  interface CheckoutPriceFree {
19058
19166
  readonly discriminator: 'free';
19059
19167
  readonly placeholder?: string;
@@ -19194,6 +19302,21 @@ declare namespace io.flow.internal.v0.models {
19194
19302
  readonly errors: io.flow.internal.v0.models.CheckoutDeletePromotionCodeError[];
19195
19303
  }
19196
19304
 
19305
+ interface CheckoutSequencedGetAddressPredictionRequestForm {
19306
+ readonly discriminator: 'checkout_sequenced_get_address_prediction_request_form';
19307
+ readonly prediction: io.flow.checkout.backend.v0.models.CheckoutAddressPrediction;
19308
+ }
19309
+
19310
+ interface CheckoutSequencedGetAddressPredictionResponseError {
19311
+ readonly discriminator: 'checkout_sequenced_get_address_prediction_response_error';
19312
+ readonly errors: io.flow.internal.v0.models.CheckoutGetAddressPredictionError[];
19313
+ }
19314
+
19315
+ interface CheckoutSequencedGetAddressPredictionResponseSuccess {
19316
+ readonly discriminator: 'checkout_sequenced_get_address_prediction_response_success';
19317
+ readonly address: io.flow.checkout.backend.v0.models.CheckoutAddress;
19318
+ }
19319
+
19197
19320
  interface CheckoutSequencedSetAddressCityRequestForm {
19198
19321
  readonly discriminator: 'checkout_sequenced_set_address_city_request_form';
19199
19322
  readonly type: io.flow.checkout.backend.v0.enums.CheckoutAddressType;
@@ -20261,6 +20384,7 @@ declare namespace io.flow.internal.v0.models {
20261
20384
  readonly currency?: string;
20262
20385
  readonly average_order_value?: number;
20263
20386
  readonly revenue_generated?: number;
20387
+ readonly total_order_count?: number;
20264
20388
  readonly conversion_rate_uplift?: number;
20265
20389
  readonly average_order_value_uplift?: number;
20266
20390
  readonly revenue_generated_uplift?: number;
@@ -24346,6 +24470,7 @@ declare namespace io.flow.internal.v0.unions {
24346
24470
  | io.flow.internal.v0.models.CheckoutGetResponseSuccess;
24347
24471
  type CheckoutInfo =
24348
24472
  | io.flow.internal.v0.models.CheckoutInfoAddressConfigurationFormData
24473
+ | io.flow.internal.v0.models.CheckoutInfoAddressPredictions
24349
24474
  | io.flow.internal.v0.models.CheckoutInfoAnalyticsOrder
24350
24475
  | io.flow.internal.v0.models.CheckoutInfoAnalyticsSession
24351
24476
  | io.flow.internal.v0.models.CheckoutInfoContent
@@ -24421,6 +24546,9 @@ declare namespace io.flow.internal.v0.unions {
24421
24546
  type CheckoutSequencedDeleteLineResponse = io.flow.internal.v0.models.CheckoutSequencedDeleteLineResponseError;
24422
24547
  type CheckoutSequencedDeletePaymentResponse = io.flow.internal.v0.models.CheckoutSequencedDeletePaymentResponseError;
24423
24548
  type CheckoutSequencedDeletePromotionCodeResponse = io.flow.internal.v0.models.CheckoutSequencedDeletePromotionCodeResponseError;
24549
+ type CheckoutSequencedGetAddressPredictionResponse =
24550
+ | io.flow.internal.v0.models.CheckoutSequencedGetAddressPredictionResponseError
24551
+ | io.flow.internal.v0.models.CheckoutSequencedGetAddressPredictionResponseSuccess;
24424
24552
  type CheckoutSequencedRequestForm =
24425
24553
  | io.flow.internal.v0.models.CheckoutSequencedAddAttributesRequestForm
24426
24554
  | io.flow.internal.v0.models.CheckoutSequencedAddGiftCardAndPromotionCodeRequestForm
@@ -24432,6 +24560,7 @@ declare namespace io.flow.internal.v0.unions {
24432
24560
  | io.flow.internal.v0.models.CheckoutSequencedDeleteLineRequestForm
24433
24561
  | io.flow.internal.v0.models.CheckoutSequencedDeletePaymentRequestForm
24434
24562
  | io.flow.internal.v0.models.CheckoutSequencedDeletePromotionCodeRequestForm
24563
+ | io.flow.internal.v0.models.CheckoutSequencedGetAddressPredictionRequestForm
24435
24564
  | io.flow.internal.v0.models.CheckoutSequencedSetAddressCityRequestForm
24436
24565
  | io.flow.internal.v0.models.CheckoutSequencedSetAddressCountryRequestForm
24437
24566
  | io.flow.internal.v0.models.CheckoutSequencedSetAddressNameRequestForm
@@ -24462,6 +24591,8 @@ declare namespace io.flow.internal.v0.unions {
24462
24591
  | io.flow.internal.v0.models.CheckoutSequencedDeleteLineResponseError
24463
24592
  | io.flow.internal.v0.models.CheckoutSequencedDeletePaymentResponseError
24464
24593
  | io.flow.internal.v0.models.CheckoutSequencedDeletePromotionCodeResponseError
24594
+ | io.flow.internal.v0.models.CheckoutSequencedGetAddressPredictionResponseError
24595
+ | io.flow.internal.v0.models.CheckoutSequencedGetAddressPredictionResponseSuccess
24465
24596
  | io.flow.internal.v0.models.CheckoutSequencedSetAddressCityResponseError
24466
24597
  | io.flow.internal.v0.models.CheckoutSequencedSetAddressCountryResponseError
24467
24598
  | io.flow.internal.v0.models.CheckoutSequencedSetAddressNameResponseError
@@ -25027,6 +25158,9 @@ export type CheckoutAddLineErrorCode = io.flow.internal.v0.enums.CheckoutAddLine
25027
25158
  export type CheckoutAddOrderIdentifierError = io.flow.internal.v0.models.CheckoutAddOrderIdentifierError;
25028
25159
  export type CheckoutAddOrderIdentifierErrorCode = io.flow.internal.v0.enums.CheckoutAddOrderIdentifierErrorCode;
25029
25160
  export type CheckoutAddress = io.flow.internal.v0.models.CheckoutAddress;
25161
+ export type CheckoutAddressPrediction = io.flow.internal.v0.models.CheckoutAddressPrediction;
25162
+ export type CheckoutAddressPredictionMetadata = io.flow.internal.v0.models.CheckoutAddressPredictionMetadata;
25163
+ export type CheckoutAddressPredictions = io.flow.internal.v0.models.CheckoutAddressPredictions;
25030
25164
  export type CheckoutAddressType = io.flow.internal.v0.enums.CheckoutAddressType;
25031
25165
  export type CheckoutAnalytics = io.flow.internal.v0.models.CheckoutAnalytics;
25032
25166
  export type CheckoutAnalyticsDeliveries = io.flow.internal.v0.models.CheckoutAnalyticsDeliveries;
@@ -25113,6 +25247,8 @@ export type CheckoutFeaturesResponseSuccess = io.flow.internal.v0.models.Checkou
25113
25247
  export type CheckoutFinalizeOrderForm = io.flow.internal.v0.models.CheckoutFinalizeOrderForm;
25114
25248
  export type CheckoutForm = io.flow.internal.v0.unions.CheckoutForm;
25115
25249
  export type CheckoutGeoParameters = io.flow.internal.v0.models.CheckoutGeoParameters;
25250
+ export type CheckoutGetAddressPredictionError = io.flow.internal.v0.models.CheckoutGetAddressPredictionError;
25251
+ export type CheckoutGetAddressPredictionErrorCode = io.flow.internal.v0.enums.CheckoutGetAddressPredictionErrorCode;
25116
25252
  export type CheckoutGetError = io.flow.internal.v0.models.CheckoutGetError;
25117
25253
  export type CheckoutGetErrorCode = io.flow.internal.v0.enums.CheckoutGetErrorCode;
25118
25254
  export type CheckoutGetRequestForm = io.flow.internal.v0.models.CheckoutGetRequestForm;
@@ -25133,6 +25269,9 @@ export type CheckoutInfo = io.flow.internal.v0.unions.CheckoutInfo;
25133
25269
  export type CheckoutInfoAddressConfigurationFormData = io.flow.internal.v0.models.CheckoutInfoAddressConfigurationFormData;
25134
25270
  export type CheckoutInfoAddressConfigurationFormDataKey = io.flow.internal.v0.models.CheckoutInfoAddressConfigurationFormDataKey;
25135
25271
  export type CheckoutInfoAddressConfigurationFormDataKeyField = io.flow.internal.v0.enums.CheckoutInfoAddressConfigurationFormDataKeyField;
25272
+ export type CheckoutInfoAddressPredictions = io.flow.internal.v0.models.CheckoutInfoAddressPredictions;
25273
+ export type CheckoutInfoAddressPredictionsKey = io.flow.internal.v0.models.CheckoutInfoAddressPredictionsKey;
25274
+ export type CheckoutInfoAddressPredictionsKeyField = io.flow.internal.v0.enums.CheckoutInfoAddressPredictionsKeyField;
25136
25275
  export type CheckoutInfoAnalyticsOrder = io.flow.internal.v0.models.CheckoutInfoAnalyticsOrder;
25137
25276
  export type CheckoutInfoAnalyticsSession = io.flow.internal.v0.models.CheckoutInfoAnalyticsSession;
25138
25277
  export type CheckoutInfoContent = io.flow.internal.v0.models.CheckoutInfoContent;
@@ -25222,6 +25361,7 @@ export type CheckoutPaymentContent = io.flow.internal.v0.models.CheckoutPaymentC
25222
25361
  export type CheckoutPaymentGroupType = io.flow.internal.v0.enums.CheckoutPaymentGroupType;
25223
25362
  export type CheckoutPaymentMethod = io.flow.internal.v0.models.CheckoutPaymentMethod;
25224
25363
  export type CheckoutPlatformData = io.flow.internal.v0.models.CheckoutPlatformData;
25364
+ export type CheckoutPredictionInputs = io.flow.internal.v0.models.CheckoutPredictionInputs;
25225
25365
  export type CheckoutPrice = io.flow.internal.v0.unions.CheckoutPrice;
25226
25366
  export type CheckoutPriceFree = io.flow.internal.v0.models.CheckoutPriceFree;
25227
25367
  export type CheckoutPriceIncluded = io.flow.internal.v0.models.CheckoutPriceIncluded;
@@ -25262,6 +25402,10 @@ export type CheckoutSequencedDeletePaymentResponseError = io.flow.internal.v0.mo
25262
25402
  export type CheckoutSequencedDeletePromotionCodeRequestForm = io.flow.internal.v0.models.CheckoutSequencedDeletePromotionCodeRequestForm;
25263
25403
  export type CheckoutSequencedDeletePromotionCodeResponse = io.flow.internal.v0.unions.CheckoutSequencedDeletePromotionCodeResponse;
25264
25404
  export type CheckoutSequencedDeletePromotionCodeResponseError = io.flow.internal.v0.models.CheckoutSequencedDeletePromotionCodeResponseError;
25405
+ export type CheckoutSequencedGetAddressPredictionRequestForm = io.flow.internal.v0.models.CheckoutSequencedGetAddressPredictionRequestForm;
25406
+ export type CheckoutSequencedGetAddressPredictionResponse = io.flow.internal.v0.unions.CheckoutSequencedGetAddressPredictionResponse;
25407
+ export type CheckoutSequencedGetAddressPredictionResponseError = io.flow.internal.v0.models.CheckoutSequencedGetAddressPredictionResponseError;
25408
+ export type CheckoutSequencedGetAddressPredictionResponseSuccess = io.flow.internal.v0.models.CheckoutSequencedGetAddressPredictionResponseSuccess;
25265
25409
  export type CheckoutSequencedRequestForm = io.flow.internal.v0.unions.CheckoutSequencedRequestForm;
25266
25410
  export type CheckoutSequencedResponse = io.flow.internal.v0.unions.CheckoutSequencedResponse;
25267
25411
  export type CheckoutSequencedSetAddressCityRequestForm = io.flow.internal.v0.models.CheckoutSequencedSetAddressCityRequestForm;
package/src/api.ts CHANGED
@@ -5206,6 +5206,13 @@ declare namespace io.flow.v0.models {
5206
5206
  readonly status: io.flow.v0.enums.SubcatalogItemStatus;
5207
5207
  }
5208
5208
 
5209
+ interface LocalItemAttributePricing {
5210
+ readonly pretax_price: io.flow.v0.models.PriceWithBase;
5211
+ readonly vat?: io.flow.v0.models.LocalizedItemVat;
5212
+ readonly duty?: io.flow.v0.models.LocalizedItemDuty;
5213
+ readonly price: io.flow.v0.models.LocalizedItemPrice;
5214
+ }
5215
+
5209
5216
  interface LocalItemDeleted {
5210
5217
  readonly discriminator: 'local_item_deleted';
5211
5218
  readonly event_id: string;
@@ -5219,6 +5226,10 @@ declare namespace io.flow.v0.models {
5219
5226
  readonly vat?: io.flow.v0.models.LocalizedItemVat;
5220
5227
  readonly duty?: io.flow.v0.models.LocalizedItemDuty;
5221
5228
  readonly attributes: Record<string, io.flow.v0.models.PriceWithBase>;
5229
+ readonly price_attributes?: Record<
5230
+ string,
5231
+ io.flow.v0.models.LocalItemAttributePricing
5232
+ >;
5222
5233
  }
5223
5234
 
5224
5235
  interface LocalItemUpserted {
@@ -10113,6 +10124,7 @@ export type LineItemQuantityForm = io.flow.v0.models.LineItemQuantityForm;
10113
10124
  export type Link = io.flow.v0.models.Link;
10114
10125
  export type Local = io.flow.v0.models.Local;
10115
10126
  export type LocalItem = io.flow.v0.models.LocalItem;
10127
+ export type LocalItemAttributePricing = io.flow.v0.models.LocalItemAttributePricing;
10116
10128
  export type LocalItemDeleted = io.flow.v0.models.LocalItemDeleted;
10117
10129
  export type LocalItemPricing = io.flow.v0.models.LocalItemPricing;
10118
10130
  export type LocalItemUpserted = io.flow.v0.models.LocalItemUpserted;