Skip to content

Commit

Permalink
feat(fee): Expose charge_id in REST API (#280)
Browse files Browse the repository at this point in the history
  • Loading branch information
vincent-pochet authored Oct 18, 2024
1 parent 273068a commit b5c9c93
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions lago_python_client/models/fee.py
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down
1 change: 1 addition & 0 deletions tests/fixtures/fee.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down
1 change: 1 addition & 0 deletions tests/fixtures/fees.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
1 change: 1 addition & 0 deletions tests/fixtures/invoice.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit b5c9c93

Please sign in to comment.