figpay_gateway 1.0.5 → 1.0.6

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: 68c11ff01e6b80e582293dea14fada0b65e335f50f5125e86863522b6438173f
4
- data.tar.gz: d1fda8b1abc5233cc39a35eb849b8896143726c4a456724e8128edcd381ecfd5
3
+ metadata.gz: 9ec923a60a61aeb5312deb111f005184b4833b05eedf3a9337fb965a16204f21
4
+ data.tar.gz: fa75941e6843f2826fbf2e138441b97b7a677d5689b93c18bc7d1d54e94554f9
5
5
  SHA512:
6
- metadata.gz: e4f1b9a51388850aa23f9768e7025710f8fb8ba1140ca509800ed08c4d7c3753519abecdc07ad05870d7ff6c0d2d1de8da3bf797bf10796ec4a422d73f381140
7
- data.tar.gz: 31ad9e10483fd543a809ad9176af4fd659b4013105f1e38454ae67586e6ac7e50617e8ac7174370ac881a86799b65672bac9296f5cd6b1676a7463ebc97da053
6
+ metadata.gz: faabba1898d07806adde203e1a819d1806a37160c58633ce2c9476d69e6b325efd9f91e59535ca73624ae0990940ec0325be1892cc9da7044ce23b82aee38629
7
+ data.tar.gz: 233b6175e7e2fffa3c7b2cbde0ec9b098aeeded6f08ac9a2d1213867432558a2b680335b3009f6f1c6222e30ce8500d856f89855389caf4f3aa7cc027dfa1096
@@ -1,3 +1,3 @@
1
1
  module FigpayGateway
2
- VERSION = "1.0.5"
2
+ VERSION = "1.0.6"
3
3
  end
@@ -93,6 +93,7 @@ module NMIGateway
93
93
  # Recurring Billing
94
94
  query[:recurring] = options[:recurring ] # add_subscription
95
95
  query[:plan_id] = options [:plan_id]
96
+ query[:current_plan_id] = options [:current_plan_id] # identifies plan when editing
96
97
  query[:plan_name] = options [:plan_name]
97
98
  query[:plan_payments] = options [:plan_payments] # 0 until canceled
98
99
  query[:plan_amount] = options [:plan_amount]
@@ -11,6 +11,15 @@ module NMIGateway
11
11
  post query
12
12
  end
13
13
 
14
+ # NMIGateway::Recurring.new.edit_plan current_plan_id: "test-1"", plan_name: "Plan Name",, plan_amount: 2.99, month_frequency: 1, day_of_month: 1
15
+ def edit_plan(options = {})
16
+ query = set_query(options)
17
+ query[:recurring] = 'edit_plan'
18
+ query[:type] = 'recurring'
19
+ require_fields(:current_plan_id, :month_frequency, :day_of_month)
20
+ post query
21
+ end
22
+
14
23
  # NMIGateway::Recurring.new.list_plans
15
24
  def list_plans(options = {})
16
25
  query = set_query(options)
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: figpay_gateway
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.5
4
+ version: 1.0.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ben Eggett