stbaldricks 12.9.0.alpha.2 → 12.9.0.alpha.4

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: dd68778c55cf3a8d18a1649c65e3faeecc93a7ae1c7c213bd584d554fdd109ba
4
- data.tar.gz: b3355aa947c4960549610eaefd4f3af2ad8673cc79119381e93ddb8a827c5554
3
+ metadata.gz: 05f2725c1dbebcc787bf9adefd58d81ac72d21d1c049509bb3cd46a5ab51f7df
4
+ data.tar.gz: 004423e5b5060c8d1e1132f616c58cf4905f9948ac2ca05a90fcbed691746b1a
5
5
  SHA512:
6
- metadata.gz: bc10d257b034e1d569973036e2f73def0f8ef96311b9e7a423203d7ee6f28460dfb848347f30ec52567f09a45be8a04c7701afed8cdc221da13dfd874de7e71c
7
- data.tar.gz: bf0ea1827b951875ed25dda3123b602b8f2788ff2dbb5506649e153e02a2e4172793e42e6e980b591d523413330665c48ea6906925a390b9c417806f3ad2f1e3
6
+ metadata.gz: 297841f8f48118534618bf652b4c72b824f35a7a093a21800eeee3cd6b89333d52e140f92d0fdcfdf19398f51b858bd1101be9fb2a33ca06c062a48b2779cc30
7
+ data.tar.gz: 3de58b1520d39f311b779033d793f74c1fb7a976e78879ea6d41df92aa8bafef0105c4d1320af56366760aa80a26f9dfb77402a5bfad2f8feeb8aad76cafba52
@@ -19,6 +19,18 @@ module SBF
19
19
 
20
20
  SBF::Client::Api::Response.new(http_code: response.code, data: data, error: error)
21
21
  end
22
+
23
+ def direct_donation_years(params)
24
+ response = SBF::Client::Api::Request.post_request("#{base_uri}/direct_donation_years", params)
25
+ data = JSON.parse(response.body).symbolize!
26
+
27
+ unless ok?(response)
28
+ error = SBF::Client::ErrorEntity.new(data)
29
+ data = nil
30
+ end
31
+
32
+ SBF::Client::Api::Response.new(http_code: response.code, data: data, error: error)
33
+ end
22
34
  end
23
35
  end
24
36
  end
@@ -29,6 +29,7 @@ module SBF
29
29
  attr_accessor :id
30
30
  attr_accessor :name
31
31
  attr_accessor :website_url
32
+ attr_accessor :is_enabled
32
33
 
33
34
  entity_attr_reader :totals, 'SBF::Client::Campaign::Totals', nil, true
34
35
  entity_attr_accessor :web_page, 'SBF::Client::WebPage', nil, true
@@ -18,6 +18,7 @@ module SBF
18
18
  STRIPE = 'stripe'
19
19
  UNKNOWN = 'unknown'
20
20
  WIRE_TRANSFER = 'wire_transfer'
21
+ VENMO = 'venmo'
21
22
  end
22
23
  end
23
24
  end
@@ -412,6 +412,7 @@ module SBF
412
412
  [->(v) { v[:type] == SBF::Client::Payment::Type::NONCE }, 'SBF::Client::Payment::NonceDetails'],
413
413
  [->(v) { v[:type] == SBF::Client::Payment::Type::PAYPAL }, 'SBF::Client::Payment::PaypalDetails'],
414
414
  [->(v) { v[:type] == SBF::Client::Payment::Type::STRIPE }, 'SBF::Client::Payment::StripeDetails'],
415
+ [->(v) { v[:type] == SBF::Client::Payment::Type::VENMO }, 'SBF::Client::Payment::VenmoDetails'],
415
416
  [->(v) { v[:type] == SBF::Client::Payment::Type::UNKNOWN }, 'SBF::Client::Payment::UnknownDetails'],
416
417
  [->(v) { v[:type] == SBF::Client::Payment::Type::WIRE_TRANSFER }, 'SBF::Client::Payment::WireTransferDetails']
417
418
  ]
@@ -11,6 +11,7 @@ module SBF
11
11
  include DonationRecipientConcern, Entities::DefaultCacheable
12
12
  endpoint SBF::Client::FundEndpoint
13
13
  action :allowed_entities
14
+ action :direct_donation_years
14
15
  action :get
15
16
  action :find
16
17
  action :find_first
@@ -15,6 +15,7 @@ module SBF
15
15
  NONCE = 'nonce'.freeze
16
16
  PAYPAL = 'paypal'.freeze
17
17
  STRIPE = 'stripe'.freeze
18
+ VENMO = 'venmo'.freeze
18
19
  UNKNOWN = 'unknown'.freeze
19
20
  WIRE_TRANSFER = 'wire_transfer'.freeze
20
21
  end
@@ -125,6 +126,14 @@ module SBF
125
126
  end
126
127
  end
127
128
 
129
+ class VenmoDetails < SBF::Client::Payment::Details
130
+ attr_accessor :gateway
131
+
132
+ def type
133
+ SBF::Client::Payment::Type::VENMO
134
+ end
135
+ end
136
+
128
137
  class GooglePayDetails < SBF::Client::Payment::Details
129
138
  attr_accessor :gateway
130
139
 
@@ -1,5 +1,5 @@
1
1
  module SBF
2
2
  module Client
3
- VERSION = '12.9.0.alpha.2'.freeze
3
+ VERSION = '12.9.0.alpha.4'.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.9.0.alpha.2
4
+ version: 12.9.0.alpha.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Firespring
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-08-10 00:00:00.000000000 Z
11
+ date: 2022-09-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activemodel