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 +4 -4
- data/lib/cadooz/models/mutable/address.rb +13 -13
- data/lib/cadooz/models/mutable/greeting_card.rb +3 -3
- data/lib/cadooz/models/mutable/invoice_information.rb +3 -3
- data/lib/cadooz/models/mutable/order.rb +21 -21
- data/lib/cadooz/models/mutable/order_position.rb +12 -12
- data/lib/cadooz/models/mutable/payment.rb +7 -7
- data/lib/cadooz/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2919e5a5f61b1fc0ae7758feb00de29940ffebcf
|
4
|
+
data.tar.gz: d34716dad10086c779714d434257f1cc25c9f950
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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 =
|
10
|
-
@country =
|
11
|
-
@department =
|
12
|
-
@email =
|
13
|
-
@firstname =
|
14
|
-
@lastname =
|
15
|
-
@phone =
|
16
|
-
@salutation =
|
17
|
-
@state =
|
18
|
-
@street =
|
19
|
-
@street_addon =
|
20
|
-
@zipcode =
|
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::InvoiceInformation
|
|
3
3
|
|
4
4
|
attr_accessor :debitor_number, :value
|
5
5
|
|
6
|
-
def initialize
|
7
|
-
@debitor_number =
|
8
|
-
@value =
|
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 =
|
12
|
-
@commission =
|
13
|
-
@cost_owner =
|
14
|
-
@cost_unit =
|
15
|
-
@credit_or_number =
|
16
|
-
@customer_reference_number =
|
17
|
-
@delivery_address = Cadooz::Mutable::Address.new
|
18
|
-
@generation_profile =
|
19
|
-
@greeting_card = Cadooz::Mutable::GreetingCard.new
|
20
|
-
@invoice_address = Cadooz::Mutable::Address.new
|
21
|
-
@invoice_information = [] # Cadooz::Mutable::InvoiceInformation
|
22
|
-
@language =
|
23
|
-
@order_attributes =
|
24
|
-
@order_description =
|
25
|
-
@order_positions = [] # Cadooz::Mutable::OrderPosition
|
26
|
-
@payment_informations = [] # Cadooz::Mutable::Payment
|
27
|
-
@queue =
|
28
|
-
@send_mail =
|
29
|
-
@test =
|
30
|
-
@website =
|
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 =
|
11
|
-
@attributes =
|
12
|
-
@cadooz_product_number =
|
13
|
-
@currency =
|
14
|
-
@delivery_address =
|
15
|
-
@external_reference_number =
|
16
|
-
@greeting_card =
|
17
|
-
@value =
|
18
|
-
@voucher_address =
|
19
|
-
@voucher_address_editable =
|
20
|
-
@voucher_address_preset =
|
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 =
|
8
|
-
@description =
|
9
|
-
@paid =
|
10
|
-
@type =
|
11
|
-
@value =
|
12
|
-
@verified =
|
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
|
data/lib/cadooz/version.rb
CHANGED