stbaldricks 10.10.2 → 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: 3b59c61f6634a1930d5f48eecf6932fd14852282be0a95737e8a43ee6a5209f6
4
- data.tar.gz: 42cf9a972d3779c349c1dd598d066827038354804ca103a7e14c0acbe1e3e088
3
+ metadata.gz: a7e922027f379bb0daed8cb0dfc6b0fc910caba47a638ebb04365918bc2b854d
4
+ data.tar.gz: de7100080e3e55fe2629de95060aee2b4ee3af6a20e4280274711f389d8c84cf
5
5
  SHA512:
6
- metadata.gz: 97abb2641a2ff32f6ed32ade0771c3887ce15cda80bbf18f6f424d4431b164de454e931403b1686996c5e16b1a8519f617eabe960a4a2bd5548ffb7387dd479f
7
- data.tar.gz: 479a57696cdfaf0b319a9e1884e867d38d8b8bcc31997d884ad06f35e0c6d2c3ecdbbb57e20432a3831c0102eee6223b17f73d58f47438f99b22a85839be7585
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,17 +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'],
415
- [->(v) { v[:type] == SBF::Client::Payment::Type::STRIPE }, 'SBF::Client::Payment::StripeDetails']
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']
416
417
  ]
417
418
  )
418
419
  entity_attr_accessor :tribute, 'SBF::Client::Donation::Tribute'
@@ -6,17 +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'
19
18
  STRIPE = 'stripe'
19
+ UNKNOWN = 'unknown'
20
+ WIRE_TRANSFER = 'wire_transfer'
20
21
  end
21
22
  end
22
23
  end
@@ -5,17 +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
18
17
  STRIPE = 'stripe'.freeze
18
+ UNKNOWN = 'unknown'.freeze
19
+ WIRE_TRANSFER = 'wire_transfer'.freeze
19
20
  end
20
21
 
21
22
  module Gateway
@@ -123,6 +124,14 @@ module SBF
123
124
  SBF::Client::Payment::Type::STRIPE
124
125
  end
125
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
126
135
  end
127
136
  end
128
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.2'.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.2
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-04-19 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
@@ -554,9 +554,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
554
554
  version: '0'
555
555
  required_rubygems_version: !ruby/object:Gem::Requirement
556
556
  requirements:
557
- - - ">="
557
+ - - ">"
558
558
  - !ruby/object:Gem::Version
559
- version: '0'
559
+ version: 1.3.1
560
560
  requirements: []
561
561
  rubygems_version: 3.0.3
562
562
  signing_key: