getPhoneNumberOrder method

Future<GetPhoneNumberOrderResponse> getPhoneNumberOrder({
  1. required String phoneNumberOrderId,
})

Retrieves details for the specified phone number order, such as order creation timestamp, phone numbers in E.164 format, product type, and order status.

May throw UnauthorizedClientException. May throw NotFoundException. May throw ForbiddenException. May throw BadRequestException. May throw ThrottledClientException. May throw ServiceUnavailableException. May throw ServiceFailureException.

Parameter phoneNumberOrderId : The ID for the phone number order.

Implementation

Future<GetPhoneNumberOrderResponse> getPhoneNumberOrder({
  required String phoneNumberOrderId,
}) async {
  ArgumentError.checkNotNull(phoneNumberOrderId, 'phoneNumberOrderId');
  final response = await _protocol.send(
    payload: null,
    method: 'GET',
    requestUri:
        '/phone-number-orders/${Uri.encodeComponent(phoneNumberOrderId)}',
    exceptionFnMap: _exceptionFns,
  );
  return GetPhoneNumberOrderResponse.fromJson(response);
}