getPaymentWithHttpInfo method

Future<Response> getPaymentWithHttpInfo(
  1. String id
)

Read one settled payment by its id

Reads one settled payment out of the caller's org ledger. The org scopes the read by construction — the ledger is namespaced to it — so an id belonging to another tenant is simply not found rather than found and then filtered. A ledger row that is not a payment is likewise not found, so this cannot be used to walk the org's usage debits. A named handler, not a closure, so zipdoc can lift this prose into the registry.

Note: This method returns the HTTP Response.

Parameters:

  • String id (required): ID is the ledger transaction id a payment returned.

Implementation

Future<Response> getPaymentWithHttpInfo(String id,) async {
  // ignore: prefer_const_declarations
  final path = r'/v1/commerce/payments/{id}'
    .replaceAll('{id}', id);

  // ignore: prefer_final_locals
  Object? postBody;

  final queryParams = <QueryParam>[];
  final headerParams = <String, String>{};
  final formParams = <String, String>{};

  const contentTypes = <String>[];


  return apiClient.invokeAPI(
    path,
    'GET',
    queryParams,
    postBody,
    headerParams,
    formParams,
    contentTypes.isEmpty ? null : contentTypes.first,
  );
}