Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
40 changes: 29 additions & 11 deletions checkout_sdk/oauth_scopes.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,20 @@ class OAuthScopes(str, Enum):
VAULT = 'vault'
VAULT_INSTRUMENTS = 'vault:instruments'
VAULT_TOKENIZATION = 'vault:tokenization'
VAULT_CUSTOMERS = 'vault:customers'
VAULT_REAL_TIME_ACCOUNT_UPDATER = 'vault:real-time-account-updater'
VAULT_APME_ENROLLMENT = 'vault:apme-enrollment'
VAULT_CARD_METADATA = 'vault:card-metadata'
VAULT_NETWORK_TOKENS = 'vault:network-tokens'
GATEWAY = 'gateway'
GATEWAY_PAYMENT = 'gateway:payment'
GATEWAY_PAYMENT_DETAILS = 'gateway:payment-details'
GATEWAY_PAYMENT_AUTHORIZATION = 'gateway:payment-authorizations'
GATEWAY_PAYMENT_VOIDS = 'gateway:payment-voids'
GATEWAY_PAYMENT_CAPTURES = 'gateway:payment-captures'
GATEWAY_PAYMENT_REFUNDS = 'gateway:payment-refunds'
GATEWAY_PAYMENT_CANCELLATIONS = 'gateway:payment-cancellations'
GATEWAY_PAYMENT_CONTEXTS = 'gateway:payment-contexts'
FX = 'fx'
PAYOUTS_BANK_DETAILS = 'payouts:bank-details'
SESSIONS_APP = 'sessions:app'
Expand All @@ -23,33 +29,45 @@ class OAuthScopes(str, Enum):
DISPUTES_VIEW = 'disputes:view'
DISPUTES_PROVIDE_EVIDENCE = 'disputes:provide-evidence'
DISPUTES_ACCEPT = 'disputes:accept'
DISPUTES_SCHEME_FILES = 'disputes:scheme-files'
MARKETPLACE = 'marketplace'
ACCOUNTS = 'accounts'
TRANSFERS = 'transfers'
TRANSFERS_CREATE = 'transfers:create'
TRANSFERS_VIEW = 'transfers:view'
FLOW = 'flow'
FLOW_WORKFLOWS = 'flow:workflows'
FLOW_EVENTS = 'flow:events'
FLOW_REFLOW = 'flow:reflow'
FILES = 'files'
FILES_RETRIEVE = 'files:retrieve'
FILES_UPLOAD = 'files:upload'
FILES_DOWNLOAD = 'files:download'
TRANSFERS = 'transfers'
TRANSFERS_CREATE = 'transfers:create'
TRANSFERS_VIEW = 'transfers:view'
BALANCES = 'balances'
BALANCES_VIEW = 'balances:view'
MIDDLEWARE = 'middleware'
MIDDLEWARE_MERCHANTS_SECRET = 'middleware:merchants-secret'
MIDDLEWARE_MERCHANTS_PUBLIC = 'middleware:merchants-public'
REPORTS = 'reports'
REPORTS_VIEW = 'reports:view'
FINANCIAL_ACTIONS = 'financial-actions'
FINANCIAL_ACTIONS_VIEW = 'financial-actions:view'

MIDDLEWARE = 'middleware'
MIDDLEWARE_MERCHANTS_SECRET = 'middleware:merchants-secret'
MIDDLEWARE_MERCHANTS_PUBLIC = 'middleware:merchants-public'
ISSUING_CLIENT = 'issuing:client'
CARD_MANAGEMENT = 'card-management'
ISSUING_CARD_MGMT = 'issuing:card-mgmt'
ISSUING_CARD_MANAGEMENT_READ = 'issuing:card-management-read'
ISSUING_CARD_MANAGEMENT_WRITE = 'issuing:card-management-write'
ISSUING_CLIENT = 'issuing:client'
ISSUING_CONTROLS_READ = 'issuing:controls-read'
ISSUING_CONTROLS_WRITE = 'issuing:controls-write'

PAYMENT_CONTEXTS = 'Payment Contexts'

ISSUING_TRANSACTIONS_READ = 'issuing:transactions-read'
ISSUING_TRANSACTIONS_WRITE = 'issuing:transactions-write'
ISSUING_DISPUTES = 'issuing-disputes'
ISSUING_DISPUTES_READ = 'issuing:disputes-read'
ISSUING_DISPUTES_WRITE = 'issuing:disputes-write'
TRANSACTIONS = 'transactions'
IDENTITY_VERIFICATION = 'identity-verification'
PAYMENT_CONTEXT = 'Payment Context'
FORWARD = 'forward'
FORWARD_SECRETS = 'forward:secrets'
PAYMENT_SESSIONS = 'payment-sessions'
PAYMENTS_SEARCH = 'payments:search'
4 changes: 2 additions & 2 deletions tests/payments/setups/payment_setups_integration_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ def test_should_create_payment_setup(default_api):
assert response.processing_channel_id == request.processing_channel_id
assert response.amount == request.amount
assert response.currency == request.currency
assert response.payment_type == request.payment_type
assert str(response.payment_type).lower() == request.payment_type.lower()
assert response.reference == request.reference
assert response.description == request.description

Expand Down Expand Up @@ -89,7 +89,7 @@ def test_should_get_payment_setup(default_api):
assert response.processing_channel_id == create_request.processing_channel_id
assert response.amount == create_request.amount
assert response.currency == create_request.currency
assert response.payment_type == create_request.payment_type
assert str(response.payment_type).lower() == create_request.payment_type.lower()
assert response.reference == create_request.reference
assert response.description == create_request.description

Expand Down
Loading