activemerchant-paymentech-orbital 0.2.1 → 0.2.2

Sign up to get free protection for your applications and to get access to all the features.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.2.1
1
+ 0.2.2
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{activemerchant-paymentech-orbital}
8
- s.version = "0.2.1"
8
+ s.version = "0.2.2"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["John Corrigan"]
12
- s.date = %q{2010-04-02}
12
+ s.date = %q{2010-06-21}
13
13
  s.description = %q{A gem to provide a ruby interface for Chase Paymentech Orbital payment gateway. It has been development thus far to meet specific ends, so not all functionality is present.}
14
14
  s.email = %q{john@mintdigital.com}
15
15
  s.extra_rdoc_files = [
@@ -29,11 +29,12 @@ module ActiveMerchant
29
29
  def money; nil; end
30
30
 
31
31
  private
32
- delegate :mb_type, :mb_order_id_generation_method, :mb_recurring_start_date,
33
- :mb_recurring_end_date, :mb_recurring_max_billings,
34
- :mb_recurring_frequency, :mb_deferred_bill_date, :mb_cancel_date,
35
- :mb_restore_billing_date, :mb_remove_flag, :mb_recurring_no_end_date_flag, :to => :options
36
-
32
+ delegate :mb_type, :mb_order_id_generation_method, :mb_recurring_start_date,
33
+ :mb_recurring_end_date, :mb_recurring_max_billings,
34
+ :mb_recurring_frequency, :mb_deferred_bill_date, :mb_cancel_date,
35
+ :mb_restore_billing_date, :mb_remove_flag, :mb_recurring_no_end_date_flag,
36
+ :order_default_amount, :customer_account_type, :to => :options
37
+
37
38
  def customer_profile_action
38
39
  self.class.action_map[action.downcase.to_s]
39
40
  end
@@ -80,6 +81,7 @@ module ActiveMerchant
80
81
  end
81
82
 
82
83
  def add_account_info(xml)
84
+ xml.tag! "OrderDefaultAmount", order_default_amount if order_default_amount
83
85
  xml.tag! "CustomerAccountType", "CC"
84
86
  xml.tag! "Status", options.status || "A"
85
87
  end
@@ -9,10 +9,16 @@ class ProfileTest < Test::Unit::TestCase
9
9
  @address = Options(:billing_address)
10
10
  @credit_card = Factory(:visa)
11
11
  end
12
-
12
+
13
13
  should "create a profile" do
14
14
  @create_response = @gateway.profile(:create, @credit_card, {
15
- :address => @address
15
+ :address => @address,
16
+ :order_default_amount => 100,
17
+ :customer_account_type => "CC",
18
+ :mb_type => "R",
19
+ :mb_recurring_start_date => "12122010",
20
+ :mb_recurring_no_end_date_flag => "Y",
21
+ :mb_recurring_frequency => "12 * ?"
16
22
  })
17
23
 
18
24
  assert @create_response.success?, "should be successful overall"
@@ -41,7 +47,7 @@ class ProfileTest < Test::Unit::TestCase
41
47
  @customer_ref_num = @create_response.customer_ref_num
42
48
 
43
49
  @new_name = "Smith Joe"
44
-
50
+
45
51
  assert_not_equal @new_name, @create_response.customer_name
46
52
 
47
53
  @update_response = @gateway.profile(:update, nil, {
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 2
8
- - 1
9
- version: 0.2.1
8
+ - 2
9
+ version: 0.2.2
10
10
  platform: ruby
11
11
  authors:
12
12
  - John Corrigan
@@ -14,7 +14,7 @@ autorequire:
14
14
  bindir: bin
15
15
  cert_chain: []
16
16
 
17
- date: 2010-04-02 00:00:00 -04:00
17
+ date: 2010-06-21 00:00:00 -04:00
18
18
  default_executable:
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency