Skip to content

Commit

Permalink
Introduce new Bambora::Credentials class
Browse files Browse the repository at this point in the history
  • Loading branch information
harrylewis committed Feb 1, 2024
1 parent 45dfd64 commit 67903c3
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
1 change: 1 addition & 0 deletions lib/bambora/client.rb
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
require 'multiparty' # Multipart/mixed requests

require 'bambora/client/version'
require 'bambora/credentials'

# Adapters
require 'bambora/adapters/response'
Expand Down
12 changes: 12 additions & 0 deletions lib/bambora/credentials.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# frozen_string_literal: true

module Bambora
class Credentials
attr_reader :merchant_id, :reporting_passcode

def initialize(options = {})
@merchant_id = options[:merchant_id]
@reporting_passcode = options[:reporting_passcode]
end
end
end

0 comments on commit 67903c3

Please sign in to comment.