lib/zuora/calls/subscribe.rb in zuora-ruby-0.5.0 vs lib/zuora/calls/subscribe.rb in zuora-ruby-0.6.0
- old
+ new
@@ -6,10 +6,11 @@
property :bill_to_contact, required: true
property :sold_to_contact
property :subscribe_options
property :subscription
property :rate_plan
+ property :rate_plan_charge
SIMPLE_OBJECTS = [:account, :payment_method, :bill_to_contact].freeze
# Generates a function that adds login fields to a buidler
# @return [Callable] function of builder
@@ -48,9 +49,12 @@
builder[:api].SubscriptionData do
build_object(builder, :Subscription, subscription)
builder[:api].RatePlanData do
build_object(builder, :RatePlan, rate_plan)
+ builder[:api].RatePlanChargeData do
+ build_object(builder, :RatePlanCharge, rate_plan_charge)
+ end
end
end
end
# Helper for building one object