@flowio/api-types 0.0.204 → 0.0.206
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/generated/io.flow.billing.csv.v0.billing-csv.d.ts +42 -4
- package/generated/io.flow.billing.internal.v0.billing-internal.d.ts +11 -3
- package/generated/io.flow.billing.reporting.csv.v0.billing-reporting-csv.d.ts +19 -6
- package/generated/io.flow.billing.v0.billing.d.ts +28 -9
- package/generated/io.flow.channel.internal.v0.channel-internal.d.ts +64 -0
- package/generated/io.flow.external.paypal.v1.paypal.d.ts +38 -9
- package/generated/io.flow.internal.v0.api-internal.d.ts +239 -137
- package/generated/io.flow.label.v0.label.d.ts +4 -3
- package/generated/io.flow.payment.v0.payment.d.ts +13 -0
- package/generated/io.flow.ratecard.v0.ratecard.d.ts +14 -0
- package/generated/io.flow.shopify.markets.internal.event.v0.shopify-markets-internal-event.d.ts +104 -0
- package/generated/io.flow.shopify.markets.internal.v0.shopify-markets-internal.d.ts +189 -0
- package/generated/io.flow.shopify.markets.v0.shopify-markets.d.ts +1 -1
- package/generated/io.flow.stripe.v0.stripe.d.ts +9 -0
- package/generated/io.flow.trueup.v0.trueup.d.ts +52 -0
- package/generated/io.flow.v0.api.d.ts +114 -10
- package/index.d.ts +4 -1
- package/package.json +2 -2
- package/generated/io.flow.billing.true.up.v0.billing-true-up.d.ts +0 -164
|
@@ -129,9 +129,9 @@ declare namespace io.flow.label.v0.models {
|
|
|
129
129
|
}
|
|
130
130
|
|
|
131
131
|
interface ShippingLabelHopCostItemizedEstimate {
|
|
132
|
-
readonly 'units': io.flow.
|
|
133
|
-
readonly 'base': io.flow.
|
|
134
|
-
readonly 'surcharges': io.flow.
|
|
132
|
+
readonly 'units': io.flow.trueup.v0.models.LabelUnits;
|
|
133
|
+
readonly 'base': io.flow.trueup.v0.models.LabelBase;
|
|
134
|
+
readonly 'surcharges': io.flow.trueup.v0.models.LabelSurcharge[];
|
|
135
135
|
}
|
|
136
136
|
|
|
137
137
|
interface ShippingLabelHopSummary {
|
|
@@ -143,6 +143,7 @@ declare namespace io.flow.label.v0.models {
|
|
|
143
143
|
interface ShippingLabelLaneSummary {
|
|
144
144
|
readonly 'id'?: string;
|
|
145
145
|
readonly 'ratecard': io.flow.label.v0.models.ShippingLabelRatecardSummary;
|
|
146
|
+
readonly 'weight_break'?: number;
|
|
146
147
|
}
|
|
147
148
|
|
|
148
149
|
interface ShippingLabelPackage {
|
|
@@ -596,6 +596,7 @@ declare namespace io.flow.payment.v0.models {
|
|
|
596
596
|
readonly 'processor': string;
|
|
597
597
|
readonly 'operation_identifier'?: io.flow.payment.v0.models.PaymentProcessorIdentifier;
|
|
598
598
|
readonly 'account'?: io.flow.payment.v0.models.PaymentProcessorAccount;
|
|
599
|
+
readonly 'transaction_details'?: io.flow.payment.v0.unions.PaymentProcessorTransactionDetails;
|
|
599
600
|
}
|
|
600
601
|
|
|
601
602
|
interface PaymentProcessorAccount {
|
|
@@ -620,6 +621,17 @@ declare namespace io.flow.payment.v0.models {
|
|
|
620
621
|
readonly 'processor': string;
|
|
621
622
|
}
|
|
622
623
|
|
|
624
|
+
interface PaymentProcessorTransactionDetailsCard {
|
|
625
|
+
readonly 'discriminator': 'card';
|
|
626
|
+
readonly 'transaction_identifier'?: string;
|
|
627
|
+
readonly 'method_type'?: string;
|
|
628
|
+
readonly 'result_status'?: string;
|
|
629
|
+
readonly 'reason_code'?: string;
|
|
630
|
+
readonly 'avs_result_code'?: string;
|
|
631
|
+
readonly 'cvv_result_code'?: string;
|
|
632
|
+
readonly 'threeds_result_code'?: string;
|
|
633
|
+
}
|
|
634
|
+
|
|
623
635
|
interface PaymentReference {
|
|
624
636
|
readonly 'id': string;
|
|
625
637
|
}
|
|
@@ -956,6 +968,7 @@ declare namespace io.flow.payment.v0.unions {
|
|
|
956
968
|
type Payment = (io.flow.payment.v0.models.PaymentPaypal | io.flow.payment.v0.models.PaymentCryptopay);
|
|
957
969
|
type PaymentForm = (io.flow.payment.v0.models.MerchantOfRecordPaymentForm);
|
|
958
970
|
type PaymentOrderReference = (io.flow.payment.v0.models.AuthorizationOrderReference | io.flow.payment.v0.models.PaymentPaymentRequestReference);
|
|
971
|
+
type PaymentProcessorTransactionDetails = (io.flow.payment.v0.models.PaymentProcessorTransactionDetailsCard);
|
|
959
972
|
type PaymentSource = (io.flow.payment.v0.models.CardPaymentSource);
|
|
960
973
|
type PaymentSourceForm = (io.flow.payment.v0.models.CardPaymentSourceForm);
|
|
961
974
|
type ThreedsChallengeAction = (io.flow.payment.v0.models.ThreedsTwoChallengeRequest);
|
|
@@ -77,9 +77,21 @@ declare namespace io.flow.ratecard.v0.models {
|
|
|
77
77
|
readonly 'ends_at'?: string;
|
|
78
78
|
}
|
|
79
79
|
|
|
80
|
+
interface FuelSurchargeByWeight {
|
|
81
|
+
readonly 'discriminator': 'fuel_surcharge_by_weight';
|
|
82
|
+
readonly 'amount': number;
|
|
83
|
+
readonly 'weight_unit': io.flow.common.v0.enums.UnitOfMeasurement;
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
interface FuelSurchargePercent {
|
|
87
|
+
readonly 'discriminator': 'fuel_surcharge_percent';
|
|
88
|
+
readonly 'percent': number;
|
|
89
|
+
}
|
|
90
|
+
|
|
80
91
|
interface FuelSurchargeRatecardFee {
|
|
81
92
|
readonly 'discriminator': 'fuel_surcharge_ratecard_fee';
|
|
82
93
|
readonly 'amount': io.flow.common.v0.models.Money;
|
|
94
|
+
readonly 'fuel_surcharge_rate'?: io.flow.ratecard.v0.unions.FuelSurchargeRate;
|
|
83
95
|
}
|
|
84
96
|
|
|
85
97
|
interface FuelSurchargeServiceFee {
|
|
@@ -111,6 +123,7 @@ declare namespace io.flow.ratecard.v0.models {
|
|
|
111
123
|
readonly 'currency': string;
|
|
112
124
|
readonly 'amount': number;
|
|
113
125
|
readonly 'fees': io.flow.ratecard.v0.unions.RatecardFee[];
|
|
126
|
+
readonly 'weight_break'?: number;
|
|
114
127
|
readonly 'total': number;
|
|
115
128
|
readonly 'lane': io.flow.ratecard.v0.models.LaneSummary;
|
|
116
129
|
}
|
|
@@ -396,6 +409,7 @@ declare namespace io.flow.ratecard.v0.models {
|
|
|
396
409
|
}
|
|
397
410
|
|
|
398
411
|
declare namespace io.flow.ratecard.v0.unions {
|
|
412
|
+
type FuelSurchargeRate = (io.flow.ratecard.v0.models.FuelSurchargePercent | io.flow.ratecard.v0.models.FuelSurchargeByWeight);
|
|
399
413
|
type RatecardEstimate = (io.flow.ratecard.v0.models.RatecardEstimateV1 | io.flow.ratecard.v0.models.RatecardEstimateV2 | io.flow.ratecard.v0.models.RatecardEstimateV3 | io.flow.ratecard.v0.models.RatecardEstimateV4);
|
|
400
414
|
type RatecardFee = (io.flow.ratecard.v0.models.DdpRatecardFee | io.flow.ratecard.v0.models.FuelSurchargeRatecardFee | io.flow.ratecard.v0.models.OversizePieceSurchargeRatecardFee | io.flow.ratecard.v0.models.ReturnPackageRatecardFee | io.flow.ratecard.v0.models.CrossdockRatecardFee | io.flow.ratecard.v0.models.RemoteAreaRatecardFee | io.flow.ratecard.v0.models.EmergencySituationSurchargeRatecardFee | io.flow.ratecard.v0.models.PeakSurchargeRatecardFee | io.flow.ratecard.v0.models.DutiesTaxesPaidSurchargeRatecardFee);
|
|
401
415
|
type ServiceFee = (io.flow.ratecard.v0.models.FuelSurchargeServiceFee | io.flow.ratecard.v0.models.FuelSurchargeAmountByWeightServiceFee | io.flow.ratecard.v0.models.RemoteAreaServiceFee | io.flow.ratecard.v0.models.EmergencySituationSurchargeServiceFee | io.flow.ratecard.v0.models.PeakSurchargeServiceFee | io.flow.ratecard.v0.models.PeakSurchargeByWeightServiceFee | io.flow.ratecard.v0.models.DutiesTaxesPaidSurchargeServiceFee | io.flow.ratecard.v0.models.OversizePieceSurchargeServiceFee);
|
package/generated/io.flow.shopify.markets.internal.event.v0.shopify-markets-internal-event.d.ts
ADDED
|
@@ -0,0 +1,104 @@
|
|
|
1
|
+
declare namespace io.flow.shopify.markets.internal.event.v0.models {
|
|
2
|
+
interface ChannelOrderSummaryDeleted {
|
|
3
|
+
readonly 'discriminator': 'channel_order_summary_deleted';
|
|
4
|
+
readonly 'event_id': string;
|
|
5
|
+
readonly 'timestamp': string;
|
|
6
|
+
readonly 'channel_id': string;
|
|
7
|
+
readonly 'id': string;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
interface ChannelOrderSummaryUpserted {
|
|
11
|
+
readonly 'discriminator': 'channel_order_summary_upserted';
|
|
12
|
+
readonly 'event_id': string;
|
|
13
|
+
readonly 'timestamp': string;
|
|
14
|
+
readonly 'channel_id': string;
|
|
15
|
+
readonly 'channel_order_summary': io.flow.shopify.markets.internal.v0.models.ChannelOrderSummary;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
interface ShopifyMarketsMetricsDeleted {
|
|
19
|
+
readonly 'discriminator': 'shopify_markets_metrics_deleted';
|
|
20
|
+
readonly 'event_id': string;
|
|
21
|
+
readonly 'timestamp': string;
|
|
22
|
+
readonly 'id': string;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
interface ShopifyMarketsMetricsUpserted {
|
|
26
|
+
readonly 'discriminator': 'shopify_markets_metrics_upserted';
|
|
27
|
+
readonly 'event_id': string;
|
|
28
|
+
readonly 'timestamp': string;
|
|
29
|
+
readonly 'shopify_markets_metrics': io.flow.shopify.markets.internal.v0.models.ShopifyMarketsOrdersMetrics;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
interface ShopifyMarketsOrder {
|
|
33
|
+
readonly 'id': string;
|
|
34
|
+
readonly 'model': io.flow.shopify.markets.v0.models.ShopifyOrder;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
interface ShopifyMarketsOrderDeleted {
|
|
38
|
+
readonly 'discriminator': 'shopify_markets_order_deleted';
|
|
39
|
+
readonly 'event_id': string;
|
|
40
|
+
readonly 'timestamp': string;
|
|
41
|
+
readonly 'organization': string;
|
|
42
|
+
readonly 'shopify_markets_order': io.flow.shopify.markets.internal.event.v0.models.ShopifyMarketsOrder;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
interface ShopifyMarketsOrderUpserted {
|
|
46
|
+
readonly 'discriminator': 'shopify_markets_order_upserted';
|
|
47
|
+
readonly 'event_id': string;
|
|
48
|
+
readonly 'timestamp': string;
|
|
49
|
+
readonly 'organization': string;
|
|
50
|
+
readonly 'shopify_markets_order': io.flow.shopify.markets.internal.event.v0.models.ShopifyMarketsOrder;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
interface ShopifyMarketsShopDeleted {
|
|
54
|
+
readonly 'discriminator': 'shopify_markets_shop_deleted';
|
|
55
|
+
readonly 'event_id': string;
|
|
56
|
+
readonly 'timestamp': string;
|
|
57
|
+
readonly 'organization': string;
|
|
58
|
+
readonly 'id': string;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
interface ShopifyMarketsShopStatisticsDeleted {
|
|
62
|
+
readonly 'discriminator': 'shopify_markets_shop_statistics_deleted';
|
|
63
|
+
readonly 'event_id': string;
|
|
64
|
+
readonly 'timestamp': string;
|
|
65
|
+
readonly 'organization': string;
|
|
66
|
+
readonly 'id': string;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
interface ShopifyMarketsShopStatisticsUpserted {
|
|
70
|
+
readonly 'discriminator': 'shopify_markets_shop_statistics_upserted';
|
|
71
|
+
readonly 'event_id': string;
|
|
72
|
+
readonly 'timestamp': string;
|
|
73
|
+
readonly 'organization': string;
|
|
74
|
+
readonly 'shopify_markets_shop_statistics': io.flow.shopify.markets.internal.v0.models.ShopifyShopStatistics;
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
interface ShopifyMarketsShopUpserted {
|
|
78
|
+
readonly 'discriminator': 'shopify_markets_shop_upserted';
|
|
79
|
+
readonly 'event_id': string;
|
|
80
|
+
readonly 'timestamp': string;
|
|
81
|
+
readonly 'organization': string;
|
|
82
|
+
readonly 'shopify_markets_shop': io.flow.shopify.markets.internal.v0.models.ShopifyMarketsShop;
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
interface ShopifyMarketsWebhookRegistrationDeleted {
|
|
86
|
+
readonly 'discriminator': 'shopify_markets_webhook_registration_deleted';
|
|
87
|
+
readonly 'event_id': string;
|
|
88
|
+
readonly 'timestamp': string;
|
|
89
|
+
readonly 'organization': string;
|
|
90
|
+
readonly 'id': string;
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
interface ShopifyMarketsWebhookRegistrationUpserted {
|
|
94
|
+
readonly 'discriminator': 'shopify_markets_webhook_registration_upserted';
|
|
95
|
+
readonly 'event_id': string;
|
|
96
|
+
readonly 'timestamp': string;
|
|
97
|
+
readonly 'organization': string;
|
|
98
|
+
readonly 'registration': io.flow.shopify.markets.internal.v0.models.ShopifyMarketsWebhookRegistration;
|
|
99
|
+
}
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
declare namespace io.flow.shopify.markets.internal.event.v0.unions {
|
|
103
|
+
type ShopifyMarketsInternalEvent = (io.flow.shopify.markets.internal.event.v0.models.ShopifyMarketsOrderUpserted | io.flow.shopify.markets.internal.event.v0.models.ShopifyMarketsOrderDeleted | io.flow.shopify.markets.internal.event.v0.models.ShopifyMarketsShopUpserted | io.flow.shopify.markets.internal.event.v0.models.ShopifyMarketsShopDeleted | io.flow.shopify.markets.internal.event.v0.models.ShopifyMarketsWebhookRegistrationUpserted | io.flow.shopify.markets.internal.event.v0.models.ShopifyMarketsWebhookRegistrationDeleted | io.flow.shopify.markets.internal.event.v0.models.ShopifyMarketsShopStatisticsUpserted | io.flow.shopify.markets.internal.event.v0.models.ShopifyMarketsShopStatisticsDeleted | io.flow.shopify.markets.internal.event.v0.models.ShopifyMarketsMetricsUpserted | io.flow.shopify.markets.internal.event.v0.models.ShopifyMarketsMetricsDeleted | io.flow.shopify.markets.internal.event.v0.models.ChannelOrderSummaryUpserted | io.flow.shopify.markets.internal.event.v0.models.ChannelOrderSummaryDeleted);
|
|
104
|
+
}
|
|
@@ -0,0 +1,189 @@
|
|
|
1
|
+
declare namespace io.flow.shopify.markets.internal.v0.enums {
|
|
2
|
+
type AnyDangerousGoods = 'yes' | 'no' | 'i_dont_know';
|
|
3
|
+
type ApiCallReferenceId = 'duty_rates_data_event' | 'integration_test' | 'unit_test';
|
|
4
|
+
type ChannelOrderFulfillmentStatusCode = 'unfulfilled' | 'fulfilled' | 'partial' | 'cancelled';
|
|
5
|
+
type ProductStatus = 'active' | 'archived' | 'draft';
|
|
6
|
+
type ShopifyMarketsDangerousGoods = 'aerosols' | 'air_bag_inflators_or_seat_belt_pretensioners' | 'alcoholic_beverages_containing_more_than_24_percent_alcohol_by_volume' | 'batteries' | 'carbon_dioxide_or_dry_ice' | 'corrosives' | 'cannabidiol_products' | 'cologne_or_perfume' | 'currency_or_gift_cards_or_monetary_instruments' | 'exotic_leather_goods' | 'environmental_waste' | 'explosives_or_ammunition' | 'flammable_liquids' | 'gases' | 'hazardous_or_combustible_materials' | 'infectious_or_biological_substances' | 'knives' | 'matches_or_lighter_or_lighter_refills' | 'nail_polish' | 'oxidizing_materials_or_organic_peroxides' | 'pornography' | 'prohibited_carriage' | 'pesticides_or_toxic_herbicides_or_insecticides_or_poisonous_toxic_substances';
|
|
7
|
+
type ShopifyMarketsHtsNumberAvailable = 'yes' | 'no' | 'i_dont_know';
|
|
8
|
+
type ShopifyMarketsTradeSector = 'apparel_and_accessories' | 'beauty_and_cosmetics' | 'electronics' | 'food_or_perishables' | 'jewellery_and_watches' | 'paper_and_art' | 'sports_and_fitness' | 'toys_hobbies_gifts' | 'other';
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
declare namespace io.flow.shopify.markets.internal.v0.models {
|
|
12
|
+
interface CatalogPublicationSyncValidationError {
|
|
13
|
+
readonly 'message': string;
|
|
14
|
+
readonly 'reason': string;
|
|
15
|
+
readonly 'next_action_from': io.flow.channel.internal.v0.enums.ChannelOrderAcceptanceNextActionFrom;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
interface ChannelOrderSummary {
|
|
19
|
+
readonly 'id': string;
|
|
20
|
+
readonly 'organization': io.flow.common.v0.models.OrganizationReference;
|
|
21
|
+
readonly 'external_order_reference': string;
|
|
22
|
+
readonly 'order_number': string;
|
|
23
|
+
readonly 'fulfullment_details': io.flow.shopify.markets.internal.v0.models.ChannelOrderSummaryFulfillmentDetails;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
interface ChannelOrderSummaryFulfillmentDetails {
|
|
27
|
+
readonly 'fulfillment_status': io.flow.shopify.markets.internal.v0.enums.ChannelOrderFulfillmentStatusCode;
|
|
28
|
+
readonly 'timestamp': string;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
interface FlowShopValidationError {
|
|
32
|
+
readonly 'message': string;
|
|
33
|
+
readonly 'reason': string;
|
|
34
|
+
readonly 'next_action_from': io.flow.channel.internal.v0.enums.ChannelOrderAcceptanceNextActionFrom;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
interface GenericValidationError {
|
|
38
|
+
readonly 'message': string;
|
|
39
|
+
readonly 'reason': string;
|
|
40
|
+
readonly 'next_action_from': io.flow.channel.internal.v0.enums.ChannelOrderAcceptanceNextActionFrom;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
interface MarketsOrder {
|
|
44
|
+
readonly 'shopify_order': io.flow.shopify.markets.v0.models.ShopifyOrder;
|
|
45
|
+
readonly 'flow_authorization'?: io.flow.payment.v0.unions.Authorization;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
interface OrderValidationError {
|
|
49
|
+
readonly 'message': string;
|
|
50
|
+
readonly 'reason': io.flow.channel.internal.v0.enums.ChannelOrderAcceptanceRejectionReason;
|
|
51
|
+
readonly 'action'?: io.flow.channel.internal.v0.enums.ChannelOrderAcceptanceErrorAction;
|
|
52
|
+
readonly 'next_action_from': io.flow.channel.internal.v0.enums.ChannelOrderAcceptanceNextActionFrom;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
interface ProductRestrictionResultValidationError {
|
|
56
|
+
readonly 'message': string;
|
|
57
|
+
readonly 'reason': string;
|
|
58
|
+
readonly 'next_action_from': io.flow.channel.internal.v0.enums.ChannelOrderAcceptanceNextActionFrom;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
interface ShippingLane {
|
|
62
|
+
readonly 'origin': string;
|
|
63
|
+
readonly 'destination': string;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
interface ShopifyMarketsDiscrepancy {
|
|
67
|
+
readonly 'organization_id': string;
|
|
68
|
+
readonly 'count': number;
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
interface ShopifyMarketsDiscrepancyData {
|
|
72
|
+
readonly 'total_count': number;
|
|
73
|
+
readonly 'discrepancies': io.flow.shopify.markets.internal.v0.models.ShopifyMarketsDiscrepancy[];
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
interface ShopifyMarketsIncorporationCountry {
|
|
77
|
+
readonly 'country': string;
|
|
78
|
+
readonly 'state'?: string;
|
|
79
|
+
readonly 'province'?: string;
|
|
80
|
+
readonly 'jurisdiction'?: string;
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
interface ShopifyMarketsInternalOrderMetrics {
|
|
84
|
+
readonly 'total_order_count': number;
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
interface ShopifyMarketsOrdersMetrics {
|
|
88
|
+
readonly 'id': string;
|
|
89
|
+
readonly 'range': io.flow.common.v0.models.DatetimeRange;
|
|
90
|
+
readonly 'shopify': io.flow.shopify.markets.internal.v0.models.ShopifyMarketsShopifyOrderMetrics;
|
|
91
|
+
readonly 'internal': io.flow.shopify.markets.internal.v0.models.ShopifyMarketsInternalOrderMetrics;
|
|
92
|
+
readonly 'discrepancy_data': io.flow.shopify.markets.internal.v0.models.ShopifyMarketsDiscrepancyData;
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
interface ShopifyMarketsQueuedRecord {
|
|
96
|
+
readonly 'id': string;
|
|
97
|
+
readonly 'type': string;
|
|
98
|
+
readonly 'type_id': string;
|
|
99
|
+
readonly 'organization_id': string;
|
|
100
|
+
readonly 'environment'?: string;
|
|
101
|
+
readonly 'num_attempts': number;
|
|
102
|
+
readonly 'next_attempt_at': string;
|
|
103
|
+
readonly 'errors'?: string[];
|
|
104
|
+
readonly 'stacktrace'?: string;
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
interface ShopifyMarketsShop {
|
|
108
|
+
readonly 'id': string;
|
|
109
|
+
readonly 'shopify_shop_id'?: string;
|
|
110
|
+
readonly 'channel': io.flow.common.v0.models.ChannelReference;
|
|
111
|
+
readonly 'domain': string;
|
|
112
|
+
readonly 'myshopify_domain': string;
|
|
113
|
+
readonly 'organization_id': string;
|
|
114
|
+
readonly 'shop': string;
|
|
115
|
+
readonly 'created_at': string;
|
|
116
|
+
readonly 'shared_secret_masked': string;
|
|
117
|
+
readonly 'api_key_masked'?: string;
|
|
118
|
+
readonly 'api_password_masked'?: string;
|
|
119
|
+
readonly 'access_token_masked'?: string;
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
interface ShopifyMarketsShopForm {
|
|
123
|
+
readonly 'shop': string;
|
|
124
|
+
readonly 'domain': string;
|
|
125
|
+
readonly 'myshopify_domain': string;
|
|
126
|
+
readonly 'shared_secret': string;
|
|
127
|
+
readonly 'api_key'?: string;
|
|
128
|
+
readonly 'api_password'?: string;
|
|
129
|
+
readonly 'access_token'?: string;
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
interface ShopifyMarketsShopSummary {
|
|
133
|
+
readonly 'organization': io.flow.common.v0.models.OrganizationSummary;
|
|
134
|
+
readonly 'channel': io.flow.common.v0.models.ChannelReference;
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
interface ShopifyMarketsShopifyOrderMetrics {
|
|
138
|
+
readonly 'total_order_count': number;
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
interface ShopifyMarketsSubsidiaryCompany {
|
|
142
|
+
readonly 'legal_name'?: string;
|
|
143
|
+
readonly 'incorporation_country'?: io.flow.shopify.markets.internal.v0.models.ShopifyMarketsIncorporationCountry;
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
interface ShopifyMarketsSync {
|
|
147
|
+
readonly 'force_resync'?: boolean;
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
interface ShopifyMarketsWebhookRegistration {
|
|
151
|
+
readonly 'id': string;
|
|
152
|
+
readonly 'response': io.flow.shopify.markets.v0.models.ShopifyWebhookResponse;
|
|
153
|
+
}
|
|
154
|
+
|
|
155
|
+
interface ShopifyOrderCancelForm {
|
|
156
|
+
readonly 'note'?: string;
|
|
157
|
+
}
|
|
158
|
+
|
|
159
|
+
interface ShopifyOrderCancelResponse {
|
|
160
|
+
readonly 'shopify_order_cancellation_id': string;
|
|
161
|
+
readonly 'shopify_order_id': number;
|
|
162
|
+
readonly 'message': string;
|
|
163
|
+
}
|
|
164
|
+
|
|
165
|
+
interface ShopifyOrderDestinationForm {
|
|
166
|
+
readonly 'destination': io.flow.common.v0.models.Address;
|
|
167
|
+
}
|
|
168
|
+
|
|
169
|
+
interface ShopifyShopStatistics {
|
|
170
|
+
readonly 'id': string;
|
|
171
|
+
readonly 'initial_catalog_synced_at'?: string;
|
|
172
|
+
readonly 'catalog_sync_duration'?: number;
|
|
173
|
+
readonly 'catalog_products_count'?: number;
|
|
174
|
+
}
|
|
175
|
+
|
|
176
|
+
interface ThirdPartyLogisticsPartner {
|
|
177
|
+
readonly 'warehouse_address': io.flow.common.v0.models.BillingAddress;
|
|
178
|
+
readonly 'warehouse_url'?: string;
|
|
179
|
+
}
|
|
180
|
+
|
|
181
|
+
interface ThirdPartyLogisticsPickUpTimeWindow {
|
|
182
|
+
readonly 'from': string;
|
|
183
|
+
readonly 'to': string;
|
|
184
|
+
}
|
|
185
|
+
|
|
186
|
+
interface Webhook {
|
|
187
|
+
readonly 'placeholder'?: any/*json*/;
|
|
188
|
+
}
|
|
189
|
+
}
|
|
@@ -21,7 +21,7 @@ declare namespace io.flow.shopify.markets.v0.enums {
|
|
|
21
21
|
type ShopifyOrderInventoryBehaviour = 'bypass' | 'decrement_ignoring_policy' | 'decrement_obeying_policy';
|
|
22
22
|
type ShopifyOrderKindType = 'authorization' | 'capture' | 'sale' | 'void' | 'refund';
|
|
23
23
|
type ShopifyOrderPaymentGatewayNames = 'flow_commerce' | 'gift_card' | 'manual' | 'shopify_payments';
|
|
24
|
-
type ShopifyOrderProcessingMethodType = 'checkout' | 'direct' | 'manual' | 'offsite' | 'express';
|
|
24
|
+
type ShopifyOrderProcessingMethodType = 'checkout' | 'direct' | 'manual' | 'offsite' | 'express' | 'deferred_payment';
|
|
25
25
|
type ShopifyOrderRestockType = 'no_restock' | 'cancel' | 'return';
|
|
26
26
|
type ShopifyOrderStatusType = 'open' | 'closed' | 'cancelled' | 'any';
|
|
27
27
|
type ShopifyOrderTransactionErrorCode = 'incorrect_number' | 'invalid_number' | 'invalid_expiry_date' | 'invalid_cvc' | 'expired_card' | 'incorrect_cvc' | 'incorrect_zip' | 'incorrect_address' | 'card_declined' | 'processing_error' | 'call_issuer' | 'pick_up_card';
|
|
@@ -401,6 +401,7 @@ declare namespace io.flow.stripe.v0.models {
|
|
|
401
401
|
readonly 'status': io.flow.stripe.v0.enums.PaymentIntentStatus;
|
|
402
402
|
readonly 'transfer_data'?: io.flow.stripe.v0.models.TransferData;
|
|
403
403
|
readonly 'transfer_group'?: string;
|
|
404
|
+
readonly 'shipping'?: io.flow.stripe.v0.models.PaymentIntentShipping;
|
|
404
405
|
}
|
|
405
406
|
|
|
406
407
|
interface PaymentIntentCancellationForm {
|
|
@@ -457,6 +458,13 @@ declare namespace io.flow.stripe.v0.models {
|
|
|
457
458
|
readonly 'statement_descriptor_suffix'?: string;
|
|
458
459
|
readonly 'transfer_data'?: io.flow.stripe.v0.models.TransferData;
|
|
459
460
|
readonly 'transfer_group'?: string;
|
|
461
|
+
readonly 'shipping'?: io.flow.stripe.v0.models.PaymentIntentShipping;
|
|
462
|
+
}
|
|
463
|
+
|
|
464
|
+
interface PaymentIntentShipping {
|
|
465
|
+
readonly 'address': io.flow.stripe.v0.models.Address;
|
|
466
|
+
readonly 'name': string;
|
|
467
|
+
readonly 'phone'?: string;
|
|
460
468
|
}
|
|
461
469
|
|
|
462
470
|
interface PaymentIntentUpdateForm {
|
|
@@ -573,6 +581,7 @@ declare namespace io.flow.stripe.v0.models {
|
|
|
573
581
|
readonly 'network'?: string;
|
|
574
582
|
readonly 'request_three_d_secure'?: io.flow.stripe.v0.enums.RequestThreeDSecureType;
|
|
575
583
|
readonly 'stored_credential_transaction_type'?: io.flow.stripe.v0.enums.StoredCredentialTransactionType;
|
|
584
|
+
readonly 'mcc'?: string;
|
|
576
585
|
}
|
|
577
586
|
|
|
578
587
|
interface PaymentOutcome {
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
declare namespace io.flow.trueup.v0.enums {
|
|
2
|
+
type TrueupSurchargeType = 'fuel' | 'remote_area' | 'oversize' | 'duties_paid' | 'emergency' | 'peak' | 'address_correction';
|
|
3
|
+
}
|
|
4
|
+
|
|
5
|
+
declare namespace io.flow.trueup.v0.models {
|
|
6
|
+
interface DeadWeight {
|
|
7
|
+
readonly 'weight': number;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
interface DimensionalWeight {
|
|
11
|
+
readonly 'weight': number;
|
|
12
|
+
readonly 'length'?: number;
|
|
13
|
+
readonly 'width'?: number;
|
|
14
|
+
readonly 'height'?: number;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
interface LabelBase {
|
|
18
|
+
readonly 'amount': number;
|
|
19
|
+
readonly 'weight': number;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
interface LabelSurcharge {
|
|
23
|
+
readonly 'amount': number;
|
|
24
|
+
readonly 'type': io.flow.trueup.v0.enums.TrueupSurchargeType;
|
|
25
|
+
readonly 'detail': io.flow.trueup.v0.unions.LabelSurchargeDetail;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
interface LabelSurchargeDetailFlat {
|
|
29
|
+
readonly 'discriminator': 'flat';
|
|
30
|
+
readonly 'placeholder'?: string;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
interface LabelSurchargeDetailPerWeightUnit {
|
|
34
|
+
readonly 'discriminator': 'per_weight_unit';
|
|
35
|
+
readonly 'fee': number;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
interface LabelSurchargeDetailPercentage {
|
|
39
|
+
readonly 'discriminator': 'percentage';
|
|
40
|
+
readonly 'percentage': number;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
interface LabelUnits {
|
|
44
|
+
readonly 'currency': string;
|
|
45
|
+
readonly 'weight': io.flow.units.v0.enums.UnitOfWeight;
|
|
46
|
+
readonly 'length': io.flow.units.v0.enums.UnitOfLength;
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
declare namespace io.flow.trueup.v0.unions {
|
|
51
|
+
type LabelSurchargeDetail = (io.flow.trueup.v0.models.LabelSurchargeDetailFlat | io.flow.trueup.v0.models.LabelSurchargeDetailPercentage | io.flow.trueup.v0.models.LabelSurchargeDetailPerWeightUnit);
|
|
52
|
+
}
|