diff --git a/openapi.yaml b/openapi.yaml index e19101c..b5c12fb 100644 --- a/openapi.yaml +++ b/openapi.yaml @@ -3380,7 +3380,7 @@ components: - billable_metric properties: billable_metric: - $ref: '#/components/schemas/BillableMetricObjectExtended' + $ref: '#/components/schemas/BillableMetricObject' BillableMetricObject: type: object required: @@ -3390,9 +3390,6 @@ components: - aggregation_type - recurring - created_at - - active_subscriptions_count - - draft_invoices_count - - plans_count properties: lago_id: type: string @@ -3471,38 +3468,6 @@ components: type: array items: $ref: '#/components/schemas/BillableMetricFilterObject' - active_subscriptions_count: - type: integer - example: 4 - description: Number of active subscriptions using this billable metric. - deprecated: true - draft_invoices_count: - type: integer - example: 10 - description: Number of draft invoices for which this billable metric is listed as an invoice item. - deprecated: true - plans_count: - type: integer - example: 4 - description: Number of plans using this billable metric. - deprecated: true - BillableMetricObjectExtended: - allOf: - - $ref: '#/components/schemas/BillableMetricObject' - - type: object - properties: - active_subscriptions_count: - type: integer - example: 4 - description: Number of active subscriptions using this billable metric. - draft_invoices_count: - type: integer - example: 10 - description: Number of draft invoices for which this billable metric is listed as an invoice item. - plans_count: - type: integer - example: 4 - description: Number of plans using this billable metric. BillableMetricBaseInput: type: object properties: @@ -8190,8 +8155,6 @@ components: - interval - amount_cents - amount_currency - - active_subscriptions_count - - draft_invoices_count properties: lago_id: type: string @@ -8249,14 +8212,6 @@ components: nullable: true description: 'This field, when set to `true`, enables to invoice usage-based charges on monthly basis, even if the cadence of the plan is yearly. This allows customers to pay charges overage on a monthly basis. This can be set to true only if the plan''s interval is `yearly`.' example: null - active_subscriptions_count: - type: integer - description: 'The count of active subscriptions that are currently associated with the plan. This field provides valuable information regarding the impact of deleting the plan. By checking the value of this field, you can determine the number of subscriptions that will be affected if the plan is deleted.' - example: 0 - draft_invoices_count: - type: integer - description: 'The number of draft invoices that include a subscription attached to the plan. This field provides valuable information about the impact of deleting the plan. By checking the value of this field, you can determine the number of draft invoices that will be affected if the plan is deleted.' - example: 0 minimum_commitment: $ref: '#/components/schemas/MinimumCommitmentObject' charges: @@ -8719,22 +8674,6 @@ components: type: boolean description: Set to `true` if the tax is used as one of the organization's default example: true - add_ons_count: - type: integer - description: Number of add-ons this tax is applied to. - example: 0 - charges_count: - type: integer - description: Number of charges this tax is applied to. - example: 0 - customers_count: - type: integer - description: Number of customers this tax is applied to (directly or via the organization's default). - example: 0 - plans_count: - type: integer - description: Number of plans this tax is applied to. - example: 0 created_at: type: string format: date-time diff --git a/src/schemas/BillableMetric.yaml b/src/schemas/BillableMetric.yaml index f193608..f1b6773 100644 --- a/src/schemas/BillableMetric.yaml +++ b/src/schemas/BillableMetric.yaml @@ -3,4 +3,4 @@ required: - billable_metric properties: billable_metric: - $ref: "./BillableMetricObjectExtended.yaml" + $ref: "./BillableMetricObject.yaml" diff --git a/src/schemas/BillableMetricObject.yaml b/src/schemas/BillableMetricObject.yaml index 2170254..ef37da6 100644 --- a/src/schemas/BillableMetricObject.yaml +++ b/src/schemas/BillableMetricObject.yaml @@ -6,9 +6,6 @@ required: - aggregation_type - recurring - created_at - - active_subscriptions_count - - draft_invoices_count - - plans_count properties: lago_id: type: string @@ -87,18 +84,3 @@ properties: type: array items: $ref: "./BillableMetricFilterObject.yaml" - active_subscriptions_count: - type: integer - example: 4 - description: "Number of active subscriptions using this billable metric." - deprecated: true - draft_invoices_count: - type: integer - example: 10 - description: "Number of draft invoices for which this billable metric is listed as an invoice item." - deprecated: true - plans_count: - type: integer - example: 4 - description: "Number of plans using this billable metric." - deprecated: true diff --git a/src/schemas/BillableMetricObjectExtended.yaml b/src/schemas/BillableMetricObjectExtended.yaml deleted file mode 100644 index 8643baa..0000000 --- a/src/schemas/BillableMetricObjectExtended.yaml +++ /dev/null @@ -1,16 +0,0 @@ -allOf: - - $ref: "./BillableMetricObject.yaml" - - type: object - properties: - active_subscriptions_count: - type: integer - example: 4 - description: "Number of active subscriptions using this billable metric." - draft_invoices_count: - type: integer - example: 10 - description: "Number of draft invoices for which this billable metric is listed as an invoice item." - plans_count: - type: integer - example: 4 - description: "Number of plans using this billable metric." diff --git a/src/schemas/PlanObject.yaml b/src/schemas/PlanObject.yaml index 5937481..5ab4c5b 100644 --- a/src/schemas/PlanObject.yaml +++ b/src/schemas/PlanObject.yaml @@ -7,8 +7,6 @@ required: - interval - amount_cents - amount_currency - - active_subscriptions_count - - draft_invoices_count properties: lago_id: type: string @@ -66,14 +64,6 @@ properties: nullable: true description: This field, when set to `true`, enables to invoice usage-based charges on monthly basis, even if the cadence of the plan is yearly. This allows customers to pay charges overage on a monthly basis. This can be set to true only if the plan's interval is `yearly`. example: null - active_subscriptions_count: - type: integer - description: The count of active subscriptions that are currently associated with the plan. This field provides valuable information regarding the impact of deleting the plan. By checking the value of this field, you can determine the number of subscriptions that will be affected if the plan is deleted. - example: 0 - draft_invoices_count: - type: integer - description: The number of draft invoices that include a subscription attached to the plan. This field provides valuable information about the impact of deleting the plan. By checking the value of this field, you can determine the number of draft invoices that will be affected if the plan is deleted. - example: 0 minimum_commitment: $ref: "./MinimumCommitmentObject.yaml" charges: diff --git a/src/schemas/TaxObject.yaml b/src/schemas/TaxObject.yaml index 295afed..2fc031c 100644 --- a/src/schemas/TaxObject.yaml +++ b/src/schemas/TaxObject.yaml @@ -10,21 +10,21 @@ required: properties: lago_id: type: string - format: 'uuid' + format: "uuid" description: Unique identifier of the tax, created by Lago. - example: '1a901a90-1a90-1a90-1a90-1a901a901a90' + example: "1a901a90-1a90-1a90-1a90-1a901a901a90" name: type: string description: Name of the tax. - example: 'TVA' + example: "TVA" code: type: string description: Unique code used to identify the tax associated with the API request. - example: 'french_standard_vat' + example: "french_standard_vat" description: type: string description: Internal description of the taxe - example: 'French standard VAT' + example: "French standard VAT" rate: type: number description: The percentage rate of the tax @@ -33,24 +33,8 @@ properties: type: boolean description: Set to `true` if the tax is used as one of the organization's default example: true - add_ons_count: - type: integer - description: Number of add-ons this tax is applied to. - example: 0 - charges_count: - type: integer - description: Number of charges this tax is applied to. - example: 0 - customers_count: - type: integer - description: Number of customers this tax is applied to (directly or via the organization's default). - example: 0 - plans_count: - type: integer - description: Number of plans this tax is applied to. - example: 0 created_at: type: string - format: 'date-time' + format: "date-time" description: Creation date of the tax. - example: '2023-07-06T14:35:58Z' + example: "2023-07-06T14:35:58Z" diff --git a/src/schemas/_index.yaml b/src/schemas/_index.yaml index 9472fc7..c97e3d4 100644 --- a/src/schemas/_index.yaml +++ b/src/schemas/_index.yaml @@ -40,8 +40,6 @@ BillableMetric: $ref: "./BillableMetric.yaml" BillableMetricObject: $ref: "./BillableMetricObject.yaml" -BillableMetricObjectExtended: - $ref: "./BillableMetricObjectExtended.yaml" BillableMetricBaseInput: $ref: "./BillableMetricBaseInput.yaml" BillableMetricCreateInput: