Class: Pokepay::Request::CreateOrganization

Inherits:
Request
  • Object
show all
Defined in:
lib/pokepay_partner_ruby_sdk/request/create_organization.rb

Instance Attribute Summary collapse

Attributes inherited from Request

#body_params, #method, #path

Instance Method Summary collapse

Constructor Details

#initialize(code, name, private_money_ids, issuer_admin_user_email, member_admin_user_email, rest_args = {}) ⇒ CreateOrganization

Returns a new instance of CreateOrganization.



7
8
9
10
11
12
13
14
15
16
# File 'lib/pokepay_partner_ruby_sdk/request/create_organization.rb', line 7

def initialize(code, name, private_money_ids, issuer_admin_user_email, member_admin_user_email, rest_args = {})
  @path = "/organizations"
  @method = "POST"
  @body_params = { "code" => code,
                   "name" => name,
                   "private_money_ids" => private_money_ids,
                   "issuer_admin_user_email" => issuer_admin_user_email,
                   "member_admin_user_email" => member_admin_user_email }.merge(rest_args)
  @response_class = Pokepay::Response::Organization
end

Instance Attribute Details

#response_classObject (readonly)

Returns the value of attribute response_class.



17
18
19
# File 'lib/pokepay_partner_ruby_sdk/request/create_organization.rb', line 17

def response_class
  @response_class
end