creditcardpluginCardpointeGatewayapiSurchargefeeLocationLocationidAccountAccountidPostalcodePostalcodeAmountAmountGet method

Future<Response<WebApiModulesPluginsCreditCardCreditCardPluginGetDefaultSurchargeAmountResponse>> creditcardpluginCardpointeGatewayapiSurchargefeeLocationLocationidAccountAccountidPostalcodePostalcodeAmountAmountGet({
  1. required String? locationid,
  2. required String? accountid,
  3. required String? postalcode,
  4. required num? amount,
})

Calls the Cardpointe Gateway API Surcharge endpoint to determine if there is a surcharge for an account (tokenized card #). @param locationid @param accountid @param postalcode @param amount

Implementation

Future<
  chopper.Response<
    WebApiModulesPluginsCreditCardCreditCardPluginGetDefaultSurchargeAmountResponse
  >
>
creditcardpluginCardpointeGatewayapiSurchargefeeLocationLocationidAccountAccountidPostalcodePostalcodeAmountAmountGet({
  required String? locationid,
  required String? accountid,
  required String? postalcode,
  required num? amount,
}) {
  generatedMapping.putIfAbsent(
    WebApiModulesPluginsCreditCardCreditCardPluginGetDefaultSurchargeAmountResponse,
    () =>
        WebApiModulesPluginsCreditCardCreditCardPluginGetDefaultSurchargeAmountResponse
            .fromJsonFactory,
  );

  return _creditcardpluginCardpointeGatewayapiSurchargefeeLocationLocationidAccountAccountidPostalcodePostalcodeAmountAmountGet(
    locationid: locationid,
    accountid: accountid,
    postalcode: postalcode,
    amount: amount,
  );
}