File tree Expand file tree Collapse file tree 1 file changed +11
-0
lines changed
Expand file tree Collapse file tree 1 file changed +11
-0
lines changed Original file line number Diff line number Diff 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 ) ;
You can’t perform that action at this time.
0 commit comments