stbaldricks 10.10.0.alpha.1 → 10.11.0.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: 3d83066303ab227b99c625d322e908e7e273ccfd1b9dd67fc705799304298eed
4
- data.tar.gz: 64da5d2c51f91c64002971e4b9c732b170ab1af797ce87033b31028e8a07526e
3
+ metadata.gz: a7e922027f379bb0daed8cb0dfc6b0fc910caba47a638ebb04365918bc2b854d
4
+ data.tar.gz: de7100080e3e55fe2629de95060aee2b4ee3af6a20e4280274711f389d8c84cf
5
5
  SHA512:
6
- metadata.gz: 4e041a1c7eb162fde30206d263c217c753e9c14278063459ee3d8901680a86b1949ff1a0ab36c2e39173dcab31347f54257149dcb34f357e4f0ecd005cc99153
7
- data.tar.gz: 1e17df05b1cc2325415515adcec442bad684d1f1ffd6b71ae7a107fe1df6c8e335fe63843a02cae706243e718e80a8adcec1c4670f97d0c444f700d44b5e0293
6
+ metadata.gz: bc9af9d4a2c5c3a224e22de905876a1dea9ca6f2324e7abcd426ce99bd51ae22e28afb37af4fa9480245ec7bad674cb6a0d0cdc3dea5944826abf9a865b4b0f5
7
+ data.tar.gz: 342051ababf300d23df163f9b758463225db4c01764ef19547fdadd2c02a86b68621556607593b4432785f765263046f8a0792d0aef657c12bd415e02d6c9599
data/README.md CHANGED
@@ -182,7 +182,7 @@ or the expected API response data for a successful request.
182
182
  Tests are broken out into unit and integration tests. Test coverage thresholds are enforced and test additions or modifications are
183
183
  required for nearly any client library change.
184
184
 
185
- More detail on understanding and writing Rspec tests can be found in the [Rspec Guide](https://github.com/firespring/sbf/tree/master/documentation/guides/rspec).
185
+ More detail on understanding and writing Rspec tests can be found in the [Rspec Guide](https://github.com/firespring/sbf/tree/master/documentation/guides/training/rspec).
186
186
 
187
187
  #### Running Tests
188
188
  * use `rake client:ruby:test:all` to run all tests
@@ -402,16 +402,18 @@ module SBF
402
402
  multitype_attr_accessor(
403
403
  :payment_details,
404
404
  [
405
+ [->(v) { v[:type] == SBF::Client::Payment::Type::APPLEPAY }, 'SBF::Client::Payment::ApplepayDetails'],
405
406
  [->(v) { v[:type] == SBF::Client::Payment::Type::CREDIT_CARD }, 'SBF::Client::Payment::CreditCardDetails'],
406
407
  [->(v) { v[:type] == SBF::Client::Payment::Type::CASH }, 'SBF::Client::Payment::CashDetails'],
407
408
  [->(v) { v[:type] == SBF::Client::Payment::Type::CHECK }, 'SBF::Client::Payment::CheckDetails'],
409
+ [->(v) { v[:type] == SBF::Client::Payment::Type::FACEBOOK }, 'SBF::Client::Payment::FacebookDetails'],
410
+ [->(v) { v[:type] == SBF::Client::Payment::Type::GOOGLEPAY }, 'SBF::Client::Payment::GooglePayDetails'],
408
411
  [->(v) { v[:type] == SBF::Client::Payment::Type::MONEY_ORDER }, 'SBF::Client::Payment::MoneyOrderDetails'],
409
412
  [->(v) { v[:type] == SBF::Client::Payment::Type::NONCE }, 'SBF::Client::Payment::NonceDetails'],
410
- [->(v) { v[:type] == SBF::Client::Payment::Type::WIRE_TRANSFER }, 'SBF::Client::Payment::WireTransferDetails'],
411
- [->(v) { v[:type] == SBF::Client::Payment::Type::UNKNOWN }, 'SBF::Client::Payment::UnknownDetails'],
412
413
  [->(v) { v[:type] == SBF::Client::Payment::Type::PAYPAL }, 'SBF::Client::Payment::PaypalDetails'],
413
- [->(v) { v[:type] == SBF::Client::Payment::Type::FACEBOOK }, 'SBF::Client::Payment::FacebookDetails'],
414
- [->(v) { v[:type] == SBF::Client::Payment::Type::APPLEPAY }, 'SBF::Client::Payment::ApplepayDetails']
414
+ [->(v) { v[:type] == SBF::Client::Payment::Type::STRIPE }, 'SBF::Client::Payment::StripeDetails'],
415
+ [->(v) { v[:type] == SBF::Client::Payment::Type::UNKNOWN }, 'SBF::Client::Payment::UnknownDetails'],
416
+ [->(v) { v[:type] == SBF::Client::Payment::Type::WIRE_TRANSFER }, 'SBF::Client::Payment::WireTransferDetails']
415
417
  ]
416
418
  )
417
419
  entity_attr_accessor :tribute, 'SBF::Client::Donation::Tribute'
@@ -6,16 +6,18 @@ module SBF
6
6
  module Client
7
7
  class Donation < SBF::Client::TopLevelEntity
8
8
  module PaymentType
9
- UNKNOWN = 'unknown'
10
- CREDIT_CARD = 'credit_card'
11
- CHECK = 'check'
9
+ APPLEPAY = 'applepay'
12
10
  CASH = 'cash'
11
+ CHECK = 'check'
12
+ CREDIT_CARD = 'credit_card'
13
+ FACEBOOK = 'facebook'
14
+ GOOGLE_PAY = 'google_pay'
13
15
  MONEY_ORDER = 'money_order'
14
- WIRE_TRANSFER = 'wire_transfer'
15
16
  PAYPAL = 'paypal'
16
17
  STORED = 'stored'
17
- FACEBOOK = 'facebook'
18
- APPLEPAY = 'applepay'
18
+ STRIPE = 'stripe'
19
+ UNKNOWN = 'unknown'
20
+ WIRE_TRANSFER = 'wire_transfer'
19
21
  end
20
22
  end
21
23
  end
@@ -130,6 +130,7 @@ module SBF
130
130
  OTHER = 'other'.freeze
131
131
  LEGACY = 'legacy'.freeze
132
132
  VIRTUAL = 'virtual'.freeze
133
+ HYBRID = 'hybrid'.freeze
133
134
  end
134
135
 
135
136
  attr_accessor :type
@@ -199,7 +200,8 @@ module SBF
199
200
  end
200
201
 
201
202
  def venue_virtual?
202
- venue.location.type == SBF::Client::Event::Venue::Location::Type::VIRTUAL
203
+ [SBF::Client::Event::Venue::Location::Type::VIRTUAL,
204
+ SBF::Client::Event::Venue::Location::Type::HYBRID].include? venue.location.type
203
205
  end
204
206
 
205
207
  def virtual?
@@ -5,16 +5,18 @@ module SBF
5
5
  module Client
6
6
  class Payment
7
7
  module Type
8
- UNKNOWN = 'unknown'.freeze
9
- CREDIT_CARD = 'credit_card'.freeze
10
- CHECK = 'check'.freeze
8
+ APPLEPAY = 'applepay'.freeze
11
9
  CASH = 'cash'.freeze
10
+ CHECK = 'check'.freeze
11
+ CREDIT_CARD = 'credit_card'.freeze
12
+ FACEBOOK = 'facebook'.freeze
13
+ GOOGLEPAY = 'google_pay'.freeze
12
14
  MONEY_ORDER = 'money_order'.freeze
13
15
  NONCE = 'nonce'.freeze
14
- WIRE_TRANSFER = 'wire_transfer'.freeze
15
16
  PAYPAL = 'paypal'.freeze
16
- FACEBOOK = 'facebook'.freeze
17
- APPLEPAY = 'applepay'.freeze
17
+ STRIPE = 'stripe'.freeze
18
+ UNKNOWN = 'unknown'.freeze
19
+ WIRE_TRANSFER = 'wire_transfer'.freeze
18
20
  end
19
21
 
20
22
  module Gateway
@@ -116,6 +118,20 @@ module SBF
116
118
  SBF::Client::Payment::Type::APPLEPAY
117
119
  end
118
120
  end
121
+
122
+ class StripeDetails < SBF::Client::Payment::Details
123
+ def type
124
+ SBF::Client::Payment::Type::STRIPE
125
+ end
126
+ end
127
+
128
+ class GooglePayDetails < SBF::Client::Payment::Details
129
+ attr_accessor :gateway
130
+
131
+ def type
132
+ SBF::Client::Payment::Type::GOOGLEPAY
133
+ end
134
+ end
119
135
  end
120
136
  end
121
137
  end
@@ -53,6 +53,7 @@ module SBF
53
53
  module FundingType
54
54
  APPLEPAY = 'applepay'.freeze
55
55
  CREDIT_CARD = 'credit_card'.freeze
56
+ GOOGLE_PAY = 'google_pay'.freeze
56
57
  PAYPAL = 'paypal'.freeze
57
58
  end
58
59
 
@@ -203,20 +204,24 @@ module SBF
203
204
  :payment_details,
204
205
  [
205
206
  [
206
- ->(v) { v[:type] == SBF::Client::Payment::Type::NONCE },
207
- 'SBF::Client::Payment::NonceDetails'
207
+ ->(v) { v[:type] == SBF::Client::Payment::Type::APPLEPAY },
208
+ 'SBF::Client::Payment::ApplepayDetails'
208
209
  ],
209
210
  [
210
211
  ->(v) { v[:type] == SBF::Client::Payment::Type::CREDIT_CARD },
211
212
  'SBF::Client::Payment::SubscriptionCreditCardDetails'
212
213
  ],
213
214
  [
214
- ->(v) { v[:type] == SBF::Client::Payment::Type::PAYPAL },
215
- 'SBF::Client::Payment::PaypalDetails'
215
+ ->(v) { v[:type] == SBF::Client::Payment::Type::GOOGLEPAY },
216
+ 'SBF::Client::Payment::GooglePayDetails'
216
217
  ],
217
218
  [
218
- ->(v) { v[:type] == SBF::Client::Payment::Type::APPLEPAY },
219
- 'SBF::Client::Payment::ApplepayDetails'
219
+ ->(v) { v[:type] == SBF::Client::Payment::Type::NONCE },
220
+ 'SBF::Client::Payment::NonceDetails'
221
+ ],
222
+ [
223
+ ->(v) { v[:type] == SBF::Client::Payment::Type::PAYPAL },
224
+ 'SBF::Client::Payment::PaypalDetails'
220
225
  ]
221
226
  ]
222
227
  )
@@ -1,5 +1,5 @@
1
1
  module SBF
2
2
  module Client
3
- VERSION = '10.10.0.alpha.1'.freeze
3
+ VERSION = '10.11.0.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: 10.10.0.alpha.1
4
+ version: 10.11.0.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: 2021-02-22 00:00:00.000000000 Z
11
+ date: 2021-05-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activemodel
@@ -16,14 +16,14 @@ dependencies:
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: 5.2.4.3
19
+ version: 5.2.4.5
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - "~>"
25
25
  - !ruby/object:Gem::Version
26
- version: 5.2.4.3
26
+ version: 5.2.4.5
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: htmlentities
29
29
  requirement: !ruby/object:Gem::Requirement