Enhancement Request: Address.js Should Match Fields on creatOrder.shippingAddress (Doc ID 2269946.1)

Last updated on MAY 24, 2017

Applies to:

Oracle Commerce Cloud Service - Version N/A and later
Information in this document applies to any platform.

Goal

The createOrders API includes an email attribute on the shippingAddress

EXAMPLE

"shippingAddress": {
"lastName": "Test",
"country": "US",
"address3": "",
"address2": "Line 2",
"city": "Montgomery",
"address1": "Line 1",
"prefix": "",
"companyName": "",
"postalCode": "36123",
"jobTitle": "",
"county": "",
"suffix": "",
"firstName": "Steve",
"phoneNumber": "45454545",
"alias": "Address",
"faxNumber": "",
"middleName": "",
"state": "AL",
"email": "steve.test@oracle.com"
},

REFERENCE:
http://docs.oracle.com/cloud/latest/commercecs_gs/CXOCC/api-Store-Orders.html

However, the Address.js) does not include an email field (see below). Requesting that all Address objects (including Address.js) have like fields, including email.

EXAMPLE

// Address Fields
// All have to be initialised to empty string
// in order to be picked up in the JSON
self.alias = ko.observable('');
self.prefix = ko.observable('');
self.firstName = ko.observable('');
self.middleName = ko.observable('');
self.lastName = ko.observable('');
self.suffix = ko.observable('');

self.country = ko.observable('');
self.postalCode = ko.observable('');
self.address1 = ko.observable('');
self.address2 = ko.observable('');
self.address3 = ko.observable('');
self.city = ko.observable('');
self.state = ko.observable('');
self.county = ko.observable('');

self.phoneNumber = ko.observable('');

self.email = ko.observable();

self.jobTitle = ko.observable('');
self.companyName = ko.observable('');
self.faxNumber = ko.observable('');
self.repositoryId = '';

// Postal Code Patterns
self.postalCodePattern = ko.observable('');

// Helpers
self.stateList = ko.observableArray();
self.selectedCountry = ko.observable();
self.selectedState = ko.observable();
self.state_ISOCode = ko.observable();

 

Solution

Sign In with your My Oracle Support account

Don't have a My Oracle Support account? Click to get started

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms