mirror of
https://github.com/stripe/stripe-ruby.git
synced 2025-09-22 00:00:31 -04:00
Construct the recipient card URL if the recipient property exists.
This commit is contained in:
parent
ca07ef08fd
commit
bc43fff551
@ -5,7 +5,11 @@ module Stripe
|
||||
include Stripe::APIOperations::List
|
||||
|
||||
def url
|
||||
"#{Customer.url}/#{CGI.escape(customer)}/cards/#{CGI.escape(id)}"
|
||||
if recipient
|
||||
"#{Recipient.url}/#{CGI.escape(recipient)}/cards/#{CGI.escape(id)}"
|
||||
elsif customer
|
||||
"#{Customer.url}/#{CGI.escape(customer)}/cards/#{CGI.escape(id)}"
|
||||
end
|
||||
end
|
||||
|
||||
def self.retrieve(id, api_key=nil)
|
||||
|
Loading…
x
Reference in New Issue
Block a user