--- http_interactions: - request: method: get uri: http://localhost:3000/api/v1/customers/gid:%2F%2Fdummy%2FPay::Customer%2F772847388 body: encoding: UTF-8 string: '' headers: Authorization: - Bearer Content-Type: - application/json User-Agent: - Lago Ruby v0.52.2-beta Accept-Encoding: - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 Accept: - "*/*" response: status: code: 200 message: OK headers: X-Frame-Options: - SAMEORIGIN X-Xss-Protection: - '0' X-Content-Type-Options: - nosniff X-Download-Options: - noopen X-Permitted-Cross-Domain-Policies: - none Referrer-Policy: - strict-origin-when-cross-origin Content-Type: - application/json; charset=utf-8 Etag: - W/"97cba9d09cf8d9e47b2eb5e9e4d3f468" Cache-Control: - max-age=0, private, must-revalidate X-Request-Id: - fa5a1b21-b4e4-47e3-91e5-89cace375d67 X-Runtime: - '0.009533' Vary: - Origin Transfer-Encoding: - chunked body: encoding: UTF-8 string: '{"customer":{"lago_id":"f8186952-5b73-480b-96ac-af4c7c953344","external_id":"gid://dummy/Pay::Customer/772847388","name":"Lago User","sequential_id":3,"slug":"AMO-15BA-003","created_at":"2023-11-07T23:51:03Z","updated_at":"2023-12-11T04:52:33Z","country":null,"address_line1":null,"address_line2":null,"state":null,"zipcode":null,"email":"lago@example.org","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":"stripe","vat_rate":null,"document_locale":null,"provider_customer_id":"x","provider_payment_methods":["card"]},"metadata":[],"taxes":[]}}' recorded_at: Mon, 11 Dec 2023 06:07:17 GMT - request: method: get uri: http://localhost:3000/api/v1/add_ons/pay_default_addon body: encoding: UTF-8 string: '' headers: Authorization: - Bearer Content-Type: - application/json User-Agent: - Lago Ruby v0.52.2-beta Accept-Encoding: - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 Accept: - "*/*" response: status: code: 200 message: OK headers: X-Frame-Options: - SAMEORIGIN X-Xss-Protection: - '0' X-Content-Type-Options: - nosniff X-Download-Options: - noopen X-Permitted-Cross-Domain-Policies: - none Referrer-Policy: - strict-origin-when-cross-origin Content-Type: - application/json; charset=utf-8 Etag: - W/"77fb31eebefbe33c8bea2d96beecffbd" Cache-Control: - max-age=0, private, must-revalidate X-Request-Id: - b7170520-e521-4cd4-9c34-6f4c641ca15b X-Runtime: - '0.005485' Vary: - Origin Transfer-Encoding: - chunked body: encoding: UTF-8 string: '{"add_on":{"lago_id":"a5c017e5-acfa-455a-8f3d-4271aee27bca","name":"Default Charge","invoice_display_name":null,"code":"pay_default_addon","amount_cents":100,"amount_currency":"USD","created_at":"2023-10-23T04:59:35Z","description":null,"taxes":[]}}' recorded_at: Mon, 11 Dec 2023 06:07:17 GMT - request: method: post uri: http://localhost:3000/api/v1/invoices body: encoding: UTF-8 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}]}}' headers: Authorization: - Bearer Content-Type: - application/json User-Agent: - Lago Ruby v0.52.2-beta Accept-Encoding: - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 Accept: - "*/*" response: status: code: 200 message: OK headers: X-Frame-Options: - SAMEORIGIN X-Xss-Protection: - '0' X-Content-Type-Options: - nosniff X-Download-Options: - noopen X-Permitted-Cross-Domain-Policies: - none Referrer-Policy: - strict-origin-when-cross-origin Content-Type: - application/json; charset=utf-8 Etag: - W/"fff6ca796e1684718e010f3ee1699f8b" Cache-Control: - max-age=0, private, must-revalidate X-Request-Id: - f8df3c75-89d4-4509-baa9-fc6303a225fb X-Runtime: - '0.048430' Vary: - Origin Transfer-Encoding: - chunked body: encoding: UTF-8 string: '{"invoice":{"lago_id":"b3cb3503-33ce-4623-9c96-e5c505b638ee","sequential_id":39,"number":"AMO-15BA-003-039","issuing_date":"2023-12-11","payment_due_date":"2023-12-11","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":"f8186952-5b73-480b-96ac-af4c7c953344","external_id":"gid://dummy/Pay::Customer/772847388","name":"Lago User","sequential_id":3,"slug":"AMO-15BA-003","created_at":"2023-11-07T23:51:03Z","updated_at":"2023-12-11T04:52:33Z","country":null,"address_line1":null,"address_line2":null,"state":null,"zipcode":null,"email":"lago@example.org","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":"stripe","vat_rate":null,"document_locale":null,"provider_customer_id":"x","provider_payment_methods":["card"]},"metadata":[]},"subscriptions":[],"fees":[{"lago_id":"ddcee66b-9d12-4f01-9e47-1f05811f2350","lago_group_id":null,"lago_invoice_id":"b3cb3503-33ce-4623-9c96-e5c505b638ee","lago_true_up_fee_id":null,"lago_true_up_parent_fee_id":null,"lago_subscription_id":null,"external_subscription_id":null,"lago_customer_id":null,"external_customer_id":null,"item":{"type":"add_on","code":"pay_default_addon","name":"Default Charge","invoice_display_name":"Default Charge","group_invoice_display_name":null,"lago_item_id":"a5c017e5-acfa-455a-8f3d-4271aee27bca","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,"precise_unit_amount":"10.0","events_count":null,"payment_status":"pending","created_at":"2023-12-11T06:07:17Z","succeeded_at":null,"failed_at":null,"refunded_at":null,"amount_details":"{}","vat_amount_cents":0,"vat_amount_currency":"USD","unit_amount_cents":1000}],"credits":[],"metadata":[],"applied_taxes":[]}}' recorded_at: Mon, 11 Dec 2023 06:07:17 GMT recorded_with: VCR 6.2.0