@flowio/types 11.21.0 → 11.22.0

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
@@ -139,8 +139,6 @@ declare namespace io.flow.stripe.v0.enums {
139
139
  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
140
  type ErrorType = 'api_connection_error' | 'api_error' | 'authentication_error' | 'card_error' | 'idempotency_error' | 'invalid_request_error' | 'rate_limit_error' | 'validation_error';
141
141
  type EventType = 'charge.captured' | 'charge.failed' | 'charge.pending' | 'charge.refunded' | 'charge.refund.updated' | 'charge.succeeded' | 'charge.updated' | 'payment_intent.amount_capturable_updated' | 'payment_intent.payment_failed' | 'payment_intent.succeeded' | 'source.canceled' | 'source.chargeable' | 'source.failed';
142
- type KlarnaPaymentMethodCategoryType = 'direct_bank_transfer' | 'direct_debit' | 'pay_later' | 'pay_now' | 'pay_over_time';
143
- type KlarnaProduct = 'payment';
144
142
  type NetworkStatus = 'approved_by_network' | 'declined_by_network' | 'not_sent_to_network' | 'reversed_after_approval';
145
143
  type NextActionType = 'redirect_to_url' | 'use_stripe_sdk';
146
144
  type OrderItemType = 'sku' | 'tax' | 'shipping' | 'discount';
@@ -376,7 +374,7 @@ declare namespace io.flow.stripe.v0.models {
376
374
  readonly shipping?: io.flow.stripe.v0.models.Shipping;
377
375
  }
378
376
  interface OrderItem {
379
- readonly object?: string;
377
+ readonly object: string;
380
378
  readonly amount: number;
381
379
  readonly currency: string;
382
380
  readonly description?: string;
@@ -595,7 +593,7 @@ declare namespace io.flow.stripe.v0.models {
595
593
  }
596
594
  interface Shipping {
597
595
  readonly address: io.flow.stripe.v0.models.Address;
598
- readonly name?: string;
596
+ readonly name: string;
599
597
  readonly phone?: string;
600
598
  }
601
599
  interface Source {
@@ -617,7 +615,6 @@ declare namespace io.flow.stripe.v0.models {
617
615
  readonly status: io.flow.stripe.v0.enums.SourceStatus;
618
616
  readonly type: io.flow.stripe.v0.enums.SourceType;
619
617
  readonly usage: io.flow.stripe.v0.enums.SourceUsageType;
620
- readonly source_order?: io.flow.stripe.v0.models.SourceOrder;
621
618
  }
622
619
  interface SourceCard {
623
620
  readonly exp_month: number;
@@ -645,47 +642,11 @@ declare namespace io.flow.stripe.v0.models {
645
642
  readonly first_name?: string;
646
643
  readonly last_name?: string;
647
644
  readonly client_token: string;
648
- readonly payment_method_categories?: string;
649
- readonly purchase_country?: string;
650
- readonly shipping_first_name?: string;
651
- readonly shipping_last_name?: string;
652
- readonly locale?: string;
653
- readonly pay_later_name?: string;
654
- readonly pay_later_asset_urls_standard?: string;
655
- readonly pay_later_asset_urls_descriptive?: string;
656
- readonly pay_now_name?: string;
657
- readonly pay_now_asset_urls_standard?: string;
658
- readonly pay_now_asset_urls_descriptive?: string;
659
- readonly pay_over_time_name?: string;
660
- readonly pay_over_time_asset_urls_standard?: string;
661
- readonly pay_over_time_asset_urls_descriptive?: string;
662
- readonly direct_bank_transfer_name?: string;
663
- readonly direct_bank_transfer_asset_urls_standard?: string;
664
- readonly direct_bank_transfer_asset_urls_descriptive?: string;
665
- readonly direct_debit_name?: string;
666
- readonly direct_debit_asset_urls_standard?: string;
667
- readonly direct_debit_asset_urls_descriptive?: string;
668
645
  }
669
646
  interface SourceKlarnaRequest {
670
647
  readonly first_name: string;
671
648
  readonly last_name: string;
672
- readonly purchase_country?: string;
673
- readonly product?: io.flow.stripe.v0.enums.KlarnaProduct;
674
649
  readonly attachment?: string;
675
- readonly shipping_first_name?: string;
676
- readonly shipping_last_name?: string;
677
- readonly locale?: string;
678
- }
679
- interface SourceOrder {
680
- readonly amount?: number;
681
- readonly currency?: string;
682
- readonly email?: string;
683
- readonly items?: io.flow.stripe.v0.models.OrderItem[];
684
- readonly shipping?: io.flow.stripe.v0.models.Shipping;
685
- }
686
- interface SourceOrderRequest {
687
- readonly items?: io.flow.stripe.v0.models.OrderItemRequest[];
688
- readonly shipping?: io.flow.stripe.v0.models.Shipping;
689
650
  }
690
651
  interface SourceRequest {
691
652
  readonly type?: io.flow.stripe.v0.enums.SourceType;
@@ -702,7 +663,6 @@ declare namespace io.flow.stripe.v0.models {
702
663
  readonly three_d_secure?: io.flow.stripe.v0.models.ThreeDSecure;
703
664
  readonly token?: string;
704
665
  readonly usage: io.flow.stripe.v0.enums.SourceUsageType;
705
- readonly source_order?: io.flow.stripe.v0.models.SourceOrderRequest;
706
666
  }
707
667
  interface Stripe3Ds2Fingerprint {
708
668
  readonly type: io.flow.stripe.v0.enums.UseStripeSdkType;
@@ -2378,7 +2338,7 @@ declare namespace io.flow.v0.enums {
2378
2338
  type SyncStreamType = 'submitted_order' | 'placed_order';
2379
2339
  type SyncUnitOfTime = 'day' | 'hour' | 'minute' | 'second';
2380
2340
  type TaxApplicability = 'none' | 'all';
2381
- type TaxDutyCalculatorValidationErrorCode = 'generic_error' | 'destination_country_not_defined' | 'destination_address_iso3166_unrecognized' | 'line_item_shipfrom_shipto_country_invalid' | 'line_item_ship_from_invalid' | 'line_item_currency_iso4217_unrecognized' | 'line_quantity_invalid' | 'line_item_quantity_invalid' | 'line_item_unit_price_precision_invalid' | 'line_item_unit_price_negative' | 'line_item_discount_amount_precision_invalid' | 'line_item_discount_amount_positive' | 'line_item_country_of_origin_iso3166_unrecognized' | 'line_item_hs_code_invalid' | 'line_item_duty_provider_invalid' | 'shipping_unit_price_precision_invalid' | 'shipping_unit_price_negative' | 'shipping_discount_amount_precision_invalid' | 'shipping_discount_amount_invalid' | 'merchant_of_record_invalid';
2341
+ type TaxDutyCalculatorValidationErrorCode = 'generic_error' | 'destination_country_not_defined' | 'destination_address_iso3166_unrecognized' | 'line_item_shipfrom_shipto_country_invalid' | 'line_item_ship_from_invalid' | 'line_item_currency_iso4217_unrecognized' | 'line_quantity_invalid' | 'line_item_quantity_invalid' | 'line_item_unit_price_precision_invalid' | 'line_item_unit_price_negative' | 'line_item_discount_amount_precision_invalid' | 'line_item_discount_amount_positive' | 'line_item_country_of_origin_iso3166_unrecognized' | 'line_item_hs_code_invalid' | 'line_item_duty_provider_invalid' | 'shipping_unit_price_precision_invalid' | 'shipping_unit_price_negative' | 'shipping_discount_amount_precision_invalid' | 'shipping_discount_amount_invalid' | 'merchant_of_record_invalid' | 'wrong_unit_specified';
2382
2342
  type TaxReportType = 'consumer' | 'b2b';
2383
2343
  type TaxVerificationResult = 'valid' | 'invalid' | 'unable_to_validate';
2384
2344
  type TaxabilityType = 'tax_rule';
@@ -7569,6 +7529,7 @@ declare namespace io.flow.v0.models {
7569
7529
  readonly payment_state?: string;
7570
7530
  readonly payer_email?: string;
7571
7531
  readonly payer_status?: string;
7532
+ readonly approval_url?: string;
7572
7533
  }
7573
7534
  interface PaypalAuthorizationForm {
7574
7535
  readonly discriminator: 'paypal_authorization_form';
@@ -9514,6 +9475,7 @@ declare namespace io.flow.v0.models {
9514
9475
  readonly ship_from: io.flow.v0.models.StreetAddress;
9515
9476
  readonly quantity: number;
9516
9477
  readonly unit_price: number;
9478
+ readonly unit_weight?: io.flow.v0.models.Measurement;
9517
9479
  readonly country_of_origin: string;
9518
9480
  readonly hs_code: string;
9519
9481
  readonly includes: io.flow.v0.enums.LevyInclusion[];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@flowio/types",
3
- "version": "11.21.0",
3
+ "version": "11.22.0",
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": "997b8322302877270db6d281d76d9a8ab7903718"
28
+ "gitHead": "4548ce5f21d73b3c8f31aa926c888bc5cd8d7a0c"
29
29
  }