Skip to content

Commit

Permalink
feat: add invoice require successful payment field
Browse files Browse the repository at this point in the history
  • Loading branch information
brunomiguelpinto committed Aug 2, 2024
1 parent d1e5655 commit 30e4ee1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions lib/lago/api/resources/wallet.rb
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ def whitelist_params(params)
granted_credits: params[:granted_credits],
currency: params[:currency],
expiration_at: params[:expiration_at],
invoice_require_successful_payment: params[:invoice_require_successful_payment],
invoice_requires_successful_payment: params[:invoice_requires_successful_payment],
}.compact

recurring_rules = whitelist_recurring_rules(params[:recurring_transaction_rules])
Expand All @@ -39,7 +39,7 @@ def whitelist_recurring_rules(rules)
:paid_credits,
:granted_credits,
:threshold_credits,
:invoice_require_successful_payment,
:invoice_requires_successful_payment,
:trigger,
:interval,
:method,
Expand Down
2 changes: 1 addition & 1 deletion lib/lago/api/resources/wallet_transaction.rb
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ def whitelist_params(params)
paid_credits: params[:paid_credits],
granted_credits: params[:granted_credits],
voided_credits: params[:voided_credits],
invoice_require_successful_payment: params[:invoice_require_successful_payment],
invoice_requires_successful_payment: params[:invoice_requires_successful_payment],
}.compact
}
end
Expand Down

0 comments on commit 30e4ee1

Please sign in to comment.