Skip to content

Commit

Permalink
feat(wallet): Add voided_credits to WalletTransaction
Browse files Browse the repository at this point in the history
  • Loading branch information
rsempe committed Apr 29, 2024
1 parent e08246b commit c3617e2
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
6 changes: 2 additions & 4 deletions Gemfile.lock
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
PATH
remote: .
specs:
lago-ruby-client (1.1.0)
lago-ruby-client (1.2.0)
jwt
openssl

Expand All @@ -16,7 +16,6 @@ GEM
addressable (2.8.1)
public_suffix (>= 2.0.2, < 6.0)
ast (2.4.2)
base64 (0.2.0)
concurrent-ruby (1.2.2)
crack (0.4.5)
rexml
Expand All @@ -32,8 +31,7 @@ GEM
io-console (0.6.0)
irb (1.6.3)
reline (>= 0.3.0)
jwt (2.8.1)
base64
jwt (2.7.1)
minitest (5.19.0)
openssl (3.2.0)
parallel (1.22.1)
Expand Down
3 changes: 2 additions & 1 deletion lib/lago/api/resources/wallet_transaction.rb
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,8 @@ def whitelist_params(params)
'wallet_transaction' => {
wallet_id: params[:wallet_id],
paid_credits: params[:paid_credits],
granted_credits: params[:granted_credits]
granted_credits: params[:granted_credits],
voided_credits: params[:voided_credits]
}.compact
}
end
Expand Down
1 change: 1 addition & 0 deletions spec/factories/wallet_transaction.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,6 @@
wallet_id { '123' }
paid_credits { '100' }
granted_credits { '100' }
voided_credits { '0' }
end
end

0 comments on commit c3617e2

Please sign in to comment.