diff --git a/.github/workflows/build-master.yml b/.github/workflows/build-master.yml index 2251ce6..486a402 100644 --- a/.github/workflows/build-master.yml +++ b/.github/workflows/build-master.yml @@ -43,4 +43,5 @@ jobs: CHECKOUT_DEFAULT_OAUTH_ACCOUNTS_CLIENT_SECRET: ${{ secrets.IT_CHECKOUT_DEFAULT_OAUTH_ACCOUNTS_CLIENT_SECRET }} CHECKOUT_DEFAULT_OAUTH_ISSUING_CLIENT_ID: ${{ secrets.IT_CHECKOUT_DEFAULT_OAUTH_ISSUING_CLIENT_ID }} CHECKOUT_DEFAULT_OAUTH_ISSUING_CLIENT_SECRET: ${{ secrets.IT_CHECKOUT_DEFAULT_OAUTH_ISSUING_CLIENT_SECRET }} + CHECKOUT_MERCHANT_SUBDOMAIN: ${{ secrets.IT_CHECKOUT_MERCHANT_SUBDOMAIN }} run: bundle exec rspec spec \ No newline at end of file diff --git a/.github/workflows/build-pull-request.yml b/.github/workflows/build-pull-request.yml index c7cd934..c9685e7 100644 --- a/.github/workflows/build-pull-request.yml +++ b/.github/workflows/build-pull-request.yml @@ -43,4 +43,5 @@ jobs: CHECKOUT_DEFAULT_OAUTH_ACCOUNTS_CLIENT_SECRET: ${{ secrets.IT_CHECKOUT_DEFAULT_OAUTH_ACCOUNTS_CLIENT_SECRET }} CHECKOUT_DEFAULT_OAUTH_ISSUING_CLIENT_ID: ${{ secrets.IT_CHECKOUT_DEFAULT_OAUTH_ISSUING_CLIENT_ID }} CHECKOUT_DEFAULT_OAUTH_ISSUING_CLIENT_SECRET: ${{ secrets.IT_CHECKOUT_DEFAULT_OAUTH_ISSUING_CLIENT_SECRET }} + CHECKOUT_MERCHANT_SUBDOMAIN: ${{ secrets.IT_CHECKOUT_MERCHANT_SUBDOMAIN }} run: bundle exec rspec spec \ No newline at end of file diff --git a/.github/workflows/build-release.yml b/.github/workflows/build-release.yml index 6ce94e4..e7ed539 100644 --- a/.github/workflows/build-release.yml +++ b/.github/workflows/build-release.yml @@ -32,6 +32,7 @@ jobs: CHECKOUT_DEFAULT_OAUTH_ACCOUNTS_CLIENT_SECRET: ${{ secrets.IT_CHECKOUT_DEFAULT_OAUTH_ACCOUNTS_CLIENT_SECRET }} CHECKOUT_DEFAULT_OAUTH_ISSUING_CLIENT_ID: ${{ secrets.IT_CHECKOUT_DEFAULT_OAUTH_ISSUING_CLIENT_ID }} CHECKOUT_DEFAULT_OAUTH_ISSUING_CLIENT_SECRET: ${{ secrets.IT_CHECKOUT_DEFAULT_OAUTH_ISSUING_CLIENT_SECRET }} + CHECKOUT_MERCHANT_SUBDOMAIN: ${{ secrets.IT_CHECKOUT_MERCHANT_SUBDOMAIN }} run: bundle exec rspec spec - id: read-version run: echo "CURRENT_VERSION=$( grep "VERSION" lib/checkout_sdk/version.rb | awk '{ print $3 }' | tr -d "'")" >> $GITHUB_ENV diff --git a/lib/checkout_sdk.rb b/lib/checkout_sdk.rb index 91a1dec..c26e0d8 100644 --- a/lib/checkout_sdk.rb +++ b/lib/checkout_sdk.rb @@ -9,6 +9,7 @@ require 'faraday/follow_redirects' require 'mime/types' require 'logger' +require 'ostruct' # Version require 'checkout_sdk/version' diff --git a/lib/checkout_sdk/accounts/profile.rb b/lib/checkout_sdk/accounts/profile.rb index 972b934..048d61a 100644 --- a/lib/checkout_sdk/accounts/profile.rb +++ b/lib/checkout_sdk/accounts/profile.rb @@ -8,10 +8,13 @@ module Accounts # @return [Array(String)] # @!attribute default_holding_currency # @return [String] {CheckoutSdk::Common::Currency} + # @!attribute holding_currencies + # @return [Array(CheckoutSdk::Common::Currency)] class Profile attr_accessor :urls, :mccs, - :default_holding_currency + :default_holding_currency, + :holding_currencies end end end