Add optional owner gateway routing to Merchant.
Deploy Ladill Merchant / deploy (push) Successful in 44s
Deploy Ladill Merchant / deploy (push) Successful in 44s
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -45,6 +45,15 @@ class BillingClient
|
||||
return $this->get('/service-ledger', ['user' => $publicId, 'service' => $service]);
|
||||
}
|
||||
|
||||
/** @return array<string,mixed> */
|
||||
public function suiteEntitlement(string $publicId): array
|
||||
{
|
||||
return (array) ($this->get('/suite-entitlements', [
|
||||
'user' => $publicId,
|
||||
'app' => (string) config('billing.service', 'merchant'),
|
||||
])['data'] ?? []);
|
||||
}
|
||||
|
||||
/**
|
||||
* Debit the wallet. Returns true on success, false on insufficient balance
|
||||
* (HTTP 402). Idempotent by $reference.
|
||||
|
||||
Reference in New Issue
Block a user