// Create a form object containing all the expected fields.
'address1': '1701 Utopia Way',
'address2': 'Apt. 10', // This property is optional
// If we want to update an existing profile, we need to include a valid shipping id.
profileForm['billing_id'] = 1;
profileForm['billing_name'] = "Starfleet billing address";
// Add/update shipping profile.
User.addBillingProfile( profileForm )
// Shipping profile added/updated.