cadooz 2.0.1 → 2.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/cadooz.rb +6 -3
- data/lib/cadooz/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b86a84da2206e71af77410e3c29c08a47ea88d7c
|
4
|
+
data.tar.gz: d9fe4b18976da95fc6620ae6ccf63e8dd1650150
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 01c2e69472235405f9bde24882891558769a241df9f989fec82bf39998ce2529070b14e6ddb13ff0bbace4dd91621d021be915a276220aa4be7cf6b6ecc3e38e
|
7
|
+
data.tar.gz: 9b36f658eb71186e700cce2a1535e062ad98b56592ce487b73369984eaa440e2c5e0700f01ffd900b8aa0ae74caab19d5d93f1420feec2e4936eb1324f16639c
|
data/lib/cadooz.rb
CHANGED
@@ -5,22 +5,25 @@ require 'savon'
|
|
5
5
|
|
6
6
|
module Cadooz
|
7
7
|
class Configuration
|
8
|
-
attr_accessor :username, :password, :wsdl, :generation_profile
|
8
|
+
attr_accessor :username, :password, :wsdl, :generation_profile, :program_id, :payment_username, :payment_password
|
9
9
|
|
10
10
|
WSDL = 'https://webservices.cadooz.com/services/businessorder/1.5.2/BusinessOrderService/BusinessOrder?wsdl'
|
11
11
|
TEST_USERNAME = 'cadooz'
|
12
12
|
TEST_PASSWORD = 'Cadooz2015'
|
13
13
|
|
14
|
-
def initialize(username, password, generation_profile)
|
14
|
+
def initialize(username, password, generation_profile, program_id, payment_username, payment_password)
|
15
15
|
self.username = username || TEST_USERNAME
|
16
16
|
self.password = password || TEST_PASSWORD
|
17
17
|
self.wsdl = WSDL
|
18
18
|
self.generation_profile = generation_profile
|
19
|
+
self.program_id = program_id
|
20
|
+
self.payment_username = payment_username
|
21
|
+
self.payment_password = payment_password
|
19
22
|
end
|
20
23
|
end
|
21
24
|
|
22
25
|
def self.configuration
|
23
|
-
@configuration ||= Configuration.new(nil, nil, nil)
|
26
|
+
@configuration ||= Configuration.new(nil, nil, nil, nil, nil, nil)
|
24
27
|
end
|
25
28
|
|
26
29
|
def self.configure
|
data/lib/cadooz/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: cadooz
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.
|
4
|
+
version: 2.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Andrew Brown
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-
|
11
|
+
date: 2016-04-04 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: savon
|