tessitura_rest 2.1.5 → 2.1.7
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 217895c138f9d1824acfd6d630b546a588297816e02465a5a9917aea61cd3399
|
4
|
+
data.tar.gz: 5fc37760f4fd616caebec298579944919bd64759515b2a685f2406bb53d14bc1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 276412d5b657efdbef65d610f671c1902447cb25f332d5d7776c099a2ec09c3061d451fe74089dd33e7fe2733284637c61e9d100da02ee1998b35957f00382e2
|
7
|
+
data.tar.gz: 6849bc738ffae549684454f93fb62860d80f025ed1bdd6810799c6827303c045b0b9c17bdf12be59dd76b5e8023538bd8120e70d8fb905065ece8bfad7b2182a
|
@@ -31,6 +31,31 @@ module PaymentGateway
|
|
31
31
|
self.class.post(base_api_endpoint('PaymentGateway/Authorization/Authorize'), options)
|
32
32
|
end
|
33
33
|
|
34
|
+
def store_card(amount, payment_id, constituent_id, payload, address, return_url, options = {})
|
35
|
+
parameters = {
|
36
|
+
'Amount': amount,
|
37
|
+
'PaymentId': payment_id,
|
38
|
+
'ConstituentId': constituent_id,
|
39
|
+
'Card': {
|
40
|
+
'TessituraMerchantServicesData': payload,
|
41
|
+
},
|
42
|
+
'BillingAddress': {
|
43
|
+
'PostalCode': address.postal_code,
|
44
|
+
'Street1': address.street1,
|
45
|
+
'AddressId': address.id,
|
46
|
+
'Country': address.country_iso2_code,
|
47
|
+
},
|
48
|
+
'TransactionOrigin': 'webapi',
|
49
|
+
'PaymentMethodId': 606,
|
50
|
+
'IsECommerce': true,
|
51
|
+
'StoreAccount': true,
|
52
|
+
'ReturnUrl': return_url,
|
53
|
+
}
|
54
|
+
options.merge!(basic_auth: @auth, headers: @headers)
|
55
|
+
options.merge!(:body => parameters.to_json)
|
56
|
+
self.class.post(base_api_endpoint('PaymentGateway/Authorization/Authorize'), options)
|
57
|
+
end
|
58
|
+
|
34
59
|
def finalize_payment(payload, payment_id, store_account, options = {})
|
35
60
|
parameters = {
|
36
61
|
'PaymentId': payment_id,
|
data/lib/tessitura_rest.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: tessitura_rest
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.1.
|
4
|
+
version: 2.1.7
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Brittany Martin, Danielle Greaves, Craig Donavin, Patrick FitzGerald
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2025-01-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -152,7 +152,6 @@ files:
|
|
152
152
|
- lib/tessitura_rest/reference_data/countries.rb
|
153
153
|
- lib/tessitura_rest/reference_data/sections.rb
|
154
154
|
- lib/tessitura_rest/reference_data/states.rb
|
155
|
-
- lib/tessitura_rest/security/security_user_groups.rb
|
156
155
|
- lib/tessitura_rest/txn/orders.rb
|
157
156
|
- lib/tessitura_rest/txn/package.rb
|
158
157
|
- lib/tessitura_rest/txn/payments.rb
|
@@ -1,7 +0,0 @@
|
|
1
|
-
module SecurityUserGroups
|
2
|
-
def security_user_groups(login, options = {})
|
3
|
-
options.merge!(basic_auth: @auth, headers: @headers)
|
4
|
-
response = self.class.get(base_api_endpoint("Security/UserGroups/Default?userName=#{login}"), options)
|
5
|
-
JSON.parse(response.body)['UserGroup']
|
6
|
-
end
|
7
|
-
end
|