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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c9413528711e97557df863dbde14d5aa1cee1832778ea08ba8cd71e47895bfde
|
4
|
+
data.tar.gz: 27a4038c062f96fb1ada059d145e89a87a9b730ec3ed32addef8401d319dad58
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 46d3e19f538c3fc89dd0bca300145d3c79f9960f229be79e0006a1d93b337aa2be91b6695c94a9bb34434ff5f8cf0ab1636bb02aec881b41aa97398d6c31345c
|
7
|
+
data.tar.gz: 64e50823ceb3a9c91adaa1fc047d873115fe519c1b5738794bc3fe40894e455cc393e8cf61985b7a4f3a166a2d3c0da6ad613cd3f5e35702597f12066bc0b9de
|
@@ -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
|
36
|
-
attr_accessor :
|
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
|
44
|
-
attr_accessor :gateway, :
|
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::
|
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
|
)
|
data/lib/stbaldricks/version.rb
CHANGED
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.
|
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.
|
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
|