activemerchant 1.35.0 → 1.35.1

Sign up to get free protection for your applications and to get access to all the features.
data.tar.gz.sig CHANGED
Binary file
data/CHANGELOG CHANGED
@@ -1,5 +1,9 @@
1
1
  = ActiveMerchant CHANGELOG
2
2
 
3
+ == Version 1.35.1 (July 22, 2013)
4
+
5
+ * Stripe: Allow application_fees to be refunded via the refund_application_fee flag [melari]
6
+
3
7
  == Version 1.35.0 (July 17, 2013)
4
8
 
5
9
  * Add Barclays ePDQ Extra Plus gateway [ntalbott]
@@ -80,6 +80,7 @@ module ActiveMerchant #:nodoc:
80
80
  xml.tag! "PartialAuth", "Allow"
81
81
  end
82
82
  add_invoice(xml, options[:order_id], nil, options)
83
+ add_reference(xml, "RecordNumberRequested")
83
84
  add_customer_data(xml, options)
84
85
  add_amount(xml, money, options)
85
86
  add_credit_card(xml, credit_card, action)
@@ -98,12 +99,12 @@ module ActiveMerchant #:nodoc:
98
99
  xml.tag! "TStream" do
99
100
  xml.tag! "Transaction" do
100
101
  xml.tag! 'TranType', 'Credit'
101
- xml.tag! 'TranCode', (@use_tokenization ? (action + "ByRecordNo") : action)
102
102
  if action == 'PreAuthCapture'
103
103
  xml.tag! "PartialAuth", "Allow"
104
104
  end
105
+ xml.tag! 'TranCode', (@use_tokenization ? (action + "ByRecordNo") : action)
105
106
  add_invoice(xml, invoice_no, ref_no, options)
106
- add_reference(xml, record_no) if @use_tokenization
107
+ add_reference(xml, record_no)
107
108
  add_customer_data(xml, options)
108
109
  add_amount(xml, (money || amount.to_i), options)
109
110
  add_credit_card(xml, credit_card, action) if credit_card
@@ -127,15 +128,13 @@ module ActiveMerchant #:nodoc:
127
128
  xml.tag! 'RefNo', (ref_no || invoice_no)
128
129
  xml.tag! 'OperatorID', options[:merchant] if options[:merchant]
129
130
  xml.tag! 'Memo', options[:description] if options[:description]
130
- if @use_tokenization
131
- xml.tag! 'Frequency', "OneTime"
132
- xml.tag! 'RecordNo', "RecordNumberRequested"
133
- end
134
131
  end
135
132
 
136
133
  def add_reference(xml, record_no)
137
- xml.tag! "Frequency", "OneTime"
138
- xml.tag! "RecordNo", record_no
134
+ if @use_tokenization
135
+ xml.tag! "Frequency", "OneTime"
136
+ xml.tag! "RecordNo", record_no
137
+ end
139
138
  end
140
139
 
141
140
  def add_customer_data(xml, options)
@@ -72,6 +72,7 @@ module ActiveMerchant #:nodoc:
72
72
  post = {}
73
73
 
74
74
  post[:amount] = amount(money) if money
75
+ post[:refund_application_fee] = true if options[:refund_application_fee]
75
76
 
76
77
  commit(:post, "charges/#{CGI.escape(identification)}/refund", post, meta)
77
78
  end
@@ -1,3 +1,3 @@
1
1
  module ActiveMerchant
2
- VERSION = "1.35.0"
2
+ VERSION = "1.35.1"
3
3
  end
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: activemerchant
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 1.35.0
5
+ version: 1.35.1
6
6
  platform: ruby
7
7
  authors:
8
8
  - Tobias Luetke
@@ -37,7 +37,7 @@ cert_chain:
37
37
  Z1BvU1BxN25rK3MyRlFVQko5VVpGSzFsZ016aG8vNGZaZ3pKd2J1K2NPOFNO
38
38
  dWFMUy9iagpoUGFTVHlWVTB5Q1Nudz09Ci0tLS0tRU5EIENFUlRJRklDQVRF
39
39
  LS0tLS0K
40
- date: 2013-07-25 00:00:00.000000000 Z
40
+ date: 2013-07-22 00:00:00.000000000 Z
41
41
  dependencies:
42
42
  - !ruby/object:Gem::Dependency
43
43
  version_requirements: !ruby/object:Gem::Requirement
metadata.gz.sig CHANGED
Binary file