@managespace/sdk 0.0.13 → 0.0.14

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 (48) hide show
  1. package/dist/extensibility/functions/project/billing.d.ts +9 -7
  2. package/dist/extensibility/functions/project/billing.d.ts.map +1 -1
  3. package/dist/extensibility/functions/project/billing.js +0 -4
  4. package/dist/generated/apis/default-api.d.ts +24 -3
  5. package/dist/generated/apis/default-api.d.ts.map +1 -1
  6. package/dist/generated/apis/default-api.js +68 -1
  7. package/dist/generated/models/charge-response.d.ts +3 -3
  8. package/dist/generated/models/charge-response.d.ts.map +1 -1
  9. package/dist/generated/models/charge-response.js +3 -3
  10. package/dist/generated/models/create-plan-charge.d.ts +3 -3
  11. package/dist/generated/models/create-plan-charge.d.ts.map +1 -1
  12. package/dist/generated/models/create-plan-charge.js +3 -3
  13. package/dist/generated/models/create-product-custom.d.ts +45 -3
  14. package/dist/generated/models/create-product-custom.d.ts.map +1 -1
  15. package/dist/generated/models/create-product-custom.js +14 -0
  16. package/dist/generated/models/create-product.d.ts +1 -1
  17. package/dist/generated/models/get-products200-response.d.ts +3 -3
  18. package/dist/generated/models/get-products200-response.d.ts.map +1 -1
  19. package/dist/generated/models/get-products200-response.js +3 -3
  20. package/dist/generated/models/index.d.ts +2 -1
  21. package/dist/generated/models/index.d.ts.map +1 -1
  22. package/dist/generated/models/index.js +2 -1
  23. package/dist/generated/models/plan-charge-response.d.ts +3 -3
  24. package/dist/generated/models/plan-charge-response.d.ts.map +1 -1
  25. package/dist/generated/models/plan-charge-response.js +3 -3
  26. package/dist/generated/models/product-custom-response.d.ts +150 -0
  27. package/dist/generated/models/product-custom-response.d.ts.map +1 -0
  28. package/dist/generated/models/product-custom-response.js +110 -0
  29. package/dist/generated/models/product-response.d.ts +1 -1
  30. package/dist/generated/models/subscription-plan-response.d.ts +3 -3
  31. package/dist/generated/models/subscription-plan-response.d.ts.map +1 -1
  32. package/dist/generated/models/subscription-plan-response.js +3 -3
  33. package/dist/generated/models/transaction-posting-entries.d.ts +3 -3
  34. package/package.json +2 -1
  35. package/src/extensibility/functions/project/billing.ts +16 -11
  36. package/src/generated/.openapi-generator/FILES +2 -1
  37. package/src/generated/apis/default-api.ts +113 -6
  38. package/src/generated/models/charge-response.ts +10 -10
  39. package/src/generated/models/create-plan-charge.ts +10 -10
  40. package/src/generated/models/create-product-custom.ts +59 -3
  41. package/src/generated/models/create-product.ts +1 -1
  42. package/src/generated/models/get-products200-response.ts +11 -11
  43. package/src/generated/models/index.ts +2 -1
  44. package/src/generated/models/plan-charge-response.ts +10 -10
  45. package/src/generated/models/product-custom-response.ts +249 -0
  46. package/src/generated/models/product-response.ts +1 -1
  47. package/src/generated/models/subscription-plan-response.ts +10 -10
  48. package/src/generated/models/transaction-posting-entries.ts +3 -3
@@ -16,19 +16,19 @@
16
16
  */
17
17
  export interface TransactionPostingEntries {
18
18
  /**
19
- * Transaction type.
19
+ * Type of transaction
20
20
  * @type {string}
21
21
  * @memberof TransactionPostingEntries
22
22
  */
23
23
  transactionType: string;
24
24
  /**
25
- * Debit account.
25
+ * Account ID of Debit Account
26
26
  * @type {string}
27
27
  * @memberof TransactionPostingEntries
28
28
  */
29
29
  debitAccount: string;
30
30
  /**
31
- * Credit Account.
31
+ * Account ID of Credit Account
32
32
  * @type {string}
33
33
  * @memberof TransactionPostingEntries
34
34
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@managespace/sdk",
3
- "version": "0.0.13",
3
+ "version": "0.0.14",
4
4
  "scripts": {
5
5
  "dev": "tsc -w --preserveWatchOutput",
6
6
  "build": "tsc",
@@ -21,6 +21,7 @@
21
21
  }
22
22
  },
23
23
  "dependencies": {
24
+ "@managespace/types": "*",
24
25
  "tslib": "^2.4.0",
25
26
  "zod": "^3.23.8"
26
27
  },
@@ -8,13 +8,11 @@ import {
8
8
  CustomChartOfAccounts,
9
9
  CustomerResponse,
10
10
  SubscriptionResponse,
11
- // ProductBillingResponse,
12
11
  PlanResponse,
13
12
  PaymentRunResponse,
14
13
  CustomerId,
15
14
  GetContactResponse,
16
15
  GetCustomerResponse,
17
- // CreateProductBilling,
18
16
  CreatePlanBilling,
19
17
  CustomUpdateCustomer,
20
18
  ChartOfAccountResponse,
@@ -25,6 +23,8 @@ import {
25
23
  PaymentResponse,
26
24
  StatementResponse,
27
25
  CancelSubscriptionBilling,
26
+ ProductCustomResponse,
27
+ CreateProductCustom,
28
28
  } from '../../../generated';
29
29
  import { ExtPlugin } from '../../types';
30
30
  // TODO: import this from common, import it all from common ideally
@@ -146,14 +146,18 @@ export namespace Billing {
146
146
  }
147
147
 
148
148
  export class GetProducts implements ExtPlugin {
149
- // responseType!: ProductBillingResponse[];
150
- responseType!: any[];
151
- payload!: BasePaginationQuery;
149
+ responseType!: Omit<
150
+ ProductCustomResponse,
151
+ 'org' | 'orgId' | 'site' | 'siteId'
152
+ >[];
153
+ payload!: BasePaginationQuery & { active?: boolean };
152
154
  }
153
155
 
154
156
  export class GetProduct implements ExtPlugin {
155
- // responseType!: ProductBillingResponse;
156
- responseType!: any;
157
+ responseType!: Omit<
158
+ ProductCustomResponse,
159
+ 'org' | 'orgId' | 'site' | 'siteId'
160
+ >;
157
161
  payload!: { productId: string };
158
162
  }
159
163
 
@@ -168,10 +172,11 @@ export namespace Billing {
168
172
  }
169
173
 
170
174
  export class CreateProduct implements ExtPlugin {
171
- // responseType!: ProductBillingResponse;
172
- responseType!: any;
173
- // payload!: { createProductPayload: CreateProductBilling };
174
- payload!: { createProductPayload: any };
175
+ responseType!: Omit<
176
+ ProductCustomResponse,
177
+ 'org' | 'orgId' | 'site' | 'siteId'
178
+ >;
179
+ payload!: CreateProductCustom & { externalId: string };
175
180
  }
176
181
 
177
182
  export class CreatePlan implements ExtPlugin {
@@ -100,6 +100,7 @@ models/get-payment-runs200-response.ts
100
100
  models/get-payments200-response.ts
101
101
  models/get-plans200-response.ts
102
102
  models/get-plugins200-response.ts
103
+ models/get-products200-response.ts
103
104
  models/get-revenue-rules200-response.ts
104
105
  models/get-sites200-response.ts
105
106
  models/get-statements200-response.ts
@@ -139,9 +140,9 @@ models/plugin-extensibility-function-metadata-response.ts
139
140
  models/plugin-extensibility-status.ts
140
141
  models/plugin-response.ts
141
142
  models/plugin-version-response.ts
143
+ models/product-custom-response.ts
142
144
  models/product-response.ts
143
145
  models/product-status.ts
144
- models/product-transaction-posting-entries.ts
145
146
  models/project-response.ts
146
147
  models/project-response1.ts
147
148
  models/project-version-response.ts
@@ -90,6 +90,7 @@ import type {
90
90
  GetPayments200Response,
91
91
  GetPlans200Response,
92
92
  GetPlugins200Response,
93
+ GetProducts200Response,
93
94
  GetRevenueRules200Response,
94
95
  GetSites200Response,
95
96
  GetStatements200Response,
@@ -114,7 +115,7 @@ import type {
114
115
  PaymentRunResponse,
115
116
  PlanResponse,
116
117
  PluginResponse,
117
- ProductResponse,
118
+ ProductCustomResponse,
118
119
  RevenueRuleResponse,
119
120
  Roles,
120
121
  SiteResponse,
@@ -296,6 +297,8 @@ import {
296
297
  GetPlans200ResponseToJSON,
297
298
  GetPlugins200ResponseFromJSON,
298
299
  GetPlugins200ResponseToJSON,
300
+ GetProducts200ResponseFromJSON,
301
+ GetProducts200ResponseToJSON,
299
302
  GetRevenueRules200ResponseFromJSON,
300
303
  GetRevenueRules200ResponseToJSON,
301
304
  GetSites200ResponseFromJSON,
@@ -344,8 +347,8 @@ import {
344
347
  PlanResponseToJSON,
345
348
  PluginResponseFromJSON,
346
349
  PluginResponseToJSON,
347
- ProductResponseFromJSON,
348
- ProductResponseToJSON,
350
+ ProductCustomResponseFromJSON,
351
+ ProductCustomResponseToJSON,
349
352
  RevenueRuleResponseFromJSON,
350
353
  RevenueRuleResponseToJSON,
351
354
  RolesFromJSON,
@@ -805,6 +808,17 @@ export interface GetPluginsRequest {
805
808
  isPublic?: string;
806
809
  }
807
810
 
811
+ export interface GetProductRequest {
812
+ siteId: string;
813
+ productId: string;
814
+ }
815
+
816
+ export interface GetProductsRequest {
817
+ siteId: string;
818
+ offset?: number;
819
+ limit?: number;
820
+ }
821
+
808
822
  export interface GetRevenueRuleRequest {
809
823
  siteId: string;
810
824
  revenueRuleId: string;
@@ -2184,7 +2198,7 @@ export class DefaultApi extends runtime.BaseAPI {
2184
2198
 
2185
2199
  /**
2186
2200
  */
2187
- async createProductRaw(requestParameters: CreateProductRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ProductResponse>> {
2201
+ async createProductRaw(requestParameters: CreateProductRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ProductCustomResponse>> {
2188
2202
  if (requestParameters['siteId'] == null) {
2189
2203
  throw new runtime.RequiredError(
2190
2204
  'siteId',
@@ -2221,12 +2235,12 @@ export class DefaultApi extends runtime.BaseAPI {
2221
2235
  body: CreateProductCustomToJSON(requestParameters['createProductCustom']),
2222
2236
  }, initOverrides);
2223
2237
 
2224
- return new runtime.JSONApiResponse(response, (jsonValue) => ProductResponseFromJSON(jsonValue));
2238
+ return new runtime.JSONApiResponse(response, (jsonValue) => ProductCustomResponseFromJSON(jsonValue));
2225
2239
  }
2226
2240
 
2227
2241
  /**
2228
2242
  */
2229
- async createProduct(requestParameters: CreateProductRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ProductResponse> {
2243
+ async createProduct(requestParameters: CreateProductRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ProductCustomResponse> {
2230
2244
  const response = await this.createProductRaw(requestParameters, initOverrides);
2231
2245
  return await response.value();
2232
2246
  }
@@ -4651,6 +4665,99 @@ export class DefaultApi extends runtime.BaseAPI {
4651
4665
  return await response.value();
4652
4666
  }
4653
4667
 
4668
+ /**
4669
+ */
4670
+ async getProductRaw(requestParameters: GetProductRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ProductCustomResponse>> {
4671
+ if (requestParameters['siteId'] == null) {
4672
+ throw new runtime.RequiredError(
4673
+ 'siteId',
4674
+ 'Required parameter "siteId" was null or undefined when calling getProduct().'
4675
+ );
4676
+ }
4677
+
4678
+ if (requestParameters['productId'] == null) {
4679
+ throw new runtime.RequiredError(
4680
+ 'productId',
4681
+ 'Required parameter "productId" was null or undefined when calling getProduct().'
4682
+ );
4683
+ }
4684
+
4685
+ const queryParameters: any = {};
4686
+
4687
+ const headerParameters: runtime.HTTPHeaders = {};
4688
+
4689
+ if (this.configuration && this.configuration.accessToken) {
4690
+ const token = this.configuration.accessToken;
4691
+ const tokenString = await token("bearer", []);
4692
+
4693
+ if (tokenString) {
4694
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
4695
+ }
4696
+ }
4697
+ const response = await this.request({
4698
+ path: `/api/sites/{siteId}/products/{productId}`.replace(`{${"siteId"}}`, encodeURIComponent(String(requestParameters['siteId']))).replace(`{${"productId"}}`, encodeURIComponent(String(requestParameters['productId']))),
4699
+ method: 'GET',
4700
+ headers: headerParameters,
4701
+ query: queryParameters,
4702
+ }, initOverrides);
4703
+
4704
+ return new runtime.JSONApiResponse(response, (jsonValue) => ProductCustomResponseFromJSON(jsonValue));
4705
+ }
4706
+
4707
+ /**
4708
+ */
4709
+ async getProduct(requestParameters: GetProductRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ProductCustomResponse> {
4710
+ const response = await this.getProductRaw(requestParameters, initOverrides);
4711
+ return await response.value();
4712
+ }
4713
+
4714
+ /**
4715
+ */
4716
+ async getProductsRaw(requestParameters: GetProductsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GetProducts200Response>> {
4717
+ if (requestParameters['siteId'] == null) {
4718
+ throw new runtime.RequiredError(
4719
+ 'siteId',
4720
+ 'Required parameter "siteId" was null or undefined when calling getProducts().'
4721
+ );
4722
+ }
4723
+
4724
+ const queryParameters: any = {};
4725
+
4726
+ if (requestParameters['offset'] != null) {
4727
+ queryParameters['offset'] = requestParameters['offset'];
4728
+ }
4729
+
4730
+ if (requestParameters['limit'] != null) {
4731
+ queryParameters['limit'] = requestParameters['limit'];
4732
+ }
4733
+
4734
+ const headerParameters: runtime.HTTPHeaders = {};
4735
+
4736
+ if (this.configuration && this.configuration.accessToken) {
4737
+ const token = this.configuration.accessToken;
4738
+ const tokenString = await token("bearer", []);
4739
+
4740
+ if (tokenString) {
4741
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
4742
+ }
4743
+ }
4744
+ const response = await this.request({
4745
+ path: `/api/sites/{siteId}/products`.replace(`{${"siteId"}}`, encodeURIComponent(String(requestParameters['siteId']))),
4746
+ method: 'GET',
4747
+ headers: headerParameters,
4748
+ query: queryParameters,
4749
+ }, initOverrides);
4750
+
4751
+ return new runtime.JSONApiResponse(response, (jsonValue) => GetProducts200ResponseFromJSON(jsonValue));
4752
+ }
4753
+
4754
+ /**
4755
+ */
4756
+ async getProducts(requestParameters: GetProductsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GetProducts200Response> {
4757
+ const response = await this.getProductsRaw(requestParameters, initOverrides);
4758
+ return await response.value();
4759
+ }
4760
+
4654
4761
  /**
4655
4762
  */
4656
4763
  async getRevenueRuleRaw(requestParameters: GetRevenueRuleRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<RevenueRuleResponse>> {
@@ -13,13 +13,13 @@
13
13
  */
14
14
 
15
15
  import { mapValues } from '../runtime';
16
- import type { ProductTransactionPostingEntries } from './product-transaction-posting-entries';
16
+ import type { TransactionPostingEntries } from './transaction-posting-entries';
17
17
  import {
18
- ProductTransactionPostingEntriesFromJSON,
19
- ProductTransactionPostingEntriesFromJSONTyped,
20
- ProductTransactionPostingEntriesToJSON,
21
- ProductTransactionPostingEntriesToJSONTyped,
22
- } from './product-transaction-posting-entries';
18
+ TransactionPostingEntriesFromJSON,
19
+ TransactionPostingEntriesFromJSONTyped,
20
+ TransactionPostingEntriesToJSON,
21
+ TransactionPostingEntriesToJSONTyped,
22
+ } from './transaction-posting-entries';
23
23
 
24
24
  /**
25
25
  *
@@ -149,10 +149,10 @@ export interface ChargeResponse {
149
149
  recognitionEndDate: string;
150
150
  /**
151
151
  * Transaction type
152
- * @type {Array<ProductTransactionPostingEntries>}
152
+ * @type {Array<TransactionPostingEntries>}
153
153
  * @memberof ChargeResponse
154
154
  */
155
- transactionPostingEntries: Array<ProductTransactionPostingEntries>;
155
+ transactionPostingEntries: Array<TransactionPostingEntries>;
156
156
  /**
157
157
  * Custom fields on the invoice
158
158
  * @type {object}
@@ -220,7 +220,7 @@ export function ChargeResponseFromJSONTyped(json: any, ignoreDiscriminator: bool
220
220
  'revenueRuleId': json['revenueRuleId'],
221
221
  'recognitionStartDate': json['recognitionStartDate'],
222
222
  'recognitionEndDate': json['recognitionEndDate'],
223
- 'transactionPostingEntries': ((json['transactionPostingEntries'] as Array<any>).map(ProductTransactionPostingEntriesFromJSON)),
223
+ 'transactionPostingEntries': ((json['transactionPostingEntries'] as Array<any>).map(TransactionPostingEntriesFromJSON)),
224
224
  'customFields': json['customFields'],
225
225
  };
226
226
  }
@@ -256,7 +256,7 @@ export function ChargeResponseToJSONTyped(value?: ChargeResponse | null, ignoreD
256
256
  'revenueRuleId': value['revenueRuleId'],
257
257
  'recognitionStartDate': value['recognitionStartDate'],
258
258
  'recognitionEndDate': value['recognitionEndDate'],
259
- 'transactionPostingEntries': ((value['transactionPostingEntries'] as Array<any>).map(ProductTransactionPostingEntriesToJSON)),
259
+ 'transactionPostingEntries': ((value['transactionPostingEntries'] as Array<any>).map(TransactionPostingEntriesToJSON)),
260
260
  'customFields': value['customFields'],
261
261
  };
262
262
  }
@@ -13,13 +13,13 @@
13
13
  */
14
14
 
15
15
  import { mapValues } from '../runtime';
16
- import type { ProductTransactionPostingEntries } from './product-transaction-posting-entries';
16
+ import type { TransactionPostingEntries } from './transaction-posting-entries';
17
17
  import {
18
- ProductTransactionPostingEntriesFromJSON,
19
- ProductTransactionPostingEntriesFromJSONTyped,
20
- ProductTransactionPostingEntriesToJSON,
21
- ProductTransactionPostingEntriesToJSONTyped,
22
- } from './product-transaction-posting-entries';
18
+ TransactionPostingEntriesFromJSON,
19
+ TransactionPostingEntriesFromJSONTyped,
20
+ TransactionPostingEntriesToJSON,
21
+ TransactionPostingEntriesToJSONTyped,
22
+ } from './transaction-posting-entries';
23
23
 
24
24
  /**
25
25
  *
@@ -143,10 +143,10 @@ export interface CreatePlanCharge {
143
143
  recognitionEndDate: string;
144
144
  /**
145
145
  * Product transaction posting entries
146
- * @type {Array<ProductTransactionPostingEntries>}
146
+ * @type {Array<TransactionPostingEntries>}
147
147
  * @memberof CreatePlanCharge
148
148
  */
149
- transactionPostingEntries: Array<ProductTransactionPostingEntries>;
149
+ transactionPostingEntries: Array<TransactionPostingEntries>;
150
150
  }
151
151
 
152
152
  /**
@@ -205,7 +205,7 @@ export function CreatePlanChargeFromJSONTyped(json: any, ignoreDiscriminator: bo
205
205
  'revenueRuleId': json['revenueRuleId'],
206
206
  'recognitionStartDate': json['recognitionStartDate'],
207
207
  'recognitionEndDate': json['recognitionEndDate'],
208
- 'transactionPostingEntries': ((json['transactionPostingEntries'] as Array<any>).map(ProductTransactionPostingEntriesFromJSON)),
208
+ 'transactionPostingEntries': ((json['transactionPostingEntries'] as Array<any>).map(TransactionPostingEntriesFromJSON)),
209
209
  };
210
210
  }
211
211
 
@@ -239,7 +239,7 @@ export function CreatePlanChargeToJSONTyped(value?: CreatePlanCharge | null, ign
239
239
  'revenueRuleId': value['revenueRuleId'],
240
240
  'recognitionStartDate': value['recognitionStartDate'],
241
241
  'recognitionEndDate': value['recognitionEndDate'],
242
- 'transactionPostingEntries': ((value['transactionPostingEntries'] as Array<any>).map(ProductTransactionPostingEntriesToJSON)),
242
+ 'transactionPostingEntries': ((value['transactionPostingEntries'] as Array<any>).map(TransactionPostingEntriesToJSON)),
243
243
  };
244
244
  }
245
245
 
@@ -28,7 +28,7 @@ import {
28
28
  */
29
29
  export interface CreateProductCustom {
30
30
  /**
31
- * The product name the asset is associated with
31
+ * The product name
32
32
  * @type {string}
33
33
  * @memberof CreateProductCustom
34
34
  */
@@ -58,17 +58,59 @@ export interface CreateProductCustom {
58
58
  */
59
59
  revenueRuleId: string;
60
60
  /**
61
- * Recognition start date.
61
+ * Date revenue will begin to be recognized.
62
62
  * @type {string}
63
63
  * @memberof CreateProductCustom
64
64
  */
65
65
  recognitionStartDate: string;
66
66
  /**
67
- * Recognition end date.
67
+ * Date revenue will end to be recognized.
68
68
  * @type {string}
69
69
  * @memberof CreateProductCustom
70
70
  */
71
71
  recognitionEndDate: string;
72
+ /**
73
+ * Stock keeping unit
74
+ * @type {string}
75
+ * @memberof CreateProductCustom
76
+ */
77
+ sku?: string;
78
+ /**
79
+ * Product status
80
+ * @type {string}
81
+ * @memberof CreateProductCustom
82
+ */
83
+ status?: string;
84
+ /**
85
+ * Description of product
86
+ * @type {string}
87
+ * @memberof CreateProductCustom
88
+ */
89
+ description?: string;
90
+ /**
91
+ * Currency
92
+ * @type {string}
93
+ * @memberof CreateProductCustom
94
+ */
95
+ currency?: string;
96
+ /**
97
+ * Show revenue schedules
98
+ * @type {boolean}
99
+ * @memberof CreateProductCustom
100
+ */
101
+ showRevenueSchedules?: boolean;
102
+ /**
103
+ * List of custom fields
104
+ * @type {object}
105
+ * @memberof CreateProductCustom
106
+ */
107
+ customFields?: object;
108
+ /**
109
+ * Code of Chart of Account
110
+ * @type {string}
111
+ * @memberof CreateProductCustom
112
+ */
113
+ incomeAccount?: string;
72
114
  }
73
115
 
74
116
  /**
@@ -101,6 +143,13 @@ export function CreateProductCustomFromJSONTyped(json: any, ignoreDiscriminator:
101
143
  'revenueRuleId': json['revenueRuleId'],
102
144
  'recognitionStartDate': json['recognitionStartDate'],
103
145
  'recognitionEndDate': json['recognitionEndDate'],
146
+ 'sku': json['sku'] == null ? undefined : json['sku'],
147
+ 'status': json['status'] == null ? undefined : json['status'],
148
+ 'description': json['description'] == null ? undefined : json['description'],
149
+ 'currency': json['currency'] == null ? undefined : json['currency'],
150
+ 'showRevenueSchedules': json['showRevenueSchedules'] == null ? undefined : json['showRevenueSchedules'],
151
+ 'customFields': json['customFields'] == null ? undefined : json['customFields'],
152
+ 'incomeAccount': json['incomeAccount'] == null ? undefined : json['incomeAccount'],
104
153
  };
105
154
  }
106
155
 
@@ -122,6 +171,13 @@ export function CreateProductCustomToJSONTyped(value?: CreateProductCustom | nul
122
171
  'revenueRuleId': value['revenueRuleId'],
123
172
  'recognitionStartDate': value['recognitionStartDate'],
124
173
  'recognitionEndDate': value['recognitionEndDate'],
174
+ 'sku': value['sku'],
175
+ 'status': value['status'],
176
+ 'description': value['description'],
177
+ 'currency': value['currency'],
178
+ 'showRevenueSchedules': value['showRevenueSchedules'],
179
+ 'customFields': value['customFields'],
180
+ 'incomeAccount': value['incomeAccount'],
125
181
  };
126
182
  }
127
183
 
@@ -20,7 +20,7 @@ import { mapValues } from '../runtime';
20
20
  */
21
21
  export interface CreateProduct {
22
22
  /**
23
- * The product name the asset is associated with
23
+ * The product name
24
24
  * @type {string}
25
25
  * @memberof CreateProduct
26
26
  */
@@ -13,13 +13,6 @@
13
13
  */
14
14
 
15
15
  import { mapValues } from '../runtime';
16
- import type { ProductBillingResponse } from './product-billing-response';
17
- import {
18
- ProductBillingResponseFromJSON,
19
- ProductBillingResponseFromJSONTyped,
20
- ProductBillingResponseToJSON,
21
- ProductBillingResponseToJSONTyped,
22
- } from './product-billing-response';
23
16
  import type { PageMeta } from './page-meta';
24
17
  import {
25
18
  PageMetaFromJSON,
@@ -27,6 +20,13 @@ import {
27
20
  PageMetaToJSON,
28
21
  PageMetaToJSONTyped,
29
22
  } from './page-meta';
23
+ import type { ProductCustomResponse } from './product-custom-response';
24
+ import {
25
+ ProductCustomResponseFromJSON,
26
+ ProductCustomResponseFromJSONTyped,
27
+ ProductCustomResponseToJSON,
28
+ ProductCustomResponseToJSONTyped,
29
+ } from './product-custom-response';
30
30
 
31
31
  /**
32
32
  *
@@ -42,10 +42,10 @@ export interface GetProducts200Response {
42
42
  pageMeta: PageMeta;
43
43
  /**
44
44
  *
45
- * @type {Array<ProductBillingResponse>}
45
+ * @type {Array<ProductCustomResponse>}
46
46
  * @memberof GetProducts200Response
47
47
  */
48
- results?: Array<ProductBillingResponse>;
48
+ results?: Array<ProductCustomResponse>;
49
49
  }
50
50
 
51
51
  /**
@@ -67,7 +67,7 @@ export function GetProducts200ResponseFromJSONTyped(json: any, ignoreDiscriminat
67
67
  return {
68
68
 
69
69
  'pageMeta': PageMetaFromJSON(json['pageMeta']),
70
- 'results': json['results'] == null ? undefined : ((json['results'] as Array<any>).map(ProductBillingResponseFromJSON)),
70
+ 'results': json['results'] == null ? undefined : ((json['results'] as Array<any>).map(ProductCustomResponseFromJSON)),
71
71
  };
72
72
  }
73
73
 
@@ -83,7 +83,7 @@ export function GetProducts200ResponseToJSONTyped(value?: GetProducts200Response
83
83
  return {
84
84
 
85
85
  'pageMeta': PageMetaToJSON(value['pageMeta']),
86
- 'results': value['results'] == null ? undefined : ((value['results'] as Array<any>).map(ProductBillingResponseToJSON)),
86
+ 'results': value['results'] == null ? undefined : ((value['results'] as Array<any>).map(ProductCustomResponseToJSON)),
87
87
  };
88
88
  }
89
89
 
@@ -99,6 +99,7 @@ export * from './get-payment-runs200-response';
99
99
  export * from './get-payments200-response';
100
100
  export * from './get-plans200-response';
101
101
  export * from './get-plugins200-response';
102
+ export * from './get-products200-response';
102
103
  export * from './get-revenue-rules200-response';
103
104
  export * from './get-sites200-response';
104
105
  export * from './get-statements200-response';
@@ -137,9 +138,9 @@ export * from './plugin-extensibility-function-metadata-response';
137
138
  export * from './plugin-extensibility-status';
138
139
  export * from './plugin-response';
139
140
  export * from './plugin-version-response';
141
+ export * from './product-custom-response';
140
142
  export * from './product-response';
141
143
  export * from './product-status';
142
- export * from './product-transaction-posting-entries';
143
144
  export * from './project-response';
144
145
  export * from './project-response1';
145
146
  export * from './project-version-response';
@@ -13,13 +13,13 @@
13
13
  */
14
14
 
15
15
  import { mapValues } from '../runtime';
16
- import type { ProductTransactionPostingEntries } from './product-transaction-posting-entries';
16
+ import type { TransactionPostingEntries } from './transaction-posting-entries';
17
17
  import {
18
- ProductTransactionPostingEntriesFromJSON,
19
- ProductTransactionPostingEntriesFromJSONTyped,
20
- ProductTransactionPostingEntriesToJSON,
21
- ProductTransactionPostingEntriesToJSONTyped,
22
- } from './product-transaction-posting-entries';
18
+ TransactionPostingEntriesFromJSON,
19
+ TransactionPostingEntriesFromJSONTyped,
20
+ TransactionPostingEntriesToJSON,
21
+ TransactionPostingEntriesToJSONTyped,
22
+ } from './transaction-posting-entries';
23
23
 
24
24
  /**
25
25
  *
@@ -155,10 +155,10 @@ export interface PlanChargeResponse {
155
155
  recognitionEndDate: string;
156
156
  /**
157
157
  * Product transaction posting entries
158
- * @type {Array<ProductTransactionPostingEntries>}
158
+ * @type {Array<TransactionPostingEntries>}
159
159
  * @memberof PlanChargeResponse
160
160
  */
161
- transactionPostingEntries: Array<ProductTransactionPostingEntries>;
161
+ transactionPostingEntries: Array<TransactionPostingEntries>;
162
162
  /**
163
163
  * Custom fields on the invoice
164
164
  * @type {object}
@@ -228,7 +228,7 @@ export function PlanChargeResponseFromJSONTyped(json: any, ignoreDiscriminator:
228
228
  'revenueRuleId': json['revenueRuleId'],
229
229
  'recognitionStartDate': json['recognitionStartDate'],
230
230
  'recognitionEndDate': json['recognitionEndDate'],
231
- 'transactionPostingEntries': ((json['transactionPostingEntries'] as Array<any>).map(ProductTransactionPostingEntriesFromJSON)),
231
+ 'transactionPostingEntries': ((json['transactionPostingEntries'] as Array<any>).map(TransactionPostingEntriesFromJSON)),
232
232
  'customFields': json['customFields'],
233
233
  };
234
234
  }
@@ -265,7 +265,7 @@ export function PlanChargeResponseToJSONTyped(value?: PlanChargeResponse | null,
265
265
  'revenueRuleId': value['revenueRuleId'],
266
266
  'recognitionStartDate': value['recognitionStartDate'],
267
267
  'recognitionEndDate': value['recognitionEndDate'],
268
- 'transactionPostingEntries': ((value['transactionPostingEntries'] as Array<any>).map(ProductTransactionPostingEntriesToJSON)),
268
+ 'transactionPostingEntries': ((value['transactionPostingEntries'] as Array<any>).map(TransactionPostingEntriesToJSON)),
269
269
  'customFields': value['customFields'],
270
270
  };
271
271
  }