You are here

public function LockrAdmin::upateKeyringHasCreditCard in Lockr 7.3

Parameters

string $keyring_id:

bool $has_cc:

File

vendor/lockr/lockr/src/LockrAdmin.php, line 79

Class

LockrAdmin

Namespace

Lockr

Code

public function upateKeyringHasCreditCard($keyring_id, $has_cc) {
  $query = <<<'EOQ'
mutation UpdateKeyring($input: UpdateKeyringHasCreditCard!) {
    updateKeyringHasCreditCard(input: $input) {
        id
    }
}
EOQ;
  $this->client
    ->query([
    'query' => $query,
    'variables' => [
      'input' => [
        'keyringId' => $keyring_id,
        'hasCreditCard' => $has_cc,
      ],
    ],
  ]);
}