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, only, parse, save, search, stub

Instance Attribute Details

#address1Object (readonly)

First address of the customer



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

def address1
  @address1
end

#address2Object (readonly)

Second address of the customer



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

def address2
  @address2
end

#cityObject (readonly)

City of the customer



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

def city
  @city
end

#commentsObject (readonly)

Comments



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

def comments
  @comments
end

#cost_centerObject (readonly)

Cost center of the customer



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

def cost_center
  @cost_center
end

#country_codeObject (readonly)

Country code of the customer



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

def country_code
  @country_code
end

#currencyObject (readonly)

Currency of the customer



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

def currency
  @currency
end

#delivery_address1Object (readonly)

First delivery address of the customer



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

def delivery_address1
  @delivery_address1
end

#delivery_address2Object (readonly)

Second delivery address of the customer



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

def delivery_address2
  @delivery_address2
end

#delivery_cityObject (readonly)

Delivery city of the customer



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

def delivery_city
  @delivery_city
end

#delivery_country_codeObject (readonly)

Delivery country code of the customer



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

def delivery_country_code
  @delivery_country_code
end

#delivery_faxObject (readonly)

Delivery fax number of the customer



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

def delivery_fax
  @delivery_fax
end

#delivery_nameObject (readonly)

Delivery name of the customer



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

def delivery_name
  @delivery_name
end

#delivery_phone1Object (readonly)

First delivery phone number of the customer



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

def delivery_phone1
  @delivery_phone1
end

#delivery_phone2Object (readonly)

Second delivery phone number of the customer



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

def delivery_phone2
  @delivery_phone2
end

#delivery_zip_codeObject (readonly)

Delivery zip code of the customer



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

def delivery_zip_code
  @delivery_zip_code
end

#emailObject (readonly)

Email address of the customer



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

def email
  @email
end

#email_invoiceObject (readonly)

Invoice email address of the customer



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

def email_invoice
  @email_invoice
end

#email_offerObject (readonly)

Offer email address of the customer



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

def email_offer
  @email_offer
end

#email_orderObject (readonly)

Order email address of the customer



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

def email_order
  @email_order
end

#external_referenceObject (readonly)

External reference



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

def external_reference
  @external_reference
end

#faxObject (readonly)

Fax number of the customer



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

def fax
  @fax
end

#invoice_administration_feeObject (readonly)

Invoice administration fee, 12 digits (incl. decimals)



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

def invoice_administration_fee
  @invoice_administration_fee
end

#invoice_discountObject (readonly)

Invoice discount, 12 digits (incl. decimals)



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

def invoice_discount
  @invoice_discount
end

#invoice_freightObject (readonly)

Invoice freight fee, 12 digits (incl. decimals)



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

def invoice_freight
  @invoice_freight
end

#invoice_remarkObject (readonly)

Invoice remark



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

def invoice_remark
  @invoice_remark
end

#organisation_numberObject (readonly)

Organisation number of the customer



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

def organisation_number
  @organisation_number
end

#our_referenceObject (readonly)

Our reference



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

def our_reference
  @our_reference
end

#phoneObject (readonly)

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



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

def phone
  @phone
end

#phone1Object (readonly)

First phone number of the customer



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

def phone1
  @phone1
end

#phone2Object (readonly)

Second phone number of the customer



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

def phone2
  @phone2
end

#price_listObject (readonly)

Price list of the customer



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

def price_list
  @price_list
end

#projectObject (readonly)

Project of the customer



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

def project
  @project
end

#sales_accountObject (readonly)

Sales account of the customer



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

def 
  @sales_account
end

#terms_of_deliveryObject (readonly)

Terms of delivery code



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

def terms_of_delivery
  @terms_of_delivery
end

#terms_of_paymentObject (readonly)

Terms of payment code



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

def terms_of_payment
  @terms_of_payment
end

#typeObject (readonly)

Customer type



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

def type
  @type
end

#visiting_addressObject (readonly)

Visit address of the customer



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

def visiting_address
  @visiting_address
end

#visiting_cityObject (readonly)

Visit city of the customer



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

def visiting_city
  @visiting_city
end

#visiting_country_codeObject (readonly)

Visiting country code



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

def visiting_country_code
  @visiting_country_code
end

#visiting_zip_codeObject (readonly)

Visit zip code of the customer



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

def visiting_zip_code
  @visiting_zip_code
end

#way_of_deliveryObject (readonly)

Way of delivery code



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

def way_of_delivery
  @way_of_delivery
end

#your_referenceObject (readonly)

Your reference



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

def your_reference
  @your_reference
end

#zip_codeObject (readonly)

Zip code of the customer



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

def zip_code
  @zip_code
end