public function create(ApplicationCredit &$applicationCredit)
    {
        $data = $applicationCredit->exportData();
        $endpoint = '/admin/application_credits.json';
        $response = $this->request(
            $endpoint, 'POST', array(
            'application_charge' => $data
            )
        );
        $applicationCredit->setData($response['application_credit']);
    }
public function create(ApplicationCredit &$applicationCredit)
    {
        $data = $applicationCredit->exportData();
        $endpoint = '/admin/application_credits.json';
        $response = $this->request(
            $endpoint, 'POST', array(
            'application_charge' => $data
            )
        );
        $applicationCredit->setData($response['application_credit']);
    }
public function create ( ApplicationCredit & $ applicationCredit ) { $ data = $ applicationCredit -> exportData ( ) ; $ endpoint = '/admin/application_credits.json' ; $ response = $ this -> request ( $ endpoint , 'POST' , array ( 'application_charge' => $ data ) ) ; $ applicationCredit -> setData ( $ response [ 'application_credit' ] ) ; }
Create an application credit

@link   https://help.shopify.com/api/reference/applicationcredit#create
@param  ApplicationCredit $applicationCredit
@return void
Create an application credit