diff --git a/lib/lago/api/resources/customer.rb b/lib/lago/api/resources/customer.rb index 489ace9..4f4e8f4 100644 --- a/lib/lago/api/resources/customer.rb +++ b/lib/lago/api/resources/customer.rb @@ -88,6 +88,7 @@ def whitelist_billing_configuration(billing_params) (billing_params || {}).slice( :invoice_grace_period, :payment_provider, + :payment_provider_code, :provider_customer_id, :sync, :sync_with_provider, diff --git a/spec/factories/customer.rb b/spec/factories/customer.rb index b9fde09..f38978c 100644 --- a/spec/factories/customer.rb +++ b/spec/factories/customer.rb @@ -22,6 +22,7 @@ { invoice_grace_period: 3, payment_provider: 'stripe', + payment_provider_code: 'stripe-eu-1', provider_customer_id: 'cus_123456', sync_with_provider: true, document_locale: 'fr', diff --git a/spec/fixtures/api/customer.json b/spec/fixtures/api/customer.json index 2992bc5..a359d53 100644 --- a/spec/fixtures/api/customer.json +++ b/spec/fixtures/api/customer.json @@ -24,6 +24,7 @@ "billing_configuration": { "invoice_grace_period": 3, "payment_provider": "stripe", + "payment_provider_code": "stripe-eu-1", "provider_customer_id": "cus_12345", "sync_with_provider": true, "document_locale": "fr", diff --git a/spec/fixtures/api/invoice.json b/spec/fixtures/api/invoice.json index f0ad123..af942f6 100644 --- a/spec/fixtures/api/invoice.json +++ b/spec/fixtures/api/invoice.json @@ -63,6 +63,7 @@ "applicable_timezone": "Europe/Paris", "billing_configuration": { "payment_provider": "stripe", + "payment_provider_code": "stripe-eu-1", "provider_customer_id": "cus_12345" }, "taxes": [