Skip to content

Commit 0ff3892

Browse files
committed
rebase with oficial gem and put the variables in the snake case pattern
1 parent fd197be commit 0ff3892

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

lib/pagseguro/transaction/serializer.rb

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -72,10 +72,10 @@ def serialize_creditor(data)
7272
intermediation_fee_amount: BigDecimal(xml.css("creditorFees > intermediationFeeAmount").text.to_f.to_s),
7373
installment_fee_amount: BigDecimal(xml.css("creditorFees > installmentFeeAmount").text.to_f.to_s),
7474
}
75-
operationalFeeAmount = xml.css("creditorFees > operationalFeeAmount").text
76-
data[:creditor_fees].merge!(operational_fee_amount: BigDecimal(operationalFeeAmount)) if operationalFeeAmount.present?
77-
commissionFeeAmount = xml.css("creditorFees > commissionFeeAmount").text
78-
data[:creditor_fees].merge!(commission_fee_amount: BigDecimal(commissionFeeAmount)) if commissionFeeAmount.present?
75+
operational_fee_amount = xml.css("creditorFees > operationalFeeAmount").text
76+
data[:creditor_fees].merge!(operational_fee_amount: BigDecimal(operational_fee_amount)) if operational_fee_amount.present?
77+
commission_fee_amount = xml.css("creditorFees > commissionFeeAmount").text
78+
data[:creditor_fees].merge!(commission_fee_amount: BigDecimal(commission_fee_amount)) if commission_fee_amount.present?
7979
efrete = xml.css("creditorFees > efrete").text
8080
data[:creditor_fees].merge!(efrete: BigDecimal(efrete)) if efrete.present?
8181
end

0 commit comments

Comments
 (0)