projects/congarevenuecloud/ecommerce/src/lib/modules/crm/services/account-location.service.ts
This service is deprecated on Conga platform. The Address-Location service allows you to organize account addresses. Addresses are a sub-resource of an Account. An account may have multiple addresses.
The Address-Location service allows you to organize account addresses. Addresses are a sub-resource of an Account. An account may have multiple addresses.
import { AccountLocationService, AObjectService} from '@congarevenuecloud/ecommerce';
export class MyComponent implements OnInit{
constructor( private accountLocationService: AccountLocationService)
}
// or
export class MyService extends AObjectService {
private accountLocationService: AccountLocationService = this.injector.get(AccountLocationService);
}
AObjectService
Properties |
Methods |
delete | |||||||||||||||
delete(recordList: Array
|
|||||||||||||||
Example:Example :
Parameters :
Returns :
Observable<Array<AObject>>
an array of records that were deleted in the process |
saveLocationToAccount | ||||||||
saveLocationToAccount(location: AccountLocation)
|
||||||||
Saves the account location record to the current account. Example:Example :
Parameters :
Returns :
Observable<Array<AccountLocation>>
An observable of an account location record id |
setLocationAsDefault | ||||||||
setLocationAsDefault(location: AccountLocation)
|
||||||||
Sets the selected address as the default address. Example:Example :
Parameters :
Returns :
Observable<Array<AccountLocation>>
A string array of records that were updated in the process |
type |
Default value : AccountLocation
|