Hello
I noticed an XML namespace issue regarding GenerateInvoice and ProcessPayments while using the subscribe method.
The Zuora examples require GenerateInvoice and ProcessPayments to be in the same namespace as SubscribeOptions (namespace "ns1").
<ns1:subscribe>
<ns1:subscribes>
<ns1:Account>
<!-- Set ID to the Account you want to create a subscription for-->
<ns2:Id></ns2:Id>
</ns1:Account>
<ns1:SubscribeOptions>
<ns1:GenerateInvoice>true</ns1:GenerateInvoice>
<ns1:ProcessPayments>true</ns1:ProcessPayments>
</ns1:SubscribeOptions>
...
However, node_zuora will use the ns2 (ons) namespace for GenerateInvoice and ProcessPayments:
<zns:SubscribeOptions>
<ons:GenerateInvoice>true</ons:GenerateInvoice>
<ons:ProcessPayments>true</ons:ProcessPayments>
</zns:SubscribeOptions>
which results in this remote error:
Remote Exception: #org.apache.axis2.databinding.ADBException: Unexpected subelement GenerateInvoice
#140 would generate something like this:
<zns:SubscribeOptions>
<zns:GenerateInvoice xsi:type="ons:GenerateInvoice">true</zns:GenerateInvoice>
<zns:ProcessPayments xsi:type="ons:ProcessPayments">true</zns:ProcessPayments
</zns:SubscribeOptions>
which doesn't trigger the error anymore
Hello
I noticed an XML namespace issue regarding GenerateInvoice and ProcessPayments while using the subscribe method.
The Zuora examples require GenerateInvoice and ProcessPayments to be in the same namespace as SubscribeOptions (namespace "ns1").
However, node_zuora will use the ns2 (ons) namespace for GenerateInvoice and ProcessPayments:
which results in this remote error:
#140 would generate something like this:
which doesn't trigger the error anymore