Skip to content

Commit

Permalink
chore(pricing-client): add additional props for external prices api s…
Browse files Browse the repository at this point in the history
…pec + bump version client
  • Loading branch information
alexmarqs committed Oct 30, 2024
1 parent ef09c49 commit 754fefa
Show file tree
Hide file tree
Showing 4 changed files with 109 additions and 5 deletions.
4 changes: 2 additions & 2 deletions clients/pricing-client/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion clients/pricing-client/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@epilot/pricing-client",
"version": "3.35.5",
"version": "3.35.6",
"description": "Client for epilot Pricing APIs",
"main": "dist/index.js",
"types": "dist/index.d.ts",
Expand Down
44 changes: 43 additions & 1 deletion clients/pricing-client/src/openapi.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2307,7 +2307,9 @@ declare namespace Components {
* example:
* {
* "is_recommended": true,
* "recommended_label": "Best Value"
* "recommended_label": "Best Value",
* "recommended_color": "#00FF00",
* "recommended_label_color": "#FFFFFF"
* }
*/
recommendation_settings?: {
Expand All @@ -2319,6 +2321,14 @@ declare namespace Components {
* Label to display when the product is recommended.
*/
recommended_label?: string;
/**
* Color to display when the product is recommended.
*/
recommended_color?: string;
/**
* Color of the recommended label.
*/
recommended_label_color?: string;
};
price: ExternalSimplePrice | ExternalCompositePrice;
}
Expand Down Expand Up @@ -2405,6 +2415,38 @@ declare namespace Components {
*/
type: "one_time" | "recurring";
billing_period?: BillingPeriod;
/**
* The billing period duration
*/
billing_duration_amount?: number;
/**
* The billing period duration unit
*/
billing_duration_unit?: "weeks" | "months" | "years";
/**
* The notice period duration
*/
notice_time_amount?: number;
/**
* The notice period duration unit
*/
notice_time_unit?: "weeks" | "months" | "years";
/**
* The termination period duration
*/
termination_time_amount?: number;
/**
* The termination period duration unit
*/
termination_time_unit?: "weeks" | "months" | "years";
/**
* The renewal period duration
*/
renewal_duration_amount?: number;
/**
* The renewal period duration unit
*/
renewal_duration_unit?: "weeks" | "months" | "years";
/**
* The unit gross amount value, as a string with all the decimal places.
* example:
Expand Down
64 changes: 63 additions & 1 deletion clients/pricing-client/src/openapi.json
Original file line number Diff line number Diff line change
Expand Up @@ -5377,11 +5377,21 @@
"recommended_label": {
"type": "string",
"description": "Label to display when the product is recommended."
},
"recommended_color": {
"type": "string",
"description": "Color to display when the product is recommended."
},
"recommended_label_color": {
"type": "string",
"description": "Color of the recommended label."
}
},
"example": {
"is_recommended": true,
"recommended_label": "Best Value"
"recommended_label": "Best Value",
"recommended_color": "#00FF00",
"recommended_label_color": "#FFFFFF"
}
},
"price": {
Expand Down Expand Up @@ -5523,6 +5533,58 @@
"$ref": "#/components/schemas/BillingPeriod",
"description": "The billing period of the price."
},
"billing_duration_amount": {
"description": "The billing period duration",
"type": "number"
},
"billing_duration_unit": {
"description": "The billing period duration unit",
"type": "string",
"enum": [
"weeks",
"months",
"years"
]
},
"notice_time_amount": {
"description": "The notice period duration",
"type": "number"
},
"notice_time_unit": {
"description": "The notice period duration unit",
"type": "string",
"enum": [
"weeks",
"months",
"years"
]
},
"termination_time_amount": {
"description": "The termination period duration",
"type": "number"
},
"termination_time_unit": {
"description": "The termination period duration unit",
"type": "string",
"enum": [
"weeks",
"months",
"years"
]
},
"renewal_duration_amount": {
"description": "The renewal period duration",
"type": "number"
},
"renewal_duration_unit": {
"description": "The renewal period duration unit",
"type": "string",
"enum": [
"weeks",
"months",
"years"
]
},
"unit_amount_gross_decimal": {
"type": "string",
"example": "1.19",
Expand Down

0 comments on commit 754fefa

Please sign in to comment.