Skip to content

Commit

Permalink
Accept nil for transaction balance field
Browse files Browse the repository at this point in the history
  • Loading branch information
raulvillares committed Jun 12, 2024
1 parent a1103fb commit 4ba227d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/devengo/resources/transactions/transaction.rb
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ def self.from_raw(api_response:, **attributes)
super api_response: api_response,
**attributes,
third_party: Shared::ThirdParties::ThirdParty.from_raw(**attributes[:third_party]),
balance: Shared::Money.from_raw(**attributes[:balance]),
balance: Shared::Money.from_raw_nullable(**attributes[:balance]),
amount: Shared::Money.from_raw(**attributes[:amount]),
entity: Entity.from_raw_nullable(attributes[:entity])
end
Expand Down

0 comments on commit 4ba227d

Please sign in to comment.