stbaldricks 12.6.0 → 12.6.2.alpha.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
  SHA256:
3
- metadata.gz: 5183e48ff0c1b00b3e986ae51fbb109fe71070c5a83a2810dad8f5c849b38a0a
4
- data.tar.gz: 4e0a1d479c080aad1404866a7258be0f7427aec735f9e57e38246771f8b74d9b
3
+ metadata.gz: bdb8aa3e470a7e9304a5720696ffcd5d76c60bfa2ca73841848801f7db896c16
4
+ data.tar.gz: 1e9701c0c14a473a7a87f02bc1cd3162bec21c46ba0d332d0f402e4535bb0939
5
5
  SHA512:
6
- metadata.gz: 42ada9bcd69eb1bc01214199d5a1e202cd5d0f645bb345684e736d00c45eb83b1289abde5faff1c35b2391808e769a43259897787a4aaf56ab7e5041c52359b8
7
- data.tar.gz: d2f217639d6db414d5a5a1fd84b2cbcbbd4c2ee1ed29564d1a01e0a223d7ac3bcae9e289aa9825a4671a2b6a215c2ad19b61d07ad5468d23c6a43dcbf8e2c103
6
+ metadata.gz: b52f42699b0797e8d13f1d3d50eec3495e2d0ca6b9d1572f6688d647e32d88eeacbb49fd08c2b16a85d0d2e80e6128a9e7436a7bf2fdcae067f022e9d051e417
7
+ data.tar.gz: 935fa79902bba9baa185be9ecda02011e4e683361998fdaea46d6668bb800841fc013fe90b1eb87da713bb84d3c486c3dc6a9b00c0a04c031e5506fac724613f
@@ -19,6 +19,12 @@ module SBF
19
19
 
20
20
  disallow_instantiation
21
21
 
22
+ module ManagerType
23
+ INDIVIDUAL = 'individual'.freeze
24
+ BUSINESS = 'business'.freeze
25
+ ORGANIZATION_FOUNDATION = 'foundation'.freeze
26
+ end
27
+
22
28
  class Photos < SBF::Client::BaseEntity
23
29
  attr_reader :avatar, :default
24
30
  end
@@ -73,6 +79,28 @@ module SBF
73
79
  attr_accessor :kid_name
74
80
  attr_accessor :offline_donation_uuid, :offline_donation_form
75
81
 
82
+ multitype_attr_accessor(
83
+ :manager,
84
+ [
85
+ [
86
+ ->(v) { v[:type] == SBF::Client::Fund::ManagerType::INDIVIDUAL },
87
+ 'SBF::Client::FullPerson',
88
+ 'SBF::Client::PartialPerson'
89
+ ],
90
+ [
91
+ ->(v) { v[:type] == SBF::Client::Fund::ManagerType::BUSINESS },
92
+ 'SBF::Client::FullOrganization',
93
+ 'SBF::Client::PartialOrganization'
94
+ ],
95
+ [
96
+ ->(v) { v[:type] == SBF::Client::Fund::ManagerType::ORGANIZATION_FOUNDATION },
97
+ 'SBF::Client::FullOrganization',
98
+ 'SBF::Client::PartialOrganization'
99
+ ]
100
+ ],
101
+ optional: true
102
+ )
103
+
76
104
  def totals_by_year=(value)
77
105
  if value.nil? || value.empty?
78
106
  @totals_by_year = []
@@ -58,6 +58,7 @@ module SBF
58
58
  ITALY = 'Italy'
59
59
  JAMAICA = 'Jamaica'
60
60
  JAPAN = 'Japan'
61
+ JORDAN = 'Jordan'
61
62
  KENYA = 'Kenya'
62
63
  KUWAIT = 'Kuwait'
63
64
  LEBANON = 'Lebanon'
@@ -171,6 +172,7 @@ module SBF
171
172
  ITALY => :IT,
172
173
  JAMAICA => :JM,
173
174
  JAPAN => :JP,
175
+ JORDAN => :JO,
174
176
  KENYA => :KE,
175
177
  KUWAIT => :KW,
176
178
  LEBANON => :LB,
@@ -1,5 +1,5 @@
1
1
  module SBF
2
2
  module Client
3
- VERSION = '12.6.0'.freeze
3
+ VERSION = '12.6.2.alpha.1'.freeze
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: stbaldricks
3
3
  version: !ruby/object:Gem::Version
4
- version: 12.6.0
4
+ version: 12.6.2.alpha.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Firespring
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-06-20 00:00:00.000000000 Z
11
+ date: 2022-07-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activemodel
@@ -563,9 +563,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
563
563
  version: '0'
564
564
  required_rubygems_version: !ruby/object:Gem::Requirement
565
565
  requirements:
566
- - - ">="
566
+ - - ">"
567
567
  - !ruby/object:Gem::Version
568
- version: '0'
568
+ version: 1.3.1
569
569
  requirements: []
570
570
  rubygems_version: 3.0.3.1
571
571
  signing_key: