getPurchasePaymentNote function

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

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

Implementation

Future<ApiResponse<PurchasePaymentNoteView>> getPurchasePaymentNote(
  ExsitedClient client,
  Object purchasePaymentId,
  Object ppNoteId, {
  Map<String, Object?>? queryParams,
  bool? raiseOnError,
  String? responseFormat,
}) =>
    client.sendGetRequest(PurchasePaymentsUrls.purchasePaymentNote,
        pathParams: {
          'purchase_payment_id': purchasePaymentId,
          'pp_note_id': ppNoteId
        },
        queryParams: queryParams,
        raiseOnError: raiseOnError,
        responseFormat: responseFormat,
        dtoDecoder: PurchasePaymentNoteView.fromMap);