mirror of
https://github.com/bitinflow/accounts.git
synced 2026-03-13 13:35:52 +00:00
Update Scope.php
This commit is contained in:
@@ -11,14 +11,52 @@ class Scope
|
||||
{
|
||||
|
||||
/*
|
||||
* v0 API
|
||||
* v3 API
|
||||
*/
|
||||
|
||||
// Deprecated scope.
|
||||
public const API = 'api';
|
||||
public const USER = 'user';
|
||||
public const USER_READ = 'user:read';
|
||||
|
||||
// Read nonpublic user information, including email address.
|
||||
public const READ_USER = 'read_user';
|
||||
public const USERS = 'users';
|
||||
public const USERS_READ = 'users:read';
|
||||
public const USERS_CREATE = 'users:create';
|
||||
|
||||
public const PAYMENTS = 'payments';
|
||||
public const PAYMENTS_READ = 'payments:read';
|
||||
public const PAYMENTS_CREATE = 'payments:create';
|
||||
public const PAYMENTS_CHECKOUT = 'payments:checkout';
|
||||
public const PAYMENTS_REVOKE = 'payments:revoke';
|
||||
public const PAYMENTS_RESUME = 'payments:resume';
|
||||
|
||||
public const PAYMENT_ORDERS = 'payment.orders';
|
||||
public const PAYMENT_ORDERS_READ = 'payment.orders:read';
|
||||
public const PAYMENT_ORDERS_CREATE = 'payment.orders:create';
|
||||
public const PAYMENT_ORDERS_CHECKOUT = 'payment.orders:checkout';
|
||||
public const PAYMENT_ORDERS_REVOKE = 'payment.orders:revoke';
|
||||
|
||||
public const PAYMENT_INVOICES = 'payment.invoices';
|
||||
public const PAYMENT_INVOICES_READ = 'payment.invoices:read';
|
||||
|
||||
public const PAYMENT_SUBSCRIPTIONS = 'payment.subscriptions';
|
||||
public const PAYMENT_SUBSCRIPTIONS_READ = 'payment.subscriptions:read';
|
||||
public const PAYMENT_SUBSCRIPTIONS_CREATE = 'payment.subscriptions:create';
|
||||
public const PAYMENT_SUBSCRIPTIONS_CHECKOUT = 'payment.subscriptions:checkout';
|
||||
public const PAYMENT_SUBSCRIPTIONS_REVOKE = 'payment.subscriptions:revoke';
|
||||
public const PAYMENT_SUBSCRIPTIONS_RESUME = 'payment.subscriptions:resume';
|
||||
|
||||
public const PAYMENT_WALLETS = 'payment.wallets';
|
||||
public const PAYMENT_WALLETS_READ = 'payment.wallets:read';
|
||||
public const PAYMENT_WALLETS_CREATE = 'payment.wallets:create';
|
||||
|
||||
public const PAYMENT_CHECKOUT_SESSIONS = 'payment.checkout-sessions';
|
||||
public const PAYMENT_CHECKOUT_SESSIONS_READ = 'payment.checkout-sessions:read';
|
||||
public const PAYMENT_CHECKOUT_SESSIONS_CREATE = 'payment.checkout-sessions:create';
|
||||
public const PAYMENT_CHECKOUT_SESSIONS_CHECKOUT = 'payment.checkout-sessions:checkout';
|
||||
public const PAYMENT_CHECKOUT_SESSIONS_REVOKE = 'payment.checkout-sessions:revoke';
|
||||
|
||||
/**
|
||||
* v2 API
|
||||
*/
|
||||
|
||||
/*
|
||||
* v1 API
|
||||
@@ -30,11 +68,22 @@ class Scope
|
||||
// Manage a authorized user object.
|
||||
public const USERS_EDIT = 'users:edit';
|
||||
|
||||
public const USERS_CREATE = 'users:create';
|
||||
// also available in v3
|
||||
// public const USERS_CREATE = 'users:create';
|
||||
|
||||
// Read authorized user´s transactions.
|
||||
public const TRANSACTIONS_READ = 'transactions:read';
|
||||
|
||||
// Create a new charge for the authorized user.
|
||||
public const CHARGES_CREATE = 'charges:create';
|
||||
}
|
||||
|
||||
/*
|
||||
* v0 API
|
||||
*/
|
||||
|
||||
// Deprecated scope.
|
||||
public const API = 'api';
|
||||
|
||||
// Read nonpublic user information, including email address.
|
||||
public const READ_USER = 'read_user';
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user