besepa 0.2 → 0.3

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: e725ca7cd7ea944a8c13d88162899de00290ba13
4
- data.tar.gz: 7902ef96eef5551d51a360dac0954222511e4e29
3
+ metadata.gz: 0fa7d02eb46871eb412c2ed2eb2803f382af3343
4
+ data.tar.gz: ea55c1daa66e122613bf18df47aff0c7b366cc47
5
5
  SHA512:
6
- metadata.gz: becde3ce5f9e41fa12b887b8abe3f5b8ae52fe7b51be1069a98f0f9b6ecabbba2f37c88788aee846fc160442f3f433b7d961cebfa1e6d025af538f42dbac20ac
7
- data.tar.gz: ff2577c252329c1071e03589d1e065a3c70a8b26220a6e06a29e63cc30d17bf8279c151bdfadac62d82fd5ded4a6c85075b4908626f7518adc219556bd13d178
6
+ metadata.gz: bd9332e00d6193c3bbe13b83039ec2d5a65cf81f83429d92ae5ca513436b79f4594fa78fe0c2dfdbc59cdac9ea91e8a3fd6d4834c3c982273eb211634f26995c
7
+ data.tar.gz: 28eb9c123ce33ce4d51a605b1b0c3c84e0d71092d1ef09a98bf355721c56c7c9e07e871fbc59df394acf2121c85ea322debb3f5000e18a04c015d973f6bed94b
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- besepa (0.2)
4
+ besepa (0.3)
5
5
  faraday (~> 0.9)
6
6
  faraday_middleware (~> 0.9)
7
7
 
@@ -2,7 +2,7 @@ module Besepa
2
2
 
3
3
  class Activity < Besepa::Resource
4
4
 
5
- FIELDS = [:id, :key, :created_at, :owner]
5
+ FIELDS = [:id, :key, :created_at, :owner, :trackable]
6
6
  FIELDS.each do |f|
7
7
  attr_accessor f
8
8
  end
@@ -7,7 +7,7 @@ module Besepa
7
7
  include Besepa::ApiCalls::Update
8
8
  include Besepa::ApiCalls::Destroy
9
9
 
10
- FIELDS = [:id, :iban, :bic, :bank_name, :status, :customer_id]
10
+ FIELDS = [:id, :iban, :bic, :bank_name, :status, :customer_id, :created_at]
11
11
 
12
12
  FIELDS.each do |f|
13
13
  attr_accessor f
@@ -7,7 +7,7 @@ module Besepa
7
7
  include Besepa::ApiCalls::Update
8
8
  # include Besepa::ApiCalls::Destroy
9
9
 
10
- FIELDS = [:id, :iban, :bic, :bank_name, :status, :default, :core_enabled, :core_suffix, :b2b_enabled, :b2b_suffix]
10
+ FIELDS = [:id, :iban, :bic, :bank_name, :status, :default, :core_enabled, :core_suffix, :b2b_enabled, :b2b_suffix, :created_at]
11
11
 
12
12
  FIELDS.each do |f|
13
13
  attr_accessor f
@@ -10,7 +10,7 @@ module Besepa
10
10
  FIELDS = [:id, :name, :taxid, :reference,
11
11
  :contact_name, :contact_email, :contact_phone, :contact_language,
12
12
  :address_street, :address_city, :address_postalcode, :address_state, :address_country,
13
- :status]
13
+ :status, :created_at]
14
14
 
15
15
  FIELDS.each do |f|
16
16
  attr_accessor f
@@ -97,7 +97,7 @@ module Besepa
97
97
  # @param phone_number Phone number where the signature SMS will be sent in case signature_type==sms is used.
98
98
  #
99
99
  # @return new created Besepa::BankAccount
100
- def add_bank_account(iban, bic, bank_name=nil, scheme='CORE', mandate_signature_date=nil, mandate_ref=nil, used=false, signature_type='checkbox', phone_number=nil)
100
+ def add_bank_account(iban, bic, bank_name=nil, scheme='CORE', mandate_signature_date=nil, mandate_ref=nil, used=false, signature_type='checkbox', phone_number=nil, redirect_after_signature=nil)
101
101
  params = {:iban => iban, :bic => bic }
102
102
  params[:mandate] = {scheme: scheme, used: used}
103
103
  if mandate_signature_date
@@ -108,6 +108,7 @@ module Besepa
108
108
  params[:mandate][:phone_number] = phone_number if phone_number
109
109
  end
110
110
  params[:bank_name] = bank_name if bank_name
111
+ params[:mandate][:redirect_after_signature] = redirect_after_signature if redirect_after_signature
111
112
  BankAccount.create( params, {:customer_id => id} )
112
113
  end
113
114
 
@@ -9,7 +9,7 @@ module Besepa
9
9
 
10
10
  FIELDS = [:id, :reference, :amount, :currency, :status,
11
11
  :collect_at, :sent_at, :description, :metadata,
12
- :error_code, :platform_error_code]
12
+ :error_code, :platform_error_code, :created_at, :rejected_at]
13
13
 
14
14
  FIELDS.each do |f|
15
15
  attr_accessor f
@@ -7,7 +7,7 @@ module Besepa
7
7
  include Besepa::ApiCalls::Update
8
8
  include Besepa::ApiCalls::Destroy
9
9
 
10
- FIELDS = [:id, :name, :reference]
10
+ FIELDS = [:id, :name, :reference, :created_at]
11
11
 
12
12
  FIELDS.each do |f|
13
13
  attr_accessor f
@@ -4,7 +4,9 @@ module Besepa
4
4
 
5
5
  include Besepa::ApiCalls::List
6
6
 
7
- FIELDS = [:id, :signed_at, :status, :description, :signature_type, :mandate_type, :reference, :url, :used, :phone_number, :scheme, :signature_url]
7
+ FIELDS = [:id, :signed_at, :status, :description, :signature_type,
8
+ :mandate_type, :reference, :url, :used, :phone_number, :scheme,
9
+ :signature_url, :download_url, :created_at, :redirect_after_signature]
8
10
 
9
11
  FIELDS.each do |f|
10
12
  attr_accessor f
@@ -8,8 +8,8 @@ module Besepa
8
8
  include Besepa::ApiCalls::Destroy
9
9
 
10
10
  FIELDS = [:id, :name, :amount, :currency, :reference,
11
- :recurrent, :max_charges, :periodicity,
12
- :status]
11
+ :recurrent, :max_charges, :periodicity, :period_count,
12
+ :status, :created_at]
13
13
 
14
14
  FIELDS.each do |f|
15
15
  attr_accessor f
@@ -4,7 +4,7 @@ module Besepa
4
4
 
5
5
  include Besepa::ApiCalls::List
6
6
 
7
- FIELDS = [:id, :collect_at, :send_at, :sent_at, :status, :scheme]
7
+ FIELDS = [:id, :collect_at, :send_at, :sent_at, :status, :scheme, :created_at]
8
8
 
9
9
  attr_accessor :bank_account
10
10
 
@@ -84,11 +84,6 @@ module Besepa
84
84
  end
85
85
  end
86
86
  end
87
-
88
- # def api_path(filters={})
89
- # self.class.api_path
90
- # end
91
-
92
87
 
93
88
  end
94
89
 
@@ -6,7 +6,7 @@ module Besepa
6
6
  include Besepa::ApiCalls::Create
7
7
  include Besepa::ApiCalls::Destroy
8
8
 
9
- FIELDS = [:id, :last_debit, :next_debit, :status, :metadata, :starts_at, :renew_at]
9
+ FIELDS = [:id, :last_debit, :next_debit, :status, :metadata, :starts_at, :renew_at, :created_at]
10
10
 
11
11
 
12
12
  FIELDS.each do |f|
@@ -13,7 +13,7 @@ module Besepa
13
13
  # @return [Faraday::Connection]
14
14
  def connection(options={})
15
15
  options = options.merge(Besepa.options)
16
- @connection ||= Faraday.new ( options[:endpoint] ) do |conn|
16
+ Faraday.new ( options[:endpoint] ) do |conn|
17
17
  conn.request :json
18
18
  conn.response :json, :content_type => /\bjson$/
19
19
  conn.authorization( 'Bearer', options[:api_key])
@@ -1,6 +1,6 @@
1
1
  module Besepa
2
2
 
3
3
  module Utils
4
- VERSION = '0.2'.freeze
4
+ VERSION = '0.3'.freeze
5
5
  end
6
6
  end
@@ -6,7 +6,7 @@ module Besepa
6
6
  include Besepa::ApiCalls::Create
7
7
  include Besepa::ApiCalls::Destroy
8
8
 
9
- FIELDS = [:id, :url, :status, :push_count, :ok_count, :success_rate]
9
+ FIELDS = [:id, :url, :status, :push_count, :ok_count, :success_rate, :created_at]
10
10
 
11
11
  FIELDS.each do |f|
12
12
  attr_accessor f
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: besepa
3
3
  version: !ruby/object:Gem::Version
4
- version: '0.2'
4
+ version: '0.3'
5
5
  platform: ruby
6
6
  authors:
7
7
  - besepa.com
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-04-20 00:00:00.000000000 Z
11
+ date: 2015-06-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday