bs2_api 1.0.2 → 1.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
  SHA256:
3
- metadata.gz: fedfacb857654251513141faee3fe9594e888c3d10f6de512016d4902f532e17
4
- data.tar.gz: 5d424e8fd30eeeeb261470ac5aef0e4bc09cf511aafe9f221f8f684a684477b6
3
+ metadata.gz: 1121a339962d5ccf01e2e82d2cac9c26326b0cb5f07bb58af18cd2aaf8502009
4
+ data.tar.gz: 5ca659be8a6422c8c620b4304769822bd78d64835a6ed6f8e2b4612f0e3cea07
5
5
  SHA512:
6
- metadata.gz: ac0eb6711af976b5354a2f4a8b61e1aa63f7818df87601f7234390788b88621176dde42e1c34d6c175ba2a4801c783750bb47b2372a3e6d62f93112480d2864d
7
- data.tar.gz: 0ecd2596091a8a4c664307e4f9d40e7c0a95fb113466d97bb3ac59c8e45e9914630e4a590bbba0813bce72a53d08e921af61f036152a02f711a9f78dcfd5ddd1
6
+ metadata.gz: 2ba02bb1b9d40ea4e78d087a4cf3e89fa698adce23b1c7d50eedc4fe05808a548f7cbcb15ea98a321515b0b7faeabaf10cdccb5a80b35295cc9926758c3b26a8
7
+ data.tar.gz: 864734c20782307fe3d2ba4cb86dd78ee1de72f84681a3019b9a6c48b504eae9aef08aecbb66541515b80791d9abcbb39a594d0aefb6427d5c71cdd5916376bd
data/CHANGELOG.md CHANGED
@@ -1,3 +1,6 @@
1
+ ## [1.0.3] - 2021-07-23
2
+ - First and Last name methods to customer
3
+
1
4
  ## [1.0.1] - 2021-06-25
2
5
  - Adjust HTTP response code when create payments into BS2
3
6
 
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- bs2_api (1.0.1)
4
+ bs2_api (1.0.2)
5
5
  activesupport
6
6
  builder
7
7
  bundler
@@ -38,7 +38,7 @@ GEM
38
38
  method_source (1.0.0)
39
39
  mime-types (3.3.1)
40
40
  mime-types-data (~> 3.2015)
41
- mime-types-data (3.2021.0225)
41
+ mime-types-data (3.2021.0704)
42
42
  minitest (5.14.4)
43
43
  multi_xml (0.6.0)
44
44
  pry (0.13.1)
@@ -48,7 +48,7 @@ GEM
48
48
  byebug (~> 11.0)
49
49
  pry (~> 0.13.0)
50
50
  public_suffix (4.0.6)
51
- rake (13.0.3)
51
+ rake (13.0.4)
52
52
  rexml (3.2.5)
53
53
  rspec (3.10.0)
54
54
  rspec-core (~> 3.10.0)
@@ -46,6 +46,20 @@ module Bs2Api
46
46
  def business?
47
47
  @type == TYPES[:business]
48
48
  end
49
+
50
+ def first_name
51
+ split_name.first
52
+ end
53
+
54
+ def last_name
55
+ return '' if split_name.size <= 1
56
+ split_name.last
57
+ end
58
+
59
+ private
60
+ def split_name
61
+ @split_name ||= @name.split(' ')
62
+ end
49
63
  end
50
64
  end
51
65
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Bs2Api
4
- VERSION = "1.0.2"
4
+ VERSION = "1.0.3"
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bs2_api
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.2
4
+ version: 1.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kim Pastro
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2021-07-06 00:00:00.000000000 Z
11
+ date: 2021-07-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: builder