@vulog/aima-pricing 1.0.0 → 1.0.2

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/dist/index.d.mts CHANGED
@@ -25,8 +25,8 @@ type PricingParameters = {
25
25
  type Pricing = {
26
26
  pricingId: string;
27
27
  pricingParameters?: Partial<PricingParameters>;
28
- taxRates: PricingTaxRate[];
29
- plans: PricingPlan[];
28
+ taxRates?: PricingTaxRate[];
29
+ plans?: PricingPlan[];
30
30
  taxIncluded: boolean;
31
31
  [key: string]: any;
32
32
  };
package/dist/index.d.ts CHANGED
@@ -25,8 +25,8 @@ type PricingParameters = {
25
25
  type Pricing = {
26
26
  pricingId: string;
27
27
  pricingParameters?: Partial<PricingParameters>;
28
- taxRates: PricingTaxRate[];
29
- plans: PricingPlan[];
28
+ taxRates?: PricingTaxRate[];
29
+ plans?: PricingPlan[];
30
30
  taxIncluded: boolean;
31
31
  [key: string]: any;
32
32
  };
package/dist/index.js CHANGED
@@ -26,7 +26,7 @@ module.exports = __toCommonJS(src_exports);
26
26
 
27
27
  // src/getPricingById.ts
28
28
  var getPricingById = async (client, id) => {
29
- return client.get(`/boapi/proxy/user/fleets/${client.clientOptions.fleetId}/products/${id}`).then(({ data }) => data);
29
+ return client.get(`/boapi/proxy/user/fleets/${client.clientOptions.fleetId}/pricing/${id}`).then(({ data }) => data);
30
30
  };
31
31
  // Annotate the CommonJS export names for ESM import in node:
32
32
  0 && (module.exports = {
package/dist/index.mjs CHANGED
@@ -1,6 +1,6 @@
1
1
  // src/getPricingById.ts
2
2
  var getPricingById = async (client, id) => {
3
- return client.get(`/boapi/proxy/user/fleets/${client.clientOptions.fleetId}/products/${id}`).then(({ data }) => data);
3
+ return client.get(`/boapi/proxy/user/fleets/${client.clientOptions.fleetId}/pricing/${id}`).then(({ data }) => data);
4
4
  };
5
5
  export {
6
6
  getPricingById
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vulog/aima-pricing",
3
- "version": "1.0.0",
3
+ "version": "1.0.2",
4
4
  "main": "dist/index.js",
5
5
  "module": "dist/index.mjs",
6
6
  "types": "dist/index.d.ts",
@@ -4,6 +4,6 @@ import { Pricing } from './types';
4
4
 
5
5
  export const getPricingById = async (client: Client, id: string): Promise<Pricing> => {
6
6
  return client
7
- .get<Pricing>(`/boapi/proxy/user/fleets/${client.clientOptions.fleetId}/products/${id}`)
7
+ .get<Pricing>(`/boapi/proxy/user/fleets/${client.clientOptions.fleetId}/pricing/${id}`)
8
8
  .then(({ data }) => data);
9
9
  };
package/src/types.ts CHANGED
@@ -23,8 +23,8 @@ export type PricingParameters = {
23
23
  export type Pricing = {
24
24
  pricingId: string;
25
25
  pricingParameters?: Partial<PricingParameters>;
26
- taxRates: PricingTaxRate[];
27
- plans: PricingPlan[];
26
+ taxRates?: PricingTaxRate[];
27
+ plans?: PricingPlan[];
28
28
  taxIncluded: boolean;
29
29
  [key: string]: any;
30
30
  };