projects/congarevenuecloud/ecommerce/src/lib/modules/pricing/services/conversion.service.ts
This service is a work in progress.
The conversion service is responsible for pulling conversion rates from your Salesforce instance.
import { ConversionService, AObjectService} from '@congarevenuecloud/ecommerce';
export class MyComponent implements OnInit{
constructor( private conversionService: ConversionService)
}
// or
export class MyService extends AObjectService {
private conversionService: ConversionService = this.injector.get(ConversionService);
}
AObjectService
Properties |
Methods |
getConversionRates |
getConversionRates()
|
primary method for pulling conversion rates. Example:Example :
/** primary method for pulling conversion rates from Salesforce.
Returns :
Observable<Array<CurrencyType>>
a cold observable containing the array of currency type instances |
getCurrencyTypeForPricelist |
getCurrencyTypeForPricelist()
|
Used for getting a single instance of currencytype based on the price List
Returns :
Observable<CurrencyType>
a hot observable containing the currency type of the price List |
getMyCurrencyType |
getMyCurrencyType()
|
Used for getting a single instance of currencytype for the current user Example:Example :
Returns :
Observable<CurrencyType>
a hot observable containing the currency type of the current user |
type |
Default value : CurrencyType
|