stbaldricks 4.8.1.alpha.1 → 4.8.1.alpha.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 750c1f7d1fbbb6533e8397e6bdda567d7917849e21a3f96f999c477bd398e998
4
- data.tar.gz: ccecc8793e9edf27fde5d3f51adbed01cf93eef686e0c6263e7e355ed9c10e39
3
+ metadata.gz: c9413528711e97557df863dbde14d5aa1cee1832778ea08ba8cd71e47895bfde
4
+ data.tar.gz: 27a4038c062f96fb1ada059d145e89a87a9b730ec3ed32addef8401d319dad58
5
5
  SHA512:
6
- metadata.gz: cc0663b8a617c893ad3b8d0fcf1a44693be93efb30d8f05e9fd231c1a189f1a609a71c5b46d47c0034647f7f3a9e974e868b1b421631b48494a6cd80b20c5aec
7
- data.tar.gz: c0a426cdd7031fb8f2d13b875e7a983c61e0688d28bb11a42c4c1f2218d104d81cb749f95d6f4402aabec2de8220869a5c9af8807acebdc95fcb00eb7441c672
6
+ metadata.gz: 46d3e19f538c3fc89dd0bca300145d3c79f9960f229be79e0006a1d93b337aa2be91b6695c94a9bb34434ff5f8cf0ab1636bb02aec881b41aa97398d6c31345c
7
+ data.tar.gz: 64e50823ceb3a9c91adaa1fc047d873115fe519c1b5738794bc3fe40894e455cc393e8cf61985b7a4f3a166a2d3c0da6ad613cd3f5e35702597f12066bc0b9de
@@ -10,7 +10,6 @@ module SBF
10
10
  CASH = 'cash'
11
11
  MONEY_ORDER = 'money_order'
12
12
  WIRE_TRANSFER = 'wire_transfer'
13
- RECURRING_GIFTS = 'recurring'
14
13
  PAYPAL = 'paypal'
15
14
  end
16
15
  end
@@ -398,7 +398,6 @@ module SBF
398
398
  [->(v) { v[:type] == SBF::Client::Payment::Type::MONEY_ORDER }, 'SBF::Client::Payment::MoneyOrderDetails'],
399
399
  [->(v) { v[:type] == SBF::Client::Payment::Type::NONCE }, 'SBF::Client::Payment::NonceDetails'],
400
400
  [->(v) { v[:type] == SBF::Client::Payment::Type::WIRE_TRANSFER }, 'SBF::Client::Payment::WireTransferDetails'],
401
- [->(v) { v[:type] == SBF::Client::Payment::Type::RECURRING_GIFTS }, 'SBF::Client::Payment::BraintreeSubscriptionDetails'],
402
401
  [->(v) { v[:type] == SBF::Client::Payment::Type::UNKNOWN }, 'SBF::Client::Payment::UnknownDetails'],
403
402
  [->(v) { v[:type] == SBF::Client::Payment::Type::PAYPAL }, 'SBF::Client::Payment::PaypalDetails']
404
403
  ]
@@ -12,7 +12,6 @@ module SBF
12
12
  MONEY_ORDER = 'money_order'
13
13
  NONCE = 'nonce'
14
14
  WIRE_TRANSFER = 'wire_transfer'
15
- RECURRING_GIFTS = 'recurring'
16
15
  PAYPAL = 'paypal'
17
16
  end
18
17
 
@@ -32,19 +31,19 @@ module SBF
32
31
  end
33
32
  end
34
33
 
35
- class CreditCardDetails < SBF::Client::Payment::Details
36
- attr_accessor :gateway, :authorization_id, :cardholder_name, :card_type, :expiration_date, :card_number
34
+ class SubscriptionCreditCardDetails < SBF::Client::Payment::Details
35
+ attr_accessor :cardholder_name, :card_type, :expiration_date, :card_number
37
36
 
38
37
  def type
39
38
  SBF::Client::Payment::Type::CREDIT_CARD
40
39
  end
41
40
  end
42
41
 
43
- class BraintreeSubscriptionDetails < SBF::Client::Payment::Details
44
- attr_accessor :gateway, :subscription_id, :customer_id, :cardholder_name, :card_type, :expiration_date, :card_number
42
+ class CreditCardDetails < SBF::Client::Payment::Details
43
+ attr_accessor :gateway, :authorization_id, :cardholder_name, :card_type, :expiration_date, :card_number
45
44
 
46
45
  def type
47
- SBF::Client::Payment::Type::RECURRING_GIFTS
46
+ SBF::Client::Payment::Type::CREDIT_CARD
48
47
  end
49
48
  end
50
49
 
@@ -157,19 +157,21 @@ module SBF
157
157
  attr_accessor :is_unrecognized
158
158
  attr_accessor :promotional_code
159
159
  attr_accessor :funding_type
160
+ attr_accessor :customer_id
161
+ attr_accessor :subscription_id
160
162
  entity_collection_attr_accessor :donations, 'SBF::Client::FullDonation', 'SBF::Client::PartialDonation'
161
163
  attr_accessor :created_at, :modified_at, :modified_by, :how_created, :past_due_at
162
164
 
163
165
  multitype_attr_accessor(
164
166
  :payment_details,
165
167
  [
166
- [
167
- ->(v) { v[:type] == SBF::Client::Payment::Type::RECURRING_GIFTS },
168
- 'SBF::Client::Payment::BraintreeSubscriptionDetails'
169
- ],
170
168
  [
171
169
  ->(v) { v[:type] == SBF::Client::Payment::Type::NONCE },
172
170
  'SBF::Client::Payment::NonceDetails'
171
+ ],
172
+ [
173
+ ->(v) { v[:type] == SBF::Client::Payment::Type::CREDIT_CARD },
174
+ 'SBF::Client::Payment::SubscriptionCreditCardDetails'
173
175
  ]
174
176
  ]
175
177
  )
@@ -1,5 +1,5 @@
1
1
  module SBF
2
2
  module Client
3
- VERSION = '4.8.1.alpha.1'
3
+ VERSION = '4.8.1.alpha.2'
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: stbaldricks
3
3
  version: !ruby/object:Gem::Version
4
- version: 4.8.1.alpha.1
4
+ version: 4.8.1.alpha.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Firespring
@@ -232,7 +232,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
232
232
  version: 1.3.1
233
233
  requirements: []
234
234
  rubyforge_project:
235
- rubygems_version: 2.7.3
235
+ rubygems_version: 2.7.5
236
236
  signing_key:
237
237
  specification_version: 4
238
238
  summary: St. Baldrick's Foundation Ruby Client Library