besepa 0.4.0 → 0.4.1

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: a0bb86187518263eef9f6fb6559f0c84cb41a3d4
4
- data.tar.gz: 8df710bf478804e8622c7cc67b28f75fdc9dbd9e
3
+ metadata.gz: ee8e440e2acc7191913fe8d3b0651afb516582f7
4
+ data.tar.gz: 403ad4563fe61da0e80cf93f094408d1803e6e7b
5
5
  SHA512:
6
- metadata.gz: 186e5b5971bc38633e1632dddc500e85a8ab0a2a732ba447c551981b4e49e66d40a6305813e50d6f6a14125c67193a64e30849fc6ddd5f31bd420d5c5295fbdc
7
- data.tar.gz: f0ba7794948025506ae084587e7ad1d78e8350fc2a401e4c97d362908f869138eff16de03d1b6cdece13d2d7864ded7e311c01722136eb46f047a1e524aff40f
6
+ metadata.gz: bcc84b3bd93f62fb7d6226d2c365b9a9fd8eaa51d54e5f1c646a7a86b2148fad146976e70f3f2ff88bf5cb07bec5c699cf3550810aa8907766111ce58eb38cb7
7
+ data.tar.gz: 71d387c0b194c125714285501fd0893e261001014fd73d66e97a8ae21f9081e3450cc3cf20436a33ee3475e126ca7ba70f4eae8dc3753c017bef83cf5d8c0f2b
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- besepa (0.4.0)
4
+ besepa (0.4.1)
5
5
  faraday (~> 0.9)
6
6
  faraday_middleware (~> 0.9)
7
7
 
@@ -121,38 +121,6 @@ module Besepa
121
121
  BankAccount.create( params, {:customer_id => id} )
122
122
  end
123
123
 
124
- # Adds a bank account to this customer.
125
- # IBAN and BIC are the only mandatory fields. If you already have the mandate signed, you can pass mandate
126
- # detail's and account will be activated by default. Otherwise BankAccount will be marked as inactive (not usable
127
- # for creating debits or subscriptions) until mandate is signed. BankAccount includes mandate's info, including
128
- # signature URL.
129
- #
130
- # @param iban
131
- # @param bic
132
- # @param bank_name
133
- # @param scheme CORE|COR1|B2B. Default: CORE
134
- # @param mandate_signature_date Date in which this mandate was signed if already signed (Format: YYYY-MM-DD)
135
- # @param mandate_ref Mandate's reference. If none, Besepa will create one.
136
- # @param used Says if this mandate has already been used or not.
137
- # @param signature_type Signature to be used: checkbox|sms|biometric
138
- # @param phone_number Phone number where the signature SMS will be sent in case signature_type==sms is used.
139
- #
140
- # @return new created Besepa::BankAccount
141
- 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)
142
- params = {:iban => iban, :bic => bic }
143
- params[:mandate] = {scheme: scheme, used: used}
144
- if mandate_signature_date
145
- params[:mandate][:signed_at] = mandate_signature_date if mandate_signature_date
146
- params[:mandate][:reference] = mandate_ref if mandate_ref
147
- else
148
- params[:mandate][:signature_type] = signature_type
149
- params[:mandate][:phone_number] = phone_number if phone_number
150
- end
151
- params[:bank_name] = bank_name if bank_name
152
- params[:mandate][:redirect_after_signature] = redirect_after_signature if redirect_after_signature
153
- BankAccount.create( params, {:customer_id => id} )
154
- end
155
-
156
124
  # Generates a direct debit that will be charged to this customer.
157
125
  #
158
126
  # @param debtor_bank_account_id Customer's BankAccount code this Debit shouyd be charged to.
@@ -1,6 +1,6 @@
1
1
  module Besepa
2
2
 
3
3
  module Utils
4
- VERSION = '0.4.0'.freeze
4
+ VERSION = '0.4.1'.freeze
5
5
  end
6
6
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: besepa
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.0
4
+ version: 0.4.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - besepa.com