pfs 0.0.4 → 0.0.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 1f06e43fb3cf05a637ffddb40603839f31b4f7cb61dd66b08f01b3d76484c2ae
4
- data.tar.gz: 5df9f6b3946a646848a8a109bc9c646a3ac6d4b22400782f8e807e36566297b4
3
+ metadata.gz: 63bad43abda9e07b5366d36cc42c5b23316a8331c89ce0adfbb2fb0ea440f37e
4
+ data.tar.gz: 7bd3b01e5dd9bd48fc0341d0bd4d974f41891abe06308db64b0c2a9d2f6a7fd3
5
5
  SHA512:
6
- metadata.gz: 82cb826b1fb37bd4dd5626f17b863385737ba5bddce16ce05d264d5fb54c9134cc4aee6b45d408ded9f1fa3aad530975adcd109c14fe0d60fc73c3ca0b9ada01
7
- data.tar.gz: 01bb4d39ac2b493c1fa3443e286e93d5b2aa35511cca687cf31f3e5a752564b9b5e09210deffde84acd00ba3bc0d4a4ad505ae92a4cfd349fb1be8b6f04bee73
6
+ metadata.gz: 0026a6c6a2776d0c48bd1c158db6b9a82a6279f298b9b73432c98220696905cf490f2d40ae1ed5fbe04ec71cd5bf1cbe5ee34f83ccc3bf78fe16d2615b06d9aa
7
+ data.tar.gz: 977060852f1fe157aee0d790f1530cb065f699aab9e9e7253e6e897c79172b652003b7a9f9480e3fa2a2790f7a5321f6e22f2ab8558271c4efaa2af34e5cb7fc
@@ -1,7 +1,8 @@
1
1
  ---
2
2
  name: ci
3
3
 
4
- on:
4
+ # https://github.com/adrienverge/yamllint/issues/430
5
+ "on":
5
6
  push:
6
7
  pull_request:
7
8
  # Allows you to run this workflow manually from the Actions tab
@@ -1,7 +1,8 @@
1
1
  ---
2
2
  name: release
3
3
 
4
- on:
4
+ # https://github.com/adrienverge/yamllint/issues/430
5
+ "on":
5
6
  push:
6
7
  tags:
7
8
  - v*.*.*
data/.rubocop_devengo.yml CHANGED
@@ -1,3 +1,4 @@
1
+ ---
1
2
  AllCops:
2
3
  DisplayCopNames: true
3
4
  TargetRubyVersion: 2.7
@@ -84,10 +85,10 @@ Style/NumericPredicate:
84
85
  Enabled: false
85
86
 
86
87
  Style/HashEachMethods:
87
- Enabled: True
88
+ Enabled: true
88
89
 
89
90
  Style/HashTransformKeys:
90
- Enabled: True
91
+ Enabled: true
91
92
 
92
93
  Style/HashTransformValues:
93
94
  Enabled: true
@@ -158,25 +159,32 @@ Style/RedundantSelfAssignment:
158
159
  Style/SoleNestedConditional:
159
160
  Enabled: true
160
161
 
161
- Style/ArgumentsForwarding: # (new in 1.1)
162
+ # (new in 1.1)
163
+ Style/ArgumentsForwarding:
162
164
  Enabled: true
163
165
 
164
- Style/DocumentDynamicEvalDefinition: # (new in 1.1)
166
+ # (new in 1.1)
167
+ Style/DocumentDynamicEvalDefinition:
165
168
  Enabled: true
166
169
 
167
- Style/SwapValues: # (new in 1.1)
170
+ # (new in 1.1)
171
+ Style/SwapValues:
168
172
  Enabled: true
169
173
 
170
- Style/CollectionCompact: # (new in 1.2)
174
+ # (new in 1.2)
175
+ Style/CollectionCompact:
171
176
  Enabled: true
172
177
 
173
- Style/NegatedIfElseCondition: # (new in 1.2)
178
+ # (new in 1.2)
179
+ Style/NegatedIfElseCondition:
174
180
  Enabled: true
175
181
 
176
- Style/NilLambda: # (new in 1.3)
182
+ # (new in 1.3)
183
+ Style/NilLambda:
177
184
  Enabled: true
178
185
 
179
- Style/RedundantArgument: # (new in 1.4)
186
+ # (new in 1.4)
187
+ Style/RedundantArgument:
180
188
  Enabled: true
181
189
 
182
190
  Style/FetchEnvVar:
@@ -251,28 +259,36 @@ Lint/UselessMethodDefinition:
251
259
  Lint/UselessTimes:
252
260
  Enabled: true
253
261
 
254
- Lint/DuplicateRegexpCharacterClassElement: # (new in 1.1)
262
+ # (new in 1.1)
263
+ Lint/DuplicateRegexpCharacterClassElement:
255
264
  Enabled: true
256
265
 
257
- Lint/EmptyBlock: # (new in 1.1)
266
+ # (new in 1.1)
267
+ Lint/EmptyBlock:
258
268
  Enabled: true
259
269
 
260
- Lint/ToEnumArguments: # (new in 1.1)
270
+ # (new in 1.1)
271
+ Lint/ToEnumArguments:
261
272
  Enabled: true
262
273
 
263
- Lint/UnmodifiedReduceAccumulator: # (new in 1.1)
274
+ # (new in 1.1)
275
+ Lint/UnmodifiedReduceAccumulator:
264
276
  Enabled: true
265
277
 
266
- Lint/NoReturnInBeginEndBlocks: # (new in 1.2)
278
+ # (new in 1.2)
279
+ Lint/NoReturnInBeginEndBlocks:
267
280
  Enabled: true
268
281
 
269
- Lint/DuplicateBranch: # (new in 1.3)
282
+ # (new in 1.3)
283
+ Lint/DuplicateBranch:
270
284
  Enabled: true
271
285
 
272
- Lint/EmptyClass: # (new in 1.3)
286
+ # (new in 1.3)
287
+ Lint/EmptyClass:
273
288
  Enabled: true
274
289
 
275
- Lint/UnexpectedBlockArity: # (new in 1.5)
290
+ # (new in 1.5)
291
+ Lint/UnexpectedBlockArity:
276
292
  Enabled: true
277
293
 
278
294
  RSpec/AggregateExamples:
data/Gemfile CHANGED
@@ -2,6 +2,3 @@ source "https://rubygems.org"
2
2
 
3
3
  # Specify your gem's dependencies in pfs.gemspec
4
4
  gemspec
5
-
6
- gem "rake", "~> 12.0"
7
- gem "rspec", "~> 3.0"
data/Guardfile ADDED
@@ -0,0 +1,48 @@
1
+ # A sample Guardfile
2
+ # More info at https://github.com/guard/guard#readme
3
+
4
+ ## Uncomment and set this to only include directories you want to watch
5
+ # directories %w(app lib config test spec features) \
6
+ # .select{|d| Dir.exist?(d) ? d : UI.warning("Directory #{d} does not exist")}
7
+
8
+ ## Note: if you are using the `directories` clause above and you are not
9
+ ## watching the project directory ('.'), then you will want to move
10
+ ## the Guardfile to a watched dir and symlink it back, e.g.
11
+ #
12
+ # $ mkdir config
13
+ # $ mv Guardfile config/
14
+ # $ ln -s config/Guardfile .
15
+ #
16
+ # and, you'll have to watch "config/Guardfile" instead of "Guardfile"
17
+
18
+ # Note: The cmd option is now required due to the increasing number of ways
19
+ # rspec may be run, below are examples of the most common uses.
20
+ # * bundler: 'bundle exec rspec'
21
+ # * bundler binstubs: 'bin/rspec'
22
+ # * spring: 'bin/rspec' (This will use spring if running and you have
23
+ # installed the spring binstubs per the docs)
24
+ # * zeus: 'zeus rspec' (requires the server to be started separately)
25
+ # * 'just' rspec: 'rspec'
26
+
27
+ guard :rspec, cmd: "bundle exec rspec" do
28
+ require "guard/rspec/dsl"
29
+ dsl = Guard::RSpec::Dsl.new(self)
30
+
31
+ # Feel free to open issues for suggestions and improvements
32
+
33
+ # RSpec files
34
+ rspec = dsl.rspec
35
+ watch(rspec.spec_helper) { rspec.spec_dir }
36
+ watch(rspec.spec_support) { rspec.spec_dir }
37
+ watch(rspec.spec_files)
38
+
39
+ # Ruby files
40
+ ruby = dsl.ruby
41
+ dsl.watch_spec_files_for(ruby.lib_files)
42
+
43
+ # Turnip features and steps
44
+ watch(%r{^spec/acceptance/(.+)\.feature$})
45
+ watch(%r{^spec/acceptance/steps/(.+)_steps\.rb$}) do |m|
46
+ Dir[File.join("**/#{m[1]}.feature")][0] || "spec/acceptance"
47
+ end
48
+ end
@@ -8,6 +8,52 @@ module PFS
8
8
  Resources::Accounts::Balance.new(response, response.body[:data])
9
9
  end
10
10
 
11
+ def issue(bin:, dc:, style: ,incorporation_date:, company_name:, first_name:, last_name:, address:, postal_code: , city:, state:, country:, user_defined1: nil, user_defined2: nil, user_defined3: nil, user_defined4: nil)
12
+ attributes = {
13
+ bin: bin,
14
+ distributorcode: dc,
15
+ cardstyle: style,
16
+ companyname: company_name,
17
+ firstname: first_name,
18
+ lastname: last_name,
19
+ dateofbirth: incorporation_date,
20
+ address1: address,
21
+ city: city,
22
+ county: state,
23
+ zipcode: postal_code,
24
+ countrycode: country,
25
+ }
26
+ attributes[:userdefined1] = user_defined1 if user_defined1
27
+ attributes[:userdefined2] = user_defined2 if user_defined2
28
+ attributes[:userdefined3] = user_defined3 if user_defined3
29
+ attributes[:userdefined4] = user_defined4 if user_defined4
30
+
31
+ response = client.post("/Account", attributes)
32
+ Resources::Accounts::IssuedAccount.new(response, response.body[:data])
33
+ end
34
+
35
+ def info(account_id: )
36
+ response = client.get("/Account/#{account_id}")
37
+ Resources::Accounts::Account.new(response, response.body[:data])
38
+ end
39
+
40
+ def status(account_id: )
41
+ response = client.get("/Account/#{account_id}/Status")
42
+ Resources::Accounts::Status.new(response, response.body[:data])
43
+ end
44
+
45
+ def update_status(account_id: , status_code: )
46
+ attributes = {
47
+ status: status_code,
48
+ }
49
+ client.patch("/Account/#{account_id}/Status", attributes)
50
+ status(account_id: account_id)
51
+ end
52
+
53
+ def close(account_id: )
54
+ update_status(account_id: account_id, status_code: PFS::Resources::Accounts::Status::CODES[:closed])
55
+ end
56
+
11
57
  def credit(account_id, currency, amount, fee_code = "**API", description = "Deposit To Card API")
12
58
  attributes = {
13
59
  amount: amount,
@@ -15,9 +15,25 @@ module PFS
15
15
  }
16
16
  data[:isinstant] = true if options[:instant]
17
17
  data[:reference] = options[:reference] if options[:reference]
18
+ data[:userdefinedfields] = options[:user_defined_fields] if options[:user_defined_fields]
18
19
  response = client.post("/BankPayment/#{account_id}/OneOffPayment", data, options)
19
20
  Resources::Transfers::Transfer.new(response, response.body[:data])
20
21
  end
22
+
23
+ def internal(from_account_id, to_account_id, amount, currency, fee_code, description, terminal_id)
24
+ data = {
25
+ id: from_account_id,
26
+ toId: to_account_id,
27
+ amount: amount,
28
+ currencyCode: currency,
29
+ description: description,
30
+ feeCode: fee_code,
31
+ terminalId: terminal_id
32
+ }
33
+
34
+ response = client.post("/Account/CardholderToCardholderTransfer", data)
35
+ Resources::Transfers::InternalTransfer.new(response, response.body[:data])
36
+ end
21
37
  end
22
38
  end
23
39
  end
data/lib/pfs/client.rb CHANGED
@@ -58,6 +58,10 @@ module PFS
58
58
  execute :post, path, data, options
59
59
  end
60
60
 
61
+ def patch(path, data = nil, options = {})
62
+ execute :patch, path, data, options
63
+ end
64
+
61
65
  def execute(method, path, data = nil, options = {})
62
66
  request(method, path, data, options)
63
67
  end
@@ -0,0 +1,20 @@
1
+ # frozen_string_literal: true
2
+
3
+ module PFS
4
+ module Resources
5
+ module Accounts
6
+ class Account < Base
7
+ attr_reader :info,
8
+ :holder
9
+
10
+ map :currencies, :currencies
11
+
12
+ def initialize(response, attributes = {})
13
+ super(response, attributes)
14
+ @holder = AccountHolder.new(response, attributes.dig(:accountInfo, :cardholder))
15
+ @info = AccountInfo.new(response, attributes.dig(:accountInfo, :card))
16
+ end
17
+ end
18
+ end
19
+ end
20
+ end
@@ -0,0 +1,61 @@
1
+ # frozen_string_literal: true
2
+
3
+ module PFS
4
+ module Resources
5
+ module Accounts
6
+ class AccountHolder < Base
7
+ map :id, :id
8
+ map :firstName, :first_name
9
+ map :middleInitial, :middle_initial
10
+ map :lastName, :last_name
11
+ map :address1, :address1
12
+ map :address2, :address2
13
+ map :address3, :address3
14
+ map :address4, :address4
15
+ map :city, :city
16
+ map :state, :state
17
+ map :zip, :zip
18
+ map :countryCode, :country_code
19
+ map :countryName, :country_name
20
+ map :countyName, :county_name
21
+ map :phone, :phone
22
+ map :dateOfBirth, :date_of_birth
23
+ map :ssn, :ssn
24
+ map :securityField1, :security_field1
25
+ map :securityField2, :security_field2
26
+ map :securityField3, :security_field3
27
+ map :securityField4, :security_field4
28
+ map :userDefined1, :user_defined1
29
+ map :userDefined2, :user_defined2
30
+ map :userDefined3, :user_defined3
31
+ map :userDefined4, :user_defined4
32
+ map :email, :email
33
+ map :embossName, :emboss_name
34
+ map :secondaryAddress1, :secondary_address1
35
+ map :secondaryAddress2, :secondary_address2
36
+ map :secondaryAddress3, :secondary_address3
37
+ map :secondaryAddress4, :secondary_address4
38
+ map :city2, :city2
39
+ map :state2, :state2
40
+ map :zip2, :zip2
41
+ map :countryCode2, :country_code2
42
+ map :countryName2, :country_name2
43
+ map :countyName2, :county_name2
44
+ map :phone2, :phone2
45
+ map :sortCode, :sort_code
46
+ map :sortCodeAccountNumber, :sort_code_account_number
47
+ map :documentType, :document_type
48
+ map :documentNumber, :document_number
49
+ map :documentExpiryDate, :document_expiry_date
50
+ map :nationality, :nationality
51
+ map :countryOfIssuance, :country_of_issuance
52
+ map :gender, :gender
53
+ map :iban, :iban
54
+ map :bic, :bic
55
+ map :atmAccess, :atmAccess
56
+ map :userDefined, :user_defined
57
+ map :accountId, :account_id
58
+ end
59
+ end
60
+ end
61
+ end
@@ -0,0 +1,38 @@
1
+ # frozen_string_literal: true
2
+
3
+ module PFS
4
+ module Resources
5
+ module Accounts
6
+ class AccountInfo < Base
7
+ attr_reader :balance
8
+
9
+ map :accountBaseCurrency, :account_base_currency
10
+ map :cardType, :card_type
11
+ map :accountNumber, :account_number
12
+ map :bankRoutingNumber, :bank_routing_number
13
+ map :cnid, :cnid
14
+ map :cardStatus, :card_status
15
+ map :pinTriesExceeded, :pin_tries_exceeded
16
+ map :badPinTries, :bad_pin_tries
17
+ map :expirationDate, :expiration_date
18
+ map :cardEffectiveEnd, :card_effective_end
19
+ map :client, :client
20
+ map :phoneCardNumber, :phone_card_number
21
+ map :distributorCode, :distributor_code
22
+ map :companyName, :company_name
23
+ map :cardStyle, :card_style
24
+ map :deliveryType, :delivery_type
25
+ map :initialLoadProcessed, :initial_load_processed
26
+ map :loadAmount, :load_amount
27
+ map :elevatedStatus, :elevated_status
28
+ map :cardNumber, :card_number
29
+ map :walletId, :walletId
30
+
31
+ def initialize(response, attributes = {})
32
+ super(response, attributes)
33
+ @balance = Balance.new(response, attributes[:balance])
34
+ end
35
+ end
36
+ end
37
+ end
38
+ end
@@ -0,0 +1,33 @@
1
+ # frozen_string_literal: true
2
+
3
+ module PFS
4
+ module Resources
5
+ module Accounts
6
+ class IssuedAccount < Base
7
+ attr_accessor :id,
8
+ :availableBalance,
9
+ :ledgerBalance,
10
+ :status,
11
+ :expiryDate,
12
+ :ddaNumber,
13
+ :walletId,
14
+ :clientWalletId,
15
+ :cardNumber,
16
+ :cvv2,
17
+ :accountId,
18
+ :sequenceCode
19
+
20
+
21
+ alias available availableBalance
22
+ alias ledger ledgerBalance
23
+ alias expiration_date expiryDate
24
+ alias dda_number ddaNumber
25
+ alias wallet_id walletId
26
+ alias client_wallet_id clientWalletId
27
+ alias card_number cardNumber
28
+ alias account_id accountId
29
+ alias sequence_code sequenceCode
30
+ end
31
+ end
32
+ end
33
+ end
@@ -0,0 +1,20 @@
1
+ # frozen_string_literal: true
2
+
3
+ module PFS
4
+ module Resources
5
+ module Accounts
6
+ class Status < Base
7
+ CODES = {
8
+ issued: 0,
9
+ open: 1,
10
+ deposit_only: 4,
11
+ closed: 9
12
+ }
13
+ attr_accessor :cardStatus,
14
+ :description
15
+
16
+ alias code cardStatus
17
+ end
18
+ end
19
+ end
20
+ end
@@ -12,15 +12,31 @@ module PFS
12
12
  send(m, value) if respond_to?(m)
13
13
  end
14
14
  end
15
+
16
+ def self.map(original_attribute, mapped_attributes)
17
+ class_eval { attr_writer original_attribute.to_sym }
18
+ mapped_attributes = [mapped_attributes].flatten
19
+ mapped_attributes.each do |mapped_attribute|
20
+ define_method(mapped_attribute) { instance_variable_get("@#{original_attribute}")}
21
+ end
22
+ end
15
23
  end
16
24
  end
17
25
  end
18
26
 
19
27
  require_relative "collection"
28
+ require_relative "accounts/issued_account"
29
+ require_relative "accounts/account"
30
+ require_relative "accounts/account_info"
31
+ require_relative "accounts/account_holder"
20
32
  require_relative "accounts/balance"
21
33
  require_relative "accounts/balance_credit"
34
+ require_relative "accounts/status"
22
35
  require_relative "authentication/token"
23
36
  require_relative "transfers/transfer"
37
+ require_relative "transfers/internal_transfer"
38
+ require_relative "transfers/internal_transfer_from"
39
+ require_relative "transfers/internal_transfer_to"
24
40
  require_relative "transactions/transaction"
25
41
  require_relative "transactions/transactions"
26
42
  require_relative "statements/statement"
@@ -42,7 +42,6 @@ module PFS
42
42
  alias processor_type processorType
43
43
  alias status paymentStatus
44
44
  alias user_defined_fields userDefinedFields
45
-
46
45
  end
47
46
  end
48
47
  end
@@ -0,0 +1,17 @@
1
+ # frozen_string_literal: true
2
+
3
+ module PFS
4
+ module Resources
5
+ module Transfers
6
+ class InternalTransfer < Base
7
+ attr_reader :from,
8
+ :to
9
+ def initialize(response, attributes = {})
10
+ super(response, attributes)
11
+ @from = InternalTransferFrom.new(response, attributes[:from])
12
+ @to = InternalTransferTo.new(response, attributes[:to])
13
+ end
14
+ end
15
+ end
16
+ end
17
+ end
@@ -0,0 +1,16 @@
1
+ # frozen_string_literal: true
2
+
3
+ module PFS
4
+ module Resources
5
+ module Transfers
6
+ class InternalTransferFrom < Base
7
+ map :id, :id
8
+ map :balance, :balance
9
+ map :currencyCode, :currency
10
+ map :debitedAmount, :amount
11
+ map :conversionRate, :conversion_rate
12
+ map :transferFee, :transfer_fee
13
+ end
14
+ end
15
+ end
16
+ end
@@ -0,0 +1,16 @@
1
+ # frozen_string_literal: true
2
+
3
+ module PFS
4
+ module Resources
5
+ module Transfers
6
+ class InternalTransferTo < Base
7
+ map :id, :id
8
+ map :balance, :balance
9
+ map :currencyCode, :currency
10
+ map :creditedAmount, :amount
11
+ map :loadFee, :load_fee
12
+ end
13
+ end
14
+ end
15
+ end
16
+
data/lib/pfs/version.rb CHANGED
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module PFS
2
- VERSION = "0.0.4"
4
+ VERSION = "0.0.7"
3
5
  end
data/pfs.gemspec CHANGED
@@ -26,4 +26,10 @@ Gem::Specification.new do |spec|
26
26
 
27
27
  spec.required_ruby_version = ">= 2.5.0"
28
28
  spec.add_dependency "faraday", '>= 0.15'
29
+
30
+ spec.add_development_dependency "guard", "~> 2.0"
31
+ spec.add_development_dependency "guard-rspec", "~> 4.0"
32
+ spec.add_development_dependency "rake", "~> 12.0"
33
+ spec.add_development_dependency "rspec", "~> 3.0"
34
+ spec.add_development_dependency "webmock", "~> 3.0"
29
35
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pfs
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.4
4
+ version: 0.0.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Aitor García Rey
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-06-15 00:00:00.000000000 Z
11
+ date: 2022-09-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday
@@ -24,6 +24,76 @@ dependencies:
24
24
  - - ">="
25
25
  - !ruby/object:Gem::Version
26
26
  version: '0.15'
27
+ - !ruby/object:Gem::Dependency
28
+ name: guard
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - "~>"
32
+ - !ruby/object:Gem::Version
33
+ version: '2.0'
34
+ type: :development
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - "~>"
39
+ - !ruby/object:Gem::Version
40
+ version: '2.0'
41
+ - !ruby/object:Gem::Dependency
42
+ name: guard-rspec
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - "~>"
46
+ - !ruby/object:Gem::Version
47
+ version: '4.0'
48
+ type: :development
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - "~>"
53
+ - !ruby/object:Gem::Version
54
+ version: '4.0'
55
+ - !ruby/object:Gem::Dependency
56
+ name: rake
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - "~>"
60
+ - !ruby/object:Gem::Version
61
+ version: '12.0'
62
+ type: :development
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - "~>"
67
+ - !ruby/object:Gem::Version
68
+ version: '12.0'
69
+ - !ruby/object:Gem::Dependency
70
+ name: rspec
71
+ requirement: !ruby/object:Gem::Requirement
72
+ requirements:
73
+ - - "~>"
74
+ - !ruby/object:Gem::Version
75
+ version: '3.0'
76
+ type: :development
77
+ prerelease: false
78
+ version_requirements: !ruby/object:Gem::Requirement
79
+ requirements:
80
+ - - "~>"
81
+ - !ruby/object:Gem::Version
82
+ version: '3.0'
83
+ - !ruby/object:Gem::Dependency
84
+ name: webmock
85
+ requirement: !ruby/object:Gem::Requirement
86
+ requirements:
87
+ - - "~>"
88
+ - !ruby/object:Gem::Version
89
+ version: '3.0'
90
+ type: :development
91
+ prerelease: false
92
+ version_requirements: !ruby/object:Gem::Requirement
93
+ requirements:
94
+ - - "~>"
95
+ - !ruby/object:Gem::Version
96
+ version: '3.0'
27
97
  description: A ruby client to consume PFS Finac API
28
98
  email:
29
99
  - aitor@devengo.com
@@ -40,6 +110,7 @@ files:
40
110
  - ".rubocop_devengo.yml"
41
111
  - CODE_OF_CONDUCT.md
42
112
  - Gemfile
113
+ - Guardfile
43
114
  - LICENSE
44
115
  - LICENSE.txt
45
116
  - README.md
@@ -55,14 +126,22 @@ files:
55
126
  - lib/pfs/api/transactions_service.rb
56
127
  - lib/pfs/api/transfers_service.rb
57
128
  - lib/pfs/client.rb
129
+ - lib/pfs/resources/accounts/account.rb
130
+ - lib/pfs/resources/accounts/account_holder.rb
131
+ - lib/pfs/resources/accounts/account_info.rb
58
132
  - lib/pfs/resources/accounts/balance.rb
59
133
  - lib/pfs/resources/accounts/balance_credit.rb
134
+ - lib/pfs/resources/accounts/issued_account.rb
135
+ - lib/pfs/resources/accounts/status.rb
60
136
  - lib/pfs/resources/authentication/token.rb
61
137
  - lib/pfs/resources/base.rb
62
138
  - lib/pfs/resources/collection.rb
63
139
  - lib/pfs/resources/statements/statement.rb
64
140
  - lib/pfs/resources/transactions/transaction.rb
65
141
  - lib/pfs/resources/transactions/transactions.rb
142
+ - lib/pfs/resources/transfers/internal_transfer.rb
143
+ - lib/pfs/resources/transfers/internal_transfer_from.rb
144
+ - lib/pfs/resources/transfers/internal_transfer_to.rb
66
145
  - lib/pfs/resources/transfers/transfer.rb
67
146
  - lib/pfs/version.rb
68
147
  - pfs.gemspec