Class PayoutsServiceImpl

java.lang.Object
vn.payos.core.APIService<PayOS>
vn.payos.service.blocking.v1.payouts.PayoutsServiceImpl
All Implemented Interfaces:
PayoutsService

public class PayoutsServiceImpl extends APIService<PayOS> implements PayoutsService
PayoutsServiceImpl
  • Constructor Details

    • PayoutsServiceImpl

      public PayoutsServiceImpl(PayOS client)
      PayoutsServiceImpl
      Parameters:
      client - client
  • Method Details

    • create

      public Payout create(PayoutRequests payoutData, String idempotencyKey, RequestOptions<PayoutRequests> options)
      Description copied from interface: PayoutsService
      Create a new payout.
      Specified by:
      create in interface PayoutsService
      Parameters:
      payoutData - The details of the payout to be created.
      idempotencyKey - A unique key for ensuring idempotency. Use a UUID or other high-entropy string so that retries of the same request are recognized and duplicated payouts are prevented.
      options - Additional options.
      Returns:
      Payout detail.
    • create

      public Payout create(PayoutRequests payoutData, RequestOptions<PayoutRequests> options)
      Description copied from interface: PayoutsService
      Create a new payout.
      Specified by:
      create in interface PayoutsService
      Parameters:
      payoutData - The details of the payout to be created.
      options - Additional options.
      Returns:
      Payout detail.
    • create

      public Payout create(PayoutRequests payoutData, String idempotencyKey)
      Description copied from interface: PayoutsService
      Create a new payout.
      Specified by:
      create in interface PayoutsService
      Parameters:
      payoutData - The details of the payout to be created.
      idempotencyKey - A unique key for ensuring idempotency. Use a UUID or other high-entropy string so that retries of the same request are recognized and duplicated payouts are prevented.
      Returns:
      Payout detail.
    • create

      public Payout create(PayoutRequests payoutData)
      Description copied from interface: PayoutsService
      Create a new payout.
      Specified by:
      create in interface PayoutsService
      Parameters:
      payoutData - The details of the payout to be created.
      Returns:
      Payout detail.
    • get

      public Payout get(String payoutId, RequestOptions<Void> options)
      Description copied from interface: PayoutsService
      Retrieves detailed information about a specific payout.
      Specified by:
      get in interface PayoutsService
      Parameters:
      payoutId - The unique identifier of the payout to retrieve.
      options - Additional options.
      Returns:
      Payout detail.
    • get

      public Payout get(String payoutId)
      Description copied from interface: PayoutsService
      Retrieves detailed information about a specific payout.
      Specified by:
      get in interface PayoutsService
      Parameters:
      payoutId - The unique identifier of the payout to retrieve.
      Returns:
      Payout detail.
    • estimateCredit

      public EstimateCredit estimateCredit(PayoutRequests payoutData, RequestOptions<PayoutRequests> options)
      Description copied from interface: PayoutsService
      Estimate credit required for one payout.
      Specified by:
      estimateCredit in interface PayoutsService
      Parameters:
      payoutData - The details of the payout to be estimated.
      options - Additional options.
      Returns:
      The estimate result.
    • estimateCredit

      public EstimateCredit estimateCredit(PayoutRequests payoutData)
      Description copied from interface: PayoutsService
      Estimate credit required for one payout.
      Specified by:
      estimateCredit in interface PayoutsService
      Parameters:
      payoutData - The details of the payout to be estimated.
      Returns:
      The estimate result.
    • estimateCredit

      public EstimateCredit estimateCredit(PayoutBatchRequest payoutData, RequestOptions<PayoutBatchRequest> options)
      Description copied from interface: PayoutsService
      Estimate credit required for batch payout.
      Specified by:
      estimateCredit in interface PayoutsService
      Parameters:
      payoutData - The details of the payout to be estimated.
      options - Additional options.
      Returns:
      The estimate result.
    • estimateCredit

      public EstimateCredit estimateCredit(PayoutBatchRequest payoutData)
      Description copied from interface: PayoutsService
      Estimate credit required for batch payout.
      Specified by:
      estimateCredit in interface PayoutsService
      Parameters:
      payoutData - The details of the payout to be estimated.
      Returns:
      The estimate result.
    • list

      public Page<Payout> list(GetPayoutListParams params, RequestOptions<Void> options)
      Description copied from interface: PayoutsService
      Retrieves a paginated list of payouts filtered by the given criteria.
      Specified by:
      list in interface PayoutsService
      Parameters:
      params - The filtering options including pagination parameters.
      options - Additional options.
      Returns:
      Payouts detail.
    • list

      public Page<Payout> list(GetPayoutListParams params)
      Description copied from interface: PayoutsService
      Retrieves a paginated list of payouts filtered by the given criteria.
      Specified by:
      list in interface PayoutsService
      Parameters:
      params - The filtering options including pagination parameters.
      Returns:
      Payouts detail.
    • batch

      public BatchService batch()
      Description copied from interface: PayoutsService
      BatchService
      Specified by:
      batch in interface PayoutsService
      Returns:
      BatchService