gocardless_pro 0.3.0 → 1.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +14 -29
- data/lib/gocardless_pro.rb +7 -3
- data/lib/gocardless_pro/api_response.rb +14 -0
- data/lib/gocardless_pro/client.rb +24 -12
- data/lib/gocardless_pro/list_response.rb +7 -3
- data/lib/gocardless_pro/request.rb +3 -11
- data/lib/gocardless_pro/resources/{helper.rb → bank_details_lookup.rb} +15 -4
- data/lib/gocardless_pro/resources/creditor.rb +14 -13
- data/lib/gocardless_pro/resources/creditor_bank_account.rb +14 -10
- data/lib/gocardless_pro/resources/customer.rb +8 -4
- data/lib/gocardless_pro/resources/customer_bank_account.rb +15 -13
- data/lib/gocardless_pro/resources/event.rb +6 -1
- data/lib/gocardless_pro/resources/mandate.rb +10 -7
- data/lib/gocardless_pro/resources/mandate_pdf.rb +42 -0
- data/lib/gocardless_pro/resources/payment.rb +12 -11
- data/lib/gocardless_pro/resources/payout.rb +9 -6
- data/lib/gocardless_pro/resources/redirect_flow.rb +24 -30
- data/lib/gocardless_pro/resources/refund.rb +15 -15
- data/lib/gocardless_pro/resources/subscription.rb +26 -22
- data/lib/gocardless_pro/response.rb +5 -0
- data/lib/gocardless_pro/services/bank_details_lookups_service.rb +55 -0
- data/lib/gocardless_pro/services/creditor_bank_accounts_service.rb +8 -9
- data/lib/gocardless_pro/services/creditors_service.rb +6 -7
- data/lib/gocardless_pro/services/customer_bank_accounts_service.rb +15 -18
- data/lib/gocardless_pro/services/customers_service.rb +6 -7
- data/lib/gocardless_pro/services/events_service.rb +4 -6
- data/lib/gocardless_pro/services/mandate_pdfs_service.rb +63 -0
- data/lib/gocardless_pro/services/mandates_service.rb +12 -24
- data/lib/gocardless_pro/services/payments_service.rb +15 -16
- data/lib/gocardless_pro/services/payouts_service.rb +5 -6
- data/lib/gocardless_pro/services/redirect_flows_service.rb +13 -17
- data/lib/gocardless_pro/services/refunds_service.rb +16 -19
- data/lib/gocardless_pro/services/subscriptions_service.rb +10 -11
- data/lib/gocardless_pro/version.rb +1 -1
- data/spec/api_response_spec.rb +28 -0
- data/spec/resources/bank_details_lookup_spec.rb +39 -0
- data/spec/resources/creditor_spec.rb +0 -4
- data/spec/resources/{helper_spec.rb → mandate_pdf_spec.rb} +17 -1
- data/spec/resources/subscription_spec.rb +4 -4
- data/spec/services/bank_details_lookups_service_spec.rb +80 -0
- data/spec/services/creditor_bank_accounts_service_spec.rb +2 -0
- data/spec/services/creditors_service_spec.rb +2 -0
- data/spec/services/customer_bank_accounts_service_spec.rb +2 -0
- data/spec/services/customers_service_spec.rb +2 -0
- data/spec/services/events_service_spec.rb +2 -0
- data/spec/services/mandate_pdfs_service_spec.rb +80 -0
- data/spec/services/mandates_service_spec.rb +2 -0
- data/spec/services/payments_service_spec.rb +2 -0
- data/spec/services/payouts_service_spec.rb +2 -0
- data/spec/services/refunds_service_spec.rb +2 -0
- data/spec/services/subscriptions_service_spec.rb +26 -24
- metadata +17 -8
- data/lib/gocardless_pro/services/helpers_service.rb +0 -99
- data/spec/services/helpers_service_spec.rb +0 -122
@@ -1,16 +1,32 @@
|
|
1
1
|
require 'spec_helper'
|
2
2
|
|
3
|
-
describe GoCardlessPro::Resources::
|
3
|
+
describe GoCardlessPro::Resources::MandatePdf do
|
4
4
|
describe "initialising" do
|
5
5
|
let(:data) do
|
6
6
|
{
|
7
7
|
|
8
|
+
|
9
|
+
"expires_at" => "expires_at-input",
|
10
|
+
|
11
|
+
|
12
|
+
|
13
|
+
"url" => "url-input",
|
14
|
+
|
15
|
+
|
8
16
|
}
|
9
17
|
end
|
10
18
|
|
11
19
|
it "can be initialized from an uneveloped response" do
|
12
20
|
resource = described_class.new(data)
|
13
21
|
|
22
|
+
|
23
|
+
expect(resource.expires_at).to eq("expires_at-input")
|
24
|
+
|
25
|
+
|
26
|
+
|
27
|
+
expect(resource.url).to eq("url-input")
|
28
|
+
|
29
|
+
|
14
30
|
end
|
15
31
|
|
16
32
|
describe "#to_h" do
|
@@ -26,7 +26,7 @@ describe GoCardlessPro::Resources::Subscription do
|
|
26
26
|
|
27
27
|
|
28
28
|
|
29
|
-
"
|
29
|
+
"end_date" => "end_date-input",
|
30
30
|
|
31
31
|
|
32
32
|
|
@@ -66,7 +66,7 @@ describe GoCardlessPro::Resources::Subscription do
|
|
66
66
|
|
67
67
|
|
68
68
|
|
69
|
-
"
|
69
|
+
"start_date" => "start_date-input",
|
70
70
|
|
71
71
|
|
72
72
|
|
@@ -104,7 +104,7 @@ describe GoCardlessPro::Resources::Subscription do
|
|
104
104
|
|
105
105
|
|
106
106
|
|
107
|
-
expect(resource.
|
107
|
+
expect(resource.end_date).to eq("end_date-input")
|
108
108
|
|
109
109
|
|
110
110
|
|
@@ -142,7 +142,7 @@ describe GoCardlessPro::Resources::Subscription do
|
|
142
142
|
|
143
143
|
|
144
144
|
|
145
|
-
expect(resource.
|
145
|
+
expect(resource.start_date).to eq("start_date-input")
|
146
146
|
|
147
147
|
|
148
148
|
|
@@ -0,0 +1,80 @@
|
|
1
|
+
require 'spec_helper'
|
2
|
+
|
3
|
+
describe GoCardlessPro::Services::BankDetailsLookupsService do
|
4
|
+
let(:client) do
|
5
|
+
GoCardlessPro::Client.new(
|
6
|
+
access_token: "SECRET_TOKEN"
|
7
|
+
)
|
8
|
+
end
|
9
|
+
|
10
|
+
|
11
|
+
|
12
|
+
|
13
|
+
|
14
|
+
|
15
|
+
describe "#create" do
|
16
|
+
subject(:post_create_response) { client.bank_details_lookups.create(params: new_resource) }
|
17
|
+
context "with a valid request" do
|
18
|
+
let(:new_resource) do
|
19
|
+
{
|
20
|
+
|
21
|
+
"available_debit_schemes" => "available_debit_schemes-input",
|
22
|
+
"bank_name" => "bank_name-input",
|
23
|
+
}
|
24
|
+
end
|
25
|
+
|
26
|
+
before do
|
27
|
+
stub_request(:post, /.*api.gocardless.com\/bank_details_lookups/).
|
28
|
+
with(
|
29
|
+
body: {
|
30
|
+
bank_details_lookups: {
|
31
|
+
|
32
|
+
"available_debit_schemes" => "available_debit_schemes-input",
|
33
|
+
"bank_name" => "bank_name-input",
|
34
|
+
}
|
35
|
+
}
|
36
|
+
).
|
37
|
+
to_return(
|
38
|
+
body: {
|
39
|
+
bank_details_lookups: {
|
40
|
+
|
41
|
+
"available_debit_schemes" => "available_debit_schemes-input",
|
42
|
+
"bank_name" => "bank_name-input",
|
43
|
+
}
|
44
|
+
}.to_json,
|
45
|
+
:headers => {'Content-Type' => 'application/json'}
|
46
|
+
)
|
47
|
+
end
|
48
|
+
|
49
|
+
it "creates and returns the resource" do
|
50
|
+
expect(post_create_response).to be_a(GoCardlessPro::Resources::BankDetailsLookup)
|
51
|
+
end
|
52
|
+
end
|
53
|
+
|
54
|
+
context "with a request that returns a validation error" do
|
55
|
+
let(:new_resource) { {} }
|
56
|
+
|
57
|
+
before do
|
58
|
+
stub_request(:post, /.*api.gocardless.com\/bank_details_lookups/).to_return(
|
59
|
+
body: {
|
60
|
+
error: {
|
61
|
+
type: 'validation_failed',
|
62
|
+
code: 422,
|
63
|
+
errors: [
|
64
|
+
{ message: 'test error message', field: 'test_field' }
|
65
|
+
]
|
66
|
+
}
|
67
|
+
}.to_json,
|
68
|
+
headers: {'Content-Type' => 'application/json'},
|
69
|
+
status: 422
|
70
|
+
)
|
71
|
+
end
|
72
|
+
|
73
|
+
it "throws the correct error" do
|
74
|
+
expect { post_create_response }.to raise_error(GoCardlessPro::ValidationError)
|
75
|
+
end
|
76
|
+
end
|
77
|
+
end
|
78
|
+
|
79
|
+
|
80
|
+
end
|
@@ -183,6 +183,8 @@ describe GoCardlessPro::Services::CreditorBankAccountsService do
|
|
183
183
|
expect(get_list_response.before).to eq(nil)
|
184
184
|
expect(get_list_response.after).to eq("ABC123")
|
185
185
|
end
|
186
|
+
|
187
|
+
specify { expect(get_list_response.api_response.headers).to eql('content-type' => 'application/json') }
|
186
188
|
end
|
187
189
|
end
|
188
190
|
|
@@ -191,6 +191,8 @@ describe GoCardlessPro::Services::CreditorsService do
|
|
191
191
|
expect(get_list_response.before).to eq(nil)
|
192
192
|
expect(get_list_response.after).to eq("ABC123")
|
193
193
|
end
|
194
|
+
|
195
|
+
specify { expect(get_list_response.api_response.headers).to eql('content-type' => 'application/json') }
|
194
196
|
end
|
195
197
|
end
|
196
198
|
|
@@ -183,6 +183,8 @@ describe GoCardlessPro::Services::CustomerBankAccountsService do
|
|
183
183
|
expect(get_list_response.before).to eq(nil)
|
184
184
|
expect(get_list_response.after).to eq("ABC123")
|
185
185
|
end
|
186
|
+
|
187
|
+
specify { expect(get_list_response.api_response.headers).to eql('content-type' => 'application/json') }
|
186
188
|
end
|
187
189
|
end
|
188
190
|
|
@@ -217,6 +217,8 @@ describe GoCardlessPro::Services::CustomersService do
|
|
217
217
|
expect(get_list_response.before).to eq(nil)
|
218
218
|
expect(get_list_response.after).to eq("ABC123")
|
219
219
|
end
|
220
|
+
|
221
|
+
specify { expect(get_list_response.api_response.headers).to eql('content-type' => 'application/json') }
|
220
222
|
end
|
221
223
|
end
|
222
224
|
|
@@ -76,6 +76,8 @@ describe GoCardlessPro::Services::EventsService do
|
|
76
76
|
expect(get_list_response.before).to eq(nil)
|
77
77
|
expect(get_list_response.after).to eq("ABC123")
|
78
78
|
end
|
79
|
+
|
80
|
+
specify { expect(get_list_response.api_response.headers).to eql('content-type' => 'application/json') }
|
79
81
|
end
|
80
82
|
end
|
81
83
|
|
@@ -0,0 +1,80 @@
|
|
1
|
+
require 'spec_helper'
|
2
|
+
|
3
|
+
describe GoCardlessPro::Services::MandatePdfsService do
|
4
|
+
let(:client) do
|
5
|
+
GoCardlessPro::Client.new(
|
6
|
+
access_token: "SECRET_TOKEN"
|
7
|
+
)
|
8
|
+
end
|
9
|
+
|
10
|
+
|
11
|
+
|
12
|
+
|
13
|
+
|
14
|
+
|
15
|
+
describe "#create" do
|
16
|
+
subject(:post_create_response) { client.mandate_pdfs.create(params: new_resource) }
|
17
|
+
context "with a valid request" do
|
18
|
+
let(:new_resource) do
|
19
|
+
{
|
20
|
+
|
21
|
+
"expires_at" => "expires_at-input",
|
22
|
+
"url" => "url-input",
|
23
|
+
}
|
24
|
+
end
|
25
|
+
|
26
|
+
before do
|
27
|
+
stub_request(:post, /.*api.gocardless.com\/mandate_pdfs/).
|
28
|
+
with(
|
29
|
+
body: {
|
30
|
+
mandate_pdfs: {
|
31
|
+
|
32
|
+
"expires_at" => "expires_at-input",
|
33
|
+
"url" => "url-input",
|
34
|
+
}
|
35
|
+
}
|
36
|
+
).
|
37
|
+
to_return(
|
38
|
+
body: {
|
39
|
+
mandate_pdfs: {
|
40
|
+
|
41
|
+
"expires_at" => "expires_at-input",
|
42
|
+
"url" => "url-input",
|
43
|
+
}
|
44
|
+
}.to_json,
|
45
|
+
:headers => {'Content-Type' => 'application/json'}
|
46
|
+
)
|
47
|
+
end
|
48
|
+
|
49
|
+
it "creates and returns the resource" do
|
50
|
+
expect(post_create_response).to be_a(GoCardlessPro::Resources::MandatePdf)
|
51
|
+
end
|
52
|
+
end
|
53
|
+
|
54
|
+
context "with a request that returns a validation error" do
|
55
|
+
let(:new_resource) { {} }
|
56
|
+
|
57
|
+
before do
|
58
|
+
stub_request(:post, /.*api.gocardless.com\/mandate_pdfs/).to_return(
|
59
|
+
body: {
|
60
|
+
error: {
|
61
|
+
type: 'validation_failed',
|
62
|
+
code: 422,
|
63
|
+
errors: [
|
64
|
+
{ message: 'test error message', field: 'test_field' }
|
65
|
+
]
|
66
|
+
}
|
67
|
+
}.to_json,
|
68
|
+
headers: {'Content-Type' => 'application/json'},
|
69
|
+
status: 422
|
70
|
+
)
|
71
|
+
end
|
72
|
+
|
73
|
+
it "throws the correct error" do
|
74
|
+
expect { post_create_response }.to raise_error(GoCardlessPro::ValidationError)
|
75
|
+
end
|
76
|
+
end
|
77
|
+
end
|
78
|
+
|
79
|
+
|
80
|
+
end
|
@@ -167,6 +167,8 @@ describe GoCardlessPro::Services::MandatesService do
|
|
167
167
|
expect(get_list_response.before).to eq(nil)
|
168
168
|
expect(get_list_response.after).to eq("ABC123")
|
169
169
|
end
|
170
|
+
|
171
|
+
specify { expect(get_list_response.api_response.headers).to eql('content-type' => 'application/json') }
|
170
172
|
end
|
171
173
|
end
|
172
174
|
|
@@ -191,6 +191,8 @@ describe GoCardlessPro::Services::PaymentsService do
|
|
191
191
|
expect(get_list_response.before).to eq(nil)
|
192
192
|
expect(get_list_response.after).to eq("ABC123")
|
193
193
|
end
|
194
|
+
|
195
|
+
specify { expect(get_list_response.api_response.headers).to eql('content-type' => 'application/json') }
|
194
196
|
end
|
195
197
|
end
|
196
198
|
|
@@ -76,6 +76,8 @@ describe GoCardlessPro::Services::PayoutsService do
|
|
76
76
|
expect(get_list_response.before).to eq(nil)
|
77
77
|
expect(get_list_response.after).to eq("ABC123")
|
78
78
|
end
|
79
|
+
|
80
|
+
specify { expect(get_list_response.api_response.headers).to eql('content-type' => 'application/json') }
|
79
81
|
end
|
80
82
|
end
|
81
83
|
|
@@ -151,6 +151,8 @@ describe GoCardlessPro::Services::RefundsService do
|
|
151
151
|
expect(get_list_response.before).to eq(nil)
|
152
152
|
expect(get_list_response.after).to eq("ABC123")
|
153
153
|
end
|
154
|
+
|
155
|
+
specify { expect(get_list_response.api_response.headers).to eql('content-type' => 'application/json') }
|
154
156
|
end
|
155
157
|
end
|
156
158
|
|
@@ -23,7 +23,7 @@ describe GoCardlessPro::Services::SubscriptionsService do
|
|
23
23
|
"created_at" => "created_at-input",
|
24
24
|
"currency" => "currency-input",
|
25
25
|
"day_of_month" => "day_of_month-input",
|
26
|
-
"
|
26
|
+
"end_date" => "end_date-input",
|
27
27
|
"id" => "id-input",
|
28
28
|
"interval" => "interval-input",
|
29
29
|
"interval_unit" => "interval_unit-input",
|
@@ -32,7 +32,7 @@ describe GoCardlessPro::Services::SubscriptionsService do
|
|
32
32
|
"month" => "month-input",
|
33
33
|
"name" => "name-input",
|
34
34
|
"payment_reference" => "payment_reference-input",
|
35
|
-
"
|
35
|
+
"start_date" => "start_date-input",
|
36
36
|
"status" => "status-input",
|
37
37
|
"upcoming_payments" => "upcoming_payments-input",
|
38
38
|
}
|
@@ -49,7 +49,7 @@ describe GoCardlessPro::Services::SubscriptionsService do
|
|
49
49
|
"created_at" => "created_at-input",
|
50
50
|
"currency" => "currency-input",
|
51
51
|
"day_of_month" => "day_of_month-input",
|
52
|
-
"
|
52
|
+
"end_date" => "end_date-input",
|
53
53
|
"id" => "id-input",
|
54
54
|
"interval" => "interval-input",
|
55
55
|
"interval_unit" => "interval_unit-input",
|
@@ -58,7 +58,7 @@ describe GoCardlessPro::Services::SubscriptionsService do
|
|
58
58
|
"month" => "month-input",
|
59
59
|
"name" => "name-input",
|
60
60
|
"payment_reference" => "payment_reference-input",
|
61
|
-
"
|
61
|
+
"start_date" => "start_date-input",
|
62
62
|
"status" => "status-input",
|
63
63
|
"upcoming_payments" => "upcoming_payments-input",
|
64
64
|
}
|
@@ -73,7 +73,7 @@ describe GoCardlessPro::Services::SubscriptionsService do
|
|
73
73
|
"created_at" => "created_at-input",
|
74
74
|
"currency" => "currency-input",
|
75
75
|
"day_of_month" => "day_of_month-input",
|
76
|
-
"
|
76
|
+
"end_date" => "end_date-input",
|
77
77
|
"id" => "id-input",
|
78
78
|
"interval" => "interval-input",
|
79
79
|
"interval_unit" => "interval_unit-input",
|
@@ -82,7 +82,7 @@ describe GoCardlessPro::Services::SubscriptionsService do
|
|
82
82
|
"month" => "month-input",
|
83
83
|
"name" => "name-input",
|
84
84
|
"payment_reference" => "payment_reference-input",
|
85
|
-
"
|
85
|
+
"start_date" => "start_date-input",
|
86
86
|
"status" => "status-input",
|
87
87
|
"upcoming_payments" => "upcoming_payments-input",
|
88
88
|
}
|
@@ -139,7 +139,7 @@ describe GoCardlessPro::Services::SubscriptionsService do
|
|
139
139
|
"created_at" => "created_at-input",
|
140
140
|
"currency" => "currency-input",
|
141
141
|
"day_of_month" => "day_of_month-input",
|
142
|
-
"
|
142
|
+
"end_date" => "end_date-input",
|
143
143
|
"id" => "id-input",
|
144
144
|
"interval" => "interval-input",
|
145
145
|
"interval_unit" => "interval_unit-input",
|
@@ -148,7 +148,7 @@ describe GoCardlessPro::Services::SubscriptionsService do
|
|
148
148
|
"month" => "month-input",
|
149
149
|
"name" => "name-input",
|
150
150
|
"payment_reference" => "payment_reference-input",
|
151
|
-
"
|
151
|
+
"start_date" => "start_date-input",
|
152
152
|
"status" => "status-input",
|
153
153
|
"upcoming_payments" => "upcoming_payments-input",
|
154
154
|
}],
|
@@ -188,7 +188,7 @@ describe GoCardlessPro::Services::SubscriptionsService do
|
|
188
188
|
|
189
189
|
|
190
190
|
|
191
|
-
expect(get_list_response.records.first.
|
191
|
+
expect(get_list_response.records.first.end_date).to eq("end_date-input")
|
192
192
|
|
193
193
|
|
194
194
|
|
@@ -222,7 +222,7 @@ describe GoCardlessPro::Services::SubscriptionsService do
|
|
222
222
|
|
223
223
|
|
224
224
|
|
225
|
-
expect(get_list_response.records.first.
|
225
|
+
expect(get_list_response.records.first.start_date).to eq("start_date-input")
|
226
226
|
|
227
227
|
|
228
228
|
|
@@ -239,6 +239,8 @@ describe GoCardlessPro::Services::SubscriptionsService do
|
|
239
239
|
expect(get_list_response.before).to eq(nil)
|
240
240
|
expect(get_list_response.after).to eq("ABC123")
|
241
241
|
end
|
242
|
+
|
243
|
+
specify { expect(get_list_response.api_response.headers).to eql('content-type' => 'application/json') }
|
242
244
|
end
|
243
245
|
end
|
244
246
|
|
@@ -253,7 +255,7 @@ describe GoCardlessPro::Services::SubscriptionsService do
|
|
253
255
|
"created_at" => "created_at-input",
|
254
256
|
"currency" => "currency-input",
|
255
257
|
"day_of_month" => "day_of_month-input",
|
256
|
-
"
|
258
|
+
"end_date" => "end_date-input",
|
257
259
|
"id" => "id-input",
|
258
260
|
"interval" => "interval-input",
|
259
261
|
"interval_unit" => "interval_unit-input",
|
@@ -262,7 +264,7 @@ describe GoCardlessPro::Services::SubscriptionsService do
|
|
262
264
|
"month" => "month-input",
|
263
265
|
"name" => "name-input",
|
264
266
|
"payment_reference" => "payment_reference-input",
|
265
|
-
"
|
267
|
+
"start_date" => "start_date-input",
|
266
268
|
"status" => "status-input",
|
267
269
|
"upcoming_payments" => "upcoming_payments-input",
|
268
270
|
}],
|
@@ -285,7 +287,7 @@ describe GoCardlessPro::Services::SubscriptionsService do
|
|
285
287
|
"created_at" => "created_at-input",
|
286
288
|
"currency" => "currency-input",
|
287
289
|
"day_of_month" => "day_of_month-input",
|
288
|
-
"
|
290
|
+
"end_date" => "end_date-input",
|
289
291
|
"id" => "id-input",
|
290
292
|
"interval" => "interval-input",
|
291
293
|
"interval_unit" => "interval_unit-input",
|
@@ -294,7 +296,7 @@ describe GoCardlessPro::Services::SubscriptionsService do
|
|
294
296
|
"month" => "month-input",
|
295
297
|
"name" => "name-input",
|
296
298
|
"payment_reference" => "payment_reference-input",
|
297
|
-
"
|
299
|
+
"start_date" => "start_date-input",
|
298
300
|
"status" => "status-input",
|
299
301
|
"upcoming_payments" => "upcoming_payments-input",
|
300
302
|
}],
|
@@ -337,7 +339,7 @@ describe GoCardlessPro::Services::SubscriptionsService do
|
|
337
339
|
"created_at" => "created_at-input",
|
338
340
|
"currency" => "currency-input",
|
339
341
|
"day_of_month" => "day_of_month-input",
|
340
|
-
"
|
342
|
+
"end_date" => "end_date-input",
|
341
343
|
"id" => "id-input",
|
342
344
|
"interval" => "interval-input",
|
343
345
|
"interval_unit" => "interval_unit-input",
|
@@ -346,7 +348,7 @@ describe GoCardlessPro::Services::SubscriptionsService do
|
|
346
348
|
"month" => "month-input",
|
347
349
|
"name" => "name-input",
|
348
350
|
"payment_reference" => "payment_reference-input",
|
349
|
-
"
|
351
|
+
"start_date" => "start_date-input",
|
350
352
|
"status" => "status-input",
|
351
353
|
"upcoming_payments" => "upcoming_payments-input",
|
352
354
|
}
|
@@ -378,7 +380,7 @@ describe GoCardlessPro::Services::SubscriptionsService do
|
|
378
380
|
"created_at" => "created_at-input",
|
379
381
|
"currency" => "currency-input",
|
380
382
|
"day_of_month" => "day_of_month-input",
|
381
|
-
"
|
383
|
+
"end_date" => "end_date-input",
|
382
384
|
"id" => "id-input",
|
383
385
|
"interval" => "interval-input",
|
384
386
|
"interval_unit" => "interval_unit-input",
|
@@ -387,7 +389,7 @@ describe GoCardlessPro::Services::SubscriptionsService do
|
|
387
389
|
"month" => "month-input",
|
388
390
|
"name" => "name-input",
|
389
391
|
"payment_reference" => "payment_reference-input",
|
390
|
-
"
|
392
|
+
"start_date" => "start_date-input",
|
391
393
|
"status" => "status-input",
|
392
394
|
"upcoming_payments" => "upcoming_payments-input",
|
393
395
|
}
|
@@ -437,7 +439,7 @@ describe GoCardlessPro::Services::SubscriptionsService do
|
|
437
439
|
"created_at" => "created_at-input",
|
438
440
|
"currency" => "currency-input",
|
439
441
|
"day_of_month" => "day_of_month-input",
|
440
|
-
"
|
442
|
+
"end_date" => "end_date-input",
|
441
443
|
"id" => "id-input",
|
442
444
|
"interval" => "interval-input",
|
443
445
|
"interval_unit" => "interval_unit-input",
|
@@ -446,7 +448,7 @@ describe GoCardlessPro::Services::SubscriptionsService do
|
|
446
448
|
"month" => "month-input",
|
447
449
|
"name" => "name-input",
|
448
450
|
"payment_reference" => "payment_reference-input",
|
449
|
-
"
|
451
|
+
"start_date" => "start_date-input",
|
450
452
|
"status" => "status-input",
|
451
453
|
"upcoming_payments" => "upcoming_payments-input",
|
452
454
|
}
|
@@ -485,7 +487,7 @@ describe GoCardlessPro::Services::SubscriptionsService do
|
|
485
487
|
"created_at" => "created_at-input",
|
486
488
|
"currency" => "currency-input",
|
487
489
|
"day_of_month" => "day_of_month-input",
|
488
|
-
"
|
490
|
+
"end_date" => "end_date-input",
|
489
491
|
"id" => "id-input",
|
490
492
|
"interval" => "interval-input",
|
491
493
|
"interval_unit" => "interval_unit-input",
|
@@ -494,7 +496,7 @@ describe GoCardlessPro::Services::SubscriptionsService do
|
|
494
496
|
"month" => "month-input",
|
495
497
|
"name" => "name-input",
|
496
498
|
"payment_reference" => "payment_reference-input",
|
497
|
-
"
|
499
|
+
"start_date" => "start_date-input",
|
498
500
|
"status" => "status-input",
|
499
501
|
"upcoming_payments" => "upcoming_payments-input",
|
500
502
|
}
|
@@ -533,7 +535,7 @@ describe GoCardlessPro::Services::SubscriptionsService do
|
|
533
535
|
"created_at" => "created_at-input",
|
534
536
|
"currency" => "currency-input",
|
535
537
|
"day_of_month" => "day_of_month-input",
|
536
|
-
"
|
538
|
+
"end_date" => "end_date-input",
|
537
539
|
"id" => "id-input",
|
538
540
|
"interval" => "interval-input",
|
539
541
|
"interval_unit" => "interval_unit-input",
|
@@ -542,7 +544,7 @@ describe GoCardlessPro::Services::SubscriptionsService do
|
|
542
544
|
"month" => "month-input",
|
543
545
|
"name" => "name-input",
|
544
546
|
"payment_reference" => "payment_reference-input",
|
545
|
-
"
|
547
|
+
"start_date" => "start_date-input",
|
546
548
|
"status" => "status-input",
|
547
549
|
"upcoming_payments" => "upcoming_payments-input",
|
548
550
|
}
|