centaman 5.0.8 → 6.0.0

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: 1c24bf7198b2e878a9b5c36d233932748aa0ea2a6b2916ddae063640c685eefc
4
- data.tar.gz: fd4633e26b9e8dc77c96f68f973cdf44e7451eeff2b2a07466e13017be62d8d5
3
+ metadata.gz: e7bbb7067fec5fca2cfaa9b7a44f948ffeb68138d843c7212b35feb6cc0f94c2
4
+ data.tar.gz: 5a104a08b89765985b4b084d395abd803076746b0522549bf01a2f691d612db5
5
5
  SHA512:
6
- metadata.gz: 3e507ef3cc3dd5708c543f54bdf7e42b738fa57cb0774b05502aed3204c40f0cd881a587653178f1a8cfbd2011a04f78cce1b8f00c858e00010bd35e056a2dce
7
- data.tar.gz: 520be24556482b129722d0432677bedea6aa3cd1d413356941ca8b0d18e9388d1b6eb435d0ab992f66dad37cb267b602366957c5d3efe2741031def6bca234f0
6
+ metadata.gz: cb60f6c963e5c5039185ccfffc5f07b5451d31b812cc4d76c29fee54639dbd36108cef24eecffbacdc9d6437861d5932bc91c4a0ff6e833179d4a232dcf6035e
7
+ data.tar.gz: 98dd775d5eb3d2d1ff7b98b2a85658748baaa9c9c5de8e6e8d5bd7bdebe5ce03fdd005698831738e2be246a551590495e07ef266657e34ba685e6e5ec32791ed
data/lib/centaman.rb CHANGED
@@ -16,7 +16,7 @@ require 'centaman/service/cost_rate'
16
16
  require 'centaman/service/coupon_check'
17
17
  require 'centaman/service/create_customer'
18
18
  require 'centaman/service/create_primary_member'
19
- require 'centaman/service/create_secondary_member'
19
+ require 'centaman/service/create_secondary_members'
20
20
  require 'centaman/service/create_udf'
21
21
  require 'centaman/service/extra'
22
22
  require 'centaman/service/gift_ticket'
@@ -1,7 +1,7 @@
1
1
  require 'securerandom'
2
2
 
3
3
  module Centaman
4
- class Service::CreateSecondaryMember < Centaman::Service
4
+ class Service::CreateSecondaryMembers < Centaman::Service
5
5
  include Centaman::JsonWrapper
6
6
 
7
7
  attr_reader :primary_member_id, :secondary_members
@@ -37,15 +37,14 @@ module Centaman
37
37
  {
38
38
  'FirstName' => member.first_name.try(:squish).try(:upcase),
39
39
  'LastName' => member.last_name.try(:squish).try(:upcase),
40
- 'Title' => member.title.try(:squish).try(:upcase),
41
40
  'IsPrimary' => false,
42
41
  'PrimaryMemberId' => primary_member_id
43
42
  }
44
43
  end
45
44
 
46
45
  def create_error(resp)
47
- message = { error: resp.parsed_response || 'Unable to create the member record(s).' }
48
- raise message[:error]
46
+ message = resp.parsed_response || 'Unable to create the member record(s).'
47
+ raise message
49
48
  end
50
49
  end
51
50
  end
@@ -1,3 +1,3 @@
1
1
  module Centaman
2
- VERSION = "5.0.8"
2
+ VERSION = "6.0.0"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: centaman
3
3
  version: !ruby/object:Gem::Version
4
- version: 5.0.8
4
+ version: 6.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - francirp
@@ -118,7 +118,7 @@ files:
118
118
  - lib/centaman/service/coupon_check.rb
119
119
  - lib/centaman/service/create_customer.rb
120
120
  - lib/centaman/service/create_primary_member.rb
121
- - lib/centaman/service/create_secondary_member.rb
121
+ - lib/centaman/service/create_secondary_members.rb
122
122
  - lib/centaman/service/create_udf.rb
123
123
  - lib/centaman/service/extra.rb
124
124
  - lib/centaman/service/general_admission_ticket.rb