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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 4b948e4c69b934df883cf6f277c4bffc2060d502
4
- data.tar.gz: 6f4d9443f5613b33d34dc3ab887a3ba660b6a719
3
+ metadata.gz: b86a84da2206e71af77410e3c29c08a47ea88d7c
4
+ data.tar.gz: d9fe4b18976da95fc6620ae6ccf63e8dd1650150
5
5
  SHA512:
6
- metadata.gz: 1bd38daf2d660e23c521cb273a3b537fbd166c812714c9d329d02b85d6df5fcc193f9deef443ff41014d46d4f2d566a873387c3516de2b93a5d8adb31c89e50d
7
- data.tar.gz: 7f0e4976e7a5726928b454f68e5a28cba7fbc24a6ab9044c6f46166a56b1807997c3bc44a87c95ce192146bfe57034dd43b348ff92eeb049e3897aa88baceca7
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
@@ -1,3 +1,3 @@
1
1
  module Cadooz
2
- VERSION = '2.0.1'
2
+ VERSION = '2.1.1'
3
3
  end
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.0.1
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-03-29 00:00:00.000000000 Z
11
+ date: 2016-04-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: savon