Skip to content

Commit

Permalink
payment method can be nill for subscribe preview
Browse files Browse the repository at this point in the history
  • Loading branch information
mdemin914 committed Oct 9, 2012
1 parent d5ed99e commit 3629e46
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/zuora/objects/subscribe_request.rb
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ def create

s.__send__(zns, :PaymentMethod) do |pm|
generate_payment_method(pm)
end
end unless payment_method.nil?

s.__send__(zns, :BillToContact) do |btc|
generate_bill_to_contact(btc)
Expand All @@ -71,7 +71,7 @@ def create
s.__send__(zns, :SubscribeOptions) do |so|
generate_subscribe_options(so)
end unless subscribe_options.blank?

s.__send__(zns, :SubscriptionData) do |sd|
sd.__send__(zns, :Subscription) do |sub|
generate_subscription(sub)
Expand Down

0 comments on commit 3629e46

Please sign in to comment.