Skip to content

Commit 683f0ab

Browse files
author
Sunny Raj Rathod
authored
Update create-customer-profile.js
1 parent 5bf76ed commit 683f0ab

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

CustomerProfiles/create-customer-profile.js

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,21 @@ function createCustomerProfile(callback) {
1717

1818
var paymentType = new ApiContracts.PaymentType();
1919
paymentType.setCreditCard(creditCard);
20+
21+
var customerAddress = new ApiContracts.CustomerAddressType();
22+
customerAddress.setFirstName('test');
23+
customerAddress.setLastName('scenario');
24+
customerAddress.setAddress('123 Main Street');
25+
customerAddress.setCity('Bellevue');
26+
customerAddress.setState('WA');
27+
customerAddress.setZip('98004');
28+
customerAddress.setCountry('USA');
29+
customerAddress.setPhoneNumber('000-000-0000');
2030

2131
var customerPaymentProfileType = new ApiContracts.CustomerPaymentProfileType();
2232
customerPaymentProfileType.setCustomerType(ApiContracts.CustomerTypeEnum.INDIVIDUAL);
2333
customerPaymentProfileType.setPayment(paymentType);
34+
customerPaymentProfileType.setBillTo(customerAddress);
2435

2536
var paymentProfilesList = [];
2637
paymentProfilesList.push(customerPaymentProfileType);

0 commit comments

Comments
 (0)