Module: OpenapiClient

Defined in:
lib/openapi_client/version.rb,
lib/openapi_client.rb,
lib/openapi_client/api_error.rb,
lib/openapi_client/api_client.rb,
lib/openapi_client/models/error.rb,
lib/openapi_client/configuration.rb,
lib/openapi_client/models/sector.rb,
lib/openapi_client/api/sector_api.rb,
lib/openapi_client/api/reports_api.rb,
lib/openapi_client/api/subscribe_api.rb,
lib/openapi_client/models/error_errors.rb,
lib/openapi_client/models/subscription.rb,
lib/openapi_client/models/sector_spending.rb,
lib/openapi_client/models/spending_report.rb,
lib/openapi_client/models/error_errors_error.rb,
lib/openapi_client/models/active_subscription.rb,
lib/openapi_client/models/subscription_object.rb,
lib/openapi_client/models/top_locations_report.rb,
lib/openapi_client/models/subscription_response.rb,
lib/openapi_client/models/unsubscribed_response.rb,
lib/openapi_client/models/subscription_payment_card.rb

Overview

#Golden Service API

#An API that conforms to the standards and best practices that should be adhered to in all Mastercard owned APIs. Can be used to create subscriptions to reports that are generated twice daily (6am & 6pm) that deliver e-commerce spending across multiple sectors and locations. <br/> — * **All requests must be signed using oauth 1.0a. Please refer to: developer.mastercard.com/platform/documentation/using-oauth-1a-to-access-mastercard-apis/** — * **The user must provide their card details when creating a subscription. These details must be encrypted before entering transit. Please refer to [Mastercard security](stage.developer.mastercard.com/platform/documentation/securing-sensitive-data-using-payload-encryption/)** —

The version of the OpenAPI document: 1.1.0 Contact: [email protected] Generated by: openapi-generator.tech OpenAPI Generator version: 4.0.1-SNAPSHOT

Defined Under Namespace

Classes: ActiveSubscription, ApiClient, ApiError, Configuration, Error, ErrorErrors, ErrorErrorsError, ReportsApi, Sector, SectorApi, SectorSpending, SpendingReport, SubscribeApi, Subscription, SubscriptionObject, SubscriptionPaymentCard, SubscriptionResponse, TopLocationsReport, UnsubscribedResponse

Constant Summary collapse

VERSION =
'1.0.0'

Class Method Summary collapse

Class Method Details

.configureObject

Customize default settings for the SDK using block.

OpenapiClient.configure do |config|
  config.username = "xxx"
  config.password = "xxx"
end

If no block given, return the default Configuration object.



47
48
49
50
51
52
53
# File 'lib/openapi_client.rb', line 47

def configure
  if block_given?
    yield(Configuration.default)
  else
    Configuration.default
  end
end