public function create(ApplicationCharge &$applicationCharge)
    {
        $data = $applicationCharge->exportData();
        $endpoint = '/admin/application_charges.json';
        $response = $this->request(
            '/admin/application_charges.json', 'POST', array(
            'application_charge' => $data
            )
        );
        $applicationCharge->setData($response['application_charge']);
    }
public function create(ApplicationCharge &$applicationCharge)
    {
        $data = $applicationCharge->exportData();
        $endpoint = '/admin/application_charges.json';
        $response = $this->request(
            '/admin/application_charges.json', 'POST', array(
            'application_charge' => $data
            )
        );
        $applicationCharge->setData($response['application_charge']);
    }
public function create ( ApplicationCharge & $ applicationCharge ) { $ data = $ applicationCharge -> exportData ( ) ; $ endpoint = '/admin/application_charges.json' ; $ response = $ this -> request ( '/admin/application_charges.json' , 'POST' , array ( 'application_charge' => $ data ) ) ; $ applicationCharge -> setData ( $ response [ 'application_charge' ] ) ; }
Create a new one-time application charge

@link   https://help.shopify.com/api/reference/applicationcharge#create
@param  ApplicationCharge $applicationCharge
@return void
Create a new one - time application charge