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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 2812c2d529428c1cf0d14f6d3a939d8840c07f2da4760000f13d9021f53a0c7d
4
- data.tar.gz: 101e006c9faa8374ce8e7296bc8360b708e713eba33bfb0319a3ead35fa1ae4e
3
+ metadata.gz: 368d58abb2fa30d588bc9c80a69af8fa79e32332c609d910dd59a892fbd4c1e4
4
+ data.tar.gz: b7060631e64950b73f60c26967f1aebfd86e7b72bffa8b312f74ee067c77d031
5
5
  SHA512:
6
- metadata.gz: 1a3fcd45427b219fe80d57a8fa981c4f27c1f8509f007cdcf9b2e32225b49528d018919f7ff4f16d3eb662ba6331e479228d6b69306e6da9e4bb9464285330c4
7
- data.tar.gz: 2a643a907ca9857018904014ecc6cca30b61498a7fe0a86e84eae3c61bafa1937cc570e5a0fb0d9b048a7ffe3cfef77a0af45572cd29da289d2160baadaf8c84
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
@@ -15,9 +15,9 @@ jobs:
15
15
  steps:
16
16
  - uses: actions/checkout@v2
17
17
  - name: Set up Ruby 2.6
18
- uses: actions/setup-ruby@v1
18
+ uses: ruby/setup-ruby@v1
19
19
  with:
20
- ruby-version: 2.6.x
20
+ ruby-version: '2.6'
21
21
 
22
22
  - name: Publish to RubyGems
23
23
  run: |
@@ -1,3 +1,3 @@
1
1
  class TessituraRest
2
- VERSION = '1.2.0'.freeze
2
+ VERSION = '1.2.1'.freeze
3
3
  end
@@ -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.0
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: 2022-06-10 00:00:00.000000000 Z
11
+ date: 2023-01-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler