getGiftCertificateAllocation function
Future<ApiResponse<GiftCertificateAllocationRead> >
getGiftCertificateAllocation(
- ExsitedClient client,
- Object gcId,
- Object allocationId, {
- bool? raiseOnError,
- 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);