@flowio/types 11.24.93 → 11.24.94

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
@@ -1461,6 +1461,27 @@ declare namespace io.flow.shopify.external.v0.enums {
1461
1461
  type ShopifyCustomerState = 'disabled' | 'invited' | 'enabled';
1462
1462
  type ShopifyDiscountPaginationDirection = 'next' | 'prev';
1463
1463
  type ShopifyGiftCardStatus = 'any' | 'enabled' | 'disabled';
1464
+ type ShopifyPlanName =
1465
+ | 'basic'
1466
+ | 'business'
1467
+ | 'cancelled'
1468
+ | 'dormant'
1469
+ | 'enterprise'
1470
+ | 'fraudulent'
1471
+ | 'frozen'
1472
+ | 'npo_full'
1473
+ | 'npo_lite'
1474
+ | 'open_learning'
1475
+ | 'paid_trial'
1476
+ | 'professional'
1477
+ | 'retail'
1478
+ | 'shopify_alumni'
1479
+ | 'shopify_plus'
1480
+ | 'staff'
1481
+ | 'staff_business'
1482
+ | 'starter'
1483
+ | 'starter_2022'
1484
+ | 'unlimited';
1464
1485
  type ShopifyProcessingMethodType =
1465
1486
  | 'checkout'
1466
1487
  | 'direct'
@@ -1677,7 +1698,7 @@ declare namespace io.flow.shopify.external.v0.models {
1677
1698
  readonly id: number;
1678
1699
  readonly product_id: number;
1679
1700
  readonly variant_ids: number[];
1680
- readonly src: string;
1701
+ readonly src?: string;
1681
1702
  readonly position: number;
1682
1703
  readonly created_at: string;
1683
1704
  readonly updated_at: string;
@@ -2289,6 +2310,12 @@ declare namespace io.flow.shopify.external.v0.models {
2289
2310
  readonly carrier_identifier?: string;
2290
2311
  }
2291
2312
 
2313
+ interface ShopifyShopUpdate {
2314
+ readonly id: number;
2315
+ readonly plan_display_name: string;
2316
+ readonly plan_name: io.flow.shopify.external.v0.enums.ShopifyPlanName;
2317
+ }
2318
+
2292
2319
  interface ShopifyTaxLine {
2293
2320
  readonly price: string;
2294
2321
  readonly rate: number;
@@ -3535,6 +3562,7 @@ declare namespace io.flow.v0.enums {
3535
3562
  | 'trueup'
3536
3563
  | 'carrier_charge'
3537
3564
  | 'carrier_charge_revenue_share'
3565
+ | 'carrier_fee'
3538
3566
  | 'platform_fee'
3539
3567
  | 'tax'
3540
3568
  | 'duty'
@@ -5965,6 +5993,7 @@ declare namespace io.flow.v0.models {
5965
5993
 
5966
5994
  interface DeactivationPutForm {
5967
5995
  readonly reason: string;
5996
+ readonly deactivate_at?: string;
5968
5997
  }
5969
5998
 
5970
5999
  interface DeadWeight {
@@ -8553,6 +8582,7 @@ declare namespace io.flow.v0.models {
8553
8582
  interface MerchantDeactivated {
8554
8583
  readonly discriminator: 'merchant_deactivated';
8555
8584
  readonly reason: string;
8585
+ readonly deactivate_at?: string;
8556
8586
  }
8557
8587
 
8558
8588
  interface MerchantDisabled {
@@ -9896,6 +9926,7 @@ declare namespace io.flow.v0.models {
9896
9926
  readonly currency: string;
9897
9927
  readonly base_amount?: number;
9898
9928
  readonly base_currency?: string;
9929
+ readonly reference?: string;
9899
9930
  }
9900
9931
 
9901
9932
  interface PaymentAuthorizationStatus {
@@ -9909,6 +9940,7 @@ declare namespace io.flow.v0.models {
9909
9940
  readonly currency: string;
9910
9941
  readonly base_amount?: number;
9911
9942
  readonly base_currency?: string;
9943
+ readonly reference?: string;
9912
9944
  readonly created_at: string;
9913
9945
  readonly updated_at: string;
9914
9946
  readonly status: io.flow.v0.models.PaymentCaptureStatus;
@@ -9917,6 +9949,7 @@ declare namespace io.flow.v0.models {
9917
9949
  interface PaymentCaptureForm {
9918
9950
  readonly amount?: number;
9919
9951
  readonly currency?: string;
9952
+ readonly reference?: string;
9920
9953
  readonly attributes?: Record<string, string>;
9921
9954
  }
9922
9955
 
@@ -10065,6 +10098,7 @@ declare namespace io.flow.v0.models {
10065
10098
  readonly device_fingerprint_details: io.flow.v0.unions.DeviceFingerprintDetails;
10066
10099
  readonly cvv?: string;
10067
10100
  readonly stored_details_card?: io.flow.v0.unions.PaymentMethodStoredDetailsCard;
10101
+ readonly reference?: string;
10068
10102
  }
10069
10103
 
10070
10104
  interface PaymentMethodDataAuthorizeGooglepay {
@@ -10100,42 +10134,43 @@ declare namespace io.flow.v0.models {
10100
10134
 
10101
10135
  interface PaymentMethodDataInitAfterpay {
10102
10136
  readonly type: 'init_afterpay';
10103
- readonly placeholder?: string;
10137
+ readonly reference?: string;
10104
10138
  }
10105
10139
 
10106
10140
  interface PaymentMethodDataInitApplepay {
10107
10141
  readonly type: 'init_applepay';
10108
- readonly placeholder?: string;
10142
+ readonly reference?: string;
10109
10143
  }
10110
10144
 
10111
10145
  interface PaymentMethodDataInitBancontact {
10112
10146
  readonly type: 'init_bancontact';
10113
- readonly placeholder?: string;
10147
+ readonly reference?: string;
10114
10148
  }
10115
10149
 
10116
10150
  interface PaymentMethodDataInitGooglepay {
10117
10151
  readonly type: 'init_googlepay';
10118
- readonly placeholder?: string;
10152
+ readonly reference?: string;
10119
10153
  }
10120
10154
 
10121
10155
  interface PaymentMethodDataInitIdeal {
10122
10156
  readonly type: 'init_ideal';
10123
10157
  readonly issuer?: string;
10158
+ readonly reference?: string;
10124
10159
  }
10125
10160
 
10126
10161
  interface PaymentMethodDataInitKlarna {
10127
10162
  readonly type: 'init_klarna';
10128
- readonly placeholder?: string;
10163
+ readonly reference?: string;
10129
10164
  }
10130
10165
 
10131
10166
  interface PaymentMethodDataInitPaypal {
10132
10167
  readonly type: 'init_paypal';
10133
- readonly placeholder?: string;
10168
+ readonly reference?: string;
10134
10169
  }
10135
10170
 
10136
10171
  interface PaymentMethodDataInitSofort {
10137
10172
  readonly type: 'init_sofort';
10138
- readonly placeholder?: string;
10173
+ readonly reference?: string;
10139
10174
  }
10140
10175
 
10141
10176
  interface PaymentMethodDataOptionLogoSvg {
@@ -10255,7 +10290,7 @@ declare namespace io.flow.v0.models {
10255
10290
  }
10256
10291
 
10257
10292
  interface PaymentOrderDetailsLineItem {
10258
- readonly id: string;
10293
+ readonly id?: string;
10259
10294
  readonly description: string;
10260
10295
  readonly quantity: number;
10261
10296
  readonly amount: number;
@@ -10343,6 +10378,7 @@ declare namespace io.flow.v0.models {
10343
10378
  readonly currency: string;
10344
10379
  readonly base_amount?: number;
10345
10380
  readonly base_currency?: string;
10381
+ readonly reference?: string;
10346
10382
  readonly created_at: string;
10347
10383
  readonly updated_at: string;
10348
10384
  readonly status: io.flow.v0.models.PaymentRefundStatus;
@@ -10351,6 +10387,7 @@ declare namespace io.flow.v0.models {
10351
10387
  interface PaymentRefundForm {
10352
10388
  readonly amount?: number;
10353
10389
  readonly currency?: string;
10390
+ readonly reference?: string;
10354
10391
  }
10355
10392
 
10356
10393
  interface PaymentRefundStatus {
@@ -10458,6 +10495,7 @@ declare namespace io.flow.v0.models {
10458
10495
  readonly currency: string;
10459
10496
  readonly base_amount?: number;
10460
10497
  readonly base_currency?: string;
10498
+ readonly reference?: string;
10461
10499
  readonly created_at: string;
10462
10500
  readonly updated_at: string;
10463
10501
  readonly status: io.flow.v0.models.PaymentReversalStatus;
@@ -10466,6 +10504,7 @@ declare namespace io.flow.v0.models {
10466
10504
  interface PaymentReversalForm {
10467
10505
  readonly amount?: number;
10468
10506
  readonly currency?: string;
10507
+ readonly reference?: string;
10469
10508
  }
10470
10509
 
10471
10510
  interface PaymentReversalStatus {
@@ -10917,7 +10956,7 @@ declare namespace io.flow.v0.models {
10917
10956
  readonly event_id: string;
10918
10957
  readonly timestamp: string;
10919
10958
  readonly organization: string;
10920
- readonly product_restriction_result: io.flow.v0.models.ProductRestrictionResult;
10959
+ readonly id: string;
10921
10960
  }
10922
10961
 
10923
10962
  interface ProductRestrictionResultUpserted {
@@ -13456,11 +13495,18 @@ declare namespace io.flow.v0.models {
13456
13495
  readonly carrier_id: string;
13457
13496
  readonly carrier_tracking_number: string;
13458
13497
  readonly revenue_share_percentage: number;
13459
- readonly outbound?: io.flow.v0.models.TransactionMetadataCarrierChargeOutbound;
13498
+ readonly outbound?: io.flow.v0.models.TransactionMetadataOutboundTransaction;
13460
13499
  }
13461
13500
 
13462
- interface TransactionMetadataCarrierChargeOutbound {
13463
- readonly transaction_id: string;
13501
+ interface TransactionMetadataCarrierFee {
13502
+ readonly discriminator: 'carrier_fee';
13503
+ readonly outbound: io.flow.v0.models.TransactionMetadataOutboundTransaction;
13504
+ readonly estimate: io.flow.v0.models.TransactionMetadataCarrierFeeData;
13505
+ readonly actual: io.flow.v0.models.TransactionMetadataCarrierFeeData;
13506
+ }
13507
+
13508
+ interface TransactionMetadataCarrierFeeData {
13509
+ readonly surcharges: io.flow.v0.models.TrueupLabelSurcharge[];
13464
13510
  }
13465
13511
 
13466
13512
  interface TransactionMetadataChannel {
@@ -13490,6 +13536,15 @@ declare namespace io.flow.v0.models {
13490
13536
  readonly id: string;
13491
13537
  }
13492
13538
 
13539
+ interface TransactionMetadataOutboundTransaction {
13540
+ readonly transaction_id: string;
13541
+ }
13542
+
13543
+ interface TransactionMetadataPaymentTransaction {
13544
+ readonly discriminator: 'payment_transaction';
13545
+ readonly key?: string;
13546
+ }
13547
+
13493
13548
  interface TransactionMetadataShippingLabel {
13494
13549
  readonly discriminator: 'shipping_label';
13495
13550
  readonly request_method?: io.flow.v0.enums.LabelRequestMethod;
@@ -13669,11 +13724,6 @@ declare namespace io.flow.v0.models {
13669
13724
  readonly virtual_card_capture: io.flow.v0.models.VirtualCardCapture;
13670
13725
  }
13671
13726
 
13672
- interface VirtualCardForm {
13673
- readonly limit: io.flow.v0.models.Money;
13674
- readonly attributes?: Record<string, string>;
13675
- }
13676
-
13677
13727
  interface VirtualCardReference {
13678
13728
  readonly id: string;
13679
13729
  }
@@ -14409,7 +14459,9 @@ declare namespace io.flow.v0.unions {
14409
14459
  | io.flow.v0.models.TransactionMetadataChannel
14410
14460
  | io.flow.v0.models.TransactionMetadataTrueup
14411
14461
  | io.flow.v0.models.TransactionMetadataCarrierCharge
14412
- | io.flow.v0.models.TransactionMetadataManual;
14462
+ | io.flow.v0.models.TransactionMetadataCarrierFee
14463
+ | io.flow.v0.models.TransactionMetadataManual
14464
+ | io.flow.v0.models.TransactionMetadataPaymentTransaction;
14413
14465
  }
14414
14466
 
14415
14467
  export type AbandonedOrderEmailSettings =
@@ -16558,8 +16610,10 @@ export type TransactionDetailsCard = io.flow.v0.models.TransactionDetailsCard;
16558
16610
  export type TransactionMetadata = io.flow.v0.unions.TransactionMetadata;
16559
16611
  export type TransactionMetadataCarrierCharge =
16560
16612
  io.flow.v0.models.TransactionMetadataCarrierCharge;
16561
- export type TransactionMetadataCarrierChargeOutbound =
16562
- io.flow.v0.models.TransactionMetadataCarrierChargeOutbound;
16613
+ export type TransactionMetadataCarrierFee =
16614
+ io.flow.v0.models.TransactionMetadataCarrierFee;
16615
+ export type TransactionMetadataCarrierFeeData =
16616
+ io.flow.v0.models.TransactionMetadataCarrierFeeData;
16563
16617
  export type TransactionMetadataChannel =
16564
16618
  io.flow.v0.models.TransactionMetadataChannel;
16565
16619
  export type TransactionMetadataChannelCardMetadata =
@@ -16570,6 +16624,10 @@ export type TransactionMetadataManual =
16570
16624
  io.flow.v0.models.TransactionMetadataManual;
16571
16625
  export type TransactionMetadataOriginalTransaction =
16572
16626
  io.flow.v0.models.TransactionMetadataOriginalTransaction;
16627
+ export type TransactionMetadataOutboundTransaction =
16628
+ io.flow.v0.models.TransactionMetadataOutboundTransaction;
16629
+ export type TransactionMetadataPaymentTransaction =
16630
+ io.flow.v0.models.TransactionMetadataPaymentTransaction;
16573
16631
  export type TransactionMetadataShippingLabel =
16574
16632
  io.flow.v0.models.TransactionMetadataShippingLabel;
16575
16633
  export type TransactionMetadataShippingLabelCarrier =
@@ -16619,7 +16677,6 @@ export type VirtualCardCaptureUpserted =
16619
16677
  io.flow.v0.models.VirtualCardCaptureUpserted;
16620
16678
  export type VirtualCardCaptureVersion =
16621
16679
  io.flow.v0.models.VirtualCardCaptureVersion;
16622
- export type VirtualCardForm = io.flow.v0.models.VirtualCardForm;
16623
16680
  export type VirtualCardReference = io.flow.v0.models.VirtualCardReference;
16624
16681
  export type VirtualCardRefund = io.flow.v0.models.VirtualCardRefund;
16625
16682
  export type VirtualCardRefundDeleted =