@flowio/types 10.6.1 → 10.6.3

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.
@@ -11,11 +11,10 @@ declare namespace io.flow.tracking.internal.v0.models {
11
11
  }
12
12
  interface DhlEcommerce {
13
13
  readonly discriminator: 'dhl_ecommerce';
14
- readonly username: string;
15
- readonly password: string;
16
- readonly client_id: string;
17
- readonly pickup_account_number: string;
14
+ readonly client_id_v4: string;
15
+ readonly client_secret_v4: string;
18
16
  readonly distribution_center: string;
17
+ readonly pickup_account_number: string;
19
18
  readonly pickup_name: string;
20
19
  }
21
20
  interface Fedex {
@@ -2307,6 +2306,7 @@ declare namespace io.flow.stripe.v0.enums {
2307
2306
  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';
2308
2307
  type ErrorType = 'api_connection_error' | 'api_error' | 'authentication_error' | 'card_error' | 'idempotency_error' | 'invalid_request_error' | 'rate_limit_error' | 'validation_error';
2309
2308
  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';
2309
+ type KlarnaPaymentMethodCategoryType = 'direct_bank_transfer' | 'direct_debit' | 'pay_later' | 'pay_over_time';
2310
2310
  type KlarnaProduct = 'payment';
2311
2311
  type NetworkStatus = 'approved_by_network' | 'declined_by_network' | 'not_sent_to_network' | 'reversed_after_approval';
2312
2312
  type NextActionType = 'redirect_to_url' | 'use_stripe_sdk';
@@ -2543,7 +2543,7 @@ declare namespace io.flow.stripe.v0.models {
2543
2543
  readonly shipping?: io.flow.stripe.v0.models.Shipping;
2544
2544
  }
2545
2545
  interface OrderItem {
2546
- readonly object: string;
2546
+ readonly object?: string;
2547
2547
  readonly amount: number;
2548
2548
  readonly currency: string;
2549
2549
  readonly description?: string;
@@ -2762,7 +2762,7 @@ declare namespace io.flow.stripe.v0.models {
2762
2762
  }
2763
2763
  interface Shipping {
2764
2764
  readonly address: io.flow.stripe.v0.models.Address;
2765
- readonly name: string;
2765
+ readonly name?: string;
2766
2766
  readonly phone?: string;
2767
2767
  }
2768
2768
  interface Source {
@@ -2784,6 +2784,7 @@ declare namespace io.flow.stripe.v0.models {
2784
2784
  readonly status: io.flow.stripe.v0.enums.SourceStatus;
2785
2785
  readonly type: io.flow.stripe.v0.enums.SourceType;
2786
2786
  readonly usage: io.flow.stripe.v0.enums.SourceUsageType;
2787
+ readonly source_order?: io.flow.stripe.v0.models.SourceOrder;
2787
2788
  }
2788
2789
  interface SourceCard {
2789
2790
  readonly exp_month: number;
@@ -2811,6 +2812,26 @@ declare namespace io.flow.stripe.v0.models {
2811
2812
  readonly first_name?: string;
2812
2813
  readonly last_name?: string;
2813
2814
  readonly client_token: string;
2815
+ readonly payment_method_categories?: string;
2816
+ readonly purchase_country?: string;
2817
+ readonly shipping_first_name?: string;
2818
+ readonly shipping_last_name?: string;
2819
+ readonly locale?: string;
2820
+ readonly pay_later_name?: string;
2821
+ readonly pay_later_asset_url_standard?: string;
2822
+ readonly pay_later_asset_url_descriptive?: string;
2823
+ readonly pay_now_name?: string;
2824
+ readonly pay_now_asset_url_standard?: string;
2825
+ readonly pay_now_asset_url_descriptive?: string;
2826
+ readonly pay_over_time_name?: string;
2827
+ readonly pay_over_time_asset_url_standard?: string;
2828
+ readonly pay_over_time_asset_url_descriptive?: string;
2829
+ readonly direct_bank_transfer_name?: string;
2830
+ readonly direct_bank_transfer_asset_url_standard?: string;
2831
+ readonly direct_bank_transfer_asset_url_descriptive?: string;
2832
+ readonly direct_debit_name?: string;
2833
+ readonly direct_debit_asset_url_standard?: string;
2834
+ readonly direct_debit_asset_url_descriptive?: string;
2814
2835
  }
2815
2836
  interface SourceKlarnaRequest {
2816
2837
  readonly first_name: string;
@@ -2822,6 +2843,17 @@ declare namespace io.flow.stripe.v0.models {
2822
2843
  readonly shipping_last_name?: string;
2823
2844
  readonly locale?: string;
2824
2845
  }
2846
+ interface SourceOrder {
2847
+ readonly amount?: number;
2848
+ readonly currency?: string;
2849
+ readonly email?: string;
2850
+ readonly items?: io.flow.stripe.v0.models.OrderItem[];
2851
+ readonly shipping?: io.flow.stripe.v0.models.Shipping;
2852
+ }
2853
+ interface SourceOrderRequest {
2854
+ readonly items?: io.flow.stripe.v0.models.OrderItemRequest[];
2855
+ readonly shipping?: io.flow.stripe.v0.models.Shipping;
2856
+ }
2825
2857
  interface SourceRequest {
2826
2858
  readonly type?: io.flow.stripe.v0.enums.SourceType;
2827
2859
  readonly amount?: number;
@@ -2837,6 +2869,7 @@ declare namespace io.flow.stripe.v0.models {
2837
2869
  readonly three_d_secure?: io.flow.stripe.v0.models.ThreeDSecure;
2838
2870
  readonly token?: string;
2839
2871
  readonly usage: io.flow.stripe.v0.enums.SourceUsageType;
2872
+ readonly source_order?: io.flow.stripe.v0.models.SourceOrderRequest;
2840
2873
  }
2841
2874
  interface Stripe3Ds2Fingerprint {
2842
2875
  readonly type: io.flow.stripe.v0.enums.UseStripeSdkType;
@@ -5822,6 +5855,17 @@ declare namespace io.flow.payment.internal.v0.models {
5822
5855
  interface KeyReference {
5823
5856
  readonly id: string;
5824
5857
  }
5858
+ interface KlarnaAuthorizationParameters {
5859
+ readonly discriminator: 'klarna_authorization_parameters';
5860
+ readonly client_token: string;
5861
+ readonly payment_method_categories: io.flow.payment.internal.v0.models.KlarnaPaymentMethodCategory[];
5862
+ }
5863
+ interface KlarnaPaymentMethodCategory {
5864
+ readonly id: string;
5865
+ readonly name?: string;
5866
+ readonly standard_asset_url?: string;
5867
+ readonly descriptive_asset_url?: string;
5868
+ }
5825
5869
  interface OnlineAuthorizationCompleted {
5826
5870
  readonly discriminator: 'online_authorization_completed';
5827
5871
  readonly id: string;
@@ -6058,6 +6102,7 @@ declare namespace io.flow.payment.internal.v0.models {
6058
6102
  }
6059
6103
  declare namespace io.flow.payment.internal.v0.unions {
6060
6104
  type AuthorizationPayload = io.flow.payment.internal.v0.models.ApplePaymentToken | io.flow.payment.internal.v0.models.PaypalAuthorizationPayload;
6105
+ type InlineAuthorizationParameters = io.flow.payment.internal.v0.models.KlarnaAuthorizationParameters;
6061
6106
  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;
6062
6107
  type InternalRefundForm = io.flow.payment.internal.v0.models.AdyenRefundForm;
6063
6108
  type PaymentRedirect = io.flow.payment.internal.v0.models.OnlineAuthorizationCompleted | io.flow.payment.internal.v0.models.RedirectActionCompleted;
@@ -8012,6 +8057,7 @@ declare namespace io.flow.marketing.gateway.v0.enums {
8012
8057
  type MarketingGatewayChannelIntegrationType = 'automated' | 'manual';
8013
8058
  type MarketingGatewayChannelStatus = 'not_connected' | 'connecting' | 'connected' | 'disconnecting' | 'disconnected' | 'unavailable';
8014
8059
  type MarketingGatewayErrorCode = 'generic_error' | 'google_api_error' | 'facebook_api_error' | 'invalid_oauth_token_error';
8060
+ type MarketingGatewayFacebookTokenStatus = 'unknown' | 'active' | 'expired';
8015
8061
  type MarketingGatewayFeedDownloadFormat = 'tsv' | 'csv' | 'txt';
8016
8062
  type MarketingGatewayFeedState = 'initialized' | 'generated' | 'in_review' | 'rejected' | 'active';
8017
8063
  type MarketingGatewayPlatform = 'google' | 'facebook' | 'adroll' | 'aliexpress' | 'amazon' | 'bing' | 'criteo' | 'fruugo' | 'pinterest' | 'rakuten_japan' | 'wish' | 'snapchat';
@@ -8075,11 +8121,20 @@ declare namespace io.flow.marketing.gateway.v0.models {
8075
8121
  readonly datasources?: io.flow.marketing.gateway.v0.models.MarketingGatewayProductDatasourceSummary[];
8076
8122
  readonly localized_feed_count?: number;
8077
8123
  readonly connected_at?: string;
8124
+ readonly token_summary?: io.flow.marketing.gateway.v0.models.MarketingGatewayFacebookConnectionAccessTokenSummary;
8078
8125
  }
8079
8126
  interface MarketingGatewayFacebookConnection {
8080
8127
  readonly organization_id: string;
8081
8128
  readonly businesses: io.flow.marketing.gateway.v0.models.MarketingGatewayFacebookBusinessSummary[];
8082
8129
  }
8130
+ interface MarketingGatewayFacebookConnectionAccessTokenSummary {
8131
+ readonly catalog_id: number;
8132
+ readonly created_at: number;
8133
+ readonly expires_at?: number;
8134
+ readonly user_id: string;
8135
+ readonly user_email?: string;
8136
+ readonly token_status: io.flow.marketing.gateway.v0.enums.MarketingGatewayFacebookTokenStatus;
8137
+ }
8083
8138
  interface MarketingGatewayFacebookConnectionDeauth {
8084
8139
  readonly user_id: number;
8085
8140
  }
@@ -8278,10 +8333,13 @@ declare namespace io.flow.label.internal.v0.enums {
8278
8333
  declare namespace io.flow.label.internal.v0.models {
8279
8334
  interface CarrierAccount {
8280
8335
  readonly id: string;
8281
- readonly organization_id: string;
8282
8336
  readonly carrier: io.flow.fulfillment.v0.models.CarrierReference;
8283
8337
  readonly credentials: io.flow.tracking.internal.v0.unions.CarrierCredentials;
8284
8338
  }
8339
+ interface CarrierAccountForm {
8340
+ readonly carrier_id: string;
8341
+ readonly credentials: io.flow.tracking.internal.v0.unions.CarrierCredentials;
8342
+ }
8285
8343
  interface CarrierInvoice {
8286
8344
  readonly number: string;
8287
8345
  readonly timestamp: string;
@@ -9095,6 +9153,10 @@ declare namespace io.flow.harmonization.internal.v0.models {
9095
9153
  readonly hs6: string;
9096
9154
  readonly hs6_description: string;
9097
9155
  readonly url: string;
9156
+ readonly item_type: string;
9157
+ readonly material: string;
9158
+ readonly gender: string;
9159
+ readonly construction: string;
9098
9160
  }
9099
9161
  interface ClassificationItem {
9100
9162
  readonly id: string;
@@ -13687,10 +13749,13 @@ declare namespace io.flow.internal.v0.models {
13687
13749
  }
13688
13750
  interface CarrierAccount {
13689
13751
  readonly id: string;
13690
- readonly organization_id: string;
13691
13752
  readonly carrier: io.flow.fulfillment.v0.models.CarrierReference;
13692
13753
  readonly credentials: io.flow.tracking.internal.v0.unions.CarrierCredentials;
13693
13754
  }
13755
+ interface CarrierAccountForm {
13756
+ readonly carrier_id: string;
13757
+ readonly credentials: io.flow.tracking.internal.v0.unions.CarrierCredentials;
13758
+ }
13694
13759
  interface CarrierAccountUpserted {
13695
13760
  readonly discriminator: 'carrier_account_upserted';
13696
13761
  readonly event_id: string;
@@ -15046,6 +15111,10 @@ declare namespace io.flow.internal.v0.models {
15046
15111
  readonly hs6: string;
15047
15112
  readonly hs6_description: string;
15048
15113
  readonly url: string;
15114
+ readonly item_type: string;
15115
+ readonly material: string;
15116
+ readonly gender: string;
15117
+ readonly construction: string;
15049
15118
  }
15050
15119
  interface ClassificationItem {
15051
15120
  readonly id: string;
@@ -15352,11 +15421,10 @@ declare namespace io.flow.internal.v0.models {
15352
15421
  }
15353
15422
  interface DhlEcommerce {
15354
15423
  readonly discriminator: 'dhl_ecommerce';
15355
- readonly username: string;
15356
- readonly password: string;
15357
- readonly client_id: string;
15358
- readonly pickup_account_number: string;
15424
+ readonly client_id_v4: string;
15425
+ readonly client_secret_v4: string;
15359
15426
  readonly distribution_center: string;
15427
+ readonly pickup_account_number: string;
15360
15428
  readonly pickup_name: string;
15361
15429
  }
15362
15430
  interface Dict {
@@ -16945,6 +17013,7 @@ declare namespace io.flow.internal.v0.models {
16945
17013
  readonly datasources?: io.flow.internal.v0.models.MarketingGatewayProductDatasourceSummary[];
16946
17014
  readonly localized_feed_count?: number;
16947
17015
  readonly connected_at?: string;
17016
+ readonly token_summary?: io.flow.internal.v0.models.MarketingGatewayFacebookConnectionAccessTokenSummary;
16948
17017
  }
16949
17018
  interface MarketingGatewayFacebookConnection {
16950
17019
  readonly organization_id: string;
@@ -16955,7 +17024,7 @@ declare namespace io.flow.internal.v0.models {
16955
17024
  readonly created_at: number;
16956
17025
  readonly expires_at?: number;
16957
17026
  readonly user_id: string;
16958
- readonly user_email: string;
17027
+ readonly user_email?: string;
16959
17028
  readonly token_status: io.flow.internal.v0.enums.MarketingGatewayFacebookTokenStatus;
16960
17029
  }
16961
17030
  interface MarketingGatewayFacebookConnectionDeauth {
@@ -19392,6 +19461,7 @@ export declare type BrowserBundlePaymentMethodForm = io.flow.internal.v0.models.
19392
19461
  export declare type BrowserBundlePaymentMethods = io.flow.internal.v0.models.BrowserBundlePaymentMethods;
19393
19462
  export declare type CalculatedTaxAmount = io.flow.internal.v0.models.CalculatedTaxAmount;
19394
19463
  export declare type CarrierAccount = io.flow.internal.v0.models.CarrierAccount;
19464
+ export declare type CarrierAccountForm = io.flow.internal.v0.models.CarrierAccountForm;
19395
19465
  export declare type CarrierAccountUpserted = io.flow.internal.v0.models.CarrierAccountUpserted;
19396
19466
  export declare type CarrierCredentials = io.flow.internal.v0.unions.CarrierCredentials;
19397
19467
  export declare type CarrierInvoice = io.flow.internal.v0.models.CarrierInvoice;
package/dist/index.js CHANGED
@@ -1,12 +1,25 @@
1
1
  "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
5
+ }) : (function(o, m, k, k2) {
6
+ if (k2 === undefined) k2 = k;
7
+ o[k2] = m[k];
8
+ }));
9
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
10
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
11
+ }) : function(o, v) {
12
+ o["default"] = v;
13
+ });
2
14
  var __importStar = (this && this.__importStar) || function (mod) {
3
15
  if (mod && mod.__esModule) return mod;
4
16
  var result = {};
5
- if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k];
6
- result["default"] = mod;
17
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
18
+ __setModuleDefault(result, mod);
7
19
  return result;
8
20
  };
9
21
  Object.defineProperty(exports, "__esModule", { value: true });
22
+ exports.apiInternalTypes = exports.apiTypes = void 0;
10
23
  var apiTypes = __importStar(require("./api"));
11
24
  exports.apiTypes = apiTypes;
12
25
  var apiInternalTypes = __importStar(require("./api-internal"));
package/package.json CHANGED
@@ -1,17 +1,14 @@
1
1
  {
2
2
  "name": "@flowio/types",
3
- "version": "10.6.1",
3
+ "version": "10.6.3",
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",
7
7
  "scripts": {
8
8
  "build": "tsc",
9
- "ci": "npm run build",
10
- "clean": "rm -rf dist",
11
9
  "format": "prettier --parser typescript --trailing-comma all --single-quote --write ./src/**/*.ts",
12
- "postregenerate": "npm run format",
13
- "prepare": "npm run clean && npm run build",
14
- "regenerate": "apibuilder update"
10
+ "generate": "apibuilder update",
11
+ "postgenerate": "npm run format"
15
12
  },
16
13
  "keywords": [
17
14
  "flow",
@@ -20,12 +17,13 @@
20
17
  ],
21
18
  "author": "Flow Commerce",
22
19
  "license": "MIT",
20
+ "repository": {
21
+ "type": "git",
22
+ "url": "git@github.com:flowcommerce/api-javascript.git",
23
+ "directory": "packages/types"
24
+ },
23
25
  "maintainers": [
24
26
  "Christian Muñoz <christian.munoz@flow.io>"
25
27
  ],
26
- "devDependencies": {
27
- "prettier": "^1.18.2",
28
- "typescript": "3.8.3"
29
- },
30
- "gitHead": "2a3833fbc25f0fa10882cffe671f4d72583e746d"
28
+ "gitHead": "fba4c6a6a597e1843f689a7a58f6159131364578"
31
29
  }
@@ -13,11 +13,10 @@ declare namespace io.flow.tracking.internal.v0.models {
13
13
 
14
14
  interface DhlEcommerce {
15
15
  readonly discriminator: 'dhl_ecommerce';
16
- readonly username: string;
17
- readonly password: string;
18
- readonly client_id: string;
19
- readonly pickup_account_number: string;
16
+ readonly client_id_v4: string;
17
+ readonly client_secret_v4: string;
20
18
  readonly distribution_center: string;
19
+ readonly pickup_account_number: string;
21
20
  readonly pickup_name: string;
22
21
  }
23
22
 
@@ -3218,6 +3217,11 @@ declare namespace io.flow.stripe.v0.enums {
3218
3217
  | 'source.canceled'
3219
3218
  | 'source.chargeable'
3220
3219
  | 'source.failed';
3220
+ type KlarnaPaymentMethodCategoryType =
3221
+ | 'direct_bank_transfer'
3222
+ | 'direct_debit'
3223
+ | 'pay_later'
3224
+ | 'pay_over_time';
3221
3225
  type KlarnaProduct = 'payment';
3222
3226
  type NetworkStatus =
3223
3227
  | 'approved_by_network'
@@ -3522,7 +3526,7 @@ declare namespace io.flow.stripe.v0.models {
3522
3526
  }
3523
3527
 
3524
3528
  interface OrderItem {
3525
- readonly object: string;
3529
+ readonly object?: string;
3526
3530
  readonly amount: number;
3527
3531
  readonly currency: string;
3528
3532
  readonly description?: string;
@@ -3764,7 +3768,7 @@ declare namespace io.flow.stripe.v0.models {
3764
3768
 
3765
3769
  interface Shipping {
3766
3770
  readonly address: io.flow.stripe.v0.models.Address;
3767
- readonly name: string;
3771
+ readonly name?: string;
3768
3772
  readonly phone?: string;
3769
3773
  }
3770
3774
 
@@ -3787,6 +3791,7 @@ declare namespace io.flow.stripe.v0.models {
3787
3791
  readonly status: io.flow.stripe.v0.enums.SourceStatus;
3788
3792
  readonly type: io.flow.stripe.v0.enums.SourceType;
3789
3793
  readonly usage: io.flow.stripe.v0.enums.SourceUsageType;
3794
+ readonly source_order?: io.flow.stripe.v0.models.SourceOrder;
3790
3795
  }
3791
3796
 
3792
3797
  interface SourceCard {
@@ -3817,6 +3822,26 @@ declare namespace io.flow.stripe.v0.models {
3817
3822
  readonly first_name?: string;
3818
3823
  readonly last_name?: string;
3819
3824
  readonly client_token: string;
3825
+ readonly payment_method_categories?: string;
3826
+ readonly purchase_country?: string;
3827
+ readonly shipping_first_name?: string;
3828
+ readonly shipping_last_name?: string;
3829
+ readonly locale?: string;
3830
+ readonly pay_later_name?: string;
3831
+ readonly pay_later_asset_url_standard?: string;
3832
+ readonly pay_later_asset_url_descriptive?: string;
3833
+ readonly pay_now_name?: string;
3834
+ readonly pay_now_asset_url_standard?: string;
3835
+ readonly pay_now_asset_url_descriptive?: string;
3836
+ readonly pay_over_time_name?: string;
3837
+ readonly pay_over_time_asset_url_standard?: string;
3838
+ readonly pay_over_time_asset_url_descriptive?: string;
3839
+ readonly direct_bank_transfer_name?: string;
3840
+ readonly direct_bank_transfer_asset_url_standard?: string;
3841
+ readonly direct_bank_transfer_asset_url_descriptive?: string;
3842
+ readonly direct_debit_name?: string;
3843
+ readonly direct_debit_asset_url_standard?: string;
3844
+ readonly direct_debit_asset_url_descriptive?: string;
3820
3845
  }
3821
3846
 
3822
3847
  interface SourceKlarnaRequest {
@@ -3830,6 +3855,19 @@ declare namespace io.flow.stripe.v0.models {
3830
3855
  readonly locale?: string;
3831
3856
  }
3832
3857
 
3858
+ interface SourceOrder {
3859
+ readonly amount?: number;
3860
+ readonly currency?: string;
3861
+ readonly email?: string;
3862
+ readonly items?: io.flow.stripe.v0.models.OrderItem[];
3863
+ readonly shipping?: io.flow.stripe.v0.models.Shipping;
3864
+ }
3865
+
3866
+ interface SourceOrderRequest {
3867
+ readonly items?: io.flow.stripe.v0.models.OrderItemRequest[];
3868
+ readonly shipping?: io.flow.stripe.v0.models.Shipping;
3869
+ }
3870
+
3833
3871
  interface SourceRequest {
3834
3872
  readonly type?: io.flow.stripe.v0.enums.SourceType;
3835
3873
  readonly amount?: number;
@@ -3845,6 +3883,7 @@ declare namespace io.flow.stripe.v0.models {
3845
3883
  readonly three_d_secure?: io.flow.stripe.v0.models.ThreeDSecure;
3846
3884
  readonly token?: string;
3847
3885
  readonly usage: io.flow.stripe.v0.enums.SourceUsageType;
3886
+ readonly source_order?: io.flow.stripe.v0.models.SourceOrderRequest;
3848
3887
  }
3849
3888
 
3850
3889
  interface Stripe3Ds2Fingerprint {
@@ -7824,6 +7863,19 @@ declare namespace io.flow.payment.internal.v0.models {
7824
7863
  readonly id: string;
7825
7864
  }
7826
7865
 
7866
+ interface KlarnaAuthorizationParameters {
7867
+ readonly discriminator: 'klarna_authorization_parameters';
7868
+ readonly client_token: string;
7869
+ readonly payment_method_categories: io.flow.payment.internal.v0.models.KlarnaPaymentMethodCategory[];
7870
+ }
7871
+
7872
+ interface KlarnaPaymentMethodCategory {
7873
+ readonly id: string;
7874
+ readonly name?: string;
7875
+ readonly standard_asset_url?: string;
7876
+ readonly descriptive_asset_url?: string;
7877
+ }
7878
+
7827
7879
  interface OnlineAuthorizationCompleted {
7828
7880
  readonly discriminator: 'online_authorization_completed';
7829
7881
  readonly id: string;
@@ -8096,6 +8148,7 @@ declare namespace io.flow.payment.internal.v0.unions {
8096
8148
  type AuthorizationPayload =
8097
8149
  | io.flow.payment.internal.v0.models.ApplePaymentToken
8098
8150
  | io.flow.payment.internal.v0.models.PaypalAuthorizationPayload;
8151
+ type InlineAuthorizationParameters = io.flow.payment.internal.v0.models.KlarnaAuthorizationParameters;
8099
8152
  type InternalAuthorizationDetails =
8100
8153
  | io.flow.payment.internal.v0.models.InternalPaypalAuthorizationDetails
8101
8154
  | io.flow.payment.internal.v0.models.InternalBitpayAuthorizationDetails
@@ -10574,6 +10627,7 @@ declare namespace io.flow.marketing.gateway.v0.enums {
10574
10627
  | 'google_api_error'
10575
10628
  | 'facebook_api_error'
10576
10629
  | 'invalid_oauth_token_error';
10630
+ type MarketingGatewayFacebookTokenStatus = 'unknown' | 'active' | 'expired';
10577
10631
  type MarketingGatewayFeedDownloadFormat = 'tsv' | 'csv' | 'txt';
10578
10632
  type MarketingGatewayFeedState =
10579
10633
  | 'initialized'
@@ -10676,6 +10730,7 @@ declare namespace io.flow.marketing.gateway.v0.models {
10676
10730
  readonly datasources?: io.flow.marketing.gateway.v0.models.MarketingGatewayProductDatasourceSummary[];
10677
10731
  readonly localized_feed_count?: number;
10678
10732
  readonly connected_at?: string;
10733
+ readonly token_summary?: io.flow.marketing.gateway.v0.models.MarketingGatewayFacebookConnectionAccessTokenSummary;
10679
10734
  }
10680
10735
 
10681
10736
  interface MarketingGatewayFacebookConnection {
@@ -10683,6 +10738,15 @@ declare namespace io.flow.marketing.gateway.v0.models {
10683
10738
  readonly businesses: io.flow.marketing.gateway.v0.models.MarketingGatewayFacebookBusinessSummary[];
10684
10739
  }
10685
10740
 
10741
+ interface MarketingGatewayFacebookConnectionAccessTokenSummary {
10742
+ readonly catalog_id: number;
10743
+ readonly created_at: number;
10744
+ readonly expires_at?: number;
10745
+ readonly user_id: string;
10746
+ readonly user_email?: string;
10747
+ readonly token_status: io.flow.marketing.gateway.v0.enums.MarketingGatewayFacebookTokenStatus;
10748
+ }
10749
+
10686
10750
  interface MarketingGatewayFacebookConnectionDeauth {
10687
10751
  readonly user_id: number;
10688
10752
  }
@@ -10923,11 +10987,15 @@ declare namespace io.flow.label.internal.v0.enums {
10923
10987
  declare namespace io.flow.label.internal.v0.models {
10924
10988
  interface CarrierAccount {
10925
10989
  readonly id: string;
10926
- readonly organization_id: string;
10927
10990
  readonly carrier: io.flow.fulfillment.v0.models.CarrierReference;
10928
10991
  readonly credentials: io.flow.tracking.internal.v0.unions.CarrierCredentials;
10929
10992
  }
10930
10993
 
10994
+ interface CarrierAccountForm {
10995
+ readonly carrier_id: string;
10996
+ readonly credentials: io.flow.tracking.internal.v0.unions.CarrierCredentials;
10997
+ }
10998
+
10931
10999
  interface CarrierInvoice {
10932
11000
  readonly number: string;
10933
11001
  readonly timestamp: string;
@@ -11992,6 +12060,10 @@ declare namespace io.flow.harmonization.internal.v0.models {
11992
12060
  readonly hs6: string;
11993
12061
  readonly hs6_description: string;
11994
12062
  readonly url: string;
12063
+ readonly item_type: string;
12064
+ readonly material: string;
12065
+ readonly gender: string;
12066
+ readonly construction: string;
11995
12067
  }
11996
12068
 
11997
12069
  interface ClassificationItem {
@@ -18097,11 +18169,15 @@ declare namespace io.flow.internal.v0.models {
18097
18169
 
18098
18170
  interface CarrierAccount {
18099
18171
  readonly id: string;
18100
- readonly organization_id: string;
18101
18172
  readonly carrier: io.flow.fulfillment.v0.models.CarrierReference;
18102
18173
  readonly credentials: io.flow.tracking.internal.v0.unions.CarrierCredentials;
18103
18174
  }
18104
18175
 
18176
+ interface CarrierAccountForm {
18177
+ readonly carrier_id: string;
18178
+ readonly credentials: io.flow.tracking.internal.v0.unions.CarrierCredentials;
18179
+ }
18180
+
18105
18181
  interface CarrierAccountUpserted {
18106
18182
  readonly discriminator: 'carrier_account_upserted';
18107
18183
  readonly event_id: string;
@@ -19746,6 +19822,10 @@ declare namespace io.flow.internal.v0.models {
19746
19822
  readonly hs6: string;
19747
19823
  readonly hs6_description: string;
19748
19824
  readonly url: string;
19825
+ readonly item_type: string;
19826
+ readonly material: string;
19827
+ readonly gender: string;
19828
+ readonly construction: string;
19749
19829
  }
19750
19830
 
19751
19831
  interface ClassificationItem {
@@ -20115,11 +20195,10 @@ declare namespace io.flow.internal.v0.models {
20115
20195
 
20116
20196
  interface DhlEcommerce {
20117
20197
  readonly discriminator: 'dhl_ecommerce';
20118
- readonly username: string;
20119
- readonly password: string;
20120
- readonly client_id: string;
20121
- readonly pickup_account_number: string;
20198
+ readonly client_id_v4: string;
20199
+ readonly client_secret_v4: string;
20122
20200
  readonly distribution_center: string;
20201
+ readonly pickup_account_number: string;
20123
20202
  readonly pickup_name: string;
20124
20203
  }
20125
20204
 
@@ -21971,6 +22050,7 @@ declare namespace io.flow.internal.v0.models {
21971
22050
  readonly datasources?: io.flow.internal.v0.models.MarketingGatewayProductDatasourceSummary[];
21972
22051
  readonly localized_feed_count?: number;
21973
22052
  readonly connected_at?: string;
22053
+ readonly token_summary?: io.flow.internal.v0.models.MarketingGatewayFacebookConnectionAccessTokenSummary;
21974
22054
  }
21975
22055
 
21976
22056
  interface MarketingGatewayFacebookConnection {
@@ -21983,7 +22063,7 @@ declare namespace io.flow.internal.v0.models {
21983
22063
  readonly created_at: number;
21984
22064
  readonly expires_at?: number;
21985
22065
  readonly user_id: string;
21986
- readonly user_email: string;
22066
+ readonly user_email?: string;
21987
22067
  readonly token_status: io.flow.internal.v0.enums.MarketingGatewayFacebookTokenStatus;
21988
22068
  }
21989
22069
 
@@ -25223,6 +25303,7 @@ export type BrowserBundlePaymentMethodForm = io.flow.internal.v0.models.BrowserB
25223
25303
  export type BrowserBundlePaymentMethods = io.flow.internal.v0.models.BrowserBundlePaymentMethods;
25224
25304
  export type CalculatedTaxAmount = io.flow.internal.v0.models.CalculatedTaxAmount;
25225
25305
  export type CarrierAccount = io.flow.internal.v0.models.CarrierAccount;
25306
+ export type CarrierAccountForm = io.flow.internal.v0.models.CarrierAccountForm;
25226
25307
  export type CarrierAccountUpserted = io.flow.internal.v0.models.CarrierAccountUpserted;
25227
25308
  export type CarrierCredentials = io.flow.internal.v0.unions.CarrierCredentials;
25228
25309
  export type CarrierInvoice = io.flow.internal.v0.models.CarrierInvoice;
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.