lib/docdata/order/request.rb in docdata-order-1.0.0 vs lib/docdata/order/request.rb in docdata-order-1.0.1
- old
+ new
@@ -133,10 +133,10 @@
end
private
def amount
- decimal = BigDecimal.new(options.fetch(:amount).to_s)
+ decimal = BigDecimal(options.fetch(:amount).to_s)
decimal *= 100 # to cents
decimal.to_i
end
def order_reference