speedway 0.0.2 → 0.0.3

Sign up to get free protection for your applications and to get access to all the features.
@@ -14,18 +14,27 @@ module Speedway
14
14
  end
15
15
 
16
16
 
17
- def create_access_code(customer, payment, redirect_url)
17
+ def create_access_code(customer, custom_fields, payment, redirect_url)
18
18
  @client.request :create_access_code do
19
19
  soap.body = {
20
20
  'request' => {
21
21
  'Authentication' => credentials,
22
22
  'Customer' => {
23
- 'FirstName' => customer[:first_name],
24
- 'LastName' => customer[:last_name]
23
+ 'FirstName' => customer[:first_name],
24
+ 'LastName' => customer[:last_name],
25
+ 'Street1' => customer[:street_address_1],
26
+ 'City' => customer[:suburb],
27
+ 'State' => customer[:state],
28
+ 'PostalCode' => customer[:postcode],
29
+ 'Mobile' => customer[:mobile],
30
+ 'Email' => customer[:email]
31
+ },
32
+ 'CustomFields' => {
33
+ 'Option1' => "System => #{custom_fields[:system]}",
34
+ 'Option2' => "Quote/Policy => #{custom_fields[:quote_number] || custom_fields[:policy_number]}"
25
35
  },
26
36
  'Payment' => {
27
37
  'TotalAmount' => (payment[:total_amount] * 100).to_i
28
- # 'InvoiceNumber' => invoice
29
38
  },
30
39
  'RedirectUrl' => redirect_url
31
40
  }
@@ -1,3 +1,3 @@
1
1
  module Speedway
2
- VERSION = "0.0.2"
2
+ VERSION = "0.0.3"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: speedway
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.3
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,11 +9,11 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-08-02 00:00:00.000000000 Z
12
+ date: 2012-08-03 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: akami
16
- requirement: &70353450116480 !ruby/object:Gem::Requirement
16
+ requirement: &70143209549640 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ! '>='
@@ -21,10 +21,10 @@ dependencies:
21
21
  version: '0'
22
22
  type: :runtime
23
23
  prerelease: false
24
- version_requirements: *70353450116480
24
+ version_requirements: *70143209549640
25
25
  - !ruby/object:Gem::Dependency
26
26
  name: savon
27
- requirement: &70353450108620 !ruby/object:Gem::Requirement
27
+ requirement: &70143209549060 !ruby/object:Gem::Requirement
28
28
  none: false
29
29
  requirements:
30
30
  - - ! '>='
@@ -32,7 +32,7 @@ dependencies:
32
32
  version: '0'
33
33
  type: :runtime
34
34
  prerelease: false
35
- version_requirements: *70353450108620
35
+ version_requirements: *70143209549060
36
36
  description: eWay RapidAPI Integration
37
37
  email:
38
38
  - ben.askins@gmail.com