Class: DnaPaymentsPartnerReportingSettlementApIs::OauthScope
- Inherits:
-
Object
- Object
- DnaPaymentsPartnerReportingSettlementApIs::OauthScope
- Defined in:
- lib/dna_payments_partner_reporting_settlement_ap_is/models/oauth_scope.rb
Overview
OAuth 2 scopes supported by the API
Constant Summary collapse
- OAUTH_SCOPE =
[ # Access to the Partner Reporting and Settlement APIs. PARTNERS_REPORTING = 'partners_reporting'.freeze ].freeze
Class Method Summary collapse
Class Method Details
.from_value(value, default_value = PARTNERS_REPORTING) ⇒ Object
20 21 22 23 24 |
# File 'lib/dna_payments_partner_reporting_settlement_ap_is/models/oauth_scope.rb', line 20 def self.from_value(value, default_value = PARTNERS_REPORTING) return default_value if value.nil? default_value end |
.validate(value) ⇒ Object
14 15 16 17 18 |
# File 'lib/dna_payments_partner_reporting_settlement_ap_is/models/oauth_scope.rb', line 14 def self.validate(value) return false if value.nil? OAUTH_SCOPE.include?(value) end |