mundiapi/controllers/subscriptions_controller.py
def create_subscription_item(self,
                                 subscription_id,
                                 request,
                                 idempotency_key=None):
        """Does a POST request to /subscriptions/{subscription_id}/items.

        Creates a new Subscription item

        Args:
            subscription_id (string): Subscription id
            request (CreateSubscriptionItemRequest): Request for creating a
                subscription item
            idempotency_key (string, optional): TODO: type description here.
                Example: 

        Returns:
            GetSubscriptionItemResponse: Response from the API. 

        Raises:
            APIException: When an error occurs while fetching the data from
                the remote API. This exception includes the HTTP Response
                code, an error message, and the HTTP body that was received in
                the request.

        """

        # Prepare query URL
        _url_path = '/subscriptions/{subscription_id}/items'
        _url_path = APIHelper.append_url_with_template_parameters(_url_path, { 
            'subscription_id': subscription_id
        })
        _query_builder = Configuration.base_uri
        _query_builder += _url_path
        _query_url = APIHelper.clean_url(_query_builder)

        # Prepare headers
        _headers = {
            'accept': 'application/json',
            'content-type': 'application/json; charset=utf-8',
            'idempotency-key': idempotency_key
        }

        # Prepare and execute request
        _request = self.http_client.post(_query_url, headers=_headers, parameters=APIHelper.json_serialize(request))
        BasicAuth.apply(_request)
        _context = self.execute_request(_request)
        self.validate_response(_context)

        # Return appropriate type
        return APIHelper.json_deserialize(_context.response.raw_body, GetSubscriptionItemResponse.from_dictionary)
Does a POST request to /subscriptions/{subscription_id}/items.

        Creates a new Subscription item

        Args:
            subscription_id (string): Subscription id
            request (CreateSubscriptionItemRequest): Request for creating a
                subscription item
            idempotency_key (string, optional): TODO: type description here.
                Example: 

        Returns:
            GetSubscriptionItemResponse: Response from the API. 

        Raises:
            APIException: When an error occurs while fetching the data from
                the remote API. This exception includes the HTTP Response
                code, an error message, and the HTTP body that was received in
                the request.

        
Does a POST request to /subscriptions/{subscription_id}/items.
Creates a new Subscription item
Does a POST request to / subscriptions / { subscription_id } / items . Creates a new Subscription item
def create_subscription_item(self,
                                 subscription_id,
                                 request,
                                 idempotency_key=None):
        _url_path = '/subscriptions/{subscription_id}/items'
        _url_path = APIHelper.append_url_with_template_parameters(_url_path, { 
            'subscription_id': subscription_id
        })
        _query_builder = Configuration.base_uri
        _query_builder += _url_path
        _query_url = APIHelper.clean_url(_query_builder)
        _headers = {
            'accept': 'application/json',
            'content-type': 'application/json; charset=utf-8',
            'idempotency-key': idempotency_key
        }
        _request = self.http_client.post(_query_url, headers=_headers, parameters=APIHelper.json_serialize(request))
        BasicAuth.apply(_request)
        _context = self.execute_request(_request)
        self.validate_response(_context)
        return APIHelper.json_deserialize(_context.response.raw_body, GetSubscriptionItemResponse.from_dictionary)
def create_subscription_item ( self , subscription_id , request , idempotency_key = None ) : _url_path = '/subscriptions/{subscription_id}/items' _url_path = APIHelper . append_url_with_template_parameters ( _url_path , { 'subscription_id' : subscription_id } ) _query_builder = Configuration . base_uri _query_builder += _url_path _query_url = APIHelper . clean_url ( _query_builder ) _headers = { 'accept' : 'application/json' , 'content-type' : 'application/json; charset=utf-8' , 'idempotency-key' : idempotency_key } _request = self . http_client . post ( _query_url , headers = _headers , parameters = APIHelper . json_serialize ( request ) ) BasicAuth . apply ( _request ) _context = self . execute_request ( _request ) self . validate_response ( _context ) return APIHelper . json_deserialize ( _context . response . raw_body , GetSubscriptionItemResponse . from_dictionary )
Does a POST request to /subscriptions/{subscription_id}/items.
Does a POST request to / subscriptions / { subscription_id } / items .
"""Does a POST request to /subscriptions/{subscription_id}/items.

        Creates a new Subscription item

        Args:
            subscription_id (string): Subscription id
            request (CreateSubscriptionItemRequest): Request for creating a
                subscription item
            idempotency_key (string, optional): TODO: type description here.
                Example: 

        Returns:
            GetSubscriptionItemResponse: Response from the API. 

        Raises:
            APIException: When an error occurs while fetching the data from
                the remote API. This exception includes the HTTP Response
                code, an error message, and the HTTP body that was received in
                the request.

        """ # Prepare query URL
 # Prepare headers
 # Prepare and execute request
 # Return appropriate type

Response from the API.
Response from the API .
GetSubscriptionItemResponse
When an error occurs while fetching the data from
the remote API. This exception includes the HTTP Response
code, an error message, and the HTTP body that was received in
the request.
When an error occurs while fetching the data from the remote API . This exception includes the HTTP Response code an error message and the HTTP body that was received in the request .
APIException
self
subscription_id
None
request
Request for creating a
subscription item
Request for creating a subscription item
idempotency_key
type description here.
Example.
type description here . Example .