Skip to content

Commit

Permalink
feat: add metadata to wallet transaction
Browse files Browse the repository at this point in the history
  • Loading branch information
brunomiguelpinto committed Aug 16, 2024
1 parent 9634444 commit 70d596c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/lago/api/resources/wallet.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand All @@ -45,6 +46,7 @@ def whitelist_recurring_rules(rules)
:method,
:started_at,
:target_ongoing_balance,
:transaction_metadata
)

processed_rules << result unless result.empty?
Expand Down
1 change: 1 addition & 0 deletions lib/lago/api/resources/wallet_transaction.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 70d596c

Please sign in to comment.