@flowio/api-types 0.0.222 → 0.0.223
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.
|
@@ -115,9 +115,6 @@ declare namespace io.flow.v0.enums {
|
|
|
115
115
|
type OrderPaymentType = 'card' | 'online' | 'credit' | 'external' | 'subsidized' | 'installment_plan' | 'cash_on_delivery';
|
|
116
116
|
type OrderPriceDetailComponentKey = 'adjustment' | 'vat_deminimis' | 'duty_deminimis' | 'duties_item_price' | 'duties_freight' | 'duties_insurance' | 'vat_item_price' | 'vat_freight' | 'vat_insurance' | 'vat_duties_item_price' | 'vat_duties_freight' | 'vat_duties_insurance' | 'item_price' | 'item_discount' | 'rounding' | 'insurance' | 'shipping' | 'shipping_discount' | 'order_discount' | 'subtotal_percent_sales_margin' | 'subtotal_vat_percent_sales_margin' | 'subtotal_duty_percent_sales_margin' | 'vat_subsidy' | 'duty_subsidy' | 'remote_area_surcharge' | 'fuel_surcharge' | 'emergency_situation_surcharge' | 'peak_surcharge' | 'duties_taxes_paid_surcharge' | 'tip';
|
|
117
117
|
type OrderPriceDetailKey = 'adjustment' | 'subtotal' | 'vat' | 'duty' | 'shipping' | 'insurance' | 'discount' | 'surcharges' | 'tip';
|
|
118
|
-
type OrderQuoteAddressType = 'shipping';
|
|
119
|
-
type OrderQuoteErrorCode = 'contact_email_invalid' | 'contact_email_required' | 'contact_phone_invalid' | 'contact_phone_required' | 'country_not_supported' | 'currency_invalid' | 'first_name_invalid' | 'first_name_required' | 'geo_required_when_no_session' | 'language_invalid' | 'last_name_invalid' | 'last_name_required' | 'line_item_number_invalid' | 'line_item_number_not_available' | 'line_not_found' | 'line_quantity_invalid' | 'line_value_threshold_exceeded' | 'name_missing_first_or_last' | 'name_required' | 'order_quote_requires_at_least_one_line' | 'session_not_found' | 'session_organization_mismatch';
|
|
120
|
-
type OrderQuoteLineErrorCode = 'line_item_number_invalid' | 'line_item_number_not_available' | 'line_quantity_invalid' | 'line_value_threshold_exceeded';
|
|
121
118
|
type OrderRefundSummaryIncludes = 'duties' | 'vat' | 'shipping';
|
|
122
119
|
type OrderRefundSummaryPartialCharged = 'per_item' | 'for_order' | 'by_value_percentage' | 'by_quantity_percentage';
|
|
123
120
|
type OrderStatus = 'open' | 'submitted';
|
|
@@ -161,6 +158,7 @@ declare namespace io.flow.v0.enums {
|
|
|
161
158
|
type RefundDeclineCode = 'expired' | 'insufficient_funds' | 'unknown';
|
|
162
159
|
type RefundStatus = 'pending' | 'succeeded' | 'failed' | 'canceled';
|
|
163
160
|
type RegionType = 'state' | 'province' | 'jurisdiction';
|
|
161
|
+
type RestrictedReviewStatus = 'in_review' | 'reviewed';
|
|
164
162
|
type ReturnItemStatus = 'returnable' | 'non-returnable';
|
|
165
163
|
type ReturnPolicyState = 'current' | 'deleting' | 'updating';
|
|
166
164
|
type ReturnStatus = 'open' | 'refunded';
|
|
@@ -5845,150 +5843,6 @@ declare namespace io.flow.v0.models {
|
|
|
5845
5843
|
readonly 'device_details'?: io.flow.v0.unions.DeviceDetails;
|
|
5846
5844
|
}
|
|
5847
5845
|
|
|
5848
|
-
interface OrderQuote {
|
|
5849
|
-
readonly 'id': string;
|
|
5850
|
-
readonly 'form': io.flow.v0.models.OrderQuotePutForm;
|
|
5851
|
-
readonly 'summary'?: io.flow.v0.models.OrderQuoteSummary;
|
|
5852
|
-
}
|
|
5853
|
-
|
|
5854
|
-
interface OrderQuoteAddress {
|
|
5855
|
-
readonly 'name'?: string;
|
|
5856
|
-
readonly 'first_name'?: string;
|
|
5857
|
-
readonly 'last_name'?: string;
|
|
5858
|
-
readonly 'country'?: string;
|
|
5859
|
-
readonly 'streets'?: string[];
|
|
5860
|
-
readonly 'city'?: string;
|
|
5861
|
-
readonly 'province'?: string;
|
|
5862
|
-
readonly 'postal'?: string;
|
|
5863
|
-
readonly 'company'?: string;
|
|
5864
|
-
}
|
|
5865
|
-
|
|
5866
|
-
interface OrderQuoteContact {
|
|
5867
|
-
readonly 'email'?: string;
|
|
5868
|
-
readonly 'phone'?: string;
|
|
5869
|
-
}
|
|
5870
|
-
|
|
5871
|
-
interface OrderQuoteError {
|
|
5872
|
-
readonly 'errors': io.flow.v0.models.OrderQuoteErrorDetails[];
|
|
5873
|
-
}
|
|
5874
|
-
|
|
5875
|
-
interface OrderQuoteErrorDetails {
|
|
5876
|
-
readonly 'code': io.flow.v0.enums.OrderQuoteErrorCode;
|
|
5877
|
-
readonly 'message': string;
|
|
5878
|
-
}
|
|
5879
|
-
|
|
5880
|
-
interface OrderQuoteGeoPutForm {
|
|
5881
|
-
readonly 'country'?: string;
|
|
5882
|
-
readonly 'ip'?: string;
|
|
5883
|
-
readonly 'currency'?: string;
|
|
5884
|
-
readonly 'language'?: string;
|
|
5885
|
-
}
|
|
5886
|
-
|
|
5887
|
-
interface OrderQuoteLine {
|
|
5888
|
-
readonly 'id': string;
|
|
5889
|
-
readonly 'item': io.flow.v0.models.OrderSummaryItem;
|
|
5890
|
-
readonly 'errors'?: io.flow.v0.models.OrderQuoteLineError[];
|
|
5891
|
-
readonly 'quantity': number;
|
|
5892
|
-
readonly 'discount'?: io.flow.v0.models.OrderQuoteLineDiscount;
|
|
5893
|
-
readonly 'tax'?: io.flow.v0.models.OrderQuoteSummaryTax;
|
|
5894
|
-
readonly 'duty'?: io.flow.v0.models.OrderQuoteSummaryDuty;
|
|
5895
|
-
readonly 'unit_price': io.flow.v0.unions.OrderQuotePrice;
|
|
5896
|
-
readonly 'total': io.flow.v0.unions.OrderQuotePrice;
|
|
5897
|
-
readonly 'price_attributes': Record<string, io.flow.v0.models.OrderQuotePriceStandard>;
|
|
5898
|
-
readonly 'attributes': Record<string, string>;
|
|
5899
|
-
}
|
|
5900
|
-
|
|
5901
|
-
interface OrderQuoteLineDiscount {
|
|
5902
|
-
readonly 'applied': io.flow.v0.models.OrderQuotePriceStandard;
|
|
5903
|
-
readonly 'label'?: string;
|
|
5904
|
-
}
|
|
5905
|
-
|
|
5906
|
-
interface OrderQuoteLineError {
|
|
5907
|
-
readonly 'code': io.flow.v0.enums.OrderQuoteLineErrorCode;
|
|
5908
|
-
readonly 'message': string;
|
|
5909
|
-
}
|
|
5910
|
-
|
|
5911
|
-
interface OrderQuotePriceEstimated {
|
|
5912
|
-
readonly 'discriminator': 'estimated';
|
|
5913
|
-
readonly 'amount': number;
|
|
5914
|
-
readonly 'currency': string;
|
|
5915
|
-
readonly 'label': string;
|
|
5916
|
-
}
|
|
5917
|
-
|
|
5918
|
-
interface OrderQuotePriceFree {
|
|
5919
|
-
readonly 'discriminator': 'free';
|
|
5920
|
-
readonly 'placeholder'?: string;
|
|
5921
|
-
}
|
|
5922
|
-
|
|
5923
|
-
interface OrderQuotePriceIncluded {
|
|
5924
|
-
readonly 'discriminator': 'included';
|
|
5925
|
-
readonly 'placeholder'?: string;
|
|
5926
|
-
}
|
|
5927
|
-
|
|
5928
|
-
interface OrderQuotePriceNotYetKnown {
|
|
5929
|
-
readonly 'discriminator': 'not_yet_known';
|
|
5930
|
-
readonly 'placeholder'?: string;
|
|
5931
|
-
}
|
|
5932
|
-
|
|
5933
|
-
interface OrderQuotePriceStandard {
|
|
5934
|
-
readonly 'discriminator': 'price';
|
|
5935
|
-
readonly 'amount': number;
|
|
5936
|
-
readonly 'currency': string;
|
|
5937
|
-
readonly 'label': string;
|
|
5938
|
-
}
|
|
5939
|
-
|
|
5940
|
-
interface OrderQuotePutForm {
|
|
5941
|
-
readonly 'line_items'?: io.flow.v0.models.LineItemForm[];
|
|
5942
|
-
readonly 'session'?: io.flow.v0.models.SessionReference;
|
|
5943
|
-
readonly 'geo'?: io.flow.v0.models.OrderQuoteGeoPutForm;
|
|
5944
|
-
}
|
|
5945
|
-
|
|
5946
|
-
interface OrderQuoteReference {
|
|
5947
|
-
readonly 'id': string;
|
|
5948
|
-
}
|
|
5949
|
-
|
|
5950
|
-
interface OrderQuoteSummary {
|
|
5951
|
-
readonly 'items': io.flow.v0.models.OrderQuoteSummaryItems;
|
|
5952
|
-
readonly 'shipping'?: io.flow.v0.models.OrderQuoteSummaryShipping;
|
|
5953
|
-
readonly 'tax'?: io.flow.v0.models.OrderQuoteSummaryTax;
|
|
5954
|
-
readonly 'duty'?: io.flow.v0.models.OrderQuoteSummaryDuty;
|
|
5955
|
-
readonly 'total': io.flow.v0.models.OrderQuoteSummaryTotal;
|
|
5956
|
-
readonly 'balance': io.flow.v0.unions.OrderQuotePrice;
|
|
5957
|
-
}
|
|
5958
|
-
|
|
5959
|
-
interface OrderQuoteSummaryDuty {
|
|
5960
|
-
readonly 'name': string;
|
|
5961
|
-
readonly 'total': io.flow.v0.unions.OrderQuotePrice;
|
|
5962
|
-
}
|
|
5963
|
-
|
|
5964
|
-
interface OrderQuoteSummaryItems {
|
|
5965
|
-
readonly 'lines': io.flow.v0.models.OrderQuoteLine[];
|
|
5966
|
-
readonly 'total': io.flow.v0.unions.OrderQuotePrice;
|
|
5967
|
-
}
|
|
5968
|
-
|
|
5969
|
-
interface OrderQuoteSummaryShipping {
|
|
5970
|
-
readonly 'total': io.flow.v0.unions.OrderQuotePrice;
|
|
5971
|
-
readonly 'freight'?: io.flow.v0.models.OrderQuoteSummaryShippingFreight;
|
|
5972
|
-
readonly 'surcharges'?: io.flow.v0.models.OrderQuoteSummaryShippingSurcharges;
|
|
5973
|
-
}
|
|
5974
|
-
|
|
5975
|
-
interface OrderQuoteSummaryShippingFreight {
|
|
5976
|
-
readonly 'total': io.flow.v0.unions.OrderQuotePrice;
|
|
5977
|
-
}
|
|
5978
|
-
|
|
5979
|
-
interface OrderQuoteSummaryShippingSurcharges {
|
|
5980
|
-
readonly 'total': io.flow.v0.unions.OrderQuotePrice;
|
|
5981
|
-
}
|
|
5982
|
-
|
|
5983
|
-
interface OrderQuoteSummaryTax {
|
|
5984
|
-
readonly 'name': string;
|
|
5985
|
-
readonly 'total': io.flow.v0.unions.OrderQuotePrice;
|
|
5986
|
-
}
|
|
5987
|
-
|
|
5988
|
-
interface OrderQuoteSummaryTotal {
|
|
5989
|
-
readonly 'total': io.flow.v0.unions.OrderQuotePrice;
|
|
5990
|
-
}
|
|
5991
|
-
|
|
5992
5846
|
interface OrderReference {
|
|
5993
5847
|
readonly 'discriminator': 'order_reference';
|
|
5994
5848
|
readonly 'id': string;
|
|
@@ -7670,6 +7524,7 @@ declare namespace io.flow.v0.models {
|
|
|
7670
7524
|
readonly 'product_id': string;
|
|
7671
7525
|
readonly 'item_numbers': string[];
|
|
7672
7526
|
readonly 'prohibited_regions': string[];
|
|
7527
|
+
readonly 'reasons_per_region'?: io.flow.v0.models.ReasonsPerRegion[];
|
|
7673
7528
|
readonly 'review_status'?: io.flow.v0.enums.ReviewStatus;
|
|
7674
7529
|
readonly 'rules'?: io.flow.v0.enums.ProductRestrictionRule[];
|
|
7675
7530
|
readonly 'updated_by'?: string;
|
|
@@ -8136,6 +7991,12 @@ declare namespace io.flow.v0.models {
|
|
|
8136
7991
|
readonly 'ready_to_fulfill': io.flow.v0.models.ReadyToFulfillDetails;
|
|
8137
7992
|
}
|
|
8138
7993
|
|
|
7994
|
+
interface ReasonsPerRegion {
|
|
7995
|
+
readonly 'region': string;
|
|
7996
|
+
readonly 'reasons': string[];
|
|
7997
|
+
readonly 'review_status': io.flow.v0.enums.RestrictedReviewStatus;
|
|
7998
|
+
}
|
|
7999
|
+
|
|
8139
8000
|
interface RedirectAuthorizationDetails {
|
|
8140
8001
|
readonly 'discriminator': 'redirect_authorization_details';
|
|
8141
8002
|
readonly 'id': string;
|
|
@@ -10610,7 +10471,6 @@ declare namespace io.flow.v0.unions {
|
|
|
10610
10471
|
type OrderNumberGenerator = (io.flow.v0.models.OrderNumberGeneratorUuid | io.flow.v0.models.OrderNumberGeneratorHexadecimal | io.flow.v0.models.OrderNumberGeneratorPrefixSuffix);
|
|
10611
10472
|
type OrderPromotion = (io.flow.v0.models.FreeShippingOrderPromotion);
|
|
10612
10473
|
type OrderPromotionForm = (io.flow.v0.models.FreeShippingOrderPromotionForm);
|
|
10613
|
-
type OrderQuotePrice = (io.flow.v0.models.OrderQuotePriceFree | io.flow.v0.models.OrderQuotePriceNotYetKnown | io.flow.v0.models.OrderQuotePriceIncluded | io.flow.v0.models.OrderQuotePriceStandard | io.flow.v0.models.OrderQuotePriceEstimated);
|
|
10614
10474
|
type OrderRefundSummaryForm = (io.flow.v0.models.OrderRefundSummaryFullForm | io.flow.v0.models.OrderRefundSummaryPartialForm);
|
|
10615
10475
|
type PartnerCenterFee = (io.flow.v0.models.CommercialInvoiceFee | io.flow.v0.models.InboundCartonFee | io.flow.v0.models.OutboundCartonFee);
|
|
10616
10476
|
type Payment = (io.flow.v0.models.PaymentPaypal | io.flow.v0.models.PaymentCryptopay);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@flowio/api-types",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.223",
|
|
4
4
|
"description": "Global TypeScript typings for Flow Commerce API",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -14,5 +14,5 @@
|
|
|
14
14
|
"scripts": {
|
|
15
15
|
"generate": "apibuilder update && node scripts/generate-index.js"
|
|
16
16
|
},
|
|
17
|
-
"gitHead": "
|
|
17
|
+
"gitHead": "92e35a5f134c649a116d30d3d3af55458f8afa4d"
|
|
18
18
|
}
|