diff --git a/lib/lago/api/resources/wallet.rb b/lib/lago/api/resources/wallet.rb index 73d3089..eb5d175 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], + invoice_requires_successful_payment: params[:invoice_requires_successful_payment], }.compact recurring_rules = whitelist_recurring_rules(params[:recurring_transaction_rules]) @@ -38,6 +39,7 @@ def whitelist_recurring_rules(rules) :paid_credits, :granted_credits, :threshold_credits, + :invoice_requires_successful_payment, :trigger, :interval, :method, diff --git a/lib/lago/api/resources/wallet_transaction.rb b/lib/lago/api/resources/wallet_transaction.rb index 101c0c0..78fd52f 100644 --- a/lib/lago/api/resources/wallet_transaction.rb +++ b/lib/lago/api/resources/wallet_transaction.rb @@ -25,7 +25,8 @@ def whitelist_params(params) wallet_id: params[:wallet_id], paid_credits: params[:paid_credits], granted_credits: params[:granted_credits], - voided_credits: params[:voided_credits] + voided_credits: params[:voided_credits], + invoice_requires_successful_payment: params[:invoice_requires_successful_payment], }.compact } end