@flowio/types 2.0.0 → 4.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/src/api.ts CHANGED
@@ -1351,6 +1351,7 @@ declare namespace io.flow.v0.enums {
1351
1351
  type FulfillmentMethodType = 'fulfillment_method';
1352
1352
  type FulfillmentMethodValue = 'digital' | 'physical';
1353
1353
  type GenericErrorCode = 'generic_error' | 'client_error' | 'server_error';
1354
+ type GoodsSupply = 'export' | 'intra_community' | 'local';
1354
1355
  type HolidayCalendar = 'us_bank_holidays' | 'jewish_holidays';
1355
1356
  type ImageTag = 'thumbnail' | 'checkout';
1356
1357
  type ImportType =
@@ -2609,6 +2610,7 @@ declare namespace io.flow.v0.models {
2609
2610
  interface CenterSummary {
2610
2611
  readonly id: string;
2611
2612
  readonly key: string;
2613
+ readonly address?: io.flow.v0.models.ShippingAddress;
2612
2614
  }
2613
2615
 
2614
2616
  interface CenterUpserted {
@@ -2715,11 +2717,13 @@ declare namespace io.flow.v0.models {
2715
2717
  interface CheckoutUrls {
2716
2718
  readonly continue_shopping?: string;
2717
2719
  readonly confirmation?: string;
2720
+ readonly invalid_checkout?: string;
2718
2721
  }
2719
2722
 
2720
2723
  interface CheckoutUrlsForm {
2721
2724
  readonly continue_shopping?: string;
2722
2725
  readonly confirmation?: string;
2726
+ readonly invalid_checkout?: string;
2723
2727
  }
2724
2728
 
2725
2729
  interface Cleartext {
@@ -3176,7 +3180,6 @@ declare namespace io.flow.v0.models {
3176
3180
  [key: string]: string;
3177
3181
  };
3178
3182
  readonly center?: string;
3179
- readonly discount?: io.flow.v0.models.MoneyWithOptionalBase;
3180
3183
  readonly line_number?: number;
3181
3184
  }
3182
3185
 
@@ -4061,6 +4064,8 @@ declare namespace io.flow.v0.models {
4061
4064
  interface HarmonizedItemForm {
4062
4065
  readonly name: string;
4063
4066
  readonly number: string;
4067
+ readonly currency: string;
4068
+ readonly price: number;
4064
4069
  readonly categories?: string[];
4065
4070
  readonly description?: string;
4066
4071
  readonly attributes?: {
@@ -4070,6 +4075,8 @@ declare namespace io.flow.v0.models {
4070
4075
 
4071
4076
  interface HarmonizedItemPutForm {
4072
4077
  readonly name: string;
4078
+ readonly currency: string;
4079
+ readonly price: number;
4073
4080
  readonly categories?: string[];
4074
4081
  readonly description?: string;
4075
4082
  readonly attributes?: {
@@ -5670,6 +5677,54 @@ declare namespace io.flow.v0.models {
5670
5677
  readonly primary?: boolean;
5671
5678
  }
5672
5679
 
5680
+ interface OrderSummary {
5681
+ readonly subtotal: io.flow.v0.models.OrderSummaryPriceDetail;
5682
+ readonly shipping: io.flow.v0.models.OrderSummaryPriceDetail;
5683
+ readonly tax?: io.flow.v0.models.OrderSummaryPriceDetail;
5684
+ readonly duty?: io.flow.v0.models.OrderSummaryPriceDetail;
5685
+ readonly insurance?: io.flow.v0.models.OrderSummaryPriceDetail;
5686
+ readonly discount?: io.flow.v0.models.OrderSummaryPriceDetail;
5687
+ readonly surcharges?: io.flow.v0.models.OrderSummaryPriceDetail;
5688
+ readonly total: io.flow.v0.models.OrderSummaryPriceDetail;
5689
+ readonly lines: io.flow.v0.models.OrderSummaryLineItem[];
5690
+ }
5691
+
5692
+ interface OrderSummaryImage {
5693
+ readonly url: string;
5694
+ }
5695
+
5696
+ interface OrderSummaryItem {
5697
+ readonly number: string;
5698
+ readonly name: string;
5699
+ readonly description?: string;
5700
+ readonly attributes: io.flow.v0.models.CheckoutItemContentAttribute[];
5701
+ readonly image?: io.flow.v0.models.OrderSummaryImage;
5702
+ readonly price: io.flow.v0.models.Price;
5703
+ readonly discount?: io.flow.v0.models.Price;
5704
+ readonly tax?: io.flow.v0.models.OrderSummaryLevy;
5705
+ readonly duty?: io.flow.v0.models.OrderSummaryLevy;
5706
+ }
5707
+
5708
+ interface OrderSummaryLevy {
5709
+ readonly rate: number;
5710
+ readonly value: io.flow.v0.models.Price;
5711
+ }
5712
+
5713
+ interface OrderSummaryLineItem {
5714
+ readonly item: io.flow.v0.models.OrderSummaryItem;
5715
+ readonly quantity: number;
5716
+ readonly discount?: io.flow.v0.models.Price;
5717
+ readonly tax?: io.flow.v0.models.OrderSummaryLevy;
5718
+ readonly duty?: io.flow.v0.models.OrderSummaryLevy;
5719
+ readonly total: io.flow.v0.models.Price;
5720
+ }
5721
+
5722
+ interface OrderSummaryPriceDetail {
5723
+ readonly price: io.flow.v0.models.Price;
5724
+ readonly name?: string;
5725
+ readonly rate?: number;
5726
+ }
5727
+
5673
5728
  interface OrderUpserted {
5674
5729
  readonly event_id: string;
5675
5730
  readonly timestamp: string;
@@ -6167,6 +6222,7 @@ declare namespace io.flow.v0.models {
6167
6222
  readonly special_services?: io.flow.v0.enums.PhysicalDeliverySpecialSerivce[];
6168
6223
  readonly prices?: io.flow.v0.models.OrderPriceDetail[];
6169
6224
  readonly total?: io.flow.v0.models.LocalizedTotal;
6225
+ readonly goods_supply?: io.flow.v0.enums.GoodsSupply;
6170
6226
  }
6171
6227
 
6172
6228
  interface PostPaymentRedirectUrls {
@@ -6500,8 +6556,6 @@ declare namespace io.flow.v0.models {
6500
6556
  [key: string]: string;
6501
6557
  };
6502
6558
  readonly center?: string;
6503
- readonly discount?: io.flow.v0.models.Money;
6504
- readonly discounts?: io.flow.v0.models.DiscountsForm;
6505
6559
  }
6506
6560
 
6507
6561
  interface QuoteSummary {
@@ -6959,6 +7013,10 @@ declare namespace io.flow.v0.models {
6959
7013
  readonly interval: number;
6960
7014
  }
6961
7015
 
7016
+ interface RepeatHourly {
7017
+ readonly interval: number;
7018
+ }
7019
+
6962
7020
  interface RepeatMonthly {
6963
7021
  readonly interval: number;
6964
7022
  readonly days: number[];
@@ -9580,6 +9638,9 @@ declare namespace io.flow.v0.unions {
9580
9638
  } & io.flow.v0.models.RemoteAreaRatecardFee;
9581
9639
 
9582
9640
  type RepeatSchedule =
9641
+ | {
9642
+ discriminator: 'repeat_hourly';
9643
+ } & io.flow.v0.models.RepeatHourly
9583
9644
  | {
9584
9645
  discriminator: 'repeat_daily';
9585
9646
  } & io.flow.v0.models.RepeatDaily
@@ -10123,6 +10184,7 @@ export type GenericError = io.flow.v0.models.GenericError;
10123
10184
  export type GenericErrorCode = io.flow.v0.enums.GenericErrorCode;
10124
10185
  export type GenericReservationError = io.flow.v0.models.GenericReservationError;
10125
10186
  export type GeoForm = io.flow.v0.models.GeoForm;
10187
+ export type GoodsSupply = io.flow.v0.enums.GoodsSupply;
10126
10188
  export type GooglePayAuthorizationPayload = io.flow.v0.models.GooglePayAuthorizationPayload;
10127
10189
  export type HarmonizationDocument = io.flow.v0.models.HarmonizationDocument;
10128
10190
  export type HarmonizationHs10ExportType = io.flow.v0.models.HarmonizationHs10ExportType;
@@ -10384,6 +10446,12 @@ export type OrderServiceChangeRequestData = io.flow.v0.models.OrderServiceChange
10384
10446
  export type OrderStatus = io.flow.v0.enums.OrderStatus;
10385
10447
  export type OrderSubmissionForm = io.flow.v0.models.OrderSubmissionForm;
10386
10448
  export type OrderSubmissionIdentifierForm = io.flow.v0.models.OrderSubmissionIdentifierForm;
10449
+ export type OrderSummary = io.flow.v0.models.OrderSummary;
10450
+ export type OrderSummaryImage = io.flow.v0.models.OrderSummaryImage;
10451
+ export type OrderSummaryItem = io.flow.v0.models.OrderSummaryItem;
10452
+ export type OrderSummaryLevy = io.flow.v0.models.OrderSummaryLevy;
10453
+ export type OrderSummaryLineItem = io.flow.v0.models.OrderSummaryLineItem;
10454
+ export type OrderSummaryPriceDetail = io.flow.v0.models.OrderSummaryPriceDetail;
10387
10455
  export type OrderUpserted = io.flow.v0.models.OrderUpserted;
10388
10456
  export type OrderUpsertedV2 = io.flow.v0.models.OrderUpsertedV2;
10389
10457
  export type OrderVersion = io.flow.v0.models.OrderVersion;
@@ -10597,6 +10665,7 @@ export type RegionSettingForm = io.flow.v0.models.RegionSettingForm;
10597
10665
  export type RemoteAreaRatecardFee = io.flow.v0.models.RemoteAreaRatecardFee;
10598
10666
  export type RemoteAreaServiceFee = io.flow.v0.models.RemoteAreaServiceFee;
10599
10667
  export type RepeatDaily = io.flow.v0.models.RepeatDaily;
10668
+ export type RepeatHourly = io.flow.v0.models.RepeatHourly;
10600
10669
  export type RepeatMonthly = io.flow.v0.models.RepeatMonthly;
10601
10670
  export type RepeatSchedule = io.flow.v0.unions.RepeatSchedule;
10602
10671
  export type RepeatWeekly = io.flow.v0.models.RepeatWeekly;
package/LICENSE DELETED
@@ -1,21 +0,0 @@
1
- MIT License
2
-
3
- Copyright (c) 2017 Flow Commerce
4
-
5
- Permission is hereby granted, free of charge, to any person obtaining a copy
6
- of this software and associated documentation files (the "Software"), to deal
7
- in the Software without restriction, including without limitation the rights
8
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
- copies of the Software, and to permit persons to whom the Software is
10
- furnished to do so, subject to the following conditions:
11
-
12
- The above copyright notice and this permission notice shall be included in all
13
- copies or substantial portions of the Software.
14
-
15
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
- SOFTWARE.