besepa 0.2 → 0.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/lib/besepa/activity.rb +1 -1
- data/lib/besepa/bank_account.rb +1 -1
- data/lib/besepa/business_account.rb +1 -1
- data/lib/besepa/customer.rb +3 -2
- data/lib/besepa/debit.rb +1 -1
- data/lib/besepa/group.rb +1 -1
- data/lib/besepa/mandate.rb +3 -1
- data/lib/besepa/product.rb +2 -2
- data/lib/besepa/remittance.rb +1 -1
- data/lib/besepa/resource.rb +0 -5
- data/lib/besepa/subscription.rb +1 -1
- data/lib/besepa/utils/connection.rb +1 -1
- data/lib/besepa/utils/version.rb +1 -1
- data/lib/besepa/webhook.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0fa7d02eb46871eb412c2ed2eb2803f382af3343
|
4
|
+
data.tar.gz: ea55c1daa66e122613bf18df47aff0c7b366cc47
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: bd9332e00d6193c3bbe13b83039ec2d5a65cf81f83429d92ae5ca513436b79f4594fa78fe0c2dfdbc59cdac9ea91e8a3fd6d4834c3c982273eb211634f26995c
|
7
|
+
data.tar.gz: 28eb9c123ce33ce4d51a605b1b0c3c84e0d71092d1ef09a98bf355721c56c7c9e07e871fbc59df394acf2121c85ea322debb3f5000e18a04c015d973f6bed94b
|
data/Gemfile.lock
CHANGED
data/lib/besepa/activity.rb
CHANGED
data/lib/besepa/bank_account.rb
CHANGED
@@ -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
|
data/lib/besepa/customer.rb
CHANGED
@@ -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
|
|
data/lib/besepa/debit.rb
CHANGED
@@ -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
|
data/lib/besepa/group.rb
CHANGED
data/lib/besepa/mandate.rb
CHANGED
@@ -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,
|
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
|
data/lib/besepa/product.rb
CHANGED
@@ -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
|
data/lib/besepa/remittance.rb
CHANGED
data/lib/besepa/resource.rb
CHANGED
data/lib/besepa/subscription.rb
CHANGED
@@ -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
|
-
|
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])
|
data/lib/besepa/utils/version.rb
CHANGED
data/lib/besepa/webhook.rb
CHANGED
@@ -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.
|
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-
|
11
|
+
date: 2015-06-08 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: faraday
|