def create_cash_on_delivery_payment(cls, cash_on_delivery_payment, **kwargs):
        """Create CashOnDeliveryPayment

        Create a new CashOnDeliveryPayment
        This method makes a synchronous HTTP request by default. To make an
        asynchronous HTTP request, please pass async=True
        >>> thread = api.create_cash_on_delivery_payment(cash_on_delivery_payment, async=True)
        >>> result = thread.get()

        :param async bool
        :param CashOnDeliveryPayment cash_on_delivery_payment: Attributes of cashOnDeliveryPayment to create (required)
        :return: CashOnDeliveryPayment
                 If the method is called asynchronously,
                 returns the request thread.
        """
        kwargs['_return_http_data_only'] = True
        if kwargs.get('async'):
            return cls._create_cash_on_delivery_payment_with_http_info(cash_on_delivery_payment, **kwargs)
        else:
            (data) = cls._create_cash_on_delivery_payment_with_http_info(cash_on_delivery_payment, **kwargs)
            return data
def create_cash_on_delivery_payment ( cls , cash_on_delivery_payment , ** kwargs ) : kwargs [ '_return_http_data_only' ] = True if kwargs . get ( 'async' ) : return cls . _create_cash_on_delivery_payment_with_http_info ( cash_on_delivery_payment , ** kwargs ) else : ( data ) = cls . _create_cash_on_delivery_payment_with_http_info ( cash_on_delivery_payment , ** kwargs ) return data
Create CashOnDeliveryPayment

        Create a new CashOnDeliveryPayment
        This method makes a synchronous HTTP request by default. To make an
        asynchronous HTTP request, please pass async=True
        >>> thread = api.create_cash_on_delivery_payment(cash_on_delivery_payment, async=True)
        >>> result = thread.get()

        :param async bool
        :param CashOnDeliveryPayment cash_on_delivery_payment: Attributes of cashOnDeliveryPayment to create (required)
        :return: CashOnDeliveryPayment
                 If the method is called asynchronously,
                 returns the request thread.