@flowio/api-prop-types 10.16.74 → 10.16.76

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/lib/api.d.ts CHANGED
@@ -1141,6 +1141,7 @@ declare namespace io.flow.shopify.external.v0.enums {
1141
1141
  type ShopifyCustomerState = 'disabled' | 'invited' | 'enabled';
1142
1142
  type ShopifyDiscountPaginationDirection = 'next' | 'prev';
1143
1143
  type ShopifyGiftCardStatus = 'any' | 'enabled' | 'disabled';
1144
+ type ShopifyPlanName = 'basic' | 'business' | 'cancelled' | 'dormant' | 'enterprise' | 'fraudulent' | 'frozen' | 'npo_full' | 'npo_lite' | 'open_learning' | 'paid_trial' | 'professional' | 'retail' | 'shopify_alumni' | 'shopify_plus' | 'staff' | 'staff_business' | 'starter' | 'starter_2022' | 'unlimited';
1144
1145
  type ShopifyProcessingMethodType = 'checkout' | 'direct' | 'manual' | 'offsite' | 'express';
1145
1146
  type ShopifyTransactionErrorCode = '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';
1146
1147
  type ShopifyTransactionStatus = 'pending' | 'failure' | 'success' | 'error';
@@ -1289,7 +1290,7 @@ declare namespace io.flow.shopify.external.v0.models {
1289
1290
  readonly 'id': number;
1290
1291
  readonly 'product_id': number;
1291
1292
  readonly 'variant_ids': number[];
1292
- readonly 'src': string;
1293
+ readonly 'src'?: string;
1293
1294
  readonly 'position': number;
1294
1295
  readonly 'created_at': string;
1295
1296
  readonly 'updated_at': string;
@@ -1901,6 +1902,12 @@ declare namespace io.flow.shopify.external.v0.models {
1901
1902
  readonly 'carrier_identifier'?: string;
1902
1903
  }
1903
1904
 
1905
+ interface ShopifyShopUpdate {
1906
+ readonly 'id': number;
1907
+ readonly 'plan_display_name': string;
1908
+ readonly 'plan_name': io.flow.shopify.external.v0.enums.ShopifyPlanName;
1909
+ }
1910
+
1904
1911
  interface ShopifyTaxLine {
1905
1912
  readonly 'price': string;
1906
1913
  readonly 'rate': number;
@@ -2332,7 +2339,7 @@ declare namespace io.flow.v0.enums {
2332
2339
  type TrackingStatus = 'label_created' | 'pending' | 'info_received' | 'picked_up' | 'in_transit' | 'out_for_delivery' | 'attempt_fail' | 'delivered' | 'exception' | 'returned' | 'expired';
2333
2340
  type TradeAgreementName = 'USMCA' | 'T-MEC' | 'CUSMA' | 'TCA';
2334
2341
  type TradeAgreementStatus = 'supported' | 'not_supported';
2335
- type TransactionSource = 'capture' | 'refund' | 'dispute' | 'adjustment' | 'reversal' | 'shipping_label' | 'shipping_label_service' | 'shipping_label_revenue_share' | 'trueup' | 'carrier_charge' | 'carrier_charge_revenue_share' | 'platform_fee' | 'tax' | 'duty' | 'withholding' | 'other_adjustment' | 'tax_adjustment' | 'channel' | 'channel_billed' | 'order_service' | 'virtual_card_capture' | 'virtual_card_refund';
2342
+ type TransactionSource = 'capture' | 'refund' | 'dispute' | 'adjustment' | 'reversal' | 'shipping_label' | 'shipping_label_service' | 'shipping_label_revenue_share' | 'trueup' | 'carrier_charge' | 'carrier_charge_revenue_share' | 'carrier_fee' | 'platform_fee' | 'tax' | 'duty' | 'withholding' | 'other_adjustment' | 'tax_adjustment' | 'channel' | 'channel_billed' | 'order_service' | 'virtual_card_capture' | 'virtual_card_refund';
2336
2343
  type TrueupSource = 'flow' | 'channel' | 'dhl-parcel' | 'dhl';
2337
2344
  type TrueupSurchargeType = 'fuel' | 'remote_area' | 'oversize' | 'duties_paid' | 'emergency' | 'peak' | 'address_correction' | 'security' | 'eei_filing' | 'fixed_ddp' | 'fixed_currency_conversion';
2338
2345
  type UnitOfLength = 'millimeter' | 'centimeter' | 'inch' | 'foot' | 'meter';
@@ -4720,6 +4727,7 @@ declare namespace io.flow.v0.models {
4720
4727
 
4721
4728
  interface DeactivationPutForm {
4722
4729
  readonly 'reason': string;
4730
+ readonly 'deactivate_at'?: string;
4723
4731
  }
4724
4732
 
4725
4733
  interface DeadWeight {
@@ -7305,6 +7313,7 @@ declare namespace io.flow.v0.models {
7305
7313
  interface MerchantDeactivated {
7306
7314
  readonly 'discriminator': 'merchant_deactivated';
7307
7315
  readonly 'reason': string;
7316
+ readonly 'deactivate_at'?: string;
7308
7317
  }
7309
7318
 
7310
7319
  interface MerchantDisabled {
@@ -8648,6 +8657,7 @@ declare namespace io.flow.v0.models {
8648
8657
  readonly 'currency': string;
8649
8658
  readonly 'base_amount'?: number;
8650
8659
  readonly 'base_currency'?: string;
8660
+ readonly 'reference'?: string;
8651
8661
  }
8652
8662
 
8653
8663
  interface PaymentAuthorizationStatus {
@@ -8661,6 +8671,7 @@ declare namespace io.flow.v0.models {
8661
8671
  readonly 'currency': string;
8662
8672
  readonly 'base_amount'?: number;
8663
8673
  readonly 'base_currency'?: string;
8674
+ readonly 'reference'?: string;
8664
8675
  readonly 'created_at': string;
8665
8676
  readonly 'updated_at': string;
8666
8677
  readonly 'status': io.flow.v0.models.PaymentCaptureStatus;
@@ -8669,6 +8680,7 @@ declare namespace io.flow.v0.models {
8669
8680
  interface PaymentCaptureForm {
8670
8681
  readonly 'amount'?: number;
8671
8682
  readonly 'currency'?: string;
8683
+ readonly 'reference'?: string;
8672
8684
  readonly 'attributes'?: Record<string, string>;
8673
8685
  }
8674
8686
 
@@ -8817,6 +8829,7 @@ declare namespace io.flow.v0.models {
8817
8829
  readonly 'device_fingerprint_details': io.flow.v0.unions.DeviceFingerprintDetails;
8818
8830
  readonly 'cvv'?: string;
8819
8831
  readonly 'stored_details_card'?: io.flow.v0.unions.PaymentMethodStoredDetailsCard;
8832
+ readonly 'reference'?: string;
8820
8833
  }
8821
8834
 
8822
8835
  interface PaymentMethodDataAuthorizeGooglepay {
@@ -8852,42 +8865,43 @@ declare namespace io.flow.v0.models {
8852
8865
 
8853
8866
  interface PaymentMethodDataInitAfterpay {
8854
8867
  readonly 'type': 'init_afterpay';
8855
- readonly 'placeholder'?: string;
8868
+ readonly 'reference'?: string;
8856
8869
  }
8857
8870
 
8858
8871
  interface PaymentMethodDataInitApplepay {
8859
8872
  readonly 'type': 'init_applepay';
8860
- readonly 'placeholder'?: string;
8873
+ readonly 'reference'?: string;
8861
8874
  }
8862
8875
 
8863
8876
  interface PaymentMethodDataInitBancontact {
8864
8877
  readonly 'type': 'init_bancontact';
8865
- readonly 'placeholder'?: string;
8878
+ readonly 'reference'?: string;
8866
8879
  }
8867
8880
 
8868
8881
  interface PaymentMethodDataInitGooglepay {
8869
8882
  readonly 'type': 'init_googlepay';
8870
- readonly 'placeholder'?: string;
8883
+ readonly 'reference'?: string;
8871
8884
  }
8872
8885
 
8873
8886
  interface PaymentMethodDataInitIdeal {
8874
8887
  readonly 'type': 'init_ideal';
8875
8888
  readonly 'issuer'?: string;
8889
+ readonly 'reference'?: string;
8876
8890
  }
8877
8891
 
8878
8892
  interface PaymentMethodDataInitKlarna {
8879
8893
  readonly 'type': 'init_klarna';
8880
- readonly 'placeholder'?: string;
8894
+ readonly 'reference'?: string;
8881
8895
  }
8882
8896
 
8883
8897
  interface PaymentMethodDataInitPaypal {
8884
8898
  readonly 'type': 'init_paypal';
8885
- readonly 'placeholder'?: string;
8899
+ readonly 'reference'?: string;
8886
8900
  }
8887
8901
 
8888
8902
  interface PaymentMethodDataInitSofort {
8889
8903
  readonly 'type': 'init_sofort';
8890
- readonly 'placeholder'?: string;
8904
+ readonly 'reference'?: string;
8891
8905
  }
8892
8906
 
8893
8907
  interface PaymentMethodDataOptionLogoSvg {
@@ -9007,7 +9021,7 @@ declare namespace io.flow.v0.models {
9007
9021
  }
9008
9022
 
9009
9023
  interface PaymentOrderDetailsLineItem {
9010
- readonly 'id': string;
9024
+ readonly 'id'?: string;
9011
9025
  readonly 'description': string;
9012
9026
  readonly 'quantity': number;
9013
9027
  readonly 'amount': number;
@@ -9095,6 +9109,7 @@ declare namespace io.flow.v0.models {
9095
9109
  readonly 'currency': string;
9096
9110
  readonly 'base_amount'?: number;
9097
9111
  readonly 'base_currency'?: string;
9112
+ readonly 'reference'?: string;
9098
9113
  readonly 'created_at': string;
9099
9114
  readonly 'updated_at': string;
9100
9115
  readonly 'status': io.flow.v0.models.PaymentRefundStatus;
@@ -9103,6 +9118,7 @@ declare namespace io.flow.v0.models {
9103
9118
  interface PaymentRefundForm {
9104
9119
  readonly 'amount'?: number;
9105
9120
  readonly 'currency'?: string;
9121
+ readonly 'reference'?: string;
9106
9122
  }
9107
9123
 
9108
9124
  interface PaymentRefundStatus {
@@ -9210,6 +9226,7 @@ declare namespace io.flow.v0.models {
9210
9226
  readonly 'currency': string;
9211
9227
  readonly 'base_amount'?: number;
9212
9228
  readonly 'base_currency'?: string;
9229
+ readonly 'reference'?: string;
9213
9230
  readonly 'created_at': string;
9214
9231
  readonly 'updated_at': string;
9215
9232
  readonly 'status': io.flow.v0.models.PaymentReversalStatus;
@@ -9218,6 +9235,7 @@ declare namespace io.flow.v0.models {
9218
9235
  interface PaymentReversalForm {
9219
9236
  readonly 'amount'?: number;
9220
9237
  readonly 'currency'?: string;
9238
+ readonly 'reference'?: string;
9221
9239
  }
9222
9240
 
9223
9241
  interface PaymentReversalStatus {
@@ -9666,7 +9684,7 @@ declare namespace io.flow.v0.models {
9666
9684
  readonly 'event_id': string;
9667
9685
  readonly 'timestamp': string;
9668
9686
  readonly 'organization': string;
9669
- readonly 'product_restriction_result': io.flow.v0.models.ProductRestrictionResult;
9687
+ readonly 'id': string;
9670
9688
  }
9671
9689
 
9672
9690
  interface ProductRestrictionResultUpserted {
@@ -12205,11 +12223,18 @@ declare namespace io.flow.v0.models {
12205
12223
  readonly 'carrier_id': string;
12206
12224
  readonly 'carrier_tracking_number': string;
12207
12225
  readonly 'revenue_share_percentage': number;
12208
- readonly 'outbound'?: io.flow.v0.models.TransactionMetadataCarrierChargeOutbound;
12226
+ readonly 'outbound'?: io.flow.v0.models.TransactionMetadataOutboundTransaction;
12209
12227
  }
12210
12228
 
12211
- interface TransactionMetadataCarrierChargeOutbound {
12212
- readonly 'transaction_id': string;
12229
+ interface TransactionMetadataCarrierFee {
12230
+ readonly 'discriminator': 'carrier_fee';
12231
+ readonly 'outbound': io.flow.v0.models.TransactionMetadataOutboundTransaction;
12232
+ readonly 'estimate': io.flow.v0.models.TransactionMetadataCarrierFeeData;
12233
+ readonly 'actual': io.flow.v0.models.TransactionMetadataCarrierFeeData;
12234
+ }
12235
+
12236
+ interface TransactionMetadataCarrierFeeData {
12237
+ readonly 'surcharges': io.flow.v0.models.TrueupLabelSurcharge[];
12213
12238
  }
12214
12239
 
12215
12240
  interface TransactionMetadataChannel {
@@ -12239,6 +12264,15 @@ declare namespace io.flow.v0.models {
12239
12264
  readonly 'id': string;
12240
12265
  }
12241
12266
 
12267
+ interface TransactionMetadataOutboundTransaction {
12268
+ readonly 'transaction_id': string;
12269
+ }
12270
+
12271
+ interface TransactionMetadataPaymentTransaction {
12272
+ readonly 'discriminator': 'payment_transaction';
12273
+ readonly 'key'?: string;
12274
+ }
12275
+
12242
12276
  interface TransactionMetadataShippingLabel {
12243
12277
  readonly 'discriminator': 'shipping_label';
12244
12278
  readonly 'request_method'?: io.flow.v0.enums.LabelRequestMethod;
@@ -12418,11 +12452,6 @@ declare namespace io.flow.v0.models {
12418
12452
  readonly 'virtual_card_capture': io.flow.v0.models.VirtualCardCapture;
12419
12453
  }
12420
12454
 
12421
- interface VirtualCardForm {
12422
- readonly 'limit': io.flow.v0.models.Money;
12423
- readonly 'attributes'?: Record<string, string>;
12424
- }
12425
-
12426
12455
  interface VirtualCardReference {
12427
12456
  readonly 'id': string;
12428
12457
  }
@@ -12657,7 +12686,7 @@ declare namespace io.flow.v0.unions {
12657
12686
  type Token = (io.flow.v0.models.ChannelToken | io.flow.v0.models.OrganizationToken | io.flow.v0.models.OrganizationTokenV2 | io.flow.v0.models.PartnerToken);
12658
12687
  type TokenReference = (io.flow.v0.models.ChannelTokenReference | io.flow.v0.models.OrganizationTokenReference | io.flow.v0.models.OrganizationTokenV2Reference | io.flow.v0.models.PartnerTokenReference);
12659
12688
  type TransactionDetails = (io.flow.v0.models.TransactionDetailsCard);
12660
- type TransactionMetadata = (io.flow.v0.models.TransactionMetadataShippingLabel | io.flow.v0.models.TransactionMetadataChannel | io.flow.v0.models.TransactionMetadataTrueup | io.flow.v0.models.TransactionMetadataCarrierCharge | io.flow.v0.models.TransactionMetadataManual);
12689
+ type TransactionMetadata = (io.flow.v0.models.TransactionMetadataShippingLabel | io.flow.v0.models.TransactionMetadataChannel | io.flow.v0.models.TransactionMetadataTrueup | io.flow.v0.models.TransactionMetadataCarrierCharge | io.flow.v0.models.TransactionMetadataCarrierFee | io.flow.v0.models.TransactionMetadataManual | io.flow.v0.models.TransactionMetadataPaymentTransaction);
12661
12690
  }
12662
12691
 
12663
12692
  export const abandonedOrderPromotionStatus: PropTypes.Requireable<io.flow.v0.enums.AbandonedOrderPromotionStatus>;
@@ -14242,12 +14271,15 @@ export const tradeAgreementDuty: PropTypes.Requireable<io.flow.v0.models.TradeAg
14242
14271
  export const transaction: PropTypes.Requireable<io.flow.v0.models.Transaction>;
14243
14272
  export const transactionDetailsCard: PropTypes.Requireable<io.flow.v0.models.TransactionDetailsCard>;
14244
14273
  export const transactionMetadataCarrierCharge: PropTypes.Requireable<io.flow.v0.models.TransactionMetadataCarrierCharge>;
14245
- export const transactionMetadataCarrierChargeOutbound: PropTypes.Requireable<io.flow.v0.models.TransactionMetadataCarrierChargeOutbound>;
14274
+ export const transactionMetadataCarrierFee: PropTypes.Requireable<io.flow.v0.models.TransactionMetadataCarrierFee>;
14275
+ export const transactionMetadataCarrierFeeData: PropTypes.Requireable<io.flow.v0.models.TransactionMetadataCarrierFeeData>;
14246
14276
  export const transactionMetadataChannel: PropTypes.Requireable<io.flow.v0.models.TransactionMetadataChannel>;
14247
14277
  export const transactionMetadataChannelCardMetadata: PropTypes.Requireable<io.flow.v0.models.TransactionMetadataChannelCardMetadata>;
14248
14278
  export const transactionMetadataChannelCardMetadataIssuerSummary: PropTypes.Requireable<io.flow.v0.models.TransactionMetadataChannelCardMetadataIssuerSummary>;
14249
14279
  export const transactionMetadataManual: PropTypes.Requireable<io.flow.v0.models.TransactionMetadataManual>;
14250
14280
  export const transactionMetadataOriginalTransaction: PropTypes.Requireable<io.flow.v0.models.TransactionMetadataOriginalTransaction>;
14281
+ export const transactionMetadataOutboundTransaction: PropTypes.Requireable<io.flow.v0.models.TransactionMetadataOutboundTransaction>;
14282
+ export const transactionMetadataPaymentTransaction: PropTypes.Requireable<io.flow.v0.models.TransactionMetadataPaymentTransaction>;
14251
14283
  export const transactionMetadataShippingLabel: PropTypes.Requireable<io.flow.v0.models.TransactionMetadataShippingLabel>;
14252
14284
  export const transactionMetadataShippingLabelCarrier: PropTypes.Requireable<io.flow.v0.models.TransactionMetadataShippingLabelCarrier>;
14253
14285
  export const transactionMetadataTrueup: PropTypes.Requireable<io.flow.v0.models.TransactionMetadataTrueup>;
@@ -14274,7 +14306,6 @@ export const virtualCardCapture: PropTypes.Requireable<io.flow.v0.models.Virtual
14274
14306
  export const virtualCardCaptureDeleted: PropTypes.Requireable<io.flow.v0.models.VirtualCardCaptureDeleted>;
14275
14307
  export const virtualCardCaptureUpserted: PropTypes.Requireable<io.flow.v0.models.VirtualCardCaptureUpserted>;
14276
14308
  export const virtualCardCaptureVersion: PropTypes.Requireable<io.flow.v0.models.VirtualCardCaptureVersion>;
14277
- export const virtualCardForm: PropTypes.Requireable<io.flow.v0.models.VirtualCardForm>;
14278
14309
  export const virtualCardReference: PropTypes.Requireable<io.flow.v0.models.VirtualCardReference>;
14279
14310
  export const virtualCardRefund: PropTypes.Requireable<io.flow.v0.models.VirtualCardRefund>;
14280
14311
  export const virtualCardRefundDeleted: PropTypes.Requireable<io.flow.v0.models.VirtualCardRefundDeleted>;