@flowio/types 11.24.96 → 11.24.98

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
@@ -153,6 +153,47 @@ declare namespace io.flow.google.pay.v0.unions {
153
153
  declare namespace io.flow.stripe.v0.enums {
154
154
  type AccountType = 'platform' | 'custom' | 'standard' | 'express';
155
155
  type ApplePayType = 'apple_pay' | 'apple_pay_later';
156
+ type BalanceTransactionType =
157
+ | 'adjustment'
158
+ | 'advance'
159
+ | 'advance_funding'
160
+ | 'anticipation_repayment'
161
+ | 'application_fee'
162
+ | 'application_fee_refund'
163
+ | 'charge'
164
+ | 'climate_order_purchase'
165
+ | 'climate_order_refund'
166
+ | 'connect_collection_transfer'
167
+ | 'contribution'
168
+ | 'issuing_authorization_hold'
169
+ | 'issuing_authorization_release'
170
+ | 'issuing_dispute'
171
+ | 'issuing_transaction'
172
+ | 'obligation_outbound'
173
+ | 'obligation_reversal_inbound'
174
+ | 'payment'
175
+ | 'payment_failure_refund'
176
+ | 'payment_network_reserve_hold'
177
+ | 'payment_network_reserve_release'
178
+ | 'payment_refund'
179
+ | 'payment_reversal'
180
+ | 'payment_unreconciled'
181
+ | 'payout'
182
+ | 'payout_cancel'
183
+ | 'payout_failure'
184
+ | 'refund'
185
+ | 'refund_failure'
186
+ | 'reserve_transaction'
187
+ | 'reserved_funds'
188
+ | 'stripe_fee'
189
+ | 'stripe_fx_fee'
190
+ | 'tax_fee'
191
+ | 'topup'
192
+ | 'topup_reversal'
193
+ | 'transfer'
194
+ | 'transfer_cancel'
195
+ | 'transfer_failure'
196
+ | 'transfer_refund';
156
197
  type BankIdeal =
157
198
  | 'abn_amro'
158
199
  | 'asn_bank'
@@ -267,6 +308,37 @@ declare namespace io.flow.stripe.v0.enums {
267
308
  | 'previously_declined_do_not_retry'
268
309
  | 'highest_risk_level'
269
310
  | 'requested_block_on_incorrect_cvc';
311
+ type DisputeEventType =
312
+ | 'charge.dispute.closed'
313
+ | 'charge.dispute.created'
314
+ | 'charge.dispute.funds_reinstated'
315
+ | 'charge.dispute.funds_withdrawn'
316
+ | 'charge.dispute.updated';
317
+ type DisputePaymentMethodDetailsCardCaseType = 'chargeback' | 'inquiry';
318
+ type DisputePaymentMethodDetailsType = 'card' | 'klarna' | 'paypal';
319
+ type DisputeReason =
320
+ | 'bank_cannot_process'
321
+ | 'check_returned'
322
+ | 'credit_not_processed'
323
+ | 'customer_initiated'
324
+ | 'debit_not_authorized'
325
+ | 'duplicate'
326
+ | 'fraudulent'
327
+ | 'general'
328
+ | 'incorrect_account_details'
329
+ | 'insufficient_funds'
330
+ | 'product_not_received'
331
+ | 'product_unacceptable'
332
+ | 'subscription_canceled'
333
+ | 'unrecognized';
334
+ type DisputeStatus =
335
+ | 'warning_needs_response'
336
+ | 'warning_under_review'
337
+ | 'warning_closed'
338
+ | 'needs_response'
339
+ | 'under_review'
340
+ | 'won'
341
+ | 'lost';
270
342
  type ErrorCode =
271
343
  | 'invalid_number'
272
344
  | 'invalid_expiry_month'
@@ -357,6 +429,11 @@ declare namespace io.flow.stripe.v0.enums {
357
429
  | 'charge.succeeded'
358
430
  | 'charge.updated'
359
431
  | 'charge.refund.updated'
432
+ | 'charge.dispute.closed'
433
+ | 'charge.dispute.created'
434
+ | 'charge.dispute.funds_reinstated'
435
+ | 'charge.dispute.funds_withdrawn'
436
+ | 'charge.dispute.updated'
360
437
  | 'payment_intent.created'
361
438
  | 'payment_intent.amount_capturable_updated'
362
439
  | 'payment_intent.payment_failed'
@@ -737,6 +814,111 @@ declare namespace io.flow.stripe.v0.models {
737
814
  readonly description?: string;
738
815
  }
739
816
 
817
+ interface Dispute {
818
+ readonly id: string;
819
+ readonly amount: number;
820
+ readonly charge: string;
821
+ readonly currency: string;
822
+ readonly evidence: io.flow.stripe.v0.models.DisputeEvidence;
823
+ readonly metadata: Record<string, string>;
824
+ readonly payment_intent?: string;
825
+ readonly reason: io.flow.stripe.v0.enums.DisputeReason;
826
+ readonly status: io.flow.stripe.v0.enums.DisputeStatus;
827
+ readonly object: string;
828
+ readonly balance_transactions: io.flow.stripe.v0.models.DisputeBalanceTransaction[];
829
+ readonly created: number;
830
+ readonly evidence_details: io.flow.stripe.v0.models.DisputeEvidenceDetails;
831
+ readonly is_charge_refundable: boolean;
832
+ readonly livemode: boolean;
833
+ readonly payment_method_details?: io.flow.stripe.v0.models.DisputePaymentMethodDetails;
834
+ }
835
+
836
+ interface DisputeBalanceTransaction {
837
+ readonly payment_intent?: string;
838
+ readonly id: string;
839
+ readonly object: string;
840
+ readonly amount: number;
841
+ readonly available_on: number;
842
+ readonly created: number;
843
+ readonly currency: string;
844
+ readonly description?: string;
845
+ readonly exchange_rate?: number;
846
+ readonly fee?: number;
847
+ readonly fee_details: io.flow.stripe.v0.models.DisputeBalanceTransactionFeeDetails[];
848
+ readonly net: number;
849
+ readonly reporting_category: string;
850
+ readonly source?: string;
851
+ readonly status: string;
852
+ readonly type: io.flow.stripe.v0.enums.BalanceTransactionType;
853
+ }
854
+
855
+ interface DisputeBalanceTransactionFeeDetails {
856
+ readonly amount: number;
857
+ readonly application?: string;
858
+ readonly currency: string;
859
+ readonly description?: string;
860
+ readonly type: string;
861
+ }
862
+
863
+ interface DisputeEvidence {
864
+ readonly access_activity_log?: string;
865
+ readonly billing_address?: string;
866
+ readonly cancellation_policy?: string;
867
+ readonly cancellation_policy_disclosure?: string;
868
+ readonly cancellation_rebuttal?: string;
869
+ readonly customer_communication?: string;
870
+ readonly customer_email_address?: string;
871
+ readonly customer_name?: string;
872
+ readonly 'evidence.customer_purchase_ip'?: string;
873
+ readonly customer_signature?: string;
874
+ readonly duplicate_charge_documentation?: string;
875
+ readonly duplicate_charge_explanation?: string;
876
+ readonly duplicate_charge_id?: string;
877
+ readonly product_description?: string;
878
+ readonly receipt?: string;
879
+ readonly refund_policy?: string;
880
+ readonly refund_policy_disclosure?: string;
881
+ readonly refund_refusal_explanation?: string;
882
+ readonly service_date?: string;
883
+ readonly service_documentation?: string;
884
+ readonly shipping_address?: string;
885
+ readonly shipping_carrier?: string;
886
+ readonly shipping_date?: string;
887
+ readonly shipping_documentation?: string;
888
+ readonly shipping_tracking_number?: string;
889
+ readonly uncategorized_file?: string;
890
+ readonly uncategorized_text?: string;
891
+ }
892
+
893
+ interface DisputeEvidenceDetails {
894
+ readonly due_by?: number;
895
+ readonly has_evidence: boolean;
896
+ readonly past_due: boolean;
897
+ readonly submission_count: number;
898
+ }
899
+
900
+ interface DisputePaymentMethodDetails {
901
+ readonly card?: io.flow.stripe.v0.models.DisputePaymentMethodDetailsCard;
902
+ readonly klarna?: io.flow.stripe.v0.models.DisputePaymentMethodDetailsKlarna;
903
+ readonly paypal?: io.flow.stripe.v0.models.DisputePaymentMethodDetailsPaypal;
904
+ readonly type: io.flow.stripe.v0.enums.DisputePaymentMethodDetailsType;
905
+ }
906
+
907
+ interface DisputePaymentMethodDetailsCard {
908
+ readonly brand: string;
909
+ readonly case_type?: io.flow.stripe.v0.enums.DisputePaymentMethodDetailsCardCaseType;
910
+ readonly network_reason_code?: string;
911
+ }
912
+
913
+ interface DisputePaymentMethodDetailsKlarna {
914
+ readonly reason_code?: string;
915
+ }
916
+
917
+ interface DisputePaymentMethodDetailsPaypal {
918
+ readonly case_id?: string;
919
+ readonly reason_code?: string;
920
+ }
921
+
740
922
  interface Error {
741
923
  readonly error: io.flow.stripe.v0.models.StripeError;
742
924
  }
@@ -1422,6 +1604,24 @@ declare namespace io.flow.stripe.v0.models {
1422
1604
  readonly directory_server_encryption?: any /*object*/;
1423
1605
  }
1424
1606
 
1607
+ interface StripeDisputeEvent {
1608
+ readonly id: string;
1609
+ readonly api_version?: string;
1610
+ readonly data: io.flow.stripe.v0.models.StripeDisputeEventData;
1611
+ readonly request?: any /*object*/;
1612
+ readonly type: io.flow.stripe.v0.enums.DisputeEventType;
1613
+ readonly object: string;
1614
+ readonly account?: string;
1615
+ readonly created: number;
1616
+ readonly livemode: boolean;
1617
+ readonly pending_webhooks: number;
1618
+ }
1619
+
1620
+ interface StripeDisputeEventData {
1621
+ readonly object: io.flow.stripe.v0.models.Dispute;
1622
+ readonly previous_attributes?: any /*object*/;
1623
+ }
1624
+
1425
1625
  interface StripeError {
1426
1626
  readonly type: io.flow.stripe.v0.enums.ErrorType;
1427
1627
  readonly charge?: string;
@@ -1568,6 +1768,7 @@ declare namespace io.flow.shopify.external.v0.enums {
1568
1768
  type Format = 'json' | 'xml';
1569
1769
  type FulfillmentService = 'manual' | 'gift_card';
1570
1770
  type FulfillmentStatusType = 'fulfilled' | 'null' | 'partial';
1771
+ type GraphqlWeightUnit = 'GRAMS' | 'KILOGRAMS' | 'OUNCES' | 'POUNDS';
1571
1772
  type InventoryBehaviour =
1572
1773
  | 'bypass'
1573
1774
  | 'decrement_ignoring_policy'
@@ -1711,6 +1912,74 @@ declare namespace io.flow.shopify.external.v0.models {
1711
1912
  readonly count: number;
1712
1913
  }
1713
1914
 
1915
+ interface GraphqlInventoryItem {
1916
+ readonly id: string;
1917
+ readonly tracked: boolean;
1918
+ readonly requiresShipping?: boolean;
1919
+ readonly measurement: io.flow.shopify.external.v0.models.GraphqlMeasurement;
1920
+ }
1921
+
1922
+ interface GraphqlMeasurement {
1923
+ readonly weight: io.flow.shopify.external.v0.models.GraphqlWeight;
1924
+ }
1925
+
1926
+ interface GraphqlOption {
1927
+ readonly id: string;
1928
+ readonly values: string[];
1929
+ readonly name: string;
1930
+ readonly position: number;
1931
+ }
1932
+
1933
+ interface GraphqlProduct {
1934
+ readonly id: string;
1935
+ readonly legacyResourceId: string;
1936
+ readonly handle: string;
1937
+ readonly variants?: io.flow.shopify.external.v0.models.GraphqlProductVariant[];
1938
+ readonly images: io.flow.shopify.external.v0.models.GraphqlProductImage[];
1939
+ readonly title: string;
1940
+ readonly vendor?: string;
1941
+ readonly descriptionHtml?: string;
1942
+ readonly productType?: string;
1943
+ readonly status?: string;
1944
+ readonly options: io.flow.shopify.external.v0.models.GraphqlOption[];
1945
+ readonly tags?: string[];
1946
+ readonly templateSuffix?: string;
1947
+ readonly publishedAt?: string;
1948
+ readonly createdAt: string;
1949
+ readonly updatedAt: string;
1950
+ readonly hasVariantsThatRequiresComponents?: boolean;
1951
+ }
1952
+
1953
+ interface GraphqlProductImage {
1954
+ readonly id: string;
1955
+ readonly url: string;
1956
+ readonly altText?: string;
1957
+ }
1958
+
1959
+ interface GraphqlProductVariant {
1960
+ readonly id: string;
1961
+ readonly legacyResourceId: string;
1962
+ readonly sku?: string;
1963
+ readonly price: string;
1964
+ readonly title: string;
1965
+ readonly taxable: boolean;
1966
+ readonly compareAtPrice?: string;
1967
+ readonly barcode?: string;
1968
+ readonly inventoryPolicy: io.flow.shopify.external.v0.enums.InventoryPolicy;
1969
+ readonly inventoryQuantity?: number;
1970
+ readonly image?: io.flow.shopify.external.v0.models.GraphqlVariantImage;
1971
+ readonly inventoryItem: io.flow.shopify.external.v0.models.GraphqlInventoryItem;
1972
+ }
1973
+
1974
+ interface GraphqlVariantImage {
1975
+ readonly id: string;
1976
+ }
1977
+
1978
+ interface GraphqlWeight {
1979
+ readonly unit: io.flow.shopify.external.v0.enums.GraphqlWeightUnit;
1980
+ readonly value: number;
1981
+ }
1982
+
1714
1983
  interface Metafield {
1715
1984
  readonly id: number;
1716
1985
  readonly key: string;
@@ -1814,7 +2083,7 @@ declare namespace io.flow.shopify.external.v0.models {
1814
2083
  readonly options: io.flow.shopify.external.v0.models.Option[];
1815
2084
  readonly tags?: string;
1816
2085
  readonly template_suffix?: string;
1817
- readonly published_scope: io.flow.shopify.external.v0.enums.PublishedScope;
2086
+ readonly published_scope?: io.flow.shopify.external.v0.enums.PublishedScope;
1818
2087
  readonly published_at?: string;
1819
2088
  readonly created_at: string;
1820
2089
  readonly updated_at: string;
@@ -1830,9 +2099,9 @@ declare namespace io.flow.shopify.external.v0.models {
1830
2099
  readonly product_id: number;
1831
2100
  readonly variant_ids: number[];
1832
2101
  readonly src?: string;
1833
- readonly position: number;
1834
- readonly created_at: string;
1835
- readonly updated_at: string;
2102
+ readonly position?: number;
2103
+ readonly created_at?: string;
2104
+ readonly updated_at?: string;
1836
2105
  readonly alt?: string;
1837
2106
  }
1838
2107
 
@@ -1858,7 +2127,7 @@ declare namespace io.flow.shopify.external.v0.models {
1858
2127
  readonly option1?: string;
1859
2128
  readonly option2?: string;
1860
2129
  readonly option3?: string;
1861
- readonly requires_shipping: boolean;
2130
+ readonly requires_shipping?: boolean;
1862
2131
  readonly metafields?: io.flow.shopify.external.v0.models.Metafield[];
1863
2132
  }
1864
2133
 
@@ -1999,6 +2268,11 @@ declare namespace io.flow.shopify.external.v0.models {
1999
2268
  readonly user_agent?: string;
2000
2269
  }
2001
2270
 
2271
+ interface ShopifyCountryHarmonizedSystemCode {
2272
+ readonly country_code: string;
2273
+ readonly harmonized_system_code: string;
2274
+ }
2275
+
2002
2276
  interface ShopifyCustomer {
2003
2277
  readonly id: number;
2004
2278
  readonly addresses: io.flow.shopify.external.v0.models.ShopifyCustomerAddress[];
@@ -2219,6 +2493,14 @@ declare namespace io.flow.shopify.external.v0.models {
2219
2493
  readonly id: number;
2220
2494
  }
2221
2495
 
2496
+ interface ShopifyInventoryItemSummary {
2497
+ readonly country_code_of_origin?: string;
2498
+ readonly country_harmonized_system_codes?: io.flow.shopify.external.v0.models.ShopifyCountryHarmonizedSystemCode[];
2499
+ readonly harmonized_system_code?: string;
2500
+ readonly updated_at: string;
2501
+ readonly requires_shipping: boolean;
2502
+ }
2503
+
2222
2504
  interface ShopifyInventoryLevel {
2223
2505
  readonly inventory_item_id: number;
2224
2506
  readonly location_id: number;
@@ -3252,7 +3534,8 @@ declare namespace io.flow.v0.enums {
3252
3534
  | 'business_street_address_is_blank'
3253
3535
  | 'business_street_address_is_po_box'
3254
3536
  | 'exception_merchant'
3255
- | 'application_missing';
3537
+ | 'application_missing'
3538
+ | 'missing_logistics_contact_info';
3256
3539
  type OnboardingTradeSector =
3257
3540
  | 'accessories'
3258
3541
  | 'animals_and_pet_supplies'
@@ -3451,7 +3734,9 @@ declare namespace io.flow.v0.enums {
3451
3734
  | 'ideal'
3452
3735
  | 'sofort'
3453
3736
  | 'afterpay'
3454
- | 'bancontact';
3737
+ | 'bancontact'
3738
+ | 'twint'
3739
+ | 'przelewy24';
3455
3740
  type PayoutAttachmentType = 'transactions';
3456
3741
  type PayoutStatusFailureCode =
3457
3742
  | 'invalid_account_number'
@@ -10333,11 +10618,21 @@ declare namespace io.flow.v0.models {
10333
10618
  readonly reference?: string;
10334
10619
  }
10335
10620
 
10621
+ interface PaymentMethodDataInitPrzelewy24 {
10622
+ readonly type: 'init_przelewy24';
10623
+ readonly reference?: string;
10624
+ }
10625
+
10336
10626
  interface PaymentMethodDataInitSofort {
10337
10627
  readonly type: 'init_sofort';
10338
10628
  readonly reference?: string;
10339
10629
  }
10340
10630
 
10631
+ interface PaymentMethodDataInitTwint {
10632
+ readonly type: 'init_twint';
10633
+ readonly reference?: string;
10634
+ }
10635
+
10341
10636
  interface PaymentMethodDataOptionLogoSvg {
10342
10637
  readonly type: 'svg';
10343
10638
  readonly url: string;
@@ -10449,11 +10744,21 @@ declare namespace io.flow.v0.models {
10449
10744
  readonly merchant_of_record: io.flow.v0.enums.MerchantOfRecord;
10450
10745
  }
10451
10746
 
10747
+ interface PaymentMethodSummaryPrzelewy24 {
10748
+ readonly type: 'przelewy24';
10749
+ readonly merchant_of_record: io.flow.v0.enums.MerchantOfRecord;
10750
+ }
10751
+
10452
10752
  interface PaymentMethodSummarySofort {
10453
10753
  readonly type: 'sofort';
10454
10754
  readonly merchant_of_record: io.flow.v0.enums.MerchantOfRecord;
10455
10755
  }
10456
10756
 
10757
+ interface PaymentMethodSummaryTwint {
10758
+ readonly type: 'twint';
10759
+ readonly merchant_of_record: io.flow.v0.enums.MerchantOfRecord;
10760
+ }
10761
+
10457
10762
  interface PaymentOrderDetailsLineItem {
10458
10763
  readonly id?: string;
10459
10764
  readonly description: string;
@@ -14530,6 +14835,8 @@ declare namespace io.flow.v0.unions {
14530
14835
  | io.flow.v0.models.PaymentMethodDataInitPaypal
14531
14836
  | io.flow.v0.models.PaymentMethodDataInitIdeal
14532
14837
  | io.flow.v0.models.PaymentMethodDataInitSofort
14838
+ | io.flow.v0.models.PaymentMethodDataInitTwint
14839
+ | io.flow.v0.models.PaymentMethodDataInitPrzelewy24
14533
14840
  | io.flow.v0.models.PaymentMethodDataInitBancontact
14534
14841
  | io.flow.v0.models.PaymentMethodDataValidateApplepay
14535
14842
  | io.flow.v0.models.PaymentMethodDataAuthorizeCard
@@ -14558,6 +14865,8 @@ declare namespace io.flow.v0.unions {
14558
14865
  | io.flow.v0.models.PaymentMethodSummaryGooglepay
14559
14866
  | io.flow.v0.models.PaymentMethodSummaryPaypal
14560
14867
  | io.flow.v0.models.PaymentMethodSummaryIdeal
14868
+ | io.flow.v0.models.PaymentMethodSummaryTwint
14869
+ | io.flow.v0.models.PaymentMethodSummaryPrzelewy24
14561
14870
  | io.flow.v0.models.PaymentMethodSummarySofort
14562
14871
  | io.flow.v0.models.PaymentMethodSummaryBancontact;
14563
14872
 
@@ -16157,8 +16466,12 @@ export type PaymentMethodDataInitKlarna =
16157
16466
  io.flow.v0.models.PaymentMethodDataInitKlarna;
16158
16467
  export type PaymentMethodDataInitPaypal =
16159
16468
  io.flow.v0.models.PaymentMethodDataInitPaypal;
16469
+ export type PaymentMethodDataInitPrzelewy24 =
16470
+ io.flow.v0.models.PaymentMethodDataInitPrzelewy24;
16160
16471
  export type PaymentMethodDataInitSofort =
16161
16472
  io.flow.v0.models.PaymentMethodDataInitSofort;
16473
+ export type PaymentMethodDataInitTwint =
16474
+ io.flow.v0.models.PaymentMethodDataInitTwint;
16162
16475
  export type PaymentMethodDataOptionLogo =
16163
16476
  io.flow.v0.unions.PaymentMethodDataOptionLogo;
16164
16477
  export type PaymentMethodDataOptionLogoSvg =
@@ -16202,8 +16515,12 @@ export type PaymentMethodSummaryKlarna =
16202
16515
  io.flow.v0.models.PaymentMethodSummaryKlarna;
16203
16516
  export type PaymentMethodSummaryPaypal =
16204
16517
  io.flow.v0.models.PaymentMethodSummaryPaypal;
16518
+ export type PaymentMethodSummaryPrzelewy24 =
16519
+ io.flow.v0.models.PaymentMethodSummaryPrzelewy24;
16205
16520
  export type PaymentMethodSummarySofort =
16206
16521
  io.flow.v0.models.PaymentMethodSummarySofort;
16522
+ export type PaymentMethodSummaryTwint =
16523
+ io.flow.v0.models.PaymentMethodSummaryTwint;
16207
16524
  export type PaymentMethodTag = io.flow.v0.unions.PaymentMethodTag;
16208
16525
  export type PaymentMethodType = io.flow.v0.enums.PaymentMethodType;
16209
16526
  export type PaymentOrderDetailsLineItem =