Class OAuth2Scopes
Assembly: Worldline.Acquiring.Sdk.dll
Syntax
public static class OAuth2Scopes
Properties
All
Returns all available scopes.
Declaration
public static IImmutableSet<string> All { get; }
Property Value
Methods
ForApiVersion(string)
Returns all scopes needed for all operations of the given API version.
Declaration
public static IImmutableSet<string> ForApiVersion(string apiVersion)
Parameters
Type |
Name |
Description |
string |
apiVersion |
|
Returns
ForOperation(string, string)
Returns all scopes needed for the given operation of the given API version.
Declaration
public static IImmutableSet<string> ForOperation(string apiVersion, string operationId)
Parameters
Returns
ForOperations(Func<string, string, bool>)
Returns all scopes needed for the operations that pass the given filter.
Declaration
public static IImmutableSet<string> ForOperations(Func<string, string, bool> filter)
Parameters
Type |
Name |
Description |
Func<string, string, bool> |
filter |
The filter to apply. The first argument is the API version, the second is the operation id.
|
Returns
ForOperations(string, params string[])
Returns all scopes needed for the given operations of the given API version.
Declaration
public static IImmutableSet<string> ForOperations(string apiVersion, params string[] operationIds)
Parameters
Type |
Name |
Description |
string |
apiVersion |
|
string[] |
operationIds |
|
Returns