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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e7bbb7067fec5fca2cfaa9b7a44f948ffeb68138d843c7212b35feb6cc0f94c2
|
4
|
+
data.tar.gz: 5a104a08b89765985b4b084d395abd803076746b0522549bf01a2f691d612db5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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/
|
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::
|
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 =
|
48
|
-
raise message
|
46
|
+
message = resp.parsed_response || 'Unable to create the member record(s).'
|
47
|
+
raise message
|
49
48
|
end
|
50
49
|
end
|
51
50
|
end
|
data/lib/centaman/version.rb
CHANGED
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:
|
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/
|
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
|