diff --git a/lib/lago/api/resources/wallet.rb b/lib/lago/api/resources/wallet.rb index eb5d175..d2881b8 100644 --- a/lib/lago/api/resources/wallet.rb +++ b/lib/lago/api/resources/wallet.rb @@ -21,6 +21,7 @@ def whitelist_params(params) granted_credits: params[:granted_credits], currency: params[:currency], expiration_at: params[:expiration_at], + transaction_metadata: params[:transaction_metadata], invoice_requires_successful_payment: params[:invoice_requires_successful_payment], }.compact @@ -45,6 +46,7 @@ def whitelist_recurring_rules(rules) :method, :started_at, :target_ongoing_balance, + :transaction_metadata ) processed_rules << result unless result.empty? diff --git a/lib/lago/api/resources/wallet_transaction.rb b/lib/lago/api/resources/wallet_transaction.rb index 78fd52f..ce838c9 100644 --- a/lib/lago/api/resources/wallet_transaction.rb +++ b/lib/lago/api/resources/wallet_transaction.rb @@ -27,6 +27,7 @@ def whitelist_params(params) granted_credits: params[:granted_credits], voided_credits: params[:voided_credits], invoice_requires_successful_payment: params[:invoice_requires_successful_payment], + metadata: params[:metadata], }.compact } end