Class: Pay::AwsMarketplace::Charge

Inherits:
Charge
  • Object
show all
Defined in:
lib/pay/aws_marketplace/charge.rb

Instance Method Summary collapse

Instance Method Details

#api_recordObject



4
5
6
# File 'lib/pay/aws_marketplace/charge.rb', line 4

def api_record
  self
end

#refund!(amount_to_refund = nil) ⇒ Object



8
9
10
# File 'lib/pay/aws_marketplace/charge.rb', line 8

def refund!(amount_to_refund = nil)
  update(amount_refunded: amount_to_refund || amount)
end