Class: AbacatePay::Resources::Customers::Metadata

Inherits:
Resource
  • Object
show all
Defined in:
lib/abacate_pay/resources/customers/metadata.rb

Overview

Represents metadata for a customer in the AbacatePay system.

This class contains additional information about a customer, such as their name, contact details, and tax identification number.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(data) ⇒ Metadata

Creates a new Metadata instance

Parameters:

  • data (Hash)

    The metadata properties



26
27
28
# File 'lib/abacate_pay/resources/customers/metadata.rb', line 26

def initialize(data)
  fill(data)
end

Instance Attribute Details

#cellphoneString?

Returns Customer's cellphone number.

Returns:

  • (String, nil)

    Customer's cellphone number



15
16
17
# File 'lib/abacate_pay/resources/customers/metadata.rb', line 15

def cellphone
  @cellphone
end

#emailString?

Returns Customer's email address.

Returns:

  • (String, nil)

    Customer's email address



18
19
20
# File 'lib/abacate_pay/resources/customers/metadata.rb', line 18

def email
  @email
end

#nameString?

Returns Customer's name.

Returns:

  • (String, nil)

    Customer's name



12
13
14
# File 'lib/abacate_pay/resources/customers/metadata.rb', line 12

def name
  @name
end

#tax_idString?

Returns Customer's tax identification number.

Returns:

  • (String, nil)

    Customer's tax identification number



21
22
23
# File 'lib/abacate_pay/resources/customers/metadata.rb', line 21

def tax_id
  @tax_id
end