pay-lago 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.github/workflows/main.yml +27 -0
- data/.gitignore +28 -0
- data/.rspec +3 -0
- data/.standard.yml +3 -0
- data/CHANGELOG.md +2 -0
- data/CODE_OF_CONDUCT.md +84 -0
- data/Gemfile +25 -0
- data/Gemfile.lock +292 -0
- data/LICENSE.txt +21 -0
- data/README.md +85 -0
- data/Rakefile +32 -0
- data/app/controllers/pay/webhooks/lago_controller.rb +41 -0
- data/app/models/concerns/pay/lago/pay_customer_extensions.rb +15 -0
- data/app/models/concerns/pay/lago/pay_extensions.rb +15 -0
- data/bin/console +15 -0
- data/bin/rails +16 -0
- data/bin/setup +8 -0
- data/config/routes.rb +5 -0
- data/docs/1_customers.md +18 -0
- data/docs/2_charges.md +72 -0
- data/docs/3_subscriptions.md +67 -0
- data/docs/4_webhooks.md +66 -0
- data/lib/pay/lago/attributes.rb +24 -0
- data/lib/pay/lago/billable.rb +148 -0
- data/lib/pay/lago/charge.rb +82 -0
- data/lib/pay/lago/engine.rb +27 -0
- data/lib/pay/lago/error.rb +9 -0
- data/lib/pay/lago/payment_method.rb +37 -0
- data/lib/pay/lago/subscription.rb +134 -0
- data/lib/pay/lago/version.rb +7 -0
- data/lib/pay/lago/webhook_extensions.rb +10 -0
- data/lib/pay/lago/webhooks/customer_payment_provider_created.rb +18 -0
- data/lib/pay/lago/webhooks/invoice_created.rb +15 -0
- data/lib/pay/lago/webhooks/invoice_drafted.rb +11 -0
- data/lib/pay/lago/webhooks/invoice_one_off_created.rb +15 -0
- data/lib/pay/lago/webhooks/invoice_payment_status_updated.rb +14 -0
- data/lib/pay/lago/webhooks/subscription_started.rb +12 -0
- data/lib/pay/lago/webhooks/subscription_terminated.rb +12 -0
- data/lib/pay/lago.rb +91 -0
- data/pay-lago.gemspec +27 -0
- data/sig/pay/lago.rbs +6 -0
- data/test/controllers/pay/webhooks/lago_controller_test.rb +37 -0
- data/test/dummy/.browserslistrc +1 -0
- data/test/dummy/Rakefile +6 -0
- data/test/dummy/app/assets/config/manifest.js +4 -0
- data/test/dummy/app/assets/images/.keep +0 -0
- data/test/dummy/app/assets/stylesheets/application.css +15 -0
- data/test/dummy/app/channels/application_cable/channel.rb +4 -0
- data/test/dummy/app/channels/application_cable/connection.rb +4 -0
- data/test/dummy/app/controllers/application_controller.rb +4 -0
- data/test/dummy/app/controllers/concerns/.keep +0 -0
- data/test/dummy/app/controllers/main_controller.rb +4 -0
- data/test/dummy/app/controllers/payment_methods_controller.rb +5 -0
- data/test/dummy/app/helpers/application_helper.rb +2 -0
- data/test/dummy/app/helpers/current_helper.rb +9 -0
- data/test/dummy/app/javascript/application.js +9 -0
- data/test/dummy/app/javascript/controllers/application.js +10 -0
- data/test/dummy/app/javascript/controllers/index.js +11 -0
- data/test/dummy/app/jobs/application_job.rb +2 -0
- data/test/dummy/app/mailers/application_mailer.rb +4 -0
- data/test/dummy/app/models/account.rb +3 -0
- data/test/dummy/app/models/application_record.rb +3 -0
- data/test/dummy/app/models/concerns/.keep +0 -0
- data/test/dummy/app/models/team.rb +10 -0
- data/test/dummy/app/models/user.rb +3 -0
- data/test/dummy/app/views/layouts/application.html.erb +36 -0
- data/test/dummy/app/views/layouts/mailer.html.erb +13 -0
- data/test/dummy/app/views/layouts/mailer.text.erb +1 -0
- data/test/dummy/app/webhooks/charge_succeeded.rb +5 -0
- data/test/dummy/bin/importmap +4 -0
- data/test/dummy/bin/rails +4 -0
- data/test/dummy/bin/rake +4 -0
- data/test/dummy/bin/setup +33 -0
- data/test/dummy/bin/webpack +18 -0
- data/test/dummy/bin/webpack-dev-server +18 -0
- data/test/dummy/config/application.rb +25 -0
- data/test/dummy/config/boot.rb +6 -0
- data/test/dummy/config/cable.yml +9 -0
- data/test/dummy/config/database.yml +3 -0
- data/test/dummy/config/environment.rb +5 -0
- data/test/dummy/config/environments/development.rb +70 -0
- data/test/dummy/config/environments/production.rb +86 -0
- data/test/dummy/config/environments/test.rb +60 -0
- data/test/dummy/config/importmap.rb +8 -0
- data/test/dummy/config/initializers/application_controller_renderer.rb +6 -0
- data/test/dummy/config/initializers/assets.rb +11 -0
- data/test/dummy/config/initializers/backtrace_silencers.rb +7 -0
- data/test/dummy/config/initializers/cookies_serializer.rb +5 -0
- data/test/dummy/config/initializers/filter_parameter_logging.rb +4 -0
- data/test/dummy/config/initializers/inflections.rb +16 -0
- data/test/dummy/config/initializers/mime_types.rb +4 -0
- data/test/dummy/config/initializers/pay.rb +11 -0
- data/test/dummy/config/initializers/session_store.rb +3 -0
- data/test/dummy/config/initializers/wrap_parameters.rb +14 -0
- data/test/dummy/config/locales/en.yml +23 -0
- data/test/dummy/config/puma.rb +47 -0
- data/test/dummy/config/routes.rb +4 -0
- data/test/dummy/config/secrets.yml +22 -0
- data/test/dummy/config/spring.rb +6 -0
- data/test/dummy/config/storage.yml +34 -0
- data/test/dummy/config.ru +6 -0
- data/test/dummy/db/migrate/20170205000000_create_users.rb +22 -0
- data/test/dummy/db/schema.rb +125 -0
- data/test/dummy/lib/assets/.keep +0 -0
- data/test/dummy/log/.keep +0 -0
- data/test/dummy/public/404.html +67 -0
- data/test/dummy/public/422.html +67 -0
- data/test/dummy/public/500.html +66 -0
- data/test/dummy/public/apple-touch-icon-precomposed.png +0 -0
- data/test/dummy/public/apple-touch-icon.png +0 -0
- data/test/dummy/public/favicon.ico +0 -0
- data/test/dummy/vendor/javascript/.keep +0 -0
- data/test/fixtures/accounts.yml +2 -0
- data/test/fixtures/pay/customers.yml +7 -0
- data/test/fixtures/teams.yml +4 -0
- data/test/fixtures/users.yml +11 -0
- data/test/pay/lago/billable_test.rb +42 -0
- data/test/pay/lago/charge_test.rb +23 -0
- data/test/pay/lago/subscription_test.rb +48 -0
- data/test/support/fixtures/lago/invoice.one_off_created.json +120 -0
- data/test/support/vcr.rb +28 -0
- data/test/test_helper.rb +66 -0
- data/test/vcr_cassettes/test_add_payment_method_to_lago.yml +56 -0
- data/test/vcr_cassettes/test_can_get_lago_processor_customer.yml +56 -0
- data/test/vcr_cassettes/test_can_make_a_lago_processor_charge.yml +163 -0
- data/test/vcr_cassettes/test_generates_lago_processor_id.yml +107 -0
- data/test/vcr_cassettes/test_lago_cannot_change_quantity.yml +108 -0
- data/test/vcr_cassettes/test_lago_processor_cancel.yml +212 -0
- data/test/vcr_cassettes/test_lago_processor_charge.yml +325 -0
- data/test/vcr_cassettes/test_lago_processor_on_grace_period__is_always_false.yml +108 -0
- data/test/vcr_cassettes/test_lago_processor_pause_raises_an_error.yml +108 -0
- data/test/vcr_cassettes/test_lago_processor_paused__is_always_false.yml +108 -0
- data/test/vcr_cassettes/test_lago_processor_refund_with_premium.yml +378 -0
- data/test/vcr_cassettes/test_lago_processor_refund_without_premium.yml +375 -0
- data/test/vcr_cassettes/test_lago_processor_resume_raises_an_error.yml +108 -0
- data/test/vcr_cassettes/test_lago_processor_subscribe.yml +108 -0
- data/test/vcr_cassettes/test_lago_processor_subscription.yml +160 -0
- data/test/vcr_cassettes/test_lago_processor_swap.yml +212 -0
- metadata +212 -0
@@ -0,0 +1,375 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: get
|
5
|
+
uri: http://localhost:3000/api/v1/customers/gid:%2F%2Fdummy%2FPay::Customer%2F772847388
|
6
|
+
body:
|
7
|
+
encoding: UTF-8
|
8
|
+
string: ''
|
9
|
+
headers:
|
10
|
+
Authorization:
|
11
|
+
- Bearer 155ed033-8716-4587-9ac6-fed8ddae3317
|
12
|
+
Content-Type:
|
13
|
+
- application/json
|
14
|
+
User-Agent:
|
15
|
+
- Lago Ruby v0.44.0-beta
|
16
|
+
Accept-Encoding:
|
17
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
18
|
+
Accept:
|
19
|
+
- "*/*"
|
20
|
+
response:
|
21
|
+
status:
|
22
|
+
code: 200
|
23
|
+
message: OK
|
24
|
+
headers:
|
25
|
+
X-Frame-Options:
|
26
|
+
- SAMEORIGIN
|
27
|
+
X-Xss-Protection:
|
28
|
+
- '0'
|
29
|
+
X-Content-Type-Options:
|
30
|
+
- nosniff
|
31
|
+
X-Download-Options:
|
32
|
+
- noopen
|
33
|
+
X-Permitted-Cross-Domain-Policies:
|
34
|
+
- none
|
35
|
+
Referrer-Policy:
|
36
|
+
- strict-origin-when-cross-origin
|
37
|
+
Content-Type:
|
38
|
+
- application/json; charset=utf-8
|
39
|
+
Etag:
|
40
|
+
- W/"af429c6f51b25054dd9b23522b77d57d"
|
41
|
+
Cache-Control:
|
42
|
+
- max-age=0, private, must-revalidate
|
43
|
+
X-Request-Id:
|
44
|
+
- ce076377-871b-428a-ba12-dc91d0deb304
|
45
|
+
X-Runtime:
|
46
|
+
- '0.096262'
|
47
|
+
Vary:
|
48
|
+
- Origin
|
49
|
+
Transfer-Encoding:
|
50
|
+
- chunked
|
51
|
+
body:
|
52
|
+
encoding: UTF-8
|
53
|
+
string: '{"customer":{"lago_id":"c8bb805a-590c-444f-ae14-66589764f273","external_id":"gid://dummy/Pay::Customer/772847388","name":"Lago
|
54
|
+
User","sequential_id":4,"slug":"AMO-FBCD-004","created_at":"2023-09-18T06:42:57Z","updated_at":"2023-09-18T06:43:11Z","country":null,"address_line1":null,"address_line2":null,"state":null,"zipcode":null,"email":"test@example.com","city":null,"url":null,"phone":null,"logo_url":null,"legal_name":null,"legal_number":null,"currency":"USD","tax_identification_number":null,"timezone":null,"applicable_timezone":"UTC","net_payment_term":null,"external_salesforce_id":null,"billing_configuration":{"invoice_grace_period":null,"payment_provider":null,"vat_rate":null,"document_locale":null},"metadata":[],"taxes":[]}}'
|
55
|
+
recorded_at: Tue, 19 Sep 2023 02:16:52 GMT
|
56
|
+
- request:
|
57
|
+
method: get
|
58
|
+
uri: http://localhost:3000/api/v1/add_ons/pay_default_addon
|
59
|
+
body:
|
60
|
+
encoding: UTF-8
|
61
|
+
string: ''
|
62
|
+
headers:
|
63
|
+
Authorization:
|
64
|
+
- Bearer 155ed033-8716-4587-9ac6-fed8ddae3317
|
65
|
+
Content-Type:
|
66
|
+
- application/json
|
67
|
+
User-Agent:
|
68
|
+
- Lago Ruby v0.44.0-beta
|
69
|
+
Accept-Encoding:
|
70
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
71
|
+
Accept:
|
72
|
+
- "*/*"
|
73
|
+
response:
|
74
|
+
status:
|
75
|
+
code: 200
|
76
|
+
message: OK
|
77
|
+
headers:
|
78
|
+
X-Frame-Options:
|
79
|
+
- SAMEORIGIN
|
80
|
+
X-Xss-Protection:
|
81
|
+
- '0'
|
82
|
+
X-Content-Type-Options:
|
83
|
+
- nosniff
|
84
|
+
X-Download-Options:
|
85
|
+
- noopen
|
86
|
+
X-Permitted-Cross-Domain-Policies:
|
87
|
+
- none
|
88
|
+
Referrer-Policy:
|
89
|
+
- strict-origin-when-cross-origin
|
90
|
+
Content-Type:
|
91
|
+
- application/json; charset=utf-8
|
92
|
+
Etag:
|
93
|
+
- W/"313c360c2793ebdbf699d3669bdb5703"
|
94
|
+
Cache-Control:
|
95
|
+
- max-age=0, private, must-revalidate
|
96
|
+
X-Request-Id:
|
97
|
+
- a34c537b-d044-48de-9b07-f5ed8468e529
|
98
|
+
X-Runtime:
|
99
|
+
- 0.021093
|
100
|
+
Vary:
|
101
|
+
- Origin
|
102
|
+
Transfer-Encoding:
|
103
|
+
- chunked
|
104
|
+
body:
|
105
|
+
encoding: UTF-8
|
106
|
+
string: '{"add_on":{"lago_id":"690e70c2-f101-4539-bda7-aefe4b1d068e","name":"Default
|
107
|
+
Charge","code":"pay_default_addon","amount_cents":100,"amount_currency":"USD","created_at":"2023-09-11T05:01:17Z","description":null,"taxes":[]}}'
|
108
|
+
recorded_at: Tue, 19 Sep 2023 02:16:52 GMT
|
109
|
+
- request:
|
110
|
+
method: post
|
111
|
+
uri: http://localhost:3000/api/v1/invoices
|
112
|
+
body:
|
113
|
+
encoding: UTF-8
|
114
|
+
string: '{"invoice":{"external_customer_id":"gid://dummy/Pay::Customer/772847388","currency":"USD","net_payment_term":null,"fees":[{"add_on_code":"pay_default_addon","unit_amount_cents":1000}]}}'
|
115
|
+
headers:
|
116
|
+
Authorization:
|
117
|
+
- Bearer 155ed033-8716-4587-9ac6-fed8ddae3317
|
118
|
+
Content-Type:
|
119
|
+
- application/json
|
120
|
+
User-Agent:
|
121
|
+
- Lago Ruby v0.44.0-beta
|
122
|
+
Accept-Encoding:
|
123
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
124
|
+
Accept:
|
125
|
+
- "*/*"
|
126
|
+
response:
|
127
|
+
status:
|
128
|
+
code: 200
|
129
|
+
message: OK
|
130
|
+
headers:
|
131
|
+
X-Frame-Options:
|
132
|
+
- SAMEORIGIN
|
133
|
+
X-Xss-Protection:
|
134
|
+
- '0'
|
135
|
+
X-Content-Type-Options:
|
136
|
+
- nosniff
|
137
|
+
X-Download-Options:
|
138
|
+
- noopen
|
139
|
+
X-Permitted-Cross-Domain-Policies:
|
140
|
+
- none
|
141
|
+
Referrer-Policy:
|
142
|
+
- strict-origin-when-cross-origin
|
143
|
+
Content-Type:
|
144
|
+
- application/json; charset=utf-8
|
145
|
+
Etag:
|
146
|
+
- W/"6e42f84ca8b1c44fef3e4d727f4640fe"
|
147
|
+
Cache-Control:
|
148
|
+
- max-age=0, private, must-revalidate
|
149
|
+
X-Request-Id:
|
150
|
+
- db727cfa-9c42-4185-9f0f-60649e2a71b4
|
151
|
+
X-Runtime:
|
152
|
+
- 0.148822
|
153
|
+
Vary:
|
154
|
+
- Origin
|
155
|
+
Transfer-Encoding:
|
156
|
+
- chunked
|
157
|
+
body:
|
158
|
+
encoding: UTF-8
|
159
|
+
string: '{"invoice":{"lago_id":"9acafa0b-d422-4a83-b9a1-f9ba73942ace","sequential_id":13,"number":"AMO-FBCD-004-013","issuing_date":"2023-09-19","payment_due_date":"2023-09-19","net_payment_term":0,"invoice_type":"one_off","status":"finalized","payment_status":"pending","currency":"USD","fees_amount_cents":1000,"taxes_amount_cents":0,"coupons_amount_cents":0,"credit_notes_amount_cents":0,"sub_total_excluding_taxes_amount_cents":1000,"sub_total_including_taxes_amount_cents":1000,"total_amount_cents":1000,"prepaid_credit_amount_cents":0,"file_url":null,"version_number":3,"legacy":false,"amount_currency":"USD","vat_amount_currency":"USD","credit_amount_currency":"USD","total_amount_currency":"USD","amount_cents":1000,"credit_amount_cents":0,"vat_amount_cents":0,"sub_total_vat_excluded_amount_cents":1000,"sub_total_vat_included_amount_cents":1000,"customer":{"lago_id":"c8bb805a-590c-444f-ae14-66589764f273","external_id":"gid://dummy/Pay::Customer/772847388","name":"Lago
|
160
|
+
User","sequential_id":4,"slug":"AMO-FBCD-004","created_at":"2023-09-18T06:42:57Z","updated_at":"2023-09-18T06:43:11Z","country":null,"address_line1":null,"address_line2":null,"state":null,"zipcode":null,"email":"test@example.com","city":null,"url":null,"phone":null,"logo_url":null,"legal_name":null,"legal_number":null,"currency":"USD","tax_identification_number":null,"timezone":null,"applicable_timezone":"UTC","net_payment_term":null,"external_salesforce_id":null,"billing_configuration":{"invoice_grace_period":null,"payment_provider":null,"vat_rate":null,"document_locale":null},"metadata":[]},"subscriptions":[],"fees":[{"lago_id":"287fa5fe-2e87-4fd2-80d4-d81dcbd070e0","lago_group_id":null,"lago_invoice_id":"9acafa0b-d422-4a83-b9a1-f9ba73942ace","lago_true_up_fee_id":null,"lago_true_up_parent_fee_id":null,"item":{"type":"add_on","code":"pay_default_addon","name":"Default
|
161
|
+
Charge","lago_item_id":"690e70c2-f101-4539-bda7-aefe4b1d068e","item_type":"AddOn"},"pay_in_advance":false,"invoiceable":true,"amount_cents":1000,"amount_currency":"USD","taxes_amount_cents":0,"taxes_rate":0.0,"total_amount_cents":1000,"total_amount_currency":"USD","units":"1.0","description":null,"unit_amount_cents":1000,"events_count":null,"payment_status":"pending","created_at":"2023-09-19T02:16:52Z","succeeded_at":null,"failed_at":null,"refunded_at":null,"vat_amount_cents":0,"vat_amount_currency":"USD"}],"credits":[],"metadata":[],"applied_taxes":[]}}'
|
162
|
+
recorded_at: Tue, 19 Sep 2023 02:16:53 GMT
|
163
|
+
- request:
|
164
|
+
method: get
|
165
|
+
uri: http://localhost:3000/api/v1/invoices/9acafa0b-d422-4a83-b9a1-f9ba73942ace
|
166
|
+
body:
|
167
|
+
encoding: UTF-8
|
168
|
+
string: ''
|
169
|
+
headers:
|
170
|
+
Authorization:
|
171
|
+
- Bearer 155ed033-8716-4587-9ac6-fed8ddae3317
|
172
|
+
Content-Type:
|
173
|
+
- application/json
|
174
|
+
User-Agent:
|
175
|
+
- Lago Ruby v0.44.0-beta
|
176
|
+
Accept-Encoding:
|
177
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
178
|
+
Accept:
|
179
|
+
- "*/*"
|
180
|
+
response:
|
181
|
+
status:
|
182
|
+
code: 200
|
183
|
+
message: OK
|
184
|
+
headers:
|
185
|
+
X-Frame-Options:
|
186
|
+
- SAMEORIGIN
|
187
|
+
X-Xss-Protection:
|
188
|
+
- '0'
|
189
|
+
X-Content-Type-Options:
|
190
|
+
- nosniff
|
191
|
+
X-Download-Options:
|
192
|
+
- noopen
|
193
|
+
X-Permitted-Cross-Domain-Policies:
|
194
|
+
- none
|
195
|
+
Referrer-Policy:
|
196
|
+
- strict-origin-when-cross-origin
|
197
|
+
Content-Type:
|
198
|
+
- application/json; charset=utf-8
|
199
|
+
Etag:
|
200
|
+
- W/"6e42f84ca8b1c44fef3e4d727f4640fe"
|
201
|
+
Cache-Control:
|
202
|
+
- max-age=0, private, must-revalidate
|
203
|
+
X-Request-Id:
|
204
|
+
- e0a0f2d2-d36f-42e4-8162-f33ca44de46e
|
205
|
+
X-Runtime:
|
206
|
+
- 0.018967
|
207
|
+
Vary:
|
208
|
+
- Origin
|
209
|
+
Transfer-Encoding:
|
210
|
+
- chunked
|
211
|
+
body:
|
212
|
+
encoding: UTF-8
|
213
|
+
string: '{"invoice":{"lago_id":"9acafa0b-d422-4a83-b9a1-f9ba73942ace","sequential_id":13,"number":"AMO-FBCD-004-013","issuing_date":"2023-09-19","payment_due_date":"2023-09-19","net_payment_term":0,"invoice_type":"one_off","status":"finalized","payment_status":"pending","currency":"USD","fees_amount_cents":1000,"taxes_amount_cents":0,"coupons_amount_cents":0,"credit_notes_amount_cents":0,"sub_total_excluding_taxes_amount_cents":1000,"sub_total_including_taxes_amount_cents":1000,"total_amount_cents":1000,"prepaid_credit_amount_cents":0,"file_url":null,"version_number":3,"legacy":false,"amount_currency":"USD","vat_amount_currency":"USD","credit_amount_currency":"USD","total_amount_currency":"USD","amount_cents":1000,"credit_amount_cents":0,"vat_amount_cents":0,"sub_total_vat_excluded_amount_cents":1000,"sub_total_vat_included_amount_cents":1000,"customer":{"lago_id":"c8bb805a-590c-444f-ae14-66589764f273","external_id":"gid://dummy/Pay::Customer/772847388","name":"Lago
|
214
|
+
User","sequential_id":4,"slug":"AMO-FBCD-004","created_at":"2023-09-18T06:42:57Z","updated_at":"2023-09-18T06:43:11Z","country":null,"address_line1":null,"address_line2":null,"state":null,"zipcode":null,"email":"test@example.com","city":null,"url":null,"phone":null,"logo_url":null,"legal_name":null,"legal_number":null,"currency":"USD","tax_identification_number":null,"timezone":null,"applicable_timezone":"UTC","net_payment_term":null,"external_salesforce_id":null,"billing_configuration":{"invoice_grace_period":null,"payment_provider":null,"vat_rate":null,"document_locale":null},"metadata":[]},"subscriptions":[],"fees":[{"lago_id":"287fa5fe-2e87-4fd2-80d4-d81dcbd070e0","lago_group_id":null,"lago_invoice_id":"9acafa0b-d422-4a83-b9a1-f9ba73942ace","lago_true_up_fee_id":null,"lago_true_up_parent_fee_id":null,"item":{"type":"add_on","code":"pay_default_addon","name":"Default
|
215
|
+
Charge","lago_item_id":"690e70c2-f101-4539-bda7-aefe4b1d068e","item_type":"AddOn"},"pay_in_advance":false,"invoiceable":true,"amount_cents":1000,"amount_currency":"USD","taxes_amount_cents":0,"taxes_rate":0.0,"total_amount_cents":1000,"total_amount_currency":"USD","units":"1.0","description":null,"unit_amount_cents":1000,"events_count":null,"payment_status":"pending","created_at":"2023-09-19T02:16:52Z","succeeded_at":null,"failed_at":null,"refunded_at":null,"vat_amount_cents":0,"vat_amount_currency":"USD"}],"credits":[],"metadata":[],"applied_taxes":[]}}'
|
216
|
+
recorded_at: Tue, 19 Sep 2023 02:16:53 GMT
|
217
|
+
- request:
|
218
|
+
method: put
|
219
|
+
uri: http://localhost:3000/api/v1/invoices/9acafa0b-d422-4a83-b9a1-f9ba73942ace
|
220
|
+
body:
|
221
|
+
encoding: UTF-8
|
222
|
+
string: '{"invoice":{"payment_status":"succeeded","net_payment_term":null}}'
|
223
|
+
headers:
|
224
|
+
Authorization:
|
225
|
+
- Bearer 155ed033-8716-4587-9ac6-fed8ddae3317
|
226
|
+
Content-Type:
|
227
|
+
- application/json
|
228
|
+
User-Agent:
|
229
|
+
- Lago Ruby v0.44.0-beta
|
230
|
+
Accept-Encoding:
|
231
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
232
|
+
Accept:
|
233
|
+
- "*/*"
|
234
|
+
response:
|
235
|
+
status:
|
236
|
+
code: 200
|
237
|
+
message: OK
|
238
|
+
headers:
|
239
|
+
X-Frame-Options:
|
240
|
+
- SAMEORIGIN
|
241
|
+
X-Xss-Protection:
|
242
|
+
- '0'
|
243
|
+
X-Content-Type-Options:
|
244
|
+
- nosniff
|
245
|
+
X-Download-Options:
|
246
|
+
- noopen
|
247
|
+
X-Permitted-Cross-Domain-Policies:
|
248
|
+
- none
|
249
|
+
Referrer-Policy:
|
250
|
+
- strict-origin-when-cross-origin
|
251
|
+
Content-Type:
|
252
|
+
- application/json; charset=utf-8
|
253
|
+
Etag:
|
254
|
+
- W/"6618bb4b598acdf7033e137c7bd623c0"
|
255
|
+
Cache-Control:
|
256
|
+
- max-age=0, private, must-revalidate
|
257
|
+
X-Request-Id:
|
258
|
+
- b7c684f3-0c8c-4298-9edc-ef2b9500c908
|
259
|
+
X-Runtime:
|
260
|
+
- 0.032516
|
261
|
+
Vary:
|
262
|
+
- Origin
|
263
|
+
Transfer-Encoding:
|
264
|
+
- chunked
|
265
|
+
body:
|
266
|
+
encoding: UTF-8
|
267
|
+
string: '{"invoice":{"lago_id":"9acafa0b-d422-4a83-b9a1-f9ba73942ace","sequential_id":13,"number":"AMO-FBCD-004-013","issuing_date":"2023-09-19","payment_due_date":"2023-09-19","net_payment_term":0,"invoice_type":"one_off","status":"finalized","payment_status":"succeeded","currency":"USD","fees_amount_cents":1000,"taxes_amount_cents":0,"coupons_amount_cents":0,"credit_notes_amount_cents":0,"sub_total_excluding_taxes_amount_cents":1000,"sub_total_including_taxes_amount_cents":1000,"total_amount_cents":1000,"prepaid_credit_amount_cents":0,"file_url":null,"version_number":3,"legacy":false,"amount_currency":"USD","vat_amount_currency":"USD","credit_amount_currency":"USD","total_amount_currency":"USD","amount_cents":1000,"credit_amount_cents":0,"vat_amount_cents":0,"sub_total_vat_excluded_amount_cents":1000,"sub_total_vat_included_amount_cents":1000,"customer":{"lago_id":"c8bb805a-590c-444f-ae14-66589764f273","external_id":"gid://dummy/Pay::Customer/772847388","name":"Lago
|
268
|
+
User","sequential_id":4,"slug":"AMO-FBCD-004","created_at":"2023-09-18T06:42:57Z","updated_at":"2023-09-18T06:43:11Z","country":null,"address_line1":null,"address_line2":null,"state":null,"zipcode":null,"email":"test@example.com","city":null,"url":null,"phone":null,"logo_url":null,"legal_name":null,"legal_number":null,"currency":"USD","tax_identification_number":null,"timezone":null,"applicable_timezone":"UTC","net_payment_term":null,"external_salesforce_id":null,"billing_configuration":{"invoice_grace_period":null,"payment_provider":null,"vat_rate":null,"document_locale":null},"metadata":[]},"subscriptions":[],"fees":[{"lago_id":"287fa5fe-2e87-4fd2-80d4-d81dcbd070e0","lago_group_id":null,"lago_invoice_id":"9acafa0b-d422-4a83-b9a1-f9ba73942ace","lago_true_up_fee_id":null,"lago_true_up_parent_fee_id":null,"item":{"type":"add_on","code":"pay_default_addon","name":"Default
|
269
|
+
Charge","lago_item_id":"690e70c2-f101-4539-bda7-aefe4b1d068e","item_type":"AddOn"},"pay_in_advance":false,"invoiceable":true,"amount_cents":1000,"amount_currency":"USD","taxes_amount_cents":0,"taxes_rate":0.0,"total_amount_cents":1000,"total_amount_currency":"USD","units":"1.0","description":null,"unit_amount_cents":1000,"events_count":null,"payment_status":"pending","created_at":"2023-09-19T02:16:52Z","succeeded_at":null,"failed_at":null,"refunded_at":null,"vat_amount_cents":0,"vat_amount_currency":"USD"}],"credits":[],"metadata":[],"applied_taxes":[]}}'
|
270
|
+
recorded_at: Tue, 19 Sep 2023 02:16:53 GMT
|
271
|
+
- request:
|
272
|
+
method: get
|
273
|
+
uri: http://localhost:3000/api/v1/invoices/9acafa0b-d422-4a83-b9a1-f9ba73942ace
|
274
|
+
body:
|
275
|
+
encoding: UTF-8
|
276
|
+
string: ''
|
277
|
+
headers:
|
278
|
+
Authorization:
|
279
|
+
- Bearer 155ed033-8716-4587-9ac6-fed8ddae3317
|
280
|
+
Content-Type:
|
281
|
+
- application/json
|
282
|
+
User-Agent:
|
283
|
+
- Lago Ruby v0.44.0-beta
|
284
|
+
Accept-Encoding:
|
285
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
286
|
+
Accept:
|
287
|
+
- "*/*"
|
288
|
+
response:
|
289
|
+
status:
|
290
|
+
code: 200
|
291
|
+
message: OK
|
292
|
+
headers:
|
293
|
+
X-Frame-Options:
|
294
|
+
- SAMEORIGIN
|
295
|
+
X-Xss-Protection:
|
296
|
+
- '0'
|
297
|
+
X-Content-Type-Options:
|
298
|
+
- nosniff
|
299
|
+
X-Download-Options:
|
300
|
+
- noopen
|
301
|
+
X-Permitted-Cross-Domain-Policies:
|
302
|
+
- none
|
303
|
+
Referrer-Policy:
|
304
|
+
- strict-origin-when-cross-origin
|
305
|
+
Content-Type:
|
306
|
+
- application/json; charset=utf-8
|
307
|
+
Etag:
|
308
|
+
- W/"6618bb4b598acdf7033e137c7bd623c0"
|
309
|
+
Cache-Control:
|
310
|
+
- max-age=0, private, must-revalidate
|
311
|
+
X-Request-Id:
|
312
|
+
- 7e566fd6-6586-45a4-947e-d9035c5e9d76
|
313
|
+
X-Runtime:
|
314
|
+
- 0.016495
|
315
|
+
Vary:
|
316
|
+
- Origin
|
317
|
+
Transfer-Encoding:
|
318
|
+
- chunked
|
319
|
+
body:
|
320
|
+
encoding: UTF-8
|
321
|
+
string: '{"invoice":{"lago_id":"9acafa0b-d422-4a83-b9a1-f9ba73942ace","sequential_id":13,"number":"AMO-FBCD-004-013","issuing_date":"2023-09-19","payment_due_date":"2023-09-19","net_payment_term":0,"invoice_type":"one_off","status":"finalized","payment_status":"succeeded","currency":"USD","fees_amount_cents":1000,"taxes_amount_cents":0,"coupons_amount_cents":0,"credit_notes_amount_cents":0,"sub_total_excluding_taxes_amount_cents":1000,"sub_total_including_taxes_amount_cents":1000,"total_amount_cents":1000,"prepaid_credit_amount_cents":0,"file_url":null,"version_number":3,"legacy":false,"amount_currency":"USD","vat_amount_currency":"USD","credit_amount_currency":"USD","total_amount_currency":"USD","amount_cents":1000,"credit_amount_cents":0,"vat_amount_cents":0,"sub_total_vat_excluded_amount_cents":1000,"sub_total_vat_included_amount_cents":1000,"customer":{"lago_id":"c8bb805a-590c-444f-ae14-66589764f273","external_id":"gid://dummy/Pay::Customer/772847388","name":"Lago
|
322
|
+
User","sequential_id":4,"slug":"AMO-FBCD-004","created_at":"2023-09-18T06:42:57Z","updated_at":"2023-09-18T06:43:11Z","country":null,"address_line1":null,"address_line2":null,"state":null,"zipcode":null,"email":"test@example.com","city":null,"url":null,"phone":null,"logo_url":null,"legal_name":null,"legal_number":null,"currency":"USD","tax_identification_number":null,"timezone":null,"applicable_timezone":"UTC","net_payment_term":null,"external_salesforce_id":null,"billing_configuration":{"invoice_grace_period":null,"payment_provider":null,"vat_rate":null,"document_locale":null},"metadata":[]},"subscriptions":[],"fees":[{"lago_id":"287fa5fe-2e87-4fd2-80d4-d81dcbd070e0","lago_group_id":null,"lago_invoice_id":"9acafa0b-d422-4a83-b9a1-f9ba73942ace","lago_true_up_fee_id":null,"lago_true_up_parent_fee_id":null,"item":{"type":"add_on","code":"pay_default_addon","name":"Default
|
323
|
+
Charge","lago_item_id":"690e70c2-f101-4539-bda7-aefe4b1d068e","item_type":"AddOn"},"pay_in_advance":false,"invoiceable":true,"amount_cents":1000,"amount_currency":"USD","taxes_amount_cents":0,"taxes_rate":0.0,"total_amount_cents":1000,"total_amount_currency":"USD","units":"1.0","description":null,"unit_amount_cents":1000,"events_count":null,"payment_status":"pending","created_at":"2023-09-19T02:16:52Z","succeeded_at":null,"failed_at":null,"refunded_at":null,"vat_amount_cents":0,"vat_amount_currency":"USD"}],"credits":[],"metadata":[],"applied_taxes":[]}}'
|
324
|
+
recorded_at: Tue, 19 Sep 2023 02:16:53 GMT
|
325
|
+
- request:
|
326
|
+
method: post
|
327
|
+
uri: http://localhost:3000/api/v1/credit_notes
|
328
|
+
body:
|
329
|
+
encoding: UTF-8
|
330
|
+
string: '{"credit_note":{"invoice_id":"9acafa0b-d422-4a83-b9a1-f9ba73942ace","refund_amount_cents":500,"items":[{"fee_id":"287fa5fe-2e87-4fd2-80d4-d81dcbd070e0","amount_cents":500}]}}'
|
331
|
+
headers:
|
332
|
+
Authorization:
|
333
|
+
- Bearer 155ed033-8716-4587-9ac6-fed8ddae3317
|
334
|
+
Content-Type:
|
335
|
+
- application/json
|
336
|
+
User-Agent:
|
337
|
+
- Lago Ruby v0.44.0-beta
|
338
|
+
Accept-Encoding:
|
339
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
340
|
+
Accept:
|
341
|
+
- "*/*"
|
342
|
+
response:
|
343
|
+
status:
|
344
|
+
code: 403
|
345
|
+
message: Forbidden
|
346
|
+
headers:
|
347
|
+
X-Frame-Options:
|
348
|
+
- SAMEORIGIN
|
349
|
+
X-Xss-Protection:
|
350
|
+
- '0'
|
351
|
+
X-Content-Type-Options:
|
352
|
+
- nosniff
|
353
|
+
X-Download-Options:
|
354
|
+
- noopen
|
355
|
+
X-Permitted-Cross-Domain-Policies:
|
356
|
+
- none
|
357
|
+
Referrer-Policy:
|
358
|
+
- strict-origin-when-cross-origin
|
359
|
+
Content-Type:
|
360
|
+
- application/json; charset=utf-8
|
361
|
+
Cache-Control:
|
362
|
+
- no-cache
|
363
|
+
X-Request-Id:
|
364
|
+
- f63be0ba-e448-4268-a40e-ba6c728f4073
|
365
|
+
X-Runtime:
|
366
|
+
- 0.006156
|
367
|
+
Vary:
|
368
|
+
- Origin
|
369
|
+
Transfer-Encoding:
|
370
|
+
- chunked
|
371
|
+
body:
|
372
|
+
encoding: UTF-8
|
373
|
+
string: '{"status":403,"error":"Forbidden","code":"feature_unavailable"}'
|
374
|
+
recorded_at: Tue, 19 Sep 2023 02:16:53 GMT
|
375
|
+
recorded_with: VCR 6.2.0
|
@@ -0,0 +1,108 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: get
|
5
|
+
uri: http://localhost:3000/api/v1/customers/gid:%2F%2Fdummy%2FPay::Customer%2F772847388
|
6
|
+
body:
|
7
|
+
encoding: UTF-8
|
8
|
+
string: ''
|
9
|
+
headers:
|
10
|
+
Authorization:
|
11
|
+
- Bearer 155ed033-8716-4587-9ac6-fed8ddae3317
|
12
|
+
Content-Type:
|
13
|
+
- application/json
|
14
|
+
User-Agent:
|
15
|
+
- Lago Ruby v0.44.0-beta
|
16
|
+
Accept-Encoding:
|
17
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
18
|
+
Accept:
|
19
|
+
- "*/*"
|
20
|
+
response:
|
21
|
+
status:
|
22
|
+
code: 200
|
23
|
+
message: OK
|
24
|
+
headers:
|
25
|
+
X-Frame-Options:
|
26
|
+
- SAMEORIGIN
|
27
|
+
X-Xss-Protection:
|
28
|
+
- '0'
|
29
|
+
X-Content-Type-Options:
|
30
|
+
- nosniff
|
31
|
+
X-Download-Options:
|
32
|
+
- noopen
|
33
|
+
X-Permitted-Cross-Domain-Policies:
|
34
|
+
- none
|
35
|
+
Referrer-Policy:
|
36
|
+
- strict-origin-when-cross-origin
|
37
|
+
Content-Type:
|
38
|
+
- application/json; charset=utf-8
|
39
|
+
Etag:
|
40
|
+
- W/"af429c6f51b25054dd9b23522b77d57d"
|
41
|
+
Cache-Control:
|
42
|
+
- max-age=0, private, must-revalidate
|
43
|
+
X-Request-Id:
|
44
|
+
- b80da9ea-d52c-48f6-8def-514b914bf635
|
45
|
+
X-Runtime:
|
46
|
+
- 0.006513
|
47
|
+
Vary:
|
48
|
+
- Origin
|
49
|
+
Transfer-Encoding:
|
50
|
+
- chunked
|
51
|
+
body:
|
52
|
+
encoding: UTF-8
|
53
|
+
string: '{"customer":{"lago_id":"c8bb805a-590c-444f-ae14-66589764f273","external_id":"gid://dummy/Pay::Customer/772847388","name":"Lago
|
54
|
+
User","sequential_id":4,"slug":"AMO-FBCD-004","created_at":"2023-09-18T06:42:57Z","updated_at":"2023-09-18T06:43:11Z","country":null,"address_line1":null,"address_line2":null,"state":null,"zipcode":null,"email":"test@example.com","city":null,"url":null,"phone":null,"logo_url":null,"legal_name":null,"legal_number":null,"currency":"USD","tax_identification_number":null,"timezone":null,"applicable_timezone":"UTC","net_payment_term":null,"external_salesforce_id":null,"billing_configuration":{"invoice_grace_period":null,"payment_provider":null,"vat_rate":null,"document_locale":null},"metadata":[],"taxes":[]}}'
|
55
|
+
recorded_at: Wed, 20 Sep 2023 03:19:24 GMT
|
56
|
+
- request:
|
57
|
+
method: post
|
58
|
+
uri: http://localhost:3000/api/v1/subscriptions
|
59
|
+
body:
|
60
|
+
encoding: UTF-8
|
61
|
+
string: '{"subscription":{"external_customer_id":"gid://dummy/Pay::Customer/772847388","plan_code":"default","name":"default","external_id":"gid://dummy/Pay::Subscription/913727099"}}'
|
62
|
+
headers:
|
63
|
+
Authorization:
|
64
|
+
- Bearer 155ed033-8716-4587-9ac6-fed8ddae3317
|
65
|
+
Content-Type:
|
66
|
+
- application/json
|
67
|
+
User-Agent:
|
68
|
+
- Lago Ruby v0.44.0-beta
|
69
|
+
Accept-Encoding:
|
70
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
71
|
+
Accept:
|
72
|
+
- "*/*"
|
73
|
+
response:
|
74
|
+
status:
|
75
|
+
code: 200
|
76
|
+
message: OK
|
77
|
+
headers:
|
78
|
+
X-Frame-Options:
|
79
|
+
- SAMEORIGIN
|
80
|
+
X-Xss-Protection:
|
81
|
+
- '0'
|
82
|
+
X-Content-Type-Options:
|
83
|
+
- nosniff
|
84
|
+
X-Download-Options:
|
85
|
+
- noopen
|
86
|
+
X-Permitted-Cross-Domain-Policies:
|
87
|
+
- none
|
88
|
+
Referrer-Policy:
|
89
|
+
- strict-origin-when-cross-origin
|
90
|
+
Content-Type:
|
91
|
+
- application/json; charset=utf-8
|
92
|
+
Etag:
|
93
|
+
- W/"fb3fb93434e12318f7063defd93d7c68"
|
94
|
+
Cache-Control:
|
95
|
+
- max-age=0, private, must-revalidate
|
96
|
+
X-Request-Id:
|
97
|
+
- 4ba82c0a-fbe9-450b-b092-3f7c5197455c
|
98
|
+
X-Runtime:
|
99
|
+
- '0.040664'
|
100
|
+
Vary:
|
101
|
+
- Origin
|
102
|
+
Transfer-Encoding:
|
103
|
+
- chunked
|
104
|
+
body:
|
105
|
+
encoding: UTF-8
|
106
|
+
string: '{"subscription":{"lago_id":"4a849692-2b6d-48cc-a3f4-02c03a004b3b","external_id":"gid://dummy/Pay::Subscription/913727099","lago_customer_id":"c8bb805a-590c-444f-ae14-66589764f273","external_customer_id":"gid://dummy/Pay::Customer/772847388","name":"default","plan_code":"default","status":"active","billing_time":"calendar","subscription_at":"2023-09-19T00:47:59Z","started_at":"2023-09-19T00:47:59Z","terminated_at":null,"canceled_at":null,"created_at":"2023-09-19T00:47:59Z","previous_plan_code":null,"next_plan_code":null,"downgrade_plan_date":null,"subscription_date":"2023-09-19"}}'
|
107
|
+
recorded_at: Wed, 20 Sep 2023 03:19:24 GMT
|
108
|
+
recorded_with: VCR 6.2.0
|
@@ -0,0 +1,108 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: get
|
5
|
+
uri: http://localhost:3000/api/v1/customers/gid:%2F%2Fdummy%2FPay::Customer%2F772847388
|
6
|
+
body:
|
7
|
+
encoding: UTF-8
|
8
|
+
string: ''
|
9
|
+
headers:
|
10
|
+
Authorization:
|
11
|
+
- Bearer 155ed033-8716-4587-9ac6-fed8ddae3317
|
12
|
+
Content-Type:
|
13
|
+
- application/json
|
14
|
+
User-Agent:
|
15
|
+
- Lago Ruby v0.44.0-beta
|
16
|
+
Accept-Encoding:
|
17
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
18
|
+
Accept:
|
19
|
+
- "*/*"
|
20
|
+
response:
|
21
|
+
status:
|
22
|
+
code: 200
|
23
|
+
message: OK
|
24
|
+
headers:
|
25
|
+
X-Frame-Options:
|
26
|
+
- SAMEORIGIN
|
27
|
+
X-Xss-Protection:
|
28
|
+
- '0'
|
29
|
+
X-Content-Type-Options:
|
30
|
+
- nosniff
|
31
|
+
X-Download-Options:
|
32
|
+
- noopen
|
33
|
+
X-Permitted-Cross-Domain-Policies:
|
34
|
+
- none
|
35
|
+
Referrer-Policy:
|
36
|
+
- strict-origin-when-cross-origin
|
37
|
+
Content-Type:
|
38
|
+
- application/json; charset=utf-8
|
39
|
+
Etag:
|
40
|
+
- W/"af429c6f51b25054dd9b23522b77d57d"
|
41
|
+
Cache-Control:
|
42
|
+
- max-age=0, private, must-revalidate
|
43
|
+
X-Request-Id:
|
44
|
+
- 8718d6dc-d027-436c-b5d0-b5977280dea2
|
45
|
+
X-Runtime:
|
46
|
+
- 0.018794
|
47
|
+
Vary:
|
48
|
+
- Origin
|
49
|
+
Transfer-Encoding:
|
50
|
+
- chunked
|
51
|
+
body:
|
52
|
+
encoding: UTF-8
|
53
|
+
string: '{"customer":{"lago_id":"c8bb805a-590c-444f-ae14-66589764f273","external_id":"gid://dummy/Pay::Customer/772847388","name":"Lago
|
54
|
+
User","sequential_id":4,"slug":"AMO-FBCD-004","created_at":"2023-09-18T06:42:57Z","updated_at":"2023-09-18T06:43:11Z","country":null,"address_line1":null,"address_line2":null,"state":null,"zipcode":null,"email":"test@example.com","city":null,"url":null,"phone":null,"logo_url":null,"legal_name":null,"legal_number":null,"currency":"USD","tax_identification_number":null,"timezone":null,"applicable_timezone":"UTC","net_payment_term":null,"external_salesforce_id":null,"billing_configuration":{"invoice_grace_period":null,"payment_provider":null,"vat_rate":null,"document_locale":null},"metadata":[],"taxes":[]}}'
|
55
|
+
recorded_at: Tue, 19 Sep 2023 00:57:39 GMT
|
56
|
+
- request:
|
57
|
+
method: post
|
58
|
+
uri: http://localhost:3000/api/v1/subscriptions
|
59
|
+
body:
|
60
|
+
encoding: UTF-8
|
61
|
+
string: '{"subscription":{"external_customer_id":"gid://dummy/Pay::Customer/772847388","plan_code":"default","name":"default","external_id":"gid://dummy/Pay::Subscription/913727099"}}'
|
62
|
+
headers:
|
63
|
+
Authorization:
|
64
|
+
- Bearer 155ed033-8716-4587-9ac6-fed8ddae3317
|
65
|
+
Content-Type:
|
66
|
+
- application/json
|
67
|
+
User-Agent:
|
68
|
+
- Lago Ruby v0.44.0-beta
|
69
|
+
Accept-Encoding:
|
70
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
71
|
+
Accept:
|
72
|
+
- "*/*"
|
73
|
+
response:
|
74
|
+
status:
|
75
|
+
code: 200
|
76
|
+
message: OK
|
77
|
+
headers:
|
78
|
+
X-Frame-Options:
|
79
|
+
- SAMEORIGIN
|
80
|
+
X-Xss-Protection:
|
81
|
+
- '0'
|
82
|
+
X-Content-Type-Options:
|
83
|
+
- nosniff
|
84
|
+
X-Download-Options:
|
85
|
+
- noopen
|
86
|
+
X-Permitted-Cross-Domain-Policies:
|
87
|
+
- none
|
88
|
+
Referrer-Policy:
|
89
|
+
- strict-origin-when-cross-origin
|
90
|
+
Content-Type:
|
91
|
+
- application/json; charset=utf-8
|
92
|
+
Etag:
|
93
|
+
- W/"fb3fb93434e12318f7063defd93d7c68"
|
94
|
+
Cache-Control:
|
95
|
+
- max-age=0, private, must-revalidate
|
96
|
+
X-Request-Id:
|
97
|
+
- 370a3fea-b897-4bf6-90ac-f6a43920836a
|
98
|
+
X-Runtime:
|
99
|
+
- 0.018376
|
100
|
+
Vary:
|
101
|
+
- Origin
|
102
|
+
Transfer-Encoding:
|
103
|
+
- chunked
|
104
|
+
body:
|
105
|
+
encoding: UTF-8
|
106
|
+
string: '{"subscription":{"lago_id":"4a849692-2b6d-48cc-a3f4-02c03a004b3b","external_id":"gid://dummy/Pay::Subscription/913727099","lago_customer_id":"c8bb805a-590c-444f-ae14-66589764f273","external_customer_id":"gid://dummy/Pay::Customer/772847388","name":"default","plan_code":"default","status":"active","billing_time":"calendar","subscription_at":"2023-09-19T00:47:59Z","started_at":"2023-09-19T00:47:59Z","terminated_at":null,"canceled_at":null,"created_at":"2023-09-19T00:47:59Z","previous_plan_code":null,"next_plan_code":null,"downgrade_plan_date":null,"subscription_date":"2023-09-19"}}'
|
107
|
+
recorded_at: Tue, 19 Sep 2023 00:57:39 GMT
|
108
|
+
recorded_with: VCR 6.2.0
|