@flowio/types 0.0.9 → 0.0.11

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.
package/src/api.ts CHANGED
@@ -1253,8 +1253,6 @@ namespace io.flow.v0.enums {
1253
1253
  | 'fraud_status_changed'
1254
1254
  | 'center_upserted'
1255
1255
  | 'center_deleted'
1256
- | 'delivery_option_upserted'
1257
- | 'delivery_option_deleted'
1258
1256
  | 'shipping_configuration_upserted'
1259
1257
  | 'shipping_configuration_deleted'
1260
1258
  | 'tier_upserted_v2'
@@ -1416,7 +1414,11 @@ namespace io.flow.v0.enums {
1416
1414
  export type InventoryStatus = 'has_inventory' | 'no_inventory';
1417
1415
  export type InvitationErrorCode = 'expired' | 'invalid_email';
1418
1416
  export type ItemAvailabilityStatus = 'available' | 'low' | 'out_of_stock';
1419
- export type LaneStrategy = 'oldest' | 'fastest' | 'lowest_cost';
1417
+ export type LaneStrategy =
1418
+ | 'oldest'
1419
+ | 'fastest'
1420
+ | 'lowest_cost'
1421
+ | 'highest_priority';
1420
1422
  export type LevyComponent =
1421
1423
  | 'goods'
1422
1424
  | 'duty'
@@ -1426,6 +1428,12 @@ namespace io.flow.v0.enums {
1426
1428
  export type LevyStrategy = 'minimum' | 'average' | 'maximum';
1427
1429
  export type MarginType = 'fixed' | 'percent';
1428
1430
  export type MeasurementSystem = 'imperial' | 'metric';
1431
+ export type MerchantGiftCardErrorCode =
1432
+ | 'invalid'
1433
+ | 'expired'
1434
+ | 'empty'
1435
+ | 'insufficient_funds'
1436
+ | 'unsupported_currency';
1429
1437
  export type MerchantOfRecord = 'flow' | 'organization';
1430
1438
  export type Method = 'post';
1431
1439
  export type OptinResponseType = 'not_shown' | 'opted_in' | 'opted_out';
@@ -1564,7 +1572,10 @@ namespace io.flow.v0.enums {
1564
1572
  | 'territory'
1565
1573
  | 'other';
1566
1574
  export type QueryType = 'exclusion' | 'inclusion';
1567
- export type QuoteErrorCode = 'generic_error' | 'items_not_available';
1575
+ export type QuoteErrorCode =
1576
+ | 'generic_error'
1577
+ | 'items_not_available'
1578
+ | 'shipping_unavailable';
1568
1579
  export type RateType = 'flow' | 'organization';
1569
1580
  export type RefundDeclineCode = 'expired' | 'insufficient_funds' | 'unknown';
1570
1581
  export type RefundStatus = 'pending' | 'succeeded' | 'failed' | 'canceled';
@@ -2309,24 +2320,22 @@ namespace io.flow.v0.models {
2309
2320
  readonly summary: io.flow.v0.models.CardPaymentSourceSummary;
2310
2321
  }
2311
2322
 
2323
+ export interface CardPaymentSourceAuthorizationForm {
2324
+ readonly key?: string;
2325
+ readonly card_payment_source_id: string;
2326
+ readonly order_number: string;
2327
+ readonly amount: number;
2328
+ readonly currency: string;
2329
+ }
2330
+
2312
2331
  export interface CardPaymentSourceForm {
2313
2332
  readonly customer_number: string;
2314
- readonly token?: string;
2315
- readonly last4?: string;
2316
- readonly expiration_month?: number;
2317
- readonly expiration_year?: number;
2318
- readonly type?: io.flow.v0.enums.CardType;
2319
- readonly billing_address?: io.flow.v0.models.BillingAddress;
2333
+ readonly card_id: string;
2320
2334
  }
2321
2335
 
2322
2336
  export interface CardPaymentSourceSummary {
2323
2337
  readonly customer_number: string;
2324
- readonly token?: string;
2325
- readonly last4?: string;
2326
- readonly expiration_month?: number;
2327
- readonly expiration_year?: number;
2328
- readonly type?: io.flow.v0.enums.CardType;
2329
- readonly billing_address?: io.flow.v0.models.BillingAddress;
2338
+ readonly card: io.flow.v0.models.CardSummary;
2330
2339
  }
2331
2340
 
2332
2341
  export interface CardReference {
@@ -2640,6 +2649,7 @@ namespace io.flow.v0.models {
2640
2649
  readonly payment_sources?: io.flow.v0.unions.PaymentSourceForm[];
2641
2650
  readonly session_id: string;
2642
2651
  readonly urls?: io.flow.v0.models.CheckoutUrlsForm;
2652
+ readonly identifiers?: io.flow.v0.models.OrderSubmissionIdentifierForm[];
2643
2653
  }
2644
2654
 
2645
2655
  export interface CheckoutTokenReferenceForm {
@@ -2650,10 +2660,12 @@ namespace io.flow.v0.models {
2650
2660
 
2651
2661
  export interface CheckoutUrls {
2652
2662
  readonly continue_shopping?: string;
2663
+ readonly confirmation?: string;
2653
2664
  }
2654
2665
 
2655
2666
  export interface CheckoutUrlsForm {
2656
2667
  readonly continue_shopping?: string;
2668
+ readonly confirmation?: string;
2657
2669
  }
2658
2670
 
2659
2671
  export interface Cleartext {
@@ -3092,9 +3104,6 @@ namespace io.flow.v0.models {
3092
3104
  readonly weight?: io.flow.v0.models.OptionWeightEstimates;
3093
3105
  readonly send_to?: io.flow.v0.models.ShippingAddress;
3094
3106
  readonly surcharge?: io.flow.v0.models.PriceWithBaseAndDetails;
3095
- readonly merchant_of_record_override?: io.flow.v0.enums.OrderMerchantOfRecord;
3096
- readonly prices?: io.flow.v0.models.OrderPriceDetail[];
3097
- readonly total?: io.flow.v0.models.LocalizedTotal;
3098
3107
  }
3099
3108
 
3100
3109
  export interface DeliveryOptionCostComponent {
@@ -3114,13 +3123,6 @@ namespace io.flow.v0.models {
3114
3123
  readonly components: io.flow.v0.models.DeliveryOptionCostComponent[];
3115
3124
  }
3116
3125
 
3117
- export interface DeliveryOptionDeleted {
3118
- readonly event_id: string;
3119
- readonly timestamp: string;
3120
- readonly organization: string;
3121
- readonly id: string;
3122
- }
3123
-
3124
3126
  export interface DeliveryOptionForm {
3125
3127
  readonly delivery: string;
3126
3128
  readonly items: io.flow.v0.models.QuoteLineItemForm[];
@@ -3141,37 +3143,6 @@ namespace io.flow.v0.models {
3141
3143
  readonly window: io.flow.v0.models.DatetimeRange;
3142
3144
  }
3143
3145
 
3144
- export interface DeliveryOptionUpserted {
3145
- readonly event_id: string;
3146
- readonly timestamp: string;
3147
- readonly organization: string;
3148
- readonly id: string;
3149
- readonly cost: {
3150
- [key: string]: string;
3151
- };
3152
- readonly price: {
3153
- [key: string]: string;
3154
- };
3155
- readonly delivered_duty: string;
3156
- readonly service_id: string;
3157
- readonly tier: {
3158
- [key: string]: string;
3159
- };
3160
- readonly window: {
3161
- [key: string]: string;
3162
- };
3163
- readonly rule_outcome: {
3164
- [key: string]: string;
3165
- };
3166
- readonly weight?: {
3167
- [key: string]: string;
3168
- };
3169
- readonly delivery_window_components: {
3170
- [key: string]: string;
3171
- };
3172
- readonly surcharge?: io.flow.v0.models.PriceWithBaseAndDetails;
3173
- }
3174
-
3175
3146
  export interface DeliveryOptionVersion {
3176
3147
  readonly id: string;
3177
3148
  readonly timestamp: string;
@@ -3257,7 +3228,10 @@ namespace io.flow.v0.models {
3257
3228
 
3258
3229
  export interface DigitalDelivery {
3259
3230
  readonly id: string;
3231
+ readonly key?: string;
3260
3232
  readonly items: io.flow.v0.models.DeliveryItem[];
3233
+ readonly prices?: io.flow.v0.models.OrderPriceDetail[];
3234
+ readonly total?: io.flow.v0.models.LocalizedTotal;
3261
3235
  }
3262
3236
 
3263
3237
  export interface Dimension {
@@ -4760,6 +4734,7 @@ namespace io.flow.v0.models {
4760
4734
  export interface LocalItem {
4761
4735
  readonly id: string;
4762
4736
  readonly experience: io.flow.v0.models.ExperienceSummary;
4737
+ readonly center?: io.flow.v0.models.CenterSummary;
4763
4738
  readonly item: io.flow.v0.models.CatalogItemReference;
4764
4739
  readonly pricing: io.flow.v0.models.LocalItemPricing;
4765
4740
  readonly status: io.flow.v0.enums.SubcatalogItemStatus;
@@ -4774,6 +4749,8 @@ namespace io.flow.v0.models {
4774
4749
 
4775
4750
  export interface LocalItemPricing {
4776
4751
  readonly price: io.flow.v0.models.LocalizedItemPrice;
4752
+ readonly vat?: io.flow.v0.models.LocalizedItemVat;
4753
+ readonly duty?: io.flow.v0.models.LocalizedItemDuty;
4777
4754
  readonly attributes: {
4778
4755
  [key: string]: io.flow.v0.models.PriceWithBase;
4779
4756
  };
@@ -4977,6 +4954,40 @@ namespace io.flow.v0.models {
4977
4954
  readonly membership: io.flow.v0.models.Membership;
4978
4955
  }
4979
4956
 
4957
+ export interface MerchantGiftCardBalance {
4958
+ readonly amount: number;
4959
+ readonly currency: string;
4960
+ }
4961
+
4962
+ export interface MerchantGiftCardBalanceForm {
4963
+ readonly number: string;
4964
+ }
4965
+
4966
+ export interface MerchantGiftCardError {
4967
+ readonly code: io.flow.v0.enums.MerchantGiftCardErrorCode;
4968
+ readonly messages?: string[];
4969
+ }
4970
+
4971
+ export interface MerchantGiftCardRedemption {
4972
+ readonly id: string;
4973
+ }
4974
+
4975
+ export interface MerchantGiftCardRedemptionForm {
4976
+ readonly number: string;
4977
+ readonly amount: number;
4978
+ readonly currency: string;
4979
+ }
4980
+
4981
+ export interface MerchantGiftCardReversal {
4982
+ readonly id: string;
4983
+ }
4984
+
4985
+ export interface MerchantGiftCardReversalForm {
4986
+ readonly number: string;
4987
+ readonly amount: number;
4988
+ readonly currency: string;
4989
+ }
4990
+
4980
4991
  export interface MerchantOfRecordAuthorizationForm {
4981
4992
  readonly token: string;
4982
4993
  readonly order_number: string;
@@ -5501,6 +5512,15 @@ namespace io.flow.v0.models {
5501
5512
  readonly applied: io.flow.v0.models.OrderRuleReference[];
5502
5513
  }
5503
5514
 
5515
+ export interface OrderSubmissionForm {
5516
+ readonly identifiers?: io.flow.v0.models.OrderSubmissionIdentifierForm[];
5517
+ }
5518
+
5519
+ export interface OrderSubmissionIdentifierForm {
5520
+ readonly identifier: string;
5521
+ readonly primary?: boolean;
5522
+ }
5523
+
5504
5524
  export interface OrderUpserted {
5505
5525
  readonly event_id: string;
5506
5526
  readonly timestamp: string;
@@ -5990,10 +6010,13 @@ namespace io.flow.v0.models {
5990
6010
 
5991
6011
  export interface PhysicalDelivery {
5992
6012
  readonly id: string;
6013
+ readonly key?: string;
5993
6014
  readonly center?: io.flow.v0.models.CenterSummary;
5994
6015
  readonly items: io.flow.v0.models.DeliveryItem[];
5995
6016
  readonly options: io.flow.v0.models.DeliveryOption[];
5996
6017
  readonly special_services?: io.flow.v0.enums.PhysicalDeliverySpecialSerivce[];
6018
+ readonly prices?: io.flow.v0.models.OrderPriceDetail[];
6019
+ readonly total?: io.flow.v0.models.LocalizedTotal;
5997
6020
  }
5998
6021
 
5999
6022
  export interface PostPaymentRedirectUrls {
@@ -7556,10 +7579,14 @@ namespace io.flow.v0.models {
7556
7579
  }
7557
7580
 
7558
7581
  export interface ShopifyOrderDeliveryMetafield {
7582
+ readonly key?: string;
7559
7583
  readonly items: io.flow.v0.models.ShopifyOrderDeliveryMetafieldItem[];
7560
7584
  readonly service: io.flow.v0.models.ServiceSummary;
7561
7585
  readonly window: io.flow.v0.models.DeliveryWindow;
7562
7586
  readonly cost?: io.flow.v0.models.MoneyWithOptionalBase;
7587
+ readonly prices?: io.flow.v0.models.ShopifyPrice[];
7588
+ readonly total?: io.flow.v0.models.ShopifyPrice;
7589
+ readonly merchant_of_record_entity?: io.flow.v0.models.MerchantOfRecordEntity;
7563
7590
  }
7564
7591
 
7565
7592
  export interface ShopifyOrderDeliveryMetafieldItem {
@@ -8420,7 +8447,10 @@ namespace io.flow.v0.unions {
8420
8447
  } & io.flow.v0.models.InlineAuthorizationForm
8421
8448
  | {
8422
8449
  discriminator: 'ach_authorization_form';
8423
- } & io.flow.v0.models.AchAuthorizationForm;
8450
+ } & io.flow.v0.models.AchAuthorizationForm
8451
+ | {
8452
+ discriminator: 'card_payment_source_authorization_form';
8453
+ } & io.flow.v0.models.CardPaymentSourceAuthorizationForm;
8424
8454
 
8425
8455
  export type AuthorizationPayloadParameters =
8426
8456
  | {
@@ -8711,12 +8741,6 @@ namespace io.flow.v0.unions {
8711
8741
  | {
8712
8742
  discriminator: 'center_deleted';
8713
8743
  } & io.flow.v0.models.CenterDeleted
8714
- | {
8715
- discriminator: 'delivery_option_upserted';
8716
- } & io.flow.v0.models.DeliveryOptionUpserted
8717
- | {
8718
- discriminator: 'delivery_option_deleted';
8719
- } & io.flow.v0.models.DeliveryOptionDeleted
8720
8744
  | {
8721
8745
  discriminator: 'shipping_configuration_upserted';
8722
8746
  } & io.flow.v0.models.ShippingConfigurationUpserted
@@ -9541,6 +9565,7 @@ export type CardErrorCode = io.flow.v0.enums.CardErrorCode;
9541
9565
  export type CardForm = io.flow.v0.models.CardForm;
9542
9566
  export type CardNonceForm = io.flow.v0.models.CardNonceForm;
9543
9567
  export type CardPaymentSource = io.flow.v0.models.CardPaymentSource;
9568
+ export type CardPaymentSourceAuthorizationForm = io.flow.v0.models.CardPaymentSourceAuthorizationForm;
9544
9569
  export type CardPaymentSourceForm = io.flow.v0.models.CardPaymentSourceForm;
9545
9570
  export type CardPaymentSourceSummary = io.flow.v0.models.CardPaymentSourceSummary;
9546
9571
  export type CardReference = io.flow.v0.models.CardReference;
@@ -9675,11 +9700,9 @@ export type DeliveryOptionCostComponent = io.flow.v0.models.DeliveryOptionCostCo
9675
9700
  export type DeliveryOptionCostDetail = io.flow.v0.models.DeliveryOptionCostDetail;
9676
9701
  export type DeliveryOptionCostDetailComponentKey = io.flow.v0.enums.DeliveryOptionCostDetailComponentKey;
9677
9702
  export type DeliveryOptionCostDetailSource = io.flow.v0.enums.DeliveryOptionCostDetailSource;
9678
- export type DeliveryOptionDeleted = io.flow.v0.models.DeliveryOptionDeleted;
9679
9703
  export type DeliveryOptionForm = io.flow.v0.models.DeliveryOptionForm;
9680
9704
  export type DeliveryOptionReference = io.flow.v0.models.DeliveryOptionReference;
9681
9705
  export type DeliveryOptionSummary = io.flow.v0.models.DeliveryOptionSummary;
9682
- export type DeliveryOptionUpserted = io.flow.v0.models.DeliveryOptionUpserted;
9683
9706
  export type DeliveryOptionVersion = io.flow.v0.models.DeliveryOptionVersion;
9684
9707
  export type DeliverySummary = io.flow.v0.models.DeliverySummary;
9685
9708
  export type DeliveryVersion = io.flow.v0.models.DeliveryVersion;
@@ -9997,6 +10020,14 @@ export type MembershipForm = io.flow.v0.models.MembershipForm;
9997
10020
  export type MembershipPutForm = io.flow.v0.models.MembershipPutForm;
9998
10021
  export type MembershipUpsertedV2 = io.flow.v0.models.MembershipUpsertedV2;
9999
10022
  export type MembershipVersion = io.flow.v0.models.MembershipVersion;
10023
+ export type MerchantGiftCardBalance = io.flow.v0.models.MerchantGiftCardBalance;
10024
+ export type MerchantGiftCardBalanceForm = io.flow.v0.models.MerchantGiftCardBalanceForm;
10025
+ export type MerchantGiftCardError = io.flow.v0.models.MerchantGiftCardError;
10026
+ export type MerchantGiftCardErrorCode = io.flow.v0.enums.MerchantGiftCardErrorCode;
10027
+ export type MerchantGiftCardRedemption = io.flow.v0.models.MerchantGiftCardRedemption;
10028
+ export type MerchantGiftCardRedemptionForm = io.flow.v0.models.MerchantGiftCardRedemptionForm;
10029
+ export type MerchantGiftCardReversal = io.flow.v0.models.MerchantGiftCardReversal;
10030
+ export type MerchantGiftCardReversalForm = io.flow.v0.models.MerchantGiftCardReversalForm;
10000
10031
  export type MerchantOfRecord = io.flow.v0.enums.MerchantOfRecord;
10001
10032
  export type MerchantOfRecordAuthorizationForm = io.flow.v0.models.MerchantOfRecordAuthorizationForm;
10002
10033
  export type MerchantOfRecordEntity = io.flow.v0.models.MerchantOfRecordEntity;
@@ -10077,6 +10108,8 @@ export type OrderReference = io.flow.v0.models.OrderReference;
10077
10108
  export type OrderRuleReference = io.flow.v0.models.OrderRuleReference;
10078
10109
  export type OrderRulesSummary = io.flow.v0.models.OrderRulesSummary;
10079
10110
  export type OrderStatus = io.flow.v0.enums.OrderStatus;
10111
+ export type OrderSubmissionForm = io.flow.v0.models.OrderSubmissionForm;
10112
+ export type OrderSubmissionIdentifierForm = io.flow.v0.models.OrderSubmissionIdentifierForm;
10080
10113
  export type OrderUpserted = io.flow.v0.models.OrderUpserted;
10081
10114
  export type OrderUpsertedV2 = io.flow.v0.models.OrderUpsertedV2;
10082
10115
  export type OrderVersion = io.flow.v0.models.OrderVersion;