call method

Future<ApiCallResponse> call({
  1. String? serviceCode = '',
  2. String? customerNo = '',
  3. String? tenant = '',
  4. String? token = '',
  5. String? baseUrl = '',
  6. String? platform = '',
})

Implementation

Future<ApiCallResponse> call({
  String? serviceCode = '',
  String? customerNo = '',
  String? tenant = '',
  String? token = '',
  String? baseUrl = '',
  String? platform = '',
}) {
  return ApiManager.instance.makeApiCall(
    callName: 'validateElectricityCustomerNumber',
    apiUrl:
        '${baseUrl}api/blayzPay/bills/electricity/${serviceCode}/${customerNo}',
    callType: ApiCallType.GET,
    headers: {
      ...BlayzPayAPIGroup.headers,
      'tenant': '${tenant}',
      'Authorization': '${token}',
      'platform': '${platform}',
    },
    params: {},
    returnBody: true,
    encodeBodyUtf8: false,
    decodeUtf8: false,
    cache: false,
  );
}