From b5c9c93e5d5828f92505492f299608f3785e8a92 Mon Sep 17 00:00:00 2001 From: Vincent Pochet Date: Fri, 18 Oct 2024 10:43:12 +0200 Subject: [PATCH] feat(fee): Expose charge_id in REST API (#280) --- lago_python_client/models/fee.py | 1 + tests/fixtures/fee.json | 1 + tests/fixtures/fees.json | 1 + tests/fixtures/invoice.json | 1 + 4 files changed, 4 insertions(+) diff --git a/lago_python_client/models/fee.py b/lago_python_client/models/fee.py index 448b4da0..78c2c6c0 100644 --- a/lago_python_client/models/fee.py +++ b/lago_python_client/models/fee.py @@ -28,6 +28,7 @@ class FeeAppliedTaxes(BaseResponseModel): class FeeResponse(BaseResponseModel): lago_id: Optional[str] + lago_charge_id: Optional[str] lago_charge_filter_id: Optional[str] lago_invoice_id: Optional[str] lago_true_up_fee_id: Optional[str] diff --git a/tests/fixtures/fee.json b/tests/fixtures/fee.json index 1ca4a7cc..77564e4b 100644 --- a/tests/fixtures/fee.json +++ b/tests/fixtures/fee.json @@ -1,6 +1,7 @@ { "fee": { "lago_id": "5eb02857-a71e-4ea2-bcf9-57d3a41bc6ba", + "lago_charge_id": "1a901a90-1a90-1a90-1a90-1a901a901a90", "lago_charge_filter_id": "1a2d9c8d-5875-4688-9854-5ccfd414bc5e", "lago_invoice_id": "1a2d9c8d-5875-4688-9854-5ccfd414bc5e", "lago_true_up_fee_id": "1a2d9c8d-5875-4688-9854-5ccfd414bc5e", diff --git a/tests/fixtures/fees.json b/tests/fixtures/fees.json index 22fd0a65..c510f3f2 100644 --- a/tests/fixtures/fees.json +++ b/tests/fixtures/fees.json @@ -2,6 +2,7 @@ "fees": [ { "lago_id": "nil", + "lago_charge_id": "1a901a90-1a90-1a90-1a90-1a901a901a90", "lago_charge_filter_id": "1a2d9c8d-5875-4688-9854-5ccfd414bc5e", "lago_invoice_id": "1a2d9c8d-5875-4688-9854-5ccfd414bc5e", "lago_true_up_fee_id": "1a2d9c8d-5875-4688-9854-5ccfd414bc5e", diff --git a/tests/fixtures/invoice.json b/tests/fixtures/invoice.json index 68ea6af5..d12d3599 100644 --- a/tests/fixtures/invoice.json +++ b/tests/fixtures/invoice.json @@ -118,6 +118,7 @@ "fees": [ { "lago_id": "5eb02857-a71e-4ea2-bcf9-57d3a41bc6ba", + "lago_charge_id": "1a901a90-1a90-1a90-1a90-1a901a901a90", "invoice_display_name": "fee_invoice_display_name", "item": { "type": "charge",