Skip to content

Commit

Permalink
feat(boleto): Introduce Boleto as a valid Stripe Payment Method
Browse files Browse the repository at this point in the history
  • Loading branch information
julienbourdeau committed Jan 27, 2025
1 parent ecb29ed commit 713d48d
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/models/payment_provider_customers/stripe_customer.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

module PaymentProviderCustomers
class StripeCustomer < BaseCustomer
PAYMENT_METHODS = %w[card sepa_debit us_bank_account bacs_debit link].freeze
PAYMENT_METHODS = %w[card sepa_debit us_bank_account bacs_debit link boleto].freeze

validates :provider_payment_methods, presence: true
validate :allowed_provider_payment_methods
Expand Down
2 changes: 1 addition & 1 deletion spec/graphql/types/customers/customer_type_enum_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
require 'rails_helper'

RSpec.describe Types::Customers::CustomerTypeEnum do
it 'enumerizes the correct values' do
it 'enumerates the correct values' do
expect(described_class.values.keys).to match_array(%w[company individual])
end
end
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# frozen_string_literal: true

require 'rails_helper'

RSpec.describe Types::PaymentProviderCustomers::ProviderPaymentMethodsEnum do
it 'enumerates the correct values' do
expect(described_class.values.keys).to match_array(%w[card sepa_debit us_bank_account bacs_debit link boleto])
end
end

0 comments on commit 713d48d

Please sign in to comment.