From e1a6af11a39acd1a1d5e219cfc93e6d4e35a87d0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Maurice=20Preu=C3=9F?= Date: Fri, 19 Sep 2025 15:36:28 +0000 Subject: [PATCH] introduce new scopes --- src/Id/Enums/Scope.php | 32 ++++++++++++++++++++++++++++---- 1 file changed, 28 insertions(+), 4 deletions(-) diff --git a/src/Id/Enums/Scope.php b/src/Id/Enums/Scope.php index dbeec40..4e8af15 100644 --- a/src/Id/Enums/Scope.php +++ b/src/Id/Enums/Scope.php @@ -6,11 +6,35 @@ class Scope { const USER = 'user'; const USER_READ = 'user:read'; - const ORDERS = 'orders'; - const ORDERS_READ = 'orders:read'; - const PRODUCTS = 'products'; - const PRODUCTS_READ = 'products:read'; + + const ADDRESSES = 'addresses'; + const ADDRESSES_READ = 'addresses:read'; + const BILLING = 'billing'; const BILLING_READ = 'billing:read'; + const BILLING_CLIENT = 'billing:client'; + + const INVOICES = 'invoices'; + const INVOICES_READ = 'invoices:read'; + const INVOICES_CLIENT = 'invoices:client'; + + const ORDERS = 'orders'; + const ORDERS_READ = 'orders:read'; + const ORDERS_CLIENT = 'orders:client'; + + const PAYMENT_METHODS = 'payment-methods'; + const PAYMENT_METHODS_READ = 'payment-methods:read'; + + const SUBSCRIPTIONS = 'subscriptions'; + const SUBSCRIPTIONS_READ = 'subscriptions:read'; + const SUBSCRIPTIONS_CLIENT = 'subscriptions:client'; + + const TRANSACTIONS = 'transactions'; + const TRANSACTIONS_READ = 'transactions:read'; + const TRANSACTIONS_CLIENT = 'transactions:client'; + + const SSH_KEYS = 'ssh-keys'; + const SSH_KEYS_READ = 'ssh-keys:read'; + const ADMIN = 'admin'; }