tessitura_rest 1.2.0 → 1.2.1
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 +4 -4
- data/.codeclimate.yml +13 -0
- data/.github/workflows/gem-push.yml +2 -2
- data/lib/tessitura_rest/version.rb +1 -1
- data/lib/tessitura_rest/web/cart.rb +20 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 368d58abb2fa30d588bc9c80a69af8fa79e32332c609d910dd59a892fbd4c1e4
|
4
|
+
data.tar.gz: b7060631e64950b73f60c26967f1aebfd86e7b72bffa8b312f74ee067c77d031
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f329a53edd94383fbfb6bc64a5a2ba823cd358449642ff136c0fba4500465d2642534e868a5b613878b97165d4193b7a1bbf42e2b8ad8c1f97d2525ed69ede66
|
7
|
+
data.tar.gz: 2c76b782f77eea3add79ad64e558dc4849e03b7b513bab148ae5ef9a8a124e80fbd2e9feb1a9231b7873f445ca73aea58fe32e8086e93a1005592cc02979fed0
|
data/.codeclimate.yml
CHANGED
@@ -1,4 +1,17 @@
|
|
1
1
|
version: "2"
|
2
|
+
checks:
|
3
|
+
argument-count:
|
4
|
+
enabled: false
|
5
|
+
file-lines:
|
6
|
+
enabled: false
|
7
|
+
method-count:
|
8
|
+
enabled: false
|
9
|
+
method-lines:
|
10
|
+
enabled: false
|
11
|
+
similar-code:
|
12
|
+
enabled: false
|
13
|
+
identical-code:
|
14
|
+
enabled: false
|
2
15
|
plugins:
|
3
16
|
brakeman:
|
4
17
|
enabled: false
|
@@ -296,4 +296,24 @@ module Cart
|
|
296
296
|
options.merge!(:body => parameters.to_json, :headers => { 'Content-Type' => 'application/json' })
|
297
297
|
self.class.post(base_api_endpoint("Web/Cart/#{session_key}/Checkout"), options)
|
298
298
|
end
|
299
|
+
|
300
|
+
def checkout_with_zip(session_key, name_on_card, credit_card_number, cvv_number, credit_card_type, expiration_month, expiration_year, zip_code, is_order_authorized, order_authorization_code, order_amount, allow_under_payment, options = {})
|
301
|
+
parameters =
|
302
|
+
{
|
303
|
+
'CreditCardOwner': name_on_card,
|
304
|
+
'CreditCardNumber': credit_card_number,
|
305
|
+
'CreditCardType': credit_card_type,
|
306
|
+
'CreditCardMonth': expiration_month,
|
307
|
+
'CreditCardYear': expiration_year,
|
308
|
+
'Amount': order_amount,
|
309
|
+
'AllowUnderPayment': allow_under_payment,
|
310
|
+
'CreditCardAuthenticationCode': cvv_number,
|
311
|
+
'Authorize': is_order_authorized,
|
312
|
+
'AuthorizationCode': order_authorization_code,
|
313
|
+
'ZipCode': zip_code,
|
314
|
+
}
|
315
|
+
options.merge!(basic_auth: @auth, headers: @headers)
|
316
|
+
options.merge!(:body => parameters.to_json, :headers => { 'Content-Type' => 'application/json' })
|
317
|
+
self.class.post(base_api_endpoint("Web/Cart/#{session_key}/Checkout"), options)
|
318
|
+
end
|
299
319
|
end
|
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: 1.2.
|
4
|
+
version: 1.2.1
|
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: 2023-01-20 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|