// Create a form object containing all the expected fields.
'last_name': 'Skywalker',
'address1': '123 Blue Milk Way',
'address2': 'Apt. 3', // This property is optional
// If we want to update an existing profile, we need to include a valid shipping id.
profileForm['shipping_id'] = 1;
profileForm['shipping_name'] = "Luke's house";
// Add/update shipping profile.
User.addShippingProfile()
// Shipping profile added/updated.