getGiftCertificateAllocation function

Future<ApiResponse<GiftCertificateAllocationRead>> getGiftCertificateAllocation(
  1. ExsitedClient client,
  2. Object gcId,
  3. Object allocationId, {
  4. bool? raiseOnError,
  5. String? responseFormat,
})

GET /api/{api_version}/gift_certificates/{gc_id}/allocations/{allocation_id}

Retrieve one allocation, under gift_certificate_allocation.

Implementation

Future<ApiResponse<GiftCertificateAllocationRead>> getGiftCertificateAllocation(
  ExsitedClient client,
  Object gcId,
  Object allocationId, {
  bool? raiseOnError,
  String? responseFormat,
}) =>
    client.sendGetRequest(GiftCertificatesUrls.giftCertificateAllocation,
        pathParams: {'gc_id': gcId, 'allocation_id': allocationId},
        raiseOnError: raiseOnError,
        responseFormat: responseFormat,
        dtoDecoder: GiftCertificateAllocationRead.fromMap);