ultracart_rest_api_v2_typescript 4.1.96 → 4.1.98

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.
Files changed (36) hide show
  1. package/.openapi-generator/FILES +5 -0
  2. package/README.md +4 -2
  3. package/dist/apis/FraudApi.d.ts +36 -9
  4. package/dist/apis/FraudApi.js +65 -4
  5. package/dist/models/Coupon.d.ts +7 -0
  6. package/dist/models/Coupon.js +3 -0
  7. package/dist/models/CouponAmountOffItemsAndFreeShipping.d.ts +61 -0
  8. package/dist/models/CouponAmountOffItemsAndFreeShipping.js +60 -0
  9. package/dist/models/FraudLookupAffiliate.d.ts +37 -0
  10. package/dist/models/FraudLookupAffiliate.js +52 -0
  11. package/dist/models/FraudLookupGateway.d.ts +43 -0
  12. package/dist/models/FraudLookupGateway.js +54 -0
  13. package/dist/models/FraudLookupTheme.d.ts +43 -0
  14. package/dist/models/FraudLookupTheme.js +54 -0
  15. package/dist/models/FraudLookupValues.d.ts +43 -10
  16. package/dist/models/FraudLookupValues.js +15 -2
  17. package/dist/models/FraudRuleFromOrderRequest.d.ts +78 -0
  18. package/dist/models/FraudRuleFromOrderRequest.js +72 -0
  19. package/dist/models/FraudRuleInsertRequest.d.ts +17 -17
  20. package/dist/models/FraudRulePublic.d.ts +26 -26
  21. package/dist/models/FraudRuleSearchRequest.d.ts +16 -16
  22. package/dist/models/index.d.ts +5 -0
  23. package/dist/models/index.js +5 -0
  24. package/package.json +1 -1
  25. package/src/apis/FraudApi.ts +75 -8
  26. package/src/models/Coupon.ts +14 -0
  27. package/src/models/CouponAmountOffItemsAndFreeShipping.ts +107 -0
  28. package/src/models/FraudLookupAffiliate.ts +75 -0
  29. package/src/models/FraudLookupGateway.ts +83 -0
  30. package/src/models/FraudLookupTheme.ts +83 -0
  31. package/src/models/FraudLookupValues.ts +71 -12
  32. package/src/models/FraudRuleFromOrderRequest.ts +128 -0
  33. package/src/models/FraudRuleInsertRequest.ts +17 -17
  34. package/src/models/FraudRulePublic.ts +26 -26
  35. package/src/models/FraudRuleSearchRequest.ts +16 -16
  36. package/src/models/index.ts +5 -0
@@ -338,6 +338,7 @@ src/models/CountriesResponse.ts
338
338
  src/models/Country.ts
339
339
  src/models/Coupon.ts
340
340
  src/models/CouponAmountOffItems.ts
341
+ src/models/CouponAmountOffItemsAndFreeShipping.ts
341
342
  src/models/CouponAmountOffShipping.ts
342
343
  src/models/CouponAmountOffShippingWithItemsPurchase.ts
343
344
  src/models/CouponAmountOffSubtotal.ts
@@ -610,8 +611,12 @@ src/models/FileManagerPageResponse.ts
610
611
  src/models/FileManagerUploadRequest.ts
611
612
  src/models/FileManagerUploadUrlResponse.ts
612
613
  src/models/FraudDeclineEmailRequest.ts
614
+ src/models/FraudLookupAffiliate.ts
615
+ src/models/FraudLookupGateway.ts
616
+ src/models/FraudLookupTheme.ts
613
617
  src/models/FraudLookupValues.ts
614
618
  src/models/FraudLookupValuesResponse.ts
619
+ src/models/FraudRuleFromOrderRequest.ts
615
620
  src/models/FraudRuleInsertRequest.ts
616
621
  src/models/FraudRuleItemFilter.ts
617
622
  src/models/FraudRulePublic.ts
package/README.md CHANGED
@@ -1,12 +1,12 @@
1
1
  # UltraCart Typescript SDK
2
- ## ultracart_rest_api_v2_typescript@4.1.96
2
+ ## ultracart_rest_api_v2_typescript@4.1.98
3
3
 
4
4
  Every API method call has a sample for every language SDK. See https://github.com/UltraCart/sdk_samples
5
5
 
6
6
  Installation
7
7
 
8
8
  ```
9
- npm install ultracart_rest_api_v2_typescript@4.1.96 --save
9
+ npm install ultracart_rest_api_v2_typescript@4.1.98 --save
10
10
  ```
11
11
 
12
12
  ```typescript
@@ -85,6 +85,8 @@ Not every change is committed to every SDK.
85
85
 
86
86
  | Version | Date | Comments |
87
87
  | --: | :-: | --- |
88
+ | 4.1.98 | 06/04/2026 | coupon - new coupon type for amount off items with free shipping |
89
+ | 4.1.97 | 06/03/2026 | fraud api alpha version |
88
90
  | 4.1.96 | 06/03/2026 | fraud api alpha build |
89
91
  | 4.1.95 | 06/02/2026 | fraud api alpha version |
90
92
  | 4.1.94 | 06/02/2026 | fraud api alpha version |
@@ -10,13 +10,16 @@
10
10
  * Do not edit the class manually.
11
11
  */
12
12
  import * as runtime from '../runtime';
13
- import { FraudDeclineEmailRequest, FraudLookupValuesResponse, FraudRuleInsertRequest, FraudRuleResponse, FraudRuleSearchRequest, FraudRulesResponse } from '../models';
13
+ import { FraudDeclineEmailRequest, FraudLookupValuesResponse, FraudRuleFromOrderRequest, FraudRuleInsertRequest, FraudRuleResponse, FraudRuleSearchRequest, FraudRulesResponse } from '../models';
14
14
  export interface DeclineEmailRequest {
15
15
  fraudDeclineEmailsRequest: FraudDeclineEmailRequest;
16
16
  }
17
17
  export interface DeleteFraudRuleRequest {
18
18
  fraudRuleOid: number;
19
19
  }
20
+ export interface EstablishFraudRulesFromOrderRequest {
21
+ fraudRuleFromOrderRequest: FraudRuleFromOrderRequest;
22
+ }
20
23
  export interface InsertFraudRuleRequest {
21
24
  fraudRuleInsertRequest: FraudRuleInsertRequest;
22
25
  }
@@ -34,8 +37,8 @@ export interface SearchFraudRulesRequest {
34
37
  */
35
38
  export interface FraudApiInterface {
36
39
  /**
37
- * Adds one or more email addresses to the fraud decline list for this merchant account.
38
- * @summary Decline emails during checkout fraud review
40
+ * Adds one email address to the fraud decline list for this merchant account.
41
+ * @summary Decline email during checkout fraud review
39
42
  * @param {FraudDeclineEmailRequest} fraudDeclineEmailsRequest Fraud decline emails request
40
43
  * @param {*} [options] Override http request option.
41
44
  * @throws {RequiredError}
@@ -43,8 +46,8 @@ export interface FraudApiInterface {
43
46
  */
44
47
  declineEmailRaw(requestParameters: DeclineEmailRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
45
48
  /**
46
- * Adds one or more email addresses to the fraud decline list for this merchant account.
47
- * Decline emails during checkout fraud review
49
+ * Adds one email address to the fraud decline list for this merchant account.
50
+ * Decline email during checkout fraud review
48
51
  */
49
52
  declineEmail(requestParameters: DeclineEmailRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
50
53
  /**
@@ -61,6 +64,20 @@ export interface FraudApiInterface {
61
64
  * Delete a fraud rule
62
65
  */
63
66
  deleteFraudRule(requestParameters: DeleteFraudRuleRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
67
+ /**
68
+ * Creates one or more fraud rules for this merchant account derived from an existing order, mirroring the \'establish fraud filter\' action in the order processing screen. Select which filters to establish; all values are taken from the order. The IP rule is created against the order\'s /24 subnet (last octet masked). The credit card filter duplicates the order\'s stored card vault token, so no card number is sent through the API. Filters whose order data is missing (no stored card, no email, no usable IP, or no numeric street) are skipped and reported in the warning slot rather than failing the request.
69
+ * @summary Establish fraud rules from an order
70
+ * @param {FraudRuleFromOrderRequest} fraudRuleFromOrderRequest Fraud rule from order request
71
+ * @param {*} [options] Override http request option.
72
+ * @throws {RequiredError}
73
+ * @memberof FraudApiInterface
74
+ */
75
+ establishFraudRulesFromOrderRaw(requestParameters: EstablishFraudRulesFromOrderRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<FraudRulesResponse>>;
76
+ /**
77
+ * Creates one or more fraud rules for this merchant account derived from an existing order, mirroring the \'establish fraud filter\' action in the order processing screen. Select which filters to establish; all values are taken from the order. The IP rule is created against the order\'s /24 subnet (last octet masked). The credit card filter duplicates the order\'s stored card vault token, so no card number is sent through the API. Filters whose order data is missing (no stored card, no email, no usable IP, or no numeric street) are skipped and reported in the warning slot rather than failing the request.
78
+ * Establish fraud rules from an order
79
+ */
80
+ establishFraudRulesFromOrder(requestParameters: EstablishFraudRulesFromOrderRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<FraudRulesResponse>;
64
81
  /**
65
82
  * Returns the dropdown values required to build valid fraud rule insert and search requests. Includes rule types, failure actions, user actions, IP range types, AVS match types, the merchant\'s rotating transaction gateways, screen branding themes, countries, and affiliates.
66
83
  * @summary Retrieve fraud rule lookup values
@@ -111,13 +128,13 @@ export interface FraudApiInterface {
111
128
  */
112
129
  export declare class FraudApi extends runtime.BaseAPI implements FraudApiInterface {
113
130
  /**
114
- * Adds one or more email addresses to the fraud decline list for this merchant account.
115
- * Decline emails during checkout fraud review
131
+ * Adds one email address to the fraud decline list for this merchant account.
132
+ * Decline email during checkout fraud review
116
133
  */
117
134
  declineEmailRaw(requestParameters: DeclineEmailRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
118
135
  /**
119
- * Adds one or more email addresses to the fraud decline list for this merchant account.
120
- * Decline emails during checkout fraud review
136
+ * Adds one email address to the fraud decline list for this merchant account.
137
+ * Decline email during checkout fraud review
121
138
  */
122
139
  declineEmail(requestParameters: DeclineEmailRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
123
140
  /**
@@ -130,6 +147,16 @@ export declare class FraudApi extends runtime.BaseAPI implements FraudApiInterfa
130
147
  * Delete a fraud rule
131
148
  */
132
149
  deleteFraudRule(requestParameters: DeleteFraudRuleRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
150
+ /**
151
+ * Creates one or more fraud rules for this merchant account derived from an existing order, mirroring the \'establish fraud filter\' action in the order processing screen. Select which filters to establish; all values are taken from the order. The IP rule is created against the order\'s /24 subnet (last octet masked). The credit card filter duplicates the order\'s stored card vault token, so no card number is sent through the API. Filters whose order data is missing (no stored card, no email, no usable IP, or no numeric street) are skipped and reported in the warning slot rather than failing the request.
152
+ * Establish fraud rules from an order
153
+ */
154
+ establishFraudRulesFromOrderRaw(requestParameters: EstablishFraudRulesFromOrderRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<FraudRulesResponse>>;
155
+ /**
156
+ * Creates one or more fraud rules for this merchant account derived from an existing order, mirroring the \'establish fraud filter\' action in the order processing screen. Select which filters to establish; all values are taken from the order. The IP rule is created against the order\'s /24 subnet (last octet masked). The credit card filter duplicates the order\'s stored card vault token, so no card number is sent through the API. Filters whose order data is missing (no stored card, no email, no usable IP, or no numeric street) are skipped and reported in the warning slot rather than failing the request.
157
+ * Establish fraud rules from an order
158
+ */
159
+ establishFraudRulesFromOrder(requestParameters: EstablishFraudRulesFromOrderRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<FraudRulesResponse>;
133
160
  /**
134
161
  * Returns the dropdown values required to build valid fraud rule insert and search requests. Includes rule types, failure actions, user actions, IP range types, AVS match types, the merchant\'s rotating transaction gateways, screen branding themes, countries, and affiliates.
135
162
  * Retrieve fraud rule lookup values
@@ -76,8 +76,8 @@ var FraudApi = /** @class */ (function (_super) {
76
76
  return _super !== null && _super.apply(this, arguments) || this;
77
77
  }
78
78
  /**
79
- * Adds one or more email addresses to the fraud decline list for this merchant account.
80
- * Decline emails during checkout fraud review
79
+ * Adds one email address to the fraud decline list for this merchant account.
80
+ * Decline email during checkout fraud review
81
81
  */
82
82
  FraudApi.prototype.declineEmailRaw = function (requestParameters, initOverrides) {
83
83
  return __awaiter(this, void 0, void 0, function () {
@@ -119,8 +119,8 @@ var FraudApi = /** @class */ (function (_super) {
119
119
  });
120
120
  };
121
121
  /**
122
- * Adds one or more email addresses to the fraud decline list for this merchant account.
123
- * Decline emails during checkout fraud review
122
+ * Adds one email address to the fraud decline list for this merchant account.
123
+ * Decline email during checkout fraud review
124
124
  */
125
125
  FraudApi.prototype.declineEmail = function (requestParameters, initOverrides) {
126
126
  return __awaiter(this, void 0, void 0, function () {
@@ -191,6 +191,67 @@ var FraudApi = /** @class */ (function (_super) {
191
191
  });
192
192
  });
193
193
  };
194
+ /**
195
+ * Creates one or more fraud rules for this merchant account derived from an existing order, mirroring the \'establish fraud filter\' action in the order processing screen. Select which filters to establish; all values are taken from the order. The IP rule is created against the order\'s /24 subnet (last octet masked). The credit card filter duplicates the order\'s stored card vault token, so no card number is sent through the API. Filters whose order data is missing (no stored card, no email, no usable IP, or no numeric street) are skipped and reported in the warning slot rather than failing the request.
196
+ * Establish fraud rules from an order
197
+ */
198
+ FraudApi.prototype.establishFraudRulesFromOrderRaw = function (requestParameters, initOverrides) {
199
+ return __awaiter(this, void 0, void 0, function () {
200
+ var queryParameters, headerParameters, _a, _b, response;
201
+ return __generator(this, function (_c) {
202
+ switch (_c.label) {
203
+ case 0:
204
+ if (requestParameters.fraudRuleFromOrderRequest === null || requestParameters.fraudRuleFromOrderRequest === undefined) {
205
+ throw new runtime.RequiredError('fraudRuleFromOrderRequest', 'Required parameter requestParameters.fraudRuleFromOrderRequest was null or undefined when calling establishFraudRulesFromOrder.');
206
+ }
207
+ queryParameters = {};
208
+ headerParameters = {};
209
+ headerParameters['Content-Type'] = 'application/json';
210
+ if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 2];
211
+ // oauth required
212
+ _a = headerParameters;
213
+ _b = "Authorization";
214
+ return [4 /*yield*/, this.configuration.accessToken("ultraCartOauth", ["fraud_write"])];
215
+ case 1:
216
+ // oauth required
217
+ _a[_b] = _c.sent();
218
+ _c.label = 2;
219
+ case 2:
220
+ if (this.configuration && this.configuration.apiKey) {
221
+ headerParameters["x-ultracart-simple-key"] = this.configuration.apiKey("x-ultracart-simple-key"); // ultraCartSimpleApiKey authentication
222
+ }
223
+ return [4 /*yield*/, this.request({
224
+ path: "/fraud/rules/from_order",
225
+ method: 'POST',
226
+ headers: headerParameters,
227
+ query: queryParameters,
228
+ body: (0, models_1.FraudRuleFromOrderRequestToJSON)(requestParameters.fraudRuleFromOrderRequest),
229
+ }, initOverrides)];
230
+ case 3:
231
+ response = _c.sent();
232
+ return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, models_1.FraudRulesResponseFromJSON)(jsonValue); })];
233
+ }
234
+ });
235
+ });
236
+ };
237
+ /**
238
+ * Creates one or more fraud rules for this merchant account derived from an existing order, mirroring the \'establish fraud filter\' action in the order processing screen. Select which filters to establish; all values are taken from the order. The IP rule is created against the order\'s /24 subnet (last octet masked). The credit card filter duplicates the order\'s stored card vault token, so no card number is sent through the API. Filters whose order data is missing (no stored card, no email, no usable IP, or no numeric street) are skipped and reported in the warning slot rather than failing the request.
239
+ * Establish fraud rules from an order
240
+ */
241
+ FraudApi.prototype.establishFraudRulesFromOrder = function (requestParameters, initOverrides) {
242
+ return __awaiter(this, void 0, void 0, function () {
243
+ var response;
244
+ return __generator(this, function (_a) {
245
+ switch (_a.label) {
246
+ case 0: return [4 /*yield*/, this.establishFraudRulesFromOrderRaw(requestParameters, initOverrides)];
247
+ case 1:
248
+ response = _a.sent();
249
+ return [4 /*yield*/, response.value()];
250
+ case 2: return [2 /*return*/, _a.sent()];
251
+ }
252
+ });
253
+ });
254
+ };
194
255
  /**
195
256
  * Returns the dropdown values required to build valid fraud rule insert and search requests. Includes rule types, failure actions, user actions, IP range types, AVS match types, the merchant\'s rotating transaction gateways, screen branding themes, countries, and affiliates.
196
257
  * Retrieve fraud rule lookup values
@@ -10,6 +10,7 @@
10
10
  * Do not edit the class manually.
11
11
  */
12
12
  import { CouponAmountOffItems } from './CouponAmountOffItems';
13
+ import { CouponAmountOffItemsAndFreeShipping } from './CouponAmountOffItemsAndFreeShipping';
13
14
  import { CouponAmountOffShipping } from './CouponAmountOffShipping';
14
15
  import { CouponAmountOffShippingWithItemsPurchase } from './CouponAmountOffShippingWithItemsPurchase';
15
16
  import { CouponAmountOffSubtotal } from './CouponAmountOffSubtotal';
@@ -83,6 +84,12 @@ export interface Coupon {
83
84
  * @memberof Coupon
84
85
  */
85
86
  amount_off_items?: CouponAmountOffItems;
87
+ /**
88
+ *
89
+ * @type {CouponAmountOffItemsAndFreeShipping}
90
+ * @memberof Coupon
91
+ */
92
+ amount_off_items_and_free_shipping?: CouponAmountOffItemsAndFreeShipping;
86
93
  /**
87
94
  *
88
95
  * @type {CouponAmountOffShipping}
@@ -16,6 +16,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
16
16
  exports.CouponToJSON = exports.CouponFromJSONTyped = exports.CouponFromJSON = exports.instanceOfCoupon = exports.CouponUsableByEnum = void 0;
17
17
  var runtime_1 = require("../runtime");
18
18
  var CouponAmountOffItems_1 = require("./CouponAmountOffItems");
19
+ var CouponAmountOffItemsAndFreeShipping_1 = require("./CouponAmountOffItemsAndFreeShipping");
19
20
  var CouponAmountOffShipping_1 = require("./CouponAmountOffShipping");
20
21
  var CouponAmountOffShippingWithItemsPurchase_1 = require("./CouponAmountOffShippingWithItemsPurchase");
21
22
  var CouponAmountOffSubtotal_1 = require("./CouponAmountOffSubtotal");
@@ -95,6 +96,7 @@ function CouponFromJSONTyped(json, ignoreDiscriminator) {
95
96
  'affiliate_oid': !(0, runtime_1.exists)(json, 'affiliate_oid') ? undefined : json['affiliate_oid'],
96
97
  'allow_multiple_one_time_codes': !(0, runtime_1.exists)(json, 'allow_multiple_one_time_codes') ? undefined : json['allow_multiple_one_time_codes'],
97
98
  'amount_off_items': !(0, runtime_1.exists)(json, 'amount_off_items') ? undefined : (0, CouponAmountOffItems_1.CouponAmountOffItemsFromJSON)(json['amount_off_items']),
99
+ 'amount_off_items_and_free_shipping': !(0, runtime_1.exists)(json, 'amount_off_items_and_free_shipping') ? undefined : (0, CouponAmountOffItemsAndFreeShipping_1.CouponAmountOffItemsAndFreeShippingFromJSON)(json['amount_off_items_and_free_shipping']),
98
100
  'amount_off_shipping': !(0, runtime_1.exists)(json, 'amount_off_shipping') ? undefined : (0, CouponAmountOffShipping_1.CouponAmountOffShippingFromJSON)(json['amount_off_shipping']),
99
101
  'amount_off_shipping_with_items_purchase': !(0, runtime_1.exists)(json, 'amount_off_shipping_with_items_purchase') ? undefined : (0, CouponAmountOffShippingWithItemsPurchase_1.CouponAmountOffShippingWithItemsPurchaseFromJSON)(json['amount_off_shipping_with_items_purchase']),
100
102
  'amount_off_subtotal': !(0, runtime_1.exists)(json, 'amount_off_subtotal') ? undefined : (0, CouponAmountOffSubtotal_1.CouponAmountOffSubtotalFromJSON)(json['amount_off_subtotal']),
@@ -174,6 +176,7 @@ function CouponToJSON(value) {
174
176
  'affiliate_oid': value.affiliate_oid,
175
177
  'allow_multiple_one_time_codes': value.allow_multiple_one_time_codes,
176
178
  'amount_off_items': (0, CouponAmountOffItems_1.CouponAmountOffItemsToJSON)(value.amount_off_items),
179
+ 'amount_off_items_and_free_shipping': (0, CouponAmountOffItemsAndFreeShipping_1.CouponAmountOffItemsAndFreeShippingToJSON)(value.amount_off_items_and_free_shipping),
177
180
  'amount_off_shipping': (0, CouponAmountOffShipping_1.CouponAmountOffShippingToJSON)(value.amount_off_shipping),
178
181
  'amount_off_shipping_with_items_purchase': (0, CouponAmountOffShippingWithItemsPurchase_1.CouponAmountOffShippingWithItemsPurchaseToJSON)(value.amount_off_shipping_with_items_purchase),
179
182
  'amount_off_subtotal': (0, CouponAmountOffSubtotal_1.CouponAmountOffSubtotalToJSON)(value.amount_off_subtotal),
@@ -0,0 +1,61 @@
1
+ /**
2
+ * UltraCart Rest API V2
3
+ * UltraCart REST API Version 2
4
+ *
5
+ * The version of the OpenAPI document: 2.0.0
6
+ * Contact: support@ultracart.com
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ /**
13
+ *
14
+ * @export
15
+ * @interface CouponAmountOffItemsAndFreeShipping
16
+ */
17
+ export interface CouponAmountOffItemsAndFreeShipping {
18
+ /**
19
+ * The ISO-4217 three letter currency code the customer is viewing prices in
20
+ * @type {string}
21
+ * @memberof CouponAmountOffItemsAndFreeShipping
22
+ */
23
+ currency_code?: string;
24
+ /**
25
+ * The amount of discount
26
+ * @type {number}
27
+ * @memberof CouponAmountOffItemsAndFreeShipping
28
+ */
29
+ discount_amount?: number;
30
+ /**
31
+ * An optional list of item tags which will receive a discount.
32
+ * @type {Array<string>}
33
+ * @memberof CouponAmountOffItemsAndFreeShipping
34
+ */
35
+ item_tags?: Array<string>;
36
+ /**
37
+ * A list of items which are eligible for the discount amount.
38
+ * @type {Array<string>}
39
+ * @memberof CouponAmountOffItemsAndFreeShipping
40
+ */
41
+ items?: Array<string>;
42
+ /**
43
+ * The limit of items which are eligible for the discount amount.
44
+ * @type {number}
45
+ * @memberof CouponAmountOffItemsAndFreeShipping
46
+ */
47
+ limit?: number;
48
+ /**
49
+ * One or more shipping methods that may be used with this coupon. If not specified or empty, methods that are marked as qualifies for free shipping will be the only free methods
50
+ * @type {Array<string>}
51
+ * @memberof CouponAmountOffItemsAndFreeShipping
52
+ */
53
+ shipping_methods?: Array<string>;
54
+ }
55
+ /**
56
+ * Check if a given object implements the CouponAmountOffItemsAndFreeShipping interface.
57
+ */
58
+ export declare function instanceOfCouponAmountOffItemsAndFreeShipping(value: object): boolean;
59
+ export declare function CouponAmountOffItemsAndFreeShippingFromJSON(json: any): CouponAmountOffItemsAndFreeShipping;
60
+ export declare function CouponAmountOffItemsAndFreeShippingFromJSONTyped(json: any, ignoreDiscriminator: boolean): CouponAmountOffItemsAndFreeShipping;
61
+ export declare function CouponAmountOffItemsAndFreeShippingToJSON(value?: CouponAmountOffItemsAndFreeShipping | null): any;
@@ -0,0 +1,60 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * UltraCart Rest API V2
6
+ * UltraCart REST API Version 2
7
+ *
8
+ * The version of the OpenAPI document: 2.0.0
9
+ * Contact: support@ultracart.com
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.CouponAmountOffItemsAndFreeShippingToJSON = exports.CouponAmountOffItemsAndFreeShippingFromJSONTyped = exports.CouponAmountOffItemsAndFreeShippingFromJSON = exports.instanceOfCouponAmountOffItemsAndFreeShipping = void 0;
17
+ var runtime_1 = require("../runtime");
18
+ /**
19
+ * Check if a given object implements the CouponAmountOffItemsAndFreeShipping interface.
20
+ */
21
+ function instanceOfCouponAmountOffItemsAndFreeShipping(value) {
22
+ var isInstance = true;
23
+ return isInstance;
24
+ }
25
+ exports.instanceOfCouponAmountOffItemsAndFreeShipping = instanceOfCouponAmountOffItemsAndFreeShipping;
26
+ function CouponAmountOffItemsAndFreeShippingFromJSON(json) {
27
+ return CouponAmountOffItemsAndFreeShippingFromJSONTyped(json, false);
28
+ }
29
+ exports.CouponAmountOffItemsAndFreeShippingFromJSON = CouponAmountOffItemsAndFreeShippingFromJSON;
30
+ function CouponAmountOffItemsAndFreeShippingFromJSONTyped(json, ignoreDiscriminator) {
31
+ if ((json === undefined) || (json === null)) {
32
+ return json;
33
+ }
34
+ return {
35
+ 'currency_code': !(0, runtime_1.exists)(json, 'currency_code') ? undefined : json['currency_code'],
36
+ 'discount_amount': !(0, runtime_1.exists)(json, 'discount_amount') ? undefined : json['discount_amount'],
37
+ 'item_tags': !(0, runtime_1.exists)(json, 'item_tags') ? undefined : json['item_tags'],
38
+ 'items': !(0, runtime_1.exists)(json, 'items') ? undefined : json['items'],
39
+ 'limit': !(0, runtime_1.exists)(json, 'limit') ? undefined : json['limit'],
40
+ 'shipping_methods': !(0, runtime_1.exists)(json, 'shipping_methods') ? undefined : json['shipping_methods'],
41
+ };
42
+ }
43
+ exports.CouponAmountOffItemsAndFreeShippingFromJSONTyped = CouponAmountOffItemsAndFreeShippingFromJSONTyped;
44
+ function CouponAmountOffItemsAndFreeShippingToJSON(value) {
45
+ if (value === undefined) {
46
+ return undefined;
47
+ }
48
+ if (value === null) {
49
+ return null;
50
+ }
51
+ return {
52
+ 'currency_code': value.currency_code,
53
+ 'discount_amount': value.discount_amount,
54
+ 'item_tags': value.item_tags,
55
+ 'items': value.items,
56
+ 'limit': value.limit,
57
+ 'shipping_methods': value.shipping_methods,
58
+ };
59
+ }
60
+ exports.CouponAmountOffItemsAndFreeShippingToJSON = CouponAmountOffItemsAndFreeShippingToJSON;
@@ -0,0 +1,37 @@
1
+ /**
2
+ * UltraCart Rest API V2
3
+ * UltraCart REST API Version 2
4
+ *
5
+ * The version of the OpenAPI document: 2.0.0
6
+ * Contact: support@ultracart.com
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ /**
13
+ *
14
+ * @export
15
+ * @interface FraudLookupAffiliate
16
+ */
17
+ export interface FraudLookupAffiliate {
18
+ /**
19
+ * Oid of the affiliate. Use this value in affiliate_oid on insert for the 'affiliate matches' rule type.
20
+ * @type {number}
21
+ * @memberof FraudLookupAffiliate
22
+ */
23
+ affiliate_oid?: number;
24
+ /**
25
+ * Email of the affiliate. May also be supplied as affiliate_email on insert in place of affiliate_oid.
26
+ * @type {string}
27
+ * @memberof FraudLookupAffiliate
28
+ */
29
+ email?: string;
30
+ }
31
+ /**
32
+ * Check if a given object implements the FraudLookupAffiliate interface.
33
+ */
34
+ export declare function instanceOfFraudLookupAffiliate(value: object): boolean;
35
+ export declare function FraudLookupAffiliateFromJSON(json: any): FraudLookupAffiliate;
36
+ export declare function FraudLookupAffiliateFromJSONTyped(json: any, ignoreDiscriminator: boolean): FraudLookupAffiliate;
37
+ export declare function FraudLookupAffiliateToJSON(value?: FraudLookupAffiliate | null): any;
@@ -0,0 +1,52 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * UltraCart Rest API V2
6
+ * UltraCart REST API Version 2
7
+ *
8
+ * The version of the OpenAPI document: 2.0.0
9
+ * Contact: support@ultracart.com
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.FraudLookupAffiliateToJSON = exports.FraudLookupAffiliateFromJSONTyped = exports.FraudLookupAffiliateFromJSON = exports.instanceOfFraudLookupAffiliate = void 0;
17
+ var runtime_1 = require("../runtime");
18
+ /**
19
+ * Check if a given object implements the FraudLookupAffiliate interface.
20
+ */
21
+ function instanceOfFraudLookupAffiliate(value) {
22
+ var isInstance = true;
23
+ return isInstance;
24
+ }
25
+ exports.instanceOfFraudLookupAffiliate = instanceOfFraudLookupAffiliate;
26
+ function FraudLookupAffiliateFromJSON(json) {
27
+ return FraudLookupAffiliateFromJSONTyped(json, false);
28
+ }
29
+ exports.FraudLookupAffiliateFromJSON = FraudLookupAffiliateFromJSON;
30
+ function FraudLookupAffiliateFromJSONTyped(json, ignoreDiscriminator) {
31
+ if ((json === undefined) || (json === null)) {
32
+ return json;
33
+ }
34
+ return {
35
+ 'affiliate_oid': !(0, runtime_1.exists)(json, 'affiliate_oid') ? undefined : json['affiliate_oid'],
36
+ 'email': !(0, runtime_1.exists)(json, 'email') ? undefined : json['email'],
37
+ };
38
+ }
39
+ exports.FraudLookupAffiliateFromJSONTyped = FraudLookupAffiliateFromJSONTyped;
40
+ function FraudLookupAffiliateToJSON(value) {
41
+ if (value === undefined) {
42
+ return undefined;
43
+ }
44
+ if (value === null) {
45
+ return null;
46
+ }
47
+ return {
48
+ 'affiliate_oid': value.affiliate_oid,
49
+ 'email': value.email,
50
+ };
51
+ }
52
+ exports.FraudLookupAffiliateToJSON = FraudLookupAffiliateToJSON;
@@ -0,0 +1,43 @@
1
+ /**
2
+ * UltraCart Rest API V2
3
+ * UltraCart REST API Version 2
4
+ *
5
+ * The version of the OpenAPI document: 2.0.0
6
+ * Contact: support@ultracart.com
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ /**
13
+ *
14
+ * @export
15
+ * @interface FraudLookupGateway
16
+ */
17
+ export interface FraudLookupGateway {
18
+ /**
19
+ * Code of the rotating transaction gateway.
20
+ * @type {string}
21
+ * @memberof FraudLookupGateway
22
+ */
23
+ code?: string;
24
+ /**
25
+ * Display name of the rotating transaction gateway.
26
+ * @type {string}
27
+ * @memberof FraudLookupGateway
28
+ */
29
+ name?: string;
30
+ /**
31
+ * Oid of the rotating transaction gateway. Use this value in rotating_transaction_gateway_filters on insert.
32
+ * @type {number}
33
+ * @memberof FraudLookupGateway
34
+ */
35
+ rotating_transaction_gateway_oid?: number;
36
+ }
37
+ /**
38
+ * Check if a given object implements the FraudLookupGateway interface.
39
+ */
40
+ export declare function instanceOfFraudLookupGateway(value: object): boolean;
41
+ export declare function FraudLookupGatewayFromJSON(json: any): FraudLookupGateway;
42
+ export declare function FraudLookupGatewayFromJSONTyped(json: any, ignoreDiscriminator: boolean): FraudLookupGateway;
43
+ export declare function FraudLookupGatewayToJSON(value?: FraudLookupGateway | null): any;
@@ -0,0 +1,54 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * UltraCart Rest API V2
6
+ * UltraCart REST API Version 2
7
+ *
8
+ * The version of the OpenAPI document: 2.0.0
9
+ * Contact: support@ultracart.com
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.FraudLookupGatewayToJSON = exports.FraudLookupGatewayFromJSONTyped = exports.FraudLookupGatewayFromJSON = exports.instanceOfFraudLookupGateway = void 0;
17
+ var runtime_1 = require("../runtime");
18
+ /**
19
+ * Check if a given object implements the FraudLookupGateway interface.
20
+ */
21
+ function instanceOfFraudLookupGateway(value) {
22
+ var isInstance = true;
23
+ return isInstance;
24
+ }
25
+ exports.instanceOfFraudLookupGateway = instanceOfFraudLookupGateway;
26
+ function FraudLookupGatewayFromJSON(json) {
27
+ return FraudLookupGatewayFromJSONTyped(json, false);
28
+ }
29
+ exports.FraudLookupGatewayFromJSON = FraudLookupGatewayFromJSON;
30
+ function FraudLookupGatewayFromJSONTyped(json, ignoreDiscriminator) {
31
+ if ((json === undefined) || (json === null)) {
32
+ return json;
33
+ }
34
+ return {
35
+ 'code': !(0, runtime_1.exists)(json, 'code') ? undefined : json['code'],
36
+ 'name': !(0, runtime_1.exists)(json, 'name') ? undefined : json['name'],
37
+ 'rotating_transaction_gateway_oid': !(0, runtime_1.exists)(json, 'rotating_transaction_gateway_oid') ? undefined : json['rotating_transaction_gateway_oid'],
38
+ };
39
+ }
40
+ exports.FraudLookupGatewayFromJSONTyped = FraudLookupGatewayFromJSONTyped;
41
+ function FraudLookupGatewayToJSON(value) {
42
+ if (value === undefined) {
43
+ return undefined;
44
+ }
45
+ if (value === null) {
46
+ return null;
47
+ }
48
+ return {
49
+ 'code': value.code,
50
+ 'name': value.name,
51
+ 'rotating_transaction_gateway_oid': value.rotating_transaction_gateway_oid,
52
+ };
53
+ }
54
+ exports.FraudLookupGatewayToJSON = FraudLookupGatewayToJSON;
@@ -0,0 +1,43 @@
1
+ /**
2
+ * UltraCart Rest API V2
3
+ * UltraCart REST API Version 2
4
+ *
5
+ * The version of the OpenAPI document: 2.0.0
6
+ * Contact: support@ultracart.com
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ /**
13
+ *
14
+ * @export
15
+ * @interface FraudLookupTheme
16
+ */
17
+ export interface FraudLookupTheme {
18
+ /**
19
+ * Code of the screen branding theme.
20
+ * @type {string}
21
+ * @memberof FraudLookupTheme
22
+ */
23
+ code?: string;
24
+ /**
25
+ * Oid of the screen branding theme. Use this value in screen_branding_theme_filters on insert.
26
+ * @type {number}
27
+ * @memberof FraudLookupTheme
28
+ */
29
+ screen_branding_theme_oid?: number;
30
+ /**
31
+ * Storefront hostname associated with this theme, when available.
32
+ * @type {string}
33
+ * @memberof FraudLookupTheme
34
+ */
35
+ storefront_hostname?: string;
36
+ }
37
+ /**
38
+ * Check if a given object implements the FraudLookupTheme interface.
39
+ */
40
+ export declare function instanceOfFraudLookupTheme(value: object): boolean;
41
+ export declare function FraudLookupThemeFromJSON(json: any): FraudLookupTheme;
42
+ export declare function FraudLookupThemeFromJSONTyped(json: any, ignoreDiscriminator: boolean): FraudLookupTheme;
43
+ export declare function FraudLookupThemeToJSON(value?: FraudLookupTheme | null): any;