@flowio/types 10.9.0 → 10.9.1

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.
@@ -11116,7 +11116,7 @@ declare namespace io.flow.checkout.analytics.v0.models {
11116
11116
  readonly message: string;
11117
11117
  }
11118
11118
  interface HeapPayClick {
11119
- readonly discriminator: 'heap_pay_click';
11119
+ readonly discriminator: 'pay_click';
11120
11120
  readonly checkout_id?: string;
11121
11121
  readonly experience_key?: string;
11122
11122
  readonly experiment_key?: string;
@@ -11458,7 +11458,7 @@ declare namespace io.flow.experience.internal.v0.unions {
11458
11458
  type DiscountRequestOfferForm = io.flow.experience.internal.v0.models.DiscountRequestOfferFixedAmountForm;
11459
11459
  }
11460
11460
  declare namespace io.flow.payment.v0.enums {
11461
- type AuthorizationDeclineCode = 'expired' | 'invalid_name' | 'invalid_number' | 'invalid_expiration' | 'invalid_address' | 'invalid_token_type' | 'invalid_token' | 'no_account' | 'avs' | 'cvv' | 'fraud' | 'duplicate' | 'not_supported' | 'unknown';
11461
+ type AuthorizationDeclineCode = 'expired' | 'invalid_name' | 'invalid_number' | 'invalid_expiration' | 'invalid_address' | 'invalid_token_type' | 'invalid_token' | 'no_account' | 'avs' | 'cvv' | 'fraud' | 'duplicate' | 'not_supported' | 'unknown' | 'online_payment_error';
11462
11462
  type AuthorizationOption = 'store_card';
11463
11463
  type AuthorizationResultActionType = 'native' | 'redirect' | 'wait';
11464
11464
  type AuthorizationStatus = 'pending' | 'expired' | 'authorized' | 'review' | 'declined' | 'reversed';
@@ -16601,7 +16601,7 @@ declare namespace io.flow.internal.v0.models {
16601
16601
  readonly message: string;
16602
16602
  }
16603
16603
  interface HeapPayClick {
16604
- readonly discriminator: 'heap_pay_click';
16604
+ readonly discriminator: 'pay_click';
16605
16605
  readonly checkout_id?: string;
16606
16606
  readonly experience_key?: string;
16607
16607
  readonly experiment_key?: string;
package/dist/api.d.ts CHANGED
@@ -812,7 +812,7 @@ declare namespace io.flow.v0.enums {
812
812
  type AttributeDataType = 'boolean' | 'decimal' | 'string' | 'json_array';
813
813
  type AttributeIntent = 'brand' | 'color' | 'countries_of_origin' | 'product_id' | 'fulfillment_method' | 'hazardous' | 'price' | 'size' | 'sku' | 'taxability' | 'consumer_url' | 'gtin' | 'mpn' | 'facet' | 'eccn' | 'returnable' | 'searchable';
814
814
  type AuthenticationTechnique = 'anonymous' | 'session' | 'token' | 'partner_token' | 'user';
815
- type AuthorizationDeclineCode = 'expired' | 'invalid_name' | 'invalid_number' | 'invalid_expiration' | 'invalid_address' | 'invalid_token_type' | 'invalid_token' | 'no_account' | 'avs' | 'cvv' | 'fraud' | 'duplicate' | 'not_supported' | 'unknown';
815
+ type AuthorizationDeclineCode = 'expired' | 'invalid_name' | 'invalid_number' | 'invalid_expiration' | 'invalid_address' | 'invalid_token_type' | 'invalid_token' | 'no_account' | 'avs' | 'cvv' | 'fraud' | 'duplicate' | 'not_supported' | 'unknown' | 'online_payment_error';
816
816
  type AuthorizationOption = 'store_card';
817
817
  type AuthorizationResultActionType = 'native' | 'redirect' | 'wait';
818
818
  type AuthorizationStatus = 'pending' | 'expired' | 'authorized' | 'review' | 'declined' | 'reversed';
@@ -852,7 +852,7 @@ declare namespace io.flow.v0.enums {
852
852
  type EcommercePlatformType = 'commercetools' | 'custom' | 'magento' | 'shopify' | 'sfcc' | 'solidus' | 'workarea';
853
853
  type EconomicTitleLocation = 'high_seas' | 'origination' | 'destination';
854
854
  type Environment = 'sandbox' | 'production';
855
- type EventType = 'attribute_upserted' | 'attribute_deleted' | 'attribute_upserted_v2' | 'attribute_deleted_v2' | 'catalog_upserted' | 'catalog_deleted' | 'subcatalog_upserted' | 'subcatalog_deleted' | 'catalog_item_upserted' | 'catalog_item_deleted' | 'catalog_item_upserted_v2' | 'catalog_item_deleted_v2' | 'subcatalog_item_upserted' | 'subcatalog_item_deleted' | 'b2b_invoice_upserted' | 'b2b_invoice_deleted' | 'b2b_credit_memo_upserted' | 'b2b_credit_memo_deleted' | 'consumer_invoice_upserted' | 'consumer_invoice_deleted' | 'credit_memo_upserted' | 'credit_memo_deleted' | 'crossdock_shipment_upserted' | 'rate_deleted' | 'rate_upserted' | 'rate_deleted_v3' | 'rate_upserted_v3' | 'customer_upserted' | 'customer_deleted' | 'customer_address_book_contact_upserted' | 'customer_address_book_contact_deleted' | 'email_notification_upserted' | 'email_notification_deleted' | 'available_promotions_upserted' | 'available_promotions_deleted' | 'available_promotions_upserted_v2' | 'available_promotions_deleted_v2' | 'allocation_deleted_v2' | 'allocation_upserted_v2' | 'currency_format_deleted' | 'currency_format_upserted' | 'experience_deleted' | 'experience_upserted' | 'experience_deleted_v2' | 'experience_upserted_v2' | 'country_status_upserted' | 'country_status_deleted' | 'experience_price_book_mapping_deleted' | 'experience_price_book_mapping_upserted' | 'experience_logistics_settings_upserted' | 'experience_logistics_settings_deleted' | 'item_margin_deleted' | 'item_margin_upserted' | 'item_sales_margin_deleted' | 'item_sales_margin_upserted' | 'label_format_deleted' | 'label_format_upserted' | 'order_deleted' | 'order_upserted' | 'order_deleted_v2' | 'order_upserted_v2' | 'order_identifier_deleted' | 'order_identifier_upserted' | 'order_identifier_deleted_v2' | 'order_identifier_upserted_v2' | 'order_identifier_upserted_v3' | 'pricing_deleted' | 'pricing_upserted' | 'order_service_change_request' | 'fraud_status_changed' | 'center_upserted' | 'center_deleted' | 'shipping_configuration_upserted' | 'shipping_configuration_deleted' | 'tier_upserted_v2' | 'tier_deleted_v2' | 'shipping_lane_upserted' | 'shipping_lane_deleted' | 'shipping_configuration_item_availability_upserted' | 'shipping_configuration_item_availability_deleted' | 'shipping_configuration_item_shipping_pricing_upserted' | 'shipping_configuration_item_shipping_pricing_deleted' | 'hs6_code_upserted' | 'hs6_code_deleted' | 'hs10_code_upserted' | 'hs10_code_deleted' | 'item_origin_upserted' | 'item_origin_deleted' | 'harmonized_landed_cost_upserted' | 'fully_harmonized_item_upserted' | 'rule_upserted' | 'rule_deleted' | 'snapshot_upserted' | 'snapshot_deleted' | 'label_upserted' | 'label_deleted_v2' | 'label_upserted_v2' | 'notification_upserted' | 'notification_deleted' | 'manifested_label_upserted' | 'manifested_label_deleted' | 'local_item_upserted' | 'local_item_deleted' | 'checkout_optin_responses_upserted' | 'checkout_optin_responses_deleted' | 'browse_optin_responses_upserted' | 'browse_optin_responses_deleted' | 'order_placed' | 'order_placed_v2' | 'ready_to_fulfill' | 'membership_upserted_v2' | 'membership_deleted_v2' | 'organization_upserted' | 'organization_deleted' | 'organization_upserted_v2' | 'organization_deleted_v2' | 'organization_short_id_upserted' | 'organization_short_id_deleted' | 'organization_default_configurations_upserted' | 'organization_default_configurations_deleted' | 'ecommerce_platform_upserted' | 'ecommerce_platform_deleted' | 'authorization_deleted_v2' | 'authorization_status_changed' | 'card_authorization_upserted_v2' | 'card_authorization_deleted_v2' | 'online_authorization_upserted_v2' | 'online_authorization_deleted_v2' | 'capture_upserted_v2' | 'capture_deleted' | 'card_upserted_v2' | 'card_deleted' | 'payment_upserted' | 'payment_deleted' | 'refund_upserted_v2' | 'refund_deleted_v2' | 'refund_capture_upserted_v2' | 'reversal_upserted' | 'reversal_deleted' | 'capture_identifier_upserted' | 'capture_identifier_deleted' | 'refund_identifier_upserted' | 'refund_identifier_deleted' | 'virtual_card_capture_upserted' | 'virtual_card_capture_deleted' | 'virtual_card_refund_upserted' | 'virtual_card_refund_deleted' | 'price_book_upserted' | 'price_book_deleted' | 'price_book_item_upserted' | 'price_book_item_deleted' | 'organization_rates_published' | 'ratecard_lane_upserted' | 'ratecard_lane_deleted' | 'ratecard_upserted' | 'ratecard_deleted' | 'return_upserted' | 'return_deleted' | 'shopify_localization_setting_upserted' | 'shopify_localization_setting_deleted' | 'tracking_label_event_upserted';
855
+ type EventType = 'attribute_upserted' | 'attribute_deleted' | 'attribute_upserted_v2' | 'attribute_deleted_v2' | 'catalog_upserted' | 'catalog_deleted' | 'subcatalog_upserted' | 'subcatalog_deleted' | 'catalog_item_upserted' | 'catalog_item_deleted' | 'catalog_item_upserted_v2' | 'catalog_item_deleted_v2' | 'subcatalog_item_upserted' | 'subcatalog_item_deleted' | 'b2b_invoice_upserted' | 'b2b_invoice_deleted' | 'b2b_credit_memo_upserted' | 'b2b_credit_memo_deleted' | 'consumer_invoice_upserted' | 'consumer_invoice_deleted' | 'credit_memo_upserted' | 'credit_memo_deleted' | 'crossdock_shipment_upserted' | 'rate_deleted' | 'rate_upserted' | 'rate_deleted_v3' | 'rate_upserted_v3' | 'customer_upserted' | 'customer_deleted' | 'customer_address_book_contact_upserted' | 'customer_address_book_contact_deleted' | 'email_notification_upserted' | 'email_notification_deleted' | 'available_promotions_upserted' | 'available_promotions_deleted' | 'available_promotions_upserted_v2' | 'available_promotions_deleted_v2' | 'allocation_deleted_v2' | 'allocation_upserted_v2' | 'currency_format_deleted' | 'currency_format_upserted' | 'experience_deleted' | 'experience_upserted' | 'experience_deleted_v2' | 'experience_upserted_v2' | 'country_status_upserted' | 'country_status_deleted' | 'experience_price_book_mapping_deleted' | 'experience_price_book_mapping_upserted' | 'experience_logistics_settings_upserted' | 'experience_logistics_settings_deleted' | 'item_margin_deleted' | 'item_margin_upserted' | 'item_sales_margin_deleted' | 'item_sales_margin_upserted' | 'label_format_deleted' | 'label_format_upserted' | 'order_deleted' | 'order_upserted' | 'order_deleted_v2' | 'order_upserted_v2' | 'order_identifier_deleted' | 'order_identifier_upserted' | 'order_identifier_deleted_v2' | 'order_identifier_upserted_v2' | 'order_identifier_upserted_v3' | 'pricing_deleted' | 'pricing_upserted' | 'order_service_change_request' | 'fraud_status_changed' | 'center_upserted' | 'center_deleted' | 'shipping_configuration_upserted' | 'shipping_configuration_deleted' | 'tier_upserted_v2' | 'tier_deleted_v2' | 'shipping_lane_upserted' | 'shipping_lane_deleted' | 'shipping_configuration_item_availability_upserted' | 'shipping_configuration_item_availability_deleted' | 'shipping_configuration_item_shipping_pricing_upserted' | 'shipping_configuration_item_shipping_pricing_deleted' | 'hs6_code_upserted' | 'hs6_code_deleted' | 'hs10_code_upserted' | 'hs10_code_deleted' | 'item_origin_upserted' | 'item_origin_deleted' | 'harmonized_landed_cost_upserted' | 'fully_harmonized_item_upserted' | 'rule_upserted' | 'rule_deleted' | 'snapshot_upserted' | 'snapshot_deleted' | 'label_upserted' | 'label_deleted_v2' | 'label_upserted_v2' | 'notification_upserted' | 'notification_deleted' | 'manifested_label_upserted' | 'manifested_label_deleted' | 'local_item_upserted' | 'local_item_deleted' | 'checkout_optin_responses_upserted' | 'checkout_optin_responses_deleted' | 'browse_optin_responses_upserted' | 'browse_optin_responses_deleted' | 'order_placed' | 'order_placed_v2' | 'ready_to_fulfill' | 'membership_upserted_v2' | 'membership_deleted_v2' | 'organization_upserted' | 'organization_deleted' | 'organization_upserted_v2' | 'organization_deleted_v2' | 'organization_short_id_upserted' | 'organization_short_id_deleted' | 'organization_default_configurations_upserted' | 'organization_default_configurations_deleted' | 'ecommerce_platform_upserted' | 'ecommerce_platform_deleted' | 'authorization_deleted_v2' | 'authorization_status_changed' | 'card_authorization_upserted_v2' | 'card_authorization_deleted_v2' | 'online_authorization_upserted_v2' | 'online_authorization_deleted_v2' | 'capture_upserted_v2' | 'capture_deleted' | 'card_upserted_v2' | 'card_deleted' | 'payment_upserted' | 'payment_deleted' | 'refund_upserted_v2' | 'refund_deleted_v2' | 'refund_capture_upserted_v2' | 'reversal_upserted' | 'reversal_deleted' | 'capture_identifier_upserted' | 'capture_identifier_deleted' | 'refund_identifier_upserted' | 'refund_identifier_deleted' | 'virtual_card_capture_upserted' | 'virtual_card_capture_deleted' | 'virtual_card_refund_upserted' | 'virtual_card_refund_deleted' | 'price_book_upserted' | 'price_book_deleted' | 'price_book_item_upserted' | 'price_book_item_deleted' | 'organization_rates_published' | 'ratecard_lane_upserted' | 'ratecard_lane_deleted' | 'ratecard_upserted' | 'ratecard_deleted' | 'return_upserted' | 'return_deleted' | 'return_upserted_v2' | 'return_deleted_v2' | 'shopify_localization_setting_upserted' | 'shopify_localization_setting_deleted' | 'tracking_label_event_upserted';
856
856
  type ExceptionType = 'open' | 'closed';
857
857
  type ExclusionRuleState = 'current' | 'deleting' | 'updating';
858
858
  type ExperienceCloneStatus = 'pending' | 'updating' | 'completed' | 'failed';
@@ -6083,6 +6083,7 @@ declare namespace io.flow.v0.models {
6083
6083
  readonly source: io.flow.v0.unions.ReturnSource;
6084
6084
  readonly tracking_status?: io.flow.v0.enums.ReturnTrackingStatus;
6085
6085
  readonly tracking_status_timestamp?: string;
6086
+ readonly carrier_tracking_number?: string;
6086
6087
  }
6087
6088
  interface ReturnDeleted {
6088
6089
  readonly discriminator: 'return_deleted';
@@ -6090,6 +6091,13 @@ declare namespace io.flow.v0.models {
6090
6091
  readonly timestamp: string;
6091
6092
  readonly id: string;
6092
6093
  }
6094
+ interface ReturnDeletedV2 {
6095
+ readonly discriminator: 'return_deleted_v2';
6096
+ readonly event_id: string;
6097
+ readonly timestamp: string;
6098
+ readonly organization: string;
6099
+ readonly return: io.flow.v0.models.Return;
6100
+ }
6093
6101
  interface ReturnForm {
6094
6102
  readonly items: io.flow.v0.models.ReturnLineItem[];
6095
6103
  readonly tier_id?: string;
@@ -6102,6 +6110,7 @@ declare namespace io.flow.v0.models {
6102
6110
  readonly source: io.flow.v0.unions.ReturnSource;
6103
6111
  readonly tracking_status?: io.flow.v0.enums.ReturnTrackingStatus;
6104
6112
  readonly tracking_status_timestamp?: string;
6113
+ readonly carrier_tracking_number?: string;
6105
6114
  }
6106
6115
  interface ReturnItemReference {
6107
6116
  readonly number: string;
@@ -6121,11 +6130,9 @@ declare namespace io.flow.v0.models {
6121
6130
  readonly amount: number;
6122
6131
  }
6123
6132
  interface ReturnReason {
6124
- readonly key: string;
6125
6133
  readonly name: string;
6126
6134
  }
6127
6135
  interface ReturnReasonForm {
6128
- readonly key?: string;
6129
6136
  readonly name?: string;
6130
6137
  }
6131
6138
  interface ReturnReasonPutForm {
@@ -6152,6 +6159,13 @@ declare namespace io.flow.v0.models {
6152
6159
  readonly service: string;
6153
6160
  readonly origin: io.flow.v0.models.ShippingAddress;
6154
6161
  }
6162
+ interface ReturnUpsertedV2 {
6163
+ readonly discriminator: 'return_upserted_v2';
6164
+ readonly event_id: string;
6165
+ readonly timestamp: string;
6166
+ readonly organization: string;
6167
+ readonly return: io.flow.v0.models.Return;
6168
+ }
6155
6169
  interface ReturnVersion {
6156
6170
  readonly id: string;
6157
6171
  readonly timestamp: string;
@@ -7472,7 +7486,7 @@ declare namespace io.flow.v0.unions {
7472
7486
  type DiscountRuleEntitlement = io.flow.v0.models.DiscountRuleSubsidyEntitlement;
7473
7487
  type Document = io.flow.v0.models.CatalogItemDocument | io.flow.v0.models.HarmonizationDocument;
7474
7488
  type EmailNotificationData = io.flow.v0.models.EmailNotificationDataRefund | io.flow.v0.models.EmailNotificationAbandonedOrder;
7475
- type Event = io.flow.v0.models.AttributeUpserted | io.flow.v0.models.AttributeDeleted | io.flow.v0.models.AttributeUpsertedV2 | io.flow.v0.models.AttributeDeletedV2 | io.flow.v0.models.CatalogUpserted | io.flow.v0.models.CatalogDeleted | io.flow.v0.models.SubcatalogUpserted | io.flow.v0.models.SubcatalogDeleted | io.flow.v0.models.CatalogItemUpserted | io.flow.v0.models.CatalogItemDeleted | io.flow.v0.models.CatalogItemUpsertedV2 | io.flow.v0.models.CatalogItemDeletedV2 | io.flow.v0.models.SubcatalogItemUpserted | io.flow.v0.models.SubcatalogItemDeleted | io.flow.v0.models.B2BInvoiceUpserted | io.flow.v0.models.B2BInvoiceDeleted | io.flow.v0.models.B2BCreditMemoUpserted | io.flow.v0.models.B2BCreditMemoDeleted | io.flow.v0.models.ConsumerInvoiceUpserted | io.flow.v0.models.ConsumerInvoiceDeleted | io.flow.v0.models.CreditMemoUpserted | io.flow.v0.models.CreditMemoDeleted | io.flow.v0.models.CrossdockShipmentUpserted | io.flow.v0.models.RateDeleted | io.flow.v0.models.RateUpserted | io.flow.v0.models.RateDeletedV3 | io.flow.v0.models.RateUpsertedV3 | io.flow.v0.models.CustomerUpserted | io.flow.v0.models.CustomerDeleted | io.flow.v0.models.CustomerAddressBookContactUpserted | io.flow.v0.models.CustomerAddressBookContactDeleted | io.flow.v0.models.EmailNotificationUpserted | io.flow.v0.models.EmailNotificationDeleted | io.flow.v0.models.AvailablePromotionsUpserted | io.flow.v0.models.AvailablePromotionsDeleted | io.flow.v0.models.AvailablePromotionsUpsertedV2 | io.flow.v0.models.AvailablePromotionsDeletedV2 | io.flow.v0.models.AllocationDeletedV2 | io.flow.v0.models.AllocationUpsertedV2 | io.flow.v0.models.CurrencyFormatDeleted | io.flow.v0.models.CurrencyFormatUpserted | io.flow.v0.models.ExperienceDeleted | io.flow.v0.models.ExperienceUpserted | io.flow.v0.models.ExperienceDeletedV2 | io.flow.v0.models.ExperienceUpsertedV2 | io.flow.v0.models.CountryStatusUpserted | io.flow.v0.models.CountryStatusDeleted | io.flow.v0.models.ExperiencePriceBookMappingDeleted | io.flow.v0.models.ExperiencePriceBookMappingUpserted | io.flow.v0.models.ExperienceLogisticsSettingsUpserted | io.flow.v0.models.ExperienceLogisticsSettingsDeleted | io.flow.v0.models.ItemMarginDeleted | io.flow.v0.models.ItemMarginUpserted | io.flow.v0.models.ItemSalesMarginDeleted | io.flow.v0.models.ItemSalesMarginUpserted | io.flow.v0.models.LabelFormatDeleted | io.flow.v0.models.LabelFormatUpserted | io.flow.v0.models.OrderDeleted | io.flow.v0.models.OrderUpserted | io.flow.v0.models.OrderDeletedV2 | io.flow.v0.models.OrderUpsertedV2 | io.flow.v0.models.OrderIdentifierDeleted | io.flow.v0.models.OrderIdentifierUpserted | io.flow.v0.models.OrderIdentifierDeletedV2 | io.flow.v0.models.OrderIdentifierUpsertedV2 | io.flow.v0.models.OrderIdentifierUpsertedV3 | io.flow.v0.models.PricingDeleted | io.flow.v0.models.PricingUpserted | io.flow.v0.models.OrderServiceChangeRequest | io.flow.v0.models.FraudStatusChanged | io.flow.v0.models.CenterUpserted | io.flow.v0.models.CenterDeleted | io.flow.v0.models.ShippingConfigurationUpserted | io.flow.v0.models.ShippingConfigurationDeleted | io.flow.v0.models.TierUpsertedV2 | io.flow.v0.models.TierDeletedV2 | io.flow.v0.models.ShippingLaneUpserted | io.flow.v0.models.ShippingLaneDeleted | io.flow.v0.models.ShippingConfigurationItemAvailabilityUpserted | io.flow.v0.models.ShippingConfigurationItemAvailabilityDeleted | io.flow.v0.models.ShippingConfigurationItemShippingPricingUpserted | io.flow.v0.models.ShippingConfigurationItemShippingPricingDeleted | io.flow.v0.models.Hs6CodeUpserted | io.flow.v0.models.Hs6CodeDeleted | io.flow.v0.models.Hs10CodeUpserted | io.flow.v0.models.Hs10CodeDeleted | io.flow.v0.models.ItemOriginUpserted | io.flow.v0.models.ItemOriginDeleted | io.flow.v0.models.HarmonizedLandedCostUpserted | io.flow.v0.models.FullyHarmonizedItemUpserted | io.flow.v0.models.RuleUpserted | io.flow.v0.models.RuleDeleted | io.flow.v0.models.SnapshotUpserted | io.flow.v0.models.SnapshotDeleted | io.flow.v0.models.LabelUpserted | io.flow.v0.models.LabelDeletedV2 | io.flow.v0.models.LabelUpsertedV2 | io.flow.v0.models.NotificationUpserted | io.flow.v0.models.NotificationDeleted | io.flow.v0.models.ManifestedLabelUpserted | io.flow.v0.models.ManifestedLabelDeleted | io.flow.v0.models.LocalItemUpserted | io.flow.v0.models.LocalItemDeleted | io.flow.v0.models.CheckoutOptinResponsesUpserted | io.flow.v0.models.CheckoutOptinResponsesDeleted | io.flow.v0.models.BrowseOptinResponsesUpserted | io.flow.v0.models.BrowseOptinResponsesDeleted | io.flow.v0.models.OrderPlaced | io.flow.v0.models.OrderPlacedV2 | io.flow.v0.models.ReadyToFulfill | io.flow.v0.models.MembershipUpsertedV2 | io.flow.v0.models.MembershipDeletedV2 | io.flow.v0.models.OrganizationUpserted | io.flow.v0.models.OrganizationDeleted | io.flow.v0.models.OrganizationUpsertedV2 | io.flow.v0.models.OrganizationDeletedV2 | io.flow.v0.models.OrganizationShortIdUpserted | io.flow.v0.models.OrganizationShortIdDeleted | io.flow.v0.models.OrganizationDefaultConfigurationsUpserted | io.flow.v0.models.OrganizationDefaultConfigurationsDeleted | io.flow.v0.models.EcommercePlatformUpserted | io.flow.v0.models.EcommercePlatformDeleted | io.flow.v0.models.AuthorizationDeletedV2 | io.flow.v0.models.AuthorizationStatusChanged | io.flow.v0.models.CardAuthorizationUpsertedV2 | io.flow.v0.models.CardAuthorizationDeletedV2 | io.flow.v0.models.OnlineAuthorizationUpsertedV2 | io.flow.v0.models.OnlineAuthorizationDeletedV2 | io.flow.v0.models.CaptureUpsertedV2 | io.flow.v0.models.CaptureDeleted | io.flow.v0.models.CardUpsertedV2 | io.flow.v0.models.CardDeleted | io.flow.v0.models.PaymentUpserted | io.flow.v0.models.PaymentDeleted | io.flow.v0.models.RefundUpsertedV2 | io.flow.v0.models.RefundDeletedV2 | io.flow.v0.models.RefundCaptureUpsertedV2 | io.flow.v0.models.ReversalUpserted | io.flow.v0.models.ReversalDeleted | io.flow.v0.models.CaptureIdentifierUpserted | io.flow.v0.models.CaptureIdentifierDeleted | io.flow.v0.models.RefundIdentifierUpserted | io.flow.v0.models.RefundIdentifierDeleted | io.flow.v0.models.VirtualCardCaptureUpserted | io.flow.v0.models.VirtualCardCaptureDeleted | io.flow.v0.models.VirtualCardRefundUpserted | io.flow.v0.models.VirtualCardRefundDeleted | io.flow.v0.models.PriceBookUpserted | io.flow.v0.models.PriceBookDeleted | io.flow.v0.models.PriceBookItemUpserted | io.flow.v0.models.PriceBookItemDeleted | io.flow.v0.models.OrganizationRatesPublished | io.flow.v0.models.RatecardLaneUpserted | io.flow.v0.models.RatecardLaneDeleted | io.flow.v0.models.RatecardUpserted | io.flow.v0.models.RatecardDeleted | io.flow.v0.models.ReturnUpserted | io.flow.v0.models.ReturnDeleted | io.flow.v0.models.ShopifyLocalizationSettingUpserted | io.flow.v0.models.ShopifyLocalizationSettingDeleted | io.flow.v0.models.TrackingLabelEventUpserted;
7489
+ type Event = io.flow.v0.models.AttributeUpserted | io.flow.v0.models.AttributeDeleted | io.flow.v0.models.AttributeUpsertedV2 | io.flow.v0.models.AttributeDeletedV2 | io.flow.v0.models.CatalogUpserted | io.flow.v0.models.CatalogDeleted | io.flow.v0.models.SubcatalogUpserted | io.flow.v0.models.SubcatalogDeleted | io.flow.v0.models.CatalogItemUpserted | io.flow.v0.models.CatalogItemDeleted | io.flow.v0.models.CatalogItemUpsertedV2 | io.flow.v0.models.CatalogItemDeletedV2 | io.flow.v0.models.SubcatalogItemUpserted | io.flow.v0.models.SubcatalogItemDeleted | io.flow.v0.models.B2BInvoiceUpserted | io.flow.v0.models.B2BInvoiceDeleted | io.flow.v0.models.B2BCreditMemoUpserted | io.flow.v0.models.B2BCreditMemoDeleted | io.flow.v0.models.ConsumerInvoiceUpserted | io.flow.v0.models.ConsumerInvoiceDeleted | io.flow.v0.models.CreditMemoUpserted | io.flow.v0.models.CreditMemoDeleted | io.flow.v0.models.CrossdockShipmentUpserted | io.flow.v0.models.RateDeleted | io.flow.v0.models.RateUpserted | io.flow.v0.models.RateDeletedV3 | io.flow.v0.models.RateUpsertedV3 | io.flow.v0.models.CustomerUpserted | io.flow.v0.models.CustomerDeleted | io.flow.v0.models.CustomerAddressBookContactUpserted | io.flow.v0.models.CustomerAddressBookContactDeleted | io.flow.v0.models.EmailNotificationUpserted | io.flow.v0.models.EmailNotificationDeleted | io.flow.v0.models.AvailablePromotionsUpserted | io.flow.v0.models.AvailablePromotionsDeleted | io.flow.v0.models.AvailablePromotionsUpsertedV2 | io.flow.v0.models.AvailablePromotionsDeletedV2 | io.flow.v0.models.AllocationDeletedV2 | io.flow.v0.models.AllocationUpsertedV2 | io.flow.v0.models.CurrencyFormatDeleted | io.flow.v0.models.CurrencyFormatUpserted | io.flow.v0.models.ExperienceDeleted | io.flow.v0.models.ExperienceUpserted | io.flow.v0.models.ExperienceDeletedV2 | io.flow.v0.models.ExperienceUpsertedV2 | io.flow.v0.models.CountryStatusUpserted | io.flow.v0.models.CountryStatusDeleted | io.flow.v0.models.ExperiencePriceBookMappingDeleted | io.flow.v0.models.ExperiencePriceBookMappingUpserted | io.flow.v0.models.ExperienceLogisticsSettingsUpserted | io.flow.v0.models.ExperienceLogisticsSettingsDeleted | io.flow.v0.models.ItemMarginDeleted | io.flow.v0.models.ItemMarginUpserted | io.flow.v0.models.ItemSalesMarginDeleted | io.flow.v0.models.ItemSalesMarginUpserted | io.flow.v0.models.LabelFormatDeleted | io.flow.v0.models.LabelFormatUpserted | io.flow.v0.models.OrderDeleted | io.flow.v0.models.OrderUpserted | io.flow.v0.models.OrderDeletedV2 | io.flow.v0.models.OrderUpsertedV2 | io.flow.v0.models.OrderIdentifierDeleted | io.flow.v0.models.OrderIdentifierUpserted | io.flow.v0.models.OrderIdentifierDeletedV2 | io.flow.v0.models.OrderIdentifierUpsertedV2 | io.flow.v0.models.OrderIdentifierUpsertedV3 | io.flow.v0.models.PricingDeleted | io.flow.v0.models.PricingUpserted | io.flow.v0.models.OrderServiceChangeRequest | io.flow.v0.models.FraudStatusChanged | io.flow.v0.models.CenterUpserted | io.flow.v0.models.CenterDeleted | io.flow.v0.models.ShippingConfigurationUpserted | io.flow.v0.models.ShippingConfigurationDeleted | io.flow.v0.models.TierUpsertedV2 | io.flow.v0.models.TierDeletedV2 | io.flow.v0.models.ShippingLaneUpserted | io.flow.v0.models.ShippingLaneDeleted | io.flow.v0.models.ShippingConfigurationItemAvailabilityUpserted | io.flow.v0.models.ShippingConfigurationItemAvailabilityDeleted | io.flow.v0.models.ShippingConfigurationItemShippingPricingUpserted | io.flow.v0.models.ShippingConfigurationItemShippingPricingDeleted | io.flow.v0.models.Hs6CodeUpserted | io.flow.v0.models.Hs6CodeDeleted | io.flow.v0.models.Hs10CodeUpserted | io.flow.v0.models.Hs10CodeDeleted | io.flow.v0.models.ItemOriginUpserted | io.flow.v0.models.ItemOriginDeleted | io.flow.v0.models.HarmonizedLandedCostUpserted | io.flow.v0.models.FullyHarmonizedItemUpserted | io.flow.v0.models.RuleUpserted | io.flow.v0.models.RuleDeleted | io.flow.v0.models.SnapshotUpserted | io.flow.v0.models.SnapshotDeleted | io.flow.v0.models.LabelUpserted | io.flow.v0.models.LabelDeletedV2 | io.flow.v0.models.LabelUpsertedV2 | io.flow.v0.models.NotificationUpserted | io.flow.v0.models.NotificationDeleted | io.flow.v0.models.ManifestedLabelUpserted | io.flow.v0.models.ManifestedLabelDeleted | io.flow.v0.models.LocalItemUpserted | io.flow.v0.models.LocalItemDeleted | io.flow.v0.models.CheckoutOptinResponsesUpserted | io.flow.v0.models.CheckoutOptinResponsesDeleted | io.flow.v0.models.BrowseOptinResponsesUpserted | io.flow.v0.models.BrowseOptinResponsesDeleted | io.flow.v0.models.OrderPlaced | io.flow.v0.models.OrderPlacedV2 | io.flow.v0.models.ReadyToFulfill | io.flow.v0.models.MembershipUpsertedV2 | io.flow.v0.models.MembershipDeletedV2 | io.flow.v0.models.OrganizationUpserted | io.flow.v0.models.OrganizationDeleted | io.flow.v0.models.OrganizationUpsertedV2 | io.flow.v0.models.OrganizationDeletedV2 | io.flow.v0.models.OrganizationShortIdUpserted | io.flow.v0.models.OrganizationShortIdDeleted | io.flow.v0.models.OrganizationDefaultConfigurationsUpserted | io.flow.v0.models.OrganizationDefaultConfigurationsDeleted | io.flow.v0.models.EcommercePlatformUpserted | io.flow.v0.models.EcommercePlatformDeleted | io.flow.v0.models.AuthorizationDeletedV2 | io.flow.v0.models.AuthorizationStatusChanged | io.flow.v0.models.CardAuthorizationUpsertedV2 | io.flow.v0.models.CardAuthorizationDeletedV2 | io.flow.v0.models.OnlineAuthorizationUpsertedV2 | io.flow.v0.models.OnlineAuthorizationDeletedV2 | io.flow.v0.models.CaptureUpsertedV2 | io.flow.v0.models.CaptureDeleted | io.flow.v0.models.CardUpsertedV2 | io.flow.v0.models.CardDeleted | io.flow.v0.models.PaymentUpserted | io.flow.v0.models.PaymentDeleted | io.flow.v0.models.RefundUpsertedV2 | io.flow.v0.models.RefundDeletedV2 | io.flow.v0.models.RefundCaptureUpsertedV2 | io.flow.v0.models.ReversalUpserted | io.flow.v0.models.ReversalDeleted | io.flow.v0.models.CaptureIdentifierUpserted | io.flow.v0.models.CaptureIdentifierDeleted | io.flow.v0.models.RefundIdentifierUpserted | io.flow.v0.models.RefundIdentifierDeleted | io.flow.v0.models.VirtualCardCaptureUpserted | io.flow.v0.models.VirtualCardCaptureDeleted | io.flow.v0.models.VirtualCardRefundUpserted | io.flow.v0.models.VirtualCardRefundDeleted | io.flow.v0.models.PriceBookUpserted | io.flow.v0.models.PriceBookDeleted | io.flow.v0.models.PriceBookItemUpserted | io.flow.v0.models.PriceBookItemDeleted | io.flow.v0.models.OrganizationRatesPublished | io.flow.v0.models.RatecardLaneUpserted | io.flow.v0.models.RatecardLaneDeleted | io.flow.v0.models.RatecardUpserted | io.flow.v0.models.RatecardDeleted | io.flow.v0.models.ReturnUpserted | io.flow.v0.models.ReturnDeleted | io.flow.v0.models.ReturnUpsertedV2 | io.flow.v0.models.ReturnDeletedV2 | io.flow.v0.models.ShopifyLocalizationSettingUpserted | io.flow.v0.models.ShopifyLocalizationSettingDeleted | io.flow.v0.models.TrackingLabelEventUpserted;
7476
7490
  type ExpandableCard = io.flow.v0.models.Card | io.flow.v0.models.CardReference | io.flow.v0.models.CardSummary;
7477
7491
  type ExpandableCenter = io.flow.v0.models.Center | io.flow.v0.models.CenterReference;
7478
7492
  type ExpandableExperience = io.flow.v0.models.Experience | io.flow.v0.models.ExperienceReference;
@@ -8519,6 +8533,7 @@ export declare type ReservationItemReference = io.flow.v0.models.ReservationItem
8519
8533
  export declare type ReservationOrderReference = io.flow.v0.models.ReservationOrderReference;
8520
8534
  export declare type Return = io.flow.v0.models.Return;
8521
8535
  export declare type ReturnDeleted = io.flow.v0.models.ReturnDeleted;
8536
+ export declare type ReturnDeletedV2 = io.flow.v0.models.ReturnDeletedV2;
8522
8537
  export declare type ReturnForm = io.flow.v0.models.ReturnForm;
8523
8538
  export declare type ReturnItemReference = io.flow.v0.models.ReturnItemReference;
8524
8539
  export declare type ReturnLineItem = io.flow.v0.models.ReturnLineItem;
@@ -8533,6 +8548,7 @@ export declare type ReturnSourceFlow = io.flow.v0.models.ReturnSourceFlow;
8533
8548
  export declare type ReturnStatus = io.flow.v0.enums.ReturnStatus;
8534
8549
  export declare type ReturnTrackingStatus = io.flow.v0.enums.ReturnTrackingStatus;
8535
8550
  export declare type ReturnUpserted = io.flow.v0.models.ReturnUpserted;
8551
+ export declare type ReturnUpsertedV2 = io.flow.v0.models.ReturnUpsertedV2;
8536
8552
  export declare type ReturnVersion = io.flow.v0.models.ReturnVersion;
8537
8553
  export declare type Reversal = io.flow.v0.models.Reversal;
8538
8554
  export declare type ReversalDeleted = io.flow.v0.models.ReversalDeleted;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@flowio/types",
3
- "version": "10.9.0",
3
+ "version": "10.9.1",
4
4
  "description": "TypeScript type definitions for custom types found in Flow API",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -25,5 +25,5 @@
25
25
  "maintainers": [
26
26
  "Christian Muñoz <christian.munoz@flow.io>"
27
27
  ],
28
- "gitHead": "106b3ddbe625893e8b451cf26c8aac8c688e18e3"
28
+ "gitHead": "8b500a72ee5a1129076bf143bf4fcd3190eb123a"
29
29
  }
@@ -14472,7 +14472,7 @@ declare namespace io.flow.checkout.analytics.v0.models {
14472
14472
  }
14473
14473
 
14474
14474
  interface HeapPayClick {
14475
- readonly discriminator: 'heap_pay_click';
14475
+ readonly discriminator: 'pay_click';
14476
14476
  readonly checkout_id?: string;
14477
14477
  readonly experience_key?: string;
14478
14478
  readonly experiment_key?: string;
@@ -14905,7 +14905,8 @@ declare namespace io.flow.payment.v0.enums {
14905
14905
  | 'fraud'
14906
14906
  | 'duplicate'
14907
14907
  | 'not_supported'
14908
- | 'unknown';
14908
+ | 'unknown'
14909
+ | 'online_payment_error';
14909
14910
  type AuthorizationOption = 'store_card';
14910
14911
  type AuthorizationResultActionType = 'native' | 'redirect' | 'wait';
14911
14912
  type AuthorizationStatus =
@@ -21568,7 +21569,7 @@ declare namespace io.flow.internal.v0.models {
21568
21569
  }
21569
21570
 
21570
21571
  interface HeapPayClick {
21571
- readonly discriminator: 'heap_pay_click';
21572
+ readonly discriminator: 'pay_click';
21572
21573
  readonly checkout_id?: string;
21573
21574
  readonly experience_key?: string;
21574
21575
  readonly experiment_key?: string;
package/src/api.ts CHANGED
@@ -1052,7 +1052,8 @@ declare namespace io.flow.v0.enums {
1052
1052
  | 'fraud'
1053
1053
  | 'duplicate'
1054
1054
  | 'not_supported'
1055
- | 'unknown';
1055
+ | 'unknown'
1056
+ | 'online_payment_error';
1056
1057
  type AuthorizationOption = 'store_card';
1057
1058
  type AuthorizationResultActionType = 'native' | 'redirect' | 'wait';
1058
1059
  type AuthorizationStatus =
@@ -1327,6 +1328,8 @@ declare namespace io.flow.v0.enums {
1327
1328
  | 'ratecard_deleted'
1328
1329
  | 'return_upserted'
1329
1330
  | 'return_deleted'
1331
+ | 'return_upserted_v2'
1332
+ | 'return_deleted_v2'
1330
1333
  | 'shopify_localization_setting_upserted'
1331
1334
  | 'shopify_localization_setting_deleted'
1332
1335
  | 'tracking_label_event_upserted';
@@ -7598,6 +7601,7 @@ declare namespace io.flow.v0.models {
7598
7601
  readonly source: io.flow.v0.unions.ReturnSource;
7599
7602
  readonly tracking_status?: io.flow.v0.enums.ReturnTrackingStatus;
7600
7603
  readonly tracking_status_timestamp?: string;
7604
+ readonly carrier_tracking_number?: string;
7601
7605
  }
7602
7606
 
7603
7607
  interface ReturnDeleted {
@@ -7607,6 +7611,14 @@ declare namespace io.flow.v0.models {
7607
7611
  readonly id: string;
7608
7612
  }
7609
7613
 
7614
+ interface ReturnDeletedV2 {
7615
+ readonly discriminator: 'return_deleted_v2';
7616
+ readonly event_id: string;
7617
+ readonly timestamp: string;
7618
+ readonly organization: string;
7619
+ readonly return: io.flow.v0.models.Return;
7620
+ }
7621
+
7610
7622
  interface ReturnForm {
7611
7623
  readonly items: io.flow.v0.models.ReturnLineItem[];
7612
7624
  readonly tier_id?: string;
@@ -7619,6 +7631,7 @@ declare namespace io.flow.v0.models {
7619
7631
  readonly source: io.flow.v0.unions.ReturnSource;
7620
7632
  readonly tracking_status?: io.flow.v0.enums.ReturnTrackingStatus;
7621
7633
  readonly tracking_status_timestamp?: string;
7634
+ readonly carrier_tracking_number?: string;
7622
7635
  }
7623
7636
 
7624
7637
  interface ReturnItemReference {
@@ -7643,12 +7656,10 @@ declare namespace io.flow.v0.models {
7643
7656
  }
7644
7657
 
7645
7658
  interface ReturnReason {
7646
- readonly key: string;
7647
7659
  readonly name: string;
7648
7660
  }
7649
7661
 
7650
7662
  interface ReturnReasonForm {
7651
- readonly key?: string;
7652
7663
  readonly name?: string;
7653
7664
  }
7654
7665
 
@@ -7680,6 +7691,14 @@ declare namespace io.flow.v0.models {
7680
7691
  readonly origin: io.flow.v0.models.ShippingAddress;
7681
7692
  }
7682
7693
 
7694
+ interface ReturnUpsertedV2 {
7695
+ readonly discriminator: 'return_upserted_v2';
7696
+ readonly event_id: string;
7697
+ readonly timestamp: string;
7698
+ readonly organization: string;
7699
+ readonly return: io.flow.v0.models.Return;
7700
+ }
7701
+
7683
7702
  interface ReturnVersion {
7684
7703
  readonly id: string;
7685
7704
  readonly timestamp: string;
@@ -9416,6 +9435,8 @@ declare namespace io.flow.v0.unions {
9416
9435
  | io.flow.v0.models.RatecardDeleted
9417
9436
  | io.flow.v0.models.ReturnUpserted
9418
9437
  | io.flow.v0.models.ReturnDeleted
9438
+ | io.flow.v0.models.ReturnUpsertedV2
9439
+ | io.flow.v0.models.ReturnDeletedV2
9419
9440
  | io.flow.v0.models.ShopifyLocalizationSettingUpserted
9420
9441
  | io.flow.v0.models.ShopifyLocalizationSettingDeleted
9421
9442
  | io.flow.v0.models.TrackingLabelEventUpserted;
@@ -10576,6 +10597,7 @@ export type ReservationItemReference = io.flow.v0.models.ReservationItemReferenc
10576
10597
  export type ReservationOrderReference = io.flow.v0.models.ReservationOrderReference;
10577
10598
  export type Return = io.flow.v0.models.Return;
10578
10599
  export type ReturnDeleted = io.flow.v0.models.ReturnDeleted;
10600
+ export type ReturnDeletedV2 = io.flow.v0.models.ReturnDeletedV2;
10579
10601
  export type ReturnForm = io.flow.v0.models.ReturnForm;
10580
10602
  export type ReturnItemReference = io.flow.v0.models.ReturnItemReference;
10581
10603
  export type ReturnLineItem = io.flow.v0.models.ReturnLineItem;
@@ -10590,6 +10612,7 @@ export type ReturnSourceFlow = io.flow.v0.models.ReturnSourceFlow;
10590
10612
  export type ReturnStatus = io.flow.v0.enums.ReturnStatus;
10591
10613
  export type ReturnTrackingStatus = io.flow.v0.enums.ReturnTrackingStatus;
10592
10614
  export type ReturnUpserted = io.flow.v0.models.ReturnUpserted;
10615
+ export type ReturnUpsertedV2 = io.flow.v0.models.ReturnUpsertedV2;
10593
10616
  export type ReturnVersion = io.flow.v0.models.ReturnVersion;
10594
10617
  export type Reversal = io.flow.v0.models.Reversal;
10595
10618
  export type ReversalDeleted = io.flow.v0.models.ReversalDeleted;