getPurchasePayment function

Future<ApiResponse<PurchasePaymentRead>> getPurchasePayment(
  1. ExsitedClient client,
  2. Object purchasePaymentId, {
  3. Map<String, Object?>? queryParams,
  4. bool? raiseOnError,
  5. String? responseFormat,
})

GET /api/{api_version}/purchase_payments/{purchase_payment_id}

Implementation

Future<ApiResponse<PurchasePaymentRead>> getPurchasePayment(
  ExsitedClient client,
  Object purchasePaymentId, {
  Map<String, Object?>? queryParams,
  bool? raiseOnError,
  String? responseFormat,
}) =>
    client.sendGetRequest(PurchasePaymentsUrls.purchasePayment,
        pathParams: {'purchase_payment_id': purchasePaymentId},
        queryParams: queryParams,
        raiseOnError: raiseOnError,
        responseFormat: responseFormat,
        dtoDecoder: PurchasePaymentRead.fromMap);