Skip to content

Commit

Permalink
feat(psp-accounts): Add payment_provider_code (#170)
Browse files Browse the repository at this point in the history
  • Loading branch information
ivannovosad authored Jan 15, 2024
1 parent f1c35ad commit 02f22fc
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions lib/lago/api/resources/customer.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
1 change: 1 addition & 0 deletions spec/factories/customer.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down
1 change: 1 addition & 0 deletions spec/fixtures/api/customer.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
1 change: 1 addition & 0 deletions spec/fixtures/api/invoice.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": [
Expand Down

0 comments on commit 02f22fc

Please sign in to comment.