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 +4 -4
- data/lib/figpay_gateway/version.rb +1 -1
- data/lib/nmi_gateway/api.rb +1 -0
- data/lib/nmi_gateway/recurring.rb +9 -0
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 9ec923a60a61aeb5312deb111f005184b4833b05eedf3a9337fb965a16204f21
|
|
4
|
+
data.tar.gz: fa75941e6843f2826fbf2e138441b97b7a677d5689b93c18bc7d1d54e94554f9
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: faabba1898d07806adde203e1a819d1806a37160c58633ce2c9476d69e6b325efd9f91e59535ca73624ae0990940ec0325be1892cc9da7044ce23b82aee38629
|
|
7
|
+
data.tar.gz: 233b6175e7e2fffa3c7b2cbde0ec9b098aeeded6f08ac9a2d1213867432558a2b680335b3009f6f1c6222e30ce8500d856f89855389caf4f3aa7cc027dfa1096
|
data/lib/nmi_gateway/api.rb
CHANGED
|
@@ -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)
|