-
Notifications
You must be signed in to change notification settings - Fork 20
Expand file tree
/
Copy pathAccountOperationsA
More file actions
30 lines (30 loc) · 985 Bytes
/
AccountOperationsA
File metadata and controls
30 lines (30 loc) · 985 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
public class AccountOperations {
Public static Account setDefaultDescription(Account a){
If (a.Description != null) return a;
Else {
a.Description = 'Default description';
return a;
}
}
//New methods introduced by Developer 1 working on the US-001
public static Account setDefaultBillingAddress(Account a){//DEV 1
a.billingstreet = 'Basauri, 6';
a.billingstate = 'Madrid';
a.billingpostalcode ='28023';
return a;
}
public static Account setDefaultShippingAddress(Account a){//DEV 1
a.shippingstreet = 'Basauri, 6';
a.shippingstate = 'Madrid';
a.shippingpostalcode ='28023';
return a;
}
public static Account setDefaultPhone(Account a) {//DEV 1
a.Phone='688456789'; //DEV1
return a;
}
public static Account setDefaultURL(Account a) { //DEV 1
a.website = 'www.copa.do'; //Dev1
return a;
}
}