active_payment 0.9.0 → 1.0.0

Sign up to get free protection for your applications and to get access to all the features.
data/spec/helper.rb CHANGED
@@ -30,7 +30,7 @@ class PayeeObj
30
30
  end
31
31
 
32
32
  def to_payee
33
- ActivePayment::Models::Payee.new(identifier: paypal)
33
+ ActivePayment::Models::Payee.new(id: id, paypal_identifier: paypal)
34
34
  end
35
35
  end
36
36
  class PayerObj
@@ -62,9 +62,13 @@ class PayableObj
62
62
 
63
63
  def to_payable
64
64
  ActivePayment::Models::Payable.new(
65
- amount: amount, reference: self,
66
- description: description, reference_number: id,
67
- tax: tax, shipping: shipping)
65
+ id: id,
66
+ class: self.class,
67
+ amount: amount,
68
+ description: description,
69
+ reference_number: id,
70
+ tax: tax,
71
+ shipping: shipping)
68
72
  end
69
73
  end
70
74
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: active_payment
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.0
4
+ version: 1.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jeremy Marc
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-11-13 00:00:00.000000000 Z
11
+ date: 2015-11-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -167,6 +167,8 @@ files:
167
167
  - lib/active_payment/gateway.rb
168
168
  - lib/active_payment/gateways/paypal_adaptive_payment.rb
169
169
  - lib/active_payment/gateways/paypal_express_checkout.rb
170
+ - lib/active_payment/models/concerns/paypal_payable.rb
171
+ - lib/active_payment/models/concerns/paypal_payee.rb
170
172
  - lib/active_payment/models/payable.rb
171
173
  - lib/active_payment/models/payee.rb
172
174
  - lib/active_payment/models/sale.rb