@flowio/types 10.2.1 → 10.2.2

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.
@@ -1117,6 +1117,9 @@ declare namespace io.flow.tax.internal.v0.models {
1117
1117
  readonly 'remittance': io.flow.common.v0.models.Money;
1118
1118
  }
1119
1119
  interface LiabilityRemittancePlan {
1120
+ readonly 'id': string;
1121
+ readonly 'organization': string;
1122
+ readonly 'order_number': string;
1120
1123
  readonly 'liabilities': io.flow.tax.internal.v0.models.Liability[];
1121
1124
  readonly 'total_tax': io.flow.common.v0.models.MoneyWithBase;
1122
1125
  }
@@ -2312,13 +2315,13 @@ declare namespace io.flow.fulfillment.internal.v0.models {
2312
2315
  interface CenterQueryBuilder {
2313
2316
  readonly 'placeholder': string;
2314
2317
  }
2315
- interface FulfillmentExperienceReference {
2318
+ interface FulfillmentInternalExperienceReference {
2316
2319
  readonly 'id': string;
2317
2320
  readonly 'key': string;
2318
2321
  }
2319
2322
  interface PregeneratedQuote {
2320
2323
  readonly 'id': string;
2321
- readonly 'experience': io.flow.fulfillment.internal.v0.models.FulfillmentExperienceReference;
2324
+ readonly 'experience': io.flow.fulfillment.internal.v0.models.FulfillmentInternalExperienceReference;
2322
2325
  readonly 'destination_country': string;
2323
2326
  readonly 'item': io.flow.common.v0.models.ItemReference;
2324
2327
  readonly 'quote'?: io.flow.fulfillment.v0.models.Quote;
@@ -2692,7 +2695,7 @@ declare namespace io.flow.stripe.v0.models {
2692
2695
  readonly 'charge'?: string;
2693
2696
  readonly 'code'?: string;
2694
2697
  readonly 'decline_code'?: io.flow.stripe.v0.enums.DeclineCode;
2695
- readonly 'doc_url': string;
2698
+ readonly 'doc_url'?: string;
2696
2699
  readonly 'message'?: string;
2697
2700
  readonly 'param'?: string;
2698
2701
  readonly 'payment_method': io.flow.stripe.v0.models.PaymentMethod;
@@ -4206,7 +4209,7 @@ declare namespace io.flow.shopify.external.v0.models {
4206
4209
  interface Product {
4207
4210
  readonly 'id': number;
4208
4211
  readonly 'handle': string;
4209
- readonly 'variants': io.flow.shopify.external.v0.models.ProductVariant[];
4212
+ readonly 'variants'?: io.flow.shopify.external.v0.models.ProductVariant[];
4210
4213
  readonly 'images': io.flow.shopify.external.v0.models.ProductImage[];
4211
4214
  readonly 'title': string;
4212
4215
  readonly 'vendor'?: string;
@@ -4321,6 +4324,9 @@ declare namespace io.flow.shopify.external.v0.models {
4321
4324
  interface ResponseShopifyTransactionSingle {
4322
4325
  readonly 'transaction': io.flow.shopify.external.v0.models.ShopifyTransaction;
4323
4326
  }
4327
+ interface ResponseSmartCollection {
4328
+ readonly 'smart_collections': io.flow.shopify.external.v0.models.SmartCollection[];
4329
+ }
4324
4330
  interface ResponseVariant {
4325
4331
  readonly 'variant': io.flow.shopify.external.v0.models.ProductVariant;
4326
4332
  }
@@ -4846,6 +4852,12 @@ declare namespace io.flow.shopify.external.v0.models {
4846
4852
  readonly 'shop_id': number;
4847
4853
  readonly 'shop_domain': string;
4848
4854
  }
4855
+ interface SmartCollection {
4856
+ readonly 'id': number;
4857
+ readonly 'handle': string;
4858
+ readonly 'title': string;
4859
+ readonly 'updated_at': string;
4860
+ }
4849
4861
  interface Webhook {
4850
4862
  readonly 'address': string;
4851
4863
  readonly 'created_at': string;
@@ -5755,6 +5767,7 @@ declare namespace io.flow.payment.internal.v0.models {
5755
5767
  readonly 'account_type': io.flow.stripe.v0.enums.AccountType;
5756
5768
  readonly 'country': string;
5757
5769
  readonly 'payment_statement': string;
5770
+ readonly 'status'?: io.flow.payment.internal.v0.enums.ProcessorEntityStatus;
5758
5771
  }
5759
5772
  interface StripeMerchantPutForm {
5760
5773
  readonly 'discriminator': 'stripe_merchant_put_form';
@@ -10509,7 +10522,7 @@ declare namespace io.flow.fraud.v0.models {
10509
10522
  }
10510
10523
  }
10511
10524
  declare namespace io.flow.experience.internal.v0.enums {
10512
- type DeliveredDutyOptionMessageType = 'warning';
10525
+ type DeliveredDutyOptionMessageType = 'warning' | 'notification';
10513
10526
  type DiscountRequestOrderEntitlementKey = 'subtotal';
10514
10527
  type ExperienceOrderAction = 'submit' | 'refund_gift_cards';
10515
10528
  type ExperienceOrderActionTrigger = 'zero_balance' | 'unsubmitted_order';
@@ -10536,6 +10549,7 @@ declare namespace io.flow.experience.internal.v0.models {
10536
10549
  interface DeliveredDutyOptionsMessage {
10537
10550
  readonly 'title': string;
10538
10551
  readonly 'content': string;
10552
+ readonly 'type': io.flow.experience.internal.v0.enums.DeliveredDutyOptionMessageType;
10539
10553
  }
10540
10554
  interface DeliveredDutyPreference {
10541
10555
  readonly 'methods': io.flow.common.v0.enums.DeliveredDuty[];
@@ -11204,7 +11218,7 @@ declare namespace io.flow.internal.v0.enums {
11204
11218
  type ContentType = 'text' | 'html';
11205
11219
  type ContentTypeCast = 'markdown_to_html' | 'markdown_to_text';
11206
11220
  type CrossdockTrackingStatus = 'notified' | 'received' | 'shipped';
11207
- type DeliveredDutyOptionMessageType = 'warning';
11221
+ type DeliveredDutyOptionMessageType = 'warning' | 'notification';
11208
11222
  type DeminimisAdjustmentType = 'none' | 'duty' | 'vat' | 'vat_and_duty';
11209
11223
  type DiscountRequestOrderEntitlementKey = 'subtotal';
11210
11224
  type DutyCompoundExpressionType = 'sum' | 'max' | 'min';
@@ -11291,7 +11305,7 @@ declare namespace io.flow.internal.v0.enums {
11291
11305
  type TrackingIntegrationType = 'api' | 'bulk' | 'aftership';
11292
11306
  type TransferMethod = 'ach';
11293
11307
  type UnclassifiedProductStatus = 'ignored' | 'escalated' | 'requeued';
11294
- type V2CheckoutErrorCode = 'generic_error';
11308
+ type V2CheckoutErrorCode = 'checkout_not_found' | 'checkout_modification_invalid' | 'currency_invalid' | 'country_invalid' | 'generic_error' | 'language_invalid' | 'order_identifier_invalid' | 'organization_invalid' | 'session_invalid' | 'url_invalid';
11295
11309
  }
11296
11310
  declare namespace io.flow.internal.v0.models {
11297
11311
  interface Account {
@@ -12168,10 +12182,6 @@ declare namespace io.flow.internal.v0.models {
12168
12182
  readonly 'url': string;
12169
12183
  readonly 'type': io.flow.internal.v0.enums.CheckoutAssetType;
12170
12184
  }
12171
- interface CheckoutAttributesForm {
12172
- readonly 'discriminator': 'checkout_attributes_form';
12173
- readonly 'attributes': Record<string, string>;
12174
- }
12175
12185
  interface CheckoutBehavior {
12176
12186
  readonly 'shipping_address': io.flow.internal.v0.models.CheckoutBehaviorShippingAddress;
12177
12187
  readonly 'shipping_method': io.flow.internal.v0.models.CheckoutBehaviorShippingMethod;
@@ -12258,30 +12268,6 @@ declare namespace io.flow.internal.v0.models {
12258
12268
  readonly 'marketing': io.flow.internal.v0.models.CheckoutMarketingContent;
12259
12269
  readonly 'footer': io.flow.internal.v0.unions.ContentItem[];
12260
12270
  }
12261
- interface CheckoutCurrencyForm {
12262
- readonly 'discriminator': 'checkout_currency_form';
12263
- readonly 'currency': string;
12264
- }
12265
- interface CheckoutCustomerForm {
12266
- readonly 'name': io.flow.common.v0.models.Name;
12267
- readonly 'number'?: string;
12268
- readonly 'phone'?: string;
12269
- readonly 'email'?: string;
12270
- readonly 'address'?: io.flow.common.v0.models.BillingAddress;
12271
- readonly 'invoice'?: io.flow.common.v0.models.CustomerInvoice;
12272
- }
12273
- interface CheckoutDestinationAddressForm {
12274
- readonly 'discriminator': 'checkout_destination_address_form';
12275
- readonly 'text'?: string;
12276
- readonly 'streets'?: string[];
12277
- readonly 'city'?: string;
12278
- readonly 'province'?: string;
12279
- readonly 'postal'?: string;
12280
- readonly 'country'?: string;
12281
- readonly 'latitude'?: string;
12282
- readonly 'longitude'?: string;
12283
- readonly 'contact'?: io.flow.common.v0.models.Contact;
12284
- }
12285
12271
  interface CheckoutError {
12286
12272
  readonly 'code': io.flow.internal.v0.enums.CheckoutErrorCode;
12287
12273
  readonly 'messages': string[];
@@ -12292,28 +12278,29 @@ declare namespace io.flow.internal.v0.models {
12292
12278
  readonly 'expected_order_summary': io.flow.internal.v0.models.ExpectedOrderSummary;
12293
12279
  readonly 'order_put_form': io.flow.experience.v0.models.OrderPutForm;
12294
12280
  }
12295
- interface CheckoutLanguageForm {
12296
- readonly 'discriminator': 'checkout_language_form';
12297
- readonly 'language': string;
12298
- }
12299
12281
  interface CheckoutLine {
12300
12282
  readonly 'id': string;
12301
12283
  readonly 'checkout': io.flow.internal.v0.models.V2CheckoutReference;
12302
12284
  readonly 'item_number': string;
12303
12285
  readonly 'quantity': number;
12304
- }
12305
- interface CheckoutLineDeleteForm {
12306
- readonly 'discriminator': 'checkout_line_delete_form';
12307
- readonly 'id': string;
12286
+ readonly 'attributes'?: Record<string, string>;
12308
12287
  }
12309
12288
  interface CheckoutLineForm {
12310
- readonly 'discriminator': 'checkout_line_form';
12311
12289
  readonly 'checkout_id': string;
12312
12290
  readonly 'item_number': string;
12313
12291
  readonly 'quantity': number;
12292
+ readonly 'attributes'?: Record<string, string>;
12293
+ }
12294
+ interface CheckoutLineModificationDeleteForm {
12295
+ readonly 'discriminator': 'checkout_line_modification_delete_form';
12296
+ readonly 'id': string;
12297
+ }
12298
+ interface CheckoutLineModificationQuantityForm {
12299
+ readonly 'discriminator': 'checkout_line_modification_quantity_form';
12300
+ readonly 'id': string;
12301
+ readonly 'quantity': number;
12314
12302
  }
12315
12303
  interface CheckoutLineQuantityForm {
12316
- readonly 'discriminator': 'checkout_line_quantity_form';
12317
12304
  readonly 'quantity': number;
12318
12305
  }
12319
12306
  interface CheckoutMarketingContent {
@@ -12322,8 +12309,57 @@ declare namespace io.flow.internal.v0.models {
12322
12309
  interface CheckoutModification {
12323
12310
  readonly 'id': string;
12324
12311
  readonly 'checkout': io.flow.internal.v0.models.V2CheckoutReference;
12325
- readonly 'modification': io.flow.internal.v0.unions.CheckoutModificationForm;
12326
- readonly 'timestamp': string;
12312
+ readonly 'form': io.flow.internal.v0.unions.CheckoutModificationForm;
12313
+ }
12314
+ interface CheckoutModificationAttributesForm {
12315
+ readonly 'discriminator': 'checkout_modification_attributes_form';
12316
+ readonly 'attributes': Record<string, string>;
12317
+ }
12318
+ interface CheckoutModificationCurrencyForm {
12319
+ readonly 'discriminator': 'checkout_modification_currency_form';
12320
+ readonly 'currency': string;
12321
+ }
12322
+ interface CheckoutModificationCustomerForm {
12323
+ readonly 'name': io.flow.common.v0.models.Name;
12324
+ readonly 'number'?: string;
12325
+ readonly 'phone'?: string;
12326
+ readonly 'email'?: string;
12327
+ readonly 'address'?: io.flow.common.v0.models.BillingAddress;
12328
+ readonly 'invoice'?: io.flow.common.v0.models.CustomerInvoice;
12329
+ }
12330
+ interface CheckoutModificationDestinationAddressCityForm {
12331
+ readonly 'discriminator': 'checkout_modification_destination_address_city_form';
12332
+ readonly 'city': string;
12333
+ }
12334
+ interface CheckoutModificationDestinationAddressCountryForm {
12335
+ readonly 'discriminator': 'checkout_modification_destination_address_country_form';
12336
+ readonly 'country': string;
12337
+ }
12338
+ interface CheckoutModificationDestinationAddressPostalForm {
12339
+ readonly 'discriminator': 'checkout_modification_destination_address_postal_form';
12340
+ readonly 'postal': string;
12341
+ }
12342
+ interface CheckoutModificationDestinationAddressProvinceForm {
12343
+ readonly 'discriminator': 'checkout_modification_destination_address_province_form';
12344
+ readonly 'province': string;
12345
+ }
12346
+ interface CheckoutModificationDestinationAddressStreetsForm {
12347
+ readonly 'discriminator': 'checkout_modification_destination_address_streets_form';
12348
+ readonly 'streets': string[];
12349
+ }
12350
+ interface CheckoutModificationLanguageForm {
12351
+ readonly 'discriminator': 'checkout_modification_language_form';
12352
+ readonly 'language': string;
12353
+ }
12354
+ interface CheckoutModificationLineForm {
12355
+ readonly 'discriminator': 'checkout_modification_line_form';
12356
+ readonly 'item_number': string;
12357
+ readonly 'quantity': number;
12358
+ readonly 'attributes'?: Record<string, string>;
12359
+ }
12360
+ interface CheckoutModificationPromotionCodeForm {
12361
+ readonly 'discriminator': 'checkout_modification_promotion_code_form';
12362
+ readonly 'code': string;
12327
12363
  }
12328
12364
  interface CheckoutOrderForm {
12329
12365
  readonly 'discriminator': 'order';
@@ -12371,10 +12407,6 @@ declare namespace io.flow.internal.v0.models {
12371
12407
  interface CheckoutPlatformData {
12372
12408
  readonly 'order_number'?: string;
12373
12409
  }
12374
- interface CheckoutPromotionCodeForm {
12375
- readonly 'discriminator': 'checkout_promotion_code_form';
12376
- readonly 'code': string;
12377
- }
12378
12410
  interface CheckoutRedirect {
12379
12411
  readonly 'method': io.flow.internal.v0.enums.CheckoutRedirectMethod;
12380
12412
  readonly 'url': string;
@@ -12727,6 +12759,7 @@ declare namespace io.flow.internal.v0.models {
12727
12759
  interface DeliveredDutyOptionsMessage {
12728
12760
  readonly 'title': string;
12729
12761
  readonly 'content': string;
12762
+ readonly 'type': io.flow.internal.v0.enums.DeliveredDutyOptionMessageType;
12730
12763
  }
12731
12764
  interface DeliveredDutyPreference {
12732
12765
  readonly 'methods': io.flow.common.v0.enums.DeliveredDuty[];
@@ -13479,7 +13512,7 @@ declare namespace io.flow.internal.v0.models {
13479
13512
  readonly 'reason': io.flow.order.management.v0.enums.CancelReason;
13480
13513
  readonly 'cancelled_lines': io.flow.order.management.v0.models.FulfillmentLineCancelForm[];
13481
13514
  }
13482
- interface FulfillmentExperienceReference {
13515
+ interface FulfillmentInternalExperienceReference {
13483
13516
  readonly 'id': string;
13484
13517
  readonly 'key': string;
13485
13518
  }
@@ -14023,6 +14056,9 @@ declare namespace io.flow.internal.v0.models {
14023
14056
  readonly 'remittance': io.flow.common.v0.models.Money;
14024
14057
  }
14025
14058
  interface LiabilityRemittancePlan {
14059
+ readonly 'id': string;
14060
+ readonly 'organization': string;
14061
+ readonly 'order_number': string;
14026
14062
  readonly 'liabilities': io.flow.internal.v0.models.Liability[];
14027
14063
  readonly 'total_tax': io.flow.common.v0.models.MoneyWithBase;
14028
14064
  }
@@ -15143,7 +15179,7 @@ declare namespace io.flow.internal.v0.models {
15143
15179
  }
15144
15180
  interface PregeneratedQuote {
15145
15181
  readonly 'id': string;
15146
- readonly 'experience': io.flow.internal.v0.models.FulfillmentExperienceReference;
15182
+ readonly 'experience': io.flow.internal.v0.models.FulfillmentInternalExperienceReference;
15147
15183
  readonly 'destination_country': string;
15148
15184
  readonly 'item': io.flow.common.v0.models.ItemReference;
15149
15185
  readonly 'quote'?: io.flow.fulfillment.v0.models.Quote;
@@ -16025,6 +16061,7 @@ declare namespace io.flow.internal.v0.models {
16025
16061
  readonly 'account_type': io.flow.stripe.v0.enums.AccountType;
16026
16062
  readonly 'country': string;
16027
16063
  readonly 'payment_statement': string;
16064
+ readonly 'status'?: io.flow.internal.v0.enums.ProcessorEntityStatus;
16028
16065
  }
16029
16066
  interface StripeMerchantPutForm {
16030
16067
  readonly 'discriminator': 'stripe_merchant_put_form';
@@ -16423,17 +16460,18 @@ declare namespace io.flow.internal.v0.models {
16423
16460
  interface V2Checkout {
16424
16461
  readonly 'id': string;
16425
16462
  readonly 'organization': io.flow.common.v0.models.OrganizationReference;
16426
- readonly 'order'?: io.flow.experience.v0.models.OrderSummary;
16427
- readonly 'errors'?: io.flow.internal.v0.models.V2CheckoutError[];
16428
16463
  }
16429
16464
  interface V2CheckoutError {
16430
- readonly 'code': io.flow.internal.v0.enums.V2CheckoutErrorCode;
16431
- readonly 'messages': string[];
16432
- readonly 'redirect'?: io.flow.checkout.common.v0.models.CheckoutRedirect;
16465
+ readonly 'errors': io.flow.internal.v0.models.V2CheckoutSingleError[];
16433
16466
  }
16434
16467
  interface V2CheckoutReference {
16435
16468
  readonly 'id': string;
16436
16469
  }
16470
+ interface V2CheckoutSingleError {
16471
+ readonly 'code': io.flow.internal.v0.enums.V2CheckoutErrorCode;
16472
+ readonly 'messages': string[];
16473
+ readonly 'redirect'?: io.flow.checkout.common.v0.models.CheckoutRedirect;
16474
+ }
16437
16475
  interface ValidationCharacterLength {
16438
16476
  readonly 'discriminator': 'validation_character_length';
16439
16477
  readonly 'min'?: number;
@@ -16481,7 +16519,7 @@ declare namespace io.flow.internal.v0.unions {
16481
16519
  type AuthorizedOrderCharge = (io.flow.internal.v0.models.AuthorizedShippingCharge);
16482
16520
  type CarrierCredentials = (io.flow.internal.v0.models.SfExpress | io.flow.internal.v0.models.DhlEcommerce | io.flow.internal.v0.models.Landmark | io.flow.internal.v0.models.Dhl | io.flow.internal.v0.models.FedexCrossborder | io.flow.internal.v0.models.Ups);
16483
16521
  type CheckoutForm = (io.flow.internal.v0.models.CheckoutOrderForm | io.flow.internal.v0.models.CheckoutOrderNumberForm);
16484
- type CheckoutModificationForm = (io.flow.internal.v0.models.CheckoutLineForm | io.flow.internal.v0.models.CheckoutLineDeleteForm | io.flow.internal.v0.models.CheckoutLineQuantityForm | io.flow.internal.v0.models.CheckoutDestinationAddressForm | io.flow.internal.v0.models.CheckoutAttributesForm | io.flow.internal.v0.models.CheckoutCurrencyForm | io.flow.internal.v0.models.CheckoutLanguageForm | io.flow.internal.v0.models.CheckoutPromotionCodeForm);
16522
+ type CheckoutModificationForm = (io.flow.internal.v0.models.CheckoutModificationAttributesForm | io.flow.internal.v0.models.CheckoutModificationCurrencyForm | io.flow.internal.v0.models.CheckoutModificationDestinationAddressStreetsForm | io.flow.internal.v0.models.CheckoutModificationDestinationAddressCityForm | io.flow.internal.v0.models.CheckoutModificationDestinationAddressProvinceForm | io.flow.internal.v0.models.CheckoutModificationDestinationAddressPostalForm | io.flow.internal.v0.models.CheckoutModificationDestinationAddressCountryForm | io.flow.internal.v0.models.CheckoutModificationLanguageForm | io.flow.internal.v0.models.CheckoutModificationLineForm | io.flow.internal.v0.models.CheckoutLineModificationDeleteForm | io.flow.internal.v0.models.CheckoutLineModificationQuantityForm | io.flow.internal.v0.models.CheckoutModificationPromotionCodeForm);
16485
16523
  type CheckoutSubmitOrderBundles = (io.flow.internal.v0.models.CheckoutSubmitOrderBundle);
16486
16524
  type CheckoutSubmitOrderForms = (io.flow.internal.v0.models.CheckoutSubmitOrderForm);
16487
16525
  type ClassificationJudgementForm = (io.flow.internal.v0.models.ProductClassificationForm | io.flow.internal.v0.models.NoClassificationForm);
@@ -16695,7 +16733,6 @@ export declare type Checkbox = io.flow.internal.v0.models.Checkbox;
16695
16733
  export declare type CheckoutAnalytics = io.flow.internal.v0.models.CheckoutAnalytics;
16696
16734
  export declare type CheckoutAsset = io.flow.internal.v0.models.CheckoutAsset;
16697
16735
  export declare type CheckoutAssetType = io.flow.internal.v0.enums.CheckoutAssetType;
16698
- export declare type CheckoutAttributesForm = io.flow.internal.v0.models.CheckoutAttributesForm;
16699
16736
  export declare type CheckoutBehavior = io.flow.internal.v0.models.CheckoutBehavior;
16700
16737
  export declare type CheckoutBehaviorCustomerInfo = io.flow.internal.v0.models.CheckoutBehaviorCustomerInfo;
16701
16738
  export declare type CheckoutBehaviorCustomerInfoEmail = io.flow.internal.v0.models.CheckoutBehaviorCustomerInfoEmail;
@@ -16711,21 +16748,29 @@ export declare type CheckoutConfigurationUpserted = io.flow.internal.v0.models.C
16711
16748
  export declare type CheckoutContent = io.flow.internal.v0.models.CheckoutContent;
16712
16749
  export declare type CheckoutContentDetails = io.flow.internal.v0.models.CheckoutContentDetails;
16713
16750
  export declare type CheckoutContentSummary = io.flow.internal.v0.models.CheckoutContentSummary;
16714
- export declare type CheckoutCurrencyForm = io.flow.internal.v0.models.CheckoutCurrencyForm;
16715
- export declare type CheckoutCustomerForm = io.flow.internal.v0.models.CheckoutCustomerForm;
16716
- export declare type CheckoutDestinationAddressForm = io.flow.internal.v0.models.CheckoutDestinationAddressForm;
16717
16751
  export declare type CheckoutError = io.flow.internal.v0.models.CheckoutError;
16718
16752
  export declare type CheckoutErrorCode = io.flow.internal.v0.enums.CheckoutErrorCode;
16719
16753
  export declare type CheckoutFinalizeOrderForm = io.flow.internal.v0.models.CheckoutFinalizeOrderForm;
16720
16754
  export declare type CheckoutForm = io.flow.internal.v0.unions.CheckoutForm;
16721
- export declare type CheckoutLanguageForm = io.flow.internal.v0.models.CheckoutLanguageForm;
16722
16755
  export declare type CheckoutLine = io.flow.internal.v0.models.CheckoutLine;
16723
- export declare type CheckoutLineDeleteForm = io.flow.internal.v0.models.CheckoutLineDeleteForm;
16724
16756
  export declare type CheckoutLineForm = io.flow.internal.v0.models.CheckoutLineForm;
16757
+ export declare type CheckoutLineModificationDeleteForm = io.flow.internal.v0.models.CheckoutLineModificationDeleteForm;
16758
+ export declare type CheckoutLineModificationQuantityForm = io.flow.internal.v0.models.CheckoutLineModificationQuantityForm;
16725
16759
  export declare type CheckoutLineQuantityForm = io.flow.internal.v0.models.CheckoutLineQuantityForm;
16726
16760
  export declare type CheckoutMarketingContent = io.flow.internal.v0.models.CheckoutMarketingContent;
16727
16761
  export declare type CheckoutModification = io.flow.internal.v0.models.CheckoutModification;
16762
+ export declare type CheckoutModificationAttributesForm = io.flow.internal.v0.models.CheckoutModificationAttributesForm;
16763
+ export declare type CheckoutModificationCurrencyForm = io.flow.internal.v0.models.CheckoutModificationCurrencyForm;
16764
+ export declare type CheckoutModificationCustomerForm = io.flow.internal.v0.models.CheckoutModificationCustomerForm;
16765
+ export declare type CheckoutModificationDestinationAddressCityForm = io.flow.internal.v0.models.CheckoutModificationDestinationAddressCityForm;
16766
+ export declare type CheckoutModificationDestinationAddressCountryForm = io.flow.internal.v0.models.CheckoutModificationDestinationAddressCountryForm;
16767
+ export declare type CheckoutModificationDestinationAddressPostalForm = io.flow.internal.v0.models.CheckoutModificationDestinationAddressPostalForm;
16768
+ export declare type CheckoutModificationDestinationAddressProvinceForm = io.flow.internal.v0.models.CheckoutModificationDestinationAddressProvinceForm;
16769
+ export declare type CheckoutModificationDestinationAddressStreetsForm = io.flow.internal.v0.models.CheckoutModificationDestinationAddressStreetsForm;
16728
16770
  export declare type CheckoutModificationForm = io.flow.internal.v0.unions.CheckoutModificationForm;
16771
+ export declare type CheckoutModificationLanguageForm = io.flow.internal.v0.models.CheckoutModificationLanguageForm;
16772
+ export declare type CheckoutModificationLineForm = io.flow.internal.v0.models.CheckoutModificationLineForm;
16773
+ export declare type CheckoutModificationPromotionCodeForm = io.flow.internal.v0.models.CheckoutModificationPromotionCodeForm;
16729
16774
  export declare type CheckoutOrderForm = io.flow.internal.v0.models.CheckoutOrderForm;
16730
16775
  export declare type CheckoutOrderNumberForm = io.flow.internal.v0.models.CheckoutOrderNumberForm;
16731
16776
  export declare type CheckoutOrderSummary = io.flow.internal.v0.models.CheckoutOrderSummary;
@@ -16733,7 +16778,6 @@ export declare type CheckoutOrderSummaryLine = io.flow.internal.v0.models.Checko
16733
16778
  export declare type CheckoutPayment = io.flow.internal.v0.models.CheckoutPayment;
16734
16779
  export declare type CheckoutPaymentContent = io.flow.internal.v0.models.CheckoutPaymentContent;
16735
16780
  export declare type CheckoutPlatformData = io.flow.internal.v0.models.CheckoutPlatformData;
16736
- export declare type CheckoutPromotionCodeForm = io.flow.internal.v0.models.CheckoutPromotionCodeForm;
16737
16781
  export declare type CheckoutPromptBehavior = io.flow.internal.v0.enums.CheckoutPromptBehavior;
16738
16782
  export declare type CheckoutRedirect = io.flow.internal.v0.models.CheckoutRedirect;
16739
16783
  export declare type CheckoutRedirectMethod = io.flow.internal.v0.enums.CheckoutRedirectMethod;
@@ -16962,7 +17006,7 @@ export declare type FtpSettingVersion = io.flow.internal.v0.models.FtpSettingVer
16962
17006
  export declare type FtpSettingsPaths = io.flow.internal.v0.models.FtpSettingsPaths;
16963
17007
  export declare type FulfillmentActionForm = io.flow.internal.v0.models.FulfillmentActionForm;
16964
17008
  export declare type FulfillmentCancel = io.flow.internal.v0.models.FulfillmentCancel;
16965
- export declare type FulfillmentExperienceReference = io.flow.internal.v0.models.FulfillmentExperienceReference;
17009
+ export declare type FulfillmentInternalExperienceReference = io.flow.internal.v0.models.FulfillmentInternalExperienceReference;
16966
17010
  export declare type FulfillmentShipmentTracking = io.flow.internal.v0.models.FulfillmentShipmentTracking;
16967
17011
  export declare type GiftCard = io.flow.internal.v0.models.GiftCard;
16968
17012
  export declare type GiftCardAuthorizationError = io.flow.internal.v0.models.GiftCardAuthorizationError;
@@ -17533,6 +17577,7 @@ export declare type V2Checkout = io.flow.internal.v0.models.V2Checkout;
17533
17577
  export declare type V2CheckoutError = io.flow.internal.v0.models.V2CheckoutError;
17534
17578
  export declare type V2CheckoutErrorCode = io.flow.internal.v0.enums.V2CheckoutErrorCode;
17535
17579
  export declare type V2CheckoutReference = io.flow.internal.v0.models.V2CheckoutReference;
17580
+ export declare type V2CheckoutSingleError = io.flow.internal.v0.models.V2CheckoutSingleError;
17536
17581
  export declare type ValidationCharacterLength = io.flow.internal.v0.models.ValidationCharacterLength;
17537
17582
  export declare type ValidationRule = io.flow.internal.v0.unions.ValidationRule;
17538
17583
  export declare type Variant = io.flow.internal.v0.unions.Variant;
package/dist/api.d.ts CHANGED
@@ -140,7 +140,7 @@ declare namespace io.flow.shopify.external.v0.models {
140
140
  interface Product {
141
141
  readonly 'id': number;
142
142
  readonly 'handle': string;
143
- readonly 'variants': io.flow.shopify.external.v0.models.ProductVariant[];
143
+ readonly 'variants'?: io.flow.shopify.external.v0.models.ProductVariant[];
144
144
  readonly 'images': io.flow.shopify.external.v0.models.ProductImage[];
145
145
  readonly 'title': string;
146
146
  readonly 'vendor'?: string;
@@ -255,6 +255,9 @@ declare namespace io.flow.shopify.external.v0.models {
255
255
  interface ResponseShopifyTransactionSingle {
256
256
  readonly 'transaction': io.flow.shopify.external.v0.models.ShopifyTransaction;
257
257
  }
258
+ interface ResponseSmartCollection {
259
+ readonly 'smart_collections': io.flow.shopify.external.v0.models.SmartCollection[];
260
+ }
258
261
  interface ResponseVariant {
259
262
  readonly 'variant': io.flow.shopify.external.v0.models.ProductVariant;
260
263
  }
@@ -780,6 +783,12 @@ declare namespace io.flow.shopify.external.v0.models {
780
783
  readonly 'shop_id': number;
781
784
  readonly 'shop_domain': string;
782
785
  }
786
+ interface SmartCollection {
787
+ readonly 'id': number;
788
+ readonly 'handle': string;
789
+ readonly 'title': string;
790
+ readonly 'updated_at': string;
791
+ }
783
792
  interface Webhook {
784
793
  readonly 'address': string;
785
794
  readonly 'created_at': string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@flowio/types",
3
- "version": "10.2.1",
3
+ "version": "10.2.2",
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": "9a2a3ca5af0494e83b7421514353a4fbf04a95d8"
30
+ "gitHead": "854df55fcc2ae45435c53e890a4109b50dc3d71c"
31
31
  }
@@ -1298,6 +1298,9 @@ declare namespace io.flow.tax.internal.v0.models {
1298
1298
  }
1299
1299
 
1300
1300
  interface LiabilityRemittancePlan {
1301
+ readonly 'id': string;
1302
+ readonly 'organization': string;
1303
+ readonly 'order_number': string;
1301
1304
  readonly 'liabilities': io.flow.tax.internal.v0.models.Liability[];
1302
1305
  readonly 'total_tax': io.flow.common.v0.models.MoneyWithBase;
1303
1306
  }
@@ -2668,14 +2671,14 @@ declare namespace io.flow.fulfillment.internal.v0.models {
2668
2671
  readonly 'placeholder': string;
2669
2672
  }
2670
2673
 
2671
- interface FulfillmentExperienceReference {
2674
+ interface FulfillmentInternalExperienceReference {
2672
2675
  readonly 'id': string;
2673
2676
  readonly 'key': string;
2674
2677
  }
2675
2678
 
2676
2679
  interface PregeneratedQuote {
2677
2680
  readonly 'id': string;
2678
- readonly 'experience': io.flow.fulfillment.internal.v0.models.FulfillmentExperienceReference;
2681
+ readonly 'experience': io.flow.fulfillment.internal.v0.models.FulfillmentInternalExperienceReference;
2679
2682
  readonly 'destination_country': string;
2680
2683
  readonly 'item': io.flow.common.v0.models.ItemReference;
2681
2684
  readonly 'quote'?: io.flow.fulfillment.v0.models.Quote;
@@ -3095,7 +3098,7 @@ declare namespace io.flow.stripe.v0.models {
3095
3098
  readonly 'charge'?: string;
3096
3099
  readonly 'code'?: string;
3097
3100
  readonly 'decline_code'?: io.flow.stripe.v0.enums.DeclineCode;
3098
- readonly 'doc_url': string;
3101
+ readonly 'doc_url'?: string;
3099
3102
  readonly 'message'?: string;
3100
3103
  readonly 'param'?: string;
3101
3104
  readonly 'payment_method': io.flow.stripe.v0.models.PaymentMethod;
@@ -4812,7 +4815,7 @@ declare namespace io.flow.shopify.external.v0.models {
4812
4815
  interface Product {
4813
4816
  readonly 'id': number;
4814
4817
  readonly 'handle': string;
4815
- readonly 'variants': io.flow.shopify.external.v0.models.ProductVariant[];
4818
+ readonly 'variants'?: io.flow.shopify.external.v0.models.ProductVariant[];
4816
4819
  readonly 'images': io.flow.shopify.external.v0.models.ProductImage[];
4817
4820
  readonly 'title': string;
4818
4821
  readonly 'vendor'?: string;
@@ -4952,6 +4955,10 @@ declare namespace io.flow.shopify.external.v0.models {
4952
4955
  readonly 'transaction': io.flow.shopify.external.v0.models.ShopifyTransaction;
4953
4956
  }
4954
4957
 
4958
+ interface ResponseSmartCollection {
4959
+ readonly 'smart_collections': io.flow.shopify.external.v0.models.SmartCollection[];
4960
+ }
4961
+
4955
4962
  interface ResponseVariant {
4956
4963
  readonly 'variant': io.flow.shopify.external.v0.models.ProductVariant;
4957
4964
  }
@@ -5534,6 +5541,13 @@ declare namespace io.flow.shopify.external.v0.models {
5534
5541
  readonly 'shop_domain': string;
5535
5542
  }
5536
5543
 
5544
+ interface SmartCollection {
5545
+ readonly 'id': number;
5546
+ readonly 'handle': string;
5547
+ readonly 'title': string;
5548
+ readonly 'updated_at': string;
5549
+ }
5550
+
5537
5551
  interface Webhook {
5538
5552
  readonly 'address': string;
5539
5553
  readonly 'created_at': string;
@@ -6584,6 +6598,7 @@ declare namespace io.flow.payment.internal.v0.models {
6584
6598
  readonly 'account_type': io.flow.stripe.v0.enums.AccountType;
6585
6599
  readonly 'country': string;
6586
6600
  readonly 'payment_statement': string;
6601
+ readonly 'status'?: io.flow.payment.internal.v0.enums.ProcessorEntityStatus;
6587
6602
  }
6588
6603
 
6589
6604
  interface StripeMerchantPutForm {
@@ -12102,7 +12117,7 @@ declare namespace io.flow.fraud.v0.models {
12102
12117
  }
12103
12118
 
12104
12119
  declare namespace io.flow.experience.internal.v0.enums {
12105
- type DeliveredDutyOptionMessageType = 'warning';
12120
+ type DeliveredDutyOptionMessageType = 'warning' | 'notification';
12106
12121
  type DiscountRequestOrderEntitlementKey = 'subtotal';
12107
12122
  type ExperienceOrderAction = 'submit' | 'refund_gift_cards';
12108
12123
  type ExperienceOrderActionTrigger = 'zero_balance' | 'unsubmitted_order';
@@ -12134,6 +12149,7 @@ declare namespace io.flow.experience.internal.v0.models {
12134
12149
  interface DeliveredDutyOptionsMessage {
12135
12150
  readonly 'title': string;
12136
12151
  readonly 'content': string;
12152
+ readonly 'type': io.flow.experience.internal.v0.enums.DeliveredDutyOptionMessageType;
12137
12153
  }
12138
12154
 
12139
12155
  interface DeliveredDutyPreference {
@@ -12924,7 +12940,7 @@ declare namespace io.flow.internal.v0.enums {
12924
12940
  type ContentType = 'text' | 'html';
12925
12941
  type ContentTypeCast = 'markdown_to_html' | 'markdown_to_text';
12926
12942
  type CrossdockTrackingStatus = 'notified' | 'received' | 'shipped';
12927
- type DeliveredDutyOptionMessageType = 'warning';
12943
+ type DeliveredDutyOptionMessageType = 'warning' | 'notification';
12928
12944
  type DeminimisAdjustmentType = 'none' | 'duty' | 'vat' | 'vat_and_duty';
12929
12945
  type DiscountRequestOrderEntitlementKey = 'subtotal';
12930
12946
  type DutyCompoundExpressionType = 'sum' | 'max' | 'min';
@@ -13011,7 +13027,7 @@ declare namespace io.flow.internal.v0.enums {
13011
13027
  type TrackingIntegrationType = 'api' | 'bulk' | 'aftership';
13012
13028
  type TransferMethod = 'ach';
13013
13029
  type UnclassifiedProductStatus = 'ignored' | 'escalated' | 'requeued';
13014
- type V2CheckoutErrorCode = 'generic_error';
13030
+ type V2CheckoutErrorCode = 'checkout_not_found' | 'checkout_modification_invalid' | 'currency_invalid' | 'country_invalid' | 'generic_error' | 'language_invalid' | 'order_identifier_invalid' | 'organization_invalid' | 'session_invalid' | 'url_invalid';
13015
13031
  }
13016
13032
 
13017
13033
  declare namespace io.flow.internal.v0.models {
@@ -14027,11 +14043,6 @@ declare namespace io.flow.internal.v0.models {
14027
14043
  readonly 'type': io.flow.internal.v0.enums.CheckoutAssetType;
14028
14044
  }
14029
14045
 
14030
- interface CheckoutAttributesForm {
14031
- readonly 'discriminator': 'checkout_attributes_form';
14032
- readonly 'attributes': Record<string, string>;
14033
- }
14034
-
14035
14046
  interface CheckoutBehavior {
14036
14047
  readonly 'shipping_address': io.flow.internal.v0.models.CheckoutBehaviorShippingAddress;
14037
14048
  readonly 'shipping_method': io.flow.internal.v0.models.CheckoutBehaviorShippingMethod;
@@ -14133,33 +14144,6 @@ declare namespace io.flow.internal.v0.models {
14133
14144
  readonly 'footer': io.flow.internal.v0.unions.ContentItem[];
14134
14145
  }
14135
14146
 
14136
- interface CheckoutCurrencyForm {
14137
- readonly 'discriminator': 'checkout_currency_form';
14138
- readonly 'currency': string;
14139
- }
14140
-
14141
- interface CheckoutCustomerForm {
14142
- readonly 'name': io.flow.common.v0.models.Name;
14143
- readonly 'number'?: string;
14144
- readonly 'phone'?: string;
14145
- readonly 'email'?: string;
14146
- readonly 'address'?: io.flow.common.v0.models.BillingAddress;
14147
- readonly 'invoice'?: io.flow.common.v0.models.CustomerInvoice;
14148
- }
14149
-
14150
- interface CheckoutDestinationAddressForm {
14151
- readonly 'discriminator': 'checkout_destination_address_form';
14152
- readonly 'text'?: string;
14153
- readonly 'streets'?: string[];
14154
- readonly 'city'?: string;
14155
- readonly 'province'?: string;
14156
- readonly 'postal'?: string;
14157
- readonly 'country'?: string;
14158
- readonly 'latitude'?: string;
14159
- readonly 'longitude'?: string;
14160
- readonly 'contact'?: io.flow.common.v0.models.Contact;
14161
- }
14162
-
14163
14147
  interface CheckoutError {
14164
14148
  readonly 'code': io.flow.internal.v0.enums.CheckoutErrorCode;
14165
14149
  readonly 'messages': string[];
@@ -14172,32 +14156,33 @@ declare namespace io.flow.internal.v0.models {
14172
14156
  readonly 'order_put_form': io.flow.experience.v0.models.OrderPutForm;
14173
14157
  }
14174
14158
 
14175
- interface CheckoutLanguageForm {
14176
- readonly 'discriminator': 'checkout_language_form';
14177
- readonly 'language': string;
14178
- }
14179
-
14180
14159
  interface CheckoutLine {
14181
14160
  readonly 'id': string;
14182
14161
  readonly 'checkout': io.flow.internal.v0.models.V2CheckoutReference;
14183
14162
  readonly 'item_number': string;
14184
14163
  readonly 'quantity': number;
14185
- }
14186
-
14187
- interface CheckoutLineDeleteForm {
14188
- readonly 'discriminator': 'checkout_line_delete_form';
14189
- readonly 'id': string;
14164
+ readonly 'attributes'?: Record<string, string>;
14190
14165
  }
14191
14166
 
14192
14167
  interface CheckoutLineForm {
14193
- readonly 'discriminator': 'checkout_line_form';
14194
14168
  readonly 'checkout_id': string;
14195
14169
  readonly 'item_number': string;
14196
14170
  readonly 'quantity': number;
14171
+ readonly 'attributes'?: Record<string, string>;
14172
+ }
14173
+
14174
+ interface CheckoutLineModificationDeleteForm {
14175
+ readonly 'discriminator': 'checkout_line_modification_delete_form';
14176
+ readonly 'id': string;
14177
+ }
14178
+
14179
+ interface CheckoutLineModificationQuantityForm {
14180
+ readonly 'discriminator': 'checkout_line_modification_quantity_form';
14181
+ readonly 'id': string;
14182
+ readonly 'quantity': number;
14197
14183
  }
14198
14184
 
14199
14185
  interface CheckoutLineQuantityForm {
14200
- readonly 'discriminator': 'checkout_line_quantity_form';
14201
14186
  readonly 'quantity': number;
14202
14187
  }
14203
14188
 
@@ -14208,8 +14193,68 @@ declare namespace io.flow.internal.v0.models {
14208
14193
  interface CheckoutModification {
14209
14194
  readonly 'id': string;
14210
14195
  readonly 'checkout': io.flow.internal.v0.models.V2CheckoutReference;
14211
- readonly 'modification': io.flow.internal.v0.unions.CheckoutModificationForm;
14212
- readonly 'timestamp': string;
14196
+ readonly 'form': io.flow.internal.v0.unions.CheckoutModificationForm;
14197
+ }
14198
+
14199
+ interface CheckoutModificationAttributesForm {
14200
+ readonly 'discriminator': 'checkout_modification_attributes_form';
14201
+ readonly 'attributes': Record<string, string>;
14202
+ }
14203
+
14204
+ interface CheckoutModificationCurrencyForm {
14205
+ readonly 'discriminator': 'checkout_modification_currency_form';
14206
+ readonly 'currency': string;
14207
+ }
14208
+
14209
+ interface CheckoutModificationCustomerForm {
14210
+ readonly 'name': io.flow.common.v0.models.Name;
14211
+ readonly 'number'?: string;
14212
+ readonly 'phone'?: string;
14213
+ readonly 'email'?: string;
14214
+ readonly 'address'?: io.flow.common.v0.models.BillingAddress;
14215
+ readonly 'invoice'?: io.flow.common.v0.models.CustomerInvoice;
14216
+ }
14217
+
14218
+ interface CheckoutModificationDestinationAddressCityForm {
14219
+ readonly 'discriminator': 'checkout_modification_destination_address_city_form';
14220
+ readonly 'city': string;
14221
+ }
14222
+
14223
+ interface CheckoutModificationDestinationAddressCountryForm {
14224
+ readonly 'discriminator': 'checkout_modification_destination_address_country_form';
14225
+ readonly 'country': string;
14226
+ }
14227
+
14228
+ interface CheckoutModificationDestinationAddressPostalForm {
14229
+ readonly 'discriminator': 'checkout_modification_destination_address_postal_form';
14230
+ readonly 'postal': string;
14231
+ }
14232
+
14233
+ interface CheckoutModificationDestinationAddressProvinceForm {
14234
+ readonly 'discriminator': 'checkout_modification_destination_address_province_form';
14235
+ readonly 'province': string;
14236
+ }
14237
+
14238
+ interface CheckoutModificationDestinationAddressStreetsForm {
14239
+ readonly 'discriminator': 'checkout_modification_destination_address_streets_form';
14240
+ readonly 'streets': string[];
14241
+ }
14242
+
14243
+ interface CheckoutModificationLanguageForm {
14244
+ readonly 'discriminator': 'checkout_modification_language_form';
14245
+ readonly 'language': string;
14246
+ }
14247
+
14248
+ interface CheckoutModificationLineForm {
14249
+ readonly 'discriminator': 'checkout_modification_line_form';
14250
+ readonly 'item_number': string;
14251
+ readonly 'quantity': number;
14252
+ readonly 'attributes'?: Record<string, string>;
14253
+ }
14254
+
14255
+ interface CheckoutModificationPromotionCodeForm {
14256
+ readonly 'discriminator': 'checkout_modification_promotion_code_form';
14257
+ readonly 'code': string;
14213
14258
  }
14214
14259
 
14215
14260
  interface CheckoutOrderForm {
@@ -14265,11 +14310,6 @@ declare namespace io.flow.internal.v0.models {
14265
14310
  readonly 'order_number'?: string;
14266
14311
  }
14267
14312
 
14268
- interface CheckoutPromotionCodeForm {
14269
- readonly 'discriminator': 'checkout_promotion_code_form';
14270
- readonly 'code': string;
14271
- }
14272
-
14273
14313
  interface CheckoutRedirect {
14274
14314
  readonly 'method': io.flow.internal.v0.enums.CheckoutRedirectMethod;
14275
14315
  readonly 'url': string;
@@ -14682,6 +14722,7 @@ declare namespace io.flow.internal.v0.models {
14682
14722
  interface DeliveredDutyOptionsMessage {
14683
14723
  readonly 'title': string;
14684
14724
  readonly 'content': string;
14725
+ readonly 'type': io.flow.internal.v0.enums.DeliveredDutyOptionMessageType;
14685
14726
  }
14686
14727
 
14687
14728
  interface DeliveredDutyPreference {
@@ -15552,7 +15593,7 @@ declare namespace io.flow.internal.v0.models {
15552
15593
  readonly 'cancelled_lines': io.flow.order.management.v0.models.FulfillmentLineCancelForm[];
15553
15594
  }
15554
15595
 
15555
- interface FulfillmentExperienceReference {
15596
+ interface FulfillmentInternalExperienceReference {
15556
15597
  readonly 'id': string;
15557
15598
  readonly 'key': string;
15558
15599
  }
@@ -16182,6 +16223,9 @@ declare namespace io.flow.internal.v0.models {
16182
16223
  }
16183
16224
 
16184
16225
  interface LiabilityRemittancePlan {
16226
+ readonly 'id': string;
16227
+ readonly 'organization': string;
16228
+ readonly 'order_number': string;
16185
16229
  readonly 'liabilities': io.flow.internal.v0.models.Liability[];
16186
16230
  readonly 'total_tax': io.flow.common.v0.models.MoneyWithBase;
16187
16231
  }
@@ -17478,7 +17522,7 @@ declare namespace io.flow.internal.v0.models {
17478
17522
 
17479
17523
  interface PregeneratedQuote {
17480
17524
  readonly 'id': string;
17481
- readonly 'experience': io.flow.internal.v0.models.FulfillmentExperienceReference;
17525
+ readonly 'experience': io.flow.internal.v0.models.FulfillmentInternalExperienceReference;
17482
17526
  readonly 'destination_country': string;
17483
17527
  readonly 'item': io.flow.common.v0.models.ItemReference;
17484
17528
  readonly 'quote'?: io.flow.fulfillment.v0.models.Quote;
@@ -18504,6 +18548,7 @@ declare namespace io.flow.internal.v0.models {
18504
18548
  readonly 'account_type': io.flow.stripe.v0.enums.AccountType;
18505
18549
  readonly 'country': string;
18506
18550
  readonly 'payment_statement': string;
18551
+ readonly 'status'?: io.flow.internal.v0.enums.ProcessorEntityStatus;
18507
18552
  }
18508
18553
 
18509
18554
  interface StripeMerchantPutForm {
@@ -18962,20 +19007,22 @@ declare namespace io.flow.internal.v0.models {
18962
19007
  interface V2Checkout {
18963
19008
  readonly 'id': string;
18964
19009
  readonly 'organization': io.flow.common.v0.models.OrganizationReference;
18965
- readonly 'order'?: io.flow.experience.v0.models.OrderSummary;
18966
- readonly 'errors'?: io.flow.internal.v0.models.V2CheckoutError[];
18967
19010
  }
18968
19011
 
18969
19012
  interface V2CheckoutError {
18970
- readonly 'code': io.flow.internal.v0.enums.V2CheckoutErrorCode;
18971
- readonly 'messages': string[];
18972
- readonly 'redirect'?: io.flow.checkout.common.v0.models.CheckoutRedirect;
19013
+ readonly 'errors': io.flow.internal.v0.models.V2CheckoutSingleError[];
18973
19014
  }
18974
19015
 
18975
19016
  interface V2CheckoutReference {
18976
19017
  readonly 'id': string;
18977
19018
  }
18978
19019
 
19020
+ interface V2CheckoutSingleError {
19021
+ readonly 'code': io.flow.internal.v0.enums.V2CheckoutErrorCode;
19022
+ readonly 'messages': string[];
19023
+ readonly 'redirect'?: io.flow.checkout.common.v0.models.CheckoutRedirect;
19024
+ }
19025
+
18979
19026
  interface ValidationCharacterLength {
18980
19027
  readonly 'discriminator': 'validation_character_length';
18981
19028
  readonly 'min'?: number;
@@ -19029,7 +19076,7 @@ declare namespace io.flow.internal.v0.unions {
19029
19076
  type AuthorizedOrderCharge = (io.flow.internal.v0.models.AuthorizedShippingCharge);
19030
19077
  type CarrierCredentials = (io.flow.internal.v0.models.SfExpress | io.flow.internal.v0.models.DhlEcommerce | io.flow.internal.v0.models.Landmark | io.flow.internal.v0.models.Dhl | io.flow.internal.v0.models.FedexCrossborder | io.flow.internal.v0.models.Ups);
19031
19078
  type CheckoutForm = (io.flow.internal.v0.models.CheckoutOrderForm | io.flow.internal.v0.models.CheckoutOrderNumberForm);
19032
- type CheckoutModificationForm = (io.flow.internal.v0.models.CheckoutLineForm | io.flow.internal.v0.models.CheckoutLineDeleteForm | io.flow.internal.v0.models.CheckoutLineQuantityForm | io.flow.internal.v0.models.CheckoutDestinationAddressForm | io.flow.internal.v0.models.CheckoutAttributesForm | io.flow.internal.v0.models.CheckoutCurrencyForm | io.flow.internal.v0.models.CheckoutLanguageForm | io.flow.internal.v0.models.CheckoutPromotionCodeForm);
19079
+ type CheckoutModificationForm = (io.flow.internal.v0.models.CheckoutModificationAttributesForm | io.flow.internal.v0.models.CheckoutModificationCurrencyForm | io.flow.internal.v0.models.CheckoutModificationDestinationAddressStreetsForm | io.flow.internal.v0.models.CheckoutModificationDestinationAddressCityForm | io.flow.internal.v0.models.CheckoutModificationDestinationAddressProvinceForm | io.flow.internal.v0.models.CheckoutModificationDestinationAddressPostalForm | io.flow.internal.v0.models.CheckoutModificationDestinationAddressCountryForm | io.flow.internal.v0.models.CheckoutModificationLanguageForm | io.flow.internal.v0.models.CheckoutModificationLineForm | io.flow.internal.v0.models.CheckoutLineModificationDeleteForm | io.flow.internal.v0.models.CheckoutLineModificationQuantityForm | io.flow.internal.v0.models.CheckoutModificationPromotionCodeForm);
19033
19080
  type CheckoutSubmitOrderBundles = (io.flow.internal.v0.models.CheckoutSubmitOrderBundle);
19034
19081
  type CheckoutSubmitOrderForms = (io.flow.internal.v0.models.CheckoutSubmitOrderForm);
19035
19082
  type ClassificationJudgementForm = (io.flow.internal.v0.models.ProductClassificationForm | io.flow.internal.v0.models.NoClassificationForm);
@@ -19246,7 +19293,6 @@ export type Checkbox = io.flow.internal.v0.models.Checkbox;
19246
19293
  export type CheckoutAnalytics = io.flow.internal.v0.models.CheckoutAnalytics;
19247
19294
  export type CheckoutAsset = io.flow.internal.v0.models.CheckoutAsset;
19248
19295
  export type CheckoutAssetType = io.flow.internal.v0.enums.CheckoutAssetType;
19249
- export type CheckoutAttributesForm = io.flow.internal.v0.models.CheckoutAttributesForm;
19250
19296
  export type CheckoutBehavior = io.flow.internal.v0.models.CheckoutBehavior;
19251
19297
  export type CheckoutBehaviorCustomerInfo = io.flow.internal.v0.models.CheckoutBehaviorCustomerInfo;
19252
19298
  export type CheckoutBehaviorCustomerInfoEmail = io.flow.internal.v0.models.CheckoutBehaviorCustomerInfoEmail;
@@ -19262,21 +19308,29 @@ export type CheckoutConfigurationUpserted = io.flow.internal.v0.models.CheckoutC
19262
19308
  export type CheckoutContent = io.flow.internal.v0.models.CheckoutContent;
19263
19309
  export type CheckoutContentDetails = io.flow.internal.v0.models.CheckoutContentDetails;
19264
19310
  export type CheckoutContentSummary = io.flow.internal.v0.models.CheckoutContentSummary;
19265
- export type CheckoutCurrencyForm = io.flow.internal.v0.models.CheckoutCurrencyForm;
19266
- export type CheckoutCustomerForm = io.flow.internal.v0.models.CheckoutCustomerForm;
19267
- export type CheckoutDestinationAddressForm = io.flow.internal.v0.models.CheckoutDestinationAddressForm;
19268
19311
  export type CheckoutError = io.flow.internal.v0.models.CheckoutError;
19269
19312
  export type CheckoutErrorCode = io.flow.internal.v0.enums.CheckoutErrorCode;
19270
19313
  export type CheckoutFinalizeOrderForm = io.flow.internal.v0.models.CheckoutFinalizeOrderForm;
19271
19314
  export type CheckoutForm = io.flow.internal.v0.unions.CheckoutForm;
19272
- export type CheckoutLanguageForm = io.flow.internal.v0.models.CheckoutLanguageForm;
19273
19315
  export type CheckoutLine = io.flow.internal.v0.models.CheckoutLine;
19274
- export type CheckoutLineDeleteForm = io.flow.internal.v0.models.CheckoutLineDeleteForm;
19275
19316
  export type CheckoutLineForm = io.flow.internal.v0.models.CheckoutLineForm;
19317
+ export type CheckoutLineModificationDeleteForm = io.flow.internal.v0.models.CheckoutLineModificationDeleteForm;
19318
+ export type CheckoutLineModificationQuantityForm = io.flow.internal.v0.models.CheckoutLineModificationQuantityForm;
19276
19319
  export type CheckoutLineQuantityForm = io.flow.internal.v0.models.CheckoutLineQuantityForm;
19277
19320
  export type CheckoutMarketingContent = io.flow.internal.v0.models.CheckoutMarketingContent;
19278
19321
  export type CheckoutModification = io.flow.internal.v0.models.CheckoutModification;
19322
+ export type CheckoutModificationAttributesForm = io.flow.internal.v0.models.CheckoutModificationAttributesForm;
19323
+ export type CheckoutModificationCurrencyForm = io.flow.internal.v0.models.CheckoutModificationCurrencyForm;
19324
+ export type CheckoutModificationCustomerForm = io.flow.internal.v0.models.CheckoutModificationCustomerForm;
19325
+ export type CheckoutModificationDestinationAddressCityForm = io.flow.internal.v0.models.CheckoutModificationDestinationAddressCityForm;
19326
+ export type CheckoutModificationDestinationAddressCountryForm = io.flow.internal.v0.models.CheckoutModificationDestinationAddressCountryForm;
19327
+ export type CheckoutModificationDestinationAddressPostalForm = io.flow.internal.v0.models.CheckoutModificationDestinationAddressPostalForm;
19328
+ export type CheckoutModificationDestinationAddressProvinceForm = io.flow.internal.v0.models.CheckoutModificationDestinationAddressProvinceForm;
19329
+ export type CheckoutModificationDestinationAddressStreetsForm = io.flow.internal.v0.models.CheckoutModificationDestinationAddressStreetsForm;
19279
19330
  export type CheckoutModificationForm = io.flow.internal.v0.unions.CheckoutModificationForm;
19331
+ export type CheckoutModificationLanguageForm = io.flow.internal.v0.models.CheckoutModificationLanguageForm;
19332
+ export type CheckoutModificationLineForm = io.flow.internal.v0.models.CheckoutModificationLineForm;
19333
+ export type CheckoutModificationPromotionCodeForm = io.flow.internal.v0.models.CheckoutModificationPromotionCodeForm;
19280
19334
  export type CheckoutOrderForm = io.flow.internal.v0.models.CheckoutOrderForm;
19281
19335
  export type CheckoutOrderNumberForm = io.flow.internal.v0.models.CheckoutOrderNumberForm;
19282
19336
  export type CheckoutOrderSummary = io.flow.internal.v0.models.CheckoutOrderSummary;
@@ -19284,7 +19338,6 @@ export type CheckoutOrderSummaryLine = io.flow.internal.v0.models.CheckoutOrderS
19284
19338
  export type CheckoutPayment = io.flow.internal.v0.models.CheckoutPayment;
19285
19339
  export type CheckoutPaymentContent = io.flow.internal.v0.models.CheckoutPaymentContent;
19286
19340
  export type CheckoutPlatformData = io.flow.internal.v0.models.CheckoutPlatformData;
19287
- export type CheckoutPromotionCodeForm = io.flow.internal.v0.models.CheckoutPromotionCodeForm;
19288
19341
  export type CheckoutPromptBehavior = io.flow.internal.v0.enums.CheckoutPromptBehavior;
19289
19342
  export type CheckoutRedirect = io.flow.internal.v0.models.CheckoutRedirect;
19290
19343
  export type CheckoutRedirectMethod = io.flow.internal.v0.enums.CheckoutRedirectMethod;
@@ -19513,7 +19566,7 @@ export type FtpSettingVersion = io.flow.internal.v0.models.FtpSettingVersion;
19513
19566
  export type FtpSettingsPaths = io.flow.internal.v0.models.FtpSettingsPaths;
19514
19567
  export type FulfillmentActionForm = io.flow.internal.v0.models.FulfillmentActionForm;
19515
19568
  export type FulfillmentCancel = io.flow.internal.v0.models.FulfillmentCancel;
19516
- export type FulfillmentExperienceReference = io.flow.internal.v0.models.FulfillmentExperienceReference;
19569
+ export type FulfillmentInternalExperienceReference = io.flow.internal.v0.models.FulfillmentInternalExperienceReference;
19517
19570
  export type FulfillmentShipmentTracking = io.flow.internal.v0.models.FulfillmentShipmentTracking;
19518
19571
  export type GiftCard = io.flow.internal.v0.models.GiftCard;
19519
19572
  export type GiftCardAuthorizationError = io.flow.internal.v0.models.GiftCardAuthorizationError;
@@ -20084,6 +20137,7 @@ export type V2Checkout = io.flow.internal.v0.models.V2Checkout;
20084
20137
  export type V2CheckoutError = io.flow.internal.v0.models.V2CheckoutError;
20085
20138
  export type V2CheckoutErrorCode = io.flow.internal.v0.enums.V2CheckoutErrorCode;
20086
20139
  export type V2CheckoutReference = io.flow.internal.v0.models.V2CheckoutReference;
20140
+ export type V2CheckoutSingleError = io.flow.internal.v0.models.V2CheckoutSingleError;
20087
20141
  export type ValidationCharacterLength = io.flow.internal.v0.models.ValidationCharacterLength;
20088
20142
  export type ValidationRule = io.flow.internal.v0.unions.ValidationRule;
20089
20143
  export type Variant = io.flow.internal.v0.unions.Variant;
package/src/api.ts CHANGED
@@ -154,7 +154,7 @@ declare namespace io.flow.shopify.external.v0.models {
154
154
  interface Product {
155
155
  readonly 'id': number;
156
156
  readonly 'handle': string;
157
- readonly 'variants': io.flow.shopify.external.v0.models.ProductVariant[];
157
+ readonly 'variants'?: io.flow.shopify.external.v0.models.ProductVariant[];
158
158
  readonly 'images': io.flow.shopify.external.v0.models.ProductImage[];
159
159
  readonly 'title': string;
160
160
  readonly 'vendor'?: string;
@@ -294,6 +294,10 @@ declare namespace io.flow.shopify.external.v0.models {
294
294
  readonly 'transaction': io.flow.shopify.external.v0.models.ShopifyTransaction;
295
295
  }
296
296
 
297
+ interface ResponseSmartCollection {
298
+ readonly 'smart_collections': io.flow.shopify.external.v0.models.SmartCollection[];
299
+ }
300
+
297
301
  interface ResponseVariant {
298
302
  readonly 'variant': io.flow.shopify.external.v0.models.ProductVariant;
299
303
  }
@@ -876,6 +880,13 @@ declare namespace io.flow.shopify.external.v0.models {
876
880
  readonly 'shop_domain': string;
877
881
  }
878
882
 
883
+ interface SmartCollection {
884
+ readonly 'id': number;
885
+ readonly 'handle': string;
886
+ readonly 'title': string;
887
+ readonly 'updated_at': string;
888
+ }
889
+
879
890
  interface Webhook {
880
891
  readonly 'address': string;
881
892
  readonly 'created_at': string;