@flowio/types 11.24.76 → 11.24.78

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/dist/api.d.ts CHANGED
@@ -132,13 +132,13 @@ declare namespace io.flow.stripe.v0.enums {
132
132
  type CancellationReason = 'abandoned' | 'automatic' | 'duplicate' | 'failed_invoice' | 'fraudulent' | 'requested_by_customer' | 'void_invoice';
133
133
  type CaptureMethod = 'automatic' | 'manual';
134
134
  type CardBrand = 'American Express' | 'MasterCard' | 'Discover' | 'JCB' | 'Diners Club' | 'Unknown';
135
- type CardErrorCode = 'invalid_number' | 'invalid_expiry_month' | 'invalid_expiry_year' | 'invalid_cvc' | 'invalid_swipe_data' | 'incorrect_number' | 'expired_card' | 'incorrect_cvc' | 'incorrect_zip' | 'card_declined' | 'missing' | 'processing_error';
136
135
  type CardFundingType = 'credit' | 'debit' | 'prepaid' | 'unknown';
137
136
  type CardNetwork = 'amex' | 'cartes_bancaires' | 'diners' | 'discover' | 'eftpos_au' | 'interac' | 'jcb' | 'mastercard' | 'unionpay' | 'visa' | 'unknown';
138
137
  type CheckOutcome = 'pass' | 'fail' | 'unavailable' | 'unchecked';
139
138
  type CodeVerificationStatus = 'pending' | 'succeeded' | 'failed';
140
139
  type ConfirmationMethod = 'automatic' | 'manual';
141
- type DeclineCode = 'approve_with_id' | 'call_issuer' | 'card_not_supported' | 'card_velocity_exceeded' | 'currency_not_supported' | 'do_not_honor' | 'do_not_try_again' | 'duplicate_transaction' | 'expired_card' | 'fraudulent' | 'generic_decline' | 'incorrect_number' | 'incorrect_cvc' | 'incorrect_pin' | 'incorrect_zip' | 'insufficient_funds' | 'invalid_account' | 'invalid_amount' | 'invalid_cvc' | 'invalid_expiry_year' | 'invalid_number' | 'invalid_pin' | 'issuer_not_available' | 'lost_card' | 'new_account_information_available' | 'no_action_taken' | 'not_permitted' | 'pickup_card' | 'pin_try_exceeded' | 'processing_error' | 'reenter_transaction' | 'restricted_card' | 'revocation_of_all_authorizations' | 'revocation_of_authorization' | 'security_violation' | 'service_not_allowed' | 'stolen_card' | 'stop_payment_order' | 'testmode_decline' | 'transaction_not_allowed' | 'try_again_later' | 'withdrawal_count_limit_exceeded';
140
+ type DeclineCode = 'approve_with_id' | 'call_issuer' | 'card_not_supported' | 'card_velocity_exceeded' | 'currency_not_supported' | 'do_not_honor' | 'do_not_try_again' | 'duplicate_transaction' | 'expired_card' | 'fraudulent' | 'generic_decline' | 'incorrect_number' | 'incorrect_cvc' | 'incorrect_pin' | 'incorrect_zip' | 'insufficient_funds' | 'invalid_account' | 'invalid_amount' | 'invalid_cvc' | 'invalid_expiry_month' | 'invalid_expiry_year' | 'invalid_number' | 'invalid_pin' | 'issuer_not_available' | 'lost_card' | 'new_account_information_available' | 'no_action_taken' | 'not_permitted' | 'pickup_card' | 'pin_try_exceeded' | 'processing_error' | 'reenter_transaction' | 'restricted_card' | 'revocation_of_all_authorizations' | 'revocation_of_authorization' | 'security_violation' | 'service_not_allowed' | 'stolen_card' | 'stop_payment_order' | 'testmode_decline' | 'transaction_not_allowed' | 'try_again_later' | 'withdrawal_count_limit_exceeded';
141
+ type ErrorCode = 'invalid_number' | 'invalid_expiry_month' | 'invalid_expiry_year' | 'invalid_cvc' | 'invalid_swipe_data' | 'country_code_invalid' | 'email_invalid' | 'postal_code_invalid' | 'invalid_characters' | 'url_invalid' | 'invalid_charge_amount' | 'incorrect_number' | 'incorrect_address' | 'incorrect_cvc' | 'incorrect_zip' | 'card_declined' | 'expired_card' | 'missing' | 'processing_error' | 'account_closed' | 'amount_too_small' | 'amount_too_large' | 'api_key_expired' | 'authentication_required' | 'capture_charge_authorization_expired' | 'capture_unauthorized_payment' | 'card_decline_rate_limit_exceeded' | 'charge_already_captured' | 'charge_already_refunded' | 'charge_disputed' | 'charge_exceeds_source_limit' | 'charge_expired_for_capture' | 'charge_invalid_parameter' | 'charge_not_refundable' | 'insufficient_funds' | 'intent_invalid_state' | 'livemode_mismatch' | 'parameter_invalid_empty' | 'parameter_invalid_integer' | 'parameter_invalid_string_blank' | 'parameter_invalid_string_empty' | 'parameter_missing' | 'parameter_unknown' | 'parameters_exclusive' | 'payment_intent_action_required' | 'payment_intent_authentication_failure' | 'payment_intent_incompatible_payment_method' | 'payment_intent_payment_attempt_expired' | 'payment_intent_payment_attempt_failed' | 'payment_intent_unexpected_state' | 'payment_intent_invalid_parameter' | 'payment_method_billing_details_address_missing' | 'payment_method_customer_decline' | 'payment_method_currency_mismatch' | 'payment_method_invalid_parameter' | 'payment_method_invalid_parameter_testmode' | 'payment_method_not_available' | 'payment_method_provider_decline' | 'payment_method_provider_timeout' | 'payment_method_unactivated' | 'payment_method_unexpected_state' | 'payment_method_unsupported_type' | 'platform_api_key_expired' | 'refund_disputed_payment' | 'testmode_charges_only' | 'tls_version_unsupported' | 'setup_attempt_failed' | 'setup_intent_authentication_failure' | 'setup_intent_invalid_parameter' | 'setup_intent_setup_attempt_expired' | 'setup_intent_unexpected_state';
142
142
  type ErrorType = 'api_connection_error' | 'api_error' | 'authentication_error' | 'card_error' | 'idempotency_error' | 'invalid_request_error' | 'rate_limit_error' | 'validation_error';
143
143
  type EventType = 'charge.captured' | 'charge.failed' | 'charge.pending' | 'charge.refunded' | 'charge.expired' | 'charge.succeeded' | 'charge.updated' | 'charge.refund.updated' | 'payment_intent.created' | 'payment_intent.amount_capturable_updated' | 'payment_intent.payment_failed' | 'payment_intent.succeeded' | 'payment_intent.requires_action' | 'payment_intent.canceled' | 'payment_intent.processing' | 'source.canceled' | 'source.chargeable' | 'source.failed';
144
144
  type KlarnaPaymentMethodCategoryType = 'direct_bank_transfer' | 'direct_debit' | 'pay_later' | 'pay_now' | 'pay_over_time';
@@ -286,7 +286,7 @@ declare namespace io.flow.stripe.v0.models {
286
286
  readonly balance_transaction?: string;
287
287
  readonly destination?: string;
288
288
  readonly dispute?: string;
289
- readonly failure_code?: string;
289
+ readonly failure_code?: io.flow.stripe.v0.enums.ErrorCode;
290
290
  readonly failure_message?: string;
291
291
  readonly on_behalf_of?: string;
292
292
  readonly review?: string;
@@ -334,7 +334,7 @@ declare namespace io.flow.stripe.v0.models {
334
334
  readonly balance_transaction?: string;
335
335
  readonly destination?: string;
336
336
  readonly dispute?: string;
337
- readonly failure_code?: string;
337
+ readonly failure_code?: io.flow.stripe.v0.enums.ErrorCode;
338
338
  readonly failure_message?: string;
339
339
  readonly on_behalf_of?: string;
340
340
  readonly review?: string;
@@ -378,16 +378,6 @@ declare namespace io.flow.stripe.v0.models {
378
378
  readonly sub_merchant_id?: string;
379
379
  readonly product_category?: string;
380
380
  }
381
- interface LastPaymentError {
382
- readonly charge?: string;
383
- readonly code?: string;
384
- readonly decline_code?: io.flow.stripe.v0.enums.DeclineCode;
385
- readonly doc_url?: string;
386
- readonly message?: string;
387
- readonly param?: string;
388
- readonly payment_method: io.flow.stripe.v0.models.PaymentMethod;
389
- readonly type: io.flow.stripe.v0.enums.ErrorType;
390
- }
391
381
  interface LegalEntity {
392
382
  readonly additional_owners?: io.flow.stripe.v0.models.Owner[];
393
383
  }
@@ -479,7 +469,7 @@ declare namespace io.flow.stripe.v0.models {
479
469
  readonly customer?: string;
480
470
  readonly description?: string;
481
471
  readonly invoice?: string;
482
- readonly last_payment_error?: io.flow.stripe.v0.models.LastPaymentError;
472
+ readonly last_payment_error?: io.flow.stripe.v0.models.StripeError;
483
473
  readonly livemode: boolean;
484
474
  readonly metadata?: io.flow.stripe.v0.models.Metadata;
485
475
  readonly next_action?: io.flow.stripe.v0.models.NextAction;
@@ -660,9 +650,9 @@ declare namespace io.flow.stripe.v0.models {
660
650
  readonly mcc?: string;
661
651
  }
662
652
  interface PaymentOutcome {
663
- readonly network_status: io.flow.stripe.v0.enums.NetworkStatus;
664
- readonly risk_level: string;
665
- readonly seller_message: string;
653
+ readonly network_status?: io.flow.stripe.v0.enums.NetworkStatus;
654
+ readonly risk_level?: string;
655
+ readonly seller_message?: string;
666
656
  readonly reason?: string;
667
657
  readonly type?: io.flow.stripe.v0.enums.PaymentOutcomeType;
668
658
  }
@@ -843,10 +833,11 @@ declare namespace io.flow.stripe.v0.models {
843
833
  readonly type: io.flow.stripe.v0.enums.ErrorType;
844
834
  readonly charge?: string;
845
835
  readonly message?: string;
846
- readonly code?: io.flow.stripe.v0.enums.CardErrorCode;
847
- readonly decline_code?: string;
836
+ readonly code?: io.flow.stripe.v0.enums.ErrorCode;
837
+ readonly decline_code?: io.flow.stripe.v0.enums.DeclineCode;
848
838
  readonly param?: string;
849
839
  readonly payment_intent?: io.flow.stripe.v0.models.PaymentIntent;
840
+ readonly payment_method?: io.flow.stripe.v0.models.PaymentMethod;
850
841
  }
851
842
  interface StripeEvent {
852
843
  readonly id: string;
@@ -874,9 +865,12 @@ declare namespace io.flow.stripe.v0.models {
874
865
  interface ThreeDSecureCharge {
875
866
  readonly authenticated?: boolean;
876
867
  readonly authentication_flow?: io.flow.stripe.v0.enums.ThreeDsAuthenticationFlow;
868
+ readonly electronic_commerce_indicator?: string;
869
+ readonly exemption_indicator?: string;
877
870
  readonly result?: io.flow.stripe.v0.enums.ThreeDsResult;
878
871
  readonly result_reason?: io.flow.stripe.v0.enums.ThreeDsResultReason;
879
872
  readonly succeeded?: boolean;
873
+ readonly transaction_id?: string;
880
874
  readonly version?: string;
881
875
  }
882
876
  interface ThreeDSecureRedirect {
@@ -10534,6 +10528,7 @@ declare namespace io.flow.v0.models {
10534
10528
  }
10535
10529
  interface TransactionMetadataManual {
10536
10530
  readonly discriminator: 'manual';
10531
+ readonly description: string;
10537
10532
  readonly original?: io.flow.v0.models.TransactionMetadataOriginalTransaction;
10538
10533
  readonly url?: string;
10539
10534
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@flowio/types",
3
- "version": "11.24.76",
3
+ "version": "11.24.78",
4
4
  "description": "TypeScript type definitions for custom types found in Flow API",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -25,5 +25,5 @@
25
25
  "maintainers": [
26
26
  "Christian Muñoz <christian.munoz@flow.io>"
27
27
  ],
28
- "gitHead": "f59548a63c0d54be400548738dd1771e26ae7462"
28
+ "gitHead": "4b5d69bf9ba5f404b7b1c8f07d256db3c25210d9"
29
29
  }
@@ -2516,19 +2516,6 @@ declare namespace io.flow.stripe.v0.enums {
2516
2516
  | 'JCB'
2517
2517
  | 'Diners Club'
2518
2518
  | 'Unknown';
2519
- type CardErrorCode =
2520
- | 'invalid_number'
2521
- | 'invalid_expiry_month'
2522
- | 'invalid_expiry_year'
2523
- | 'invalid_cvc'
2524
- | 'invalid_swipe_data'
2525
- | 'incorrect_number'
2526
- | 'expired_card'
2527
- | 'incorrect_cvc'
2528
- | 'incorrect_zip'
2529
- | 'card_declined'
2530
- | 'missing'
2531
- | 'processing_error';
2532
2519
  type CardFundingType = 'credit' | 'debit' | 'prepaid' | 'unknown';
2533
2520
  type CardNetwork =
2534
2521
  | 'amex'
@@ -2565,6 +2552,7 @@ declare namespace io.flow.stripe.v0.enums {
2565
2552
  | 'invalid_account'
2566
2553
  | 'invalid_amount'
2567
2554
  | 'invalid_cvc'
2555
+ | 'invalid_expiry_month'
2568
2556
  | 'invalid_expiry_year'
2569
2557
  | 'invalid_number'
2570
2558
  | 'invalid_pin'
@@ -2588,6 +2576,78 @@ declare namespace io.flow.stripe.v0.enums {
2588
2576
  | 'transaction_not_allowed'
2589
2577
  | 'try_again_later'
2590
2578
  | 'withdrawal_count_limit_exceeded';
2579
+ type ErrorCode =
2580
+ | 'invalid_number'
2581
+ | 'invalid_expiry_month'
2582
+ | 'invalid_expiry_year'
2583
+ | 'invalid_cvc'
2584
+ | 'invalid_swipe_data'
2585
+ | 'country_code_invalid'
2586
+ | 'email_invalid'
2587
+ | 'postal_code_invalid'
2588
+ | 'invalid_characters'
2589
+ | 'url_invalid'
2590
+ | 'invalid_charge_amount'
2591
+ | 'incorrect_number'
2592
+ | 'incorrect_address'
2593
+ | 'incorrect_cvc'
2594
+ | 'incorrect_zip'
2595
+ | 'card_declined'
2596
+ | 'expired_card'
2597
+ | 'missing'
2598
+ | 'processing_error'
2599
+ | 'account_closed'
2600
+ | 'amount_too_small'
2601
+ | 'amount_too_large'
2602
+ | 'api_key_expired'
2603
+ | 'authentication_required'
2604
+ | 'capture_charge_authorization_expired'
2605
+ | 'capture_unauthorized_payment'
2606
+ | 'card_decline_rate_limit_exceeded'
2607
+ | 'charge_already_captured'
2608
+ | 'charge_already_refunded'
2609
+ | 'charge_disputed'
2610
+ | 'charge_exceeds_source_limit'
2611
+ | 'charge_expired_for_capture'
2612
+ | 'charge_invalid_parameter'
2613
+ | 'charge_not_refundable'
2614
+ | 'insufficient_funds'
2615
+ | 'intent_invalid_state'
2616
+ | 'livemode_mismatch'
2617
+ | 'parameter_invalid_empty'
2618
+ | 'parameter_invalid_integer'
2619
+ | 'parameter_invalid_string_blank'
2620
+ | 'parameter_invalid_string_empty'
2621
+ | 'parameter_missing'
2622
+ | 'parameter_unknown'
2623
+ | 'parameters_exclusive'
2624
+ | 'payment_intent_action_required'
2625
+ | 'payment_intent_authentication_failure'
2626
+ | 'payment_intent_incompatible_payment_method'
2627
+ | 'payment_intent_payment_attempt_expired'
2628
+ | 'payment_intent_payment_attempt_failed'
2629
+ | 'payment_intent_unexpected_state'
2630
+ | 'payment_intent_invalid_parameter'
2631
+ | 'payment_method_billing_details_address_missing'
2632
+ | 'payment_method_customer_decline'
2633
+ | 'payment_method_currency_mismatch'
2634
+ | 'payment_method_invalid_parameter'
2635
+ | 'payment_method_invalid_parameter_testmode'
2636
+ | 'payment_method_not_available'
2637
+ | 'payment_method_provider_decline'
2638
+ | 'payment_method_provider_timeout'
2639
+ | 'payment_method_unactivated'
2640
+ | 'payment_method_unexpected_state'
2641
+ | 'payment_method_unsupported_type'
2642
+ | 'platform_api_key_expired'
2643
+ | 'refund_disputed_payment'
2644
+ | 'testmode_charges_only'
2645
+ | 'tls_version_unsupported'
2646
+ | 'setup_attempt_failed'
2647
+ | 'setup_intent_authentication_failure'
2648
+ | 'setup_intent_invalid_parameter'
2649
+ | 'setup_intent_setup_attempt_expired'
2650
+ | 'setup_intent_unexpected_state';
2591
2651
  type ErrorType =
2592
2652
  | 'api_connection_error'
2593
2653
  | 'api_error'
@@ -2889,7 +2949,7 @@ declare namespace io.flow.stripe.v0.models {
2889
2949
  readonly balance_transaction?: string;
2890
2950
  readonly destination?: string;
2891
2951
  readonly dispute?: string;
2892
- readonly failure_code?: string;
2952
+ readonly failure_code?: io.flow.stripe.v0.enums.ErrorCode;
2893
2953
  readonly failure_message?: string;
2894
2954
  readonly on_behalf_of?: string;
2895
2955
  readonly review?: string;
@@ -2940,7 +3000,7 @@ declare namespace io.flow.stripe.v0.models {
2940
3000
  readonly balance_transaction?: string;
2941
3001
  readonly destination?: string;
2942
3002
  readonly dispute?: string;
2943
- readonly failure_code?: string;
3003
+ readonly failure_code?: io.flow.stripe.v0.enums.ErrorCode;
2944
3004
  readonly failure_message?: string;
2945
3005
  readonly on_behalf_of?: string;
2946
3006
  readonly review?: string;
@@ -2992,17 +3052,6 @@ declare namespace io.flow.stripe.v0.models {
2992
3052
  readonly product_category?: string;
2993
3053
  }
2994
3054
 
2995
- interface LastPaymentError {
2996
- readonly charge?: string;
2997
- readonly code?: string;
2998
- readonly decline_code?: io.flow.stripe.v0.enums.DeclineCode;
2999
- readonly doc_url?: string;
3000
- readonly message?: string;
3001
- readonly param?: string;
3002
- readonly payment_method: io.flow.stripe.v0.models.PaymentMethod;
3003
- readonly type: io.flow.stripe.v0.enums.ErrorType;
3004
- }
3005
-
3006
3055
  interface LegalEntity {
3007
3056
  readonly additional_owners?: io.flow.stripe.v0.models.Owner[];
3008
3057
  }
@@ -3105,7 +3154,7 @@ declare namespace io.flow.stripe.v0.models {
3105
3154
  readonly customer?: string;
3106
3155
  readonly description?: string;
3107
3156
  readonly invoice?: string;
3108
- readonly last_payment_error?: io.flow.stripe.v0.models.LastPaymentError;
3157
+ readonly last_payment_error?: io.flow.stripe.v0.models.StripeError;
3109
3158
  readonly livemode: boolean;
3110
3159
  readonly metadata?: io.flow.stripe.v0.models.Metadata;
3111
3160
  readonly next_action?: io.flow.stripe.v0.models.NextAction;
@@ -3306,9 +3355,9 @@ declare namespace io.flow.stripe.v0.models {
3306
3355
  }
3307
3356
 
3308
3357
  interface PaymentOutcome {
3309
- readonly network_status: io.flow.stripe.v0.enums.NetworkStatus;
3310
- readonly risk_level: string;
3311
- readonly seller_message: string;
3358
+ readonly network_status?: io.flow.stripe.v0.enums.NetworkStatus;
3359
+ readonly risk_level?: string;
3360
+ readonly seller_message?: string;
3312
3361
  readonly reason?: string;
3313
3362
  readonly type?: io.flow.stripe.v0.enums.PaymentOutcomeType;
3314
3363
  }
@@ -3507,10 +3556,11 @@ declare namespace io.flow.stripe.v0.models {
3507
3556
  readonly type: io.flow.stripe.v0.enums.ErrorType;
3508
3557
  readonly charge?: string;
3509
3558
  readonly message?: string;
3510
- readonly code?: io.flow.stripe.v0.enums.CardErrorCode;
3511
- readonly decline_code?: string;
3559
+ readonly code?: io.flow.stripe.v0.enums.ErrorCode;
3560
+ readonly decline_code?: io.flow.stripe.v0.enums.DeclineCode;
3512
3561
  readonly param?: string;
3513
3562
  readonly payment_intent?: io.flow.stripe.v0.models.PaymentIntent;
3563
+ readonly payment_method?: io.flow.stripe.v0.models.PaymentMethod;
3514
3564
  }
3515
3565
 
3516
3566
  interface StripeEvent {
@@ -3543,9 +3593,12 @@ declare namespace io.flow.stripe.v0.models {
3543
3593
  interface ThreeDSecureCharge {
3544
3594
  readonly authenticated?: boolean;
3545
3595
  readonly authentication_flow?: io.flow.stripe.v0.enums.ThreeDsAuthenticationFlow;
3596
+ readonly electronic_commerce_indicator?: string;
3597
+ readonly exemption_indicator?: string;
3546
3598
  readonly result?: io.flow.stripe.v0.enums.ThreeDsResult;
3547
3599
  readonly result_reason?: io.flow.stripe.v0.enums.ThreeDsResultReason;
3548
3600
  readonly succeeded?: boolean;
3601
+ readonly transaction_id?: string;
3549
3602
  readonly version?: string;
3550
3603
  }
3551
3604
 
@@ -3719,6 +3772,11 @@ declare namespace io.flow.label.v0.enums {
3719
3772
  }
3720
3773
 
3721
3774
  declare namespace io.flow.label.v0.models {
3775
+ interface AdditionalServicesRequested {
3776
+ readonly name: string;
3777
+ readonly description?: string;
3778
+ }
3779
+
3722
3780
  interface BridgeManifest {
3723
3781
  readonly id: string;
3724
3782
  readonly service: io.flow.fulfillment.v0.models.ServiceSummary;
@@ -3824,6 +3882,7 @@ declare namespace io.flow.label.v0.models {
3824
3882
  readonly shipment_recipient: io.flow.label.v0.enums.ShipmentRecipient;
3825
3883
  readonly label_request_method?: io.flow.label.v0.enums.LabelRequestMethod;
3826
3884
  readonly label_trigger_method?: io.flow.label.v0.enums.LabelTriggerMethod;
3885
+ readonly additional_services_requested?: io.flow.label.v0.models.AdditionalServicesRequested[];
3827
3886
  readonly created_at?: string;
3828
3887
  readonly updated_at?: string;
3829
3888
  }
@@ -14829,6 +14888,7 @@ declare namespace io.flow.billing.internal.v0.models {
14829
14888
  readonly round_individual_transactions: boolean;
14830
14889
  readonly liabilities_method: io.flow.billing.internal.v0.enums.AccountSettingLiabilitiesMethod;
14831
14890
  readonly enable_fee_reversals: boolean;
14891
+ readonly record_reason_for_transactions_pending_payout: boolean;
14832
14892
  }
14833
14893
 
14834
14894
  interface AccountSource {
@@ -16107,6 +16167,7 @@ declare namespace io.flow.billing.v0.models {
16107
16167
 
16108
16168
  interface TransactionMetadataManual {
16109
16169
  readonly discriminator: 'manual';
16170
+ readonly description: string;
16110
16171
  readonly original?: io.flow.billing.v0.models.TransactionMetadataOriginalTransaction;
16111
16172
  readonly url?: string;
16112
16173
  }
@@ -17962,7 +18023,7 @@ declare namespace io.flow.internal.v0.enums {
17962
18023
  | 'prr-599c6246a1a24752aeb85e8f79030781'
17963
18024
  | 'prr-79e41878ea564f9c81cc432a0e84703f'
17964
18025
  | 'prr-f29c26dc09e04536bc77f9c32786ed70'
17965
- | 'prr-0522d426a5b741c791ba05496c35297a';
18026
+ | 'prr-b186129720f0446eb452a68518437c95';
17966
18027
  type BankPaymentStatusCode = 'scheduled' | 'sent' | 'failed';
17967
18028
  type BillingAllocationKey =
17968
18029
  | 'freight_cost'
@@ -18590,6 +18651,8 @@ declare namespace io.flow.internal.v0.enums {
18590
18651
  | 'channel_order_acceptance_deleted'
18591
18652
  | 'checkout_configuration_upserted'
18592
18653
  | 'checkout_configuration_deleted'
18654
+ | 'commercial_invoice_internal_upserted'
18655
+ | 'commercial_invoice_internal_deleted'
18593
18656
  | 'localized_content_upserted'
18594
18657
  | 'localization_upserted'
18595
18658
  | 'internal_channel_rate_deleted'
@@ -19465,6 +19528,7 @@ declare namespace io.flow.internal.v0.models {
19465
19528
  readonly round_individual_transactions: boolean;
19466
19529
  readonly liabilities_method: io.flow.internal.v0.enums.AccountSettingLiabilitiesMethod;
19467
19530
  readonly enable_fee_reversals: boolean;
19531
+ readonly record_reason_for_transactions_pending_payout: boolean;
19468
19532
  }
19469
19533
 
19470
19534
  interface AccountSettingsDeleted {
@@ -21063,7 +21127,6 @@ declare namespace io.flow.internal.v0.models {
21063
21127
 
21064
21128
  interface ChannelDebugTransaction {
21065
21129
  readonly debug?: io.flow.internal.v0.models.DebugTransactionDetails;
21066
- readonly order?: io.flow.internal.v0.models.DebugOrder;
21067
21130
  readonly queue?: io.flow.internal.v0.models.DebugTransactionQueued;
21068
21131
  }
21069
21132
 
@@ -21073,6 +21136,17 @@ declare namespace io.flow.internal.v0.models {
21073
21136
  readonly organization_id_prefix?: string;
21074
21137
  }
21075
21138
 
21139
+ interface ChannelFulfillment {
21140
+ readonly org_id: string;
21141
+ readonly flow_order_number: string;
21142
+ readonly shopify_order_number: string;
21143
+ readonly legal_name?: string;
21144
+ readonly flow_tracking_status?: io.flow.tracking.v0.enums.TrackingStatus;
21145
+ readonly order_items: io.flow.experience.v0.models.LocalizedLineItem[];
21146
+ readonly label_items: io.flow.experience.v0.models.LocalizedLineItem[];
21147
+ readonly tracking_numbers?: string[];
21148
+ }
21149
+
21076
21150
  interface ChannelMembership {
21077
21151
  readonly id: string;
21078
21152
  readonly channel: io.flow.common.v0.models.ChannelReference;
@@ -23564,6 +23638,64 @@ declare namespace io.flow.internal.v0.models {
23564
23638
  readonly urls: string[];
23565
23639
  }
23566
23640
 
23641
+ interface CommercialInvoiceInternal {
23642
+ readonly id: string;
23643
+ readonly label_id: string;
23644
+ readonly organization_id: string;
23645
+ readonly order_number: string;
23646
+ readonly invoice_reference: string;
23647
+ readonly signature_url: string;
23648
+ readonly signature_date: string;
23649
+ readonly signature_name: string;
23650
+ readonly line_items: io.flow.internal.v0.models.InvoiceLineItem[];
23651
+ readonly currency: string;
23652
+ readonly delivered_duty: string;
23653
+ readonly transaction_date: string;
23654
+ readonly origin: io.flow.fulfillment.v0.models.ShippingAddress;
23655
+ readonly destination: io.flow.fulfillment.v0.models.ShippingAddress;
23656
+ readonly service: string;
23657
+ readonly flow_tracking_number: string;
23658
+ readonly rex_number?: string;
23659
+ readonly wee_number?: string;
23660
+ readonly business_gst_numbers: string[];
23661
+ readonly vat_name: string;
23662
+ readonly shipping_price: string;
23663
+ readonly shipment_recipient?: string;
23664
+ readonly eu_preferential_origin?: string;
23665
+ readonly customs_master_file_number?: string;
23666
+ readonly merchant_of_record_entity?: io.flow.common.v0.models.MerchantOfRecordEntity;
23667
+ readonly notes_export_declaration?: string;
23668
+ readonly notes_import_duty_taxes_due?: string;
23669
+ readonly invoice_date: string;
23670
+ readonly goods_value: number;
23671
+ readonly total_taxes: number;
23672
+ readonly total_duties: number;
23673
+ readonly customs_value: number;
23674
+ readonly total_value: number;
23675
+ readonly show_gst_exemption_column: boolean;
23676
+ readonly show_eccn: boolean;
23677
+ readonly show_manufacturer_id: boolean;
23678
+ readonly show_us_out_verbiage: boolean;
23679
+ readonly commercial_invoice_mode: string;
23680
+ readonly show_us_outbound_signature: boolean;
23681
+ readonly show_us_outbound_stamp: boolean;
23682
+ readonly invoice_url?: string;
23683
+ }
23684
+
23685
+ interface CommercialInvoiceInternalDeleted {
23686
+ readonly discriminator: 'commercial_invoice_internal_deleted';
23687
+ readonly event_id: string;
23688
+ readonly timestamp: string;
23689
+ readonly id: string;
23690
+ }
23691
+
23692
+ interface CommercialInvoiceInternalUpserted {
23693
+ readonly discriminator: 'commercial_invoice_internal_upserted';
23694
+ readonly event_id: string;
23695
+ readonly timestamp: string;
23696
+ readonly invoice: io.flow.internal.v0.models.CommercialInvoiceInternal;
23697
+ }
23698
+
23567
23699
  interface CompanyReference {
23568
23700
  readonly id: string;
23569
23701
  }
@@ -23972,8 +24104,9 @@ declare namespace io.flow.internal.v0.models {
23972
24104
  }
23973
24105
 
23974
24106
  interface DebugTransactionDetails {
23975
- readonly id: string;
24107
+ readonly transaction: io.flow.billing.v0.models.Transaction;
23976
24108
  readonly status: io.flow.internal.v0.models.DebugTransactionDetailsStatus;
24109
+ readonly payout?: io.flow.billing.v0.models.PendingPayoutTransactionReason;
23977
24110
  readonly fx?: io.flow.internal.v0.models.DebugTransactionFx;
23978
24111
  }
23979
24112
 
@@ -25546,18 +25679,17 @@ declare namespace io.flow.internal.v0.models {
25546
25679
 
25547
25680
  interface Fulfillment {
25548
25681
  readonly id: string;
25549
- readonly fulfilled_at: string;
25550
- readonly owner: io.flow.internal.v0.enums.LogisticsResponsibility;
25551
- readonly currency: string;
25552
25682
  readonly order: io.flow.internal.v0.models.OrderSummary;
25553
- readonly origin?: io.flow.internal.v0.models.FulfillmentOrigin;
25554
25683
  readonly shopper: io.flow.internal.v0.models.ShopperSummary;
25555
25684
  readonly merchant: io.flow.internal.v0.models.MerchantSummary;
25556
- readonly trigger: io.flow.internal.v0.unions.FulfillmentTrigger;
25557
- readonly completes_order: boolean;
25558
25685
  readonly sequence_number: number;
25559
25686
  readonly posting_cutoff: string;
25687
+ readonly trigger: io.flow.internal.v0.unions.FulfillmentTrigger;
25688
+ readonly fulfilled_at: string;
25689
+ readonly owner: io.flow.internal.v0.enums.LogisticsResponsibility;
25690
+ readonly origin?: io.flow.internal.v0.models.FulfillmentOrigin;
25560
25691
  readonly business?: io.flow.internal.v0.models.FulfillmentBusiness;
25692
+ readonly completes_order: boolean;
25561
25693
  }
25562
25694
 
25563
25695
  interface FulfillmentActionForm {
@@ -26723,7 +26855,6 @@ declare namespace io.flow.internal.v0.models {
26723
26855
 
26724
26856
  interface InternalDebugTransaction {
26725
26857
  readonly debug?: io.flow.internal.v0.models.DebugTransactionDetails;
26726
- readonly order?: io.flow.internal.v0.models.DebugOrder;
26727
26858
  readonly queue?: io.flow.internal.v0.models.DebugTransactionQueued;
26728
26859
  }
26729
26860
 
@@ -26815,6 +26946,19 @@ declare namespace io.flow.internal.v0.models {
26815
26946
  readonly value: io.flow.common.v0.models.Price;
26816
26947
  }
26817
26948
 
26949
+ interface InvoiceLineItem {
26950
+ readonly number: string;
26951
+ readonly description: string;
26952
+ readonly quantity: number;
26953
+ readonly tariff_code: string;
26954
+ readonly gst_exemption_code: string;
26955
+ readonly country_of_origin: string;
26956
+ readonly unit_price: number;
26957
+ readonly total_price: number;
26958
+ readonly manufacturer_id?: string;
26959
+ readonly export_control_classification_number: string;
26960
+ }
26961
+
26818
26962
  interface InvoiceTransaction {
26819
26963
  readonly discriminator: 'invoice_transaction';
26820
26964
  readonly invoice: io.flow.internal.v0.models.Invoice;
@@ -28459,6 +28603,7 @@ declare namespace io.flow.internal.v0.models {
28459
28603
  readonly submitted_at?: string;
28460
28604
  readonly created_at: string;
28461
28605
  readonly updated_at: string;
28606
+ readonly shopify_order_id?: string;
28462
28607
  }
28463
28608
 
28464
28609
  interface OrderFulfillmentDeleted {
@@ -28580,6 +28725,10 @@ declare namespace io.flow.internal.v0.models {
28580
28725
  readonly id: string;
28581
28726
  readonly organization: io.flow.common.v0.models.OrganizationReference;
28582
28727
  readonly number: string;
28728
+ readonly type: io.flow.experience.v0.enums.OrderType;
28729
+ readonly submitted_at: string;
28730
+ readonly delivered_duty: io.flow.common.v0.enums.DeliveredDuty;
28731
+ readonly currency: string;
28583
28732
  }
28584
28733
 
28585
28734
  interface OrderTransaction {
@@ -28787,7 +28936,6 @@ declare namespace io.flow.internal.v0.models {
28787
28936
 
28788
28937
  interface OrganizationDebugTransaction {
28789
28938
  readonly debug?: io.flow.internal.v0.models.DebugTransactionDetails;
28790
- readonly order?: io.flow.internal.v0.models.DebugOrder;
28791
28939
  readonly queue?: io.flow.internal.v0.models.DebugTransactionQueued;
28792
28940
  }
28793
28941
 
@@ -30307,6 +30455,8 @@ declare namespace io.flow.internal.v0.models {
30307
30455
  interface RestrictionKeywords {
30308
30456
  readonly positive_keywords: string[];
30309
30457
  readonly negative_keywords: string[];
30458
+ readonly positive_search_matches: string[];
30459
+ readonly negative_search_matches: string[];
30310
30460
  }
30311
30461
 
30312
30462
  interface RestrictionOrganization {
@@ -30480,6 +30630,17 @@ declare namespace io.flow.internal.v0.models {
30480
30630
  readonly carrier_tracking_numbers: string[];
30481
30631
  }
30482
30632
 
30633
+ interface Return {
30634
+ readonly id: string;
30635
+ readonly order: io.flow.internal.v0.models.OrderSummary;
30636
+ readonly shopper: io.flow.internal.v0.models.ShopperSummary;
30637
+ readonly merchant: io.flow.internal.v0.models.MerchantSummary;
30638
+ readonly sequence_number: number;
30639
+ readonly posting_cutoff: string;
30640
+ readonly trigger: io.flow.internal.v0.unions.ReturnTrigger;
30641
+ readonly returned_at: string;
30642
+ }
30643
+
30483
30644
  interface ReturnPolicyDeleted {
30484
30645
  readonly discriminator: 'return_policy_deleted';
30485
30646
  readonly event_id: string;
@@ -30519,6 +30680,11 @@ declare namespace io.flow.internal.v0.models {
30519
30680
  readonly tracking_summary?: io.flow.internal.v0.models.SearchTrackingSummary;
30520
30681
  }
30521
30682
 
30683
+ interface ReturnTriggerRefund {
30684
+ readonly discriminator: 'by_refund';
30685
+ readonly refund: io.flow.payment.v0.models.RefundReference;
30686
+ }
30687
+
30522
30688
  interface RoutingAccount {
30523
30689
  readonly discriminator: 'routing_account';
30524
30690
  readonly processor: io.flow.internal.v0.enums.Processor;
@@ -31311,7 +31477,7 @@ declare namespace io.flow.internal.v0.models {
31311
31477
  }
31312
31478
 
31313
31479
  interface ShopperSummary {
31314
- readonly fulfilled: io.flow.internal.v0.models.ShopperLines;
31480
+ readonly product: io.flow.internal.v0.models.ShopperLines;
31315
31481
  readonly fees: io.flow.internal.v0.models.ShopperFees;
31316
31482
  readonly freight: io.flow.internal.v0.models.ShopperFreight;
31317
31483
  readonly order_discount: number;
@@ -32972,6 +33138,8 @@ declare namespace io.flow.internal.v0.unions {
32972
33138
  | io.flow.internal.v0.models.ChannelOrderAcceptanceDeleted
32973
33139
  | io.flow.internal.v0.models.CheckoutConfigurationUpserted
32974
33140
  | io.flow.internal.v0.models.CheckoutConfigurationDeleted
33141
+ | io.flow.internal.v0.models.CommercialInvoiceInternalUpserted
33142
+ | io.flow.internal.v0.models.CommercialInvoiceInternalDeleted
32975
33143
  | io.flow.internal.v0.models.LocalizedContentUpserted
32976
33144
  | io.flow.internal.v0.models.LocalizationUpserted
32977
33145
  | io.flow.internal.v0.models.InternalChannelRateDeleted
@@ -33427,6 +33595,7 @@ declare namespace io.flow.internal.v0.unions {
33427
33595
  | io.flow.internal.v0.models.ProofOfPostingShippingNotification
33428
33596
  | io.flow.internal.v0.models.ProofOfPostingOrderCancellation
33429
33597
  | io.flow.internal.v0.models.ProofOfPostingOrderCombinedShipment;
33598
+ type ReturnTrigger = io.flow.internal.v0.models.ReturnTriggerRefund;
33430
33599
  type RoutingEntity =
33431
33600
  | io.flow.internal.v0.models.RoutingProcessor
33432
33601
  | io.flow.internal.v0.models.RoutingAccount
@@ -33977,6 +34146,7 @@ export type ChannelCurrencySettingUpserted =
33977
34146
  export type ChannelDebugTransaction =
33978
34147
  io.flow.internal.v0.models.ChannelDebugTransaction;
33979
34148
  export type ChannelForm = io.flow.internal.v0.models.ChannelForm;
34149
+ export type ChannelFulfillment = io.flow.internal.v0.models.ChannelFulfillment;
33980
34150
  export type ChannelMembership = io.flow.internal.v0.models.ChannelMembership;
33981
34151
  export type ChannelMembershipForm =
33982
34152
  io.flow.internal.v0.models.ChannelMembershipForm;
@@ -35120,6 +35290,12 @@ export type ClassifiedProductDetail =
35120
35290
  io.flow.internal.v0.models.ClassifiedProductDetail;
35121
35291
  export type CommercialInvoiceComparison =
35122
35292
  io.flow.internal.v0.models.CommercialInvoiceComparison;
35293
+ export type CommercialInvoiceInternal =
35294
+ io.flow.internal.v0.models.CommercialInvoiceInternal;
35295
+ export type CommercialInvoiceInternalDeleted =
35296
+ io.flow.internal.v0.models.CommercialInvoiceInternalDeleted;
35297
+ export type CommercialInvoiceInternalUpserted =
35298
+ io.flow.internal.v0.models.CommercialInvoiceInternalUpserted;
35123
35299
  export type CompanyReference = io.flow.internal.v0.models.CompanyReference;
35124
35300
  export type Compliance = io.flow.internal.v0.models.Compliance;
35125
35301
  export type ComplianceData = io.flow.internal.v0.unions.ComplianceData;
@@ -35856,6 +36032,7 @@ export type InventoryReservation =
35856
36032
  export type Invoice = io.flow.internal.v0.models.Invoice;
35857
36033
  export type InvoiceInfoForm = io.flow.internal.v0.models.InvoiceInfoForm;
35858
36034
  export type InvoiceLine = io.flow.internal.v0.models.InvoiceLine;
36035
+ export type InvoiceLineItem = io.flow.internal.v0.models.InvoiceLineItem;
35859
36036
  export type InvoiceTransaction = io.flow.internal.v0.models.InvoiceTransaction;
35860
36037
  export type Issuer = io.flow.internal.v0.models.Issuer;
35861
36038
  export type IssuerDeleted = io.flow.internal.v0.models.IssuerDeleted;
@@ -36840,6 +37017,7 @@ export type ResyncFallbackRates =
36840
37017
  io.flow.internal.v0.models.ResyncFallbackRates;
36841
37018
  export type Retracking = io.flow.internal.v0.models.Retracking;
36842
37019
  export type RetrackingForm = io.flow.internal.v0.models.RetrackingForm;
37020
+ export type Return = io.flow.internal.v0.models.Return;
36843
37021
  export type ReturnPolicyDeleted =
36844
37022
  io.flow.internal.v0.models.ReturnPolicyDeleted;
36845
37023
  export type ReturnPolicyItemResultDeleted =
@@ -36849,6 +37027,9 @@ export type ReturnPolicyItemResultUpserted =
36849
37027
  export type ReturnPolicyUpserted =
36850
37028
  io.flow.internal.v0.models.ReturnPolicyUpserted;
36851
37029
  export type ReturnSummary = io.flow.internal.v0.models.ReturnSummary;
37030
+ export type ReturnTrigger = io.flow.internal.v0.unions.ReturnTrigger;
37031
+ export type ReturnTriggerRefund =
37032
+ io.flow.internal.v0.models.ReturnTriggerRefund;
36852
37033
  export type RiskCheck = io.flow.internal.v0.enums.RiskCheck;
36853
37034
  export type RiskEvaluation = io.flow.internal.v0.enums.RiskEvaluation;
36854
37035
  export type RoutingAccount = io.flow.internal.v0.models.RoutingAccount;