Skip to content

Commit

Permalink
rebase with oficial gem and put the variables in the snake case pattern
Browse files Browse the repository at this point in the history
  • Loading branch information
celsoMartins committed May 27, 2021
1 parent fd197be commit 0ff3892
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions lib/pagseguro/transaction/serializer.rb
Original file line number Diff line number Diff line change
Expand Up @@ -72,10 +72,10 @@ def serialize_creditor(data)
intermediation_fee_amount: BigDecimal(xml.css("creditorFees > intermediationFeeAmount").text.to_f.to_s),
installment_fee_amount: BigDecimal(xml.css("creditorFees > installmentFeeAmount").text.to_f.to_s),
}
operationalFeeAmount = xml.css("creditorFees > operationalFeeAmount").text
data[:creditor_fees].merge!(operational_fee_amount: BigDecimal(operationalFeeAmount)) if operationalFeeAmount.present?
commissionFeeAmount = xml.css("creditorFees > commissionFeeAmount").text
data[:creditor_fees].merge!(commission_fee_amount: BigDecimal(commissionFeeAmount)) if commissionFeeAmount.present?
operational_fee_amount = xml.css("creditorFees > operationalFeeAmount").text
data[:creditor_fees].merge!(operational_fee_amount: BigDecimal(operational_fee_amount)) if operational_fee_amount.present?
commission_fee_amount = xml.css("creditorFees > commissionFeeAmount").text
data[:creditor_fees].merge!(commission_fee_amount: BigDecimal(commission_fee_amount)) if commission_fee_amount.present?
efrete = xml.css("creditorFees > efrete").text
data[:creditor_fees].merge!(efrete: BigDecimal(efrete)) if efrete.present?
end
Expand Down

0 comments on commit 0ff3892

Please sign in to comment.