cadooz 2.2.2 → 2.2.3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: b95bab0303729348b4a61d02e2321f4aba429814
4
- data.tar.gz: e0acb5d2d6aac4a5cb1074df06f0b9ddcbf139cd
3
+ metadata.gz: 2919e5a5f61b1fc0ae7758feb00de29940ffebcf
4
+ data.tar.gz: d34716dad10086c779714d434257f1cc25c9f950
5
5
  SHA512:
6
- metadata.gz: 32ab6cd766893896975bbdf1eb68e6655812fe281a0473beed69554862a223ca78b00cb2901c6dc832d0f12f7c82e15495cbe32bd7f3c6914a0beea6676c8b0a
7
- data.tar.gz: 33121a0fd199eb902a36f16ce1dd5e324efdd37f8a4253761d2747d97dc134e30b2c70fa56213733477d06293650ab1fd90422cf09f2c9a6c0300528b066ab33
6
+ metadata.gz: de490f422521be2291f55b167cb1d101dc13174b0e00fcfa2fc8b868ad1a634aa2d330f4e7d2dd4aeaec41f07c906ed0fa0388083b98d4e5c9970ec8b5f015cb
7
+ data.tar.gz: 4e1da026047d4acfaeb073682c5ec888876ee63be7008cd6bd952f718a4078abd363cd70db671d5d2f34b18eec36945d1939796015d23bc368d84f7b1789c656
@@ -5,19 +5,19 @@ class Cadooz::Mutable::Address
5
5
  :lastname, :phone, :salutation, :state, :street,
6
6
  :street_addon, :zipcode
7
7
 
8
- def initialize
9
- @company = nil
10
- @country = nil
11
- @department = nil
12
- @email = nil
13
- @firstname = nil
14
- @lastname = nil
15
- @phone = nil
16
- @salutation = nil
17
- @state = nil
18
- @street = nil
19
- @street_addon = nil
20
- @zipcode = nil
8
+ def initialize(args={})
9
+ @company = args[:company]
10
+ @country = args[:country]
11
+ @department = args[:department]
12
+ @email = args[:email]
13
+ @firstname = args[:firstname]
14
+ @lastname = args[:lastname]
15
+ @phone = args[:phone]
16
+ @salutation = args[:salutation]
17
+ @state = args[:state]
18
+ @street = args[:street]
19
+ @street_addon = street_addon
20
+ @zipcode = args[:zipcode]
21
21
 
22
22
  default_value_for_nil
23
23
  end
@@ -3,9 +3,9 @@ class Cadooz::Mutable::GreetingCard
3
3
 
4
4
  attr_accessor :subject, :text
5
5
 
6
- def initialize
7
- @subject = nil
8
- @text = nil
6
+ def initialize(args={})
7
+ @subject = args[:subject]
8
+ @text = args[:text]
9
9
 
10
10
  default_value_for_nil
11
11
  end
@@ -3,9 +3,9 @@ class Cadooz::Mutable::InvoiceInformation
3
3
 
4
4
  attr_accessor :debitor_number, :value
5
5
 
6
- def initialize
7
- @debitor_number = nil
8
- @value = nil
6
+ def initialize(args={})
7
+ @debitor_number = args[:debitor_number]
8
+ @value = args[:value]
9
9
 
10
10
  default_value_for_nil
11
11
  end
@@ -7,27 +7,27 @@ class Cadooz::Mutable::Order
7
7
  :order_attributes, :order_description, :order_positions, :payment_informations,
8
8
  :queue, :send_mail, :test, :website
9
9
 
10
- def initialize
11
- @client = nil
12
- @commission = nil
13
- @cost_owner = nil
14
- @cost_unit = nil
15
- @credit_or_number = nil
16
- @customer_reference_number = nil
17
- @delivery_address = Cadooz::Mutable::Address.new
18
- @generation_profile = nil
19
- @greeting_card = Cadooz::Mutable::GreetingCard.new
20
- @invoice_address = Cadooz::Mutable::Address.new
21
- @invoice_information = [] # Cadooz::Mutable::InvoiceInformation
22
- @language = nil
23
- @order_attributes = nil
24
- @order_description = nil
25
- @order_positions = [] # Cadooz::Mutable::OrderPosition
26
- @payment_informations = [] # Cadooz::Mutable::Payment
27
- @queue = nil
28
- @send_mail = nil
29
- @test = nil
30
- @website = nil
10
+ def initialize(args={})
11
+ @client = args[:client]
12
+ @commission = args[:commission]
13
+ @cost_owner = args[:cost_owner]
14
+ @cost_unit = args[:cost_unit]
15
+ @credit_or_number = args[:credit_or_number]
16
+ @customer_reference_number = args[:customer_reference_number]
17
+ @delivery_address = args[:delivery_address] # Cadooz::Mutable::Address.new
18
+ @generation_profile = args[:generation_profile]
19
+ @greeting_card = args[:greeting_card] # Cadooz::Mutable::GreetingCard.new
20
+ @invoice_address = args[:invoice_address] # Cadooz::Mutable::Address.new
21
+ @invoice_information = args[:invoice_information] # Cadooz::Mutable::InvoiceInformation
22
+ @language = args[:language]
23
+ @order_attributes = args[:order_attributes]
24
+ @order_description = args[:order_description]
25
+ @order_positions = args[:order_positions] # Cadooz::Mutable::OrderPosition
26
+ @payment_informations = args[:payment_informations] # Cadooz::Mutable::Payment
27
+ @queue = args[:queue]
28
+ @send_mail = args[:send_mail]
29
+ @test = args[:test]
30
+ @website = args[:website]
31
31
 
32
32
  default_value_for_nil
33
33
  end
@@ -6,18 +6,18 @@ class Cadooz::Mutable::OrderPosition
6
6
  :value, :voucher_address, :voucher_address_editable,
7
7
  :voucher_address_preset
8
8
 
9
- def initialize
10
- @amount = nil
11
- @attributes = nil
12
- @cadooz_product_number = nil
13
- @currency = nil
14
- @delivery_address = nil
15
- @external_reference_number = nil
16
- @greeting_card = nil
17
- @value = nil
18
- @voucher_address = nil
19
- @voucher_address_editable = nil
20
- @voucher_address_preset = nil
9
+ def initialize(args={})
10
+ @amount = args[:amount]
11
+ @attributes = args[:attributes]
12
+ @cadooz_product_number = args[:cadooz_product_number]
13
+ @currency = args[:currency]
14
+ @delivery_address = args[:delivery_address]
15
+ @external_reference_number = args[:external_reference_number]
16
+ @greeting_card = args[:greeting_card]
17
+ @value = args[:value]
18
+ @voucher_address = args[:voucher_address]
19
+ @voucher_address_editable = args[:voucher_address_editable]
20
+ @voucher_address_preset = args[:voucher_address_preset]
21
21
 
22
22
  default_value_for_nil
23
23
  end
@@ -3,13 +3,13 @@ class Cadooz::Mutable::Payment
3
3
 
4
4
  attr_accessor :attributes, :description, :paid, :type, :value, :verified
5
5
 
6
- def initialize
7
- @attributes = nil
8
- @description = nil
9
- @paid = nil
10
- @type = nil
11
- @value = nil
12
- @verified = nil
6
+ def initialize(args={})
7
+ @attributes = args[:attributes]
8
+ @description = args[:description]
9
+ @paid = args[:paid]
10
+ @type = args[:type]
11
+ @value = args[:value]
12
+ @verified = args[:verified]
13
13
 
14
14
  default_value_for_nil
15
15
  end
@@ -1,3 +1,3 @@
1
1
  module Cadooz
2
- VERSION = '2.2.2'
2
+ VERSION = '2.2.3'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cadooz
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.2.2
4
+ version: 2.2.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Andrew Brown