ultracart_rest_api_v2_typescript 3.9.3 → 3.9.6

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/README.md CHANGED
@@ -1,4 +1,4 @@
1
- ## ultracart_rest_api_v2_typescript@3.9.3
1
+ ## ultracart_rest_api_v2_typescript@3.9.6
2
2
 
3
3
  This generator creates TypeScript/JavaScript client that utilizes [Fetch API](https://fetch.spec.whatwg.org/). The generated Node module can be used in the following environments:
4
4
 
@@ -36,7 +36,7 @@ navigate to the folder of your consuming project and run one of the following co
36
36
  _published:_
37
37
 
38
38
  ```
39
- npm install ultracart_rest_api_v2_typescript@3.9.3 --save
39
+ npm install ultracart_rest_api_v2_typescript@3.9.6 --save
40
40
  ```
41
41
 
42
42
  _unPublished (not recommended):_
@@ -54,6 +54,9 @@ Not every change is committed to every SDK.
54
54
 
55
55
  | Version | Date | Comments |
56
56
  | --: | :-: | --- |
57
+ | 3.9.6 | 04/25/2022 | storefront communications email magic link setting |
58
+ | 3.9.5 | 04/14/2022 | postcard screenshot bug fixes |
59
+ | 3.9.4 | 04/13/2022 | Added spf DNS record to the sending domain object |
57
60
  | 3.9.3 | 04/06/2022 | fix return object on send webhook test method |
58
61
  | 3.9.2 | 04/04/2022 | user.email field extended and postcard screenshot fields |
59
62
  | 3.9.1 | 03/03/2022 | javascript sdk package.json bug fix |
package/api.ts CHANGED
@@ -1226,6 +1226,12 @@ export interface AutoOrder {
1226
1226
  * @memberof AutoOrder
1227
1227
  */
1228
1228
  cancel_downgrade?: boolean;
1229
+ /**
1230
+ * The reason this auto order was canceled by either merchant or customer
1231
+ * @type {string}
1232
+ * @memberof AutoOrder
1233
+ */
1234
+ cancel_reason?: string;
1229
1235
  /**
1230
1236
  * True if the auto order was canceled because the customer purchased an upgrade item
1231
1237
  * @type {boolean}
@@ -8332,6 +8338,18 @@ export interface CustomerLoyalty {
8332
8338
  * @memberof CustomerLoyalty
8333
8339
  */
8334
8340
  current_points?: number;
8341
+ /**
8342
+ * Loyalty Cashback / Store credit balance (internal gift certificate balance)
8343
+ * @type {string}
8344
+ * @memberof CustomerLoyalty
8345
+ */
8346
+ internal_gift_certificate_balance?: string;
8347
+ /**
8348
+ * Internal gift certificate oid used to tracking loyalty cashback / store credit.
8349
+ * @type {number}
8350
+ * @memberof CustomerLoyalty
8351
+ */
8352
+ internal_gift_certificate_oid?: number;
8335
8353
  /**
8336
8354
  * Ledger entries
8337
8355
  * @type {Array<CustomerLoyaltyLedger>}
@@ -10069,6 +10087,12 @@ export interface EmailCommseqEmail {
10069
10087
  * @memberof EmailCommseqEmail
10070
10088
  */
10071
10089
  library_item_oid?: number;
10090
+ /**
10091
+ * True if email links should contain magic link tokens to log the customer in automatically
10092
+ * @type {boolean}
10093
+ * @memberof EmailCommseqEmail
10094
+ */
10095
+ magic_link?: boolean;
10072
10096
  /**
10073
10097
  * Merchant ID
10074
10098
  * @type {string}
@@ -10442,17 +10466,17 @@ export interface EmailCommseqPostcard {
10442
10466
  */
10443
10467
  postcard_front_container_uuid?: string;
10444
10468
  /**
10445
- * URL for front screenshot
10469
+ * URL to screenshot of the back of the postcard
10446
10470
  * @type {string}
10447
10471
  * @memberof EmailCommseqPostcard
10448
10472
  */
10449
- screenshot_front_url?: string;
10473
+ screenshot_back_url?: string;
10450
10474
  /**
10451
- * URL for back screenshot
10475
+ * URL to screenshot of the front of the postcard
10452
10476
  * @type {string}
10453
10477
  * @memberof EmailCommseqPostcard
10454
10478
  */
10455
- screenshot_small_full_url?: string;
10479
+ screenshot_front_url?: string;
10456
10480
  /**
10457
10481
  * Storefront oid
10458
10482
  * @type {number}
@@ -11594,6 +11618,12 @@ export interface EmailDomain {
11594
11618
  * @memberof EmailDomain
11595
11619
  */
11596
11620
  provider?: string;
11621
+ /**
11622
+ *
11623
+ * @type {VerificationRecord}
11624
+ * @memberof EmailDomain
11625
+ */
11626
+ spf?: VerificationRecord;
11597
11627
  /**
11598
11628
  *
11599
11629
  * @type {string}
@@ -12758,6 +12788,12 @@ export interface EmailPerformance {
12758
12788
  * @memberof EmailPerformance
12759
12789
  */
12760
12790
  delivered_count?: number;
12791
+ /**
12792
+ * Loyalty Program Type
12793
+ * @type {string}
12794
+ * @memberof EmailPerformance
12795
+ */
12796
+ loyalty_program_type?: EmailPerformance.LoyaltyProgramTypeEnum;
12761
12797
  /**
12762
12798
  * Maximum active customers allowed under their billing plan
12763
12799
  * @type {number}
@@ -12844,6 +12880,22 @@ export interface EmailPerformance {
12844
12880
  transactional_send_count?: number;
12845
12881
  }
12846
12882
 
12883
+ /**
12884
+ * @export
12885
+ * @namespace EmailPerformance
12886
+ */
12887
+ export namespace EmailPerformance {
12888
+ /**
12889
+ * @export
12890
+ * @enum {string}
12891
+ */
12892
+ export enum LoyaltyProgramTypeEnum {
12893
+ Disabled = <any> 'disabled',
12894
+ Points = <any> 'points',
12895
+ Cashback = <any> 'cashback'
12896
+ }
12897
+ }
12898
+
12847
12899
  /**
12848
12900
  *
12849
12901
  * @export
@@ -22326,6 +22378,12 @@ export interface OrderAutoOrder {
22326
22378
  * @memberof OrderAutoOrder
22327
22379
  */
22328
22380
  cancel_downgrade?: boolean;
22381
+ /**
22382
+ * The reason this auto order was canceled by either merchant or customer
22383
+ * @type {string}
22384
+ * @memberof OrderAutoOrder
22385
+ */
22386
+ cancel_reason?: string;
22329
22387
  /**
22330
22388
  * True if the auto order was canceled because the customer purchased an upgrade item
22331
22389
  * @type {boolean}
package/dist/api.d.ts CHANGED
@@ -1187,6 +1187,12 @@ export interface AutoOrder {
1187
1187
  * @memberof AutoOrder
1188
1188
  */
1189
1189
  cancel_downgrade?: boolean;
1190
+ /**
1191
+ * The reason this auto order was canceled by either merchant or customer
1192
+ * @type {string}
1193
+ * @memberof AutoOrder
1194
+ */
1195
+ cancel_reason?: string;
1190
1196
  /**
1191
1197
  * True if the auto order was canceled because the customer purchased an upgrade item
1192
1198
  * @type {boolean}
@@ -8125,6 +8131,18 @@ export interface CustomerLoyalty {
8125
8131
  * @memberof CustomerLoyalty
8126
8132
  */
8127
8133
  current_points?: number;
8134
+ /**
8135
+ * Loyalty Cashback / Store credit balance (internal gift certificate balance)
8136
+ * @type {string}
8137
+ * @memberof CustomerLoyalty
8138
+ */
8139
+ internal_gift_certificate_balance?: string;
8140
+ /**
8141
+ * Internal gift certificate oid used to tracking loyalty cashback / store credit.
8142
+ * @type {number}
8143
+ * @memberof CustomerLoyalty
8144
+ */
8145
+ internal_gift_certificate_oid?: number;
8128
8146
  /**
8129
8147
  * Ledger entries
8130
8148
  * @type {Array<CustomerLoyaltyLedger>}
@@ -9831,6 +9849,12 @@ export interface EmailCommseqEmail {
9831
9849
  * @memberof EmailCommseqEmail
9832
9850
  */
9833
9851
  library_item_oid?: number;
9852
+ /**
9853
+ * True if email links should contain magic link tokens to log the customer in automatically
9854
+ * @type {boolean}
9855
+ * @memberof EmailCommseqEmail
9856
+ */
9857
+ magic_link?: boolean;
9834
9858
  /**
9835
9859
  * Merchant ID
9836
9860
  * @type {string}
@@ -10198,17 +10222,17 @@ export interface EmailCommseqPostcard {
10198
10222
  */
10199
10223
  postcard_front_container_uuid?: string;
10200
10224
  /**
10201
- * URL for front screenshot
10225
+ * URL to screenshot of the back of the postcard
10202
10226
  * @type {string}
10203
10227
  * @memberof EmailCommseqPostcard
10204
10228
  */
10205
- screenshot_front_url?: string;
10229
+ screenshot_back_url?: string;
10206
10230
  /**
10207
- * URL for back screenshot
10231
+ * URL to screenshot of the front of the postcard
10208
10232
  * @type {string}
10209
10233
  * @memberof EmailCommseqPostcard
10210
10234
  */
10211
- screenshot_small_full_url?: string;
10235
+ screenshot_front_url?: string;
10212
10236
  /**
10213
10237
  * Storefront oid
10214
10238
  * @type {number}
@@ -11328,6 +11352,12 @@ export interface EmailDomain {
11328
11352
  * @memberof EmailDomain
11329
11353
  */
11330
11354
  provider?: string;
11355
+ /**
11356
+ *
11357
+ * @type {VerificationRecord}
11358
+ * @memberof EmailDomain
11359
+ */
11360
+ spf?: VerificationRecord;
11331
11361
  /**
11332
11362
  *
11333
11363
  * @type {string}
@@ -12462,6 +12492,12 @@ export interface EmailPerformance {
12462
12492
  * @memberof EmailPerformance
12463
12493
  */
12464
12494
  delivered_count?: number;
12495
+ /**
12496
+ * Loyalty Program Type
12497
+ * @type {string}
12498
+ * @memberof EmailPerformance
12499
+ */
12500
+ loyalty_program_type?: EmailPerformance.LoyaltyProgramTypeEnum;
12465
12501
  /**
12466
12502
  * Maximum active customers allowed under their billing plan
12467
12503
  * @type {number}
@@ -12547,6 +12583,21 @@ export interface EmailPerformance {
12547
12583
  */
12548
12584
  transactional_send_count?: number;
12549
12585
  }
12586
+ /**
12587
+ * @export
12588
+ * @namespace EmailPerformance
12589
+ */
12590
+ export declare namespace EmailPerformance {
12591
+ /**
12592
+ * @export
12593
+ * @enum {string}
12594
+ */
12595
+ enum LoyaltyProgramTypeEnum {
12596
+ Disabled,
12597
+ Points,
12598
+ Cashback
12599
+ }
12600
+ }
12550
12601
  /**
12551
12602
  *
12552
12603
  * @export
@@ -21842,6 +21893,12 @@ export interface OrderAutoOrder {
21842
21893
  * @memberof OrderAutoOrder
21843
21894
  */
21844
21895
  cancel_downgrade?: boolean;
21896
+ /**
21897
+ * The reason this auto order was canceled by either merchant or customer
21898
+ * @type {string}
21899
+ * @memberof OrderAutoOrder
21900
+ */
21901
+ cancel_reason?: string;
21845
21902
  /**
21846
21903
  * True if the auto order was canceled because the customer purchased an upgrade item
21847
21904
  * @type {boolean}
package/dist/api.js CHANGED
@@ -28,9 +28,9 @@ var __extends = (this && this.__extends) || (function () {
28
28
  };
29
29
  })();
30
30
  Object.defineProperty(exports, "__esModule", { value: true });
31
- exports.TempMultimedia = exports.RtgThemeRestriction = exports.RotatingTransactionGateway = exports.PaymentsThemeTransactionType = exports.PaymentsConfigurationTestMethod = exports.PaymentsConfigurationSezzle = exports.PaymentsConfigurationRestrictions = exports.PaymentsConfigurationPayPal = exports.PaymentsConfigurationCreditCardType = exports.PaymentsConfigurationAmazon = exports.PaymentsConfigurationAffirm = exports.OrderQuery = exports.OrderPaymentECheck = exports.OrderPaymentCreditCard = exports.OrderPayment = exports.OrderItemOption = exports.OrderItem = exports.OrderFraudScore = exports.OrderFormat = exports.OrderAutoOrder = exports.OrderAffiliateLedger = exports.Order = exports.OauthTokenResponse = exports.ItemThirdPartyEmailMarketing = exports.ItemTax = exports.ItemTag = exports.ItemShippingMethod = exports.ItemShippingDestinationRestriction = exports.ItemRestrictionItem = exports.ItemRelatedItem = exports.ItemOptionValue = exports.ItemOption = exports.ItemContentMultimedia = exports.ItemAutoOrderStep = exports.Experiment = exports.EmailCommseqStep = exports.Distance = exports.CheckoutHandoffRequest = exports.CartKitComponentOption = exports.CartItemOption = exports.CartItemMultimedia = exports.CartCustomerProfileCreditCard = exports.AutoOrderItemSimpleSchedule = exports.AutoOrderItem = exports.AutoOrder = exports.AffiliateLink = exports.AffiliateLedger = exports.RequiredError = exports.BaseAPI = exports.COLLECTION_FORMATS = void 0;
32
- exports.OauthApiFactory = exports.OauthApiFp = exports.OauthApiFetchParamCreator = exports.ItemApi = exports.ItemApiFactory = exports.ItemApiFp = exports.ItemApiFetchParamCreator = exports.IntegrationLogApi = exports.IntegrationLogApiFactory = exports.IntegrationLogApiFp = exports.IntegrationLogApiFetchParamCreator = exports.GiftCertificateApi = exports.GiftCertificateApiFactory = exports.GiftCertificateApiFp = exports.GiftCertificateApiFetchParamCreator = exports.FulfillmentApi = exports.FulfillmentApiFactory = exports.FulfillmentApiFp = exports.FulfillmentApiFetchParamCreator = exports.CustomerApi = exports.CustomerApiFactory = exports.CustomerApiFp = exports.CustomerApiFetchParamCreator = exports.CouponApi = exports.CouponApiFactory = exports.CouponApiFp = exports.CouponApiFetchParamCreator = exports.ConfigurationApi = exports.ConfigurationApiFactory = exports.ConfigurationApiFp = exports.ConfigurationApiFetchParamCreator = exports.CheckoutApi = exports.CheckoutApiFactory = exports.CheckoutApiFp = exports.CheckoutApiFetchParamCreator = exports.ChargebackApi = exports.ChargebackApiFactory = exports.ChargebackApiFp = exports.ChargebackApiFetchParamCreator = exports.AutoOrderApi = exports.AutoOrderApiFactory = exports.AutoOrderApiFp = exports.AutoOrderApiFetchParamCreator = exports.AffiliateApi = exports.AffiliateApiFactory = exports.AffiliateApiFp = exports.AffiliateApiFetchParamCreator = exports.Weight = exports.Webhook = exports.TransactionGatewaysRequest = void 0;
33
- exports.WebhookApi = exports.WebhookApiFactory = exports.WebhookApiFp = exports.WebhookApiFetchParamCreator = exports.UserApi = exports.UserApiFactory = exports.UserApiFp = exports.UserApiFetchParamCreator = exports.TaxApi = exports.TaxApiFactory = exports.TaxApiFp = exports.TaxApiFetchParamCreator = exports.StorefrontApi = exports.StorefrontApiFactory = exports.StorefrontApiFp = exports.StorefrontApiFetchParamCreator = exports.SsoApi = exports.SsoApiFactory = exports.SsoApiFp = exports.SsoApiFetchParamCreator = exports.OrderApi = exports.OrderApiFactory = exports.OrderApiFp = exports.OrderApiFetchParamCreator = exports.OauthApi = void 0;
31
+ exports.RtgThemeRestriction = exports.RotatingTransactionGateway = exports.PaymentsThemeTransactionType = exports.PaymentsConfigurationTestMethod = exports.PaymentsConfigurationSezzle = exports.PaymentsConfigurationRestrictions = exports.PaymentsConfigurationPayPal = exports.PaymentsConfigurationCreditCardType = exports.PaymentsConfigurationAmazon = exports.PaymentsConfigurationAffirm = exports.OrderQuery = exports.OrderPaymentECheck = exports.OrderPaymentCreditCard = exports.OrderPayment = exports.OrderItemOption = exports.OrderItem = exports.OrderFraudScore = exports.OrderFormat = exports.OrderAutoOrder = exports.OrderAffiliateLedger = exports.Order = exports.OauthTokenResponse = exports.ItemThirdPartyEmailMarketing = exports.ItemTax = exports.ItemTag = exports.ItemShippingMethod = exports.ItemShippingDestinationRestriction = exports.ItemRestrictionItem = exports.ItemRelatedItem = exports.ItemOptionValue = exports.ItemOption = exports.ItemContentMultimedia = exports.ItemAutoOrderStep = exports.Experiment = exports.EmailPerformance = exports.EmailCommseqStep = exports.Distance = exports.CheckoutHandoffRequest = exports.CartKitComponentOption = exports.CartItemOption = exports.CartItemMultimedia = exports.CartCustomerProfileCreditCard = exports.AutoOrderItemSimpleSchedule = exports.AutoOrderItem = exports.AutoOrder = exports.AffiliateLink = exports.AffiliateLedger = exports.RequiredError = exports.BaseAPI = exports.COLLECTION_FORMATS = void 0;
32
+ exports.OauthApiFp = exports.OauthApiFetchParamCreator = exports.ItemApi = exports.ItemApiFactory = exports.ItemApiFp = exports.ItemApiFetchParamCreator = exports.IntegrationLogApi = exports.IntegrationLogApiFactory = exports.IntegrationLogApiFp = exports.IntegrationLogApiFetchParamCreator = exports.GiftCertificateApi = exports.GiftCertificateApiFactory = exports.GiftCertificateApiFp = exports.GiftCertificateApiFetchParamCreator = exports.FulfillmentApi = exports.FulfillmentApiFactory = exports.FulfillmentApiFp = exports.FulfillmentApiFetchParamCreator = exports.CustomerApi = exports.CustomerApiFactory = exports.CustomerApiFp = exports.CustomerApiFetchParamCreator = exports.CouponApi = exports.CouponApiFactory = exports.CouponApiFp = exports.CouponApiFetchParamCreator = exports.ConfigurationApi = exports.ConfigurationApiFactory = exports.ConfigurationApiFp = exports.ConfigurationApiFetchParamCreator = exports.CheckoutApi = exports.CheckoutApiFactory = exports.CheckoutApiFp = exports.CheckoutApiFetchParamCreator = exports.ChargebackApi = exports.ChargebackApiFactory = exports.ChargebackApiFp = exports.ChargebackApiFetchParamCreator = exports.AutoOrderApi = exports.AutoOrderApiFactory = exports.AutoOrderApiFp = exports.AutoOrderApiFetchParamCreator = exports.AffiliateApi = exports.AffiliateApiFactory = exports.AffiliateApiFp = exports.AffiliateApiFetchParamCreator = exports.Weight = exports.Webhook = exports.TransactionGatewaysRequest = exports.TempMultimedia = void 0;
33
+ exports.WebhookApi = exports.WebhookApiFactory = exports.WebhookApiFp = exports.WebhookApiFetchParamCreator = exports.UserApi = exports.UserApiFactory = exports.UserApiFp = exports.UserApiFetchParamCreator = exports.TaxApi = exports.TaxApiFactory = exports.TaxApiFp = exports.TaxApiFetchParamCreator = exports.StorefrontApi = exports.StorefrontApiFactory = exports.StorefrontApiFp = exports.StorefrontApiFetchParamCreator = exports.SsoApi = exports.SsoApiFactory = exports.SsoApiFp = exports.SsoApiFetchParamCreator = exports.OrderApi = exports.OrderApiFactory = exports.OrderApiFp = exports.OrderApiFetchParamCreator = exports.OauthApi = exports.OauthApiFactory = void 0;
34
34
  var url = require("url");
35
35
  var portableFetch = require("portable-fetch");
36
36
  var BASE_PATH = "https://secure.ultracart.com/rest/v2".replace(/\/+$/, "");
@@ -344,6 +344,23 @@ var EmailCommseqStep;
344
344
  TypeEnum[TypeEnum["End"] = 'end'] = "End";
345
345
  })(TypeEnum = EmailCommseqStep.TypeEnum || (EmailCommseqStep.TypeEnum = {}));
346
346
  })(EmailCommseqStep = exports.EmailCommseqStep || (exports.EmailCommseqStep = {}));
347
+ /**
348
+ * @export
349
+ * @namespace EmailPerformance
350
+ */
351
+ var EmailPerformance;
352
+ (function (EmailPerformance) {
353
+ /**
354
+ * @export
355
+ * @enum {string}
356
+ */
357
+ var LoyaltyProgramTypeEnum;
358
+ (function (LoyaltyProgramTypeEnum) {
359
+ LoyaltyProgramTypeEnum[LoyaltyProgramTypeEnum["Disabled"] = 'disabled'] = "Disabled";
360
+ LoyaltyProgramTypeEnum[LoyaltyProgramTypeEnum["Points"] = 'points'] = "Points";
361
+ LoyaltyProgramTypeEnum[LoyaltyProgramTypeEnum["Cashback"] = 'cashback'] = "Cashback";
362
+ })(LoyaltyProgramTypeEnum = EmailPerformance.LoyaltyProgramTypeEnum || (EmailPerformance.LoyaltyProgramTypeEnum = {}));
363
+ })(EmailPerformance = exports.EmailPerformance || (exports.EmailPerformance = {}));
347
364
  /**
348
365
  * @export
349
366
  * @namespace Experiment
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ultracart_rest_api_v2_typescript",
3
- "version": "3.9.3",
3
+ "version": "3.9.6",
4
4
  "description": "UltraCart Rest TypeScript SDK",
5
5
  "author": "UltraCart",
6
6
  "keywords": [