Issue MMAPI-62 added the inserted object into the response. ProductVariantInsertResponse has had its original response data moved and all calling code should be updated to reflect this change.
Example usage from 2.1.x
response.getProductId();
response.getVariantId();
Should be updated to for 2.2.x
response.getProductVariant().getProductId()
response.getProductVariant().getVariantId()
Issue MMAPI-67 renamed some model getter functions and all calling code should be updated. Use the following list to rename all usage in your applications:
CustomerSubscription.getAddressDescrip() -> CustomerSubscription.getAddressDescription()
CustomerSubscription.getAddressAdress() -> CustomerSubscription.getAddressAddress()
CustomerSubscription.getAddressAddress_1() -> CustomerSubscription.getAddressAddress1()
CustomerSubscription.getAddressAddress_2() -> CustomerSubscription.getAddressAddress2()
ProductAndSubscriptionTerm.getTermDescrip() -> ProductAndSubscriptionTerm.getTermDescription()
The class TemplateVersionSettings
has been renamed to VersionSettings
.
If you are utilizing this class within your code then you will need to be renamed in their type declarations. Usage has stayed the same.
Usage of OrderItemOption will need to be updated to support the change to the member attribute
to attributeCode
.
Replace all usage of OrderItemOption
models that call either getAttribute()
or setAttribute(str)
with getAttributeCode()
and setAttributeCode(str)
.
Example usage from 1.x:
var itemOption = new merchantapi.models.OrderItemOption();
itemOption.setAttribute("code");
Should be updated for 2.x:
itemOption = new merchantapi.models.OrderItemOption();
itemOption.setAttributeCode('code');
Example usage from 1.x:
var itemOption; // A OrderItemOption model loaded from an OrderListLoadQuery, for example
itemOption.getAttribute();
Should be updated for 2.x:
var itemOption; // A OrderItemOption model loaded from an OrderListLoadQuery, for example
itemOption.getAttributeCode();