@flowio/types 11.6.1 → 11.7.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.
@@ -9976,6 +9976,10 @@ declare namespace io.flow.checkout.protocol.v0.models {
9976
9976
  readonly code: io.flow.checkout.protocol.v0.enums.CheckoutAddOrderIdentifierErrorCode;
9977
9977
  readonly message: string;
9978
9978
  }
9979
+ interface CheckoutAddPaymentDetailsRequestForm {
9980
+ readonly discriminator: 'checkout_add_payment_details_request_form';
9981
+ readonly payment_details: io.flow.checkout.backend.v0.unions.CheckoutPaymentDetailsForm;
9982
+ }
9979
9983
  interface CheckoutCreateAuthorizationDetailsError {
9980
9984
  readonly code: io.flow.checkout.protocol.v0.enums.CheckoutCreateAuthorizationDetailsErrorCode;
9981
9985
  readonly message: string;
@@ -10243,6 +10247,10 @@ declare namespace io.flow.checkout.protocol.v0.models {
10243
10247
  readonly prompt_id: string;
10244
10248
  readonly value: string;
10245
10249
  }
10250
+ interface CheckoutSelectPaymentRequestForm {
10251
+ readonly discriminator: 'checkout_select_payment_request_form';
10252
+ readonly payment_selection: io.flow.checkout.backend.v0.unions.CheckoutPaymentSelectionForm;
10253
+ }
10246
10254
  interface CheckoutSequencedAddAttributesRequestForm {
10247
10255
  readonly discriminator: 'checkout_sequenced_add_attributes_request_form';
10248
10256
  readonly attributes: Record<string, string>;
@@ -10587,7 +10595,7 @@ declare namespace io.flow.checkout.protocol.v0.unions {
10587
10595
  type CheckoutGetResponse = io.flow.checkout.protocol.v0.models.CheckoutGetResponseError | io.flow.checkout.protocol.v0.models.CheckoutGetResponseSuccess;
10588
10596
  type CheckoutInfo = io.flow.checkout.protocol.v0.models.CheckoutInfoAddressConfigurationFormData | io.flow.checkout.protocol.v0.models.CheckoutInfoAddressPredictions | io.flow.checkout.protocol.v0.models.CheckoutInfoAnalyticsOrder | io.flow.checkout.protocol.v0.models.CheckoutInfoAnalyticsSession | io.flow.checkout.protocol.v0.models.CheckoutInfoContent | io.flow.checkout.protocol.v0.models.CheckoutInfoCountriesFormData | io.flow.checkout.protocol.v0.models.CheckoutInfoDeliveriesFormData | io.flow.checkout.protocol.v0.models.CheckoutInfoHostedConfirmationPage | io.flow.checkout.protocol.v0.models.CheckoutInfoMustUseOrder | io.flow.checkout.protocol.v0.models.CheckoutInfoOptins | io.flow.checkout.protocol.v0.models.CheckoutInfoOrderSummary | io.flow.checkout.protocol.v0.models.CheckoutInfoPaymentAuthorizationParameters | io.flow.checkout.protocol.v0.models.CheckoutInfoPaymentDetails | io.flow.checkout.protocol.v0.models.CheckoutInfoPaymentsFormData | io.flow.checkout.protocol.v0.models.CheckoutInfoPublicKey;
10589
10597
  type CheckoutInput = io.flow.checkout.protocol.v0.models.CheckoutInputAddAttributes | io.flow.checkout.protocol.v0.models.CheckoutInputDeleteAddressStreet | io.flow.checkout.protocol.v0.models.CheckoutInputSetAddressCity | io.flow.checkout.protocol.v0.models.CheckoutInputSetAddressCountry | io.flow.checkout.protocol.v0.models.CheckoutInputSetAddressName | io.flow.checkout.protocol.v0.models.CheckoutInputSetAddressPostal | io.flow.checkout.protocol.v0.models.CheckoutInputSetAddressProvince | io.flow.checkout.protocol.v0.models.CheckoutInputSetAddressStreet | io.flow.checkout.protocol.v0.models.CheckoutInputSetAttributes | io.flow.checkout.protocol.v0.models.CheckoutInputSetContactEmail | io.flow.checkout.protocol.v0.models.CheckoutInputSetContactPhone | io.flow.checkout.protocol.v0.models.CheckoutInputSetCurrency | io.flow.checkout.protocol.v0.models.CheckoutInputSetDeliveryOption | io.flow.checkout.protocol.v0.models.CheckoutInputSetLanguage | io.flow.checkout.protocol.v0.models.CheckoutInputSetLocale | io.flow.checkout.protocol.v0.models.CheckoutInputSetOptinPrompt;
10590
- type CheckoutRequestForm = io.flow.checkout.protocol.v0.models.CheckoutCreateAuthorizationDetailsRequestForm | io.flow.checkout.protocol.v0.models.CheckoutCreateBySessionRequestForm | io.flow.checkout.protocol.v0.models.CheckoutFeaturesRequestForm | io.flow.checkout.protocol.v0.models.CheckoutGetRequestForm;
10598
+ type CheckoutRequestForm = io.flow.checkout.protocol.v0.models.CheckoutAddPaymentDetailsRequestForm | io.flow.checkout.protocol.v0.models.CheckoutCreateAuthorizationDetailsRequestForm | io.flow.checkout.protocol.v0.models.CheckoutCreateBySessionRequestForm | io.flow.checkout.protocol.v0.models.CheckoutFeaturesRequestForm | io.flow.checkout.protocol.v0.models.CheckoutGetRequestForm | io.flow.checkout.protocol.v0.models.CheckoutSelectPaymentRequestForm;
10591
10599
  type CheckoutResponse = io.flow.checkout.protocol.v0.models.CheckoutCreateAuthorizationDetailsResponseError | io.flow.checkout.protocol.v0.models.CheckoutCreateAuthorizationDetailsResponseSuccess | io.flow.checkout.protocol.v0.models.CheckoutCreateBySessionResponseError | io.flow.checkout.protocol.v0.models.CheckoutCreateBySessionResponseSuccess | io.flow.checkout.protocol.v0.models.CheckoutFeaturesResponseError | io.flow.checkout.protocol.v0.models.CheckoutFeaturesResponseSuccess | io.flow.checkout.protocol.v0.models.CheckoutGetResponseError | io.flow.checkout.protocol.v0.models.CheckoutGetResponseSuccess;
10592
10600
  type CheckoutSequencedAddGiftCardAndPromotionCodeResponse = io.flow.checkout.protocol.v0.models.CheckoutSequencedAddGiftCardAndPromotionCodeResponseError;
10593
10601
  type CheckoutSequencedAddGiftCardResponse = io.flow.checkout.protocol.v0.models.CheckoutSequencedAddGiftCardResponseError;
@@ -12125,6 +12133,10 @@ declare namespace io.flow.checkout.backend.v0.models {
12125
12133
  interface CheckoutAddressPredictions {
12126
12134
  readonly predictions: io.flow.checkout.backend.v0.models.CheckoutAddressPrediction[];
12127
12135
  }
12136
+ interface CheckoutAfterpaySelectionForm {
12137
+ readonly discriminator: 'afterpay';
12138
+ readonly afterpay_merchant_token: string;
12139
+ }
12128
12140
  interface CheckoutContact {
12129
12141
  readonly email?: string;
12130
12142
  readonly phone?: string;
@@ -12145,6 +12157,11 @@ declare namespace io.flow.checkout.backend.v0.models {
12145
12157
  readonly discriminator: 'static';
12146
12158
  readonly message: string;
12147
12159
  }
12160
+ interface CheckoutDirectDebit {
12161
+ readonly discriminator: 'checkout_direct_debit';
12162
+ readonly routing_number: string;
12163
+ readonly last4: string;
12164
+ }
12148
12165
  interface CheckoutGeoParameters {
12149
12166
  readonly experience_key: string;
12150
12167
  readonly country: string;
@@ -12157,6 +12174,10 @@ declare namespace io.flow.checkout.backend.v0.models {
12157
12174
  readonly number: string;
12158
12175
  readonly pin?: string;
12159
12176
  }
12177
+ interface CheckoutGooglePaySelectionForm {
12178
+ readonly discriminator: 'google_pay';
12179
+ readonly google_pay_merchant_token: string;
12180
+ }
12160
12181
  interface CheckoutHostedConfirmationPage {
12161
12182
  readonly url: string;
12162
12183
  }
@@ -12364,6 +12385,15 @@ declare namespace io.flow.checkout.backend.v0.models {
12364
12385
  readonly name: string;
12365
12386
  readonly images: io.flow.reference.v0.models.PaymentMethodImages;
12366
12387
  }
12388
+ interface CheckoutPaypalAuthorizationPayload {
12389
+ readonly discriminator: 'paypal_authorization_payload';
12390
+ readonly payment_id: string;
12391
+ readonly payer_id: string;
12392
+ }
12393
+ interface CheckoutPaypalSelectionForm {
12394
+ readonly discriminator: 'paypal';
12395
+ readonly paypal_merchant_token: string;
12396
+ }
12367
12397
  interface CheckoutPredictionInputs {
12368
12398
  readonly address_prediction_metadata?: io.flow.checkout.backend.v0.models.CheckoutAddressPredictionMetadata;
12369
12399
  }
@@ -12385,6 +12415,12 @@ declare namespace io.flow.checkout.backend.v0.models {
12385
12415
  readonly currency: string;
12386
12416
  readonly label: string;
12387
12417
  }
12418
+ interface CheckoutRedirectAuthorizationDetails {
12419
+ readonly discriminator: 'redirect_authorization_details';
12420
+ readonly id: string;
12421
+ readonly payment_redirect_url: string;
12422
+ readonly confirmation_details?: io.flow.checkout.backend.v0.unions.CheckoutConfirmationDetails;
12423
+ }
12388
12424
  interface CheckoutSubmittedOrder {
12389
12425
  readonly discriminator: 'submitted';
12390
12426
  readonly number: string;
@@ -12411,12 +12447,18 @@ declare namespace io.flow.checkout.backend.v0.models {
12411
12447
  }
12412
12448
  }
12413
12449
  declare namespace io.flow.checkout.backend.v0.unions {
12450
+ type CheckoutConfirmationDetails = io.flow.checkout.backend.v0.models.CheckoutDirectDebit;
12414
12451
  type CheckoutDeliveryWindow = io.flow.checkout.backend.v0.models.CheckoutDeliveryWindowStatic | io.flow.checkout.backend.v0.models.CheckoutDeliveryWindowEstimate;
12415
12452
  type CheckoutOrder = io.flow.checkout.backend.v0.models.CheckoutOpenOrder | io.flow.checkout.backend.v0.models.CheckoutSubmittedOrder;
12416
12453
  type CheckoutOrderDeliveryOption = io.flow.checkout.backend.v0.models.CheckoutOrderDigitalDeliveryOption | io.flow.checkout.backend.v0.models.CheckoutOrderPhysicalDeliveryOption;
12417
12454
  type CheckoutOrderFormPaymentDataGroup = io.flow.checkout.backend.v0.models.CheckoutOrderFormPaymentDataGroupSingle | io.flow.checkout.backend.v0.models.CheckoutOrderFormPaymentDataGroupMulti;
12418
12455
  type CheckoutOrderPayment = io.flow.checkout.backend.v0.models.CheckoutOrderPaymentCard | io.flow.checkout.backend.v0.models.CheckoutOrderPaymentGiftCard | io.flow.checkout.backend.v0.models.CheckoutOrderPaymentOnline;
12419
12456
  type CheckoutOrderPromotion = io.flow.checkout.backend.v0.models.CheckoutOrderPromotionDiscount | io.flow.checkout.backend.v0.models.CheckoutOrderPromotionFreeShipping;
12457
+ type CheckoutPaymentDetailsForm = io.flow.checkout.backend.v0.models.CheckoutPaypalAuthorizationPayload | {
12458
+ discriminator: 'google_pay_payment_data';
12459
+ value: any;
12460
+ } | io.flow.checkout.backend.v0.models.CheckoutRedirectAuthorizationDetails;
12461
+ type CheckoutPaymentSelectionForm = io.flow.checkout.backend.v0.models.CheckoutPaypalSelectionForm | io.flow.checkout.backend.v0.models.CheckoutGooglePaySelectionForm | io.flow.checkout.backend.v0.models.CheckoutAfterpaySelectionForm;
12420
12462
  type CheckoutPrice = io.flow.checkout.backend.v0.models.CheckoutPriceFree | io.flow.checkout.backend.v0.models.CheckoutPriceNotYetKnown | io.flow.checkout.backend.v0.models.CheckoutPriceIncluded | io.flow.checkout.backend.v0.models.CheckoutPriceStandard;
12421
12463
  }
12422
12464
  declare namespace io.flow.organization.v0.enums {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@flowio/types",
3
- "version": "11.6.1",
3
+ "version": "11.7.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": "a8a50986f7bc9828fe3153edbf966d3129cd2f90"
28
+ "gitHead": "a150422c4a19f6eddd08aa0e5071778096708e82"
29
29
  }
@@ -12996,6 +12996,11 @@ declare namespace io.flow.checkout.protocol.v0.models {
12996
12996
  readonly message: string;
12997
12997
  }
12998
12998
 
12999
+ interface CheckoutAddPaymentDetailsRequestForm {
13000
+ readonly discriminator: 'checkout_add_payment_details_request_form';
13001
+ readonly payment_details: io.flow.checkout.backend.v0.unions.CheckoutPaymentDetailsForm;
13002
+ }
13003
+
12999
13004
  interface CheckoutCreateAuthorizationDetailsError {
13000
13005
  readonly code: io.flow.checkout.protocol.v0.enums.CheckoutCreateAuthorizationDetailsErrorCode;
13001
13006
  readonly message: string;
@@ -13324,6 +13329,11 @@ declare namespace io.flow.checkout.protocol.v0.models {
13324
13329
  readonly value: string;
13325
13330
  }
13326
13331
 
13332
+ interface CheckoutSelectPaymentRequestForm {
13333
+ readonly discriminator: 'checkout_select_payment_request_form';
13334
+ readonly payment_selection: io.flow.checkout.backend.v0.unions.CheckoutPaymentSelectionForm;
13335
+ }
13336
+
13327
13337
  interface CheckoutSequencedAddAttributesRequestForm {
13328
13338
  readonly discriminator: 'checkout_sequenced_add_attributes_request_form';
13329
13339
  readonly attributes: Record<string, string>;
@@ -13789,10 +13799,12 @@ declare namespace io.flow.checkout.protocol.v0.unions {
13789
13799
  | io.flow.checkout.protocol.v0.models.CheckoutInputSetLocale
13790
13800
  | io.flow.checkout.protocol.v0.models.CheckoutInputSetOptinPrompt;
13791
13801
  type CheckoutRequestForm =
13802
+ | io.flow.checkout.protocol.v0.models.CheckoutAddPaymentDetailsRequestForm
13792
13803
  | io.flow.checkout.protocol.v0.models.CheckoutCreateAuthorizationDetailsRequestForm
13793
13804
  | io.flow.checkout.protocol.v0.models.CheckoutCreateBySessionRequestForm
13794
13805
  | io.flow.checkout.protocol.v0.models.CheckoutFeaturesRequestForm
13795
- | io.flow.checkout.protocol.v0.models.CheckoutGetRequestForm;
13806
+ | io.flow.checkout.protocol.v0.models.CheckoutGetRequestForm
13807
+ | io.flow.checkout.protocol.v0.models.CheckoutSelectPaymentRequestForm;
13796
13808
  type CheckoutResponse =
13797
13809
  | io.flow.checkout.protocol.v0.models.CheckoutCreateAuthorizationDetailsResponseError
13798
13810
  | io.flow.checkout.protocol.v0.models.CheckoutCreateAuthorizationDetailsResponseSuccess
@@ -15798,6 +15810,11 @@ declare namespace io.flow.checkout.backend.v0.models {
15798
15810
  readonly predictions: io.flow.checkout.backend.v0.models.CheckoutAddressPrediction[];
15799
15811
  }
15800
15812
 
15813
+ interface CheckoutAfterpaySelectionForm {
15814
+ readonly discriminator: 'afterpay';
15815
+ readonly afterpay_merchant_token: string;
15816
+ }
15817
+
15801
15818
  interface CheckoutContact {
15802
15819
  readonly email?: string;
15803
15820
  readonly phone?: string;
@@ -15823,6 +15840,12 @@ declare namespace io.flow.checkout.backend.v0.models {
15823
15840
  readonly message: string;
15824
15841
  }
15825
15842
 
15843
+ interface CheckoutDirectDebit {
15844
+ readonly discriminator: 'checkout_direct_debit';
15845
+ readonly routing_number: string;
15846
+ readonly last4: string;
15847
+ }
15848
+
15826
15849
  interface CheckoutGeoParameters {
15827
15850
  readonly experience_key: string;
15828
15851
  readonly country: string;
@@ -15837,6 +15860,11 @@ declare namespace io.flow.checkout.backend.v0.models {
15837
15860
  readonly pin?: string;
15838
15861
  }
15839
15862
 
15863
+ interface CheckoutGooglePaySelectionForm {
15864
+ readonly discriminator: 'google_pay';
15865
+ readonly google_pay_merchant_token: string;
15866
+ }
15867
+
15840
15868
  interface CheckoutHostedConfirmationPage {
15841
15869
  readonly url: string;
15842
15870
  }
@@ -16086,6 +16114,17 @@ declare namespace io.flow.checkout.backend.v0.models {
16086
16114
  readonly images: io.flow.reference.v0.models.PaymentMethodImages;
16087
16115
  }
16088
16116
 
16117
+ interface CheckoutPaypalAuthorizationPayload {
16118
+ readonly discriminator: 'paypal_authorization_payload';
16119
+ readonly payment_id: string;
16120
+ readonly payer_id: string;
16121
+ }
16122
+
16123
+ interface CheckoutPaypalSelectionForm {
16124
+ readonly discriminator: 'paypal';
16125
+ readonly paypal_merchant_token: string;
16126
+ }
16127
+
16089
16128
  interface CheckoutPredictionInputs {
16090
16129
  readonly address_prediction_metadata?: io.flow.checkout.backend.v0.models.CheckoutAddressPredictionMetadata;
16091
16130
  }
@@ -16112,6 +16151,13 @@ declare namespace io.flow.checkout.backend.v0.models {
16112
16151
  readonly label: string;
16113
16152
  }
16114
16153
 
16154
+ interface CheckoutRedirectAuthorizationDetails {
16155
+ readonly discriminator: 'redirect_authorization_details';
16156
+ readonly id: string;
16157
+ readonly payment_redirect_url: string;
16158
+ readonly confirmation_details?: io.flow.checkout.backend.v0.unions.CheckoutConfirmationDetails;
16159
+ }
16160
+
16115
16161
  interface CheckoutSubmittedOrder {
16116
16162
  readonly discriminator: 'submitted';
16117
16163
  readonly number: string;
@@ -16142,6 +16188,7 @@ declare namespace io.flow.checkout.backend.v0.models {
16142
16188
  }
16143
16189
 
16144
16190
  declare namespace io.flow.checkout.backend.v0.unions {
16191
+ type CheckoutConfirmationDetails = io.flow.checkout.backend.v0.models.CheckoutDirectDebit;
16145
16192
  type CheckoutDeliveryWindow =
16146
16193
  | io.flow.checkout.backend.v0.models.CheckoutDeliveryWindowStatic
16147
16194
  | io.flow.checkout.backend.v0.models.CheckoutDeliveryWindowEstimate;
@@ -16161,6 +16208,19 @@ declare namespace io.flow.checkout.backend.v0.unions {
16161
16208
  type CheckoutOrderPromotion =
16162
16209
  | io.flow.checkout.backend.v0.models.CheckoutOrderPromotionDiscount
16163
16210
  | io.flow.checkout.backend.v0.models.CheckoutOrderPromotionFreeShipping;
16211
+
16212
+ type CheckoutPaymentDetailsForm =
16213
+ | io.flow.checkout.backend.v0.models.CheckoutPaypalAuthorizationPayload
16214
+ | {
16215
+ discriminator: 'google_pay_payment_data';
16216
+ value: any /*object*/;
16217
+ }
16218
+ | io.flow.checkout.backend.v0.models.CheckoutRedirectAuthorizationDetails;
16219
+
16220
+ type CheckoutPaymentSelectionForm =
16221
+ | io.flow.checkout.backend.v0.models.CheckoutPaypalSelectionForm
16222
+ | io.flow.checkout.backend.v0.models.CheckoutGooglePaySelectionForm
16223
+ | io.flow.checkout.backend.v0.models.CheckoutAfterpaySelectionForm;
16164
16224
  type CheckoutPrice =
16165
16225
  | io.flow.checkout.backend.v0.models.CheckoutPriceFree
16166
16226
  | io.flow.checkout.backend.v0.models.CheckoutPriceNotYetKnown