Method: RockRMS::Client::PaymentDetail#update_payment_detail
- Defined in:
- lib/rock_rms/resources/payment_detail.rb
#update_payment_detail(id, foreign_key: nil, card_type: nil, last_4: nil) ⇒ Object
20 21 22 23 24 25 26 27 28 |
# File 'lib/rock_rms/resources/payment_detail.rb', line 20 def update_payment_detail(id, foreign_key: nil, card_type: nil, last_4: nil) = {} ['CreditCardTypeValueId'] = cast_card_type(card_type) if card_type ['ForeignKey'] = foreign_key if foreign_key ['AccountNumberMasked'] = "************#{last_4}" if last_4 patch(payment_detail_path(id), ) end |