Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Introduce new Bambora::Credentials class #51

Merged
merged 2 commits into from
Feb 1, 2024

Conversation

harrylewis
Copy link
Member

@harrylewis harrylewis commented Feb 1, 2024

Description

This code change introduces a new class, Bambora::Credentials.

The intention of this class is to act as a consolidated store of a merchant's API credentials that can be easily referenced and passed around. This can hold a set of sub-merchant credentials or partner merchant credentials.

For now, this class only supports the following credential items.

  • Merchant ID
  • Reporting Passcode

@harrylewis harrylewis self-assigned this Feb 1, 2024
@harrylewis harrylewis force-pushed the support-merchant-credential-sets branch from 67903c3 to d71ac84 Compare February 1, 2024 02:28
@harrylewis harrylewis requested a review from jazziining February 1, 2024 02:28
@harrylewis harrylewis force-pushed the support-merchant-credential-sets branch from baf0975 to 5a749af Compare February 1, 2024 02:39
@harrylewis harrylewis force-pushed the support-merchant-credential-sets branch from 5a749af to 441e262 Compare February 1, 2024 02:41
Comment on lines -21 to +22
- run: |
gem install bundler
bundle config path vendor/bundle
bundle install --jobs 4 --retry 3
- name: Install dependencies
run: bundle install
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This step was failing as you can see here. It was failing to install the correct version of bundler for the given Ruby version.

The https://github.com/ruby/setup-ruby GitHub Action comes with Bundler installed by default, so we don't really need to re-install bundler. This ensures a correct version of bundler is installed, and now the tests and linting pass.

@harrylewis harrylewis marked this pull request as ready for review February 1, 2024 02:45
Copy link
Contributor

@jazziining jazziining left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

✨ nice addition for future flexibility

@harrylewis harrylewis merged commit 3435cbf into main Feb 1, 2024
3 checks passed
@harrylewis harrylewis deleted the support-merchant-credential-sets branch February 1, 2024 04:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants