Class: Pago::V2026_04::Models::OAuth2ClientConfigurationUpdate

Inherits:
Model
  • Object
show all
Defined in:
lib/pago/v2026_04/models.rb,
sig/pago/v2026_04/generated.rbs

Constant Summary collapse

JSON_KEYS =

Returns:

  • (Hash[Symbol, String])
{
  redirect_uris: "redirect_uris",
  token_endpoint_auth_method: "token_endpoint_auth_method",
  grant_types: "grant_types",
  response_types: "response_types",
  scope: "scope",
  client_name: "client_name",
  client_uri: "client_uri",
  logo_uri: "logo_uri",
  tos_uri: "tos_uri",
  policy_uri: "policy_uri",
  default_sub_type: "default_sub_type",
  client_id: "client_id"
}.freeze
REQUIRED_KEYS =

Returns:

  • (Array[String])
["redirect_uris", "client_name", "client_id"].freeze

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from Model

#==, #[], #field_set?, #hash, #inspect, json_keys, required_json_keys, #to_json, #to_json_hash, wrap_raw

Constructor Details

#initialize(redirect_uris:, token_endpoint_auth_method: ::Pago::UNSET, grant_types: ::Pago::UNSET, response_types: ::Pago::UNSET, scope: ::Pago::UNSET, client_name:, client_uri: ::Pago::UNSET, logo_uri: ::Pago::UNSET, tos_uri: ::Pago::UNSET, policy_uri: ::Pago::UNSET, default_sub_type: ::Pago::UNSET, client_id:) ⇒ OAuth2ClientConfigurationUpdate

Returns a new instance of OAuth2ClientConfigurationUpdate.

Parameters:

  • redirect_uris: (Array[String])
  • token_endpoint_auth_method: (String, nil) (defaults to: ::Pago::UNSET)
  • grant_types: (Array[untyped], nil) (defaults to: ::Pago::UNSET)
  • response_types: (Array[String], nil) (defaults to: ::Pago::UNSET)
  • scope: (String, nil) (defaults to: ::Pago::UNSET)
  • client_name: (String)
  • client_uri: (String, nil) (defaults to: ::Pago::UNSET)
  • logo_uri: (String, nil) (defaults to: ::Pago::UNSET)
  • tos_uri: (String, nil) (defaults to: ::Pago::UNSET)
  • policy_uri: (String, nil) (defaults to: ::Pago::UNSET)
  • default_sub_type: (String, nil) (defaults to: ::Pago::UNSET)
  • client_id: (String)


31669
31670
31671
31672
31673
31674
31675
31676
31677
31678
31679
31680
31681
31682
31683
31684
31685
31686
31687
31688
31689
31690
31691
31692
31693
31694
31695
31696
# File 'lib/pago/v2026_04/models.rb', line 31669

def initialize(
  redirect_uris:,
  token_endpoint_auth_method: ::Pago::UNSET,
  grant_types: ::Pago::UNSET,
  response_types: ::Pago::UNSET,
  scope: ::Pago::UNSET,
  client_name:,
  client_uri: ::Pago::UNSET,
  logo_uri: ::Pago::UNSET,
  tos_uri: ::Pago::UNSET,
  policy_uri: ::Pago::UNSET,
  default_sub_type: ::Pago::UNSET,
  client_id:
)
  super()
  assign(:redirect_uris, redirect_uris)
  assign(:token_endpoint_auth_method, token_endpoint_auth_method)
  assign(:grant_types, grant_types)
  assign(:response_types, response_types)
  assign(:scope, scope)
  assign(:client_name, client_name)
  assign(:client_uri, client_uri)
  assign(:logo_uri, logo_uri)
  assign(:tos_uri, tos_uri)
  assign(:policy_uri, policy_uri)
  assign(:default_sub_type, default_sub_type)
  assign(:client_id, client_id)
end

Instance Attribute Details

#client_idString (readonly)

Returns:

  • (String)


31667
31668
31669
# File 'lib/pago/v2026_04/models.rb', line 31667

def client_id
  @client_id
end

#client_nameString (readonly)

Returns:

  • (String)


31649
31650
31651
# File 'lib/pago/v2026_04/models.rb', line 31649

def client_name
  @client_name
end

#client_uriString? (readonly)

Returns:

  • (String, nil)


31652
31653
31654
# File 'lib/pago/v2026_04/models.rb', line 31652

def client_uri
  @client_uri
end

#default_sub_typeString (readonly)

Returns:

  • (String)


31664
31665
31666
# File 'lib/pago/v2026_04/models.rb', line 31664

def default_sub_type
  @default_sub_type
end

#grant_typesArray<String> (readonly)

Returns:

  • (Array<String>)


31640
31641
31642
# File 'lib/pago/v2026_04/models.rb', line 31640

def grant_types
  @grant_types
end

#logo_uriString? (readonly)

Returns:

  • (String, nil)


31655
31656
31657
# File 'lib/pago/v2026_04/models.rb', line 31655

def logo_uri
  @logo_uri
end

#policy_uriString? (readonly)

Returns:

  • (String, nil)


31661
31662
31663
# File 'lib/pago/v2026_04/models.rb', line 31661

def policy_uri
  @policy_uri
end

#redirect_urisArray<String> (readonly)

Returns:

  • (Array<String>)


31634
31635
31636
# File 'lib/pago/v2026_04/models.rb', line 31634

def redirect_uris
  @redirect_uris
end

#response_typesArray<String> (readonly)

Returns:

  • (Array<String>)


31643
31644
31645
# File 'lib/pago/v2026_04/models.rb', line 31643

def response_types
  @response_types
end

#scopeString (readonly)

Returns:

  • (String)


31646
31647
31648
# File 'lib/pago/v2026_04/models.rb', line 31646

def scope
  @scope
end

#token_endpoint_auth_methodString (readonly)

Returns:

  • (String)


31637
31638
31639
# File 'lib/pago/v2026_04/models.rb', line 31637

def token_endpoint_auth_method
  @token_endpoint_auth_method
end

#tos_uriString? (readonly)

Returns:

  • (String, nil)


31658
31659
31660
# File 'lib/pago/v2026_04/models.rb', line 31658

def tos_uri
  @tos_uri
end

Class Method Details

.from_json(data) ⇒ OAuth2ClientConfigurationUpdate?

Parameters:

  • data (Hash, String, nil)

Returns:



31700
31701
31702
31703
31704
31705
31706
31707
31708
31709
31710
31711
31712
31713
31714
31715
31716
31717
31718
31719
31720
31721
31722
# File 'lib/pago/v2026_04/models.rb', line 31700

def self.from_json(data)
  data = ::JSON.parse(data) if data.is_a?(String)
  data = ::Pago::Serde.object(data)
  return nil if data.nil?

  wrap_raw(
    new(
      redirect_uris: (data.key?("redirect_uris") ? data["redirect_uris"] : ::Pago::UNSET),
      token_endpoint_auth_method: (data.key?("token_endpoint_auth_method") ? data["token_endpoint_auth_method"] : ::Pago::UNSET),
      grant_types: (data.key?("grant_types") ? data["grant_types"] : ::Pago::UNSET),
      response_types: (data.key?("response_types") ? data["response_types"] : ::Pago::UNSET),
      scope: (data.key?("scope") ? data["scope"] : ::Pago::UNSET),
      client_name: (data.key?("client_name") ? data["client_name"] : ::Pago::UNSET),
      client_uri: (data.key?("client_uri") ? data["client_uri"] : ::Pago::UNSET),
      logo_uri: (data.key?("logo_uri") ? data["logo_uri"] : ::Pago::UNSET),
      tos_uri: (data.key?("tos_uri") ? data["tos_uri"] : ::Pago::UNSET),
      policy_uri: (data.key?("policy_uri") ? data["policy_uri"] : ::Pago::UNSET),
      default_sub_type: (data.key?("default_sub_type") ? data["default_sub_type"] : ::Pago::UNSET),
      client_id: (data.key?("client_id") ? data["client_id"] : ::Pago::UNSET)
    ),
    data
  )
end