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::DefaultInvoiceDeliveryTypeValues, 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



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

def address1
  @address1
end

#address2Object (readonly)

Second address of the customer



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

def address2
  @address2
end

#cityObject (readonly)

City of the customer



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

def city
  @city
end

#commentsObject (readonly)

Comments



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

def comments
  @comments
end

#cost_centerObject (readonly)

Cost center of the customer



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

def cost_center
  @cost_center
end

#country_codeObject (readonly)

Country code of the customer



43
44
45
# File 'lib/fortnox/resources/customer.rb', line 43

def country_code
  @country_code
end

#currencyObject (readonly)

Currency of the customer



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

def currency
  @currency
end

#delivery_address1Object (readonly)

First delivery address of the customer



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

def delivery_address1
  @delivery_address1
end

#delivery_address2Object (readonly)

Second delivery address of the customer



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

def delivery_address2
  @delivery_address2
end

#delivery_cityObject (readonly)

Delivery city of the customer



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

def delivery_city
  @delivery_city
end

#delivery_country_codeObject (readonly)

Delivery country code of the customer



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

def delivery_country_code
  @delivery_country_code
end

#delivery_faxObject (readonly)

Delivery fax number of the customer



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

def delivery_fax
  @delivery_fax
end

#delivery_nameObject (readonly)

Delivery name of the customer



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

def delivery_name
  @delivery_name
end

#delivery_phone1Object (readonly)

First delivery phone number of the customer



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

def delivery_phone1
  @delivery_phone1
end

#delivery_phone2Object (readonly)

Second delivery phone number of the customer



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

def delivery_phone2
  @delivery_phone2
end

#delivery_zip_codeObject (readonly)

Delivery zip code of the customer



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

def delivery_zip_code
  @delivery_zip_code
end

#emailObject (readonly)

Email address of the customer



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

def email
  @email
end

#email_invoiceObject (readonly)

Invoice email address of the customer



88
89
90
# File 'lib/fortnox/resources/customer.rb', line 88

def email_invoice
  @email_invoice
end

#email_offerObject (readonly)

Offer email address of the customer



97
98
99
# File 'lib/fortnox/resources/customer.rb', line 97

def email_offer
  @email_offer
end

#email_orderObject (readonly)

Order email address of the customer



106
107
108
# File 'lib/fortnox/resources/customer.rb', line 106

def email_order
  @email_order
end

#external_referenceObject (readonly)

External reference



202
203
204
# File 'lib/fortnox/resources/customer.rb', line 202

def external_reference
  @external_reference
end

#faxObject (readonly)

Fax number of the customer



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

def fax
  @fax
end

#invoice_administration_feeObject (readonly)

Invoice administration fee, 12 digits (incl. decimals)



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

def invoice_administration_fee
  @invoice_administration_fee
end

#invoice_discountObject (readonly)

Invoice discount, 12 digits (incl. decimals)



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

def invoice_discount
  @invoice_discount
end

#invoice_freightObject (readonly)

Invoice freight fee, 12 digits (incl. decimals)



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

def invoice_freight
  @invoice_freight
end

#invoice_remarkObject (readonly)

Invoice remark



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

def invoice_remark
  @invoice_remark
end

#organisation_numberObject (readonly)

Organisation number of the customer



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

def organisation_number
  @organisation_number
end

#our_referenceObject (readonly)

Our reference



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

def our_reference
  @our_reference
end

#phone1Object (readonly)

First phone number of the customer



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

def phone1
  @phone1
end

#phone2Object (readonly)

Second phone number of the customer



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

def phone2
  @phone2
end

#price_listObject (readonly)

Price list of the customer



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

def price_list
  @price_list
end

#projectObject (readonly)

Project of the customer



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

def project
  @project
end

#sales_accountObject (readonly)

Sales account of the customer



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

def 
  @sales_account
end

#terms_of_deliveryObject (readonly)

Terms of delivery code



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

def terms_of_delivery
  @terms_of_delivery
end

#terms_of_paymentObject (readonly)

Terms of payment code



163
164
165
# File 'lib/fortnox/resources/customer.rb', line 163

def terms_of_payment
  @terms_of_payment
end

#typeObject (readonly)

Customer type



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

def type
  @type
end

#visiting_addressObject (readonly)

Visit address of the customer



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

def visiting_address
  @visiting_address
end

#visiting_cityObject (readonly)

Visit city of the customer



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

def visiting_city
  @visiting_city
end

#visiting_country_codeObject (readonly)

Visiting country code



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

def visiting_country_code
  @visiting_country_code
end

#visiting_zip_codeObject (readonly)

Visit zip code of the customer



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

def visiting_zip_code
  @visiting_zip_code
end

#way_of_deliveryObject (readonly)

Way of delivery code



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

def way_of_delivery
  @way_of_delivery
end

#your_referenceObject (readonly)

Your reference



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

def your_reference
  @your_reference
end

#zip_codeObject (readonly)

Zip code of the customer



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

def zip_code
  @zip_code
end