@flowio/api-internal-prop-types 8.4.1 → 8.5.1

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/lib/index.js CHANGED
@@ -1,17 +1,2 @@
1
- "use strict";
2
-
3
- function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }
4
-
5
- Object.defineProperty(exports, "__esModule", {
6
- value: true
7
- });
8
- exports.default = void 0;
9
-
10
- var ApiInternalPropTypes = _interopRequireWildcard(require("./api-internal"));
11
-
12
- function _getRequireWildcardCache() { if (typeof WeakMap !== "function") return null; var cache = new WeakMap(); _getRequireWildcardCache = function _getRequireWildcardCache() { return cache; }; return cache; }
13
-
14
- function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
15
-
16
- var _default = ApiInternalPropTypes;
17
- exports.default = _default;
1
+ import * as ApiInternalPropTypes from './api-internal';
2
+ export default ApiInternalPropTypes;
package/package.json CHANGED
@@ -1,38 +1,34 @@
1
1
  {
2
2
  "name": "@flowio/api-internal-prop-types",
3
- "version": "8.4.1",
3
+ "version": "8.5.1",
4
4
  "description": "PropType validators that work with internal Flow API",
5
- "main": "lib/index.js",
6
- "files": [
7
- "lib",
8
- "src"
9
- ],
10
- "scripts": {
11
- "build": "babel ./src --out-dir ./lib --copy-files",
12
- "clean": "rm -rf ./lib",
13
- "prepublish": "npm run clean && npm run build",
14
- "regenerate": "apibuilder update"
15
- },
16
- "repository": "https://github.com/flowcommerce/react-toolkit/tree/master/packages/api-internal-prop-types",
17
5
  "keywords": [
18
6
  "flow",
19
7
  "api",
20
8
  "internal",
21
9
  "prop-types"
22
10
  ],
23
- "author": "Flow Commerce",
11
+ "repository": {
12
+ "type": "git",
13
+ "url": "git@github.com:flowcommerce/api-internal-prop-types.git",
14
+ "directory": "packages/api-types"
15
+ },
24
16
  "license": "MIT",
17
+ "author": "Flow Commerce",
25
18
  "maintainers": [
26
19
  "Christian Muñoz <christian.munoz@flow.io>"
27
20
  ],
21
+ "main": "lib/index.js",
22
+ "files": [
23
+ "lib",
24
+ "src"
25
+ ],
26
+ "scripts": {
27
+ "build": "babel ./src --out-dir ./lib --copy-files",
28
+ "generate": "apibuilder update"
29
+ },
28
30
  "peerDependencies": {
29
31
  "prop-types": "^15.7.0"
30
32
  },
31
- "devDependencies": {
32
- "@babel/cli": "^7.6.3",
33
- "@babel/core": "^7.6.3",
34
- "@babel/preset-env": "^7.6.3",
35
- "prop-types": "^15.7.2"
36
- },
37
- "gitHead": "2a3833fbc25f0fa10882cffe671f4d72583e746d"
33
+ "gitHead": "fba4c6a6a597e1843f689a7a58f6159131364578"
38
34
  }
@@ -15,11 +15,10 @@ declare namespace io.flow.tracking.internal.v0.models {
15
15
 
16
16
  interface DhlEcommerce {
17
17
  readonly 'discriminator': 'dhl_ecommerce';
18
- readonly 'username': string;
19
- readonly 'password': string;
20
- readonly 'client_id': string;
21
- readonly 'pickup_account_number': string;
18
+ readonly 'client_id_v4': string;
19
+ readonly 'client_secret_v4': string;
22
20
  readonly 'distribution_center': string;
21
+ readonly 'pickup_account_number': string;
23
22
  readonly 'pickup_name': string;
24
23
  }
25
24
 
@@ -2713,6 +2712,7 @@ declare namespace io.flow.stripe.v0.enums {
2713
2712
  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';
2714
2713
  type ErrorType = 'api_connection_error' | 'api_error' | 'authentication_error' | 'card_error' | 'idempotency_error' | 'invalid_request_error' | 'rate_limit_error' | 'validation_error';
2715
2714
  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';
2715
+ type KlarnaPaymentMethodCategoryType = 'direct_bank_transfer' | 'direct_debit' | 'pay_later' | 'pay_over_time';
2716
2716
  type KlarnaProduct = 'payment';
2717
2717
  type NetworkStatus = 'approved_by_network' | 'declined_by_network' | 'not_sent_to_network' | 'reversed_after_approval';
2718
2718
  type NextActionType = 'redirect_to_url' | 'use_stripe_sdk';
@@ -2971,7 +2971,7 @@ declare namespace io.flow.stripe.v0.models {
2971
2971
  }
2972
2972
 
2973
2973
  interface OrderItem {
2974
- readonly 'object': string;
2974
+ readonly 'object'?: string;
2975
2975
  readonly 'amount': number;
2976
2976
  readonly 'currency': string;
2977
2977
  readonly 'description'?: string;
@@ -3213,7 +3213,7 @@ declare namespace io.flow.stripe.v0.models {
3213
3213
 
3214
3214
  interface Shipping {
3215
3215
  readonly 'address': io.flow.stripe.v0.models.Address;
3216
- readonly 'name': string;
3216
+ readonly 'name'?: string;
3217
3217
  readonly 'phone'?: string;
3218
3218
  }
3219
3219
 
@@ -3236,6 +3236,7 @@ declare namespace io.flow.stripe.v0.models {
3236
3236
  readonly 'status': io.flow.stripe.v0.enums.SourceStatus;
3237
3237
  readonly 'type': io.flow.stripe.v0.enums.SourceType;
3238
3238
  readonly 'usage': io.flow.stripe.v0.enums.SourceUsageType;
3239
+ readonly 'source_order'?: io.flow.stripe.v0.models.SourceOrder;
3239
3240
  }
3240
3241
 
3241
3242
  interface SourceCard {
@@ -3266,6 +3267,26 @@ declare namespace io.flow.stripe.v0.models {
3266
3267
  readonly 'first_name'?: string;
3267
3268
  readonly 'last_name'?: string;
3268
3269
  readonly 'client_token': string;
3270
+ readonly 'payment_method_categories'?: string;
3271
+ readonly 'purchase_country'?: string;
3272
+ readonly 'shipping_first_name'?: string;
3273
+ readonly 'shipping_last_name'?: string;
3274
+ readonly 'locale'?: string;
3275
+ readonly 'pay_later_name'?: string;
3276
+ readonly 'pay_later_asset_url_standard'?: string;
3277
+ readonly 'pay_later_asset_url_descriptive'?: string;
3278
+ readonly 'pay_now_name'?: string;
3279
+ readonly 'pay_now_asset_url_standard'?: string;
3280
+ readonly 'pay_now_asset_url_descriptive'?: string;
3281
+ readonly 'pay_over_time_name'?: string;
3282
+ readonly 'pay_over_time_asset_url_standard'?: string;
3283
+ readonly 'pay_over_time_asset_url_descriptive'?: string;
3284
+ readonly 'direct_bank_transfer_name'?: string;
3285
+ readonly 'direct_bank_transfer_asset_url_standard'?: string;
3286
+ readonly 'direct_bank_transfer_asset_url_descriptive'?: string;
3287
+ readonly 'direct_debit_name'?: string;
3288
+ readonly 'direct_debit_asset_url_standard'?: string;
3289
+ readonly 'direct_debit_asset_url_descriptive'?: string;
3269
3290
  }
3270
3291
 
3271
3292
  interface SourceKlarnaRequest {
@@ -3279,6 +3300,19 @@ declare namespace io.flow.stripe.v0.models {
3279
3300
  readonly 'locale'?: string;
3280
3301
  }
3281
3302
 
3303
+ interface SourceOrder {
3304
+ readonly 'amount'?: number;
3305
+ readonly 'currency'?: string;
3306
+ readonly 'email'?: string;
3307
+ readonly 'items'?: io.flow.stripe.v0.models.OrderItem[];
3308
+ readonly 'shipping'?: io.flow.stripe.v0.models.Shipping;
3309
+ }
3310
+
3311
+ interface SourceOrderRequest {
3312
+ readonly 'items'?: io.flow.stripe.v0.models.OrderItemRequest[];
3313
+ readonly 'shipping'?: io.flow.stripe.v0.models.Shipping;
3314
+ }
3315
+
3282
3316
  interface SourceRequest {
3283
3317
  readonly 'type'?: io.flow.stripe.v0.enums.SourceType;
3284
3318
  readonly 'amount'?: number;
@@ -3294,6 +3328,7 @@ declare namespace io.flow.stripe.v0.models {
3294
3328
  readonly 'three_d_secure'?: io.flow.stripe.v0.models.ThreeDSecure;
3295
3329
  readonly 'token'?: string;
3296
3330
  readonly 'usage': io.flow.stripe.v0.enums.SourceUsageType;
3331
+ readonly 'source_order'?: io.flow.stripe.v0.models.SourceOrderRequest;
3297
3332
  }
3298
3333
 
3299
3334
  interface Stripe3Ds2Fingerprint {
@@ -6706,6 +6741,19 @@ declare namespace io.flow.payment.internal.v0.models {
6706
6741
  readonly 'id': string;
6707
6742
  }
6708
6743
 
6744
+ interface KlarnaAuthorizationParameters {
6745
+ readonly 'discriminator': 'klarna_authorization_parameters';
6746
+ readonly 'client_token': string;
6747
+ readonly 'payment_method_categories': io.flow.payment.internal.v0.models.KlarnaPaymentMethodCategory[];
6748
+ }
6749
+
6750
+ interface KlarnaPaymentMethodCategory {
6751
+ readonly 'id': string;
6752
+ readonly 'name'?: string;
6753
+ readonly 'standard_asset_url'?: string;
6754
+ readonly 'descriptive_asset_url'?: string;
6755
+ }
6756
+
6709
6757
  interface OnlineAuthorizationCompleted {
6710
6758
  readonly 'discriminator': 'online_authorization_completed';
6711
6759
  readonly 'id': string;
@@ -6976,6 +7024,7 @@ declare namespace io.flow.payment.internal.v0.models {
6976
7024
 
6977
7025
  declare namespace io.flow.payment.internal.v0.unions {
6978
7026
  type AuthorizationPayload = (io.flow.payment.internal.v0.models.ApplePaymentToken | io.flow.payment.internal.v0.models.PaypalAuthorizationPayload);
7027
+ type InlineAuthorizationParameters = (io.flow.payment.internal.v0.models.KlarnaAuthorizationParameters);
6979
7028
  type InternalAuthorizationDetails = (io.flow.payment.internal.v0.models.InternalPaypalAuthorizationDetails | io.flow.payment.internal.v0.models.InternalBitpayAuthorizationDetails | io.flow.payment.internal.v0.models.InternalStripeAuthorizationDetails | io.flow.payment.internal.v0.models.InternalAdyenAuthorizationDetails | io.flow.payment.internal.v0.models.InternalAfterpayAuthorizationDetails | io.flow.payment.internal.v0.models.InternalFiservAuthorizationDetails);
6980
7029
  type InternalRefundForm = (io.flow.payment.internal.v0.models.AdyenRefundForm);
6981
7030
  type PaymentRedirect = (io.flow.payment.internal.v0.models.OnlineAuthorizationCompleted | io.flow.payment.internal.v0.models.RedirectActionCompleted);
@@ -9240,6 +9289,7 @@ declare namespace io.flow.marketing.gateway.v0.enums {
9240
9289
  type MarketingGatewayChannelIntegrationType = 'automated' | 'manual';
9241
9290
  type MarketingGatewayChannelStatus = 'not_connected' | 'connecting' | 'connected' | 'disconnecting' | 'disconnected' | 'unavailable';
9242
9291
  type MarketingGatewayErrorCode = 'generic_error' | 'google_api_error' | 'facebook_api_error' | 'invalid_oauth_token_error';
9292
+ type MarketingGatewayFacebookTokenStatus = 'unknown' | 'active' | 'expired';
9243
9293
  type MarketingGatewayFeedDownloadFormat = 'tsv' | 'csv' | 'txt';
9244
9294
  type MarketingGatewayFeedState = 'initialized' | 'generated' | 'in_review' | 'rejected' | 'active';
9245
9295
  type MarketingGatewayPlatform = 'google' | 'facebook' | 'adroll' | 'aliexpress' | 'amazon' | 'bing' | 'criteo' | 'fruugo' | 'pinterest' | 'rakuten_japan' | 'wish' | 'snapchat';
@@ -9315,6 +9365,7 @@ declare namespace io.flow.marketing.gateway.v0.models {
9315
9365
  readonly 'datasources'?: io.flow.marketing.gateway.v0.models.MarketingGatewayProductDatasourceSummary[];
9316
9366
  readonly 'localized_feed_count'?: number;
9317
9367
  readonly 'connected_at'?: string;
9368
+ readonly 'token_summary'?: io.flow.marketing.gateway.v0.models.MarketingGatewayFacebookConnectionAccessTokenSummary;
9318
9369
  }
9319
9370
 
9320
9371
  interface MarketingGatewayFacebookConnection {
@@ -9322,6 +9373,15 @@ declare namespace io.flow.marketing.gateway.v0.models {
9322
9373
  readonly 'businesses': io.flow.marketing.gateway.v0.models.MarketingGatewayFacebookBusinessSummary[];
9323
9374
  }
9324
9375
 
9376
+ interface MarketingGatewayFacebookConnectionAccessTokenSummary {
9377
+ readonly 'catalog_id': number;
9378
+ readonly 'created_at': number;
9379
+ readonly 'expires_at'?: number;
9380
+ readonly 'user_id': string;
9381
+ readonly 'user_email'?: string;
9382
+ readonly 'token_status': io.flow.marketing.gateway.v0.enums.MarketingGatewayFacebookTokenStatus;
9383
+ }
9384
+
9325
9385
  interface MarketingGatewayFacebookConnectionDeauth {
9326
9386
  readonly 'user_id': number;
9327
9387
  }
@@ -9552,11 +9612,15 @@ declare namespace io.flow.label.internal.v0.enums {
9552
9612
  declare namespace io.flow.label.internal.v0.models {
9553
9613
  interface CarrierAccount {
9554
9614
  readonly 'id': string;
9555
- readonly 'organization_id': string;
9556
9615
  readonly 'carrier': io.flow.fulfillment.v0.models.CarrierReference;
9557
9616
  readonly 'credentials': io.flow.tracking.internal.v0.unions.CarrierCredentials;
9558
9617
  }
9559
9618
 
9619
+ interface CarrierAccountForm {
9620
+ readonly 'carrier_id': string;
9621
+ readonly 'credentials': io.flow.tracking.internal.v0.unions.CarrierCredentials;
9622
+ }
9623
+
9560
9624
  interface CarrierInvoice {
9561
9625
  readonly 'number': string;
9562
9626
  readonly 'timestamp': string;
@@ -10502,6 +10566,10 @@ declare namespace io.flow.harmonization.internal.v0.models {
10502
10566
  readonly 'hs6': string;
10503
10567
  readonly 'hs6_description': string;
10504
10568
  readonly 'url': string;
10569
+ readonly 'item_type': string;
10570
+ readonly 'material': string;
10571
+ readonly 'gender': string;
10572
+ readonly 'construction': string;
10505
10573
  }
10506
10574
 
10507
10575
  interface ClassificationItem {
@@ -15829,11 +15897,15 @@ declare namespace io.flow.internal.v0.models {
15829
15897
 
15830
15898
  interface CarrierAccount {
15831
15899
  readonly 'id': string;
15832
- readonly 'organization_id': string;
15833
15900
  readonly 'carrier': io.flow.fulfillment.v0.models.CarrierReference;
15834
15901
  readonly 'credentials': io.flow.tracking.internal.v0.unions.CarrierCredentials;
15835
15902
  }
15836
15903
 
15904
+ interface CarrierAccountForm {
15905
+ readonly 'carrier_id': string;
15906
+ readonly 'credentials': io.flow.tracking.internal.v0.unions.CarrierCredentials;
15907
+ }
15908
+
15837
15909
  interface CarrierAccountUpserted {
15838
15910
  readonly 'discriminator': 'carrier_account_upserted';
15839
15911
  readonly 'event_id': string;
@@ -17475,6 +17547,10 @@ declare namespace io.flow.internal.v0.models {
17475
17547
  readonly 'hs6': string;
17476
17548
  readonly 'hs6_description': string;
17477
17549
  readonly 'url': string;
17550
+ readonly 'item_type': string;
17551
+ readonly 'material': string;
17552
+ readonly 'gender': string;
17553
+ readonly 'construction': string;
17478
17554
  }
17479
17555
 
17480
17556
  interface ClassificationItem {
@@ -17832,11 +17908,10 @@ declare namespace io.flow.internal.v0.models {
17832
17908
 
17833
17909
  interface DhlEcommerce {
17834
17910
  readonly 'discriminator': 'dhl_ecommerce';
17835
- readonly 'username': string;
17836
- readonly 'password': string;
17837
- readonly 'client_id': string;
17838
- readonly 'pickup_account_number': string;
17911
+ readonly 'client_id_v4': string;
17912
+ readonly 'client_secret_v4': string;
17839
17913
  readonly 'distribution_center': string;
17914
+ readonly 'pickup_account_number': string;
17840
17915
  readonly 'pickup_name': string;
17841
17916
  }
17842
17917
 
@@ -19679,6 +19754,7 @@ declare namespace io.flow.internal.v0.models {
19679
19754
  readonly 'datasources'?: io.flow.internal.v0.models.MarketingGatewayProductDatasourceSummary[];
19680
19755
  readonly 'localized_feed_count'?: number;
19681
19756
  readonly 'connected_at'?: string;
19757
+ readonly 'token_summary'?: io.flow.internal.v0.models.MarketingGatewayFacebookConnectionAccessTokenSummary;
19682
19758
  }
19683
19759
 
19684
19760
  interface MarketingGatewayFacebookConnection {
@@ -19691,7 +19767,7 @@ declare namespace io.flow.internal.v0.models {
19691
19767
  readonly 'created_at': number;
19692
19768
  readonly 'expires_at'?: number;
19693
19769
  readonly 'user_id': string;
19694
- readonly 'user_email': string;
19770
+ readonly 'user_email'?: string;
19695
19771
  readonly 'token_status': io.flow.internal.v0.enums.MarketingGatewayFacebookTokenStatus;
19696
19772
  }
19697
19773
 
@@ -22622,6 +22698,7 @@ export const browserBundlePaymentMethodForm: PropTypes.Requireable<io.flow.inter
22622
22698
  export const browserBundlePaymentMethods: PropTypes.Requireable<io.flow.internal.v0.models.BrowserBundlePaymentMethods>;
22623
22699
  export const calculatedTaxAmount: PropTypes.Requireable<io.flow.internal.v0.models.CalculatedTaxAmount>;
22624
22700
  export const carrierAccount: PropTypes.Requireable<io.flow.internal.v0.models.CarrierAccount>;
22701
+ export const carrierAccountForm: PropTypes.Requireable<io.flow.internal.v0.models.CarrierAccountForm>;
22625
22702
  export const carrierAccountUpserted: PropTypes.Requireable<io.flow.internal.v0.models.CarrierAccountUpserted>;
22626
22703
  export const carrierInvoice: PropTypes.Requireable<io.flow.internal.v0.models.CarrierInvoice>;
22627
22704
  export const catalogImportRequest: PropTypes.Requireable<io.flow.internal.v0.models.CatalogImportRequest>;
@@ -2035,6 +2035,17 @@ T['io.flow.marketing.gateway.v0.models.marketing_gateway_facebook_connection'] =
2035
2035
  ).isRequired,
2036
2036
  });
2037
2037
 
2038
+ T['io.flow.marketing.gateway.v0.enums.marketing_gateway_facebook_token_status'] = PropTypes.oneOf(['unknown', 'active', 'expired']);
2039
+
2040
+ T['io.flow.marketing.gateway.v0.models.marketing_gateway_facebook_connection_access_token_summary'] = PropTypes.exact({
2041
+ catalog_id: PropTypes.number.isRequired,
2042
+ created_at: PropTypes.number.isRequired,
2043
+ expires_at: PropTypes.number,
2044
+ user_id: PropTypes.string.isRequired,
2045
+ user_email: PropTypes.string,
2046
+ token_status: T['io.flow.marketing.gateway.v0.enums.marketing_gateway_facebook_token_status'].isRequired,
2047
+ });
2048
+
2038
2049
  T['io.flow.marketing.gateway.v0.models.marketing_gateway_product_datasource_summary'] = PropTypes.exact({
2039
2050
  name: PropTypes.string.isRequired,
2040
2051
  country: PropTypes.string,
@@ -2109,6 +2120,7 @@ T['io.flow.marketing.gateway.v0.models.marketing_gateway_facebook_channel_detail
2109
2120
 
2110
2121
  localized_feed_count: PropTypes.number,
2111
2122
  connected_at: PropTypes.string,
2123
+ token_summary: T['io.flow.marketing.gateway.v0.models.marketing_gateway_facebook_connection_access_token_summary'],
2112
2124
  });
2113
2125
 
2114
2126
  T['io.flow.marketing.gateway.v0.models.marketing_gateway_google_channel_details'] = PropTypes.exact({
@@ -3053,6 +3065,21 @@ T['io.flow.payment.internal.v0.models.passphrase'] = PropTypes.exact({
3053
3065
  challenge_text: PropTypes.string.isRequired,
3054
3066
  });
3055
3067
 
3068
+ T['io.flow.payment.internal.v0.models.klarna_payment_method_category'] = PropTypes.exact({
3069
+ id: PropTypes.string.isRequired,
3070
+ name: PropTypes.string,
3071
+ standard_asset_url: PropTypes.string,
3072
+ descriptive_asset_url: PropTypes.string,
3073
+ });
3074
+
3075
+ T['io.flow.payment.internal.v0.models.klarna_authorization_parameters'] = PropTypes.exact({
3076
+ discriminator: PropTypes.oneOf(['klarna_authorization_parameters']).isRequired,
3077
+ client_token: PropTypes.string.isRequired,
3078
+ payment_method_categories: PropTypes.arrayOf(T['io.flow.payment.internal.v0.models.klarna_payment_method_category']).isRequired,
3079
+ });
3080
+
3081
+ T['io.flow.payment.internal.v0.unions.inline_authorization_parameters'] = PropTypes.oneOfType([T['io.flow.payment.internal.v0.models.klarna_authorization_parameters']]);
3082
+
3056
3083
  T['io.flow.payment.internal.v0.models.stripe_authentication_data_reference'] = PropTypes.exact({
3057
3084
  id: PropTypes.string.isRequired,
3058
3085
  });
@@ -6201,7 +6228,7 @@ T['io.flow.stripe.v0.models.order_item_request'] = PropTypes.exact({
6201
6228
  });
6202
6229
 
6203
6230
  T['io.flow.stripe.v0.models.order_item'] = PropTypes.exact({
6204
- object: PropTypes.string.isRequired,
6231
+ object: PropTypes.string,
6205
6232
  amount: PropTypes.number.isRequired,
6206
6233
  currency: PropTypes.string.isRequired,
6207
6234
  description: PropTypes.string,
@@ -6234,10 +6261,15 @@ T['io.flow.stripe.v0.models.address'] = PropTypes.exact({
6234
6261
 
6235
6262
  T['io.flow.stripe.v0.models.shipping'] = PropTypes.exact({
6236
6263
  address: T['io.flow.stripe.v0.models.address'].isRequired,
6237
- name: PropTypes.string.isRequired,
6264
+ name: PropTypes.string,
6238
6265
  phone: PropTypes.string,
6239
6266
  });
6240
6267
 
6268
+ T['io.flow.stripe.v0.models.source_order_request'] = PropTypes.exact({
6269
+ items: PropTypes.arrayOf(T['io.flow.stripe.v0.models.order_item_request']),
6270
+ shipping: T['io.flow.stripe.v0.models.shipping'],
6271
+ });
6272
+
6241
6273
  T['io.flow.stripe.v0.models.order_request'] = PropTypes.exact({
6242
6274
  currency: PropTypes.string,
6243
6275
  coupon: PropTypes.string,
@@ -6440,6 +6472,14 @@ T['io.flow.stripe.v0.models.charge_request'] = PropTypes.exact({
6440
6472
  transfer_data: T['io.flow.stripe.v0.models.transfer_data'],
6441
6473
  });
6442
6474
 
6475
+ T['io.flow.stripe.v0.models.source_order'] = PropTypes.exact({
6476
+ amount: PropTypes.number,
6477
+ currency: PropTypes.string,
6478
+ email: PropTypes.string,
6479
+ items: PropTypes.arrayOf(T['io.flow.stripe.v0.models.order_item']),
6480
+ shipping: T['io.flow.stripe.v0.models.shipping'],
6481
+ });
6482
+
6443
6483
  T['io.flow.stripe.v0.enums.source_usage_type'] = PropTypes.oneOf(['reusable', 'single_use']);
6444
6484
 
6445
6485
  T['io.flow.stripe.v0.enums.source_type'] = PropTypes.oneOf([
@@ -6480,6 +6520,26 @@ T['io.flow.stripe.v0.models.source_klarna'] = PropTypes.exact({
6480
6520
  first_name: PropTypes.string,
6481
6521
  last_name: PropTypes.string,
6482
6522
  client_token: PropTypes.string.isRequired,
6523
+ payment_method_categories: PropTypes.string,
6524
+ purchase_country: PropTypes.string,
6525
+ shipping_first_name: PropTypes.string,
6526
+ shipping_last_name: PropTypes.string,
6527
+ locale: PropTypes.string,
6528
+ pay_later_name: PropTypes.string,
6529
+ pay_later_asset_url_standard: PropTypes.string,
6530
+ pay_later_asset_url_descriptive: PropTypes.string,
6531
+ pay_now_name: PropTypes.string,
6532
+ pay_now_asset_url_standard: PropTypes.string,
6533
+ pay_now_asset_url_descriptive: PropTypes.string,
6534
+ pay_over_time_name: PropTypes.string,
6535
+ pay_over_time_asset_url_standard: PropTypes.string,
6536
+ pay_over_time_asset_url_descriptive: PropTypes.string,
6537
+ direct_bank_transfer_name: PropTypes.string,
6538
+ direct_bank_transfer_asset_url_standard: PropTypes.string,
6539
+ direct_bank_transfer_asset_url_descriptive: PropTypes.string,
6540
+ direct_debit_name: PropTypes.string,
6541
+ direct_debit_asset_url_standard: PropTypes.string,
6542
+ direct_debit_asset_url_descriptive: PropTypes.string,
6483
6543
  });
6484
6544
 
6485
6545
  T['io.flow.stripe.v0.enums.source_flow'] = PropTypes.oneOf(['redirect', 'receiver', 'code_verification', 'none']);
@@ -6649,6 +6709,7 @@ T['io.flow.stripe.v0.models.source_request'] = PropTypes.exact({
6649
6709
  three_d_secure: T['io.flow.stripe.v0.models.three_d_secure'],
6650
6710
  token: PropTypes.string,
6651
6711
  usage: T['io.flow.stripe.v0.enums.source_usage_type'].isRequired,
6712
+ source_order: T['io.flow.stripe.v0.models.source_order_request'],
6652
6713
  });
6653
6714
 
6654
6715
  T['io.flow.stripe.v0.models.source'] = PropTypes.exact({
@@ -6670,6 +6731,7 @@ T['io.flow.stripe.v0.models.source'] = PropTypes.exact({
6670
6731
  status: T['io.flow.stripe.v0.enums.source_status'].isRequired,
6671
6732
  type: T['io.flow.stripe.v0.enums.source_type'].isRequired,
6672
6733
  usage: T['io.flow.stripe.v0.enums.source_usage_type'].isRequired,
6734
+ source_order: T['io.flow.stripe.v0.models.source_order'],
6673
6735
  });
6674
6736
 
6675
6737
  T['io.flow.stripe.v0.models.charge_source_optional'] = PropTypes.exact({
@@ -8851,11 +8913,10 @@ T['io.flow.internal.v0.models.landmark'] = PropTypes.exact({
8851
8913
 
8852
8914
  T['io.flow.internal.v0.models.dhl_ecommerce'] = PropTypes.exact({
8853
8915
  discriminator: PropTypes.oneOf(['dhl_ecommerce']).isRequired,
8854
- username: PropTypes.string.isRequired,
8855
- password: PropTypes.string.isRequired,
8856
- client_id: PropTypes.string.isRequired,
8857
- pickup_account_number: PropTypes.string.isRequired,
8916
+ client_id_v4: PropTypes.string.isRequired,
8917
+ client_secret_v4: PropTypes.string.isRequired,
8858
8918
  distribution_center: PropTypes.string.isRequired,
8919
+ pickup_account_number: PropTypes.string.isRequired,
8859
8920
  pickup_name: PropTypes.string.isRequired,
8860
8921
  });
8861
8922
 
@@ -10394,17 +10455,6 @@ T['io.flow.internal.v0.models.marketing_gateway_schema_summary'] = PropTypes.exa
10394
10455
  schema_compatibility: T['io.flow.internal.v0.enums.marketing_gateway_schema_compatibility'].isRequired,
10395
10456
  });
10396
10457
 
10397
- T['io.flow.internal.v0.enums.marketing_gateway_facebook_token_status'] = PropTypes.oneOf(['unknown', 'active', 'expired']);
10398
-
10399
- T['io.flow.internal.v0.models.marketing_gateway_facebook_connection_access_token_summary'] = PropTypes.exact({
10400
- catalog_id: PropTypes.number.isRequired,
10401
- created_at: PropTypes.number.isRequired,
10402
- expires_at: PropTypes.number,
10403
- user_id: PropTypes.string.isRequired,
10404
- user_email: PropTypes.string.isRequired,
10405
- token_status: T['io.flow.internal.v0.enums.marketing_gateway_facebook_token_status'].isRequired,
10406
- });
10407
-
10408
10458
  T['io.flow.internal.v0.models.marketing_gateway_facebook_business_summary'] = PropTypes.exact({
10409
10459
  business_id: PropTypes.number.isRequired,
10410
10460
  name: PropTypes.string.isRequired,
@@ -10418,6 +10468,17 @@ T['io.flow.internal.v0.models.marketing_gateway_facebook_connection'] = PropType
10418
10468
  ).isRequired,
10419
10469
  });
10420
10470
 
10471
+ T['io.flow.internal.v0.enums.marketing_gateway_facebook_token_status'] = PropTypes.oneOf(['unknown', 'active', 'expired']);
10472
+
10473
+ T['io.flow.internal.v0.models.marketing_gateway_facebook_connection_access_token_summary'] = PropTypes.exact({
10474
+ catalog_id: PropTypes.number.isRequired,
10475
+ created_at: PropTypes.number.isRequired,
10476
+ expires_at: PropTypes.number,
10477
+ user_id: PropTypes.string.isRequired,
10478
+ user_email: PropTypes.string,
10479
+ token_status: T['io.flow.internal.v0.enums.marketing_gateway_facebook_token_status'].isRequired,
10480
+ });
10481
+
10421
10482
  T['io.flow.internal.v0.models.marketing_gateway_product_datasource_summary'] = PropTypes.exact({
10422
10483
  name: PropTypes.string.isRequired,
10423
10484
  country: PropTypes.string,
@@ -10530,6 +10591,7 @@ T['io.flow.internal.v0.models.marketing_gateway_facebook_channel_details'] = Pro
10530
10591
 
10531
10592
  localized_feed_count: PropTypes.number,
10532
10593
  connected_at: PropTypes.string,
10594
+ token_summary: T['io.flow.internal.v0.models.marketing_gateway_facebook_connection_access_token_summary'],
10533
10595
  });
10534
10596
 
10535
10597
  T['io.flow.internal.v0.models.marketing_gateway_google_channel_details'] = PropTypes.exact({
@@ -17962,11 +18024,10 @@ T['io.flow.tracking.internal.v0.models.landmark'] = PropTypes.exact({
17962
18024
 
17963
18025
  T['io.flow.tracking.internal.v0.models.dhl_ecommerce'] = PropTypes.exact({
17964
18026
  discriminator: PropTypes.oneOf(['dhl_ecommerce']).isRequired,
17965
- username: PropTypes.string.isRequired,
17966
- password: PropTypes.string.isRequired,
17967
- client_id: PropTypes.string.isRequired,
17968
- pickup_account_number: PropTypes.string.isRequired,
18027
+ client_id_v4: PropTypes.string.isRequired,
18028
+ client_secret_v4: PropTypes.string.isRequired,
17969
18029
  distribution_center: PropTypes.string.isRequired,
18030
+ pickup_account_number: PropTypes.string.isRequired,
17970
18031
  pickup_name: PropTypes.string.isRequired,
17971
18032
  });
17972
18033
 
@@ -17988,6 +18049,11 @@ T['io.flow.tracking.internal.v0.unions.carrier_credentials'] = PropTypes.oneOfTy
17988
18049
  T['io.flow.tracking.internal.v0.models.fedex'],
17989
18050
  ]);
17990
18051
 
18052
+ T['io.flow.label.internal.v0.models.carrier_account_form'] = PropTypes.exact({
18053
+ carrier_id: PropTypes.string.isRequired,
18054
+ credentials: T['io.flow.tracking.internal.v0.unions.carrier_credentials'].isRequired,
18055
+ });
18056
+
17991
18057
  T['io.flow.tracking.internal.v0.models.tracking_request'] = PropTypes.exact({
17992
18058
  carrier: PropTypes.string.isRequired,
17993
18059
  carrier_tracking_number: PropTypes.string.isRequired,
@@ -18003,6 +18069,11 @@ T['io.flow.internal.v0.models.tracking_request_upserted'] = PropTypes.exact({
18003
18069
  tracking_request: T['io.flow.tracking.internal.v0.models.tracking_request'].isRequired,
18004
18070
  });
18005
18071
 
18072
+ T['io.flow.internal.v0.models.carrier_account_form'] = PropTypes.exact({
18073
+ carrier_id: PropTypes.string.isRequired,
18074
+ credentials: T['io.flow.tracking.internal.v0.unions.carrier_credentials'].isRequired,
18075
+ });
18076
+
18006
18077
  T['io.flow.fulfillment.v0.models.carrier_reference'] = PropTypes.exact({
18007
18078
  id: PropTypes.string.isRequired,
18008
18079
  });
@@ -18024,7 +18095,6 @@ T['io.flow.label.v0.models.manifest'] = PropTypes.exact({
18024
18095
 
18025
18096
  T['io.flow.label.internal.v0.models.carrier_account'] = PropTypes.exact({
18026
18097
  id: PropTypes.string.isRequired,
18027
- organization_id: PropTypes.string.isRequired,
18028
18098
  carrier: T['io.flow.fulfillment.v0.models.carrier_reference'].isRequired,
18029
18099
  credentials: T['io.flow.tracking.internal.v0.unions.carrier_credentials'].isRequired,
18030
18100
  });
@@ -18039,7 +18109,6 @@ T['io.flow.internal.v0.models.carrier_account_upserted'] = PropTypes.exact({
18039
18109
 
18040
18110
  T['io.flow.internal.v0.models.carrier_account'] = PropTypes.exact({
18041
18111
  id: PropTypes.string.isRequired,
18042
- organization_id: PropTypes.string.isRequired,
18043
18112
  carrier: T['io.flow.fulfillment.v0.models.carrier_reference'].isRequired,
18044
18113
  credentials: T['io.flow.tracking.internal.v0.unions.carrier_credentials'].isRequired,
18045
18114
  });
@@ -23697,6 +23766,10 @@ T['io.flow.internal.v0.models.classification_details'] = PropTypes.exact({
23697
23766
  hs6: PropTypes.string.isRequired,
23698
23767
  hs6_description: PropTypes.string.isRequired,
23699
23768
  url: PropTypes.string.isRequired,
23769
+ item_type: PropTypes.string.isRequired,
23770
+ material: PropTypes.string.isRequired,
23771
+ gender: PropTypes.string.isRequired,
23772
+ construction: PropTypes.string.isRequired,
23700
23773
  });
23701
23774
 
23702
23775
  T['io.flow.internal.v0.models.classification_requeue_request'] = PropTypes.exact({
@@ -24396,6 +24469,8 @@ T['io.flow.stripe.v0.enums.event_type'] = PropTypes.oneOf([
24396
24469
  'source.failed',
24397
24470
  ]);
24398
24471
 
24472
+ T['io.flow.stripe.v0.enums.klarna_payment_method_category_type'] = PropTypes.oneOf(['direct_bank_transfer', 'direct_debit', 'pay_later', 'pay_over_time']);
24473
+
24399
24474
  T['io.flow.stripe.v0.models.card_request'] = PropTypes.exact({
24400
24475
  object: PropTypes.string.isRequired,
24401
24476
  exp_month: PropTypes.string.isRequired,
@@ -25220,6 +25295,10 @@ T['io.flow.harmonization.internal.v0.models.classification_details'] = PropTypes
25220
25295
  hs6: PropTypes.string.isRequired,
25221
25296
  hs6_description: PropTypes.string.isRequired,
25222
25297
  url: PropTypes.string.isRequired,
25298
+ item_type: PropTypes.string.isRequired,
25299
+ material: PropTypes.string.isRequired,
25300
+ gender: PropTypes.string.isRequired,
25301
+ construction: PropTypes.string.isRequired,
25223
25302
  });
25224
25303
 
25225
25304
  T['io.flow.harmonization.internal.v0.models.customs_description_statistics'] = PropTypes.exact({
@@ -25699,6 +25778,7 @@ export const browserBundlePaymentMethodForm = T['io.flow.internal.v0.models.brow
25699
25778
  export const browserBundlePaymentMethods = T['io.flow.internal.v0.models.browser_bundle_payment_methods'];
25700
25779
  export const calculatedTaxAmount = T['io.flow.internal.v0.models.calculated_tax_amount'];
25701
25780
  export const carrierAccount = T['io.flow.internal.v0.models.carrier_account'];
25781
+ export const carrierAccountForm = T['io.flow.internal.v0.models.carrier_account_form'];
25702
25782
  export const carrierAccountUpserted = T['io.flow.internal.v0.models.carrier_account_upserted'];
25703
25783
  export const carrierCredentials = T['io.flow.internal.v0.unions.carrier_credentials'];
25704
25784
  export const carrierInvoice = T['io.flow.internal.v0.models.carrier_invoice'];
package/LICENSE DELETED
@@ -1,21 +0,0 @@
1
- MIT License
2
-
3
- Copyright (c) 2017 Flow Commerce
4
-
5
- Permission is hereby granted, free of charge, to any person obtaining a copy
6
- of this software and associated documentation files (the "Software"), to deal
7
- in the Software without restriction, including without limitation the rights
8
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
- copies of the Software, and to permit persons to whom the Software is
10
- furnished to do so, subject to the following conditions:
11
-
12
- The above copyright notice and this permission notice shall be included in all
13
- copies or substantial portions of the Software.
14
-
15
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
- SOFTWARE.