@randock/nameshift-api-client 0.0.397 → 0.0.399

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.
@@ -452,6 +452,7 @@ src/models/TaskListLeadOfferDto.ts
452
452
  src/models/TaskListLeadRentConfigurationDto.ts
453
453
  src/models/TimeTableConfigurationDto.ts
454
454
  src/models/TimeTableConfigurationInput.ts
455
+ src/models/TopAffiliateSellerDto.ts
455
456
  src/models/TopSellerAccountDto.ts
456
457
  src/models/UkBankAccountDetails.ts
457
458
  src/models/UpdateAccountBillingInformationInput.ts
package/README.md CHANGED
@@ -1,4 +1,4 @@
1
- ## @randock/nameshift-api-client@0.0.397
1
+ ## @randock/nameshift-api-client@0.0.399
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 @randock/nameshift-api-client@0.0.397 --save
39
+ npm install @randock/nameshift-api-client@0.0.399 --save
40
40
  ```
41
41
 
42
42
  _unPublished (not recommended):_
@@ -44,4 +44,4 @@ _unPublished (not recommended):_
44
44
  ```
45
45
  npm install PATH_TO_GENERATED_PACKAGE --save
46
46
  ```
47
- 582690c719875a7b8b63fa164d06ca2cb0ab4f64886b99a254b06266cc50c828a1ea71a2f6b91125f56cc3528abbd788
47
+ 7815fca497b7208d61a059af2228c40d5249e4c39b8669f92a2e57595224fa13b9f6f0b64f115589defa031c7214da45
@@ -11,6 +11,7 @@
11
11
  */
12
12
  import type { CommissionsStatsDto } from './CommissionsStatsDto';
13
13
  import type { AccountsStatsDto } from './AccountsStatsDto';
14
+ import type { TopAffiliateSellerDto } from './TopAffiliateSellerDto';
14
15
  import type { AffiliatesStatsDto } from './AffiliatesStatsDto';
15
16
  import type { AuctionsStatsDto } from './AuctionsStatsDto';
16
17
  import type { AccountCountryStatsDto } from './AccountCountryStatsDto';
@@ -52,6 +53,12 @@ export interface AdminDashboardStatsDto {
52
53
  * @memberof AdminDashboardStatsDto
53
54
  */
54
55
  topSellerAccounts: Array<TopSellerAccountDto>;
56
+ /**
57
+ * Top affiliate accounts by number of paid buyer sales that used their affiliate code
58
+ * @type {Array<TopAffiliateSellerDto>}
59
+ * @memberof AdminDashboardStatsDto
60
+ */
61
+ topAffiliateSellers: Array<TopAffiliateSellerDto>;
55
62
  /**
56
63
  * Total number of invoices with target buyer (with Bait state condition)
57
64
  * @type {number}
@@ -20,6 +20,7 @@ exports.AdminDashboardStatsDtoToJSON = AdminDashboardStatsDtoToJSON;
20
20
  exports.AdminDashboardStatsDtoToJSONTyped = AdminDashboardStatsDtoToJSONTyped;
21
21
  var CommissionsStatsDto_1 = require("./CommissionsStatsDto");
22
22
  var AccountsStatsDto_1 = require("./AccountsStatsDto");
23
+ var TopAffiliateSellerDto_1 = require("./TopAffiliateSellerDto");
23
24
  var AffiliatesStatsDto_1 = require("./AffiliatesStatsDto");
24
25
  var AuctionsStatsDto_1 = require("./AuctionsStatsDto");
25
26
  var AccountCountryStatsDto_1 = require("./AccountCountryStatsDto");
@@ -39,6 +40,8 @@ function instanceOfAdminDashboardStatsDto(value) {
39
40
  return false;
40
41
  if (!('topSellerAccounts' in value) || value['topSellerAccounts'] === undefined)
41
42
  return false;
43
+ if (!('topAffiliateSellers' in value) || value['topAffiliateSellers'] === undefined)
44
+ return false;
42
45
  if (!('totalSalesNumber' in value) || value['totalSalesNumber'] === undefined)
43
46
  return false;
44
47
  if (!('averageSalePriceEur' in value) || value['averageSalePriceEur'] === undefined)
@@ -62,6 +65,7 @@ function AdminDashboardStatsDtoFromJSONTyped(json, ignoreDiscriminator) {
62
65
  'accounts': (0, AccountsStatsDto_1.AccountsStatsDtoFromJSON)(json['accounts']),
63
66
  'accountCountries': (json['accountCountries'].map(AccountCountryStatsDto_1.AccountCountryStatsDtoFromJSON)),
64
67
  'topSellerAccounts': (json['topSellerAccounts'].map(TopSellerAccountDto_1.TopSellerAccountDtoFromJSON)),
68
+ 'topAffiliateSellers': (json['topAffiliateSellers'].map(TopAffiliateSellerDto_1.TopAffiliateSellerDtoFromJSON)),
65
69
  'totalSalesNumber': json['totalSalesNumber'],
66
70
  'averageSalePriceEur': json['averageSalePriceEur'],
67
71
  'commissions': (0, CommissionsStatsDto_1.CommissionsStatsDtoFromJSON)(json['commissions']),
@@ -82,6 +86,7 @@ function AdminDashboardStatsDtoToJSONTyped(value, ignoreDiscriminator) {
82
86
  'accounts': (0, AccountsStatsDto_1.AccountsStatsDtoToJSON)(value['accounts']),
83
87
  'accountCountries': (value['accountCountries'].map(AccountCountryStatsDto_1.AccountCountryStatsDtoToJSON)),
84
88
  'topSellerAccounts': (value['topSellerAccounts'].map(TopSellerAccountDto_1.TopSellerAccountDtoToJSON)),
89
+ 'topAffiliateSellers': (value['topAffiliateSellers'].map(TopAffiliateSellerDto_1.TopAffiliateSellerDtoToJSON)),
85
90
  'totalSalesNumber': value['totalSalesNumber'],
86
91
  'averageSalePriceEur': value['averageSalePriceEur'],
87
92
  'commissions': (0, CommissionsStatsDto_1.CommissionsStatsDtoToJSON)(value['commissions']),
@@ -128,6 +128,12 @@ export interface OrderDto {
128
128
  * @memberof OrderDto
129
129
  */
130
130
  enabledPaymentMethods: Array<OrderDtoEnabledPaymentMethodsEnum>;
131
+ /**
132
+ *
133
+ * @type {boolean}
134
+ * @memberof OrderDto
135
+ */
136
+ canBeProforma: boolean;
131
137
  }
132
138
  /**
133
139
  * @export
@@ -80,6 +80,8 @@ function instanceOfOrderDto(value) {
80
80
  return false;
81
81
  if (!('enabledPaymentMethods' in value) || value['enabledPaymentMethods'] === undefined)
82
82
  return false;
83
+ if (!('canBeProforma' in value) || value['canBeProforma'] === undefined)
84
+ return false;
83
85
  return true;
84
86
  }
85
87
  function OrderDtoFromJSON(json) {
@@ -108,6 +110,7 @@ function OrderDtoFromJSONTyped(json, ignoreDiscriminator) {
108
110
  'transaction': (0, InvoiceTransactionDto_1.InvoiceTransactionDtoFromJSON)(json['transaction']),
109
111
  'hasPendingTransaction': json['hasPendingTransaction'],
110
112
  'enabledPaymentMethods': json['enabledPaymentMethods'],
113
+ 'canBeProforma': json['canBeProforma'],
111
114
  };
112
115
  }
113
116
  function OrderDtoToJSON(json) {
@@ -137,5 +140,6 @@ function OrderDtoToJSONTyped(value, ignoreDiscriminator) {
137
140
  'transaction': (0, InvoiceTransactionDto_1.InvoiceTransactionDtoToJSON)(value['transaction']),
138
141
  'hasPendingTransaction': value['hasPendingTransaction'],
139
142
  'enabledPaymentMethods': value['enabledPaymentMethods'],
143
+ 'canBeProforma': value['canBeProforma'],
140
144
  };
141
145
  }
@@ -185,6 +185,12 @@ export interface SubscriptionDto {
185
185
  * @memberof SubscriptionDto
186
186
  */
187
187
  leaseToOwn: SubscriptionLeaseToOwnConfigurationDto | null;
188
+ /**
189
+ *
190
+ * @type {boolean}
191
+ * @memberof SubscriptionDto
192
+ */
193
+ canBeProforma: boolean;
188
194
  }
189
195
  /**
190
196
  * @export
@@ -112,6 +112,8 @@ function instanceOfSubscriptionDto(value) {
112
112
  return false;
113
113
  if (!('leaseToOwn' in value) || value['leaseToOwn'] === undefined)
114
114
  return false;
115
+ if (!('canBeProforma' in value) || value['canBeProforma'] === undefined)
116
+ return false;
115
117
  return true;
116
118
  }
117
119
  function SubscriptionDtoFromJSON(json) {
@@ -149,6 +151,7 @@ function SubscriptionDtoFromJSONTyped(json, ignoreDiscriminator) {
149
151
  'hasLead': json['hasLead'],
150
152
  'leadStatus': json['leadStatus'],
151
153
  'leaseToOwn': (0, SubscriptionLeaseToOwnConfigurationDto_1.SubscriptionLeaseToOwnConfigurationDtoFromJSON)(json['leaseToOwn']),
154
+ 'canBeProforma': json['canBeProforma'],
152
155
  };
153
156
  }
154
157
  function SubscriptionDtoToJSON(json) {
@@ -187,5 +190,6 @@ function SubscriptionDtoToJSONTyped(value, ignoreDiscriminator) {
187
190
  'hasLead': value['hasLead'],
188
191
  'leadStatus': value['leadStatus'],
189
192
  'leaseToOwn': (0, SubscriptionLeaseToOwnConfigurationDto_1.SubscriptionLeaseToOwnConfigurationDtoToJSON)(value['leaseToOwn']),
193
+ 'canBeProforma': value['canBeProforma'],
190
194
  };
191
195
  }
@@ -0,0 +1,44 @@
1
+ /**
2
+ * Nameshift
3
+ * Nameshift API
4
+ *
5
+ * The version of the OpenAPI document: 1.0
6
+ *
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 TopAffiliateSellerDto
16
+ */
17
+ export interface TopAffiliateSellerDto {
18
+ /**
19
+ * Account whose affiliate code was used (order or subscription affiliate_account_id)
20
+ * @type {string}
21
+ * @memberof TopAffiliateSellerDto
22
+ */
23
+ identifier: string;
24
+ /**
25
+ * Affiliate account name
26
+ * @type {string}
27
+ * @memberof TopAffiliateSellerDto
28
+ */
29
+ name: string | null;
30
+ /**
31
+ * Number of paid buyer invoices where this account is the attributed affiliate
32
+ * @type {number}
33
+ * @memberof TopAffiliateSellerDto
34
+ */
35
+ affiliateSalesCount: number;
36
+ }
37
+ /**
38
+ * Check if a given object implements the TopAffiliateSellerDto interface.
39
+ */
40
+ export declare function instanceOfTopAffiliateSellerDto(value: object): value is TopAffiliateSellerDto;
41
+ export declare function TopAffiliateSellerDtoFromJSON(json: any): TopAffiliateSellerDto;
42
+ export declare function TopAffiliateSellerDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): TopAffiliateSellerDto;
43
+ export declare function TopAffiliateSellerDtoToJSON(json: any): TopAffiliateSellerDto;
44
+ export declare function TopAffiliateSellerDtoToJSONTyped(value?: TopAffiliateSellerDto | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,59 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * Nameshift
6
+ * Nameshift API
7
+ *
8
+ * The version of the OpenAPI document: 1.0
9
+ *
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.instanceOfTopAffiliateSellerDto = instanceOfTopAffiliateSellerDto;
17
+ exports.TopAffiliateSellerDtoFromJSON = TopAffiliateSellerDtoFromJSON;
18
+ exports.TopAffiliateSellerDtoFromJSONTyped = TopAffiliateSellerDtoFromJSONTyped;
19
+ exports.TopAffiliateSellerDtoToJSON = TopAffiliateSellerDtoToJSON;
20
+ exports.TopAffiliateSellerDtoToJSONTyped = TopAffiliateSellerDtoToJSONTyped;
21
+ /**
22
+ * Check if a given object implements the TopAffiliateSellerDto interface.
23
+ */
24
+ function instanceOfTopAffiliateSellerDto(value) {
25
+ if (!('identifier' in value) || value['identifier'] === undefined)
26
+ return false;
27
+ if (!('name' in value) || value['name'] === undefined)
28
+ return false;
29
+ if (!('affiliateSalesCount' in value) || value['affiliateSalesCount'] === undefined)
30
+ return false;
31
+ return true;
32
+ }
33
+ function TopAffiliateSellerDtoFromJSON(json) {
34
+ return TopAffiliateSellerDtoFromJSONTyped(json, false);
35
+ }
36
+ function TopAffiliateSellerDtoFromJSONTyped(json, ignoreDiscriminator) {
37
+ if (json == null) {
38
+ return json;
39
+ }
40
+ return {
41
+ 'identifier': json['identifier'],
42
+ 'name': json['name'],
43
+ 'affiliateSalesCount': json['affiliateSalesCount'],
44
+ };
45
+ }
46
+ function TopAffiliateSellerDtoToJSON(json) {
47
+ return TopAffiliateSellerDtoToJSONTyped(json, false);
48
+ }
49
+ function TopAffiliateSellerDtoToJSONTyped(value, ignoreDiscriminator) {
50
+ if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
51
+ if (value == null) {
52
+ return value;
53
+ }
54
+ return {
55
+ 'identifier': value['identifier'],
56
+ 'name': value['name'],
57
+ 'affiliateSalesCount': value['affiliateSalesCount'],
58
+ };
59
+ }
@@ -416,6 +416,7 @@ export * from './TaskListLeadOfferDto';
416
416
  export * from './TaskListLeadRentConfigurationDto';
417
417
  export * from './TimeTableConfigurationDto';
418
418
  export * from './TimeTableConfigurationInput';
419
+ export * from './TopAffiliateSellerDto';
419
420
  export * from './TopSellerAccountDto';
420
421
  export * from './UkBankAccountDetails';
421
422
  export * from './UpdateAccountBillingInformationInput';
@@ -434,6 +434,7 @@ __exportStar(require("./TaskListLeadOfferDto"), exports);
434
434
  __exportStar(require("./TaskListLeadRentConfigurationDto"), exports);
435
435
  __exportStar(require("./TimeTableConfigurationDto"), exports);
436
436
  __exportStar(require("./TimeTableConfigurationInput"), exports);
437
+ __exportStar(require("./TopAffiliateSellerDto"), exports);
437
438
  __exportStar(require("./TopSellerAccountDto"), exports);
438
439
  __exportStar(require("./UkBankAccountDetails"), exports);
439
440
  __exportStar(require("./UpdateAccountBillingInformationInput"), exports);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@randock/nameshift-api-client",
3
- "version": "0.0.397",
3
+ "version": "0.0.399",
4
4
  "description": "OpenAPI client for @randock/nameshift-api-client",
5
5
  "author": "OpenAPI-Generator",
6
6
  "repository": {
@@ -27,6 +27,13 @@ import {
27
27
  AccountsStatsDtoToJSON,
28
28
  AccountsStatsDtoToJSONTyped,
29
29
  } from './AccountsStatsDto';
30
+ import type { TopAffiliateSellerDto } from './TopAffiliateSellerDto';
31
+ import {
32
+ TopAffiliateSellerDtoFromJSON,
33
+ TopAffiliateSellerDtoFromJSONTyped,
34
+ TopAffiliateSellerDtoToJSON,
35
+ TopAffiliateSellerDtoToJSONTyped,
36
+ } from './TopAffiliateSellerDto';
30
37
  import type { AffiliatesStatsDto } from './AffiliatesStatsDto';
31
38
  import {
32
39
  AffiliatesStatsDtoFromJSON,
@@ -99,6 +106,12 @@ export interface AdminDashboardStatsDto {
99
106
  * @memberof AdminDashboardStatsDto
100
107
  */
101
108
  topSellerAccounts: Array<TopSellerAccountDto>;
109
+ /**
110
+ * Top affiliate accounts by number of paid buyer sales that used their affiliate code
111
+ * @type {Array<TopAffiliateSellerDto>}
112
+ * @memberof AdminDashboardStatsDto
113
+ */
114
+ topAffiliateSellers: Array<TopAffiliateSellerDto>;
102
115
  /**
103
116
  * Total number of invoices with target buyer (with Bait state condition)
104
117
  * @type {number}
@@ -134,6 +147,7 @@ export function instanceOfAdminDashboardStatsDto(value: object): value is AdminD
134
147
  if (!('accounts' in value) || value['accounts'] === undefined) return false;
135
148
  if (!('accountCountries' in value) || value['accountCountries'] === undefined) return false;
136
149
  if (!('topSellerAccounts' in value) || value['topSellerAccounts'] === undefined) return false;
150
+ if (!('topAffiliateSellers' in value) || value['topAffiliateSellers'] === undefined) return false;
137
151
  if (!('totalSalesNumber' in value) || value['totalSalesNumber'] === undefined) return false;
138
152
  if (!('averageSalePriceEur' in value) || value['averageSalePriceEur'] === undefined) return false;
139
153
  if (!('commissions' in value) || value['commissions'] === undefined) return false;
@@ -156,6 +170,7 @@ export function AdminDashboardStatsDtoFromJSONTyped(json: any, ignoreDiscriminat
156
170
  'accounts': AccountsStatsDtoFromJSON(json['accounts']),
157
171
  'accountCountries': ((json['accountCountries'] as Array<any>).map(AccountCountryStatsDtoFromJSON)),
158
172
  'topSellerAccounts': ((json['topSellerAccounts'] as Array<any>).map(TopSellerAccountDtoFromJSON)),
173
+ 'topAffiliateSellers': ((json['topAffiliateSellers'] as Array<any>).map(TopAffiliateSellerDtoFromJSON)),
159
174
  'totalSalesNumber': json['totalSalesNumber'],
160
175
  'averageSalePriceEur': json['averageSalePriceEur'],
161
176
  'commissions': CommissionsStatsDtoFromJSON(json['commissions']),
@@ -179,6 +194,7 @@ export function AdminDashboardStatsDtoToJSONTyped(value?: AdminDashboardStatsDto
179
194
  'accounts': AccountsStatsDtoToJSON(value['accounts']),
180
195
  'accountCountries': ((value['accountCountries'] as Array<any>).map(AccountCountryStatsDtoToJSON)),
181
196
  'topSellerAccounts': ((value['topSellerAccounts'] as Array<any>).map(TopSellerAccountDtoToJSON)),
197
+ 'topAffiliateSellers': ((value['topAffiliateSellers'] as Array<any>).map(TopAffiliateSellerDtoToJSON)),
182
198
  'totalSalesNumber': value['totalSalesNumber'],
183
199
  'averageSalePriceEur': value['averageSalePriceEur'],
184
200
  'commissions': CommissionsStatsDtoToJSON(value['commissions']),
@@ -163,6 +163,12 @@ export interface OrderDto {
163
163
  * @memberof OrderDto
164
164
  */
165
165
  enabledPaymentMethods: Array<OrderDtoEnabledPaymentMethodsEnum>;
166
+ /**
167
+ *
168
+ * @type {boolean}
169
+ * @memberof OrderDto
170
+ */
171
+ canBeProforma: boolean;
166
172
  }
167
173
 
168
174
 
@@ -209,6 +215,7 @@ export function instanceOfOrderDto(value: object): value is OrderDto {
209
215
  if (!('transaction' in value) || value['transaction'] === undefined) return false;
210
216
  if (!('hasPendingTransaction' in value) || value['hasPendingTransaction'] === undefined) return false;
211
217
  if (!('enabledPaymentMethods' in value) || value['enabledPaymentMethods'] === undefined) return false;
218
+ if (!('canBeProforma' in value) || value['canBeProforma'] === undefined) return false;
212
219
  return true;
213
220
  }
214
221
 
@@ -240,6 +247,7 @@ export function OrderDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean):
240
247
  'transaction': InvoiceTransactionDtoFromJSON(json['transaction']),
241
248
  'hasPendingTransaction': json['hasPendingTransaction'],
242
249
  'enabledPaymentMethods': json['enabledPaymentMethods'],
250
+ 'canBeProforma': json['canBeProforma'],
243
251
  };
244
252
  }
245
253
 
@@ -272,6 +280,7 @@ export function OrderDtoToJSONTyped(value?: OrderDto | null, ignoreDiscriminator
272
280
  'transaction': InvoiceTransactionDtoToJSON(value['transaction']),
273
281
  'hasPendingTransaction': value['hasPendingTransaction'],
274
282
  'enabledPaymentMethods': value['enabledPaymentMethods'],
283
+ 'canBeProforma': value['canBeProforma'],
275
284
  };
276
285
  }
277
286
 
@@ -238,6 +238,12 @@ export interface SubscriptionDto {
238
238
  * @memberof SubscriptionDto
239
239
  */
240
240
  leaseToOwn: SubscriptionLeaseToOwnConfigurationDto | null;
241
+ /**
242
+ *
243
+ * @type {boolean}
244
+ * @memberof SubscriptionDto
245
+ */
246
+ canBeProforma: boolean;
241
247
  }
242
248
 
243
249
 
@@ -306,6 +312,7 @@ export function instanceOfSubscriptionDto(value: object): value is SubscriptionD
306
312
  if (!('hasLead' in value) || value['hasLead'] === undefined) return false;
307
313
  if (!('leadStatus' in value) || value['leadStatus'] === undefined) return false;
308
314
  if (!('leaseToOwn' in value) || value['leaseToOwn'] === undefined) return false;
315
+ if (!('canBeProforma' in value) || value['canBeProforma'] === undefined) return false;
309
316
  return true;
310
317
  }
311
318
 
@@ -346,6 +353,7 @@ export function SubscriptionDtoFromJSONTyped(json: any, ignoreDiscriminator: boo
346
353
  'hasLead': json['hasLead'],
347
354
  'leadStatus': json['leadStatus'],
348
355
  'leaseToOwn': SubscriptionLeaseToOwnConfigurationDtoFromJSON(json['leaseToOwn']),
356
+ 'canBeProforma': json['canBeProforma'],
349
357
  };
350
358
  }
351
359
 
@@ -387,6 +395,7 @@ export function SubscriptionDtoToJSONTyped(value?: SubscriptionDto | null, ignor
387
395
  'hasLead': value['hasLead'],
388
396
  'leadStatus': value['leadStatus'],
389
397
  'leaseToOwn': SubscriptionLeaseToOwnConfigurationDtoToJSON(value['leaseToOwn']),
398
+ 'canBeProforma': value['canBeProforma'],
390
399
  };
391
400
  }
392
401
 
@@ -0,0 +1,84 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Nameshift
5
+ * Nameshift API
6
+ *
7
+ * The version of the OpenAPI document: 1.0
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+
15
+ import { mapValues } from '../runtime';
16
+ /**
17
+ *
18
+ * @export
19
+ * @interface TopAffiliateSellerDto
20
+ */
21
+ export interface TopAffiliateSellerDto {
22
+ /**
23
+ * Account whose affiliate code was used (order or subscription affiliate_account_id)
24
+ * @type {string}
25
+ * @memberof TopAffiliateSellerDto
26
+ */
27
+ identifier: string;
28
+ /**
29
+ * Affiliate account name
30
+ * @type {string}
31
+ * @memberof TopAffiliateSellerDto
32
+ */
33
+ name: string | null;
34
+ /**
35
+ * Number of paid buyer invoices where this account is the attributed affiliate
36
+ * @type {number}
37
+ * @memberof TopAffiliateSellerDto
38
+ */
39
+ affiliateSalesCount: number;
40
+ }
41
+
42
+ /**
43
+ * Check if a given object implements the TopAffiliateSellerDto interface.
44
+ */
45
+ export function instanceOfTopAffiliateSellerDto(value: object): value is TopAffiliateSellerDto {
46
+ if (!('identifier' in value) || value['identifier'] === undefined) return false;
47
+ if (!('name' in value) || value['name'] === undefined) return false;
48
+ if (!('affiliateSalesCount' in value) || value['affiliateSalesCount'] === undefined) return false;
49
+ return true;
50
+ }
51
+
52
+ export function TopAffiliateSellerDtoFromJSON(json: any): TopAffiliateSellerDto {
53
+ return TopAffiliateSellerDtoFromJSONTyped(json, false);
54
+ }
55
+
56
+ export function TopAffiliateSellerDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): TopAffiliateSellerDto {
57
+ if (json == null) {
58
+ return json;
59
+ }
60
+ return {
61
+
62
+ 'identifier': json['identifier'],
63
+ 'name': json['name'],
64
+ 'affiliateSalesCount': json['affiliateSalesCount'],
65
+ };
66
+ }
67
+
68
+ export function TopAffiliateSellerDtoToJSON(json: any): TopAffiliateSellerDto {
69
+ return TopAffiliateSellerDtoToJSONTyped(json, false);
70
+ }
71
+
72
+ export function TopAffiliateSellerDtoToJSONTyped(value?: TopAffiliateSellerDto | null, ignoreDiscriminator: boolean = false): any {
73
+ if (value == null) {
74
+ return value;
75
+ }
76
+
77
+ return {
78
+
79
+ 'identifier': value['identifier'],
80
+ 'name': value['name'],
81
+ 'affiliateSalesCount': value['affiliateSalesCount'],
82
+ };
83
+ }
84
+
@@ -418,6 +418,7 @@ export * from './TaskListLeadOfferDto';
418
418
  export * from './TaskListLeadRentConfigurationDto';
419
419
  export * from './TimeTableConfigurationDto';
420
420
  export * from './TimeTableConfigurationInput';
421
+ export * from './TopAffiliateSellerDto';
421
422
  export * from './TopSellerAccountDto';
422
423
  export * from './UkBankAccountDetails';
423
424
  export * from './UpdateAccountBillingInformationInput';