Package 

Class FetchConvFeeRequest


  • 
    public class FetchConvFeeRequest
    extends V2ApiBase
                        

    Represents a request to fetch conversion fee details from the PayU API. This class com.payu.india.Tasks.FetchConvFeeTask contains payment-related information such as the PayU ID, merchant key, transaction amount, source of the transaction, timestamp, and request ID. It also supports dynamic attributes for both common and variable dynamic data.

    The class uses the Builder design pattern to facilitate the creation of a `FetchConvFeeRequest` instance, ensuring that all necessary fields are set before the object is constructed.

    Example usage:
    FetchConvFeeRequest request = new FetchConvFeeRequest.Builder()
        .setPayuId("examplePayuId")
        .setMerchantKey("exampleMerchantKey")
        .setAmount(100.50)
        .setSource("website")
        .setTimeStamp("2025-03-24T10:00:00Z")
        .setRequestId("request123")
        .setCommonDynamicAttributes(new CommonDynamicAttributes(...))
        .setVariableDynamicAttributesList(new ArrayList<>())
        .build();
    
    This class provides the following functionalities:
    • Building a request object with required fields using the Builder pattern.
    • Converting the request object into a JSON format string using getJson.
    • Handling common and variable dynamic attributes as part of the request.

    Methods:

    • getJson - Converts the request into a JSON format string to be sent to the PayU API.

    Related classes:

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      public class FetchConvFeeRequest.Builder

      The Builder class is used to construct a FetchConvFeeRequest with the necessary attributes.It provides setter methods for all required fields and a build method to create the final object.

    • Method Summary

      Modifier and Type Method Description
      String getJson() Converts this FetchConvFeeRequest into a JSON string representation.
      • Methods inherited from class com.payu.paymentparamhelper.V2ApiBase

        getJson
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait