diff --git a/lago_python_client/models/wallet.py b/lago_python_client/models/wallet.py index e80ed11e..4528586c 100644 --- a/lago_python_client/models/wallet.py +++ b/lago_python_client/models/wallet.py @@ -1,4 +1,4 @@ -from typing import List, Optional +from typing import List, Optional, Dict from lago_python_client.base_model import BaseModel @@ -15,6 +15,7 @@ class RecurringTransactionRule(BaseModel): granted_credits: Optional[str] started_at: Optional[str] target_ongoing_balance: Optional[str] + transaction_metadata: Optional[List[Dict[str, str]]] class RecurringTransactionRuleResponse(BaseModel): @@ -28,6 +29,7 @@ class RecurringTransactionRuleResponse(BaseModel): started_at: Optional[str] target_ongoing_balance: Optional[str] created_at: Optional[str] + transaction_metadata: Optional[List[Dict[str, str]]] class RecurringTransactionRuleList(BaseModel): @@ -47,6 +49,7 @@ class Wallet(BaseModel): expiration_at: Optional[str] currency: Optional[str] recurring_transaction_rules: Optional[RecurringTransactionRuleList] + transaction_metadata: Optional[List[Dict[str, str]]] class WalletResponse(BaseResponseModel): diff --git a/lago_python_client/models/wallet_transaction.py b/lago_python_client/models/wallet_transaction.py index 49f1c288..44357116 100644 --- a/lago_python_client/models/wallet_transaction.py +++ b/lago_python_client/models/wallet_transaction.py @@ -1,4 +1,4 @@ -from typing import Optional +from typing import Optional, List, Dict from lago_python_client.base_model import BaseModel @@ -10,15 +10,18 @@ class WalletTransaction(BaseModel): paid_credits: Optional[str] granted_credits: Optional[str] voided_credits: Optional[str] + metadata: Optional[List[Dict[str, str]]] class WalletTransactionResponse(BaseResponseModel): lago_id: str lago_wallet_id: str status: str + source: str transaction_status: str transaction_type: str amount: str credit_amount: str settled_at: Optional[str] created_at: str + metadata: Optional[List[Dict[str, str]]] diff --git a/tests/fixtures/wallet_transaction.json b/tests/fixtures/wallet_transaction.json index 2964efc0..a4ea8a48 100644 --- a/tests/fixtures/wallet_transaction.json +++ b/tests/fixtures/wallet_transaction.json @@ -4,6 +4,7 @@ "lago_id": "b7ab2926-1de8-4428-9bcd-779314ac1111", "lago_wallet_id": "12345", "status": "settled", + "source": "manual", "transaction_status": "purchased", "transaction_type": "inbound", "amount": "10", @@ -15,6 +16,7 @@ "lago_id": "b7ab2926-1de8-4428-9bcd-779314ac1222", "lago_wallet_id": "12345", "status": "settled", + "source": "manual", "transaction_status": "purchased", "transaction_type": "inbound", "amount": "10", diff --git a/tests/fixtures/wallet_transaction_index.json b/tests/fixtures/wallet_transaction_index.json index e80d146e..3cf249b9 100644 --- a/tests/fixtures/wallet_transaction_index.json +++ b/tests/fixtures/wallet_transaction_index.json @@ -4,6 +4,7 @@ "lago_id": "b7ab2926-1de8-4428-9bcd-779314ac1111", "lago_wallet_id": "12345", "status": "settled", + "source": "manual", "transaction_status": "purchased", "transaction_type": "inbound", "amount": "10", @@ -15,6 +16,7 @@ "lago_id": "b7ab2926-1de8-4428-9bcd-779314ac1222", "lago_wallet_id": "12345", "status": "settled", + "source": "manual", "transaction_status": "purchased", "transaction_type": "inbound", "amount": "10",