Skip to content

Commit

Permalink
fixed namespace for amendment
Browse files Browse the repository at this point in the history
  • Loading branch information
mdemin914 committed Oct 16, 2012
1 parent 600fc84 commit 4bc5b89
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion lib/zuora/objects/amend_request.rb
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ def generate_preview_options(builder)
def generate_amendment(builder)
amendment.to_hash.each do |k,v|
if k.to_s != 'rate_plan_data'
builder.__send__(zns, k.to_s.zuora_camelize.to_sym, v) unless v.nil?
builder.__send__(ons, k.to_s.zuora_camelize.to_sym, v) unless v.nil?
end
end
end
Expand Down
4 changes: 2 additions & 2 deletions spec/zuora/objects/amend_request_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,9 @@
end

xml = Zuora::Api.instance.last_request
xml.should have_xml("//env:Body/#{zns}:amend/#{zns}:requests/#{zns}:Amendments/#{zns}:Type").
xml.should have_xml("//env:Body/#{zns}:amend/#{zns}:requests/#{zns}:Amendments/#{ons}:Type").
with_value('NewProduct')
xml.should have_xml("//env:Body/#{zns}:amend/#{zns}:requests/#{zns}:Amendments/#{zns}:Name").
xml.should have_xml("//env:Body/#{zns}:amend/#{zns}:requests/#{zns}:Amendments/#{ons}:Name").
with_value('Example Amendment 1')
xml.should have_xml("//env:Body/#{zns}:amend/#{zns}:requests/#{zns}:Amendments/#{ons}:RatePlanData/#{ons}:RatePlan/#{ons}:ProductRatePlanId").
with_value('4028e48834aa10a30134c50f40901ea7')
Expand Down
10 changes: 5 additions & 5 deletions wsdl/zuora.a.38.0.wsdl
Original file line number Diff line number Diff line change
Expand Up @@ -132,9 +132,9 @@
<element minOccurs="0" name="AutoRenew" nillable="true" type="boolean" />
<element minOccurs="0" name="Code" nillable="true" type="string" />
<element minOccurs="0" name="ContractEffectiveDate" nillable="true" type="dateTime" />
<element minOccurs="0" name="CreatedById" nillable="true" type="zns:ID" />
<element minOccurs="0" name="CreatedDate" nillable="true" type="dateTime" />
<element minOccurs="0" name="CustomerAcceptanceDate" nillable="true" type="dateTime" />
<element minOccurs="0" name="CreatedById" nillable="true" type="zns:ID" />
<element minOccurs="0" name="CreatedDate" nillable="true" type="dateTime" />
<element minOccurs="0" name="CustomerAcceptanceDate" nillable="true" type="dateTime" />
<element minOccurs="0" name="Description" nillable="true" type="string" />
<element minOccurs="0" name="EffectiveDate" nillable="true" type="dateTime" />
<element minOccurs="0" name="InitialTerm" nillable="true" type="long" />
Expand All @@ -147,8 +147,8 @@
<element minOccurs="0" name="TermStartDate" nillable="true" type="dateTime" />
<element minOccurs="0" name="TermType" nillable="true" type="string" />
<element minOccurs="0" name="Type" nillable="true" type="string" />
<element minOccurs="0" name="UpdatedById" nillable="true" type="zns:ID" />
<element minOccurs="0" name="UpdatedDate" nillable="true" type="dateTime" />
<element minOccurs="0" name="UpdatedById" nillable="true" type="zns:ID" />
<element minOccurs="0" name="UpdatedDate" nillable="true" type="dateTime" />
</sequence>
</extension>
</complexContent>
Expand Down

0 comments on commit 4bc5b89

Please sign in to comment.