Class: Fortnox::Customer

Inherits:
Resource
  • Object
show all
Defined in:
lib/fortnox/resources/customer.rb

Constant Summary

Constants included from Types

Types::AccountNumber, Types::AccountingMethods, Types::ArticleTypes, Types::CURRENT_HOUSEWORK_TYPES, Types::Currencies, Types::CustomerTypes, Types::DefaultDeliveryTypeValues, Types::DeliveryStates, Types::DiscountTypes, Types::Email, Types::HouseworkTypes, Types::InvoiceTypes, Types::LEGACY_HOUSEWORK_TYPES, Types::PaymentWays, Types::ProjectStatusTypes, Types::THE_TRUTH, Types::TaxReductionTypes, Types::VATTypes

Instance Attribute Summary collapse

Method Summary

Methods inherited from Resource

find, find_all_by, find_one_by, inherited, only, parse, save, search, stub

Instance Attribute Details

#address1Object (readonly)

First address of the customer



18
19
20
# File 'lib/fortnox/resources/customer.rb', line 18

def address1
  @address1
end

#address2Object (readonly)

Second address of the customer



21
22
23
# File 'lib/fortnox/resources/customer.rb', line 21

def address2
  @address2
end

#cityObject (readonly)

City of the customer



24
25
26
# File 'lib/fortnox/resources/customer.rb', line 24

def city
  @city
end

#commentsObject (readonly)

Comments



30
31
32
# File 'lib/fortnox/resources/customer.rb', line 30

def comments
  @comments
end

#cost_centerObject (readonly)

Cost center of the customer



36
37
38
# File 'lib/fortnox/resources/customer.rb', line 36

def cost_center
  @cost_center
end

#country_codeObject (readonly)

Country code of the customer



39
40
41
# File 'lib/fortnox/resources/customer.rb', line 39

def country_code
  @country_code
end

#currencyObject (readonly)

Currency of the customer



33
34
35
# File 'lib/fortnox/resources/customer.rb', line 33

def currency
  @currency
end

#delivery_address1Object (readonly)

First delivery address of the customer



51
52
53
# File 'lib/fortnox/resources/customer.rb', line 51

def delivery_address1
  @delivery_address1
end

#delivery_address2Object (readonly)

Second delivery address of the customer



54
55
56
# File 'lib/fortnox/resources/customer.rb', line 54

def delivery_address2
  @delivery_address2
end

#delivery_cityObject (readonly)

Delivery city of the customer



57
58
59
# File 'lib/fortnox/resources/customer.rb', line 57

def delivery_city
  @delivery_city
end

#delivery_country_codeObject (readonly)

Delivery country code of the customer



63
64
65
# File 'lib/fortnox/resources/customer.rb', line 63

def delivery_country_code
  @delivery_country_code
end

#delivery_faxObject (readonly)

Delivery fax number of the customer



66
67
68
# File 'lib/fortnox/resources/customer.rb', line 66

def delivery_fax
  @delivery_fax
end

#delivery_nameObject (readonly)

Delivery name of the customer



69
70
71
# File 'lib/fortnox/resources/customer.rb', line 69

def delivery_name
  @delivery_name
end

#delivery_phone1Object (readonly)

First delivery phone number of the customer



72
73
74
# File 'lib/fortnox/resources/customer.rb', line 72

def delivery_phone1
  @delivery_phone1
end

#delivery_phone2Object (readonly)

Second delivery phone number of the customer



75
76
77
# File 'lib/fortnox/resources/customer.rb', line 75

def delivery_phone2
  @delivery_phone2
end

#delivery_zip_codeObject (readonly)

Delivery zip code of the customer



78
79
80
# File 'lib/fortnox/resources/customer.rb', line 78

def delivery_zip_code
  @delivery_zip_code
end

#emailObject (readonly)

Email address of the customer



81
82
83
# File 'lib/fortnox/resources/customer.rb', line 81

def email
  @email
end

#email_invoiceObject (readonly)

Invoice email address of the customer



84
85
86
# File 'lib/fortnox/resources/customer.rb', line 84

def email_invoice
  @email_invoice
end

#email_offerObject (readonly)

Offer email address of the customer



93
94
95
# File 'lib/fortnox/resources/customer.rb', line 93

def email_offer
  @email_offer
end

#email_orderObject (readonly)

Order email address of the customer



102
103
104
# File 'lib/fortnox/resources/customer.rb', line 102

def email_order
  @email_order
end

#external_referenceObject (readonly)

External reference



198
199
200
# File 'lib/fortnox/resources/customer.rb', line 198

def external_reference
  @external_reference
end

#faxObject (readonly)

Fax number of the customer



111
112
113
# File 'lib/fortnox/resources/customer.rb', line 111

def fax
  @fax
end

#invoice_administration_feeObject (readonly)

Invoice administration fee, 12 digits (incl. decimals)



114
115
116
# File 'lib/fortnox/resources/customer.rb', line 114

def invoice_administration_fee
  @invoice_administration_fee
end

#invoice_discountObject (readonly)

Invoice discount, 12 digits (incl. decimals)



117
118
119
# File 'lib/fortnox/resources/customer.rb', line 117

def invoice_discount
  @invoice_discount
end

#invoice_freightObject (readonly)

Invoice freight fee, 12 digits (incl. decimals)



120
121
122
# File 'lib/fortnox/resources/customer.rb', line 120

def invoice_freight
  @invoice_freight
end

#invoice_remarkObject (readonly)

Invoice remark



123
124
125
# File 'lib/fortnox/resources/customer.rb', line 123

def invoice_remark
  @invoice_remark
end

#organisation_numberObject (readonly)

Organisation number of the customer



129
130
131
# File 'lib/fortnox/resources/customer.rb', line 129

def organisation_number
  @organisation_number
end

#our_referenceObject (readonly)

Our reference



132
133
134
# File 'lib/fortnox/resources/customer.rb', line 132

def our_reference
  @our_reference
end

#phoneObject (readonly)

Phone number of the customer. Only present in collection responses.



195
196
197
# File 'lib/fortnox/resources/customer.rb', line 195

def phone
  @phone
end

#phone1Object (readonly)

First phone number of the customer



135
136
137
# File 'lib/fortnox/resources/customer.rb', line 135

def phone1
  @phone1
end

#phone2Object (readonly)

Second phone number of the customer



138
139
140
# File 'lib/fortnox/resources/customer.rb', line 138

def phone2
  @phone2
end

#price_listObject (readonly)

Price list of the customer



141
142
143
# File 'lib/fortnox/resources/customer.rb', line 141

def price_list
  @price_list
end

#projectObject (readonly)

Project of the customer



144
145
146
# File 'lib/fortnox/resources/customer.rb', line 144

def project
  @project
end

#sales_accountObject (readonly)

Sales account of the customer



147
148
149
# File 'lib/fortnox/resources/customer.rb', line 147

def 
  @sales_account
end

#terms_of_deliveryObject (readonly)

Terms of delivery code



153
154
155
# File 'lib/fortnox/resources/customer.rb', line 153

def terms_of_delivery
  @terms_of_delivery
end

#terms_of_paymentObject (readonly)

Terms of payment code



156
157
158
# File 'lib/fortnox/resources/customer.rb', line 156

def terms_of_payment
  @terms_of_payment
end

#typeObject (readonly)

Customer type



159
160
161
# File 'lib/fortnox/resources/customer.rb', line 159

def type
  @type
end

#visiting_addressObject (readonly)

Visit address of the customer



168
169
170
# File 'lib/fortnox/resources/customer.rb', line 168

def visiting_address
  @visiting_address
end

#visiting_cityObject (readonly)

Visit city of the customer



171
172
173
# File 'lib/fortnox/resources/customer.rb', line 171

def visiting_city
  @visiting_city
end

#visiting_country_codeObject (readonly)

Visiting country code



177
178
179
# File 'lib/fortnox/resources/customer.rb', line 177

def visiting_country_code
  @visiting_country_code
end

#visiting_zip_codeObject (readonly)

Visit zip code of the customer



180
181
182
# File 'lib/fortnox/resources/customer.rb', line 180

def visiting_zip_code
  @visiting_zip_code
end

#way_of_deliveryObject (readonly)

Way of delivery code



183
184
185
# File 'lib/fortnox/resources/customer.rb', line 183

def way_of_delivery
  @way_of_delivery
end

#your_referenceObject (readonly)

Your reference



186
187
188
# File 'lib/fortnox/resources/customer.rb', line 186

def your_reference
  @your_reference
end

#zip_codeObject (readonly)

Zip code of the customer



189
190
191
# File 'lib/fortnox/resources/customer.rb', line 189

def zip_code
  @zip_code
end