Class: Braintree::BankAccountInstantVerificationJwtRequest

Inherits:
Object
  • Object
show all
Includes:
BaseModule
Defined in:
lib/braintree/bank_account_instant_verification_jwt_request.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from BaseModule

included

Methods included from Braintree::BaseModule::Methods

#copy_instance_variables_from_object, #return_object_or_raise, #set_instance_variables_from_hash, #singleton_class

Constructor Details

#initialize(attributes = {}) ⇒ BankAccountInstantVerificationJwtRequest



7
8
9
# File 'lib/braintree/bank_account_instant_verification_jwt_request.rb', line 7

def initialize(attributes = {})
  set_instance_variables_from_hash(attributes)
end

Instance Attribute Details

#business_nameObject

Returns the value of attribute business_name.



5
6
7
# File 'lib/braintree/bank_account_instant_verification_jwt_request.rb', line 5

def business_name
  @business_name
end

#cancel_urlObject

Returns the value of attribute cancel_url.



5
6
7
# File 'lib/braintree/bank_account_instant_verification_jwt_request.rb', line 5

def cancel_url
  @cancel_url
end

#return_urlObject

Returns the value of attribute return_url.



5
6
7
# File 'lib/braintree/bank_account_instant_verification_jwt_request.rb', line 5

def return_url
  @return_url
end

Instance Method Details

#to_graphql_variablesObject



11
12
13
14
15
16
17
18
19
# File 'lib/braintree/bank_account_instant_verification_jwt_request.rb', line 11

def to_graphql_variables
  variables = {:input => {}}

  variables[:input][:businessName] = business_name if business_name
  variables[:input][:returnUrl] = return_url if return_url
  variables[:input][:cancelUrl] = cancel_url if cancel_url

  variables
end