rock_rms 0.0.9 → 0.0.10

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
  SHA1:
3
- metadata.gz: 27591a871df8890a775bd4f4c142a486d2e60118
4
- data.tar.gz: ba514d35a3e780262708639fe5e676af846538d3
3
+ metadata.gz: f91cc63d34c6ffff2362373c6ccf1e039f615fff
4
+ data.tar.gz: b1daf2cb7f116f061a0943f9e0bf310953644dbf
5
5
  SHA512:
6
- metadata.gz: f187f18982dd4286d90bf11d32832b7bdca43cf9e99fe39d1788e52d83dc42884ce0325428764798ab3f28c539a0e22936213bbc25b3bfda3f83b51bdc0175ee
7
- data.tar.gz: d92f43093d060813bd1e8e0b83008eae443c218602942c910c5d45bdeee10d8a113b95d7f9290b8aba9b2c47425952aab9ebdcb2f1aaedc9f57249cd8af39223
6
+ metadata.gz: d2a7917f9c621012d0b59a23b7cd33231fca966ae0c2f9c2b84188aa891ae5e4600ee502395d46a48c6d8b1490a85fe56402f64c72af04f48526c4b7655aae22
7
+ data.tar.gz: d14d491ff89b2696313f567deb772fa6d9bb4ce2988e8babe8777c75eb4f5841c643da975a45ea475e3c9d454ebea5553de4a70090cf2af12bc5f8ab1bd0ac27
@@ -16,7 +16,16 @@ module RockRMS
16
16
  RockRMS::Donation.format(res)
17
17
  end
18
18
 
19
- def create_donation(payment_type:, authorized_person_id:, amount:, date:, fund_id:, batch_id:, transaction_code: nil)
19
+ def create_donation(
20
+ amount:,
21
+ authorized_person_id:,
22
+ batch_id:,
23
+ date:,
24
+ fund_id:,
25
+ payment_type:,
26
+ source_type_id: 10,
27
+ transaction_code: nil
28
+ )
20
29
  options = {
21
30
  'AuthorizedPersonAliasId' => authorized_person_id,
22
31
  'BatchId' => batch_id,
@@ -27,8 +36,8 @@ module RockRMS
27
36
  'Amount' => amount,
28
37
  'AccountId' => fund_id
29
38
  }],
30
- 'TransactionTypeValueId' => 53, # contribution, registration
31
- 'SourceTypeValueId' => 10, # website, kiosk, mobile app
39
+ 'TransactionTypeValueId' => 53, # contribution, registration
40
+ 'SourceTypeValueId' => source_type_id, # website, kiosk, mobile app
32
41
  }
33
42
  post(transaction_path, options)
34
43
  end
@@ -5,6 +5,15 @@ module RockRMS
5
5
  get(payment_method_path, options)
6
6
  end
7
7
 
8
+ def create_payment_method(currency_type:, foreign_key: nil)
9
+ options = {
10
+ 'CurrencyTypeValueId' => currency_type,
11
+ 'ForeignKey' => foreign_key
12
+ }
13
+
14
+ post(payment_method_path, options)
15
+ end
16
+
8
17
  private
9
18
 
10
19
  def payment_method_path(id = nil)
@@ -1,3 +1,3 @@
1
1
  module RockRMS
2
- VERSION = '0.0.9'.freeze
2
+ VERSION = '0.0.10'.freeze
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rock_rms
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.9
4
+ version: 0.0.10
5
5
  platform: ruby
6
6
  authors:
7
7
  - Taylor Brooks
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-11-09 00:00:00.000000000 Z
11
+ date: 2017-12-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday