@flowio/api-types 0.0.228 → 0.0.229

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.
@@ -7,7 +7,7 @@ declare namespace io.flow.payment.gateway.v0.enums {
7
7
  type PaymentRequestReviewCheckType = 'restricted_party_screening' | 'fraud_suspicious_behavior' | 'fraud_suspicious_past_activity' | 'fraud_risky_velocity' | 'fraud_previous_chargebacks' | 'order_restricted_goods' | 'order_unsupported_destination' | 'order_missing_information' | 'order_domestic' | 'order_mismatched_currencies' | 'order_missing';
8
8
  type PaymentRequestReviewStatus = 'pending' | 'approved' | 'rejected';
9
9
  type PaymentStatus = 'requires_payment_method' | 'requires_action' | 'processing' | 'cancelled' | 'expired' | 'authorized' | 'reversed' | 'captured' | 'refunded' | 'in_dispute' | 'charged_back';
10
- type PaymentType = 'card' | 'klarna' | 'googlepay' | 'paypal' | 'applepay' | 'ideal' | 'sofort' | 'afterpay' | 'bancontact';
10
+ type PaymentType = 'card' | 'klarna' | 'googlepay' | 'paypal' | 'applepay' | 'ideal' | 'sofort' | 'afterpay' | 'bancontact' | 'twint' | 'przelewy24';
11
11
  }
12
12
 
13
13
  declare namespace io.flow.payment.gateway.v0.models {
@@ -398,11 +398,21 @@ declare namespace io.flow.payment.gateway.v0.models {
398
398
  readonly 'reference'?: string;
399
399
  }
400
400
 
401
+ interface PaymentMethodDataInitPrzelewy24 {
402
+ readonly 'type': 'init_przelewy24';
403
+ readonly 'reference'?: string;
404
+ }
405
+
401
406
  interface PaymentMethodDataInitSofort {
402
407
  readonly 'type': 'init_sofort';
403
408
  readonly 'reference'?: string;
404
409
  }
405
410
 
411
+ interface PaymentMethodDataInitTwint {
412
+ readonly 'type': 'init_twint';
413
+ readonly 'reference'?: string;
414
+ }
415
+
406
416
  interface PaymentMethodDataOptionLogoSvg {
407
417
  readonly 'type': 'svg';
408
418
  readonly 'url': string;
@@ -481,11 +491,21 @@ declare namespace io.flow.payment.gateway.v0.models {
481
491
  readonly 'merchant_of_record': io.flow.common.v0.enums.MerchantOfRecord;
482
492
  }
483
493
 
494
+ interface PaymentMethodSummaryPrzelewy24 {
495
+ readonly 'type': 'przelewy24';
496
+ readonly 'merchant_of_record': io.flow.common.v0.enums.MerchantOfRecord;
497
+ }
498
+
484
499
  interface PaymentMethodSummarySofort {
485
500
  readonly 'type': 'sofort';
486
501
  readonly 'merchant_of_record': io.flow.common.v0.enums.MerchantOfRecord;
487
502
  }
488
503
 
504
+ interface PaymentMethodSummaryTwint {
505
+ readonly 'type': 'twint';
506
+ readonly 'merchant_of_record': io.flow.common.v0.enums.MerchantOfRecord;
507
+ }
508
+
489
509
  interface PaymentOrderDetailsLineItem {
490
510
  readonly 'id'?: string;
491
511
  readonly 'description': string;
@@ -635,12 +655,12 @@ declare namespace io.flow.payment.gateway.v0.unions {
635
655
  type OrderInformation = (io.flow.payment.gateway.v0.models.OrderInformationFlow | io.flow.payment.gateway.v0.models.OrderInformationDetails);
636
656
  type PaymentCaptureOption = (io.flow.payment.gateway.v0.models.PaymentCaptureOptionAutomaticImmediate | io.flow.payment.gateway.v0.models.PaymentCaptureOptionManual);
637
657
  type PaymentMethodCard = (io.flow.payment.gateway.v0.models.PaymentMethodCardPciDetails | io.flow.payment.gateway.v0.models.PaymentMethodCardToken);
638
- type PaymentMethodData = (io.flow.payment.gateway.v0.models.PaymentMethodDataInitKlarna | io.flow.payment.gateway.v0.models.PaymentMethodDataInitAfterpay | io.flow.payment.gateway.v0.models.PaymentMethodDataInitApplepay | io.flow.payment.gateway.v0.models.PaymentMethodDataInitGooglepay | io.flow.payment.gateway.v0.models.PaymentMethodDataInitPaypal | io.flow.payment.gateway.v0.models.PaymentMethodDataInitIdeal | io.flow.payment.gateway.v0.models.PaymentMethodDataInitSofort | io.flow.payment.gateway.v0.models.PaymentMethodDataInitBancontact | io.flow.payment.gateway.v0.models.PaymentMethodDataValidateApplepay | io.flow.payment.gateway.v0.models.PaymentMethodDataAuthorizeCard | io.flow.payment.gateway.v0.models.PaymentMethodDataAuthorizeGooglepay | io.flow.payment.gateway.v0.models.PaymentMethodDataAuthorizeApplepay | io.flow.payment.gateway.v0.models.PaymentMethodDataAuthorizePaypal | io.flow.payment.gateway.v0.models.PaymentMethodDataAuthorizeKlarna | io.flow.payment.gateway.v0.models.PaymentMethodDataSelectedPaymentOption | io.flow.payment.gateway.v0.models.PaymentMethodDataCompleteAuthorizationCard);
658
+ type PaymentMethodData = (io.flow.payment.gateway.v0.models.PaymentMethodDataInitKlarna | io.flow.payment.gateway.v0.models.PaymentMethodDataInitAfterpay | io.flow.payment.gateway.v0.models.PaymentMethodDataInitApplepay | io.flow.payment.gateway.v0.models.PaymentMethodDataInitGooglepay | io.flow.payment.gateway.v0.models.PaymentMethodDataInitPaypal | io.flow.payment.gateway.v0.models.PaymentMethodDataInitIdeal | io.flow.payment.gateway.v0.models.PaymentMethodDataInitSofort | io.flow.payment.gateway.v0.models.PaymentMethodDataInitTwint | io.flow.payment.gateway.v0.models.PaymentMethodDataInitPrzelewy24 | io.flow.payment.gateway.v0.models.PaymentMethodDataInitBancontact | io.flow.payment.gateway.v0.models.PaymentMethodDataValidateApplepay | io.flow.payment.gateway.v0.models.PaymentMethodDataAuthorizeCard | io.flow.payment.gateway.v0.models.PaymentMethodDataAuthorizeGooglepay | io.flow.payment.gateway.v0.models.PaymentMethodDataAuthorizeApplepay | io.flow.payment.gateway.v0.models.PaymentMethodDataAuthorizePaypal | io.flow.payment.gateway.v0.models.PaymentMethodDataAuthorizeKlarna | io.flow.payment.gateway.v0.models.PaymentMethodDataSelectedPaymentOption | io.flow.payment.gateway.v0.models.PaymentMethodDataCompleteAuthorizationCard);
639
659
  type PaymentMethodDataAuthorizeApplepayResult = (io.flow.payment.gateway.v0.models.PaymentMethodDataAuthorizeApplepayResultSuccess | io.flow.payment.gateway.v0.models.PaymentMethodDataAuthorizeApplepayResultFailure);
640
660
  type PaymentMethodDataAuthorizeKlarnaResult = (io.flow.payment.gateway.v0.models.PaymentMethodDataAuthorizeKlarnaResultSuccess | io.flow.payment.gateway.v0.models.PaymentMethodDataAuthorizeKlarnaResultFailure);
641
661
  type PaymentMethodDataOptionLogo = (io.flow.payment.gateway.v0.models.PaymentMethodDataOptionLogoSvg);
642
662
  type PaymentMethodStoredDetailsCard = (io.flow.payment.gateway.v0.models.PaymentMethodStoredDetailsCardInitial | io.flow.payment.gateway.v0.models.PaymentMethodStoredDetailsCardSubsequent);
643
- type PaymentMethodSummary = (io.flow.payment.gateway.v0.models.PaymentMethodSummaryCard | io.flow.payment.gateway.v0.models.PaymentMethodSummaryKlarna | io.flow.payment.gateway.v0.models.PaymentMethodSummaryAfterpay | io.flow.payment.gateway.v0.models.PaymentMethodSummaryApplepay | io.flow.payment.gateway.v0.models.PaymentMethodSummaryGooglepay | io.flow.payment.gateway.v0.models.PaymentMethodSummaryPaypal | io.flow.payment.gateway.v0.models.PaymentMethodSummaryIdeal | io.flow.payment.gateway.v0.models.PaymentMethodSummarySofort | io.flow.payment.gateway.v0.models.PaymentMethodSummaryBancontact);
663
+ type PaymentMethodSummary = (io.flow.payment.gateway.v0.models.PaymentMethodSummaryCard | io.flow.payment.gateway.v0.models.PaymentMethodSummaryKlarna | io.flow.payment.gateway.v0.models.PaymentMethodSummaryAfterpay | io.flow.payment.gateway.v0.models.PaymentMethodSummaryApplepay | io.flow.payment.gateway.v0.models.PaymentMethodSummaryGooglepay | io.flow.payment.gateway.v0.models.PaymentMethodSummaryPaypal | io.flow.payment.gateway.v0.models.PaymentMethodSummaryIdeal | io.flow.payment.gateway.v0.models.PaymentMethodSummaryTwint | io.flow.payment.gateway.v0.models.PaymentMethodSummaryPrzelewy24 | io.flow.payment.gateway.v0.models.PaymentMethodSummarySofort | io.flow.payment.gateway.v0.models.PaymentMethodSummaryBancontact);
644
664
  type PaymentRequestCancellationReason = (io.flow.payment.gateway.v0.models.PaymentRequestCancellationReasonOrderMissing);
645
665
  type SdkAdyenV3AuthenticationToken = (io.flow.payment.gateway.v0.models.AdyenV3FingerprintToken | io.flow.payment.gateway.v0.models.AdyenV3ChallengeToken);
646
666
  }
@@ -8,6 +8,7 @@ declare namespace io.flow.shopify.external.v0.enums {
8
8
  type Format = 'json' | 'xml';
9
9
  type FulfillmentService = 'manual' | 'gift_card';
10
10
  type FulfillmentStatusType = 'fulfilled' | 'null' | 'partial';
11
+ type GraphqlWeightUnit = 'GRAMS' | 'KILOGRAMS' | 'OUNCES' | 'POUNDS';
11
12
  type InventoryBehaviour = 'bypass' | 'decrement_ignoring_policy' | 'decrement_obeying_policy';
12
13
  type InventoryManagement = 'blank' | 'shopify';
13
14
  type InventoryPolicy = 'deny' | 'continue';
@@ -56,6 +57,74 @@ declare namespace io.flow.shopify.external.v0.models {
56
57
  readonly 'count': number;
57
58
  }
58
59
 
60
+ interface GraphqlInventoryItem {
61
+ readonly 'id': string;
62
+ readonly 'tracked': boolean;
63
+ readonly 'requiresShipping'?: boolean;
64
+ readonly 'measurement': io.flow.shopify.external.v0.models.GraphqlMeasurement;
65
+ }
66
+
67
+ interface GraphqlMeasurement {
68
+ readonly 'weight': io.flow.shopify.external.v0.models.GraphqlWeight;
69
+ }
70
+
71
+ interface GraphqlOption {
72
+ readonly 'id': string;
73
+ readonly 'values': string[];
74
+ readonly 'name': string;
75
+ readonly 'position': number;
76
+ }
77
+
78
+ interface GraphqlProduct {
79
+ readonly 'id': string;
80
+ readonly 'legacyResourceId': string;
81
+ readonly 'handle': string;
82
+ readonly 'variants'?: io.flow.shopify.external.v0.models.GraphqlProductVariant[];
83
+ readonly 'images': io.flow.shopify.external.v0.models.GraphqlProductImage[];
84
+ readonly 'title': string;
85
+ readonly 'vendor'?: string;
86
+ readonly 'descriptionHtml'?: string;
87
+ readonly 'productType'?: string;
88
+ readonly 'status'?: string;
89
+ readonly 'options': io.flow.shopify.external.v0.models.GraphqlOption[];
90
+ readonly 'tags'?: string[];
91
+ readonly 'templateSuffix'?: string;
92
+ readonly 'publishedAt'?: string;
93
+ readonly 'createdAt': string;
94
+ readonly 'updatedAt': string;
95
+ readonly 'hasVariantsThatRequiresComponents'?: boolean;
96
+ }
97
+
98
+ interface GraphqlProductImage {
99
+ readonly 'id': string;
100
+ readonly 'url': string;
101
+ readonly 'altText'?: string;
102
+ }
103
+
104
+ interface GraphqlProductVariant {
105
+ readonly 'id': string;
106
+ readonly 'legacyResourceId': string;
107
+ readonly 'sku'?: string;
108
+ readonly 'price': string;
109
+ readonly 'title': string;
110
+ readonly 'taxable': boolean;
111
+ readonly 'compareAtPrice'?: string;
112
+ readonly 'barcode'?: string;
113
+ readonly 'inventoryPolicy': io.flow.shopify.external.v0.enums.InventoryPolicy;
114
+ readonly 'inventoryQuantity'?: number;
115
+ readonly 'image'?: io.flow.shopify.external.v0.models.GraphqlVariantImage;
116
+ readonly 'inventoryItem': io.flow.shopify.external.v0.models.GraphqlInventoryItem;
117
+ }
118
+
119
+ interface GraphqlVariantImage {
120
+ readonly 'id': string;
121
+ }
122
+
123
+ interface GraphqlWeight {
124
+ readonly 'unit': io.flow.shopify.external.v0.enums.GraphqlWeightUnit;
125
+ readonly 'value': number;
126
+ }
127
+
59
128
  interface Metafield {
60
129
  readonly 'id': number;
61
130
  readonly 'key': string;
@@ -159,7 +228,7 @@ declare namespace io.flow.shopify.external.v0.models {
159
228
  readonly 'options': io.flow.shopify.external.v0.models.Option[];
160
229
  readonly 'tags'?: string;
161
230
  readonly 'template_suffix'?: string;
162
- readonly 'published_scope': io.flow.shopify.external.v0.enums.PublishedScope;
231
+ readonly 'published_scope'?: io.flow.shopify.external.v0.enums.PublishedScope;
163
232
  readonly 'published_at'?: string;
164
233
  readonly 'created_at': string;
165
234
  readonly 'updated_at': string;
@@ -175,9 +244,9 @@ declare namespace io.flow.shopify.external.v0.models {
175
244
  readonly 'product_id': number;
176
245
  readonly 'variant_ids': number[];
177
246
  readonly 'src'?: string;
178
- readonly 'position': number;
179
- readonly 'created_at': string;
180
- readonly 'updated_at': string;
247
+ readonly 'position'?: number;
248
+ readonly 'created_at'?: string;
249
+ readonly 'updated_at'?: string;
181
250
  readonly 'alt'?: string;
182
251
  }
183
252
 
@@ -203,7 +272,7 @@ declare namespace io.flow.shopify.external.v0.models {
203
272
  readonly 'option1'?: string;
204
273
  readonly 'option2'?: string;
205
274
  readonly 'option3'?: string;
206
- readonly 'requires_shipping': boolean;
275
+ readonly 'requires_shipping'?: boolean;
207
276
  readonly 'metafields'?: io.flow.shopify.external.v0.models.Metafield[];
208
277
  }
209
278
 
@@ -344,6 +413,11 @@ declare namespace io.flow.shopify.external.v0.models {
344
413
  readonly 'user_agent'?: string;
345
414
  }
346
415
 
416
+ interface ShopifyCountryHarmonizedSystemCode {
417
+ readonly 'country_code': string;
418
+ readonly 'harmonized_system_code': string;
419
+ }
420
+
347
421
  interface ShopifyCustomer {
348
422
  readonly 'id': number;
349
423
  readonly 'addresses': io.flow.shopify.external.v0.models.ShopifyCustomerAddress[];
@@ -564,6 +638,14 @@ declare namespace io.flow.shopify.external.v0.models {
564
638
  readonly 'id': number;
565
639
  }
566
640
 
641
+ interface ShopifyInventoryItemSummary {
642
+ readonly 'country_code_of_origin'?: string;
643
+ readonly 'country_harmonized_system_codes'?: io.flow.shopify.external.v0.models.ShopifyCountryHarmonizedSystemCode[];
644
+ readonly 'harmonized_system_code'?: string;
645
+ readonly 'updated_at': string;
646
+ readonly 'requires_shipping': boolean;
647
+ }
648
+
567
649
  interface ShopifyInventoryLevel {
568
650
  readonly 'inventory_item_id': number;
569
651
  readonly 'location_id': number;
@@ -128,8 +128,24 @@ declare namespace io.flow.shopify.markets.internal.event.v0.models {
128
128
  readonly 'organization': string;
129
129
  readonly 'registration': io.flow.shopify.markets.internal.v0.models.ShopifyMarketsWebhookRegistration;
130
130
  }
131
+
132
+ interface ShopifyProductBundleDeleted {
133
+ readonly 'discriminator': 'shopify_product_bundle_deleted';
134
+ readonly 'event_id': string;
135
+ readonly 'timestamp': string;
136
+ readonly 'organization': string;
137
+ readonly 'id': string;
138
+ }
139
+
140
+ interface ShopifyProductBundleUpserted {
141
+ readonly 'discriminator': 'shopify_product_bundle_upserted';
142
+ readonly 'event_id': string;
143
+ readonly 'timestamp': string;
144
+ readonly 'organization': string;
145
+ readonly 'shopify_product_bundle': io.flow.shopify.markets.internal.v0.models.ShopifyProductBundle;
146
+ }
131
147
  }
132
148
 
133
149
  declare namespace io.flow.shopify.markets.internal.event.v0.unions {
134
- 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 | io.flow.shopify.markets.internal.event.v0.models.ChannelOrganizationIdentifierUpserted | io.flow.shopify.markets.internal.event.v0.models.ChannelOrganizationIdentifierDeleted | io.flow.shopify.markets.internal.event.v0.models.OrderTaxAndDutyInclusivitySettingUpserted | io.flow.shopify.markets.internal.event.v0.models.OrderTaxAndDutyInclusivitySettingDeleted);
150
+ 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 | io.flow.shopify.markets.internal.event.v0.models.ChannelOrganizationIdentifierUpserted | io.flow.shopify.markets.internal.event.v0.models.ChannelOrganizationIdentifierDeleted | io.flow.shopify.markets.internal.event.v0.models.OrderTaxAndDutyInclusivitySettingUpserted | io.flow.shopify.markets.internal.event.v0.models.OrderTaxAndDutyInclusivitySettingDeleted | io.flow.shopify.markets.internal.event.v0.models.ShopifyProductBundleUpserted | io.flow.shopify.markets.internal.event.v0.models.ShopifyProductBundleDeleted);
135
151
  }
@@ -47,6 +47,12 @@ declare namespace io.flow.shopify.markets.internal.v0.models {
47
47
  readonly 'next_action_from': io.flow.channel.internal.v0.enums.ChannelOrderAcceptanceNextActionFrom;
48
48
  }
49
49
 
50
+ interface InventoryItemWrapper {
51
+ readonly 'inventory_item_id': number;
52
+ readonly 'shopify_shop_id': number;
53
+ readonly 'shopify_inventory_item': io.flow.shopify.external.v0.models.ShopifyInventoryItemSummary;
54
+ }
55
+
50
56
  interface MarketsOrder {
51
57
  readonly 'shopify_order': io.flow.shopify.markets.v0.models.ShopifyOrder;
52
58
  readonly 'flow_authorization'?: io.flow.payment.v0.unions.Authorization;
@@ -188,6 +194,20 @@ declare namespace io.flow.shopify.markets.internal.v0.models {
188
194
  readonly 'order_note'?: string;
189
195
  }
190
196
 
197
+ interface ShopifyProductBundle {
198
+ readonly 'id': string;
199
+ readonly 'underlying': io.flow.shopify.markets.internal.v0.models.ShopifyProductBundleUnderlying;
200
+ }
201
+
202
+ interface ShopifyProductBundleUnderlying {
203
+ readonly 'product_ids': string[];
204
+ }
205
+
206
+ interface ShopifyProductWrapper {
207
+ readonly 'shopify_product': io.flow.shopify.external.v0.models.Product;
208
+ readonly 'deleted_at'?: string;
209
+ }
210
+
191
211
  interface ShopifyShopStatistics {
192
212
  readonly 'id': string;
193
213
  readonly 'initial_catalog_synced_at'?: string;
@@ -1,6 +1,7 @@
1
1
  declare namespace io.flow.stripe.v0.enums {
2
2
  type AccountType = 'platform' | 'custom' | 'standard' | 'express';
3
3
  type ApplePayType = 'apple_pay' | 'apple_pay_later';
4
+ type BalanceTransactionType = 'adjustment' | 'advance' | 'advance_funding' | 'anticipation_repayment' | 'application_fee' | 'application_fee_refund' | 'charge' | 'climate_order_purchase' | 'climate_order_refund' | 'connect_collection_transfer' | 'contribution' | 'issuing_authorization_hold' | 'issuing_authorization_release' | 'issuing_dispute' | 'issuing_transaction' | 'obligation_outbound' | 'obligation_reversal_inbound' | 'payment' | 'payment_failure_refund' | 'payment_network_reserve_hold' | 'payment_network_reserve_release' | 'payment_refund' | 'payment_reversal' | 'payment_unreconciled' | 'payout' | 'payout_cancel' | 'payout_failure' | 'refund' | 'refund_failure' | 'reserve_transaction' | 'reserved_funds' | 'stripe_fee' | 'stripe_fx_fee' | 'tax_fee' | 'topup' | 'topup_reversal' | 'transfer' | 'transfer_cancel' | 'transfer_failure' | 'transfer_refund';
4
5
  type BankIdeal = 'abn_amro' | 'asn_bank' | 'bunq' | 'handelsbanken' | 'ing' | 'knab' | 'moneyou' | 'n26' | 'nn' | 'rabobank' | 'regiobank' | 'revolut' | 'sns_bank' | 'triodos_bank' | 'van_lanschot' | 'yoursafe';
5
6
  type BicIdeal = 'ABNANL2A' | 'ASNBNL21' | 'BITSNL2A' | 'BUNQNL2A' | 'FVLBNL22' | 'HANDNL2A' | 'INGBNL2A' | 'KNABNL2H' | 'MOYONL21' | 'NNBANL2G' | 'NTSBDEB1' | 'RABONL2U' | 'RBRBNL21' | 'REVOIE23' | 'REVOLT21' | 'SNSBNL2A' | 'TRIONL2U';
6
7
  type CancellationReason = 'abandoned' | 'automatic' | 'duplicate' | 'failed_invoice' | 'fraudulent' | 'requested_by_customer' | 'void_invoice';
@@ -272,13 +273,13 @@ declare namespace io.flow.stripe.v0.models {
272
273
  readonly 'amount': number;
273
274
  readonly 'charge': string;
274
275
  readonly 'currency': string;
275
- readonly 'evidence': any/*object*/;
276
+ readonly 'evidence': io.flow.stripe.v0.models.DisputeEvidence;
276
277
  readonly 'metadata': Record<string, string>;
277
278
  readonly 'payment_intent'?: string;
278
279
  readonly 'reason': io.flow.stripe.v0.enums.DisputeReason;
279
280
  readonly 'status': io.flow.stripe.v0.enums.DisputeStatus;
280
281
  readonly 'object': string;
281
- readonly 'balance_transactions': any/*object*/[];
282
+ readonly 'balance_transactions': io.flow.stripe.v0.models.DisputeBalanceTransaction[];
282
283
  readonly 'created': number;
283
284
  readonly 'evidence_details': io.flow.stripe.v0.models.DisputeEvidenceDetails;
284
285
  readonly 'is_charge_refundable': boolean;
@@ -286,6 +287,63 @@ declare namespace io.flow.stripe.v0.models {
286
287
  readonly 'payment_method_details'?: io.flow.stripe.v0.models.DisputePaymentMethodDetails;
287
288
  }
288
289
 
290
+ interface DisputeBalanceTransaction {
291
+ readonly 'payment_intent'?: string;
292
+ readonly 'id': string;
293
+ readonly 'object': string;
294
+ readonly 'amount': number;
295
+ readonly 'available_on': number;
296
+ readonly 'created': number;
297
+ readonly 'currency': string;
298
+ readonly 'description'?: string;
299
+ readonly 'exchange_rate'?: number;
300
+ readonly 'fee'?: number;
301
+ readonly 'fee_details': io.flow.stripe.v0.models.DisputeBalanceTransactionFeeDetails[];
302
+ readonly 'net': number;
303
+ readonly 'reporting_category': string;
304
+ readonly 'source'?: string;
305
+ readonly 'status': string;
306
+ readonly 'type': io.flow.stripe.v0.enums.BalanceTransactionType;
307
+ }
308
+
309
+ interface DisputeBalanceTransactionFeeDetails {
310
+ readonly 'amount': number;
311
+ readonly 'application'?: string;
312
+ readonly 'currency': string;
313
+ readonly 'description'?: string;
314
+ readonly 'type': string;
315
+ }
316
+
317
+ interface DisputeEvidence {
318
+ readonly 'access_activity_log'?: string;
319
+ readonly 'billing_address'?: string;
320
+ readonly 'cancellation_policy'?: string;
321
+ readonly 'cancellation_policy_disclosure'?: string;
322
+ readonly 'cancellation_rebuttal'?: string;
323
+ readonly 'customer_communication'?: string;
324
+ readonly 'customer_email_address'?: string;
325
+ readonly 'customer_name'?: string;
326
+ readonly 'evidence.customer_purchase_ip'?: string;
327
+ readonly 'customer_signature'?: string;
328
+ readonly 'duplicate_charge_documentation'?: string;
329
+ readonly 'duplicate_charge_explanation'?: string;
330
+ readonly 'duplicate_charge_id'?: string;
331
+ readonly 'product_description'?: string;
332
+ readonly 'receipt'?: string;
333
+ readonly 'refund_policy'?: string;
334
+ readonly 'refund_policy_disclosure'?: string;
335
+ readonly 'refund_refusal_explanation'?: string;
336
+ readonly 'service_date'?: string;
337
+ readonly 'service_documentation'?: string;
338
+ readonly 'shipping_address'?: string;
339
+ readonly 'shipping_carrier'?: string;
340
+ readonly 'shipping_date'?: string;
341
+ readonly 'shipping_documentation'?: string;
342
+ readonly 'shipping_tracking_number'?: string;
343
+ readonly 'uncategorized_file'?: string;
344
+ readonly 'uncategorized_text'?: string;
345
+ }
346
+
289
347
  interface DisputeEvidenceDetails {
290
348
  readonly 'due_by'?: number;
291
349
  readonly 'has_evidence': boolean;
@@ -136,7 +136,7 @@ declare namespace io.flow.v0.enums {
136
136
  type PaymentRequestReviewStatus = 'pending' | 'approved' | 'rejected';
137
137
  type PaymentSourceConfirmationActionType = 'cvv' | 'billing_address' | 'number';
138
138
  type PaymentStatus = 'requires_payment_method' | 'requires_action' | 'processing' | 'cancelled' | 'expired' | 'authorized' | 'reversed' | 'captured' | 'refunded' | 'in_dispute' | 'charged_back';
139
- type PaymentType = 'card' | 'klarna' | 'googlepay' | 'paypal' | 'applepay' | 'ideal' | 'sofort' | 'afterpay' | 'bancontact';
139
+ type PaymentType = 'card' | 'klarna' | 'googlepay' | 'paypal' | 'applepay' | 'ideal' | 'sofort' | 'afterpay' | 'bancontact' | 'twint' | 'przelewy24';
140
140
  type PayoutAttachmentType = 'transactions';
141
141
  type PayoutStatusFailureCode = 'invalid_account_number' | 'account_closed' | 'could_not_process';
142
142
  type PendingPayoutTransactionReasonCode = 'waiting_for_full_refund' | 'waiting_for_fulfillment' | 'waiting_for_in_transit' | 'waiting_for_next_payout_date' | 'waiting_for_tracking_info' | 'waiting_for_positive_account_balance';
@@ -6784,11 +6784,21 @@ declare namespace io.flow.v0.models {
6784
6784
  readonly 'reference'?: string;
6785
6785
  }
6786
6786
 
6787
+ interface PaymentMethodDataInitPrzelewy24 {
6788
+ readonly 'type': 'init_przelewy24';
6789
+ readonly 'reference'?: string;
6790
+ }
6791
+
6787
6792
  interface PaymentMethodDataInitSofort {
6788
6793
  readonly 'type': 'init_sofort';
6789
6794
  readonly 'reference'?: string;
6790
6795
  }
6791
6796
 
6797
+ interface PaymentMethodDataInitTwint {
6798
+ readonly 'type': 'init_twint';
6799
+ readonly 'reference'?: string;
6800
+ }
6801
+
6792
6802
  interface PaymentMethodDataOptionLogoSvg {
6793
6803
  readonly 'type': 'svg';
6794
6804
  readonly 'url': string;
@@ -6900,11 +6910,21 @@ declare namespace io.flow.v0.models {
6900
6910
  readonly 'merchant_of_record': io.flow.v0.enums.MerchantOfRecord;
6901
6911
  }
6902
6912
 
6913
+ interface PaymentMethodSummaryPrzelewy24 {
6914
+ readonly 'type': 'przelewy24';
6915
+ readonly 'merchant_of_record': io.flow.v0.enums.MerchantOfRecord;
6916
+ }
6917
+
6903
6918
  interface PaymentMethodSummarySofort {
6904
6919
  readonly 'type': 'sofort';
6905
6920
  readonly 'merchant_of_record': io.flow.v0.enums.MerchantOfRecord;
6906
6921
  }
6907
6922
 
6923
+ interface PaymentMethodSummaryTwint {
6924
+ readonly 'type': 'twint';
6925
+ readonly 'merchant_of_record': io.flow.v0.enums.MerchantOfRecord;
6926
+ }
6927
+
6908
6928
  interface PaymentOrderDetailsLineItem {
6909
6929
  readonly 'id'?: string;
6910
6930
  readonly 'description': string;
@@ -10595,12 +10615,12 @@ declare namespace io.flow.v0.unions {
10595
10615
  type PaymentCaptureOption = (io.flow.v0.models.PaymentCaptureOptionAutomaticImmediate | io.flow.v0.models.PaymentCaptureOptionManual);
10596
10616
  type PaymentForm = (io.flow.v0.models.MerchantOfRecordPaymentForm);
10597
10617
  type PaymentMethodCard = (io.flow.v0.models.PaymentMethodCardPciDetails | io.flow.v0.models.PaymentMethodCardToken);
10598
- type PaymentMethodData = (io.flow.v0.models.PaymentMethodDataInitKlarna | io.flow.v0.models.PaymentMethodDataInitAfterpay | io.flow.v0.models.PaymentMethodDataInitApplepay | io.flow.v0.models.PaymentMethodDataInitGooglepay | io.flow.v0.models.PaymentMethodDataInitPaypal | io.flow.v0.models.PaymentMethodDataInitIdeal | io.flow.v0.models.PaymentMethodDataInitSofort | io.flow.v0.models.PaymentMethodDataInitBancontact | io.flow.v0.models.PaymentMethodDataValidateApplepay | io.flow.v0.models.PaymentMethodDataAuthorizeCard | io.flow.v0.models.PaymentMethodDataAuthorizeGooglepay | io.flow.v0.models.PaymentMethodDataAuthorizeApplepay | io.flow.v0.models.PaymentMethodDataAuthorizePaypal | io.flow.v0.models.PaymentMethodDataAuthorizeKlarna | io.flow.v0.models.PaymentMethodDataSelectedPaymentOption | io.flow.v0.models.PaymentMethodDataCompleteAuthorizationCard);
10618
+ type PaymentMethodData = (io.flow.v0.models.PaymentMethodDataInitKlarna | io.flow.v0.models.PaymentMethodDataInitAfterpay | io.flow.v0.models.PaymentMethodDataInitApplepay | io.flow.v0.models.PaymentMethodDataInitGooglepay | io.flow.v0.models.PaymentMethodDataInitPaypal | io.flow.v0.models.PaymentMethodDataInitIdeal | io.flow.v0.models.PaymentMethodDataInitSofort | io.flow.v0.models.PaymentMethodDataInitTwint | io.flow.v0.models.PaymentMethodDataInitPrzelewy24 | io.flow.v0.models.PaymentMethodDataInitBancontact | io.flow.v0.models.PaymentMethodDataValidateApplepay | io.flow.v0.models.PaymentMethodDataAuthorizeCard | io.flow.v0.models.PaymentMethodDataAuthorizeGooglepay | io.flow.v0.models.PaymentMethodDataAuthorizeApplepay | io.flow.v0.models.PaymentMethodDataAuthorizePaypal | io.flow.v0.models.PaymentMethodDataAuthorizeKlarna | io.flow.v0.models.PaymentMethodDataSelectedPaymentOption | io.flow.v0.models.PaymentMethodDataCompleteAuthorizationCard);
10599
10619
  type PaymentMethodDataAuthorizeApplepayResult = (io.flow.v0.models.PaymentMethodDataAuthorizeApplepayResultSuccess | io.flow.v0.models.PaymentMethodDataAuthorizeApplepayResultFailure);
10600
10620
  type PaymentMethodDataAuthorizeKlarnaResult = (io.flow.v0.models.PaymentMethodDataAuthorizeKlarnaResultSuccess | io.flow.v0.models.PaymentMethodDataAuthorizeKlarnaResultFailure);
10601
10621
  type PaymentMethodDataOptionLogo = (io.flow.v0.models.PaymentMethodDataOptionLogoSvg);
10602
10622
  type PaymentMethodStoredDetailsCard = (io.flow.v0.models.PaymentMethodStoredDetailsCardInitial | io.flow.v0.models.PaymentMethodStoredDetailsCardSubsequent);
10603
- type PaymentMethodSummary = (io.flow.v0.models.PaymentMethodSummaryCard | io.flow.v0.models.PaymentMethodSummaryKlarna | io.flow.v0.models.PaymentMethodSummaryAfterpay | io.flow.v0.models.PaymentMethodSummaryApplepay | io.flow.v0.models.PaymentMethodSummaryGooglepay | io.flow.v0.models.PaymentMethodSummaryPaypal | io.flow.v0.models.PaymentMethodSummaryIdeal | io.flow.v0.models.PaymentMethodSummarySofort | io.flow.v0.models.PaymentMethodSummaryBancontact);
10623
+ type PaymentMethodSummary = (io.flow.v0.models.PaymentMethodSummaryCard | io.flow.v0.models.PaymentMethodSummaryKlarna | io.flow.v0.models.PaymentMethodSummaryAfterpay | io.flow.v0.models.PaymentMethodSummaryApplepay | io.flow.v0.models.PaymentMethodSummaryGooglepay | io.flow.v0.models.PaymentMethodSummaryPaypal | io.flow.v0.models.PaymentMethodSummaryIdeal | io.flow.v0.models.PaymentMethodSummaryTwint | io.flow.v0.models.PaymentMethodSummaryPrzelewy24 | io.flow.v0.models.PaymentMethodSummarySofort | io.flow.v0.models.PaymentMethodSummaryBancontact);
10604
10624
 
10605
10625
  type PaymentMethodTag = ({
10606
10626
  discriminator: 'organization_payment_method_tag',
package/index.d.ts CHANGED
@@ -2,11 +2,7 @@
2
2
  /// <reference path="generated/io.flow.adyen.v0.adyen.d.ts" />
3
3
  /// <reference path="generated/io.flow.apple.pay.v0.apple-pay.d.ts" />
4
4
  /// <reference path="generated/io.flow.ben.test.internal.v0.ben-test-internal.d.ts" />
5
- /// <reference path="generated/io.flow.billing.accounting.v0.billing-accounting.d.ts" />
6
5
  /// <reference path="generated/io.flow.billing.bank.account.v0.billing-bank-account.d.ts" />
7
- /// <reference path="generated/io.flow.billing.internal.v0.billing-internal.d.ts" />
8
- /// <reference path="generated/io.flow.billing.reporting.csv.v0.billing-reporting-csv.d.ts" />
9
- /// <reference path="generated/io.flow.billing.reporting.v0.billing-reporting.d.ts" />
10
6
  /// <reference path="generated/io.flow.billing.v0.billing.d.ts" />
11
7
  /// <reference path="generated/io.flow.bitpay.v0.bitpay.d.ts" />
12
8
  /// <reference path="generated/io.flow.brickftp.v0.brickftp.d.ts" />
@@ -34,7 +30,6 @@
34
30
  /// <reference path="generated/io.flow.harmonization.v0.harmonization.d.ts" />
35
31
  /// <reference path="generated/io.flow.internal.v0.api-internal.d.ts" />
36
32
  /// <reference path="generated/io.flow.inventory.v0.inventory.d.ts" />
37
- /// <reference path="generated/io.flow.invoice.v0.invoice.d.ts" />
38
33
  /// <reference path="generated/io.flow.item.v0.item.d.ts" />
39
34
  /// <reference path="generated/io.flow.label.v0.label.d.ts" />
40
35
  /// <reference path="generated/io.flow.merchant.of.record.v0.merchant-of-record.d.ts" />
@@ -46,7 +41,6 @@
46
41
  /// <reference path="generated/io.flow.organization.v0.organization.d.ts" />
47
42
  /// <reference path="generated/io.flow.partner.v0.partner.d.ts" />
48
43
  /// <reference path="generated/io.flow.payment.gateway.v0.payment-gateway.d.ts" />
49
- /// <reference path="generated/io.flow.payment.internal.v0.payment-internal.d.ts" />
50
44
  /// <reference path="generated/io.flow.payment.request.bundle.v0.payment-request-bundle.d.ts" />
51
45
  /// <reference path="generated/io.flow.payment.v0.payment.d.ts" />
52
46
  /// <reference path="generated/io.flow.permission.v0.permission.d.ts" />
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@flowio/api-types",
3
- "version": "0.0.228",
3
+ "version": "0.0.229",
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": "e2172791ebb0708545e2d68100656b52120f50e4"
17
+ "gitHead": "54b0e72a2a2a004dbc68536fa4f47e566426a56a"
18
18
  }