Module: GenesisRuby::Api::Mixins::Requests::NonFinancial::Kyc::KycShippingInfoAttributes

Included in:
Requests::NonFinancial::Kyc::Transaction::Create
Defined in:
lib/genesis_ruby/api/mixins/requests/non_financial/kyc/kyc_shipping_info_attributes.rb

Overview

Mixin KycShippingInfoAttributes for KYC Non-Financial API services

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#shipping_address1Object

Returns the value of attribute shipping_address1.



12
13
14
# File 'lib/genesis_ruby/api/mixins/requests/non_financial/kyc/kyc_shipping_info_attributes.rb', line 12

def shipping_address1
  @shipping_address1
end

#shipping_address2Object

Returns the value of attribute shipping_address2.



12
13
14
# File 'lib/genesis_ruby/api/mixins/requests/non_financial/kyc/kyc_shipping_info_attributes.rb', line 12

def shipping_address2
  @shipping_address2
end

#shipping_cityObject

Returns the value of attribute shipping_city.



12
13
14
# File 'lib/genesis_ruby/api/mixins/requests/non_financial/kyc/kyc_shipping_info_attributes.rb', line 12

def shipping_city
  @shipping_city
end

#shipping_countryObject

Returns the value of attribute shipping_country.



14
15
16
# File 'lib/genesis_ruby/api/mixins/requests/non_financial/kyc/kyc_shipping_info_attributes.rb', line 14

def shipping_country
  @shipping_country
end

#shipping_customer_emailObject

Returns the value of attribute shipping_customer_email.



14
15
16
# File 'lib/genesis_ruby/api/mixins/requests/non_financial/kyc/kyc_shipping_info_attributes.rb', line 14

def shipping_customer_email
  @shipping_customer_email
end

#shipping_first_nameObject

Returns the value of attribute shipping_first_name.



12
13
14
# File 'lib/genesis_ruby/api/mixins/requests/non_financial/kyc/kyc_shipping_info_attributes.rb', line 12

def shipping_first_name
  @shipping_first_name
end

#shipping_last_nameObject

Returns the value of attribute shipping_last_name.



12
13
14
# File 'lib/genesis_ruby/api/mixins/requests/non_financial/kyc/kyc_shipping_info_attributes.rb', line 12

def shipping_last_name
  @shipping_last_name
end

#shipping_phone1Object

Returns the value of attribute shipping_phone1.



14
15
16
# File 'lib/genesis_ruby/api/mixins/requests/non_financial/kyc/kyc_shipping_info_attributes.rb', line 14

def shipping_phone1
  @shipping_phone1
end

#shipping_provinceObject

Returns the value of attribute shipping_province.



12
13
14
# File 'lib/genesis_ruby/api/mixins/requests/non_financial/kyc/kyc_shipping_info_attributes.rb', line 12

def shipping_province
  @shipping_province
end

#shipping_zip_codeObject

Returns the value of attribute shipping_zip_code.



12
13
14
# File 'lib/genesis_ruby/api/mixins/requests/non_financial/kyc/kyc_shipping_info_attributes.rb', line 12

def shipping_zip_code
  @shipping_zip_code
end

Instance Method Details

#shipping_gender=(value) ⇒ Object

Sets the shipping_gender attribute



40
41
42
43
44
45
46
47
48
# File 'lib/genesis_ruby/api/mixins/requests/non_financial/kyc/kyc_shipping_info_attributes.rb', line 40

def shipping_gender=(value)
  allowed_options(
    attribute: __method__,
    allowed: Api::Constants::NonFinancial::Kyc::Genders.all,
    value: value,
    error_message: 'Invalid gender for Create Transaction shipping gender',
    allow_empty: true
  )
end