lucid_shopify 0.13.1 → 0.14.0

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: 1d9da21aa85b789e39468ac9375b3785abb62a184af23baf179b453e2eabae8e
4
- data.tar.gz: ea33c161c84b80c19877e96beb62c32707d74bae3a9adbc911fbcd5149532da5
3
+ metadata.gz: 11642f45e00463fcc89f57bb19d198192870ba8da5d08f4b58c15b6d81b9fc17
4
+ data.tar.gz: 27f2562f2e91badf805f28f670d43c5420b76b0cb3b68c0ca1982244f4762dce
5
5
  SHA512:
6
- metadata.gz: e788c9a09b041d7456ae25522ff86d71f1cb96046a3442a5b47b7a1267470142c4c0a97edef5081ff6f1fa5990a1f22d73fcb138399707fa43af271b2480e1ca
7
- data.tar.gz: 661ab5f5e4be0b7125c0909e38fc885152ef4e66250b3ae8278652434739710b30476d5d638b45a67c4ac7df8ee858ac2f4f9b3a1e976ee38877de6de00df79e
6
+ metadata.gz: d881b0f7703e965ff3b1a33117ce4f9a847189b0b7f24614565363e3ff183fab8d2b2c91acad11e7b51a7c3fa9b658b0029ad8cceba90d5d7118156b084456a4
7
+ data.tar.gz: b418d1c1418301ea8142e03c928fb07687df36ff717d3c3e2ab79e7c3df726ffb709a4d9e5b3594be45461818941713d8a372f8f691d6ce9f634ab3fced10f94
@@ -20,11 +20,22 @@ module LucidShopify
20
20
  # @return [Hash] the pending charge
21
21
  #
22
22
  def call(request_credentials, charge)
23
- data = @client.post_json(request_credentials, 'recurring_application_charges', {
24
- 'return_url' => LucidShopify.config.billing_callback_uri
25
- }.merge(charge.transform_keys(&:to_s)))
23
+ data = @client.post_json(request_credentials, 'recurring_application_charges', post_data(charge))
26
24
 
27
25
  data['recurring_application_charge']
28
26
  end
27
+
28
+ #
29
+ # @param charge [Hash]
30
+ #
31
+ # @return [Hash]
32
+ #
33
+ private def post_data(charge)
34
+ {
35
+ 'recurring_application_charge' => {
36
+ 'return_url' => LucidShopify.config.billing_callback_uri
37
+ }.merge(charge.transform_keys(&:to_s)),
38
+ }
39
+ end
29
40
  end
30
41
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module LucidShopify
4
- VERSION = '0.13.1'
4
+ VERSION = '0.14.0'
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: lucid_shopify
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.13.1
4
+ version: 0.14.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kelsey Judson
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-08-17 00:00:00.000000000 Z
11
+ date: 2018-08-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: dotenv