From 1a32de67e9427893f75235352ea7ba5c6322fcb0 Mon Sep 17 00:00:00 2001 From: "Kumar,Monu" Date: Tue, 11 Nov 2025 17:12:32 +0530 Subject: [PATCH 1/8] utility for parsing JWT response --- .../cybersource-ruby-template/gem.mustache | 2 + lib/AuthenticationSDK/core/MerchantConfig.rb | 1 + lib/AuthenticationSDK/util/Cache.rb | 14 ++ lib/AuthenticationSDK/util/Constants.rb | 2 + .../util/JWT/JWTExceptions.rb | 81 ++++++++ lib/AuthenticationSDK/util/JWT/JWTUtility.rb | 175 ++++++++++++++++ lib/cybersource_rest_client.rb | 2 + .../capture_context_parsing_utility.rb | 160 +++++++++++++++ .../capture_context/public_key_fetcher.rb | 192 ++++++++++++++++++ 9 files changed, 629 insertions(+) create mode 100644 lib/AuthenticationSDK/util/JWT/JWTExceptions.rb create mode 100644 lib/AuthenticationSDK/util/JWT/JWTUtility.rb create mode 100644 lib/cybersource_rest_client/utilities/capture_context/capture_context_parsing_utility.rb create mode 100644 lib/cybersource_rest_client/utilities/capture_context/public_key_fetcher.rb diff --git a/generator/cybersource-ruby-template/gem.mustache b/generator/cybersource-ruby-template/gem.mustache index c09feb74..3caea81a 100644 --- a/generator/cybersource-ruby-template/gem.mustache +++ b/generator/cybersource-ruby-template/gem.mustache @@ -48,6 +48,8 @@ require '{{importPath}}' require 'cybersource_rest_client/utilities/flex/token_verification' require 'cybersource_rest_client/utilities/jwe_utility' require 'cybersource_rest_client/utilities/tracking/sdk_tracker' +require 'cybersource_rest_client/utilities/capture_context/public_key_fetcher' +require 'cybersource_rest_client/utilities/capture_context/capture_context_parsing_utility' module {{moduleName}} diff --git a/lib/AuthenticationSDK/core/MerchantConfig.rb b/lib/AuthenticationSDK/core/MerchantConfig.rb index 4809c4f9..39a639d2 100644 --- a/lib/AuthenticationSDK/core/MerchantConfig.rb +++ b/lib/AuthenticationSDK/core/MerchantConfig.rb @@ -409,4 +409,5 @@ def check_key_file attr_accessor :mapToControlMLEonAPI attr_accessor :mleKeyAlias attr_accessor :p12KeyFilePath + attr_reader :runEnvironment end diff --git a/lib/AuthenticationSDK/util/Cache.rb b/lib/AuthenticationSDK/util/Cache.rb index 6f5361e5..91f88f30 100644 --- a/lib/AuthenticationSDK/util/Cache.rb +++ b/lib/AuthenticationSDK/util/Cache.rb @@ -150,4 +150,18 @@ def fetchPEMFileForNetworkTokenization(filePath) return @@cache_obj.read('privateKeyFromPEMFile') end end + + def addPublicKeyToCache(runEnvironment, keyId, publicKey) + cacheKey = "#{Constants::PUBLIC_KEY_CACHE_IDENTIFIER}_#{runEnvironment}_#{keyId}" + @@mutex.synchronize do + @@cache_obj.write(cacheKey, publicKey) + end + end + + def getPublicKeyFromCache(runEnvironment, keyId) + cacheKey = "#{Constants::PUBLIC_KEY_CACHE_IDENTIFIER}_#{runEnvironment}_#{keyId}" + @@mutex.synchronize do + return @@cache_obj.read(cacheKey) + end + end end diff --git a/lib/AuthenticationSDK/util/Constants.rb b/lib/AuthenticationSDK/util/Constants.rb index d36015de..19bb3130 100644 --- a/lib/AuthenticationSDK/util/Constants.rb +++ b/lib/AuthenticationSDK/util/Constants.rb @@ -175,4 +175,6 @@ class Constants MLE_CACHE_IDENTIFIER_FOR_P12_CERT = "mleCertFromP12" DEFAULT_KEY_FILE_PATH = File.join(Dir.pwd, "resources") + + PUBLIC_KEY_CACHE_IDENTIFIER = "FlexV2PublicKeys" end diff --git a/lib/AuthenticationSDK/util/JWT/JWTExceptions.rb b/lib/AuthenticationSDK/util/JWT/JWTExceptions.rb new file mode 100644 index 00000000..96f10006 --- /dev/null +++ b/lib/AuthenticationSDK/util/JWT/JWTExceptions.rb @@ -0,0 +1,81 @@ +# frozen_string_literal: true + +module CyberSource + module Authentication + module Util + module JWT + # Base JWT Exception Class + # + # Provides enhanced exception handling for JWT-related operations with + # error chaining and detailed stack trace information. + class JWTException < StandardError + # @param message [String] Error message describing the exception + # @param cause [Exception, nil] Optional underlying cause of the error + def initialize(message = '', cause = nil) + super(message) + set_backtrace(cause.backtrace) if cause&.backtrace + end + + # @return [Boolean] True if a cause exception exists + def has_cause? + !cause.nil? + end + + # @return [String] Exception string with cause information + def to_s + return super unless has_cause? + + "#{super}\nCaused by: #{cause}" + end + + # @return [Array] Array of exceptions in the chain + def exception_chain + chain = [self] + current = cause + + while current + chain << current + current = current.cause + end + + chain + end + + # @return [Exception] The root cause of the exception chain + def root_cause + exception_chain.last + end + + # @return [Array] Error messages from all exceptions in the chain + def cause_chain_messages + exception_chain.map(&:message) + end + + # @param highlight [Boolean] Whether to highlight the message + # @param order [Symbol] :top or :bottom, determines message order + # @return [String] Detailed error message with all causes + def full_message(highlight: false, order: :top, **) + messages = exception_chain.each_with_index.map do |exception, index| + prefix = index.zero? ? '' : 'Caused by: ' + "#{prefix}#{exception.class}: #{exception.message}" + end + + order == :bottom ? messages.reverse.join("\n") : messages.join("\n") + end + end + + # Thrown when a JSON Web Key (JWK) is invalid or malformed + class InvalidJwkException < JWTException + end + + # Thrown when a JWT token is invalid, malformed, or cannot be processed + class InvalidJwtException < JWTException + end + + # Thrown when JWT signature validation fails + class JwtSignatureValidationException < JWTException + end + end + end + end +end diff --git a/lib/AuthenticationSDK/util/JWT/JWTUtility.rb b/lib/AuthenticationSDK/util/JWT/JWTUtility.rb new file mode 100644 index 00000000..bff52209 --- /dev/null +++ b/lib/AuthenticationSDK/util/JWT/JWTUtility.rb @@ -0,0 +1,175 @@ +# frozen_string_literal: true + +require 'jwt' +require 'json' +require_relative 'JWTExceptions' + +module CyberSource + module Authentication + module Util + module JWT + # JWT Utility Class + # + # Provides JWT parsing, verification, and JWK handling functionality. + # + # @category Class + # @package CyberSource::Authentication::Util::JWT + # @author CyberSource + class JWTUtility + # Supported JWT algorithms + SUPPORTED_ALGORITHMS = %w[RS256 RS384 RS512].freeze + + # Error messages constants + ERROR_MESSAGES = { + unsupported_algorithm: 'Unsupported JWT algorithm: %s. Supported algorithms: %s', + missing_algorithm: 'JWT header missing algorithm (alg) field', + no_public_key: 'No public key found', + invalid_public_key_format: 'Invalid public key format. Expected JWK object or JSON string.', + invalid_rsa_key: 'Public key must be an RSA key (kty: RSA)', + missing_rsa_params: 'Invalid RSA JWK: missing required parameters (n, e)' + }.freeze + + class << self + # Parses a JWT token and extracts its header, payload, and signature components + # + # @param jwt_token [String] The JWT token to parse + # + # @return [Hash] Hash containing header, payload, signature, and raw parts + # @raise [InvalidJwtException] If the JWT token is invalid or malformed + def parse(jwt_token) + raise InvalidJwtException.new('JWT token is null or undefined') if jwt_token.to_s.empty? + + token_parts = jwt_token.split('.') + unless token_parts.length == 3 + raise InvalidJwtException.new('Invalid JWT token format: expected 3 parts separated by dots') + end + + if token_parts.any?(&:empty?) + raise InvalidJwtException.new('Invalid JWT token: one or more parts are empty') + end + + begin + header = JSON.parse(::JWT::Base64.url_decode(token_parts[0])) + payload = JSON.parse(::JWT::Base64.url_decode(token_parts[1])) + signature = token_parts[2] + + { + header: header, + payload: payload, + signature: signature, + raw_header: token_parts[0], + raw_payload: token_parts[1] + } + rescue StandardError => e + raise InvalidJwtException.new("Malformed JWT cannot be parsed: #{e.message}", e) + end + end + + # Verifies a JWT token using an RSA public key + # + # @param jwt_token [String] The JWT token to verify + # @param public_key [String, Hash] The RSA public key (JWK Hash or JSON string) + # + # @return [void] + # @raise [InvalidJwtException] If JWT parsing fails + # @raise [JwtSignatureValidationException] If signature verification fails + # @raise [InvalidJwkException] If the public key is invalid + # @raise [JSON::ParserError] If JSON parsing fails + def verify_jwt(jwt_token, public_key) + raise JwtSignatureValidationException.new(ERROR_MESSAGES[:no_public_key]) if public_key.to_s.empty? + raise JwtSignatureValidationException.new('JWT token is null or undefined') if jwt_token.to_s.empty? + + parsed_token = parse(jwt_token) + header = parsed_token[:header] + + unless header['alg'] + raise JwtSignatureValidationException.new(ERROR_MESSAGES[:missing_algorithm]) + end + + algorithm = header['alg'] + unless SUPPORTED_ALGORITHMS.include?(algorithm) + supported_algs = SUPPORTED_ALGORITHMS.join(', ') + raise JwtSignatureValidationException.new( + format(ERROR_MESSAGES[:unsupported_algorithm], algorithm, supported_algs) + ) + end + + jwk_key = validate_and_parse_jwk(public_key) + jwk_key['alg'] ||= algorithm + + begin + rsa_key = jwk_to_rsa_key(jwk_key) + ::JWT.decode(jwt_token, rsa_key, true, { algorithm: algorithm }) + + rescue ::JWT::VerificationError => e + raise JwtSignatureValidationException.new('JWT signature verification failed', e) + rescue ::JWT::ExpiredSignature => e + raise JwtSignatureValidationException.new('JWT has expired (exp claim)', e) + rescue ::JWT::ImmatureSignature => e + raise JwtSignatureValidationException.new('JWT not yet valid (nbf claim)', e) + rescue ::JWT::DecodeError => e + raise JwtSignatureValidationException.new("JWT verification failed: #{e.message}", e) + rescue JwtSignatureValidationException, InvalidJwtException + raise + rescue StandardError => e + raise JwtSignatureValidationException.new("JWT verification failed: #{e.message}", e) + end + end + + # Extracts an RSA public key from a JWK JSON string + # + # @param jwk_json_string [String] The JWK JSON string containing the RSA key + # + # @return [Hash] The RSA public key hash + # @raise [InvalidJwkException] If the JWK is invalid or not an RSA key + # @raise [JSON::ParserError] If JSON parsing fails + def get_rsa_public_key_from_jwk(jwk_json_string) + validate_and_parse_jwk(jwk_json_string) + end + + private + + # Validates and parses a JWK (JSON Web Key) + # + # @param public_key [String, Hash] The public key to validate (JWK Hash or JSON string) + # + # @return [Hash] The parsed and validated JWK + # @raise [InvalidJwkException] If the JWK is invalid or not an RSA key + def validate_and_parse_jwk(public_key) + return public_key if public_key.is_a?(Hash) && public_key.key?('kty') + + jwk_hash = if public_key.is_a?(String) + begin + JSON.parse(public_key) + rescue JSON::ParserError => e + raise InvalidJwkException.new('Invalid public key JSON format', e) + end + else + raise InvalidJwkException.new(ERROR_MESSAGES[:invalid_public_key_format]) + end + + raise InvalidJwkException.new(ERROR_MESSAGES[:invalid_rsa_key]) unless jwk_hash['kty'] == 'RSA' + raise InvalidJwkException.new(ERROR_MESSAGES[:missing_rsa_params]) unless jwk_hash['n'] && jwk_hash['e'] + + jwk_hash + end + + # Converts a JWK to an RSA key object + # + # @param jwk [Hash] The JWK to convert + # + # @return [OpenSSL::PKey::RSA] The RSA key object + # @raise [InvalidJwkException] If conversion fails + def jwk_to_rsa_key(jwk) + # Use jwt gem's JWK support for OpenSSL 3.0+ compatibility + # This handles both OpenSSL 1.x and 3.0+ internally + ::JWT::JWK.import(jwk).keypair + rescue StandardError => e + raise InvalidJwkException.new("Failed to convert JWK to RSA key: #{e.message}", e) + end + end + end + end + end + end +end diff --git a/lib/cybersource_rest_client.rb b/lib/cybersource_rest_client.rb index feaa0e4c..887dd357 100644 --- a/lib/cybersource_rest_client.rb +++ b/lib/cybersource_rest_client.rb @@ -1696,6 +1696,8 @@ require 'cybersource_rest_client/utilities/flex/token_verification' require 'cybersource_rest_client/utilities/jwe_utility' require 'cybersource_rest_client/utilities/tracking/sdk_tracker' +require 'cybersource_rest_client/utilities/capture_context/public_key_fetcher' +require 'cybersource_rest_client/utilities/capture_context/capture_context_parsing_utility' module CyberSource diff --git a/lib/cybersource_rest_client/utilities/capture_context/capture_context_parsing_utility.rb b/lib/cybersource_rest_client/utilities/capture_context/capture_context_parsing_utility.rb new file mode 100644 index 00000000..d02be484 --- /dev/null +++ b/lib/cybersource_rest_client/utilities/capture_context/capture_context_parsing_utility.rb @@ -0,0 +1,160 @@ +require_relative '../../../AuthenticationSDK/util/JWT/JWTUtility' +require_relative '../../../AuthenticationSDK/util/JWT/JWTExceptions' +require_relative '../../../AuthenticationSDK/util/Cache' +require_relative 'public_key_fetcher' + +module CyberSource + module Utilities + module CaptureContext + # CaptureContextParser Class + # + # Parses and validates capture context JWT responses from CyberSource. + # Provides functionality to parse JWT tokens and optionally verify their + # signatures using public keys fetched from the CyberSource API. + # + # @category Class + # @package CyberSource::Authentication::Util::CaptureContext + # @author CyberSource + class CaptureContextParser + # Error messages constants + ERROR_MESSAGES = { + jwt_null: 'JWT value is null or undefined', + merchant_config_required: 'merchantConfig is required', + kid_missing: 'JWT header missing key ID (kid) field', + run_environment_missing: 'Run environment not found in merchant config', + jwt_validation_failed: 'JWT validation failed', + invalid_runtime_url: 'Invalid Runtime URL in Merchant Config', + network_error: 'Error while trying to retrieve public key from server' + }.freeze + + class << self + # Parses a capture context JWT response and optionally verifies its signature + # + # @param jwt_value [String] The JWT token to parse + # @param merchant_config [Object] The merchant configuration object + # @param verify_jwt [Boolean] Whether to verify the JWT signature (default: true) + # + # @return [Hash] The parsed JWT payload + # @raise [CyberSource::Authentication::Util::JWT::InvalidJwtException] If JWT is invalid + # @raise [CyberSource::Authentication::Util::JWT::JwtSignatureValidationException] If signature verification fails + # @raise [ArgumentError] If required parameters are missing + # @raise [StandardError] For other errors during processing + # + # @example Parse without verification + # payload = CaptureContextParser.parse_capture_context_response(jwt_token, config, false) + # + # @example Parse with verification (default) + # payload = CaptureContextParser.parse_capture_context_response(jwt_token, config) + def parse_capture_context_response(jwt_value, merchant_config, verify_jwt = true) + validate_jwt_input(jwt_value, merchant_config) + parsed_jwt = parse_jwt(jwt_value) + + return parsed_jwt[:payload] unless verify_jwt + + kid = extract_kid_from_header(parsed_jwt[:header]) + run_environment = extract_run_environment(merchant_config) + + verify_jwt_signature(jwt_value, parsed_jwt[:payload], kid, run_environment) + end + + private + + def validate_jwt_input(jwt_value, merchant_config) + if jwt_value.nil? || jwt_value.empty? + raise CyberSource::Authentication::Util::JWT::InvalidJwtException.new(ERROR_MESSAGES[:jwt_null]) + end + + raise ArgumentError, ERROR_MESSAGES[:merchant_config_required] unless merchant_config + end + + def parse_jwt(jwt_value) + CyberSource::Authentication::Util::JWT::JWTUtility.parse(jwt_value) + end + + def extract_kid_from_header(header) + kid = header['kid'] + + unless kid + raise CyberSource::Authentication::Util::JWT::JwtSignatureValidationException.new( + ERROR_MESSAGES[:kid_missing] + ) + end + + kid + end + + def extract_run_environment(merchant_config) + run_environment = merchant_config.runEnvironment + raise ArgumentError, ERROR_MESSAGES[:run_environment_missing] unless run_environment + + run_environment + end + + def verify_jwt_signature(jwt_value, payload, kid, run_environment) + cache = Cache.new + public_key = get_public_key(kid, run_environment, cache) + + verify_jwt_with_key(jwt_value, public_key) + payload + end + + def get_public_key(kid, run_environment, cache) + cached_key = get_cached_public_key(cache, run_environment, kid) + return cached_key if cached_key && verify_cached_key_works?(cached_key) + + fetch_and_cache_public_key(kid, run_environment, cache) + end + + def get_cached_public_key(cache, run_environment, kid) + cache.getPublicKeyFromCache(run_environment, kid) + rescue StandardError + nil + end + + def verify_cached_key_works?(cached_key) + !cached_key.nil? + end + + def fetch_and_cache_public_key(kid, run_environment, cache) + public_key = fetch_public_key_from_api(kid, run_environment) + cache_public_key(cache, run_environment, kid, public_key) + public_key + end + + def fetch_public_key_from_api(kid, run_environment) + PublicKeyFetcher.fetch_public_key(kid, run_environment) + rescue ArgumentError => e + handle_argument_error(e) + rescue CyberSource::Authentication::Util::JWT::InvalidJwkException + raise + rescue StandardError + raise StandardError, ERROR_MESSAGES[:network_error] + end + + def handle_argument_error(error) + if error.message.include?('Invalid Runtime URL') || error.message.include?('run_environment') + raise ArgumentError, ERROR_MESSAGES[:invalid_runtime_url] + else + raise + end + end + + def cache_public_key(cache, run_environment, kid, public_key) + cache.addPublicKeyToCache(run_environment, kid, public_key) + rescue StandardError + # Ignore cache errors + end + + def verify_jwt_with_key(jwt_value, public_key) + CyberSource::Authentication::Util::JWT::JWTUtility.verify_jwt(jwt_value, public_key) + rescue StandardError => e + raise CyberSource::Authentication::Util::JWT::JwtSignatureValidationException.new( + ERROR_MESSAGES[:jwt_validation_failed], + e + ) + end + end + end + end + end +end diff --git a/lib/cybersource_rest_client/utilities/capture_context/public_key_fetcher.rb b/lib/cybersource_rest_client/utilities/capture_context/public_key_fetcher.rb new file mode 100644 index 00000000..0dae4ba9 --- /dev/null +++ b/lib/cybersource_rest_client/utilities/capture_context/public_key_fetcher.rb @@ -0,0 +1,192 @@ +require 'typhoeus' +require 'json' +require_relative '../../../AuthenticationSDK/util/JWT/JWTUtility' +require_relative '../../../AuthenticationSDK/util/JWT/JWTExceptions' +require_relative '../../../AuthenticationSDK/util/Constants' +require_relative '../../../AuthenticationSDK/util/Cache' + +module CyberSource + module Utilities + module CaptureContext + # PublicKeyFetcher Class + # + # Fetches public keys from CyberSource Flex V2 API for the given key ID (kid) + # and run environment. Supports caching to minimize redundant API calls. + # + # @category Class + # @package CyberSource::Authentication::Util::CaptureContext + # @author CyberSource + class PublicKeyFetcher + # Error messages constants + ERROR_MESSAGES = { + kid_required: 'kid parameter is required', + run_environment_required: 'runEnvironment parameter is required', + empty_response: 'Empty response received from public key endpoint', + invalid_public_key: 'Invalid public key received from JWK', + parse_error: 'Failed to parse JWK response: %s', + http_error: 'HTTP %s: %s - Failed to fetch public key for kid: %s', + no_response: 'No response received - Failed to fetch public key for kid: %s', + request_error: 'Request setup error: %s', + network_error: 'Network error occurred: %s' + }.freeze + + # Default timeout for HTTP requests (in seconds) + DEFAULT_TIMEOUT = 30 + + # HTTP request configuration + HTTP_REQUEST_CONFIG = { + headers: { + 'Accept' => 'application/json' + }, + timeout: DEFAULT_TIMEOUT + }.freeze + + class << self + # Fetches the public key for the given key ID (kid) from the specified run environment. + # + # @param kid [String] The key ID for which to fetch the public key + # @param run_environment [String] The environment domain (e.g., 'apitest.cybersource.com') + # @param cache_instance [Cache, nil] Optional cache instance for caching public keys + # + # @return [Hash] The RSA public key as a JWK hash + # @raise [ArgumentError] If required parameters are missing + # @raise [CyberSource::Authentication::Util::JWT::InvalidJwkException] If JWK is invalid + # @raise [StandardError] For HTTP and network errors + # + # @example Fetch without caching + # public_key = PublicKeyFetcher.fetch_public_key('test-kid-123', 'apitest.cybersource.com') + # + # @example Fetch with caching + # cache = Cache.new + # public_key = PublicKeyFetcher.fetch_public_key('test-kid-123', 'apitest.cybersource.com', cache) + def fetch_public_key(kid, run_environment, cache_instance = nil) + validate_parameters(kid, run_environment) + + # Check cache first if cache instance is provided + if cache_instance + cached_key = cache_instance.getPublicKeyFromCache(run_environment, kid) + return cached_key if cached_key + end + + # Fetch from API + public_key = fetch_from_api(kid, run_environment) + + # Store in cache if cache instance is provided + if cache_instance && public_key + cache_instance.addPublicKeyToCache(run_environment, kid, public_key) + end + + public_key + end + + private + + # Validates required parameters + # + # @param kid [String] The key ID + # @param run_environment [String] The environment domain + # @raise [ArgumentError] If parameters are invalid + def validate_parameters(kid, run_environment) + if kid.nil? || kid.to_s.strip.empty? + raise ArgumentError, ERROR_MESSAGES[:kid_required] + end + + if run_environment.nil? || run_environment.to_s.strip.empty? + raise ArgumentError, ERROR_MESSAGES[:run_environment_required] + end + end + + # Fetches public key from the API + # + # @param kid [String] The key ID + # @param run_environment [String] The environment domain + # @return [Hash] The RSA public key as a JWK hash + # @raise [StandardError] For HTTP and parsing errors + def fetch_from_api(kid, run_environment) + url = build_url(run_environment, kid) + response = make_http_request(url) + validate_http_response(response, kid) + parse_and_convert_response(response, kid) + end + + # Builds the API URL + # + # @param run_environment [String] The environment domain + # @param kid [String] The key ID + # @return [String] The complete API URL + def build_url(run_environment, kid) + "https://#{run_environment}/flex/v2/public-keys/#{kid}" + end + + # Makes the HTTP GET request + # + # @param url [String] The API URL + # @return [Typhoeus::Response] The HTTP response + # @raise [StandardError] For network and HTTP errors + def make_http_request(url) + request = Typhoeus::Request.new(url, method: :get, **HTTP_REQUEST_CONFIG) + request.run + end + + # Validates HTTP response status and body + # + # @param response [Typhoeus::Response] The HTTP response + # @param kid [String] The key ID (for error messages) + # @raise [StandardError] For HTTP errors or empty responses + def validate_http_response(response, kid) + return if response.success? + + error_message = if response.code.zero? + format(ERROR_MESSAGES[:no_response], kid) + else + format(ERROR_MESSAGES[:http_error], response.code, response.status_message, kid) + end + raise StandardError, error_message + end + + # Parses the response and converts JWK to RSA public key + # + # @param response [Typhoeus::Response] The HTTP response + # @param kid [String] The key ID (for error messages) + # @return [Hash] The RSA public key as a JWK hash + # @raise [StandardError] For parsing errors + # @raise [CyberSource::Authentication::Util::JWT::InvalidJwkException] For invalid JWK + def parse_and_convert_response(response, kid) + body = response.body + raise StandardError, ERROR_MESSAGES[:empty_response] if body.nil? || body.strip.empty? + + jwk_data = parse_json_body(body) + public_key = convert_jwk_to_public_key(jwk_data) + + raise StandardError, ERROR_MESSAGES[:invalid_public_key] unless public_key + + public_key + end + + # Parses JSON response body + # + # @param body [String] The response body + # @return [Hash] Parsed JSON data + # @raise [StandardError] For JSON parsing errors + def parse_json_body(body) + JSON.parse(body) + rescue JSON::ParserError => e + raise StandardError, format(ERROR_MESSAGES[:parse_error], e.message) + end + + # Converts JWK to RSA public key + # + # @param jwk_data [Hash] The JWK data + # @return [Hash, nil] The RSA public key or nil + # @raise [CyberSource::Authentication::Util::JWT::InvalidJwkException] For invalid JWK + def convert_jwk_to_public_key(jwk_data) + CyberSource::Authentication::Util::JWT::JWTUtility.get_rsa_public_key_from_jwk(jwk_data) + rescue StandardError => e + raise unless e.is_a?(CyberSource::Authentication::Util::JWT::InvalidJwkException) + raise + end + end + end + end + end +end From ca11a1b2491c21fefbe6526dc3b79672004f1f51 Mon Sep 17 00:00:00 2001 From: "Kumar,Monu" Date: Wed, 12 Nov 2025 22:14:53 +0530 Subject: [PATCH 2/8] resolving PR comments --- .../cybersource-ruby-template/gem.mustache | 1 - lib/AuthenticationSDK/util/JWT/JWTUtility.rb | 37 ++---- lib/cybersource_rest_client.rb | 1 - .../capture_context_parsing_utility.rb | 124 +++++++----------- .../capture_context/public_key_fetcher.rb | 91 +++---------- 5 files changed, 69 insertions(+), 185 deletions(-) diff --git a/generator/cybersource-ruby-template/gem.mustache b/generator/cybersource-ruby-template/gem.mustache index 3caea81a..7569aee0 100644 --- a/generator/cybersource-ruby-template/gem.mustache +++ b/generator/cybersource-ruby-template/gem.mustache @@ -48,7 +48,6 @@ require '{{importPath}}' require 'cybersource_rest_client/utilities/flex/token_verification' require 'cybersource_rest_client/utilities/jwe_utility' require 'cybersource_rest_client/utilities/tracking/sdk_tracker' -require 'cybersource_rest_client/utilities/capture_context/public_key_fetcher' require 'cybersource_rest_client/utilities/capture_context/capture_context_parsing_utility' diff --git a/lib/AuthenticationSDK/util/JWT/JWTUtility.rb b/lib/AuthenticationSDK/util/JWT/JWTUtility.rb index bff52209..a53166c1 100644 --- a/lib/AuthenticationSDK/util/JWT/JWTUtility.rb +++ b/lib/AuthenticationSDK/util/JWT/JWTUtility.rb @@ -19,16 +19,6 @@ class JWTUtility # Supported JWT algorithms SUPPORTED_ALGORITHMS = %w[RS256 RS384 RS512].freeze - # Error messages constants - ERROR_MESSAGES = { - unsupported_algorithm: 'Unsupported JWT algorithm: %s. Supported algorithms: %s', - missing_algorithm: 'JWT header missing algorithm (alg) field', - no_public_key: 'No public key found', - invalid_public_key_format: 'Invalid public key format. Expected JWK object or JSON string.', - invalid_rsa_key: 'Public key must be an RSA key (kty: RSA)', - missing_rsa_params: 'Invalid RSA JWK: missing required parameters (n, e)' - }.freeze - class << self # Parses a JWT token and extracts its header, payload, and signature components # @@ -40,7 +30,7 @@ def parse(jwt_token) raise InvalidJwtException.new('JWT token is null or undefined') if jwt_token.to_s.empty? token_parts = jwt_token.split('.') - unless token_parts.length == 3 + if token_parts.length != 3 raise InvalidJwtException.new('Invalid JWT token format: expected 3 parts separated by dots') end @@ -76,21 +66,21 @@ def parse(jwt_token) # @raise [InvalidJwkException] If the public key is invalid # @raise [JSON::ParserError] If JSON parsing fails def verify_jwt(jwt_token, public_key) - raise JwtSignatureValidationException.new(ERROR_MESSAGES[:no_public_key]) if public_key.to_s.empty? + raise JwtSignatureValidationException.new('No public key found') if public_key.to_s.empty? raise JwtSignatureValidationException.new('JWT token is null or undefined') if jwt_token.to_s.empty? parsed_token = parse(jwt_token) header = parsed_token[:header] - unless header['alg'] - raise JwtSignatureValidationException.new(ERROR_MESSAGES[:missing_algorithm]) + if header['alg'].nil? || header['alg'].to_s.empty? + raise JwtSignatureValidationException.new('JWT header missing algorithm (alg) field') end algorithm = header['alg'] unless SUPPORTED_ALGORITHMS.include?(algorithm) supported_algs = SUPPORTED_ALGORITHMS.join(', ') raise JwtSignatureValidationException.new( - format(ERROR_MESSAGES[:unsupported_algorithm], algorithm, supported_algs) + format('Unsupported JWT algorithm: %s. Supported algorithms: %s', algorithm, supported_algs) ) end @@ -116,17 +106,6 @@ def verify_jwt(jwt_token, public_key) end end - # Extracts an RSA public key from a JWK JSON string - # - # @param jwk_json_string [String] The JWK JSON string containing the RSA key - # - # @return [Hash] The RSA public key hash - # @raise [InvalidJwkException] If the JWK is invalid or not an RSA key - # @raise [JSON::ParserError] If JSON parsing fails - def get_rsa_public_key_from_jwk(jwk_json_string) - validate_and_parse_jwk(jwk_json_string) - end - private # Validates and parses a JWK (JSON Web Key) @@ -145,11 +124,11 @@ def validate_and_parse_jwk(public_key) raise InvalidJwkException.new('Invalid public key JSON format', e) end else - raise InvalidJwkException.new(ERROR_MESSAGES[:invalid_public_key_format]) + raise InvalidJwkException.new('Invalid public key format. Expected JWK object or JSON string.') end - raise InvalidJwkException.new(ERROR_MESSAGES[:invalid_rsa_key]) unless jwk_hash['kty'] == 'RSA' - raise InvalidJwkException.new(ERROR_MESSAGES[:missing_rsa_params]) unless jwk_hash['n'] && jwk_hash['e'] + raise InvalidJwkException.new('Public key must be an RSA key (kty: RSA)') if jwk_hash['kty'] != 'RSA' + raise InvalidJwkException.new('Invalid RSA JWK: missing required parameters (n, e)') unless jwk_hash['n'] && jwk_hash['e'] jwk_hash end diff --git a/lib/cybersource_rest_client.rb b/lib/cybersource_rest_client.rb index 887dd357..1ec76e88 100644 --- a/lib/cybersource_rest_client.rb +++ b/lib/cybersource_rest_client.rb @@ -1696,7 +1696,6 @@ require 'cybersource_rest_client/utilities/flex/token_verification' require 'cybersource_rest_client/utilities/jwe_utility' require 'cybersource_rest_client/utilities/tracking/sdk_tracker' -require 'cybersource_rest_client/utilities/capture_context/public_key_fetcher' require 'cybersource_rest_client/utilities/capture_context/capture_context_parsing_utility' diff --git a/lib/cybersource_rest_client/utilities/capture_context/capture_context_parsing_utility.rb b/lib/cybersource_rest_client/utilities/capture_context/capture_context_parsing_utility.rb index d02be484..3462b172 100644 --- a/lib/cybersource_rest_client/utilities/capture_context/capture_context_parsing_utility.rb +++ b/lib/cybersource_rest_client/utilities/capture_context/capture_context_parsing_utility.rb @@ -46,112 +46,80 @@ class << self # @example Parse with verification (default) # payload = CaptureContextParser.parse_capture_context_response(jwt_token, config) def parse_capture_context_response(jwt_value, merchant_config, verify_jwt = true) - validate_jwt_input(jwt_value, merchant_config) - parsed_jwt = parse_jwt(jwt_value) + # Always validate JWT value first + if jwt_value.nil? || jwt_value.empty? + raise CyberSource::Authentication::Util::JWT::InvalidJwtException.new('JWT value is null or undefined') + end - return parsed_jwt[:payload] unless verify_jwt + # Validate verification requirements before parsing + if verify_jwt + raise ArgumentError, 'merchantConfig is required' unless merchant_config + + run_environment = merchant_config.runEnvironment + raise ArgumentError, 'Run environment not found in merchant config' unless run_environment + end - kid = extract_kid_from_header(parsed_jwt[:header]) - run_environment = extract_run_environment(merchant_config) + # Parse JWT (actual operation) + parsed_jwt = CyberSource::Authentication::Util::JWT::JWTUtility.parse(jwt_value) - verify_jwt_signature(jwt_value, parsed_jwt[:payload], kid, run_environment) - end - - private - - def validate_jwt_input(jwt_value, merchant_config) - if jwt_value.nil? || jwt_value.empty? - raise CyberSource::Authentication::Util::JWT::InvalidJwtException.new(ERROR_MESSAGES[:jwt_null]) - end - - raise ArgumentError, ERROR_MESSAGES[:merchant_config_required] unless merchant_config - end - - def parse_jwt(jwt_value) - CyberSource::Authentication::Util::JWT::JWTUtility.parse(jwt_value) - end - - def extract_kid_from_header(header) - kid = header['kid'] + # Return early if no verification needed + return parsed_jwt[:payload] unless verify_jwt + # Validate kid exists in parsed JWT + kid = parsed_jwt[:header]['kid'] unless kid raise CyberSource::Authentication::Util::JWT::JwtSignatureValidationException.new( - ERROR_MESSAGES[:kid_missing] + 'JWT header missing key ID (kid) field' ) end - kid + # Verify signature (actual operation) + verify_jwt_signature(jwt_value, parsed_jwt[:payload], kid, run_environment) end - def extract_run_environment(merchant_config) - run_environment = merchant_config.runEnvironment - raise ArgumentError, ERROR_MESSAGES[:run_environment_missing] unless run_environment - - run_environment - end + private def verify_jwt_signature(jwt_value, payload, kid, run_environment) - cache = Cache.new - public_key = get_public_key(kid, run_environment, cache) + public_key = get_public_key(kid, run_environment) - verify_jwt_with_key(jwt_value, public_key) - payload + begin + CyberSource::Authentication::Util::JWT::JWTUtility.verify_jwt(jwt_value, public_key) + payload + rescue CyberSource::Authentication::Util::JWT::JwtSignatureValidationException => e + # If verification failed with cached key, try once more with fresh key from API + public_key = fetch_public_key_from_api(kid, run_environment) + cache = Cache.new + cache.addPublicKeyToCache(run_environment, kid, public_key) rescue nil + + CyberSource::Authentication::Util::JWT::JWTUtility.verify_jwt(jwt_value, public_key) + payload + end end - def get_public_key(kid, run_environment, cache) - cached_key = get_cached_public_key(cache, run_environment, kid) - return cached_key if cached_key && verify_cached_key_works?(cached_key) + def get_public_key(kid, run_environment) + cache = Cache.new + cached_key = cache.getPublicKeyFromCache(run_environment, kid) rescue nil + return cached_key if cached_key - fetch_and_cache_public_key(kid, run_environment, cache) - end - - def get_cached_public_key(cache, run_environment, kid) - cache.getPublicKeyFromCache(run_environment, kid) - rescue StandardError - nil - end - - def verify_cached_key_works?(cached_key) - !cached_key.nil? - end - - def fetch_and_cache_public_key(kid, run_environment, cache) public_key = fetch_public_key_from_api(kid, run_environment) - cache_public_key(cache, run_environment, kid, public_key) + + cache.addPublicKeyToCache(run_environment, kid, public_key) rescue nil + public_key end def fetch_public_key_from_api(kid, run_environment) PublicKeyFetcher.fetch_public_key(kid, run_environment) rescue ArgumentError => e - handle_argument_error(e) - rescue CyberSource::Authentication::Util::JWT::InvalidJwkException - raise - rescue StandardError - raise StandardError, ERROR_MESSAGES[:network_error] - end - - def handle_argument_error(error) - if error.message.include?('Invalid Runtime URL') || error.message.include?('run_environment') - raise ArgumentError, ERROR_MESSAGES[:invalid_runtime_url] + if e.message.include?('Invalid Runtime URL') || e.message.include?('run_environment') + raise ArgumentError.new('Invalid Runtime URL in Merchant Config', e) else raise end - end - - def cache_public_key(cache, run_environment, kid, public_key) - cache.addPublicKeyToCache(run_environment, kid, public_key) - rescue StandardError - # Ignore cache errors - end - - def verify_jwt_with_key(jwt_value, public_key) - CyberSource::Authentication::Util::JWT::JWTUtility.verify_jwt(jwt_value, public_key) + rescue CyberSource::Authentication::Util::JWT::InvalidJwkException + raise rescue StandardError => e - raise CyberSource::Authentication::Util::JWT::JwtSignatureValidationException.new( - ERROR_MESSAGES[:jwt_validation_failed], - e - ) + raise StandardError.new('Error while trying to retrieve public key from server', e) end end end diff --git a/lib/cybersource_rest_client/utilities/capture_context/public_key_fetcher.rb b/lib/cybersource_rest_client/utilities/capture_context/public_key_fetcher.rb index 0dae4ba9..ea1869bb 100644 --- a/lib/cybersource_rest_client/utilities/capture_context/public_key_fetcher.rb +++ b/lib/cybersource_rest_client/utilities/capture_context/public_key_fetcher.rb @@ -11,25 +11,12 @@ module CaptureContext # PublicKeyFetcher Class # # Fetches public keys from CyberSource Flex V2 API for the given key ID (kid) - # and run environment. Supports caching to minimize redundant API calls. + # and run environment. # # @category Class # @package CyberSource::Authentication::Util::CaptureContext # @author CyberSource class PublicKeyFetcher - # Error messages constants - ERROR_MESSAGES = { - kid_required: 'kid parameter is required', - run_environment_required: 'runEnvironment parameter is required', - empty_response: 'Empty response received from public key endpoint', - invalid_public_key: 'Invalid public key received from JWK', - parse_error: 'Failed to parse JWK response: %s', - http_error: 'HTTP %s: %s - Failed to fetch public key for kid: %s', - no_response: 'No response received - Failed to fetch public key for kid: %s', - request_error: 'Request setup error: %s', - network_error: 'Network error occurred: %s' - }.freeze - # Default timeout for HTTP requests (in seconds) DEFAULT_TIMEOUT = 30 @@ -46,37 +33,16 @@ class << self # # @param kid [String] The key ID for which to fetch the public key # @param run_environment [String] The environment domain (e.g., 'apitest.cybersource.com') - # @param cache_instance [Cache, nil] Optional cache instance for caching public keys # - # @return [Hash] The RSA public key as a JWK hash + # @return [Hash] The raw JWK hash from the API response # @raise [ArgumentError] If required parameters are missing - # @raise [CyberSource::Authentication::Util::JWT::InvalidJwkException] If JWK is invalid # @raise [StandardError] For HTTP and network errors # - # @example Fetch without caching - # public_key = PublicKeyFetcher.fetch_public_key('test-kid-123', 'apitest.cybersource.com') - # - # @example Fetch with caching - # cache = Cache.new - # public_key = PublicKeyFetcher.fetch_public_key('test-kid-123', 'apitest.cybersource.com', cache) - def fetch_public_key(kid, run_environment, cache_instance = nil) + # @example Fetch public key + # jwk_hash = PublicKeyFetcher.fetch_public_key('test-kid-123', 'apitest.cybersource.com') + def fetch_public_key(kid, run_environment) validate_parameters(kid, run_environment) - - # Check cache first if cache instance is provided - if cache_instance - cached_key = cache_instance.getPublicKeyFromCache(run_environment, kid) - return cached_key if cached_key - end - - # Fetch from API - public_key = fetch_from_api(kid, run_environment) - - # Store in cache if cache instance is provided - if cache_instance && public_key - cache_instance.addPublicKeyToCache(run_environment, kid, public_key) - end - - public_key + fetch_from_api(kid, run_environment) end private @@ -88,11 +54,11 @@ def fetch_public_key(kid, run_environment, cache_instance = nil) # @raise [ArgumentError] If parameters are invalid def validate_parameters(kid, run_environment) if kid.nil? || kid.to_s.strip.empty? - raise ArgumentError, ERROR_MESSAGES[:kid_required] + raise ArgumentError, 'kid parameter is required' end if run_environment.nil? || run_environment.to_s.strip.empty? - raise ArgumentError, ERROR_MESSAGES[:run_environment_required] + raise ArgumentError, 'runEnvironment parameter is required' end end @@ -100,7 +66,7 @@ def validate_parameters(kid, run_environment) # # @param kid [String] The key ID # @param run_environment [String] The environment domain - # @return [Hash] The RSA public key as a JWK hash + # @return [Hash] The raw JWK hash from the API response # @raise [StandardError] For HTTP and parsing errors def fetch_from_api(kid, run_environment) url = build_url(run_environment, kid) @@ -137,53 +103,26 @@ def validate_http_response(response, kid) return if response.success? error_message = if response.code.zero? - format(ERROR_MESSAGES[:no_response], kid) + format('No response received - Failed to fetch public key for kid: %s', kid) else - format(ERROR_MESSAGES[:http_error], response.code, response.status_message, kid) + format('HTTP %s: %s - Failed to fetch public key for kid: %s', response.code, response.status_message, kid) end raise StandardError, error_message end - # Parses the response and converts JWK to RSA public key + # Parses the response and returns the raw JWK hash # # @param response [Typhoeus::Response] The HTTP response # @param kid [String] The key ID (for error messages) - # @return [Hash] The RSA public key as a JWK hash + # @return [Hash] The raw JWK hash from the API response # @raise [StandardError] For parsing errors - # @raise [CyberSource::Authentication::Util::JWT::InvalidJwkException] For invalid JWK def parse_and_convert_response(response, kid) body = response.body - raise StandardError, ERROR_MESSAGES[:empty_response] if body.nil? || body.strip.empty? - - jwk_data = parse_json_body(body) - public_key = convert_jwk_to_public_key(jwk_data) - - raise StandardError, ERROR_MESSAGES[:invalid_public_key] unless public_key - - public_key - end + raise StandardError, 'Empty response received from public key endpoint' if body.nil? || body.strip.empty? - # Parses JSON response body - # - # @param body [String] The response body - # @return [Hash] Parsed JSON data - # @raise [StandardError] For JSON parsing errors - def parse_json_body(body) JSON.parse(body) rescue JSON::ParserError => e - raise StandardError, format(ERROR_MESSAGES[:parse_error], e.message) - end - - # Converts JWK to RSA public key - # - # @param jwk_data [Hash] The JWK data - # @return [Hash, nil] The RSA public key or nil - # @raise [CyberSource::Authentication::Util::JWT::InvalidJwkException] For invalid JWK - def convert_jwk_to_public_key(jwk_data) - CyberSource::Authentication::Util::JWT::JWTUtility.get_rsa_public_key_from_jwk(jwk_data) - rescue StandardError => e - raise unless e.is_a?(CyberSource::Authentication::Util::JWT::InvalidJwkException) - raise + raise StandardError, format('Failed to parse JWK response: %s', e.message) end end end From 6909892c77cad70c5c86eb40cc2ba66f7f9da587 Mon Sep 17 00:00:00 2001 From: "Kumar,Monu" Date: Wed, 12 Nov 2025 22:24:58 +0530 Subject: [PATCH 3/8] removing comments constant --- .../capture_context_parsing_utility.rb | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/lib/cybersource_rest_client/utilities/capture_context/capture_context_parsing_utility.rb b/lib/cybersource_rest_client/utilities/capture_context/capture_context_parsing_utility.rb index 3462b172..8e63c7a1 100644 --- a/lib/cybersource_rest_client/utilities/capture_context/capture_context_parsing_utility.rb +++ b/lib/cybersource_rest_client/utilities/capture_context/capture_context_parsing_utility.rb @@ -16,17 +16,6 @@ module CaptureContext # @package CyberSource::Authentication::Util::CaptureContext # @author CyberSource class CaptureContextParser - # Error messages constants - ERROR_MESSAGES = { - jwt_null: 'JWT value is null or undefined', - merchant_config_required: 'merchantConfig is required', - kid_missing: 'JWT header missing key ID (kid) field', - run_environment_missing: 'Run environment not found in merchant config', - jwt_validation_failed: 'JWT validation failed', - invalid_runtime_url: 'Invalid Runtime URL in Merchant Config', - network_error: 'Error while trying to retrieve public key from server' - }.freeze - class << self # Parses a capture context JWT response and optionally verifies its signature # From 56ffa03b821d8ab147395f3daad8c57499acbc6b Mon Sep 17 00:00:00 2001 From: "Kumar,Monu" Date: Wed, 19 Nov 2025 12:49:43 +0530 Subject: [PATCH 4/8] resolved PR comments --- lib/AuthenticationSDK/util/JWT/JWTUtility.rb | 2 +- .../capture_context/capture_context_parsing_utility.rb | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/lib/AuthenticationSDK/util/JWT/JWTUtility.rb b/lib/AuthenticationSDK/util/JWT/JWTUtility.rb index a53166c1..4a704c21 100644 --- a/lib/AuthenticationSDK/util/JWT/JWTUtility.rb +++ b/lib/AuthenticationSDK/util/JWT/JWTUtility.rb @@ -35,7 +35,7 @@ def parse(jwt_token) end if token_parts.any?(&:empty?) - raise InvalidJwtException.new('Invalid JWT token: one or more parts are empty') + raise InvalidJwtException.new('Malformed JWT : JWT provided does not conform to the proper structure for JWT') end begin diff --git a/lib/cybersource_rest_client/utilities/capture_context/capture_context_parsing_utility.rb b/lib/cybersource_rest_client/utilities/capture_context/capture_context_parsing_utility.rb index 8e63c7a1..533c8821 100644 --- a/lib/cybersource_rest_client/utilities/capture_context/capture_context_parsing_utility.rb +++ b/lib/cybersource_rest_client/utilities/capture_context/capture_context_parsing_utility.rb @@ -36,7 +36,7 @@ class << self # payload = CaptureContextParser.parse_capture_context_response(jwt_token, config) def parse_capture_context_response(jwt_value, merchant_config, verify_jwt = true) # Always validate JWT value first - if jwt_value.nil? || jwt_value.empty? + if jwt_value.nil? || jwt_value.strip.empty? raise CyberSource::Authentication::Util::JWT::InvalidJwtException.new('JWT value is null or undefined') end @@ -45,7 +45,7 @@ def parse_capture_context_response(jwt_value, merchant_config, verify_jwt = true raise ArgumentError, 'merchantConfig is required' unless merchant_config run_environment = merchant_config.runEnvironment - raise ArgumentError, 'Run environment not found in merchant config' unless run_environment + raise ArgumentError, 'Run environment not found in merchant config' if run_environment.nil? || run_environment.strip.empty? end # Parse JWT (actual operation) @@ -56,9 +56,9 @@ def parse_capture_context_response(jwt_value, merchant_config, verify_jwt = true # Validate kid exists in parsed JWT kid = parsed_jwt[:header]['kid'] - unless kid + if kid.nil? || kid.strip.empty? raise CyberSource::Authentication::Util::JWT::JwtSignatureValidationException.new( - 'JWT header missing key ID (kid) field' + 'JWT header missing or empty key ID (kid) field' ) end From a00e64c8bc5229c63a6dad3586de58b5b593bb4f Mon Sep 17 00:00:00 2001 From: "Goel, Aastvik" Date: Fri, 21 Nov 2025 13:01:49 +0530 Subject: [PATCH 5/8] updated spec and related code changes --- docs/BankAccountValidationApi.md | 4 +- docs/BatchesApi.md | 12 +- docs/CreateNewWebhooksApi.md | 4 +- docs/CreatePlanRequest.md | 1 - docs/CreateSubscriptionRequest.md | 2 +- docs/CreateSubscriptionRequest1.md | 2 +- docs/CreateSubscriptionResponse.md | 1 + docs/DecisionManagerApi.md | 4 +- docs/DeviceDeAssociationApi.md | 4 +- docs/DeviceSearchApi.md | 8 +- ...ateUnifiedCheckoutCaptureContextRequest.md | 3 +- ...tionsResponseClientReferenceInformation.md | 8 + ...etAllSubscriptionsResponseSubscriptions.md | 1 + docs/GetSubscriptionResponse.md | 1 + ...tSubscriptionResponse1PaymentInstrument.md | 2 +- ...ponse1PaymentInstrumentBuyerInformation.md | 2 +- ...GetSubscriptionResponse1ShippingAddress.md | 2 +- ...criptionResponseReactivationInformation.md | 4 +- docs/InlineResponse200.md | 5 +- docs/InlineResponse2001.md | 8 +- docs/InlineResponse20010.md | 13 +- ...vices.md => InlineResponse20010Devices.md} | 4 +- docs/InlineResponse20010Embedded.md | 8 - docs/InlineResponse20010EmbeddedLinks.md | 8 - docs/InlineResponse20010Links.md | 9 - ...onse20010PaymentProcessorToTerminalMap.md} | 2 +- docs/InlineResponse20011.md | 17 +- docs/InlineResponse20011Embedded.md | 8 + ... => InlineResponse20011EmbeddedBatches.md} | 6 +- docs/InlineResponse20011EmbeddedLinks.md | 8 + ...nlineResponse20011EmbeddedLinksReports.md} | 2 +- ...d => InlineResponse20011EmbeddedTotals.md} | 2 +- docs/InlineResponse20011Links.md | 4 +- docs/InlineResponse20012.md | 14 +- ...lling.md => InlineResponse20012Billing.md} | 2 +- docs/InlineResponse20012Links.md | 9 + ...t.md => InlineResponse20012LinksReport.md} | 2 +- docs/InlineResponse20012Records.md | 10 - docs/InlineResponse20013.md | 14 +- docs/InlineResponse20013Records.md | 10 + ...d => InlineResponse20013ResponseRecord.md} | 4 +- ...se20013ResponseRecordAdditionalUpdates.md} | 2 +- ....md => InlineResponse20013SourceRecord.md} | 2 +- docs/InlineResponse20014.md | 10 +- docs/InlineResponse20015.md | 13 + ...esponse20015ClientReferenceInformation.md} | 2 +- ...ontent.md => InlineResponse2001Content.md} | 2 +- docs/InlineResponse2001Embedded.md | 9 - .../InlineResponse2001EmbeddedCaptureLinks.md | 8 - ...InlineResponse2001EmbeddedReversalLinks.md | 8 - docs/InlineResponse2002.md | 16 +- docs/InlineResponse2002Embedded.md | 9 + ...d => InlineResponse2002EmbeddedCapture.md} | 4 +- .../InlineResponse2002EmbeddedCaptureLinks.md | 8 + ...neResponse2002EmbeddedCaptureLinksSelf.md} | 2 +- ... => InlineResponse2002EmbeddedReversal.md} | 4 +- ...InlineResponse2002EmbeddedReversalLinks.md | 8 + ...eResponse2002EmbeddedReversalLinksSelf.md} | 2 +- docs/InlineResponse2003.md | 19 +- docs/InlineResponse2004.md | 10 +- ...lineResponse2004IntegrationInformation.md} | 4 +- ...grationInformationTenantConfigurations.md} | 2 +- docs/InlineResponse2005.md | 15 +- docs/InlineResponse2006.md | 1 - docs/InlineResponse2007.md | 19 +- docs/InlineResponse2008.md | 8 +- ...evices.md => InlineResponse2008Devices.md} | 2 +- docs/InlineResponse2009.md | 8 +- docs/InlineResponse200Details.md | 9 + docs/InlineResponse200Errors.md | 10 + docs/InlineResponse200Responses.md | 11 + docs/InlineResponse2013SetupsPayments.md | 1 + docs/ManageWebhooksApi.md | 8 +- docs/MerchantBoardingApi.md | 4 +- docs/MerchantDefinedFieldsApi.md | 12 +- docs/OffersApi.md | 4 +- docs/PatchCustomerPaymentInstrumentRequest.md | 18 +- docs/PatchCustomerRequest.md | 18 +- docs/PatchCustomerShippingAddressRequest.md | 6 +- docs/PatchPaymentInstrumentRequest.md | 18 +- ...strumentList1EmbeddedPaymentInstruments.md | 16 +- docs/PaymentInstrumentListEmbedded.md | 2 +- docs/PaymentsProducts.md | 1 + docs/PostCustomerPaymentInstrumentRequest.md | 18 +- docs/PostCustomerRequest.md | 18 +- docs/PostCustomerShippingAddressRequest.md | 6 +- docs/PostIssuerLifeCycleSimulationRequest.md | 10 + docs/PostPaymentInstrumentRequest.md | 18 +- docs/PostTokenizeRequest.md | 9 + docs/Ptsv2paymentsAggregatorInformation.md | 1 + docs/Rbsv1plansClientReferenceInformation.md | 12 - ...subscriptionsClientReferenceInformation.md | 13 - ...ptionsClientReferenceInformationPartner.md | 9 - .../ShippingAddressListForCustomerEmbedded.md | 2 +- docs/SubscriptionsApi.md | 14 +- docs/TmsMerchantInformation.md | 8 + ...sMerchantInformationMerchantDescriptor.md} | 2 +- docs/Tmsv2customersEmbedded.md | 9 - ...stomersEmbeddedDefaultPaymentInstrument.md | 22 - ...tBuyerInformationPersonalIdentification.md | 10 - ...rsEmbeddedDefaultPaymentInstrumentLinks.md | 9 - ...ultPaymentInstrumentMerchantInformation.md | 8 - ...customersEmbeddedDefaultShippingAddress.md | 12 - ...mersEmbeddedDefaultShippingAddressLinks.md | 9 - docs/Tmsv2customersLinks.md | 10 - docs/Tmsv2tokenizeProcessingInformation.md | 9 + docs/Tmsv2tokenizeTokenInformation.md | 13 + docs/Tmsv2tokenizeTokenInformationCustomer.md | 17 + ...kenInformationCustomerBuyerInformation.md} | 2 +- ...tionCustomerClientReferenceInformation.md} | 2 +- ...mationCustomerDefaultPaymentInstrument.md} | 2 +- ...ormationCustomerDefaultShippingAddress.md} | 2 +- ...okenizeTokenInformationCustomerEmbedded.md | 9 + ...ustomerEmbeddedDefaultPaymentInstrument.md | 22 + ...dedDefaultPaymentInstrumentBankAccount.md} | 2 +- ...EmbeddedDefaultPaymentInstrumentBillTo.md} | 2 +- ...faultPaymentInstrumentBuyerInformation.md} | 4 +- ...mentInstrumentBuyerInformationIssuedBy.md} | 2 +- ...tBuyerInformationPersonalIdentification.md | 10 + ...erEmbeddedDefaultPaymentInstrumentCard.md} | 4 +- ...mentInstrumentCardTokenizedInformation.md} | 2 +- ...beddedDefaultPaymentInstrumentEmbedded.md} | 2 +- ...tPaymentInstrumentInstrumentIdentifier.md} | 2 +- ...erEmbeddedDefaultPaymentInstrumentLinks.md | 9 + ...eddedDefaultPaymentInstrumentLinksSelf.md} | 2 +- ...beddedDefaultPaymentInstrumentMetadata.md} | 2 +- ...nCustomerEmbeddedDefaultShippingAddress.md | 12 + ...omerEmbeddedDefaultShippingAddressLinks.md | 9 + ...dedDefaultShippingAddressLinksCustomer.md} | 2 +- ...mbeddedDefaultShippingAddressLinksSelf.md} | 2 +- ...EmbeddedDefaultShippingAddressMetadata.md} | 2 +- ...erEmbeddedDefaultShippingAddressShipTo.md} | 2 +- ...v2tokenizeTokenInformationCustomerLinks.md | 10 + ...rmationCustomerLinksPaymentInstruments.md} | 2 +- ...enizeTokenInformationCustomerLinksSelf.md} | 2 +- ...nformationCustomerLinksShippingAddress.md} | 2 +- ...tionCustomerMerchantDefinedInformation.md} | 2 +- ...kenizeTokenInformationCustomerMetadata.md} | 2 +- ...enInformationCustomerObjectInformation.md} | 2 +- ...rdIdissuerlifecycleeventsimulationsCard.md | 10 + ...issuerlifecycleeventsimulationsMetadata.md | 8 + ...ifecycleeventsimulationsMetadataCardArt.md | 8 + ...simulationsMetadataCardArtCombinedAsset.md | 8 + docs/TokenApi.md | 4 +- docs/TokenizeApi.md | 60 + docs/TokenizedCardApi.md | 53 + docs/UpdateSubscription.md | 2 +- docs/Upv1capturecontextsData.md | 2 + ...Upv1capturecontextsDataBuyerInformation.md | 6 +- ...aBuyerInformationPersonalIdentification.md | 2 +- ...tsDataConsumerAuthenticationInformation.md | 5 +- ...pv1capturecontextsDataDeviceInformation.md | 8 + ...taMerchantInformationMerchantDescriptor.md | 7 + ...Upv1capturecontextsDataOrderInformation.md | 1 + ...ntextsDataOrderInformationAmountDetails.md | 1 + ...OrderInformationAmountDetailsTaxDetails.md | 9 + ...textsDataOrderInformationInvoiceDetails.md | 9 + ...recontextsDataOrderInformationLineItems.md | 60 +- ...sDataOrderInformationLineItemsPassenger.md | 16 +- ...DataOrderInformationLineItemsTaxDetails.md | 14 +- ...v1capturecontextsDataPaymentInformation.md | 8 + ...pturecontextsDataPaymentInformationCard.md | 8 + ...apturecontextsDataProcessingInformation.md | 2 +- ...ocessingInformationAuthorizationOptions.md | 9 +- ...nformationAuthorizationOptionsInitiator.md | 2 +- ...capturecontextsDataRecipientInformation.md | 2 + generator/cybersource-rest-spec-ruby.json | 7494 ++++++++++++++--- generator/cybersource-rest-spec.json | 7494 ++++++++++++++--- .../cybersource-ruby-template/api.mustache | 6 +- lib/cybersource_rest_client.rb | 141 +- .../api/bank_account_validation_api.rb | 12 +- .../api/batches_api.rb | 42 +- .../api/billing_agreements_api.rb | 18 +- .../api/bin_lookup_api.rb | 6 +- .../api/capture_api.rb | 6 +- .../api/chargeback_details_api.rb | 6 +- .../api/chargeback_summaries_api.rb | 6 +- .../api/conversion_details_api.rb | 6 +- .../api/create_new_webhooks_api.rb | 24 +- lib/cybersource_rest_client/api/credit_api.rb | 6 +- .../api/customer_api.rb | 28 +- .../api/customer_payment_instrument_api.rb | 34 +- .../api/customer_shipping_address_api.rb | 34 +- .../api/decision_manager_api.rb | 36 +- .../api/device_de_association_api.rb | 18 +- .../api/device_search_api.rb | 24 +- .../api/download_dtd_api.rb | 6 +- .../api/download_xsd_api.rb | 6 +- .../api/emv_tag_details_api.rb | 12 +- .../api/flex_api_api.rb | 6 +- .../api/instrument_identifier_api.rb | 42 +- .../interchange_clearing_level_details_api.rb | 6 +- .../api/invoice_settings_api.rb | 12 +- .../api/invoices_api.rb | 42 +- .../api/manage_webhooks_api.rb | 54 +- .../api/merchant_boarding_api.rb | 18 +- .../api/merchant_defined_fields_api.rb | 42 +- .../api/microform_integration_api.rb | 6 +- .../api/net_fundings_api.rb | 6 +- .../api/notification_of_changes_api.rb | 6 +- lib/cybersource_rest_client/api/offers_api.rb | 18 +- lib/cybersource_rest_client/api/orders_api.rb | 12 +- .../api/payer_authentication_api.rb | 18 +- .../api/payment_batch_summaries_api.rb | 6 +- .../api/payment_instrument_api.rb | 28 +- .../api/payment_links_api.rb | 24 +- .../api/payment_tokens_api.rb | 6 +- .../api/payments_api.rb | 36 +- .../api/payouts_api.rb | 6 +- lib/cybersource_rest_client/api/plans_api.rb | 48 +- .../api/purchase_and_refund_details_api.rb | 6 +- .../api/push_funds_api.rb | 6 +- lib/cybersource_rest_client/api/refund_api.rb | 12 +- .../api/report_definitions_api.rb | 12 +- .../api/report_downloads_api.rb | 6 +- .../api/report_subscriptions_api.rb | 30 +- .../api/reports_api.rb | 18 +- .../api/retrieval_details_api.rb | 6 +- .../api/retrieval_summaries_api.rb | 6 +- .../api/reversal_api.rb | 12 +- .../api/search_transactions_api.rb | 12 +- .../api/secure_file_share_api.rb | 12 +- .../api/subscriptions_api.rb | 66 +- .../api/subscriptions_follow_ons_api.rb | 12 +- lib/cybersource_rest_client/api/taxes_api.rb | 12 +- lib/cybersource_rest_client/api/token_api.rb | 20 +- .../api/tokenize_api.rb | 103 + .../api/tokenized_card_api.rb | 109 +- .../api/transaction_batches_api.rb | 24 +- .../api/transaction_details_api.rb | 6 +- .../api/transient_token_data_api.rb | 12 +- .../unified_checkout_capture_context_api.rb | 6 +- .../api/user_management_api.rb | 6 +- .../api/user_management_search_api.rb | 6 +- .../api/verification_api.rb | 12 +- lib/cybersource_rest_client/api/void_api.rb | 30 +- .../models/create_plan_request.rb | 12 +- .../models/create_subscription_request.rb | 2 +- .../models/create_subscription_request_1.rb | 2 +- .../models/create_subscription_response.rb | 20 +- ...nified_checkout_capture_context_request.rb | 15 +- ...s_response_client_reference_information.rb | 196 + ...ll_subscriptions_response_subscriptions.rb | 12 +- .../models/get_subscription_response.rb | 12 +- ...scription_response_1_payment_instrument.rb | 2 +- ..._1_payment_instrument_buyer_information.rb | 2 +- ...ubscription_response_1_shipping_address.rb | 2 +- ...ption_response_reactivation_information.rb | 44 +- .../models/inline_response_200.rb | 53 +- .../models/inline_response_200_1.rb | 60 +- .../models/inline_response_200_10.rb | 70 +- ...s.rb => inline_response_200_10_devices.rb} | 4 +- ...0_10_payment_processor_to_terminal_map.rb} | 2 +- .../models/inline_response_200_11.rb | 133 +- ...rb => inline_response_200_11__embedded.rb} | 4 +- ...nline_response_200_11__embedded__links.rb} | 4 +- ...sponse_200_11__embedded__links_reports.rb} | 2 +- ...line_response_200_11__embedded_batches.rb} | 6 +- ...nline_response_200_11__embedded_totals.rb} | 2 +- .../models/inline_response_200_11__links.rb | 33 +- .../models/inline_response_200_12.rb | 96 +- .../models/inline_response_200_12__links.rb | 201 + ...> inline_response_200_12__links_report.rb} | 2 +- ...g.rb => inline_response_200_12_billing.rb} | 2 +- .../models/inline_response_200_13.rb | 133 +- ...s.rb => inline_response_200_13_records.rb} | 6 +- ...inline_response_200_13_response_record.rb} | 4 +- ..._13_response_record_additional_updates.rb} | 2 +- ...> inline_response_200_13_source_record.rb} | 2 +- .../models/inline_response_200_14.rb | 102 +- .../models/inline_response_200_15.rb | 287 + ...se_200_15_client_reference_information.rb} | 2 +- ...nt.rb => inline_response_200_1_content.rb} | 2 +- .../models/inline_response_200_2.rb | 135 +- ....rb => inline_response_200_2__embedded.rb} | 6 +- ...nline_response_200_2__embedded_capture.rb} | 4 +- ...esponse_200_2__embedded_capture__links.rb} | 4 +- ...se_200_2__embedded_capture__links_self.rb} | 2 +- ...line_response_200_2__embedded_reversal.rb} | 4 +- ...sponse_200_2__embedded_reversal__links.rb} | 4 +- ...e_200_2__embedded_reversal__links_self.rb} | 2 +- .../models/inline_response_200_3.rb | 154 +- .../models/inline_response_200_4.rb | 90 +- ...response_200_4_integration_information.rb} | 4 +- ...tion_information_tenant_configurations.rb} | 2 +- .../models/inline_response_200_5.rb | 151 +- .../models/inline_response_200_6.rb | 13 +- .../models/inline_response_200_7.rb | 180 +- .../models/inline_response_200_8.rb | 65 +- ...es.rb => inline_response_200_8_devices.rb} | 2 +- .../models/inline_response_200_9.rb | 65 +- ...inks.rb => inline_response_200_details.rb} | 35 +- .../models/inline_response_200_errors.rb | 213 + .../models/inline_response_200_responses.rb | 224 + .../inline_response_201_3_setups_payments.rb | 20 +- ...tch_customer_payment_instrument_request.rb | 18 +- .../models/patch_customer_request.rb | 18 +- ...patch_customer_shipping_address_request.rb | 6 +- .../patch_payment_instrument_request.rb | 18 +- ...nt_list_1__embedded_payment_instruments.rb | 16 +- .../payment_instrument_list__embedded.rb | 2 +- .../models/payments_products.rb | 20 +- ...ost_customer_payment_instrument_request.rb | 18 +- .../models/post_customer_request.rb | 18 +- .../post_customer_shipping_address_request.rb | 6 +- ...st_issuer_life_cycle_simulation_request.rb | 211 + .../models/post_payment_instrument_request.rb | 18 +- .../models/post_tokenize_request.rb | 199 + .../ptsv2payments_aggregator_information.rb | 27 +- ...rbsv1plans_client_reference_information.rb | 239 - ...scriptions_client_reference_information.rb | 256 - ...ing_address_list_for_customer__embedded.rb | 2 +- ...ations_metadata_card_art_combined_asset.rb | 190 + ...rmation.rb => tms_merchant_information.rb} | 4 +- ...rchant_information_merchant_descriptor.rb} | 2 +- .../tmsv2tokenize_processing_information.rb | 205 + .../models/tmsv2tokenize_token_information.rb | 247 + ...msv2tokenize_token_information_customer.rb | 289 + ...e_token_information_customer__embedded.rb} | 6 +- ...r__embedded_default_payment_instrument.rb} | 20 +- ...d_default_payment_instrument__embedded.rb} | 2 +- ...dded_default_payment_instrument__links.rb} | 6 +- ...default_payment_instrument__links_self.rb} | 2 +- ...efault_payment_instrument_bank_account.rb} | 2 +- ...ded_default_payment_instrument_bill_to.rb} | 2 +- ...t_payment_instrument_buyer_information.rb} | 4 +- ...instrument_buyer_information_issued_by.rb} | 2 +- ...er_information_personal_identification.rb} | 4 +- ...bedded_default_payment_instrument_card.rb} | 4 +- ..._instrument_card_tokenized_information.rb} | 2 +- ...yment_instrument_instrument_identifier.rb} | 2 +- ...ed_default_payment_instrument_metadata.rb} | 2 +- ...mer__embedded_default_shipping_address.rb} | 8 +- ...bedded_default_shipping_address__links.rb} | 6 +- ...fault_shipping_address__links_customer.rb} | 2 +- ...d_default_shipping_address__links_self.rb} | 2 +- ...dded_default_shipping_address_metadata.rb} | 2 +- ...edded_default_shipping_address_ship_to.rb} | 2 +- ...nize_token_information_customer__links.rb} | 8 +- ...on_customer__links_payment_instruments.rb} | 2 +- ...token_information_customer__links_self.rb} | 2 +- ...ation_customer__links_shipping_address.rb} | 2 +- ...information_customer_buyer_information.rb} | 2 +- ..._customer_client_reference_information.rb} | 2 +- ...on_customer_default_payment_instrument.rb} | 2 +- ...tion_customer_default_shipping_address.rb} | 2 +- ..._customer_merchant_defined_information.rb} | 2 +- ...ze_token_information_customer_metadata.rb} | 2 +- ...nformation_customer_object_information.rb} | 2 +- ...idissuerlifecycleeventsimulations_card.rb} | 65 +- ...ssuerlifecycleeventsimulations_metadata.rb | 189 + ...cycleeventsimulations_metadata_card_art.rb | 189 + .../models/update_subscription.rb | 2 +- .../models/upv1capturecontexts_data.rb | 30 +- ...1capturecontexts_data_buyer_information.rb | 46 +- ...yer_information_personal_identification.rb | 1 + ...ta_client_reference_information_partner.rb | 6 +- ...ata_consumer_authentication_information.rb | 29 +- ...capturecontexts_data_device_information.rb | 196 + ...erchant_information_merchant_descriptor.rb | 129 +- ...1capturecontexts_data_order_information.rb | 20 +- ...s_data_order_information_amount_details.rb | 20 +- ..._information_amount_details_tax_details.rb | 213 + ..._data_order_information_invoice_details.rb | 213 + ...texts_data_order_information_line_items.rb | 30 + ..._order_information_line_items_passenger.rb | 8 + ...rder_information_line_items_tax_details.rb | 7 + ...apturecontexts_data_payment_information.rb | 189 + ...econtexts_data_payment_information_card.rb | 196 + ...urecontexts_data_processing_information.rb | 1 + ...ssing_information_authorization_options.rb | 79 +- ...rmation_authorization_options_initiator.rb | 1 + ...turecontexts_data_recipient_information.rb | 44 +- .../upv1capturecontexts_order_information.rb | 1 + spec/api/bank_account_validation_api_spec.rb | 2 +- spec/api/batches_api_spec.rb | 6 +- spec/api/create_new_webhooks_api_spec.rb | 2 +- spec/api/decision_manager_api_spec.rb | 2 +- spec/api/device_de_association_api_spec.rb | 2 +- spec/api/device_search_api_spec.rb | 4 +- spec/api/manage_webhooks_api_spec.rb | 4 +- spec/api/merchant_boarding_api_spec.rb | 2 +- spec/api/merchant_defined_fields_api_spec.rb | 6 +- spec/api/offers_api_spec.rb | 2 +- spec/api/subscriptions_api_spec.rb | 8 +- spec/api/token_api_spec.rb | 2 +- spec/api/tokenize_api_spec.rb | 47 + spec/api/tokenized_card_api_spec.rb | 14 + spec/models/create_plan_request_spec.rb | 6 - .../create_subscription_response_spec.rb | 6 + ...d_checkout_capture_context_request_spec.rb | 6 + ...onse_client_reference_information_spec.rb} | 14 +- ...bscriptions_response_subscriptions_spec.rb | 6 + ..._response_reactivation_information_spec.rb | 4 +- spec/models/get_subscription_response_spec.rb | 6 + ...=> inline_response_200_10_devices_spec.rb} | 12 +- ...payment_processor_to_terminal_map_spec.rb} | 12 +- spec/models/inline_response_200_10_spec.rb | 14 +- ...e_200_11__embedded__links_reports_spec.rb} | 12 +- ..._response_200_11__embedded__links_spec.rb} | 12 +- ...response_200_11__embedded_batches_spec.rb} | 12 +- ... inline_response_200_11__embedded_spec.rb} | 12 +- ..._response_200_11__embedded_totals_spec.rb} | 12 +- .../inline_response_200_11__links_spec.rb | 4 +- spec/models/inline_response_200_11_spec.rb | 30 +- ...ine_response_200_12__links_report_spec.rb} | 12 +- ... => inline_response_200_12__links_spec.rb} | 16 +- ...=> inline_response_200_12_billing_spec.rb} | 12 +- spec/models/inline_response_200_12_spec.rb | 14 +- ...=> inline_response_200_13_records_spec.rb} | 12 +- ...esponse_record_additional_updates_spec.rb} | 12 +- ...e_response_200_13_response_record_spec.rb} | 12 +- ...ine_response_200_13_source_record_spec.rb} | 12 +- spec/models/inline_response_200_13_spec.rb | 44 +- spec/models/inline_response_200_14_spec.rb | 16 +- ...0_15_client_reference_information_spec.rb} | 12 +- spec/models/inline_response_200_15_spec.rb | 70 + ... => inline_response_200_1_content_spec.rb} | 12 +- spec/models/inline_response_200_1_spec.rb | 6 +- ...0_2__embedded_capture__links_self_spec.rb} | 12 +- ...se_200_2__embedded_capture__links_spec.rb} | 12 +- ..._response_200_2__embedded_capture_spec.rb} | 12 +- ..._2__embedded_reversal__links_self_spec.rb} | 12 +- ...e_200_2__embedded_reversal__links_spec.rb} | 12 +- ...response_200_2__embedded_reversal_spec.rb} | 12 +- ...> inline_response_200_2__embedded_spec.rb} | 12 +- spec/models/inline_response_200_2_spec.rb | 54 +- spec/models/inline_response_200_3_spec.rb | 44 +- ...nse_200_4_integration_information_spec.rb} | 12 +- ...information_tenant_configurations_spec.rb} | 12 +- spec/models/inline_response_200_4_spec.rb | 30 +- spec/models/inline_response_200_5_spec.rb | 60 +- spec/models/inline_response_200_6_spec.rb | 6 - spec/models/inline_response_200_7_spec.rb | 54 +- ... => inline_response_200_8_devices_spec.rb} | 12 +- spec/models/inline_response_200_8_spec.rb | 26 +- spec/models/inline_response_200_9_spec.rb | 26 +- .../inline_response_200_details_spec.rb | 46 + .../models/inline_response_200_errors_spec.rb | 52 + .../inline_response_200_responses_spec.rb | 58 + spec/models/inline_response_200_spec.rb | 20 +- ...ine_response_201_3_setups_payments_spec.rb | 6 + spec/models/payments_products_spec.rb | 6 + ...suer_life_cycle_simulation_request_spec.rb | 52 + ..._spec.rb => post_tokenize_request_spec.rb} | 16 +- ...sv2payments_aggregator_information_spec.rb | 6 + ...plans_client_reference_information_spec.rb | 64 - ...ient_reference_information_partner_spec.rb | 46 - ...nt_information_merchant_descriptor_spec.rb | 40 + ...ec.rb => tms_merchant_information_spec.rb} | 14 +- ...nt_information_merchant_descriptor_spec.rb | 40 - ...nt_instrument_merchant_information_spec.rb | 40 - ...t_shipping_address__links_customer_spec.rb | 40 - ...2customers__links_shipping_address_spec.rb | 40 - ...sv2tokenize_processing_information_spec.rb | 46 + ...ault_payment_instrument__embedded_spec.rb} | 12 +- ...ult_payment_instrument__links_self_spec.rb | 40 + ...default_payment_instrument__links_spec.rb} | 12 +- ...t_payment_instrument_bank_account_spec.rb} | 12 +- ...efault_payment_instrument_bill_to_spec.rb} | 12 +- ...ument_buyer_information_issued_by_spec.rb} | 12 +- ...formation_personal_identification_spec.rb} | 12 +- ...ment_instrument_buyer_information_spec.rb} | 12 +- ...d_default_payment_instrument_card_spec.rb} | 12 +- ...rument_card_tokenized_information_spec.rb} | 12 +- ..._instrument_instrument_identifier_spec.rb} | 12 +- ...fault_payment_instrument_metadata_spec.rb} | 12 +- ...bedded_default_payment_instrument_spec.rb} | 12 +- ...t_shipping_address__links_customer_spec.rb | 40 + ...fault_shipping_address__links_self_spec.rb | 40 + ...d_default_shipping_address__links_spec.rb} | 12 +- ...default_shipping_address_metadata_spec.rb} | 12 +- ..._default_shipping_address_ship_to_spec.rb} | 12 +- ...embedded_default_shipping_address_spec.rb} | 12 +- ...en_information_customer__embedded_spec.rb} | 12 +- ...ustomer__links_payment_instruments_spec.rb | 40 + ..._information_customer__links_self_spec.rb} | 12 +- ..._customer__links_shipping_address_spec.rb} | 12 +- ...token_information_customer__links_spec.rb} | 12 +- ...mation_customer_buyer_information_spec.rb} | 12 +- ...tomer_client_reference_information_spec.rb | 40 + ...stomer_default_payment_instrument_spec.rb} | 12 +- ...customer_default_shipping_address_spec.rb} | 12 +- ...omer_merchant_defined_information_spec.rb} | 12 +- ...ken_information_customer_metadata_spec.rb} | 12 +- ...mation_customer_object_information_spec.rb | 46 + ...okenize_token_information_customer_spec.rb | 94 + ...> tmsv2tokenize_token_information_spec.rb} | 24 +- ...suerlifecycleeventsimulations_card_spec.rb | 52 + ...s_metadata_card_art_combined_asset_spec.rb | 40 + ...eventsimulations_metadata_card_art_spec.rb | 40 + ...lifecycleeventsimulations_metadata_spec.rb | 40 + ...urecontexts_data_buyer_information_spec.rb | 12 + ...onsumer_authentication_information_spec.rb | 6 + ...econtexts_data_device_information_spec.rb} | 14 +- ...nt_information_merchant_descriptor_spec.rb | 42 + ...a_order_information_amount_details_spec.rb | 6 + ...rmation_amount_details_tax_details_spec.rb | 46 + ..._order_information_invoice_details_spec.rb | 46 + ...urecontexts_data_order_information_spec.rb | 6 + ...exts_data_payment_information_card_spec.rb | 40 + ...econtexts_data_payment_information_spec.rb | 40 + ..._information_authorization_options_spec.rb | 30 + ...ontexts_data_recipient_information_spec.rb | 12 + spec/models/upv1capturecontexts_data_spec.rb | 12 + 505 files changed, 21685 insertions(+), 5780 deletions(-) create mode 100644 docs/GetAllSubscriptionsResponseClientReferenceInformation.md rename docs/{InlineResponse2009Devices.md => InlineResponse20010Devices.md} (81%) delete mode 100644 docs/InlineResponse20010Embedded.md delete mode 100644 docs/InlineResponse20010EmbeddedLinks.md delete mode 100644 docs/InlineResponse20010Links.md rename docs/{InlineResponse2009PaymentProcessorToTerminalMap.md => InlineResponse20010PaymentProcessorToTerminalMap.md} (75%) create mode 100644 docs/InlineResponse20011Embedded.md rename docs/{InlineResponse20010EmbeddedBatches.md => InlineResponse20011EmbeddedBatches.md} (79%) create mode 100644 docs/InlineResponse20011EmbeddedLinks.md rename docs/{InlineResponse20010EmbeddedLinksReports.md => InlineResponse20011EmbeddedLinksReports.md} (73%) rename docs/{InlineResponse20010EmbeddedTotals.md => InlineResponse20011EmbeddedTotals.md} (88%) rename docs/{InlineResponse20011Billing.md => InlineResponse20012Billing.md} (86%) create mode 100644 docs/InlineResponse20012Links.md rename docs/{InlineResponse20011LinksReport.md => InlineResponse20012LinksReport.md} (76%) delete mode 100644 docs/InlineResponse20012Records.md create mode 100644 docs/InlineResponse20013Records.md rename docs/{InlineResponse20012ResponseRecord.md => InlineResponse20013ResponseRecord.md} (80%) rename docs/{InlineResponse20012ResponseRecordAdditionalUpdates.md => InlineResponse20013ResponseRecordAdditionalUpdates.md} (85%) rename docs/{InlineResponse20012SourceRecord.md => InlineResponse20013SourceRecord.md} (91%) create mode 100644 docs/InlineResponse20015.md rename docs/{InlineResponse20014ClientReferenceInformation.md => InlineResponse20015ClientReferenceInformation.md} (94%) rename docs/{InlineResponse200Content.md => InlineResponse2001Content.md} (90%) delete mode 100644 docs/InlineResponse2001Embedded.md delete mode 100644 docs/InlineResponse2001EmbeddedCaptureLinks.md delete mode 100644 docs/InlineResponse2001EmbeddedReversalLinks.md create mode 100644 docs/InlineResponse2002Embedded.md rename docs/{InlineResponse2001EmbeddedCapture.md => InlineResponse2002EmbeddedCapture.md} (55%) create mode 100644 docs/InlineResponse2002EmbeddedCaptureLinks.md rename docs/{InlineResponse2001EmbeddedCaptureLinksSelf.md => InlineResponse2002EmbeddedCaptureLinksSelf.md} (86%) rename docs/{InlineResponse2001EmbeddedReversal.md => InlineResponse2002EmbeddedReversal.md} (55%) create mode 100644 docs/InlineResponse2002EmbeddedReversalLinks.md rename docs/{InlineResponse2001EmbeddedReversalLinksSelf.md => InlineResponse2002EmbeddedReversalLinksSelf.md} (86%) rename docs/{InlineResponse2003IntegrationInformation.md => InlineResponse2004IntegrationInformation.md} (70%) rename docs/{InlineResponse2003IntegrationInformationTenantConfigurations.md => InlineResponse2004IntegrationInformationTenantConfigurations.md} (93%) rename docs/{InlineResponse2007Devices.md => InlineResponse2008Devices.md} (93%) create mode 100644 docs/InlineResponse200Details.md create mode 100644 docs/InlineResponse200Errors.md create mode 100644 docs/InlineResponse200Responses.md create mode 100644 docs/PostIssuerLifeCycleSimulationRequest.md create mode 100644 docs/PostTokenizeRequest.md delete mode 100644 docs/Rbsv1plansClientReferenceInformation.md delete mode 100644 docs/Rbsv1subscriptionsClientReferenceInformation.md delete mode 100644 docs/Rbsv1subscriptionsClientReferenceInformationPartner.md create mode 100644 docs/TmsMerchantInformation.md rename docs/{Tmsv2customersEmbeddedDefaultPaymentInstrumentMerchantInformationMerchantDescriptor.md => TmsMerchantInformationMerchantDescriptor.md} (83%) delete mode 100644 docs/Tmsv2customersEmbedded.md delete mode 100644 docs/Tmsv2customersEmbeddedDefaultPaymentInstrument.md delete mode 100644 docs/Tmsv2customersEmbeddedDefaultPaymentInstrumentBuyerInformationPersonalIdentification.md delete mode 100644 docs/Tmsv2customersEmbeddedDefaultPaymentInstrumentLinks.md delete mode 100644 docs/Tmsv2customersEmbeddedDefaultPaymentInstrumentMerchantInformation.md delete mode 100644 docs/Tmsv2customersEmbeddedDefaultShippingAddress.md delete mode 100644 docs/Tmsv2customersEmbeddedDefaultShippingAddressLinks.md delete mode 100644 docs/Tmsv2customersLinks.md create mode 100644 docs/Tmsv2tokenizeProcessingInformation.md create mode 100644 docs/Tmsv2tokenizeTokenInformation.md create mode 100644 docs/Tmsv2tokenizeTokenInformationCustomer.md rename docs/{Tmsv2customersBuyerInformation.md => Tmsv2tokenizeTokenInformationCustomerBuyerInformation.md} (81%) rename docs/{Tmsv2customersClientReferenceInformation.md => Tmsv2tokenizeTokenInformationCustomerClientReferenceInformation.md} (72%) rename docs/{Tmsv2customersDefaultPaymentInstrument.md => Tmsv2tokenizeTokenInformationCustomerDefaultPaymentInstrument.md} (72%) rename docs/{Tmsv2customersDefaultShippingAddress.md => Tmsv2tokenizeTokenInformationCustomerDefaultShippingAddress.md} (72%) create mode 100644 docs/Tmsv2tokenizeTokenInformationCustomerEmbedded.md create mode 100644 docs/Tmsv2tokenizeTokenInformationCustomerEmbeddedDefaultPaymentInstrument.md rename docs/{Tmsv2customersEmbeddedDefaultPaymentInstrumentBankAccount.md => Tmsv2tokenizeTokenInformationCustomerEmbeddedDefaultPaymentInstrumentBankAccount.md} (78%) rename docs/{Tmsv2customersEmbeddedDefaultPaymentInstrumentBillTo.md => Tmsv2tokenizeTokenInformationCustomerEmbeddedDefaultPaymentInstrumentBillTo.md} (94%) rename docs/{Tmsv2customersEmbeddedDefaultPaymentInstrumentBuyerInformation.md => Tmsv2tokenizeTokenInformationCustomerEmbeddedDefaultPaymentInstrumentBuyerInformation.md} (77%) rename docs/{Tmsv2customersEmbeddedDefaultPaymentInstrumentBuyerInformationIssuedBy.md => Tmsv2tokenizeTokenInformationCustomerEmbeddedDefaultPaymentInstrumentBuyerInformationIssuedBy.md} (75%) create mode 100644 docs/Tmsv2tokenizeTokenInformationCustomerEmbeddedDefaultPaymentInstrumentBuyerInformationPersonalIdentification.md rename docs/{Tmsv2customersEmbeddedDefaultPaymentInstrumentCard.md => Tmsv2tokenizeTokenInformationCustomerEmbeddedDefaultPaymentInstrumentCard.md} (91%) rename docs/{Tmsv2customersEmbeddedDefaultPaymentInstrumentCardTokenizedInformation.md => Tmsv2tokenizeTokenInformationCustomerEmbeddedDefaultPaymentInstrumentCardTokenizedInformation.md} (88%) rename docs/{Tmsv2customersEmbeddedDefaultPaymentInstrumentEmbedded.md => Tmsv2tokenizeTokenInformationCustomerEmbeddedDefaultPaymentInstrumentEmbedded.md} (71%) rename docs/{Tmsv2customersEmbeddedDefaultPaymentInstrumentInstrumentIdentifier.md => Tmsv2tokenizeTokenInformationCustomerEmbeddedDefaultPaymentInstrumentInstrumentIdentifier.md} (67%) create mode 100644 docs/Tmsv2tokenizeTokenInformationCustomerEmbeddedDefaultPaymentInstrumentLinks.md rename docs/{Tmsv2customersEmbeddedDefaultPaymentInstrumentLinksSelf.md => Tmsv2tokenizeTokenInformationCustomerEmbeddedDefaultPaymentInstrumentLinksSelf.md} (66%) rename docs/{Tmsv2customersEmbeddedDefaultPaymentInstrumentMetadata.md => Tmsv2tokenizeTokenInformationCustomerEmbeddedDefaultPaymentInstrumentMetadata.md} (67%) create mode 100644 docs/Tmsv2tokenizeTokenInformationCustomerEmbeddedDefaultShippingAddress.md create mode 100644 docs/Tmsv2tokenizeTokenInformationCustomerEmbeddedDefaultShippingAddressLinks.md rename docs/{Tmsv2customersEmbeddedDefaultShippingAddressLinksCustomer.md => Tmsv2tokenizeTokenInformationCustomerEmbeddedDefaultShippingAddressLinksCustomer.md} (64%) rename docs/{Tmsv2customersEmbeddedDefaultShippingAddressLinksSelf.md => Tmsv2tokenizeTokenInformationCustomerEmbeddedDefaultShippingAddressLinksSelf.md} (67%) rename docs/{Tmsv2customersEmbeddedDefaultShippingAddressMetadata.md => Tmsv2tokenizeTokenInformationCustomerEmbeddedDefaultShippingAddressMetadata.md} (67%) rename docs/{Tmsv2customersEmbeddedDefaultShippingAddressShipTo.md => Tmsv2tokenizeTokenInformationCustomerEmbeddedDefaultShippingAddressShipTo.md} (95%) create mode 100644 docs/Tmsv2tokenizeTokenInformationCustomerLinks.md rename docs/{Tmsv2customersLinksPaymentInstruments.md => Tmsv2tokenizeTokenInformationCustomerLinksPaymentInstruments.md} (71%) rename docs/{Tmsv2customersLinksSelf.md => Tmsv2tokenizeTokenInformationCustomerLinksSelf.md} (73%) rename docs/{Tmsv2customersLinksShippingAddress.md => Tmsv2tokenizeTokenInformationCustomerLinksShippingAddress.md} (72%) rename docs/{Tmsv2customersMerchantDefinedInformation.md => Tmsv2tokenizeTokenInformationCustomerMerchantDefinedInformation.md} (95%) rename docs/{Tmsv2customersMetadata.md => Tmsv2tokenizeTokenInformationCustomerMetadata.md} (75%) rename docs/{Tmsv2customersObjectInformation.md => Tmsv2tokenizeTokenInformationCustomerObjectInformation.md} (79%) create mode 100644 docs/Tmsv2tokenizedcardstokenizedCardIdissuerlifecycleeventsimulationsCard.md create mode 100644 docs/Tmsv2tokenizedcardstokenizedCardIdissuerlifecycleeventsimulationsMetadata.md create mode 100644 docs/Tmsv2tokenizedcardstokenizedCardIdissuerlifecycleeventsimulationsMetadataCardArt.md create mode 100644 docs/Tmsv2tokenizedcardstokenizedCardIdissuerlifecycleeventsimulationsMetadataCardArtCombinedAsset.md create mode 100644 docs/TokenizeApi.md create mode 100644 docs/Upv1capturecontextsDataDeviceInformation.md create mode 100644 docs/Upv1capturecontextsDataOrderInformationAmountDetailsTaxDetails.md create mode 100644 docs/Upv1capturecontextsDataOrderInformationInvoiceDetails.md create mode 100644 docs/Upv1capturecontextsDataPaymentInformation.md create mode 100644 docs/Upv1capturecontextsDataPaymentInformationCard.md create mode 100644 lib/cybersource_rest_client/api/tokenize_api.rb create mode 100644 lib/cybersource_rest_client/models/get_all_subscriptions_response_client_reference_information.rb rename lib/cybersource_rest_client/models/{inline_response_200_9_devices.rb => inline_response_200_10_devices.rb} (99%) rename lib/cybersource_rest_client/models/{inline_response_200_9_payment_processor_to_terminal_map.rb => inline_response_200_10_payment_processor_to_terminal_map.rb} (99%) rename lib/cybersource_rest_client/models/{inline_response_200_10__embedded.rb => inline_response_200_11__embedded.rb} (98%) rename lib/cybersource_rest_client/models/{inline_response_200_10__embedded__links.rb => inline_response_200_11__embedded__links.rb} (98%) rename lib/cybersource_rest_client/models/{inline_response_200_10__embedded__links_reports.rb => inline_response_200_11__embedded__links_reports.rb} (99%) rename lib/cybersource_rest_client/models/{inline_response_200_10__embedded_batches.rb => inline_response_200_11__embedded_batches.rb} (98%) rename lib/cybersource_rest_client/models/{inline_response_200_10__embedded_totals.rb => inline_response_200_11__embedded_totals.rb} (99%) create mode 100644 lib/cybersource_rest_client/models/inline_response_200_12__links.rb rename lib/cybersource_rest_client/models/{inline_response_200_11__links_report.rb => inline_response_200_12__links_report.rb} (99%) rename lib/cybersource_rest_client/models/{inline_response_200_11_billing.rb => inline_response_200_12_billing.rb} (99%) rename lib/cybersource_rest_client/models/{inline_response_200_12_records.rb => inline_response_200_13_records.rb} (97%) rename lib/cybersource_rest_client/models/{inline_response_200_12_response_record.rb => inline_response_200_13_response_record.rb} (98%) rename lib/cybersource_rest_client/models/{inline_response_200_12_response_record_additional_updates.rb => inline_response_200_13_response_record_additional_updates.rb} (99%) rename lib/cybersource_rest_client/models/{inline_response_200_12_source_record.rb => inline_response_200_13_source_record.rb} (99%) create mode 100644 lib/cybersource_rest_client/models/inline_response_200_15.rb rename lib/cybersource_rest_client/models/{inline_response_200_14_client_reference_information.rb => inline_response_200_15_client_reference_information.rb} (99%) rename lib/cybersource_rest_client/models/{inline_response_200_content.rb => inline_response_200_1_content.rb} (99%) rename lib/cybersource_rest_client/models/{inline_response_200_1__embedded.rb => inline_response_200_2__embedded.rb} (97%) rename lib/cybersource_rest_client/models/{inline_response_200_1__embedded_capture.rb => inline_response_200_2__embedded_capture.rb} (98%) rename lib/cybersource_rest_client/models/{inline_response_200_1__embedded_capture__links.rb => inline_response_200_2__embedded_capture__links.rb} (98%) rename lib/cybersource_rest_client/models/{inline_response_200_1__embedded_capture__links_self.rb => inline_response_200_2__embedded_capture__links_self.rb} (99%) rename lib/cybersource_rest_client/models/{inline_response_200_1__embedded_reversal.rb => inline_response_200_2__embedded_reversal.rb} (98%) rename lib/cybersource_rest_client/models/{inline_response_200_1__embedded_reversal__links.rb => inline_response_200_2__embedded_reversal__links.rb} (97%) rename lib/cybersource_rest_client/models/{inline_response_200_1__embedded_reversal__links_self.rb => inline_response_200_2__embedded_reversal__links_self.rb} (99%) rename lib/cybersource_rest_client/models/{inline_response_200_3_integration_information.rb => inline_response_200_4_integration_information.rb} (98%) rename lib/cybersource_rest_client/models/{inline_response_200_3_integration_information_tenant_configurations.rb => inline_response_200_4_integration_information_tenant_configurations.rb} (99%) rename lib/cybersource_rest_client/models/{inline_response_200_7_devices.rb => inline_response_200_8_devices.rb} (99%) rename lib/cybersource_rest_client/models/{inline_response_200_10__links.rb => inline_response_200_details.rb} (89%) create mode 100644 lib/cybersource_rest_client/models/inline_response_200_errors.rb create mode 100644 lib/cybersource_rest_client/models/inline_response_200_responses.rb create mode 100644 lib/cybersource_rest_client/models/post_issuer_life_cycle_simulation_request.rb create mode 100644 lib/cybersource_rest_client/models/post_tokenize_request.rb delete mode 100644 lib/cybersource_rest_client/models/rbsv1plans_client_reference_information.rb delete mode 100644 lib/cybersource_rest_client/models/rbsv1subscriptions_client_reference_information.rb create mode 100644 lib/cybersource_rest_client/models/tms_issuerlifecycleeventsimulations_metadata_card_art_combined_asset.rb rename lib/cybersource_rest_client/models/{tmsv2customers__embedded_default_payment_instrument_merchant_information.rb => tms_merchant_information.rb} (96%) rename lib/cybersource_rest_client/models/{tmsv2customers__embedded_default_payment_instrument_merchant_information_merchant_descriptor.rb => tms_merchant_information_merchant_descriptor.rb} (98%) create mode 100644 lib/cybersource_rest_client/models/tmsv2tokenize_processing_information.rb create mode 100644 lib/cybersource_rest_client/models/tmsv2tokenize_token_information.rb create mode 100644 lib/cybersource_rest_client/models/tmsv2tokenize_token_information_customer.rb rename lib/cybersource_rest_client/models/{tmsv2customers__embedded.rb => tmsv2tokenize_token_information_customer__embedded.rb} (95%) rename lib/cybersource_rest_client/models/{tmsv2customers__embedded_default_payment_instrument.rb => tmsv2tokenize_token_information_customer__embedded_default_payment_instrument.rb} (90%) rename lib/cybersource_rest_client/models/{tmsv2customers__embedded_default_payment_instrument__embedded.rb => tmsv2tokenize_token_information_customer__embedded_default_payment_instrument__embedded.rb} (98%) rename lib/cybersource_rest_client/models/{tmsv2customers__embedded_default_payment_instrument__links.rb => tmsv2tokenize_token_information_customer__embedded_default_payment_instrument__links.rb} (95%) rename lib/cybersource_rest_client/models/{tmsv2customers__embedded_default_payment_instrument__links_self.rb => tmsv2tokenize_token_information_customer__embedded_default_payment_instrument__links_self.rb} (98%) rename lib/cybersource_rest_client/models/{tmsv2customers__embedded_default_payment_instrument_bank_account.rb => tmsv2tokenize_token_information_customer__embedded_default_payment_instrument_bank_account.rb} (98%) rename lib/cybersource_rest_client/models/{tmsv2customers__embedded_default_payment_instrument_bill_to.rb => tmsv2tokenize_token_information_customer__embedded_default_payment_instrument_bill_to.rb} (99%) rename lib/cybersource_rest_client/models/{tmsv2customers__embedded_default_payment_instrument_buyer_information.rb => tmsv2tokenize_token_information_customer__embedded_default_payment_instrument_buyer_information.rb} (96%) rename lib/cybersource_rest_client/models/{tmsv2customers__embedded_default_payment_instrument_buyer_information_issued_by.rb => tmsv2tokenize_token_information_customer__embedded_default_payment_instrument_buyer_information_issued_by.rb} (98%) rename lib/cybersource_rest_client/models/{tmsv2customers__embedded_default_payment_instrument_buyer_information_personal_identification.rb => tmsv2tokenize_token_information_customer__embedded_default_payment_instrument_buyer_information_personal_identification.rb} (96%) rename lib/cybersource_rest_client/models/{tmsv2customers__embedded_default_payment_instrument_card.rb => tmsv2tokenize_token_information_customer__embedded_default_payment_instrument_card.rb} (98%) rename lib/cybersource_rest_client/models/{tmsv2customers__embedded_default_payment_instrument_card_tokenized_information.rb => tmsv2tokenize_token_information_customer__embedded_default_payment_instrument_card_tokenized_information.rb} (98%) rename lib/cybersource_rest_client/models/{tmsv2customers__embedded_default_payment_instrument_instrument_identifier.rb => tmsv2tokenize_token_information_customer__embedded_default_payment_instrument_instrument_identifier.rb} (98%) rename lib/cybersource_rest_client/models/{tmsv2customers__embedded_default_payment_instrument_metadata.rb => tmsv2tokenize_token_information_customer__embedded_default_payment_instrument_metadata.rb} (98%) rename lib/cybersource_rest_client/models/{tmsv2customers__embedded_default_shipping_address.rb => tmsv2tokenize_token_information_customer__embedded_default_shipping_address.rb} (94%) rename lib/cybersource_rest_client/models/{tmsv2customers__embedded_default_shipping_address__links.rb => tmsv2tokenize_token_information_customer__embedded_default_shipping_address__links.rb} (95%) rename lib/cybersource_rest_client/models/{tmsv2customers__embedded_default_shipping_address__links_customer.rb => tmsv2tokenize_token_information_customer__embedded_default_shipping_address__links_customer.rb} (98%) rename lib/cybersource_rest_client/models/{tmsv2customers__embedded_default_shipping_address__links_self.rb => tmsv2tokenize_token_information_customer__embedded_default_shipping_address__links_self.rb} (98%) rename lib/cybersource_rest_client/models/{tmsv2customers__embedded_default_shipping_address_metadata.rb => tmsv2tokenize_token_information_customer__embedded_default_shipping_address_metadata.rb} (98%) rename lib/cybersource_rest_client/models/{tmsv2customers__embedded_default_shipping_address_ship_to.rb => tmsv2tokenize_token_information_customer__embedded_default_shipping_address_ship_to.rb} (99%) rename lib/cybersource_rest_client/models/{tmsv2customers__links.rb => tmsv2tokenize_token_information_customer__links.rb} (95%) rename lib/cybersource_rest_client/models/{tmsv2customers__links_payment_instruments.rb => tmsv2tokenize_token_information_customer__links_payment_instruments.rb} (98%) rename lib/cybersource_rest_client/models/{tmsv2customers__links_self.rb => tmsv2tokenize_token_information_customer__links_self.rb} (98%) rename lib/cybersource_rest_client/models/{tmsv2customers__links_shipping_address.rb => tmsv2tokenize_token_information_customer__links_shipping_address.rb} (98%) rename lib/cybersource_rest_client/models/{tmsv2customers_buyer_information.rb => tmsv2tokenize_token_information_customer_buyer_information.rb} (99%) rename lib/cybersource_rest_client/models/{tmsv2customers_client_reference_information.rb => tmsv2tokenize_token_information_customer_client_reference_information.rb} (98%) rename lib/cybersource_rest_client/models/{tmsv2customers_default_payment_instrument.rb => tmsv2tokenize_token_information_customer_default_payment_instrument.rb} (98%) rename lib/cybersource_rest_client/models/{tmsv2customers_default_shipping_address.rb => tmsv2tokenize_token_information_customer_default_shipping_address.rb} (98%) rename lib/cybersource_rest_client/models/{tmsv2customers_merchant_defined_information.rb => tmsv2tokenize_token_information_customer_merchant_defined_information.rb} (99%) rename lib/cybersource_rest_client/models/{tmsv2customers_metadata.rb => tmsv2tokenize_token_information_customer_metadata.rb} (99%) rename lib/cybersource_rest_client/models/{tmsv2customers_object_information.rb => tmsv2tokenize_token_information_customer_object_information.rb} (98%) rename lib/cybersource_rest_client/models/{rbsv1subscriptions_client_reference_information_partner.rb => tmsv2tokenizedcardstokenized_card_idissuerlifecycleeventsimulations_card.rb} (74%) create mode 100644 lib/cybersource_rest_client/models/tmsv2tokenizedcardstokenized_card_idissuerlifecycleeventsimulations_metadata.rb create mode 100644 lib/cybersource_rest_client/models/tmsv2tokenizedcardstokenized_card_idissuerlifecycleeventsimulations_metadata_card_art.rb create mode 100644 lib/cybersource_rest_client/models/upv1capturecontexts_data_device_information.rb create mode 100644 lib/cybersource_rest_client/models/upv1capturecontexts_data_order_information_amount_details_tax_details.rb create mode 100644 lib/cybersource_rest_client/models/upv1capturecontexts_data_order_information_invoice_details.rb create mode 100644 lib/cybersource_rest_client/models/upv1capturecontexts_data_payment_information.rb create mode 100644 lib/cybersource_rest_client/models/upv1capturecontexts_data_payment_information_card.rb create mode 100644 spec/api/tokenize_api_spec.rb rename spec/models/{tmsv2customers__embedded_default_shipping_address__links_self_spec.rb => get_all_subscriptions_response_client_reference_information_spec.rb} (56%) rename spec/models/{inline_response_200_9_devices_spec.rb => inline_response_200_10_devices_spec.rb} (90%) rename spec/models/{inline_response_200_9_payment_processor_to_terminal_map_spec.rb => inline_response_200_10_payment_processor_to_terminal_map_spec.rb} (69%) rename spec/models/{inline_response_200_10__embedded__links_reports_spec.rb => inline_response_200_11__embedded__links_reports_spec.rb} (71%) rename spec/models/{inline_response_200_10__embedded__links_spec.rb => inline_response_200_11__embedded__links_spec.rb} (72%) rename spec/models/{inline_response_200_10__embedded_batches_spec.rb => inline_response_200_11__embedded_batches_spec.rb} (88%) rename spec/models/{inline_response_200_10__embedded_spec.rb => inline_response_200_11__embedded_spec.rb} (73%) rename spec/models/{inline_response_200_10__embedded_totals_spec.rb => inline_response_200_11__embedded_totals_spec.rb} (83%) rename spec/models/{inline_response_200_11__links_report_spec.rb => inline_response_200_12__links_report_spec.rb} (72%) rename spec/models/{inline_response_200_10__links_spec.rb => inline_response_200_12__links_spec.rb} (71%) rename spec/models/{inline_response_200_11_billing_spec.rb => inline_response_200_12_billing_spec.rb} (81%) rename spec/models/{inline_response_200_12_records_spec.rb => inline_response_200_13_records_spec.rb} (79%) rename spec/models/{inline_response_200_12_response_record_additional_updates_spec.rb => inline_response_200_13_response_record_additional_updates_spec.rb} (82%) rename spec/models/{inline_response_200_12_response_record_spec.rb => inline_response_200_13_response_record_spec.rb} (88%) rename spec/models/{inline_response_200_12_source_record_spec.rb => inline_response_200_13_source_record_spec.rb} (87%) rename spec/models/{inline_response_200_14_client_reference_information_spec.rb => inline_response_200_15_client_reference_information_spec.rb} (82%) create mode 100644 spec/models/inline_response_200_15_spec.rb rename spec/models/{inline_response_200_content_spec.rb => inline_response_200_1_content_spec.rb} (81%) rename spec/models/{inline_response_200_1__embedded_capture__links_self_spec.rb => inline_response_200_2__embedded_capture__links_self_spec.rb} (75%) rename spec/models/{inline_response_200_1__embedded_capture__links_spec.rb => inline_response_200_2__embedded_capture__links_spec.rb} (71%) rename spec/models/{inline_response_200_1__embedded_capture_spec.rb => inline_response_200_2__embedded_capture_spec.rb} (75%) rename spec/models/{inline_response_200_1__embedded_reversal__links_self_spec.rb => inline_response_200_2__embedded_reversal__links_self_spec.rb} (75%) rename spec/models/{inline_response_200_1__embedded_reversal__links_spec.rb => inline_response_200_2__embedded_reversal__links_spec.rb} (71%) rename spec/models/{inline_response_200_1__embedded_reversal_spec.rb => inline_response_200_2__embedded_reversal_spec.rb} (75%) rename spec/models/{inline_response_200_1__embedded_spec.rb => inline_response_200_2__embedded_spec.rb} (77%) rename spec/models/{inline_response_200_3_integration_information_spec.rb => inline_response_200_4_integration_information_spec.rb} (75%) rename spec/models/{inline_response_200_3_integration_information_tenant_configurations_spec.rb => inline_response_200_4_integration_information_tenant_configurations_spec.rb} (82%) rename spec/models/{inline_response_200_7_devices_spec.rb => inline_response_200_8_devices_spec.rb} (88%) create mode 100644 spec/models/inline_response_200_details_spec.rb create mode 100644 spec/models/inline_response_200_errors_spec.rb create mode 100644 spec/models/inline_response_200_responses_spec.rb create mode 100644 spec/models/post_issuer_life_cycle_simulation_request_spec.rb rename spec/models/{tmsv2customers_object_information_spec.rb => post_tokenize_request_spec.rb} (64%) delete mode 100644 spec/models/rbsv1plans_client_reference_information_spec.rb delete mode 100644 spec/models/rbsv1subscriptions_client_reference_information_partner_spec.rb create mode 100644 spec/models/tms_merchant_information_merchant_descriptor_spec.rb rename spec/models/{tmsv2customers__links_self_spec.rb => tms_merchant_information_spec.rb} (64%) delete mode 100644 spec/models/tmsv2customers__embedded_default_payment_instrument_merchant_information_merchant_descriptor_spec.rb delete mode 100644 spec/models/tmsv2customers__embedded_default_payment_instrument_merchant_information_spec.rb delete mode 100644 spec/models/tmsv2customers__embedded_default_shipping_address__links_customer_spec.rb delete mode 100644 spec/models/tmsv2customers__links_shipping_address_spec.rb create mode 100644 spec/models/tmsv2tokenize_processing_information_spec.rb rename spec/models/{tmsv2customers__embedded_default_payment_instrument__embedded_spec.rb => tmsv2tokenize_token_information_customer__embedded_default_payment_instrument__embedded_spec.rb} (53%) create mode 100644 spec/models/tmsv2tokenize_token_information_customer__embedded_default_payment_instrument__links_self_spec.rb rename spec/models/{tmsv2customers__embedded_default_shipping_address__links_spec.rb => tmsv2tokenize_token_information_customer__embedded_default_payment_instrument__links_spec.rb} (59%) rename spec/models/{tmsv2customers__embedded_default_payment_instrument_bank_account_spec.rb => tmsv2tokenize_token_information_customer__embedded_default_payment_instrument_bank_account_spec.rb} (52%) rename spec/models/{tmsv2customers__embedded_default_payment_instrument_bill_to_spec.rb => tmsv2tokenize_token_information_customer__embedded_default_payment_instrument_bill_to_spec.rb} (79%) rename spec/models/{tmsv2customers__embedded_default_payment_instrument_buyer_information_issued_by_spec.rb => tmsv2tokenize_token_information_customer__embedded_default_payment_instrument_buyer_information_issued_by_spec.rb} (50%) rename spec/models/{tmsv2customers__embedded_default_payment_instrument_buyer_information_personal_identification_spec.rb => tmsv2tokenize_token_information_customer__embedded_default_payment_instrument_buyer_information_personal_identification_spec.rb} (56%) rename spec/models/{tmsv2customers__embedded_default_payment_instrument_buyer_information_spec.rb => tmsv2tokenize_token_information_customer__embedded_default_payment_instrument_buyer_information_spec.rb} (64%) rename spec/models/{tmsv2customers__embedded_default_payment_instrument_card_spec.rb => tmsv2tokenize_token_information_customer__embedded_default_payment_instrument_card_spec.rb} (77%) rename spec/models/{tmsv2customers__embedded_default_payment_instrument_card_tokenized_information_spec.rb => tmsv2tokenize_token_information_customer__embedded_default_payment_instrument_card_tokenized_information_spec.rb} (55%) rename spec/models/{tmsv2customers__embedded_default_payment_instrument_instrument_identifier_spec.rb => tmsv2tokenize_token_information_customer__embedded_default_payment_instrument_instrument_identifier_spec.rb} (50%) rename spec/models/{tmsv2customers__embedded_default_shipping_address_metadata_spec.rb => tmsv2tokenize_token_information_customer__embedded_default_payment_instrument_metadata_spec.rb} (53%) rename spec/models/{tmsv2customers__embedded_default_payment_instrument_spec.rb => tmsv2tokenize_token_information_customer__embedded_default_payment_instrument_spec.rb} (84%) create mode 100644 spec/models/tmsv2tokenize_token_information_customer__embedded_default_shipping_address__links_customer_spec.rb create mode 100644 spec/models/tmsv2tokenize_token_information_customer__embedded_default_shipping_address__links_self_spec.rb rename spec/models/{tmsv2customers__embedded_default_payment_instrument__links_spec.rb => tmsv2tokenize_token_information_customer__embedded_default_shipping_address__links_spec.rb} (59%) rename spec/models/{tmsv2customers__embedded_default_payment_instrument_metadata_spec.rb => tmsv2tokenize_token_information_customer__embedded_default_shipping_address_metadata_spec.rb} (53%) rename spec/models/{tmsv2customers__embedded_default_shipping_address_ship_to_spec.rb => tmsv2tokenize_token_information_customer__embedded_default_shipping_address_ship_to_spec.rb} (80%) rename spec/models/{tmsv2customers__embedded_default_shipping_address_spec.rb => tmsv2tokenize_token_information_customer__embedded_default_shipping_address_spec.rb} (70%) rename spec/models/{tmsv2customers__embedded_spec.rb => tmsv2tokenize_token_information_customer__embedded_spec.rb} (67%) create mode 100644 spec/models/tmsv2tokenize_token_information_customer__links_payment_instruments_spec.rb rename spec/models/{tmsv2customers__links_payment_instruments_spec.rb => tmsv2tokenize_token_information_customer__links_self_spec.rb} (60%) rename spec/models/{tmsv2customers__embedded_default_payment_instrument__links_self_spec.rb => tmsv2tokenize_token_information_customer__links_shipping_address_spec.rb} (57%) rename spec/models/{tmsv2customers__links_spec.rb => tmsv2tokenize_token_information_customer__links_spec.rb} (71%) rename spec/models/{tmsv2customers_buyer_information_spec.rb => tmsv2tokenize_token_information_customer_buyer_information_spec.rb} (64%) create mode 100644 spec/models/tmsv2tokenize_token_information_customer_client_reference_information_spec.rb rename spec/models/{tmsv2customers_default_shipping_address_spec.rb => tmsv2tokenize_token_information_customer_default_payment_instrument_spec.rb} (56%) rename spec/models/{tmsv2customers_default_payment_instrument_spec.rb => tmsv2tokenize_token_information_customer_default_shipping_address_spec.rb} (57%) rename spec/models/{tmsv2customers_merchant_defined_information_spec.rb => tmsv2tokenize_token_information_customer_merchant_defined_information_spec.rb} (61%) rename spec/models/{tmsv2customers_metadata_spec.rb => tmsv2tokenize_token_information_customer_metadata_spec.rb} (61%) create mode 100644 spec/models/tmsv2tokenize_token_information_customer_object_information_spec.rb create mode 100644 spec/models/tmsv2tokenize_token_information_customer_spec.rb rename spec/models/{rbsv1subscriptions_client_reference_information_spec.rb => tmsv2tokenize_token_information_spec.rb} (65%) create mode 100644 spec/models/tmsv2tokenizedcardstokenized_card_idissuerlifecycleeventsimulations_card_spec.rb create mode 100644 spec/models/tmsv2tokenizedcardstokenized_card_idissuerlifecycleeventsimulations_metadata_card_art_combined_asset_spec.rb create mode 100644 spec/models/tmsv2tokenizedcardstokenized_card_idissuerlifecycleeventsimulations_metadata_card_art_spec.rb create mode 100644 spec/models/tmsv2tokenizedcardstokenized_card_idissuerlifecycleeventsimulations_metadata_spec.rb rename spec/models/{tmsv2customers_client_reference_information_spec.rb => upv1capturecontexts_data_device_information_spec.rb} (63%) create mode 100644 spec/models/upv1capturecontexts_data_order_information_amount_details_tax_details_spec.rb create mode 100644 spec/models/upv1capturecontexts_data_order_information_invoice_details_spec.rb create mode 100644 spec/models/upv1capturecontexts_data_payment_information_card_spec.rb create mode 100644 spec/models/upv1capturecontexts_data_payment_information_spec.rb diff --git a/docs/BankAccountValidationApi.md b/docs/BankAccountValidationApi.md index dd92397b..6af85eec 100644 --- a/docs/BankAccountValidationApi.md +++ b/docs/BankAccountValidationApi.md @@ -8,7 +8,7 @@ Method | HTTP request | Description # **bank_account_validation_request** -> InlineResponse20013 bank_account_validation_request(account_validations_request) +> InlineResponse20014 bank_account_validation_request(account_validations_request) Visa Bank Account Validation Service @@ -41,7 +41,7 @@ Name | Type | Description | Notes ### Return type -[**InlineResponse20013**](InlineResponse20013.md) +[**InlineResponse20014**](InlineResponse20014.md) ### Authorization diff --git a/docs/BatchesApi.md b/docs/BatchesApi.md index ed08e3ad..64da17c5 100644 --- a/docs/BatchesApi.md +++ b/docs/BatchesApi.md @@ -11,7 +11,7 @@ Method | HTTP request | Description # **get_batch_report** -> InlineResponse20012 get_batch_report(batch_id) +> InlineResponse20013 get_batch_report(batch_id) Retrieve a Batch Report @@ -44,7 +44,7 @@ Name | Type | Description | Notes ### Return type -[**InlineResponse20012**](InlineResponse20012.md) +[**InlineResponse20013**](InlineResponse20013.md) ### Authorization @@ -58,7 +58,7 @@ No authorization required # **get_batch_status** -> InlineResponse20011 get_batch_status(batch_id) +> InlineResponse20012 get_batch_status(batch_id) Retrieve a Batch Status @@ -91,7 +91,7 @@ Name | Type | Description | Notes ### Return type -[**InlineResponse20011**](InlineResponse20011.md) +[**InlineResponse20012**](InlineResponse20012.md) ### Authorization @@ -105,7 +105,7 @@ No authorization required # **get_batches_list** -> InlineResponse20010 get_batches_list(opts) +> InlineResponse20011 get_batches_list(opts) List Batches @@ -145,7 +145,7 @@ Name | Type | Description | Notes ### Return type -[**InlineResponse20010**](InlineResponse20010.md) +[**InlineResponse20011**](InlineResponse20011.md) ### Authorization diff --git a/docs/CreateNewWebhooksApi.md b/docs/CreateNewWebhooksApi.md index 2f8053da..a2484ff1 100644 --- a/docs/CreateNewWebhooksApi.md +++ b/docs/CreateNewWebhooksApi.md @@ -10,7 +10,7 @@ Method | HTTP request | Description # **find_products_to_subscribe** -> Array<InlineResponse2004> find_products_to_subscribe(organization_id) +> Array<InlineResponse2005> find_products_to_subscribe(organization_id) Find Products You Can Subscribe To @@ -43,7 +43,7 @@ Name | Type | Description | Notes ### Return type -[**Array<InlineResponse2004>**](InlineResponse2004.md) +[**Array<InlineResponse2005>**](InlineResponse2005.md) ### Authorization diff --git a/docs/CreatePlanRequest.md b/docs/CreatePlanRequest.md index 22525a7f..75f9ac45 100644 --- a/docs/CreatePlanRequest.md +++ b/docs/CreatePlanRequest.md @@ -3,7 +3,6 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**client_reference_information** | [**Rbsv1plansClientReferenceInformation**](Rbsv1plansClientReferenceInformation.md) | | [optional] **plan_information** | [**Rbsv1plansPlanInformation**](Rbsv1plansPlanInformation.md) | | [optional] **order_information** | [**Rbsv1plansOrderInformation**](Rbsv1plansOrderInformation.md) | | [optional] diff --git a/docs/CreateSubscriptionRequest.md b/docs/CreateSubscriptionRequest.md index 61887423..b63c2956 100644 --- a/docs/CreateSubscriptionRequest.md +++ b/docs/CreateSubscriptionRequest.md @@ -3,7 +3,7 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**client_reference_information** | [**Rbsv1subscriptionsClientReferenceInformation**](Rbsv1subscriptionsClientReferenceInformation.md) | | [optional] +**client_reference_information** | [**GetAllSubscriptionsResponseClientReferenceInformation**](GetAllSubscriptionsResponseClientReferenceInformation.md) | | [optional] **processing_information** | [**Rbsv1subscriptionsProcessingInformation**](Rbsv1subscriptionsProcessingInformation.md) | | [optional] **plan_information** | [**Rbsv1subscriptionsPlanInformation**](Rbsv1subscriptionsPlanInformation.md) | | [optional] **subscription_information** | [**Rbsv1subscriptionsSubscriptionInformation**](Rbsv1subscriptionsSubscriptionInformation.md) | | [optional] diff --git a/docs/CreateSubscriptionRequest1.md b/docs/CreateSubscriptionRequest1.md index 15d0f155..9bb269dd 100644 --- a/docs/CreateSubscriptionRequest1.md +++ b/docs/CreateSubscriptionRequest1.md @@ -3,7 +3,7 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**client_reference_information** | [**Rbsv1subscriptionsClientReferenceInformation**](Rbsv1subscriptionsClientReferenceInformation.md) | | [optional] +**client_reference_information** | [**GetAllSubscriptionsResponseClientReferenceInformation**](GetAllSubscriptionsResponseClientReferenceInformation.md) | | [optional] **processing_information** | [**Rbsv1subscriptionsProcessingInformation**](Rbsv1subscriptionsProcessingInformation.md) | | [optional] **plan_information** | [**Rbsv1subscriptionsPlanInformation**](Rbsv1subscriptionsPlanInformation.md) | | [optional] **subscription_information** | [**Rbsv1subscriptionsSubscriptionInformation**](Rbsv1subscriptionsSubscriptionInformation.md) | | [optional] diff --git a/docs/CreateSubscriptionResponse.md b/docs/CreateSubscriptionResponse.md index 0fc0cc14..410705f1 100644 --- a/docs/CreateSubscriptionResponse.md +++ b/docs/CreateSubscriptionResponse.md @@ -8,5 +8,6 @@ Name | Type | Description | Notes **submit_time_utc** | **String** | Time of request in UTC. Format: `YYYY-MM-DDThh:mm:ssZ` **Example** `2016-08-11T22:47:57Z` equals August 11, 2016, at 22:47:57 (10:47:57 p.m.). The `T` separates the date and the time. The `Z` indicates UTC. Returned by Cybersource for all services. | [optional] **status** | **String** | The status of the submitted transaction. Possible values: - COMPLETED - PENDING_REVIEW - DECLINED - INVALID_REQUEST | [optional] **subscription_information** | [**CreateSubscriptionResponseSubscriptionInformation**](CreateSubscriptionResponseSubscriptionInformation.md) | | [optional] +**client_reference_information** | [**GetAllSubscriptionsResponseClientReferenceInformation**](GetAllSubscriptionsResponseClientReferenceInformation.md) | | [optional] diff --git a/docs/DecisionManagerApi.md b/docs/DecisionManagerApi.md index a6dbe9ff..84a59c6f 100644 --- a/docs/DecisionManagerApi.md +++ b/docs/DecisionManagerApi.md @@ -12,7 +12,7 @@ Method | HTTP request | Description # **action_decision_manager_case** -> InlineResponse2001 action_decision_manager_case(id, case_management_actions_request) +> InlineResponse2002 action_decision_manager_case(id, case_management_actions_request) Take action on a DM post-transactional case @@ -48,7 +48,7 @@ Name | Type | Description | Notes ### Return type -[**InlineResponse2001**](InlineResponse2001.md) +[**InlineResponse2002**](InlineResponse2002.md) ### Authorization diff --git a/docs/DeviceDeAssociationApi.md b/docs/DeviceDeAssociationApi.md index bc2020fa..641b0500 100644 --- a/docs/DeviceDeAssociationApi.md +++ b/docs/DeviceDeAssociationApi.md @@ -55,7 +55,7 @@ No authorization required # **post_de_associate_v3_terminal** -> Array<InlineResponse2008> post_de_associate_v3_terminal(device_de_associate_v3_request) +> Array<InlineResponse2009> post_de_associate_v3_terminal(device_de_associate_v3_request) De-associate a device from merchant to account or reseller and from account to reseller @@ -88,7 +88,7 @@ Name | Type | Description | Notes ### Return type -[**Array<InlineResponse2008>**](InlineResponse2008.md) +[**Array<InlineResponse2009>**](InlineResponse2009.md) ### Authorization diff --git a/docs/DeviceSearchApi.md b/docs/DeviceSearchApi.md index fd123bdd..e849e508 100644 --- a/docs/DeviceSearchApi.md +++ b/docs/DeviceSearchApi.md @@ -9,7 +9,7 @@ Method | HTTP request | Description # **post_search_query** -> InlineResponse2007 post_search_query(post_device_search_request) +> InlineResponse2008 post_search_query(post_device_search_request) Retrieve List of Devices for a given search query V2 @@ -42,7 +42,7 @@ Name | Type | Description | Notes ### Return type -[**InlineResponse2007**](InlineResponse2007.md) +[**InlineResponse2008**](InlineResponse2008.md) ### Authorization @@ -56,7 +56,7 @@ No authorization required # **post_search_query_v3** -> InlineResponse2009 post_search_query_v3(post_device_search_request_v3) +> InlineResponse20010 post_search_query_v3(post_device_search_request_v3) Retrieve List of Devices for a given search query @@ -89,7 +89,7 @@ Name | Type | Description | Notes ### Return type -[**InlineResponse2009**](InlineResponse2009.md) +[**InlineResponse20010**](InlineResponse20010.md) ### Authorization diff --git a/docs/GenerateUnifiedCheckoutCaptureContextRequest.md b/docs/GenerateUnifiedCheckoutCaptureContextRequest.md index 0bbe849e..15f6a400 100644 --- a/docs/GenerateUnifiedCheckoutCaptureContextRequest.md +++ b/docs/GenerateUnifiedCheckoutCaptureContextRequest.md @@ -6,9 +6,10 @@ Name | Type | Description | Notes **client_version** | **String** | Specify the version of Unified Checkout that you want to use. | [optional] **target_origins** | **Array<String>** | The [target origin](https://developer.mozilla.org/en-US/docs/Glossary/Origin) of the website on which you will be launching Unified Checkout is defined by the scheme (protocol), hostname (domain) and port number (if used). You must use https://hostname (unless you use http://localhost) Wildcards are NOT supported. Ensure that subdomains are included. Any valid top-level domain is supported (e.g. .com, .co.uk, .gov.br etc) Examples: - https://example.com - https://subdomain.example.com - https://example.com:8080<br><br> If you are embedding within multiple nested iframes you need to specify the origins of all the browser contexts used, for example: targetOrigins: [ \"https://example.com\", \"https://basket.example.com\", \"https://ecom.example.com\" ] | [optional] **allowed_card_networks** | **Array<String>** | The list of card networks you want to use for this Unified Checkout transaction. Unified Checkout currently supports the following card networks: - VISA - MASTERCARD - AMEX - CARNET - CARTESBANCAIRES - CUP - DINERSCLUB - DISCOVER - EFTPOS - ELO - JAYWAN - JCB - JCREW - KCP - MADA - MAESTRO - MEEZA - PAYPAK - UATP | [optional] -**allowed_payment_types** | **Array<String>** | The payment types that are allowed for the merchant. Possible values when launching Unified Checkout: - APPLEPAY - CHECK - CLICKTOPAY - GOOGLEPAY - PANENTRY - PAZE <br><br> Unified Checkout supports the following Buy Now, Pay Later (BNPL) payment methods: - AFTERPAY<br><br> Unified Checkout supports the following Online Bank Transfer payment methods: - Bancontact (BE) - DragonPay (PH) - iDEAL (NL) - Multibanco (PT) - MyBank (IT, BE, PT, ES) - Przelewy24|P24 (PL) - Tink Pay By Bank (GB) Possible values when launching Click To Pay Drop-In UI: - CLICKTOPAY <br><br> **Important:** - CLICKTOPAY only available for Visa, Mastercard and AMEX for saved cards. - Visa and Mastercard will look to tokenize using network tokenization for all Click to Pay requests. Click to Pay uses Click to Pay token requester IDs and not the merchant's existing token requester. - Apple Pay, Google Pay, Check, and Paze can be used independently without requiring PAN entry in the allowedPaymentTypes field.<br><br> **Managing Google Pay Authentication Types** When you enable Google Pay on Unified Checkout you can specify optional parameters that define the types of card authentication you receive from Google Pay.<br><br> **Managing Google Pay Authentication Types** Where Click to Pay is the payment type selected by the customer and the customer manually enters their card, the option to enroll their card in Click to Pay will be auto-checked if this field is set to \"true\". This is only available where the merchant and cardholder are based in the following countries and the billing type is set to \"FULL\" or \"PARTIAL\". - UAE - Argentina - Brazil - Chile - Colombia - Kuwait - Mexico - Peru - Qatar - Saudi Arabia - Ukraine - South Africa<br><br> If false, this is not present or not supported in the market. Enrollment in Click to Pay is not checked for the customer when completing manual card entry. | [optional] +**allowed_payment_types** | **Array<String>** | The payment types that are allowed for the merchant. Possible values when launching Unified Checkout: - APPLEPAY - CHECK - CLICKTOPAY - GOOGLEPAY - PANENTRY - PAZE <br><br> Unified Checkout supports the following Buy Now, Pay Later (BNPL) payment methods: - AFTERPAY<br><br> Unified Checkout supports the following Online Bank Transfer payment methods: - Bancontact (BE) - DragonPay (PH) - iDEAL (NL) - Multibanco (PT) - MyBank (IT, BE, PT, ES) - Przelewy24|P24 (PL) - Tink Pay By Bank (GB)<br><br> Unified Checkout supports the following Post-Pay Reference payment methods: - Konbini (JP)<br><br> Possible values when launching Click To Pay Drop-In UI: - CLICKTOPAY <br><br> **Important:** - CLICKTOPAY only available for Visa, Mastercard and AMEX for saved cards. - Visa and Mastercard will look to tokenize using network tokenization for all Click to Pay requests. Click to Pay uses Click to Pay token requester IDs and not the merchant's existing token requester. - Apple Pay, Google Pay, Check, and Paze can be used independently without requiring PAN entry in the allowedPaymentTypes field.<br><br> **Managing Google Pay Authentication Types** When you enable Google Pay on Unified Checkout you can specify optional parameters that define the types of card authentication you receive from Google Pay.<br><br> **Managing Google Pay Authentication Types** Where Click to Pay is the payment type selected by the customer and the customer manually enters their card, the option to enroll their card in Click to Pay will be auto-checked if this field is set to \"true\". This is only available where the merchant and cardholder are based in the following countries and the billing type is set to \"FULL\" or \"PARTIAL\". - UAE - Argentina - Brazil - Chile - Colombia - Kuwait - Mexico - Peru - Qatar - Saudi Arabia - Ukraine - South Africa<br><br> If false, this is not present or not supported in the market. Enrollment in Click to Pay is not checked for the customer when completing manual card entry. | [optional] **country** | **String** | Country the purchase is originating from (e.g. country of the merchant). Use the two-character ISO Standard | [optional] **locale** | **String** | Localization of the User experience conforming to the ISO 639-1 language standards and two-character ISO Standard Country Code. Please refer to list of [supported locales through Unified Checkout](https://developer.cybersource.com/docs/cybs/en-us/unified-checkout/developer/all/rest/unified-checkout/uc-appendix-languages.html) | [optional] +**button_type** | **String** | Changes the label on the payment button within Unified Checkout .<br><br> Possible values: - ADD_CARD - CARD_PAYMENT - CHECKOUT - CHECKOUT_AND_CONTINUE - DEBIT_CREDIT - DONATE - PAY - PAY_WITH_CARD - SAVE_CARD - SUBSCRIBE_WITH_CARD<br><br> This is an optional field, | [optional] **capture_mandate** | [**Upv1capturecontextsCaptureMandate**](Upv1capturecontextsCaptureMandate.md) | | [optional] **complete_mandate** | [**Upv1capturecontextsCompleteMandate**](Upv1capturecontextsCompleteMandate.md) | | [optional] **transient_token_response_options** | [**Microformv2sessionsTransientTokenResponseOptions**](Microformv2sessionsTransientTokenResponseOptions.md) | | [optional] diff --git a/docs/GetAllSubscriptionsResponseClientReferenceInformation.md b/docs/GetAllSubscriptionsResponseClientReferenceInformation.md new file mode 100644 index 00000000..68765112 --- /dev/null +++ b/docs/GetAllSubscriptionsResponseClientReferenceInformation.md @@ -0,0 +1,8 @@ +# CyberSource::GetAllSubscriptionsResponseClientReferenceInformation + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**code** | **String** | Merchant-generated order reference or tracking number. It is recommended that you send a unique value for each transaction so that you can perform meaningful searches for the transaction. #### Used by **Authorization** Required field. #### PIN Debit Requests for PIN debit reversals need to use the same merchant reference number that was used in the transaction that is being reversed. Required field for all PIN Debit requests (purchase, credit, and reversal). #### FDC Nashville Global Certain circumstances can cause the processor to truncate this value to 15 or 17 characters for Level II and Level III processing, which can cause a discrepancy between the value you submit and the value included in some processor reports. | [optional] + + diff --git a/docs/GetAllSubscriptionsResponseSubscriptions.md b/docs/GetAllSubscriptionsResponseSubscriptions.md index e06bd560..cc373f91 100644 --- a/docs/GetAllSubscriptionsResponseSubscriptions.md +++ b/docs/GetAllSubscriptionsResponseSubscriptions.md @@ -7,6 +7,7 @@ Name | Type | Description | Notes **id** | **String** | An unique identification number generated by Cybersource to identify the submitted request. Returned by all services. It is also appended to the endpoint of the resource. On incremental authorizations, this value with be the same as the identification number returned in the original authorization response. | [optional] **plan_information** | [**GetAllSubscriptionsResponsePlanInformation**](GetAllSubscriptionsResponsePlanInformation.md) | | [optional] **subscription_information** | [**GetAllSubscriptionsResponseSubscriptionInformation**](GetAllSubscriptionsResponseSubscriptionInformation.md) | | [optional] +**client_reference_information** | [**GetAllSubscriptionsResponseClientReferenceInformation**](GetAllSubscriptionsResponseClientReferenceInformation.md) | | [optional] **payment_information** | [**GetAllSubscriptionsResponsePaymentInformation**](GetAllSubscriptionsResponsePaymentInformation.md) | | [optional] **order_information** | [**GetAllSubscriptionsResponseOrderInformation**](GetAllSubscriptionsResponseOrderInformation.md) | | [optional] diff --git a/docs/GetSubscriptionResponse.md b/docs/GetSubscriptionResponse.md index ff7876c6..bfddc01e 100644 --- a/docs/GetSubscriptionResponse.md +++ b/docs/GetSubscriptionResponse.md @@ -10,6 +10,7 @@ Name | Type | Description | Notes **subscription_information** | [**GetAllSubscriptionsResponseSubscriptionInformation**](GetAllSubscriptionsResponseSubscriptionInformation.md) | | [optional] **payment_information** | [**GetAllSubscriptionsResponsePaymentInformation**](GetAllSubscriptionsResponsePaymentInformation.md) | | [optional] **order_information** | [**GetAllSubscriptionsResponseOrderInformation**](GetAllSubscriptionsResponseOrderInformation.md) | | [optional] +**client_reference_information** | [**GetAllSubscriptionsResponseClientReferenceInformation**](GetAllSubscriptionsResponseClientReferenceInformation.md) | | [optional] **reactivation_information** | [**GetSubscriptionResponseReactivationInformation**](GetSubscriptionResponseReactivationInformation.md) | | [optional] diff --git a/docs/GetSubscriptionResponse1PaymentInstrument.md b/docs/GetSubscriptionResponse1PaymentInstrument.md index d6c9bbec..4743b45d 100644 --- a/docs/GetSubscriptionResponse1PaymentInstrument.md +++ b/docs/GetSubscriptionResponse1PaymentInstrument.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes **id** | **String** | The Id of the Payment Instrument Token. | [optional] **bank_account** | [**GetSubscriptionResponse1PaymentInstrumentBankAccount**](GetSubscriptionResponse1PaymentInstrumentBankAccount.md) | | [optional] **card** | [**GetSubscriptionResponse1PaymentInstrumentCard**](GetSubscriptionResponse1PaymentInstrumentCard.md) | | [optional] -**bill_to** | [**Tmsv2customersEmbeddedDefaultPaymentInstrumentBillTo**](Tmsv2customersEmbeddedDefaultPaymentInstrumentBillTo.md) | | [optional] +**bill_to** | [**Tmsv2tokenizeTokenInformationCustomerEmbeddedDefaultPaymentInstrumentBillTo**](Tmsv2tokenizeTokenInformationCustomerEmbeddedDefaultPaymentInstrumentBillTo.md) | | [optional] **buyer_information** | [**GetSubscriptionResponse1PaymentInstrumentBuyerInformation**](GetSubscriptionResponse1PaymentInstrumentBuyerInformation.md) | | [optional] diff --git a/docs/GetSubscriptionResponse1PaymentInstrumentBuyerInformation.md b/docs/GetSubscriptionResponse1PaymentInstrumentBuyerInformation.md index 055b3889..cb3dce4a 100644 --- a/docs/GetSubscriptionResponse1PaymentInstrumentBuyerInformation.md +++ b/docs/GetSubscriptionResponse1PaymentInstrumentBuyerInformation.md @@ -6,6 +6,6 @@ Name | Type | Description | Notes **company_tax_id** | **String** | Company's tax identifier. This is only used for eCheck service. | [optional] **currency** | **String** | Currency used for the order. Use the three-character I[ISO Standard Currency Codes.](http://apps.cybersource.com/library/documentation/sbc/quickref/currencies.pdf) For an authorization reversal (`reversalInformation`) or a capture (`processingOptions.capture` is set to `true`), you must use the same currency that you used in your payment authorization request. #### DCC for First Data Your local currency. For details, see the `currency` field description in [Dynamic Currency Conversion For First Data Using the SCMP API](http://apps.cybersource.com/library/documentation/dev_guides/DCC_FirstData_SCMP/DCC_FirstData_SCMP_API.pdf). | [optional] **date_of_birth** | **Date** | Date of birth of the customer. Format: YYYY-MM-DD | [optional] -**personal_identification** | [**Array<Tmsv2customersEmbeddedDefaultPaymentInstrumentBuyerInformationPersonalIdentification>**](Tmsv2customersEmbeddedDefaultPaymentInstrumentBuyerInformationPersonalIdentification.md) | | [optional] +**personal_identification** | [**Array<Tmsv2tokenizeTokenInformationCustomerEmbeddedDefaultPaymentInstrumentBuyerInformationPersonalIdentification>**](Tmsv2tokenizeTokenInformationCustomerEmbeddedDefaultPaymentInstrumentBuyerInformationPersonalIdentification.md) | | [optional] diff --git a/docs/GetSubscriptionResponse1ShippingAddress.md b/docs/GetSubscriptionResponse1ShippingAddress.md index 34d8f038..415074d4 100644 --- a/docs/GetSubscriptionResponse1ShippingAddress.md +++ b/docs/GetSubscriptionResponse1ShippingAddress.md @@ -4,6 +4,6 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **id** | **String** | The Id of the Shipping Address Token. | [optional] -**ship_to** | [**Tmsv2customersEmbeddedDefaultShippingAddressShipTo**](Tmsv2customersEmbeddedDefaultShippingAddressShipTo.md) | | [optional] +**ship_to** | [**Tmsv2tokenizeTokenInformationCustomerEmbeddedDefaultShippingAddressShipTo**](Tmsv2tokenizeTokenInformationCustomerEmbeddedDefaultShippingAddressShipTo.md) | | [optional] diff --git a/docs/GetSubscriptionResponseReactivationInformation.md b/docs/GetSubscriptionResponseReactivationInformation.md index 11cc06ce..96b2f4df 100644 --- a/docs/GetSubscriptionResponseReactivationInformation.md +++ b/docs/GetSubscriptionResponseReactivationInformation.md @@ -3,7 +3,7 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**skipped_payments_count** | **String** | Number of payments that should have occurred while the subscription was in a suspended status. | [optional] -**skipped_payments_total_amount** | **String** | Total amount that will be charged upon reactivation if `processSkippedPayments` is set to `true`. | [optional] +**missed_payments_count** | **String** | Number of payments that should have occurred while the subscription was in a suspended status. | [optional] +**missed_payments_total_amount** | **String** | Total amount that will be charged upon reactivation if `processMissedPayments` is set to `true`. | [optional] diff --git a/docs/InlineResponse200.md b/docs/InlineResponse200.md index 643240a8..bd189b4f 100644 --- a/docs/InlineResponse200.md +++ b/docs/InlineResponse200.md @@ -3,9 +3,6 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**id** | **String** | Unique identifier for the Card Art Asset. | [optional] -**type** | **String** | The type of Card Art Asset. | [optional] -**provider** | **String** | The provider of the Card Art Asset. | [optional] -**content** | [**Array<InlineResponse200Content>**](InlineResponse200Content.md) | Array of content objects representing the Card Art Asset. | [optional] +**responses** | [**Array<InlineResponse200Responses>**](InlineResponse200Responses.md) | | [optional] diff --git a/docs/InlineResponse2001.md b/docs/InlineResponse2001.md index 955baa66..962ec137 100644 --- a/docs/InlineResponse2001.md +++ b/docs/InlineResponse2001.md @@ -3,9 +3,9 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**id** | **String** | UUID uniquely generated for this comments. | [optional] -**submit_time_utc** | **String** | Time of request in UTC. Format: `YYYY-MM-DDThh:mm:ssZ` **Example** `2016-08-11T22:47:57Z` equals August 11, 2016, at 22:47:57 (10:47:57 p.m.). The `T` separates the date and the time. The `Z` indicates UTC. Returned by Cybersource for all services. | [optional] -**status** | **String** | The status of the submitted transaction. Possible values are: - `ACCEPTED` - `REJECTED` | [optional] -**_embedded** | [**InlineResponse2001Embedded**](InlineResponse2001Embedded.md) | | [optional] +**id** | **String** | Unique identifier for the Card Art Asset. | [optional] +**type** | **String** | The type of Card Art Asset. | [optional] +**provider** | **String** | The provider of the Card Art Asset. | [optional] +**content** | [**Array<InlineResponse2001Content>**](InlineResponse2001Content.md) | Array of content objects representing the Card Art Asset. | [optional] diff --git a/docs/InlineResponse20010.md b/docs/InlineResponse20010.md index 1d1e4af8..6491a584 100644 --- a/docs/InlineResponse20010.md +++ b/docs/InlineResponse20010.md @@ -3,12 +3,11 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**_links** | [**Array<InlineResponse20010Links>**](InlineResponse20010Links.md) | | [optional] -**object** | **String** | | [optional] -**offset** | **Integer** | | [optional] -**limit** | **Integer** | | [optional] -**count** | **Integer** | | [optional] -**total** | **Integer** | | [optional] -**_embedded** | [**InlineResponse20010Embedded**](InlineResponse20010Embedded.md) | | [optional] +**total_count** | **Integer** | Total number of results. | [optional] +**offset** | **Integer** | Controls the starting point within the collection of results, which defaults to 0. The first item in the collection is retrieved by setting a zero offset. For example, if you have a collection of 15 items to be retrieved from a resource and you specify limit=5, you can retrieve the entire set of results in 3 successive requests by varying the offset value like this: `offset=0` `offset=5` `offset=10` **Note:** If an offset larger than the number of results is provided, this will result in no embedded object being returned. | [optional] +**limit** | **Integer** | Controls the maximum number of items that may be returned for a single request. The default is 20, the maximum is 2500. | [optional] +**sort** | **String** | A comma separated list of the following form: `terminalCreationDate:desc or serialNumber or terminalUpdationDate` | [optional] +**count** | **Integer** | Results for this page, this could be below the limit. | [optional] +**devices** | [**Array<InlineResponse20010Devices>**](InlineResponse20010Devices.md) | A collection of devices | [optional] diff --git a/docs/InlineResponse2009Devices.md b/docs/InlineResponse20010Devices.md similarity index 81% rename from docs/InlineResponse2009Devices.md rename to docs/InlineResponse20010Devices.md index 85afc493..a2930f22 100644 --- a/docs/InlineResponse2009Devices.md +++ b/docs/InlineResponse20010Devices.md @@ -1,4 +1,4 @@ -# CyberSource::InlineResponse2009Devices +# CyberSource::InlineResponse20010Devices ## Properties Name | Type | Description | Notes @@ -14,6 +14,6 @@ Name | Type | Description | Notes **account_id** | **String** | ID of the account to whom the device assigned. | [optional] **terminal_creation_date** | **DateTime** | Timestamp in which the device was created. | [optional] **terminal_updation_date** | **DateTime** | Timestamp in which the device was updated/modified. | [optional] -**payment_processor_to_terminal_map** | [**InlineResponse2009PaymentProcessorToTerminalMap**](InlineResponse2009PaymentProcessorToTerminalMap.md) | | [optional] +**payment_processor_to_terminal_map** | [**InlineResponse20010PaymentProcessorToTerminalMap**](InlineResponse20010PaymentProcessorToTerminalMap.md) | | [optional] diff --git a/docs/InlineResponse20010Embedded.md b/docs/InlineResponse20010Embedded.md deleted file mode 100644 index 5ae20158..00000000 --- a/docs/InlineResponse20010Embedded.md +++ /dev/null @@ -1,8 +0,0 @@ -# CyberSource::InlineResponse20010Embedded - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**batches** | [**Array<InlineResponse20010EmbeddedBatches>**](InlineResponse20010EmbeddedBatches.md) | | [optional] - - diff --git a/docs/InlineResponse20010EmbeddedLinks.md b/docs/InlineResponse20010EmbeddedLinks.md deleted file mode 100644 index 69a28356..00000000 --- a/docs/InlineResponse20010EmbeddedLinks.md +++ /dev/null @@ -1,8 +0,0 @@ -# CyberSource::InlineResponse20010EmbeddedLinks - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**reports** | [**Array<InlineResponse20010EmbeddedLinksReports>**](InlineResponse20010EmbeddedLinksReports.md) | | [optional] - - diff --git a/docs/InlineResponse20010Links.md b/docs/InlineResponse20010Links.md deleted file mode 100644 index af40d870..00000000 --- a/docs/InlineResponse20010Links.md +++ /dev/null @@ -1,9 +0,0 @@ -# CyberSource::InlineResponse20010Links - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**rel** | **String** | Valid Values: * self * first * last * prev * next | [optional] -**href** | **String** | | [optional] - - diff --git a/docs/InlineResponse2009PaymentProcessorToTerminalMap.md b/docs/InlineResponse20010PaymentProcessorToTerminalMap.md similarity index 75% rename from docs/InlineResponse2009PaymentProcessorToTerminalMap.md rename to docs/InlineResponse20010PaymentProcessorToTerminalMap.md index 2a1755e9..50797933 100644 --- a/docs/InlineResponse2009PaymentProcessorToTerminalMap.md +++ b/docs/InlineResponse20010PaymentProcessorToTerminalMap.md @@ -1,4 +1,4 @@ -# CyberSource::InlineResponse2009PaymentProcessorToTerminalMap +# CyberSource::InlineResponse20010PaymentProcessorToTerminalMap ## Properties Name | Type | Description | Notes diff --git a/docs/InlineResponse20011.md b/docs/InlineResponse20011.md index 3f52286e..7f6f8b96 100644 --- a/docs/InlineResponse20011.md +++ b/docs/InlineResponse20011.md @@ -3,15 +3,12 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**_links** | [**InlineResponse20011Links**](InlineResponse20011Links.md) | | [optional] -**batch_id** | **String** | Unique identification number assigned to the submitted request. | [optional] -**batch_created_date** | **String** | ISO-8601 format: yyyy-MM-ddTHH:mm:ssZ | [optional] -**batch_source** | **String** | Valid Values: * SCHEDULER * TOKEN_API * CREDIT_CARD_FILE_UPLOAD * AMEX_REGSITRY * AMEX_REGISTRY_API * AMEX_MAINTENANCE | [optional] -**merchant_reference** | **String** | Reference used by merchant to identify batch. | [optional] -**batch_ca_endpoints** | **String** | | [optional] -**status** | **String** | Valid Values: * REJECTED * RECEIVED * VALIDATED * DECLINED * PROCESSING * COMPLETED | [optional] -**totals** | [**InlineResponse20010EmbeddedTotals**](InlineResponse20010EmbeddedTotals.md) | | [optional] -**billing** | [**InlineResponse20011Billing**](InlineResponse20011Billing.md) | | [optional] -**description** | **String** | | [optional] +**_links** | [**Array<InlineResponse20011Links>**](InlineResponse20011Links.md) | | [optional] +**object** | **String** | | [optional] +**offset** | **Integer** | | [optional] +**limit** | **Integer** | | [optional] +**count** | **Integer** | | [optional] +**total** | **Integer** | | [optional] +**_embedded** | [**InlineResponse20011Embedded**](InlineResponse20011Embedded.md) | | [optional] diff --git a/docs/InlineResponse20011Embedded.md b/docs/InlineResponse20011Embedded.md new file mode 100644 index 00000000..61986201 --- /dev/null +++ b/docs/InlineResponse20011Embedded.md @@ -0,0 +1,8 @@ +# CyberSource::InlineResponse20011Embedded + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**batches** | [**Array<InlineResponse20011EmbeddedBatches>**](InlineResponse20011EmbeddedBatches.md) | | [optional] + + diff --git a/docs/InlineResponse20010EmbeddedBatches.md b/docs/InlineResponse20011EmbeddedBatches.md similarity index 79% rename from docs/InlineResponse20010EmbeddedBatches.md rename to docs/InlineResponse20011EmbeddedBatches.md index 997e294d..fd8131bd 100644 --- a/docs/InlineResponse20010EmbeddedBatches.md +++ b/docs/InlineResponse20011EmbeddedBatches.md @@ -1,9 +1,9 @@ -# CyberSource::InlineResponse20010EmbeddedBatches +# CyberSource::InlineResponse20011EmbeddedBatches ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**_links** | [**InlineResponse20010EmbeddedLinks**](InlineResponse20010EmbeddedLinks.md) | | [optional] +**_links** | [**InlineResponse20011EmbeddedLinks**](InlineResponse20011EmbeddedLinks.md) | | [optional] **batch_id** | **String** | Unique identification number assigned to the submitted request. | [optional] **batch_created_date** | **String** | ISO-8601 format: yyyy-MM-ddTHH:mm:ssZ | [optional] **batch_modified_date** | **String** | ISO-8601 format: yyyy-MM-ddTHH:mm:ssZ | [optional] @@ -12,6 +12,6 @@ Name | Type | Description | Notes **merchant_reference** | **String** | Reference used by merchant to identify batch. | [optional] **batch_ca_endpoints** | **Array<String>** | Valid Values: * VISA * MASTERCARD * AMEX | [optional] **status** | **String** | Valid Values: * REJECTED * RECEIVED * VALIDATED * DECLINED * PROCESSING * COMPLETE | [optional] -**totals** | [**InlineResponse20010EmbeddedTotals**](InlineResponse20010EmbeddedTotals.md) | | [optional] +**totals** | [**InlineResponse20011EmbeddedTotals**](InlineResponse20011EmbeddedTotals.md) | | [optional] diff --git a/docs/InlineResponse20011EmbeddedLinks.md b/docs/InlineResponse20011EmbeddedLinks.md new file mode 100644 index 00000000..769c83e9 --- /dev/null +++ b/docs/InlineResponse20011EmbeddedLinks.md @@ -0,0 +1,8 @@ +# CyberSource::InlineResponse20011EmbeddedLinks + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**reports** | [**Array<InlineResponse20011EmbeddedLinksReports>**](InlineResponse20011EmbeddedLinksReports.md) | | [optional] + + diff --git a/docs/InlineResponse20010EmbeddedLinksReports.md b/docs/InlineResponse20011EmbeddedLinksReports.md similarity index 73% rename from docs/InlineResponse20010EmbeddedLinksReports.md rename to docs/InlineResponse20011EmbeddedLinksReports.md index 76c5a551..f36e232b 100644 --- a/docs/InlineResponse20010EmbeddedLinksReports.md +++ b/docs/InlineResponse20011EmbeddedLinksReports.md @@ -1,4 +1,4 @@ -# CyberSource::InlineResponse20010EmbeddedLinksReports +# CyberSource::InlineResponse20011EmbeddedLinksReports ## Properties Name | Type | Description | Notes diff --git a/docs/InlineResponse20010EmbeddedTotals.md b/docs/InlineResponse20011EmbeddedTotals.md similarity index 88% rename from docs/InlineResponse20010EmbeddedTotals.md rename to docs/InlineResponse20011EmbeddedTotals.md index 8e1281e1..834aa726 100644 --- a/docs/InlineResponse20010EmbeddedTotals.md +++ b/docs/InlineResponse20011EmbeddedTotals.md @@ -1,4 +1,4 @@ -# CyberSource::InlineResponse20010EmbeddedTotals +# CyberSource::InlineResponse20011EmbeddedTotals ## Properties Name | Type | Description | Notes diff --git a/docs/InlineResponse20011Links.md b/docs/InlineResponse20011Links.md index c5b9d84a..743755d5 100644 --- a/docs/InlineResponse20011Links.md +++ b/docs/InlineResponse20011Links.md @@ -3,7 +3,7 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**_self** | [**InlineResponse202LinksStatus**](InlineResponse202LinksStatus.md) | | [optional] -**report** | [**Array<InlineResponse20011LinksReport>**](InlineResponse20011LinksReport.md) | | [optional] +**rel** | **String** | Valid Values: * self * first * last * prev * next | [optional] +**href** | **String** | | [optional] diff --git a/docs/InlineResponse20012.md b/docs/InlineResponse20012.md index 19eb8954..2b987aeb 100644 --- a/docs/InlineResponse20012.md +++ b/docs/InlineResponse20012.md @@ -3,15 +3,15 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**version** | **String** | | [optional] -**report_created_date** | **String** | ISO-8601 format: yyyy-MM-ddTHH:mm:ssZ | [optional] +**_links** | [**InlineResponse20012Links**](InlineResponse20012Links.md) | | [optional] **batch_id** | **String** | Unique identification number assigned to the submitted request. | [optional] -**batch_source** | **String** | Valid Values: * SCHEDULER * TOKEN_API * CREDIT_CARD_FILE_UPLOAD * AMEX_REGSITRY * AMEX_REGISTRY_API * AMEX_MAINTENANCE | [optional] -**batch_ca_endpoints** | **String** | | [optional] **batch_created_date** | **String** | ISO-8601 format: yyyy-MM-ddTHH:mm:ssZ | [optional] +**batch_source** | **String** | Valid Values: * SCHEDULER * TOKEN_API * CREDIT_CARD_FILE_UPLOAD * AMEX_REGSITRY * AMEX_REGISTRY_API * AMEX_MAINTENANCE | [optional] **merchant_reference** | **String** | Reference used by merchant to identify batch. | [optional] -**totals** | [**InlineResponse20010EmbeddedTotals**](InlineResponse20010EmbeddedTotals.md) | | [optional] -**billing** | [**InlineResponse20011Billing**](InlineResponse20011Billing.md) | | [optional] -**records** | [**Array<InlineResponse20012Records>**](InlineResponse20012Records.md) | | [optional] +**batch_ca_endpoints** | **String** | | [optional] +**status** | **String** | Valid Values: * REJECTED * RECEIVED * VALIDATED * DECLINED * PROCESSING * COMPLETED | [optional] +**totals** | [**InlineResponse20011EmbeddedTotals**](InlineResponse20011EmbeddedTotals.md) | | [optional] +**billing** | [**InlineResponse20012Billing**](InlineResponse20012Billing.md) | | [optional] +**description** | **String** | | [optional] diff --git a/docs/InlineResponse20011Billing.md b/docs/InlineResponse20012Billing.md similarity index 86% rename from docs/InlineResponse20011Billing.md rename to docs/InlineResponse20012Billing.md index 09664cac..dc7c8f04 100644 --- a/docs/InlineResponse20011Billing.md +++ b/docs/InlineResponse20012Billing.md @@ -1,4 +1,4 @@ -# CyberSource::InlineResponse20011Billing +# CyberSource::InlineResponse20012Billing ## Properties Name | Type | Description | Notes diff --git a/docs/InlineResponse20012Links.md b/docs/InlineResponse20012Links.md new file mode 100644 index 00000000..ea43a4ca --- /dev/null +++ b/docs/InlineResponse20012Links.md @@ -0,0 +1,9 @@ +# CyberSource::InlineResponse20012Links + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**_self** | [**InlineResponse202LinksStatus**](InlineResponse202LinksStatus.md) | | [optional] +**report** | [**Array<InlineResponse20012LinksReport>**](InlineResponse20012LinksReport.md) | | [optional] + + diff --git a/docs/InlineResponse20011LinksReport.md b/docs/InlineResponse20012LinksReport.md similarity index 76% rename from docs/InlineResponse20011LinksReport.md rename to docs/InlineResponse20012LinksReport.md index 3df4b1f3..03c5152d 100644 --- a/docs/InlineResponse20011LinksReport.md +++ b/docs/InlineResponse20012LinksReport.md @@ -1,4 +1,4 @@ -# CyberSource::InlineResponse20011LinksReport +# CyberSource::InlineResponse20012LinksReport ## Properties Name | Type | Description | Notes diff --git a/docs/InlineResponse20012Records.md b/docs/InlineResponse20012Records.md deleted file mode 100644 index 741b8acf..00000000 --- a/docs/InlineResponse20012Records.md +++ /dev/null @@ -1,10 +0,0 @@ -# CyberSource::InlineResponse20012Records - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**id** | **String** | | [optional] -**source_record** | [**InlineResponse20012SourceRecord**](InlineResponse20012SourceRecord.md) | | [optional] -**response_record** | [**InlineResponse20012ResponseRecord**](InlineResponse20012ResponseRecord.md) | | [optional] - - diff --git a/docs/InlineResponse20013.md b/docs/InlineResponse20013.md index cd50a192..62e9a1d6 100644 --- a/docs/InlineResponse20013.md +++ b/docs/InlineResponse20013.md @@ -3,9 +3,15 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**client_reference_information** | [**Bavsv1accountvalidationsClientReferenceInformation**](Bavsv1accountvalidationsClientReferenceInformation.md) | | [optional] -**request_id** | **String** | Request Id sent as part of the request. | [optional] -**submit_time_utc** | **String** | Time of request in UTC. Format: `YYYY-MM-DDThhmmssZ`, where: - `T`: Separates the date and the time - `Z`: Indicates Coordinated Universal Time (UTC), also known as Greenwich Mean Time (GMT) Example: `2020-01-11T224757Z` equals January 11, 2020, at 22:47:57 (10:47:57 p.m.) | [optional] -**bank_account_validation** | [**TssV2TransactionsGet200ResponseBankAccountValidation**](TssV2TransactionsGet200ResponseBankAccountValidation.md) | | [optional] +**version** | **String** | | [optional] +**report_created_date** | **String** | ISO-8601 format: yyyy-MM-ddTHH:mm:ssZ | [optional] +**batch_id** | **String** | Unique identification number assigned to the submitted request. | [optional] +**batch_source** | **String** | Valid Values: * SCHEDULER * TOKEN_API * CREDIT_CARD_FILE_UPLOAD * AMEX_REGSITRY * AMEX_REGISTRY_API * AMEX_MAINTENANCE | [optional] +**batch_ca_endpoints** | **String** | | [optional] +**batch_created_date** | **String** | ISO-8601 format: yyyy-MM-ddTHH:mm:ssZ | [optional] +**merchant_reference** | **String** | Reference used by merchant to identify batch. | [optional] +**totals** | [**InlineResponse20011EmbeddedTotals**](InlineResponse20011EmbeddedTotals.md) | | [optional] +**billing** | [**InlineResponse20012Billing**](InlineResponse20012Billing.md) | | [optional] +**records** | [**Array<InlineResponse20013Records>**](InlineResponse20013Records.md) | | [optional] diff --git a/docs/InlineResponse20013Records.md b/docs/InlineResponse20013Records.md new file mode 100644 index 00000000..1179a9e4 --- /dev/null +++ b/docs/InlineResponse20013Records.md @@ -0,0 +1,10 @@ +# CyberSource::InlineResponse20013Records + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**id** | **String** | | [optional] +**source_record** | [**InlineResponse20013SourceRecord**](InlineResponse20013SourceRecord.md) | | [optional] +**response_record** | [**InlineResponse20013ResponseRecord**](InlineResponse20013ResponseRecord.md) | | [optional] + + diff --git a/docs/InlineResponse20012ResponseRecord.md b/docs/InlineResponse20013ResponseRecord.md similarity index 80% rename from docs/InlineResponse20012ResponseRecord.md rename to docs/InlineResponse20013ResponseRecord.md index 9d9ad537..568147dd 100644 --- a/docs/InlineResponse20012ResponseRecord.md +++ b/docs/InlineResponse20013ResponseRecord.md @@ -1,4 +1,4 @@ -# CyberSource::InlineResponse20012ResponseRecord +# CyberSource::InlineResponse20013ResponseRecord ## Properties Name | Type | Description | Notes @@ -12,6 +12,6 @@ Name | Type | Description | Notes **card_expiry_month** | **String** | | [optional] **card_expiry_year** | **String** | | [optional] **card_type** | **String** | | [optional] -**additional_updates** | [**Array<InlineResponse20012ResponseRecordAdditionalUpdates>**](InlineResponse20012ResponseRecordAdditionalUpdates.md) | | [optional] +**additional_updates** | [**Array<InlineResponse20013ResponseRecordAdditionalUpdates>**](InlineResponse20013ResponseRecordAdditionalUpdates.md) | | [optional] diff --git a/docs/InlineResponse20012ResponseRecordAdditionalUpdates.md b/docs/InlineResponse20013ResponseRecordAdditionalUpdates.md similarity index 85% rename from docs/InlineResponse20012ResponseRecordAdditionalUpdates.md rename to docs/InlineResponse20013ResponseRecordAdditionalUpdates.md index 2b24afa7..a43c4204 100644 --- a/docs/InlineResponse20012ResponseRecordAdditionalUpdates.md +++ b/docs/InlineResponse20013ResponseRecordAdditionalUpdates.md @@ -1,4 +1,4 @@ -# CyberSource::InlineResponse20012ResponseRecordAdditionalUpdates +# CyberSource::InlineResponse20013ResponseRecordAdditionalUpdates ## Properties Name | Type | Description | Notes diff --git a/docs/InlineResponse20012SourceRecord.md b/docs/InlineResponse20013SourceRecord.md similarity index 91% rename from docs/InlineResponse20012SourceRecord.md rename to docs/InlineResponse20013SourceRecord.md index a1feddeb..56cd5be8 100644 --- a/docs/InlineResponse20012SourceRecord.md +++ b/docs/InlineResponse20013SourceRecord.md @@ -1,4 +1,4 @@ -# CyberSource::InlineResponse20012SourceRecord +# CyberSource::InlineResponse20013SourceRecord ## Properties Name | Type | Description | Notes diff --git a/docs/InlineResponse20014.md b/docs/InlineResponse20014.md index 0e43be1e..c3e05bcd 100644 --- a/docs/InlineResponse20014.md +++ b/docs/InlineResponse20014.md @@ -3,11 +3,9 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**client_reference_information** | [**InlineResponse20014ClientReferenceInformation**](InlineResponse20014ClientReferenceInformation.md) | | [optional] -**id** | **String** | Request ID generated by Cybersource. This was sent in the header on the request. Echo value from x-requestid | -**submit_time_utc** | **String** | Time of request in UTC. Format: `YYYY-MM-DDThh:mm:ssZ` **Example** `2023-05-17T22:47:57Z` equals May 17, 2023, at 22:47:57 (10:47:57 PM). The `T` separates the date and the time. The `Z` indicates UTC. | -**status** | **String** | Message describing the status of the currency conversion request. Values: - `PENDING` - `DECLINED` - `INVALID_REQUEST` - `SERVER_ERROR` - `OFFER_DECLINED` - `AUTHORIZED` - `AUTHORIZATION_DECLINED` - `AUTHORIZATION_FAILURE` - `REVERSED` - `CAPTURED` - `REFUNDED` - `CANCELLED` | -**error_information** | [**InlineResponse2018ErrorInformation**](InlineResponse2018ErrorInformation.md) | | [optional] -**order_information** | [**InlineResponse2018OrderInformation**](InlineResponse2018OrderInformation.md) | | [optional] +**client_reference_information** | [**Bavsv1accountvalidationsClientReferenceInformation**](Bavsv1accountvalidationsClientReferenceInformation.md) | | [optional] +**request_id** | **String** | Request Id sent as part of the request. | [optional] +**submit_time_utc** | **String** | Time of request in UTC. Format: `YYYY-MM-DDThhmmssZ`, where: - `T`: Separates the date and the time - `Z`: Indicates Coordinated Universal Time (UTC), also known as Greenwich Mean Time (GMT) Example: `2020-01-11T224757Z` equals January 11, 2020, at 22:47:57 (10:47:57 p.m.) | [optional] +**bank_account_validation** | [**TssV2TransactionsGet200ResponseBankAccountValidation**](TssV2TransactionsGet200ResponseBankAccountValidation.md) | | [optional] diff --git a/docs/InlineResponse20015.md b/docs/InlineResponse20015.md new file mode 100644 index 00000000..d651a2a5 --- /dev/null +++ b/docs/InlineResponse20015.md @@ -0,0 +1,13 @@ +# CyberSource::InlineResponse20015 + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**client_reference_information** | [**InlineResponse20015ClientReferenceInformation**](InlineResponse20015ClientReferenceInformation.md) | | [optional] +**id** | **String** | Request ID generated by Cybersource. This was sent in the header on the request. Echo value from x-requestid | +**submit_time_utc** | **String** | Time of request in UTC. Format: `YYYY-MM-DDThh:mm:ssZ` **Example** `2023-05-17T22:47:57Z` equals May 17, 2023, at 22:47:57 (10:47:57 PM). The `T` separates the date and the time. The `Z` indicates UTC. | +**status** | **String** | Message describing the status of the currency conversion request. Values: - `PENDING` - `DECLINED` - `INVALID_REQUEST` - `SERVER_ERROR` - `OFFER_DECLINED` - `AUTHORIZED` - `AUTHORIZATION_DECLINED` - `AUTHORIZATION_FAILURE` - `REVERSED` - `CAPTURED` - `REFUNDED` - `CANCELLED` | +**error_information** | [**InlineResponse2018ErrorInformation**](InlineResponse2018ErrorInformation.md) | | [optional] +**order_information** | [**InlineResponse2018OrderInformation**](InlineResponse2018OrderInformation.md) | | [optional] + + diff --git a/docs/InlineResponse20014ClientReferenceInformation.md b/docs/InlineResponse20015ClientReferenceInformation.md similarity index 94% rename from docs/InlineResponse20014ClientReferenceInformation.md rename to docs/InlineResponse20015ClientReferenceInformation.md index 82c9da95..2149ac3b 100644 --- a/docs/InlineResponse20014ClientReferenceInformation.md +++ b/docs/InlineResponse20015ClientReferenceInformation.md @@ -1,4 +1,4 @@ -# CyberSource::InlineResponse20014ClientReferenceInformation +# CyberSource::InlineResponse20015ClientReferenceInformation ## Properties Name | Type | Description | Notes diff --git a/docs/InlineResponse200Content.md b/docs/InlineResponse2001Content.md similarity index 90% rename from docs/InlineResponse200Content.md rename to docs/InlineResponse2001Content.md index 99cf1673..6519a467 100644 --- a/docs/InlineResponse200Content.md +++ b/docs/InlineResponse2001Content.md @@ -1,4 +1,4 @@ -# CyberSource::InlineResponse200Content +# CyberSource::InlineResponse2001Content ## Properties Name | Type | Description | Notes diff --git a/docs/InlineResponse2001Embedded.md b/docs/InlineResponse2001Embedded.md deleted file mode 100644 index 06364772..00000000 --- a/docs/InlineResponse2001Embedded.md +++ /dev/null @@ -1,9 +0,0 @@ -# CyberSource::InlineResponse2001Embedded - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**capture** | [**InlineResponse2001EmbeddedCapture**](InlineResponse2001EmbeddedCapture.md) | | [optional] -**reversal** | [**InlineResponse2001EmbeddedReversal**](InlineResponse2001EmbeddedReversal.md) | | [optional] - - diff --git a/docs/InlineResponse2001EmbeddedCaptureLinks.md b/docs/InlineResponse2001EmbeddedCaptureLinks.md deleted file mode 100644 index 61db1624..00000000 --- a/docs/InlineResponse2001EmbeddedCaptureLinks.md +++ /dev/null @@ -1,8 +0,0 @@ -# CyberSource::InlineResponse2001EmbeddedCaptureLinks - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**_self** | [**InlineResponse2001EmbeddedCaptureLinksSelf**](InlineResponse2001EmbeddedCaptureLinksSelf.md) | | [optional] - - diff --git a/docs/InlineResponse2001EmbeddedReversalLinks.md b/docs/InlineResponse2001EmbeddedReversalLinks.md deleted file mode 100644 index e508d786..00000000 --- a/docs/InlineResponse2001EmbeddedReversalLinks.md +++ /dev/null @@ -1,8 +0,0 @@ -# CyberSource::InlineResponse2001EmbeddedReversalLinks - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**_self** | [**InlineResponse2001EmbeddedReversalLinksSelf**](InlineResponse2001EmbeddedReversalLinksSelf.md) | | [optional] - - diff --git a/docs/InlineResponse2002.md b/docs/InlineResponse2002.md index a39a975d..a9243a16 100644 --- a/docs/InlineResponse2002.md +++ b/docs/InlineResponse2002.md @@ -3,17 +3,9 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**id** | **Integer** | | [optional] -**field_type** | **String** | | [optional] -**label** | **String** | | [optional] -**customer_visible** | **BOOLEAN** | | [optional] -**text_min_length** | **Integer** | | [optional] -**text_max_length** | **Integer** | | [optional] -**possible_values** | **String** | | [optional] -**text_default_value** | **String** | | [optional] -**merchant_id** | **String** | | [optional] -**reference_type** | **String** | | [optional] -**read_only** | **BOOLEAN** | | [optional] -**merchant_defined_data_index** | **Integer** | | [optional] +**id** | **String** | UUID uniquely generated for this comments. | [optional] +**submit_time_utc** | **String** | Time of request in UTC. Format: `YYYY-MM-DDThh:mm:ssZ` **Example** `2016-08-11T22:47:57Z` equals August 11, 2016, at 22:47:57 (10:47:57 p.m.). The `T` separates the date and the time. The `Z` indicates UTC. Returned by Cybersource for all services. | [optional] +**status** | **String** | The status of the submitted transaction. Possible values are: - `ACCEPTED` - `REJECTED` | [optional] +**_embedded** | [**InlineResponse2002Embedded**](InlineResponse2002Embedded.md) | | [optional] diff --git a/docs/InlineResponse2002Embedded.md b/docs/InlineResponse2002Embedded.md new file mode 100644 index 00000000..35578099 --- /dev/null +++ b/docs/InlineResponse2002Embedded.md @@ -0,0 +1,9 @@ +# CyberSource::InlineResponse2002Embedded + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**capture** | [**InlineResponse2002EmbeddedCapture**](InlineResponse2002EmbeddedCapture.md) | | [optional] +**reversal** | [**InlineResponse2002EmbeddedReversal**](InlineResponse2002EmbeddedReversal.md) | | [optional] + + diff --git a/docs/InlineResponse2001EmbeddedCapture.md b/docs/InlineResponse2002EmbeddedCapture.md similarity index 55% rename from docs/InlineResponse2001EmbeddedCapture.md rename to docs/InlineResponse2002EmbeddedCapture.md index 586da3fc..ffb95201 100644 --- a/docs/InlineResponse2001EmbeddedCapture.md +++ b/docs/InlineResponse2002EmbeddedCapture.md @@ -1,9 +1,9 @@ -# CyberSource::InlineResponse2001EmbeddedCapture +# CyberSource::InlineResponse2002EmbeddedCapture ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **status** | **String** | The status of the capture if the capture is called. | [optional] -**_links** | [**InlineResponse2001EmbeddedCaptureLinks**](InlineResponse2001EmbeddedCaptureLinks.md) | | [optional] +**_links** | [**InlineResponse2002EmbeddedCaptureLinks**](InlineResponse2002EmbeddedCaptureLinks.md) | | [optional] diff --git a/docs/InlineResponse2002EmbeddedCaptureLinks.md b/docs/InlineResponse2002EmbeddedCaptureLinks.md new file mode 100644 index 00000000..ecadd2e9 --- /dev/null +++ b/docs/InlineResponse2002EmbeddedCaptureLinks.md @@ -0,0 +1,8 @@ +# CyberSource::InlineResponse2002EmbeddedCaptureLinks + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**_self** | [**InlineResponse2002EmbeddedCaptureLinksSelf**](InlineResponse2002EmbeddedCaptureLinksSelf.md) | | [optional] + + diff --git a/docs/InlineResponse2001EmbeddedCaptureLinksSelf.md b/docs/InlineResponse2002EmbeddedCaptureLinksSelf.md similarity index 86% rename from docs/InlineResponse2001EmbeddedCaptureLinksSelf.md rename to docs/InlineResponse2002EmbeddedCaptureLinksSelf.md index 67cd138e..986cecc9 100644 --- a/docs/InlineResponse2001EmbeddedCaptureLinksSelf.md +++ b/docs/InlineResponse2002EmbeddedCaptureLinksSelf.md @@ -1,4 +1,4 @@ -# CyberSource::InlineResponse2001EmbeddedCaptureLinksSelf +# CyberSource::InlineResponse2002EmbeddedCaptureLinksSelf ## Properties Name | Type | Description | Notes diff --git a/docs/InlineResponse2001EmbeddedReversal.md b/docs/InlineResponse2002EmbeddedReversal.md similarity index 55% rename from docs/InlineResponse2001EmbeddedReversal.md rename to docs/InlineResponse2002EmbeddedReversal.md index 60372e91..9ee362d5 100644 --- a/docs/InlineResponse2001EmbeddedReversal.md +++ b/docs/InlineResponse2002EmbeddedReversal.md @@ -1,9 +1,9 @@ -# CyberSource::InlineResponse2001EmbeddedReversal +# CyberSource::InlineResponse2002EmbeddedReversal ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **status** | **String** | The status of the reversal if the auth reversal is called. | [optional] -**_links** | [**InlineResponse2001EmbeddedReversalLinks**](InlineResponse2001EmbeddedReversalLinks.md) | | [optional] +**_links** | [**InlineResponse2002EmbeddedReversalLinks**](InlineResponse2002EmbeddedReversalLinks.md) | | [optional] diff --git a/docs/InlineResponse2002EmbeddedReversalLinks.md b/docs/InlineResponse2002EmbeddedReversalLinks.md new file mode 100644 index 00000000..5c824f07 --- /dev/null +++ b/docs/InlineResponse2002EmbeddedReversalLinks.md @@ -0,0 +1,8 @@ +# CyberSource::InlineResponse2002EmbeddedReversalLinks + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**_self** | [**InlineResponse2002EmbeddedReversalLinksSelf**](InlineResponse2002EmbeddedReversalLinksSelf.md) | | [optional] + + diff --git a/docs/InlineResponse2001EmbeddedReversalLinksSelf.md b/docs/InlineResponse2002EmbeddedReversalLinksSelf.md similarity index 86% rename from docs/InlineResponse2001EmbeddedReversalLinksSelf.md rename to docs/InlineResponse2002EmbeddedReversalLinksSelf.md index b26e1455..51dedffa 100644 --- a/docs/InlineResponse2001EmbeddedReversalLinksSelf.md +++ b/docs/InlineResponse2002EmbeddedReversalLinksSelf.md @@ -1,4 +1,4 @@ -# CyberSource::InlineResponse2001EmbeddedReversalLinksSelf +# CyberSource::InlineResponse2002EmbeddedReversalLinksSelf ## Properties Name | Type | Description | Notes diff --git a/docs/InlineResponse2003.md b/docs/InlineResponse2003.md index 216bdbff..94374f5a 100644 --- a/docs/InlineResponse2003.md +++ b/docs/InlineResponse2003.md @@ -3,12 +3,17 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**registration_information** | [**Boardingv1registrationsRegistrationInformation**](Boardingv1registrationsRegistrationInformation.md) | | [optional] -**integration_information** | [**InlineResponse2003IntegrationInformation**](InlineResponse2003IntegrationInformation.md) | | [optional] -**organization_information** | [**Boardingv1registrationsOrganizationInformation**](Boardingv1registrationsOrganizationInformation.md) | | [optional] -**product_information** | [**Boardingv1registrationsProductInformation**](Boardingv1registrationsProductInformation.md) | | [optional] -**product_information_setups** | [**Array<InlineResponse2013ProductInformationSetups>**](InlineResponse2013ProductInformationSetups.md) | | [optional] -**document_information** | [**Boardingv1registrationsDocumentInformation**](Boardingv1registrationsDocumentInformation.md) | | [optional] -**details** | **Hash<String, Array<Object>>** | | [optional] +**id** | **Integer** | | [optional] +**field_type** | **String** | | [optional] +**label** | **String** | | [optional] +**customer_visible** | **BOOLEAN** | | [optional] +**text_min_length** | **Integer** | | [optional] +**text_max_length** | **Integer** | | [optional] +**possible_values** | **String** | | [optional] +**text_default_value** | **String** | | [optional] +**merchant_id** | **String** | | [optional] +**reference_type** | **String** | | [optional] +**read_only** | **BOOLEAN** | | [optional] +**merchant_defined_data_index** | **Integer** | | [optional] diff --git a/docs/InlineResponse2004.md b/docs/InlineResponse2004.md index 621c5dc6..534acd3d 100644 --- a/docs/InlineResponse2004.md +++ b/docs/InlineResponse2004.md @@ -3,8 +3,12 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**product_id** | **String** | Product ID. | [optional] -**product_name** | **String** | Product Name. | [optional] -**event_types** | [**Array<Notificationsubscriptionsv2productsorganizationIdEventTypes>**](Notificationsubscriptionsv2productsorganizationIdEventTypes.md) | | [optional] +**registration_information** | [**Boardingv1registrationsRegistrationInformation**](Boardingv1registrationsRegistrationInformation.md) | | [optional] +**integration_information** | [**InlineResponse2004IntegrationInformation**](InlineResponse2004IntegrationInformation.md) | | [optional] +**organization_information** | [**Boardingv1registrationsOrganizationInformation**](Boardingv1registrationsOrganizationInformation.md) | | [optional] +**product_information** | [**Boardingv1registrationsProductInformation**](Boardingv1registrationsProductInformation.md) | | [optional] +**product_information_setups** | [**Array<InlineResponse2013ProductInformationSetups>**](InlineResponse2013ProductInformationSetups.md) | | [optional] +**document_information** | [**Boardingv1registrationsDocumentInformation**](Boardingv1registrationsDocumentInformation.md) | | [optional] +**details** | **Hash<String, Array<Object>>** | | [optional] diff --git a/docs/InlineResponse2003IntegrationInformation.md b/docs/InlineResponse2004IntegrationInformation.md similarity index 70% rename from docs/InlineResponse2003IntegrationInformation.md rename to docs/InlineResponse2004IntegrationInformation.md index b73f528e..e377f1a2 100644 --- a/docs/InlineResponse2003IntegrationInformation.md +++ b/docs/InlineResponse2004IntegrationInformation.md @@ -1,9 +1,9 @@ -# CyberSource::InlineResponse2003IntegrationInformation +# CyberSource::InlineResponse2004IntegrationInformation ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **oauth2** | [**Array<Boardingv1registrationsIntegrationInformationOauth2>**](Boardingv1registrationsIntegrationInformationOauth2.md) | | [optional] -**tenant_configurations** | [**Array<InlineResponse2003IntegrationInformationTenantConfigurations>**](InlineResponse2003IntegrationInformationTenantConfigurations.md) | tenantConfigurations is an array of objects that includes the tenant information this merchant is associated with. | [optional] +**tenant_configurations** | [**Array<InlineResponse2004IntegrationInformationTenantConfigurations>**](InlineResponse2004IntegrationInformationTenantConfigurations.md) | tenantConfigurations is an array of objects that includes the tenant information this merchant is associated with. | [optional] diff --git a/docs/InlineResponse2003IntegrationInformationTenantConfigurations.md b/docs/InlineResponse2004IntegrationInformationTenantConfigurations.md similarity index 93% rename from docs/InlineResponse2003IntegrationInformationTenantConfigurations.md rename to docs/InlineResponse2004IntegrationInformationTenantConfigurations.md index e5e40dd2..20ecca08 100644 --- a/docs/InlineResponse2003IntegrationInformationTenantConfigurations.md +++ b/docs/InlineResponse2004IntegrationInformationTenantConfigurations.md @@ -1,4 +1,4 @@ -# CyberSource::InlineResponse2003IntegrationInformationTenantConfigurations +# CyberSource::InlineResponse2004IntegrationInformationTenantConfigurations ## Properties Name | Type | Description | Notes diff --git a/docs/InlineResponse2005.md b/docs/InlineResponse2005.md index 74eee203..da55b852 100644 --- a/docs/InlineResponse2005.md +++ b/docs/InlineResponse2005.md @@ -3,17 +3,8 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**webhook_id** | **String** | Webhook Id. This is generated by the server. | [optional] -**organization_id** | **String** | Organization ID. | [optional] -**products** | [**Array<Notificationsubscriptionsv2webhooksProducts>**](Notificationsubscriptionsv2webhooksProducts.md) | | [optional] -**webhook_url** | **String** | The client's endpoint (URL) to receive webhooks. | [optional] -**health_check_url** | **String** | The client's health check endpoint (URL). | [optional] -**status** | **String** | Webhook status. | [optional] [default to 'INACTIVE'] -**name** | **String** | Client friendly webhook name. | [optional] -**description** | **String** | Client friendly webhook description. | [optional] -**retry_policy** | [**Notificationsubscriptionsv2webhooksRetryPolicy**](Notificationsubscriptionsv2webhooksRetryPolicy.md) | | [optional] -**security_policy** | [**Notificationsubscriptionsv2webhooksSecurityPolicy**](Notificationsubscriptionsv2webhooksSecurityPolicy.md) | | [optional] -**created_on** | **String** | Date on which webhook was created/registered. | [optional] -**notification_scope** | **String** | The webhook scope. 1. SELF The Webhook is used to deliver webhooks for only this Organization (or Merchant). 2. DESCENDANTS The Webhook is used to deliver webhooks for this Organization and its children. This field is optional. Possible values: - SELF - DESCENDANTS | [optional] [default to 'DESCENDANTS'] +**product_id** | **String** | Product ID. | [optional] +**product_name** | **String** | Product Name. | [optional] +**event_types** | [**Array<Notificationsubscriptionsv2productsorganizationIdEventTypes>**](Notificationsubscriptionsv2productsorganizationIdEventTypes.md) | | [optional] diff --git a/docs/InlineResponse2006.md b/docs/InlineResponse2006.md index 4affccc8..6ea5440b 100644 --- a/docs/InlineResponse2006.md +++ b/docs/InlineResponse2006.md @@ -14,7 +14,6 @@ Name | Type | Description | Notes **retry_policy** | [**Notificationsubscriptionsv2webhooksRetryPolicy**](Notificationsubscriptionsv2webhooksRetryPolicy.md) | | [optional] **security_policy** | [**Notificationsubscriptionsv2webhooksSecurityPolicy**](Notificationsubscriptionsv2webhooksSecurityPolicy.md) | | [optional] **created_on** | **String** | Date on which webhook was created/registered. | [optional] -**updated_on** | **String** | Date on which webhook was most recently updated. | [optional] **notification_scope** | **String** | The webhook scope. 1. SELF The Webhook is used to deliver webhooks for only this Organization (or Merchant). 2. DESCENDANTS The Webhook is used to deliver webhooks for this Organization and its children. This field is optional. Possible values: - SELF - DESCENDANTS | [optional] [default to 'DESCENDANTS'] diff --git a/docs/InlineResponse2007.md b/docs/InlineResponse2007.md index c226e8f9..2b3d9278 100644 --- a/docs/InlineResponse2007.md +++ b/docs/InlineResponse2007.md @@ -3,11 +3,18 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**total_count** | **Integer** | Total number of results. | [optional] -**offset** | **Integer** | Controls the starting point within the collection of results, which defaults to 0. The first item in the collection is retrieved by setting a zero offset. For example, if you have a collection of 15 items to be retrieved from a resource and you specify limit=5, you can retrieve the entire set of results in 3 successive requests by varying the offset value like this: `offset=0` `offset=5` `offset=10` **Note:** If an offset larger than the number of results is provided, this will result in no embedded object being returned. | [optional] -**limit** | **Integer** | Controls the maximum number of items that may be returned for a single request. The default is 20, the maximum is 2500. | [optional] -**sort** | **String** | A comma separated list of the following form: `submitTimeUtc:desc` | [optional] -**count** | **Integer** | Results for this page, this could be below the limit. | [optional] -**devices** | [**Array<InlineResponse2007Devices>**](InlineResponse2007Devices.md) | A collection of devices | [optional] +**webhook_id** | **String** | Webhook Id. This is generated by the server. | [optional] +**organization_id** | **String** | Organization ID. | [optional] +**products** | [**Array<Notificationsubscriptionsv2webhooksProducts>**](Notificationsubscriptionsv2webhooksProducts.md) | | [optional] +**webhook_url** | **String** | The client's endpoint (URL) to receive webhooks. | [optional] +**health_check_url** | **String** | The client's health check endpoint (URL). | [optional] +**status** | **String** | Webhook status. | [optional] [default to 'INACTIVE'] +**name** | **String** | Client friendly webhook name. | [optional] +**description** | **String** | Client friendly webhook description. | [optional] +**retry_policy** | [**Notificationsubscriptionsv2webhooksRetryPolicy**](Notificationsubscriptionsv2webhooksRetryPolicy.md) | | [optional] +**security_policy** | [**Notificationsubscriptionsv2webhooksSecurityPolicy**](Notificationsubscriptionsv2webhooksSecurityPolicy.md) | | [optional] +**created_on** | **String** | Date on which webhook was created/registered. | [optional] +**updated_on** | **String** | Date on which webhook was most recently updated. | [optional] +**notification_scope** | **String** | The webhook scope. 1. SELF The Webhook is used to deliver webhooks for only this Organization (or Merchant). 2. DESCENDANTS The Webhook is used to deliver webhooks for this Organization and its children. This field is optional. Possible values: - SELF - DESCENDANTS | [optional] [default to 'DESCENDANTS'] diff --git a/docs/InlineResponse2008.md b/docs/InlineResponse2008.md index 7b54e507..3c151665 100644 --- a/docs/InlineResponse2008.md +++ b/docs/InlineResponse2008.md @@ -3,7 +3,11 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**status** | **String** | Possible values: - OK | [optional] -**devices** | [**Array<Dmsv3devicesdeassociateDevices>**](Dmsv3devicesdeassociateDevices.md) | | [optional] +**total_count** | **Integer** | Total number of results. | [optional] +**offset** | **Integer** | Controls the starting point within the collection of results, which defaults to 0. The first item in the collection is retrieved by setting a zero offset. For example, if you have a collection of 15 items to be retrieved from a resource and you specify limit=5, you can retrieve the entire set of results in 3 successive requests by varying the offset value like this: `offset=0` `offset=5` `offset=10` **Note:** If an offset larger than the number of results is provided, this will result in no embedded object being returned. | [optional] +**limit** | **Integer** | Controls the maximum number of items that may be returned for a single request. The default is 20, the maximum is 2500. | [optional] +**sort** | **String** | A comma separated list of the following form: `submitTimeUtc:desc` | [optional] +**count** | **Integer** | Results for this page, this could be below the limit. | [optional] +**devices** | [**Array<InlineResponse2008Devices>**](InlineResponse2008Devices.md) | A collection of devices | [optional] diff --git a/docs/InlineResponse2007Devices.md b/docs/InlineResponse2008Devices.md similarity index 93% rename from docs/InlineResponse2007Devices.md rename to docs/InlineResponse2008Devices.md index efefcdee..42122a40 100644 --- a/docs/InlineResponse2007Devices.md +++ b/docs/InlineResponse2008Devices.md @@ -1,4 +1,4 @@ -# CyberSource::InlineResponse2007Devices +# CyberSource::InlineResponse2008Devices ## Properties Name | Type | Description | Notes diff --git a/docs/InlineResponse2009.md b/docs/InlineResponse2009.md index c2e18983..b09ae164 100644 --- a/docs/InlineResponse2009.md +++ b/docs/InlineResponse2009.md @@ -3,11 +3,7 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**total_count** | **Integer** | Total number of results. | [optional] -**offset** | **Integer** | Controls the starting point within the collection of results, which defaults to 0. The first item in the collection is retrieved by setting a zero offset. For example, if you have a collection of 15 items to be retrieved from a resource and you specify limit=5, you can retrieve the entire set of results in 3 successive requests by varying the offset value like this: `offset=0` `offset=5` `offset=10` **Note:** If an offset larger than the number of results is provided, this will result in no embedded object being returned. | [optional] -**limit** | **Integer** | Controls the maximum number of items that may be returned for a single request. The default is 20, the maximum is 2500. | [optional] -**sort** | **String** | A comma separated list of the following form: `terminalCreationDate:desc or serialNumber or terminalUpdationDate` | [optional] -**count** | **Integer** | Results for this page, this could be below the limit. | [optional] -**devices** | [**Array<InlineResponse2009Devices>**](InlineResponse2009Devices.md) | A collection of devices | [optional] +**status** | **String** | Possible values: - OK | [optional] +**devices** | [**Array<Dmsv3devicesdeassociateDevices>**](Dmsv3devicesdeassociateDevices.md) | | [optional] diff --git a/docs/InlineResponse200Details.md b/docs/InlineResponse200Details.md new file mode 100644 index 00000000..132ab11b --- /dev/null +++ b/docs/InlineResponse200Details.md @@ -0,0 +1,9 @@ +# CyberSource::InlineResponse200Details + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**name** | **String** | The name of the field that caused the error. | [optional] +**location** | **String** | The location of the field that caused the error. | [optional] + + diff --git a/docs/InlineResponse200Errors.md b/docs/InlineResponse200Errors.md new file mode 100644 index 00000000..5c69f3b5 --- /dev/null +++ b/docs/InlineResponse200Errors.md @@ -0,0 +1,10 @@ +# CyberSource::InlineResponse200Errors + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**type** | **String** | The type of error. Possible Values: - invalidHeaders - missingHeaders - invalidFields - missingFields - unsupportedPaymentMethodModification - invalidCombination - forbidden - notFound - instrumentIdentifierDeletionError - tokenIdConflict - conflict - notAvailable - serverError - notAttempted A \"notAttempted\" error type is returned when the request cannot be processed because it depends on the existence of another token that does not exist. For example, creating a shipping address token is not attempted if the required customer token is missing. | [optional] +**message** | **String** | The detailed message related to the type. | [optional] +**details** | [**Array<InlineResponse200Details>**](InlineResponse200Details.md) | | [optional] + + diff --git a/docs/InlineResponse200Responses.md b/docs/InlineResponse200Responses.md new file mode 100644 index 00000000..3a4f7ebe --- /dev/null +++ b/docs/InlineResponse200Responses.md @@ -0,0 +1,11 @@ +# CyberSource::InlineResponse200Responses + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**resource** | **String** | TMS token type associated with the response. Possible Values: - customer - paymentInstrument - instrumentIdentifier - shippingAddress - tokenizedCard | [optional] +**http_status** | **Integer** | Http status associated with the response. | [optional] +**id** | **String** | TMS token id associated with the response. | [optional] +**errors** | [**Array<InlineResponse200Errors>**](InlineResponse200Errors.md) | | [optional] + + diff --git a/docs/InlineResponse2013SetupsPayments.md b/docs/InlineResponse2013SetupsPayments.md index c13f9e7a..9c0e6dd3 100644 --- a/docs/InlineResponse2013SetupsPayments.md +++ b/docs/InlineResponse2013SetupsPayments.md @@ -22,5 +22,6 @@ Name | Type | Description | Notes **unified_checkout** | [**InlineResponse2013SetupsPaymentsDigitalPayments**](InlineResponse2013SetupsPaymentsDigitalPayments.md) | | [optional] **receivables_manager** | [**InlineResponse2013SetupsPaymentsDigitalPayments**](InlineResponse2013SetupsPaymentsDigitalPayments.md) | | [optional] **service_fee** | [**InlineResponse2013SetupsPaymentsCardProcessing**](InlineResponse2013SetupsPaymentsCardProcessing.md) | | [optional] +**batch_upload** | [**InlineResponse2013SetupsPaymentsDigitalPayments**](InlineResponse2013SetupsPaymentsDigitalPayments.md) | | [optional] diff --git a/docs/ManageWebhooksApi.md b/docs/ManageWebhooksApi.md index 8283c0fb..5b85234f 100644 --- a/docs/ManageWebhooksApi.md +++ b/docs/ManageWebhooksApi.md @@ -107,7 +107,7 @@ No authorization required # **get_webhook_subscriptions_by_org** -> Array<InlineResponse2005> get_webhook_subscriptions_by_org(organization_id, opts) +> Array<InlineResponse2006> get_webhook_subscriptions_by_org(organization_id, opts) Get Details On All Created Webhooks @@ -146,7 +146,7 @@ Name | Type | Description | Notes ### Return type -[**Array<InlineResponse2005>**](InlineResponse2005.md) +[**Array<InlineResponse2006>**](InlineResponse2006.md) ### Authorization @@ -207,7 +207,7 @@ No authorization required # **notification_subscriptions_v2_webhooks_webhook_id_patch** -> InlineResponse2006 notification_subscriptions_v2_webhooks_webhook_id_patch(webhook_id, opts) +> InlineResponse2007 notification_subscriptions_v2_webhooks_webhook_id_patch(webhook_id, opts) Update a Webhook Subscription @@ -244,7 +244,7 @@ Name | Type | Description | Notes ### Return type -[**InlineResponse2006**](InlineResponse2006.md) +[**InlineResponse2007**](InlineResponse2007.md) ### Authorization diff --git a/docs/MerchantBoardingApi.md b/docs/MerchantBoardingApi.md index b23b6250..263161da 100644 --- a/docs/MerchantBoardingApi.md +++ b/docs/MerchantBoardingApi.md @@ -9,7 +9,7 @@ Method | HTTP request | Description # **get_registration** -> InlineResponse2003 get_registration(registration_id) +> InlineResponse2004 get_registration(registration_id) Gets all the information on a boarding registration @@ -42,7 +42,7 @@ Name | Type | Description | Notes ### Return type -[**InlineResponse2003**](InlineResponse2003.md) +[**InlineResponse2004**](InlineResponse2004.md) ### Authorization diff --git a/docs/MerchantDefinedFieldsApi.md b/docs/MerchantDefinedFieldsApi.md index 662e4e76..bd685e93 100644 --- a/docs/MerchantDefinedFieldsApi.md +++ b/docs/MerchantDefinedFieldsApi.md @@ -11,7 +11,7 @@ Method | HTTP request | Description # **create_merchant_defined_field_definition** -> Array<InlineResponse2002> create_merchant_defined_field_definition(reference_type, merchant_defined_field_definition_request) +> Array<InlineResponse2003> create_merchant_defined_field_definition(reference_type, merchant_defined_field_definition_request) Create merchant defined field for a given reference type @@ -45,7 +45,7 @@ Name | Type | Description | Notes ### Return type -[**Array<InlineResponse2002>**](InlineResponse2002.md) +[**Array<InlineResponse2003>**](InlineResponse2003.md) ### Authorization @@ -106,7 +106,7 @@ No authorization required # **get_merchant_defined_fields_definitions** -> Array<InlineResponse2002> get_merchant_defined_fields_definitions(reference_type) +> Array<InlineResponse2003> get_merchant_defined_fields_definitions(reference_type) Get all merchant defined fields for a given reference type @@ -137,7 +137,7 @@ Name | Type | Description | Notes ### Return type -[**Array<InlineResponse2002>**](InlineResponse2002.md) +[**Array<InlineResponse2003>**](InlineResponse2003.md) ### Authorization @@ -151,7 +151,7 @@ No authorization required # **put_merchant_defined_fields_definitions** -> Array<InlineResponse2002> put_merchant_defined_fields_definitions(reference_type, id, merchant_defined_field_core) +> Array<InlineResponse2003> put_merchant_defined_fields_definitions(reference_type, id, merchant_defined_field_core) Update a MerchantDefinedField by ID @@ -188,7 +188,7 @@ Name | Type | Description | Notes ### Return type -[**Array<InlineResponse2002>**](InlineResponse2002.md) +[**Array<InlineResponse2003>**](InlineResponse2003.md) ### Authorization diff --git a/docs/OffersApi.md b/docs/OffersApi.md index 1c5d5fb8..4401b242 100644 --- a/docs/OffersApi.md +++ b/docs/OffersApi.md @@ -71,7 +71,7 @@ No authorization required # **get_offer** -> InlineResponse20014 get_offer(content_type, x_requestid, v_c_merchant_id, v_c_correlation_id, v_c_organization_id, id) +> InlineResponse20015 get_offer(content_type, x_requestid, v_c_merchant_id, v_c_correlation_id, v_c_organization_id, id) Retrieve an Offer @@ -119,7 +119,7 @@ Name | Type | Description | Notes ### Return type -[**InlineResponse20014**](InlineResponse20014.md) +[**InlineResponse20015**](InlineResponse20015.md) ### Authorization diff --git a/docs/PatchCustomerPaymentInstrumentRequest.md b/docs/PatchCustomerPaymentInstrumentRequest.md index 3f47459c..baceed46 100644 --- a/docs/PatchCustomerPaymentInstrumentRequest.md +++ b/docs/PatchCustomerPaymentInstrumentRequest.md @@ -3,20 +3,20 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**_links** | [**Tmsv2customersEmbeddedDefaultPaymentInstrumentLinks**](Tmsv2customersEmbeddedDefaultPaymentInstrumentLinks.md) | | [optional] +**_links** | [**Tmsv2tokenizeTokenInformationCustomerEmbeddedDefaultPaymentInstrumentLinks**](Tmsv2tokenizeTokenInformationCustomerEmbeddedDefaultPaymentInstrumentLinks.md) | | [optional] **id** | **String** | The Id of the Payment Instrument Token. | [optional] **object** | **String** | The type. Possible Values: - paymentInstrument | [optional] **default** | **BOOLEAN** | Flag that indicates whether customer payment instrument is the dafault. Possible Values: - `true`: Payment instrument is customer's default. - `false`: Payment instrument is not customer's default. | [optional] **state** | **String** | Issuers state for the card number. Possible Values: - ACTIVE - CLOSED : The account has been closed. | [optional] **type** | **String** | The type of Payment Instrument. Possible Values: - cardHash | [optional] -**bank_account** | [**Tmsv2customersEmbeddedDefaultPaymentInstrumentBankAccount**](Tmsv2customersEmbeddedDefaultPaymentInstrumentBankAccount.md) | | [optional] -**card** | [**Tmsv2customersEmbeddedDefaultPaymentInstrumentCard**](Tmsv2customersEmbeddedDefaultPaymentInstrumentCard.md) | | [optional] -**buyer_information** | [**Tmsv2customersEmbeddedDefaultPaymentInstrumentBuyerInformation**](Tmsv2customersEmbeddedDefaultPaymentInstrumentBuyerInformation.md) | | [optional] -**bill_to** | [**Tmsv2customersEmbeddedDefaultPaymentInstrumentBillTo**](Tmsv2customersEmbeddedDefaultPaymentInstrumentBillTo.md) | | [optional] +**bank_account** | [**Tmsv2tokenizeTokenInformationCustomerEmbeddedDefaultPaymentInstrumentBankAccount**](Tmsv2tokenizeTokenInformationCustomerEmbeddedDefaultPaymentInstrumentBankAccount.md) | | [optional] +**card** | [**Tmsv2tokenizeTokenInformationCustomerEmbeddedDefaultPaymentInstrumentCard**](Tmsv2tokenizeTokenInformationCustomerEmbeddedDefaultPaymentInstrumentCard.md) | | [optional] +**buyer_information** | [**Tmsv2tokenizeTokenInformationCustomerEmbeddedDefaultPaymentInstrumentBuyerInformation**](Tmsv2tokenizeTokenInformationCustomerEmbeddedDefaultPaymentInstrumentBuyerInformation.md) | | [optional] +**bill_to** | [**Tmsv2tokenizeTokenInformationCustomerEmbeddedDefaultPaymentInstrumentBillTo**](Tmsv2tokenizeTokenInformationCustomerEmbeddedDefaultPaymentInstrumentBillTo.md) | | [optional] **processing_information** | [**TmsPaymentInstrumentProcessingInfo**](TmsPaymentInstrumentProcessingInfo.md) | | [optional] -**merchant_information** | [**Tmsv2customersEmbeddedDefaultPaymentInstrumentMerchantInformation**](Tmsv2customersEmbeddedDefaultPaymentInstrumentMerchantInformation.md) | | [optional] -**instrument_identifier** | [**Tmsv2customersEmbeddedDefaultPaymentInstrumentInstrumentIdentifier**](Tmsv2customersEmbeddedDefaultPaymentInstrumentInstrumentIdentifier.md) | | [optional] -**metadata** | [**Tmsv2customersEmbeddedDefaultPaymentInstrumentMetadata**](Tmsv2customersEmbeddedDefaultPaymentInstrumentMetadata.md) | | [optional] -**_embedded** | [**Tmsv2customersEmbeddedDefaultPaymentInstrumentEmbedded**](Tmsv2customersEmbeddedDefaultPaymentInstrumentEmbedded.md) | | [optional] +**merchant_information** | [**TmsMerchantInformation**](TmsMerchantInformation.md) | | [optional] +**instrument_identifier** | [**Tmsv2tokenizeTokenInformationCustomerEmbeddedDefaultPaymentInstrumentInstrumentIdentifier**](Tmsv2tokenizeTokenInformationCustomerEmbeddedDefaultPaymentInstrumentInstrumentIdentifier.md) | | [optional] +**metadata** | [**Tmsv2tokenizeTokenInformationCustomerEmbeddedDefaultPaymentInstrumentMetadata**](Tmsv2tokenizeTokenInformationCustomerEmbeddedDefaultPaymentInstrumentMetadata.md) | | [optional] +**_embedded** | [**Tmsv2tokenizeTokenInformationCustomerEmbeddedDefaultPaymentInstrumentEmbedded**](Tmsv2tokenizeTokenInformationCustomerEmbeddedDefaultPaymentInstrumentEmbedded.md) | | [optional] diff --git a/docs/PatchCustomerRequest.md b/docs/PatchCustomerRequest.md index 22c929d9..6c51d366 100644 --- a/docs/PatchCustomerRequest.md +++ b/docs/PatchCustomerRequest.md @@ -3,15 +3,15 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**_links** | [**Tmsv2customersLinks**](Tmsv2customersLinks.md) | | [optional] +**_links** | [**Tmsv2tokenizeTokenInformationCustomerLinks**](Tmsv2tokenizeTokenInformationCustomerLinks.md) | | [optional] **id** | **String** | The Id of the Customer Token. | [optional] -**object_information** | [**Tmsv2customersObjectInformation**](Tmsv2customersObjectInformation.md) | | [optional] -**buyer_information** | [**Tmsv2customersBuyerInformation**](Tmsv2customersBuyerInformation.md) | | [optional] -**client_reference_information** | [**Tmsv2customersClientReferenceInformation**](Tmsv2customersClientReferenceInformation.md) | | [optional] -**merchant_defined_information** | [**Array<Tmsv2customersMerchantDefinedInformation>**](Tmsv2customersMerchantDefinedInformation.md) | Object containing the custom data that the merchant defines. | [optional] -**default_payment_instrument** | [**Tmsv2customersDefaultPaymentInstrument**](Tmsv2customersDefaultPaymentInstrument.md) | | [optional] -**default_shipping_address** | [**Tmsv2customersDefaultShippingAddress**](Tmsv2customersDefaultShippingAddress.md) | | [optional] -**metadata** | [**Tmsv2customersMetadata**](Tmsv2customersMetadata.md) | | [optional] -**_embedded** | [**Tmsv2customersEmbedded**](Tmsv2customersEmbedded.md) | | [optional] +**object_information** | [**Tmsv2tokenizeTokenInformationCustomerObjectInformation**](Tmsv2tokenizeTokenInformationCustomerObjectInformation.md) | | [optional] +**buyer_information** | [**Tmsv2tokenizeTokenInformationCustomerBuyerInformation**](Tmsv2tokenizeTokenInformationCustomerBuyerInformation.md) | | [optional] +**client_reference_information** | [**Tmsv2tokenizeTokenInformationCustomerClientReferenceInformation**](Tmsv2tokenizeTokenInformationCustomerClientReferenceInformation.md) | | [optional] +**merchant_defined_information** | [**Array<Tmsv2tokenizeTokenInformationCustomerMerchantDefinedInformation>**](Tmsv2tokenizeTokenInformationCustomerMerchantDefinedInformation.md) | Object containing the custom data that the merchant defines. | [optional] +**default_payment_instrument** | [**Tmsv2tokenizeTokenInformationCustomerDefaultPaymentInstrument**](Tmsv2tokenizeTokenInformationCustomerDefaultPaymentInstrument.md) | | [optional] +**default_shipping_address** | [**Tmsv2tokenizeTokenInformationCustomerDefaultShippingAddress**](Tmsv2tokenizeTokenInformationCustomerDefaultShippingAddress.md) | | [optional] +**metadata** | [**Tmsv2tokenizeTokenInformationCustomerMetadata**](Tmsv2tokenizeTokenInformationCustomerMetadata.md) | | [optional] +**_embedded** | [**Tmsv2tokenizeTokenInformationCustomerEmbedded**](Tmsv2tokenizeTokenInformationCustomerEmbedded.md) | | [optional] diff --git a/docs/PatchCustomerShippingAddressRequest.md b/docs/PatchCustomerShippingAddressRequest.md index 2c90d0c3..10a91a14 100644 --- a/docs/PatchCustomerShippingAddressRequest.md +++ b/docs/PatchCustomerShippingAddressRequest.md @@ -3,10 +3,10 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**_links** | [**Tmsv2customersEmbeddedDefaultShippingAddressLinks**](Tmsv2customersEmbeddedDefaultShippingAddressLinks.md) | | [optional] +**_links** | [**Tmsv2tokenizeTokenInformationCustomerEmbeddedDefaultShippingAddressLinks**](Tmsv2tokenizeTokenInformationCustomerEmbeddedDefaultShippingAddressLinks.md) | | [optional] **id** | **String** | The Id of the Shipping Address Token. | [optional] **default** | **BOOLEAN** | Flag that indicates whether customer shipping address is the dafault. Possible Values: - `true`: Shipping Address is customer's default. - `false`: Shipping Address is not customer's default. | [optional] -**ship_to** | [**Tmsv2customersEmbeddedDefaultShippingAddressShipTo**](Tmsv2customersEmbeddedDefaultShippingAddressShipTo.md) | | [optional] -**metadata** | [**Tmsv2customersEmbeddedDefaultShippingAddressMetadata**](Tmsv2customersEmbeddedDefaultShippingAddressMetadata.md) | | [optional] +**ship_to** | [**Tmsv2tokenizeTokenInformationCustomerEmbeddedDefaultShippingAddressShipTo**](Tmsv2tokenizeTokenInformationCustomerEmbeddedDefaultShippingAddressShipTo.md) | | [optional] +**metadata** | [**Tmsv2tokenizeTokenInformationCustomerEmbeddedDefaultShippingAddressMetadata**](Tmsv2tokenizeTokenInformationCustomerEmbeddedDefaultShippingAddressMetadata.md) | | [optional] diff --git a/docs/PatchPaymentInstrumentRequest.md b/docs/PatchPaymentInstrumentRequest.md index 91fd671b..b5f90b96 100644 --- a/docs/PatchPaymentInstrumentRequest.md +++ b/docs/PatchPaymentInstrumentRequest.md @@ -3,20 +3,20 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**_links** | [**Tmsv2customersEmbeddedDefaultPaymentInstrumentLinks**](Tmsv2customersEmbeddedDefaultPaymentInstrumentLinks.md) | | [optional] +**_links** | [**Tmsv2tokenizeTokenInformationCustomerEmbeddedDefaultPaymentInstrumentLinks**](Tmsv2tokenizeTokenInformationCustomerEmbeddedDefaultPaymentInstrumentLinks.md) | | [optional] **id** | **String** | The Id of the Payment Instrument Token. | [optional] **object** | **String** | The type. Possible Values: - paymentInstrument | [optional] **default** | **BOOLEAN** | Flag that indicates whether customer payment instrument is the dafault. Possible Values: - `true`: Payment instrument is customer's default. - `false`: Payment instrument is not customer's default. | [optional] **state** | **String** | Issuers state for the card number. Possible Values: - ACTIVE - CLOSED : The account has been closed. | [optional] **type** | **String** | The type of Payment Instrument. Possible Values: - cardHash | [optional] -**bank_account** | [**Tmsv2customersEmbeddedDefaultPaymentInstrumentBankAccount**](Tmsv2customersEmbeddedDefaultPaymentInstrumentBankAccount.md) | | [optional] -**card** | [**Tmsv2customersEmbeddedDefaultPaymentInstrumentCard**](Tmsv2customersEmbeddedDefaultPaymentInstrumentCard.md) | | [optional] -**buyer_information** | [**Tmsv2customersEmbeddedDefaultPaymentInstrumentBuyerInformation**](Tmsv2customersEmbeddedDefaultPaymentInstrumentBuyerInformation.md) | | [optional] -**bill_to** | [**Tmsv2customersEmbeddedDefaultPaymentInstrumentBillTo**](Tmsv2customersEmbeddedDefaultPaymentInstrumentBillTo.md) | | [optional] +**bank_account** | [**Tmsv2tokenizeTokenInformationCustomerEmbeddedDefaultPaymentInstrumentBankAccount**](Tmsv2tokenizeTokenInformationCustomerEmbeddedDefaultPaymentInstrumentBankAccount.md) | | [optional] +**card** | [**Tmsv2tokenizeTokenInformationCustomerEmbeddedDefaultPaymentInstrumentCard**](Tmsv2tokenizeTokenInformationCustomerEmbeddedDefaultPaymentInstrumentCard.md) | | [optional] +**buyer_information** | [**Tmsv2tokenizeTokenInformationCustomerEmbeddedDefaultPaymentInstrumentBuyerInformation**](Tmsv2tokenizeTokenInformationCustomerEmbeddedDefaultPaymentInstrumentBuyerInformation.md) | | [optional] +**bill_to** | [**Tmsv2tokenizeTokenInformationCustomerEmbeddedDefaultPaymentInstrumentBillTo**](Tmsv2tokenizeTokenInformationCustomerEmbeddedDefaultPaymentInstrumentBillTo.md) | | [optional] **processing_information** | [**TmsPaymentInstrumentProcessingInfo**](TmsPaymentInstrumentProcessingInfo.md) | | [optional] -**merchant_information** | [**Tmsv2customersEmbeddedDefaultPaymentInstrumentMerchantInformation**](Tmsv2customersEmbeddedDefaultPaymentInstrumentMerchantInformation.md) | | [optional] -**instrument_identifier** | [**Tmsv2customersEmbeddedDefaultPaymentInstrumentInstrumentIdentifier**](Tmsv2customersEmbeddedDefaultPaymentInstrumentInstrumentIdentifier.md) | | [optional] -**metadata** | [**Tmsv2customersEmbeddedDefaultPaymentInstrumentMetadata**](Tmsv2customersEmbeddedDefaultPaymentInstrumentMetadata.md) | | [optional] -**_embedded** | [**Tmsv2customersEmbeddedDefaultPaymentInstrumentEmbedded**](Tmsv2customersEmbeddedDefaultPaymentInstrumentEmbedded.md) | | [optional] +**merchant_information** | [**TmsMerchantInformation**](TmsMerchantInformation.md) | | [optional] +**instrument_identifier** | [**Tmsv2tokenizeTokenInformationCustomerEmbeddedDefaultPaymentInstrumentInstrumentIdentifier**](Tmsv2tokenizeTokenInformationCustomerEmbeddedDefaultPaymentInstrumentInstrumentIdentifier.md) | | [optional] +**metadata** | [**Tmsv2tokenizeTokenInformationCustomerEmbeddedDefaultPaymentInstrumentMetadata**](Tmsv2tokenizeTokenInformationCustomerEmbeddedDefaultPaymentInstrumentMetadata.md) | | [optional] +**_embedded** | [**Tmsv2tokenizeTokenInformationCustomerEmbeddedDefaultPaymentInstrumentEmbedded**](Tmsv2tokenizeTokenInformationCustomerEmbeddedDefaultPaymentInstrumentEmbedded.md) | | [optional] diff --git a/docs/PaymentInstrumentList1EmbeddedPaymentInstruments.md b/docs/PaymentInstrumentList1EmbeddedPaymentInstruments.md index 9716615b..a9928e17 100644 --- a/docs/PaymentInstrumentList1EmbeddedPaymentInstruments.md +++ b/docs/PaymentInstrumentList1EmbeddedPaymentInstruments.md @@ -3,20 +3,20 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**_links** | [**Tmsv2customersEmbeddedDefaultPaymentInstrumentLinks**](Tmsv2customersEmbeddedDefaultPaymentInstrumentLinks.md) | | [optional] +**_links** | [**Tmsv2tokenizeTokenInformationCustomerEmbeddedDefaultPaymentInstrumentLinks**](Tmsv2tokenizeTokenInformationCustomerEmbeddedDefaultPaymentInstrumentLinks.md) | | [optional] **id** | **String** | The Id of the Payment Instrument Token. | [optional] **object** | **String** | The type. Possible Values: - paymentInstrument | [optional] **default** | **BOOLEAN** | Flag that indicates whether customer payment instrument is the dafault. Possible Values: - `true`: Payment instrument is customer's default. - `false`: Payment instrument is not customer's default. | [optional] **state** | **String** | Issuers state for the card number. Possible Values: - ACTIVE - CLOSED : The account has been closed. | [optional] **type** | **String** | The type of Payment Instrument. Possible Values: - cardHash | [optional] -**bank_account** | [**Tmsv2customersEmbeddedDefaultPaymentInstrumentBankAccount**](Tmsv2customersEmbeddedDefaultPaymentInstrumentBankAccount.md) | | [optional] -**card** | [**Tmsv2customersEmbeddedDefaultPaymentInstrumentCard**](Tmsv2customersEmbeddedDefaultPaymentInstrumentCard.md) | | [optional] -**buyer_information** | [**Tmsv2customersEmbeddedDefaultPaymentInstrumentBuyerInformation**](Tmsv2customersEmbeddedDefaultPaymentInstrumentBuyerInformation.md) | | [optional] -**bill_to** | [**Tmsv2customersEmbeddedDefaultPaymentInstrumentBillTo**](Tmsv2customersEmbeddedDefaultPaymentInstrumentBillTo.md) | | [optional] +**bank_account** | [**Tmsv2tokenizeTokenInformationCustomerEmbeddedDefaultPaymentInstrumentBankAccount**](Tmsv2tokenizeTokenInformationCustomerEmbeddedDefaultPaymentInstrumentBankAccount.md) | | [optional] +**card** | [**Tmsv2tokenizeTokenInformationCustomerEmbeddedDefaultPaymentInstrumentCard**](Tmsv2tokenizeTokenInformationCustomerEmbeddedDefaultPaymentInstrumentCard.md) | | [optional] +**buyer_information** | [**Tmsv2tokenizeTokenInformationCustomerEmbeddedDefaultPaymentInstrumentBuyerInformation**](Tmsv2tokenizeTokenInformationCustomerEmbeddedDefaultPaymentInstrumentBuyerInformation.md) | | [optional] +**bill_to** | [**Tmsv2tokenizeTokenInformationCustomerEmbeddedDefaultPaymentInstrumentBillTo**](Tmsv2tokenizeTokenInformationCustomerEmbeddedDefaultPaymentInstrumentBillTo.md) | | [optional] **processing_information** | [**TmsPaymentInstrumentProcessingInfo**](TmsPaymentInstrumentProcessingInfo.md) | | [optional] -**merchant_information** | [**Tmsv2customersEmbeddedDefaultPaymentInstrumentMerchantInformation**](Tmsv2customersEmbeddedDefaultPaymentInstrumentMerchantInformation.md) | | [optional] -**instrument_identifier** | [**Tmsv2customersEmbeddedDefaultPaymentInstrumentInstrumentIdentifier**](Tmsv2customersEmbeddedDefaultPaymentInstrumentInstrumentIdentifier.md) | | [optional] -**metadata** | [**Tmsv2customersEmbeddedDefaultPaymentInstrumentMetadata**](Tmsv2customersEmbeddedDefaultPaymentInstrumentMetadata.md) | | [optional] +**merchant_information** | [**TmsMerchantInformation**](TmsMerchantInformation.md) | | [optional] +**instrument_identifier** | [**Tmsv2tokenizeTokenInformationCustomerEmbeddedDefaultPaymentInstrumentInstrumentIdentifier**](Tmsv2tokenizeTokenInformationCustomerEmbeddedDefaultPaymentInstrumentInstrumentIdentifier.md) | | [optional] +**metadata** | [**Tmsv2tokenizeTokenInformationCustomerEmbeddedDefaultPaymentInstrumentMetadata**](Tmsv2tokenizeTokenInformationCustomerEmbeddedDefaultPaymentInstrumentMetadata.md) | | [optional] **_embedded** | [**PaymentInstrumentList1EmbeddedEmbedded**](PaymentInstrumentList1EmbeddedEmbedded.md) | | [optional] diff --git a/docs/PaymentInstrumentListEmbedded.md b/docs/PaymentInstrumentListEmbedded.md index 1e2c466b..7d46c7e3 100644 --- a/docs/PaymentInstrumentListEmbedded.md +++ b/docs/PaymentInstrumentListEmbedded.md @@ -3,6 +3,6 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**payment_instruments** | [**Array<Tmsv2customersEmbeddedDefaultPaymentInstrument>**](Tmsv2customersEmbeddedDefaultPaymentInstrument.md) | | [optional] +**payment_instruments** | [**Array<Tmsv2tokenizeTokenInformationCustomerEmbeddedDefaultPaymentInstrument>**](Tmsv2tokenizeTokenInformationCustomerEmbeddedDefaultPaymentInstrument.md) | | [optional] diff --git a/docs/PaymentsProducts.md b/docs/PaymentsProducts.md index 06c35385..7fa4e3b5 100644 --- a/docs/PaymentsProducts.md +++ b/docs/PaymentsProducts.md @@ -23,5 +23,6 @@ Name | Type | Description | Notes **unified_checkout** | [**PaymentsProductsUnifiedCheckout**](PaymentsProductsUnifiedCheckout.md) | | [optional] **receivables_manager** | [**PaymentsProductsTax**](PaymentsProductsTax.md) | | [optional] **service_fee** | [**PaymentsProductsServiceFee**](PaymentsProductsServiceFee.md) | | [optional] +**batch_upload** | [**PaymentsProductsTax**](PaymentsProductsTax.md) | | [optional] diff --git a/docs/PostCustomerPaymentInstrumentRequest.md b/docs/PostCustomerPaymentInstrumentRequest.md index 216f112b..bb03c07d 100644 --- a/docs/PostCustomerPaymentInstrumentRequest.md +++ b/docs/PostCustomerPaymentInstrumentRequest.md @@ -3,20 +3,20 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**_links** | [**Tmsv2customersEmbeddedDefaultPaymentInstrumentLinks**](Tmsv2customersEmbeddedDefaultPaymentInstrumentLinks.md) | | [optional] +**_links** | [**Tmsv2tokenizeTokenInformationCustomerEmbeddedDefaultPaymentInstrumentLinks**](Tmsv2tokenizeTokenInformationCustomerEmbeddedDefaultPaymentInstrumentLinks.md) | | [optional] **id** | **String** | The Id of the Payment Instrument Token. | [optional] **object** | **String** | The type. Possible Values: - paymentInstrument | [optional] **default** | **BOOLEAN** | Flag that indicates whether customer payment instrument is the dafault. Possible Values: - `true`: Payment instrument is customer's default. - `false`: Payment instrument is not customer's default. | [optional] **state** | **String** | Issuers state for the card number. Possible Values: - ACTIVE - CLOSED : The account has been closed. | [optional] **type** | **String** | The type of Payment Instrument. Possible Values: - cardHash | [optional] -**bank_account** | [**Tmsv2customersEmbeddedDefaultPaymentInstrumentBankAccount**](Tmsv2customersEmbeddedDefaultPaymentInstrumentBankAccount.md) | | [optional] -**card** | [**Tmsv2customersEmbeddedDefaultPaymentInstrumentCard**](Tmsv2customersEmbeddedDefaultPaymentInstrumentCard.md) | | [optional] -**buyer_information** | [**Tmsv2customersEmbeddedDefaultPaymentInstrumentBuyerInformation**](Tmsv2customersEmbeddedDefaultPaymentInstrumentBuyerInformation.md) | | [optional] -**bill_to** | [**Tmsv2customersEmbeddedDefaultPaymentInstrumentBillTo**](Tmsv2customersEmbeddedDefaultPaymentInstrumentBillTo.md) | | [optional] +**bank_account** | [**Tmsv2tokenizeTokenInformationCustomerEmbeddedDefaultPaymentInstrumentBankAccount**](Tmsv2tokenizeTokenInformationCustomerEmbeddedDefaultPaymentInstrumentBankAccount.md) | | [optional] +**card** | [**Tmsv2tokenizeTokenInformationCustomerEmbeddedDefaultPaymentInstrumentCard**](Tmsv2tokenizeTokenInformationCustomerEmbeddedDefaultPaymentInstrumentCard.md) | | [optional] +**buyer_information** | [**Tmsv2tokenizeTokenInformationCustomerEmbeddedDefaultPaymentInstrumentBuyerInformation**](Tmsv2tokenizeTokenInformationCustomerEmbeddedDefaultPaymentInstrumentBuyerInformation.md) | | [optional] +**bill_to** | [**Tmsv2tokenizeTokenInformationCustomerEmbeddedDefaultPaymentInstrumentBillTo**](Tmsv2tokenizeTokenInformationCustomerEmbeddedDefaultPaymentInstrumentBillTo.md) | | [optional] **processing_information** | [**TmsPaymentInstrumentProcessingInfo**](TmsPaymentInstrumentProcessingInfo.md) | | [optional] -**merchant_information** | [**Tmsv2customersEmbeddedDefaultPaymentInstrumentMerchantInformation**](Tmsv2customersEmbeddedDefaultPaymentInstrumentMerchantInformation.md) | | [optional] -**instrument_identifier** | [**Tmsv2customersEmbeddedDefaultPaymentInstrumentInstrumentIdentifier**](Tmsv2customersEmbeddedDefaultPaymentInstrumentInstrumentIdentifier.md) | | [optional] -**metadata** | [**Tmsv2customersEmbeddedDefaultPaymentInstrumentMetadata**](Tmsv2customersEmbeddedDefaultPaymentInstrumentMetadata.md) | | [optional] -**_embedded** | [**Tmsv2customersEmbeddedDefaultPaymentInstrumentEmbedded**](Tmsv2customersEmbeddedDefaultPaymentInstrumentEmbedded.md) | | [optional] +**merchant_information** | [**TmsMerchantInformation**](TmsMerchantInformation.md) | | [optional] +**instrument_identifier** | [**Tmsv2tokenizeTokenInformationCustomerEmbeddedDefaultPaymentInstrumentInstrumentIdentifier**](Tmsv2tokenizeTokenInformationCustomerEmbeddedDefaultPaymentInstrumentInstrumentIdentifier.md) | | [optional] +**metadata** | [**Tmsv2tokenizeTokenInformationCustomerEmbeddedDefaultPaymentInstrumentMetadata**](Tmsv2tokenizeTokenInformationCustomerEmbeddedDefaultPaymentInstrumentMetadata.md) | | [optional] +**_embedded** | [**Tmsv2tokenizeTokenInformationCustomerEmbeddedDefaultPaymentInstrumentEmbedded**](Tmsv2tokenizeTokenInformationCustomerEmbeddedDefaultPaymentInstrumentEmbedded.md) | | [optional] diff --git a/docs/PostCustomerRequest.md b/docs/PostCustomerRequest.md index 74621d92..d925139b 100644 --- a/docs/PostCustomerRequest.md +++ b/docs/PostCustomerRequest.md @@ -3,15 +3,15 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**_links** | [**Tmsv2customersLinks**](Tmsv2customersLinks.md) | | [optional] +**_links** | [**Tmsv2tokenizeTokenInformationCustomerLinks**](Tmsv2tokenizeTokenInformationCustomerLinks.md) | | [optional] **id** | **String** | The Id of the Customer Token. | [optional] -**object_information** | [**Tmsv2customersObjectInformation**](Tmsv2customersObjectInformation.md) | | [optional] -**buyer_information** | [**Tmsv2customersBuyerInformation**](Tmsv2customersBuyerInformation.md) | | [optional] -**client_reference_information** | [**Tmsv2customersClientReferenceInformation**](Tmsv2customersClientReferenceInformation.md) | | [optional] -**merchant_defined_information** | [**Array<Tmsv2customersMerchantDefinedInformation>**](Tmsv2customersMerchantDefinedInformation.md) | Object containing the custom data that the merchant defines. | [optional] -**default_payment_instrument** | [**Tmsv2customersDefaultPaymentInstrument**](Tmsv2customersDefaultPaymentInstrument.md) | | [optional] -**default_shipping_address** | [**Tmsv2customersDefaultShippingAddress**](Tmsv2customersDefaultShippingAddress.md) | | [optional] -**metadata** | [**Tmsv2customersMetadata**](Tmsv2customersMetadata.md) | | [optional] -**_embedded** | [**Tmsv2customersEmbedded**](Tmsv2customersEmbedded.md) | | [optional] +**object_information** | [**Tmsv2tokenizeTokenInformationCustomerObjectInformation**](Tmsv2tokenizeTokenInformationCustomerObjectInformation.md) | | [optional] +**buyer_information** | [**Tmsv2tokenizeTokenInformationCustomerBuyerInformation**](Tmsv2tokenizeTokenInformationCustomerBuyerInformation.md) | | [optional] +**client_reference_information** | [**Tmsv2tokenizeTokenInformationCustomerClientReferenceInformation**](Tmsv2tokenizeTokenInformationCustomerClientReferenceInformation.md) | | [optional] +**merchant_defined_information** | [**Array<Tmsv2tokenizeTokenInformationCustomerMerchantDefinedInformation>**](Tmsv2tokenizeTokenInformationCustomerMerchantDefinedInformation.md) | Object containing the custom data that the merchant defines. | [optional] +**default_payment_instrument** | [**Tmsv2tokenizeTokenInformationCustomerDefaultPaymentInstrument**](Tmsv2tokenizeTokenInformationCustomerDefaultPaymentInstrument.md) | | [optional] +**default_shipping_address** | [**Tmsv2tokenizeTokenInformationCustomerDefaultShippingAddress**](Tmsv2tokenizeTokenInformationCustomerDefaultShippingAddress.md) | | [optional] +**metadata** | [**Tmsv2tokenizeTokenInformationCustomerMetadata**](Tmsv2tokenizeTokenInformationCustomerMetadata.md) | | [optional] +**_embedded** | [**Tmsv2tokenizeTokenInformationCustomerEmbedded**](Tmsv2tokenizeTokenInformationCustomerEmbedded.md) | | [optional] diff --git a/docs/PostCustomerShippingAddressRequest.md b/docs/PostCustomerShippingAddressRequest.md index 7098e82c..92b4545f 100644 --- a/docs/PostCustomerShippingAddressRequest.md +++ b/docs/PostCustomerShippingAddressRequest.md @@ -3,10 +3,10 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**_links** | [**Tmsv2customersEmbeddedDefaultShippingAddressLinks**](Tmsv2customersEmbeddedDefaultShippingAddressLinks.md) | | [optional] +**_links** | [**Tmsv2tokenizeTokenInformationCustomerEmbeddedDefaultShippingAddressLinks**](Tmsv2tokenizeTokenInformationCustomerEmbeddedDefaultShippingAddressLinks.md) | | [optional] **id** | **String** | The Id of the Shipping Address Token. | [optional] **default** | **BOOLEAN** | Flag that indicates whether customer shipping address is the dafault. Possible Values: - `true`: Shipping Address is customer's default. - `false`: Shipping Address is not customer's default. | [optional] -**ship_to** | [**Tmsv2customersEmbeddedDefaultShippingAddressShipTo**](Tmsv2customersEmbeddedDefaultShippingAddressShipTo.md) | | [optional] -**metadata** | [**Tmsv2customersEmbeddedDefaultShippingAddressMetadata**](Tmsv2customersEmbeddedDefaultShippingAddressMetadata.md) | | [optional] +**ship_to** | [**Tmsv2tokenizeTokenInformationCustomerEmbeddedDefaultShippingAddressShipTo**](Tmsv2tokenizeTokenInformationCustomerEmbeddedDefaultShippingAddressShipTo.md) | | [optional] +**metadata** | [**Tmsv2tokenizeTokenInformationCustomerEmbeddedDefaultShippingAddressMetadata**](Tmsv2tokenizeTokenInformationCustomerEmbeddedDefaultShippingAddressMetadata.md) | | [optional] diff --git a/docs/PostIssuerLifeCycleSimulationRequest.md b/docs/PostIssuerLifeCycleSimulationRequest.md new file mode 100644 index 00000000..64dc32b5 --- /dev/null +++ b/docs/PostIssuerLifeCycleSimulationRequest.md @@ -0,0 +1,10 @@ +# CyberSource::PostIssuerLifeCycleSimulationRequest + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**state** | **String** | The new state of the Tokenized Card. Possible Values: - ACTIVE - SUSPENDED - DELETED | [optional] +**card** | [**Tmsv2tokenizedcardstokenizedCardIdissuerlifecycleeventsimulationsCard**](Tmsv2tokenizedcardstokenizedCardIdissuerlifecycleeventsimulationsCard.md) | | [optional] +**metadata** | [**Tmsv2tokenizedcardstokenizedCardIdissuerlifecycleeventsimulationsMetadata**](Tmsv2tokenizedcardstokenizedCardIdissuerlifecycleeventsimulationsMetadata.md) | | [optional] + + diff --git a/docs/PostPaymentInstrumentRequest.md b/docs/PostPaymentInstrumentRequest.md index e7297c67..079465f1 100644 --- a/docs/PostPaymentInstrumentRequest.md +++ b/docs/PostPaymentInstrumentRequest.md @@ -3,20 +3,20 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**_links** | [**Tmsv2customersEmbeddedDefaultPaymentInstrumentLinks**](Tmsv2customersEmbeddedDefaultPaymentInstrumentLinks.md) | | [optional] +**_links** | [**Tmsv2tokenizeTokenInformationCustomerEmbeddedDefaultPaymentInstrumentLinks**](Tmsv2tokenizeTokenInformationCustomerEmbeddedDefaultPaymentInstrumentLinks.md) | | [optional] **id** | **String** | The Id of the Payment Instrument Token. | [optional] **object** | **String** | The type. Possible Values: - paymentInstrument | [optional] **default** | **BOOLEAN** | Flag that indicates whether customer payment instrument is the dafault. Possible Values: - `true`: Payment instrument is customer's default. - `false`: Payment instrument is not customer's default. | [optional] **state** | **String** | Issuers state for the card number. Possible Values: - ACTIVE - CLOSED : The account has been closed. | [optional] **type** | **String** | The type of Payment Instrument. Possible Values: - cardHash | [optional] -**bank_account** | [**Tmsv2customersEmbeddedDefaultPaymentInstrumentBankAccount**](Tmsv2customersEmbeddedDefaultPaymentInstrumentBankAccount.md) | | [optional] -**card** | [**Tmsv2customersEmbeddedDefaultPaymentInstrumentCard**](Tmsv2customersEmbeddedDefaultPaymentInstrumentCard.md) | | [optional] -**buyer_information** | [**Tmsv2customersEmbeddedDefaultPaymentInstrumentBuyerInformation**](Tmsv2customersEmbeddedDefaultPaymentInstrumentBuyerInformation.md) | | [optional] -**bill_to** | [**Tmsv2customersEmbeddedDefaultPaymentInstrumentBillTo**](Tmsv2customersEmbeddedDefaultPaymentInstrumentBillTo.md) | | [optional] +**bank_account** | [**Tmsv2tokenizeTokenInformationCustomerEmbeddedDefaultPaymentInstrumentBankAccount**](Tmsv2tokenizeTokenInformationCustomerEmbeddedDefaultPaymentInstrumentBankAccount.md) | | [optional] +**card** | [**Tmsv2tokenizeTokenInformationCustomerEmbeddedDefaultPaymentInstrumentCard**](Tmsv2tokenizeTokenInformationCustomerEmbeddedDefaultPaymentInstrumentCard.md) | | [optional] +**buyer_information** | [**Tmsv2tokenizeTokenInformationCustomerEmbeddedDefaultPaymentInstrumentBuyerInformation**](Tmsv2tokenizeTokenInformationCustomerEmbeddedDefaultPaymentInstrumentBuyerInformation.md) | | [optional] +**bill_to** | [**Tmsv2tokenizeTokenInformationCustomerEmbeddedDefaultPaymentInstrumentBillTo**](Tmsv2tokenizeTokenInformationCustomerEmbeddedDefaultPaymentInstrumentBillTo.md) | | [optional] **processing_information** | [**TmsPaymentInstrumentProcessingInfo**](TmsPaymentInstrumentProcessingInfo.md) | | [optional] -**merchant_information** | [**Tmsv2customersEmbeddedDefaultPaymentInstrumentMerchantInformation**](Tmsv2customersEmbeddedDefaultPaymentInstrumentMerchantInformation.md) | | [optional] -**instrument_identifier** | [**Tmsv2customersEmbeddedDefaultPaymentInstrumentInstrumentIdentifier**](Tmsv2customersEmbeddedDefaultPaymentInstrumentInstrumentIdentifier.md) | | [optional] -**metadata** | [**Tmsv2customersEmbeddedDefaultPaymentInstrumentMetadata**](Tmsv2customersEmbeddedDefaultPaymentInstrumentMetadata.md) | | [optional] -**_embedded** | [**Tmsv2customersEmbeddedDefaultPaymentInstrumentEmbedded**](Tmsv2customersEmbeddedDefaultPaymentInstrumentEmbedded.md) | | [optional] +**merchant_information** | [**TmsMerchantInformation**](TmsMerchantInformation.md) | | [optional] +**instrument_identifier** | [**Tmsv2tokenizeTokenInformationCustomerEmbeddedDefaultPaymentInstrumentInstrumentIdentifier**](Tmsv2tokenizeTokenInformationCustomerEmbeddedDefaultPaymentInstrumentInstrumentIdentifier.md) | | [optional] +**metadata** | [**Tmsv2tokenizeTokenInformationCustomerEmbeddedDefaultPaymentInstrumentMetadata**](Tmsv2tokenizeTokenInformationCustomerEmbeddedDefaultPaymentInstrumentMetadata.md) | | [optional] +**_embedded** | [**Tmsv2tokenizeTokenInformationCustomerEmbeddedDefaultPaymentInstrumentEmbedded**](Tmsv2tokenizeTokenInformationCustomerEmbeddedDefaultPaymentInstrumentEmbedded.md) | | [optional] diff --git a/docs/PostTokenizeRequest.md b/docs/PostTokenizeRequest.md new file mode 100644 index 00000000..1477bca5 --- /dev/null +++ b/docs/PostTokenizeRequest.md @@ -0,0 +1,9 @@ +# CyberSource::PostTokenizeRequest + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**processing_information** | [**Tmsv2tokenizeProcessingInformation**](Tmsv2tokenizeProcessingInformation.md) | | [optional] +**token_information** | [**Tmsv2tokenizeTokenInformation**](Tmsv2tokenizeTokenInformation.md) | | [optional] + + diff --git a/docs/Ptsv2paymentsAggregatorInformation.md b/docs/Ptsv2paymentsAggregatorInformation.md index d04ea743..9a7e5836 100644 --- a/docs/Ptsv2paymentsAggregatorInformation.md +++ b/docs/Ptsv2paymentsAggregatorInformation.md @@ -11,5 +11,6 @@ Name | Type | Description | Notes **state** | **String** | Acquirer state. | [optional] **postal_code** | **String** | Acquirer postal code. | [optional] **country** | **String** | Acquirer country. | [optional] +**service_providername** | **String** | Contains transfer service provider name. | [optional] diff --git a/docs/Rbsv1plansClientReferenceInformation.md b/docs/Rbsv1plansClientReferenceInformation.md deleted file mode 100644 index d0fd219c..00000000 --- a/docs/Rbsv1plansClientReferenceInformation.md +++ /dev/null @@ -1,12 +0,0 @@ -# CyberSource::Rbsv1plansClientReferenceInformation - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**comments** | **String** | Brief description of the order or any comment you wish to add to the order. | [optional] -**partner** | [**Riskv1decisionsClientReferenceInformationPartner**](Riskv1decisionsClientReferenceInformationPartner.md) | | [optional] -**application_name** | **String** | The name of the Connection Method client (such as Virtual Terminal or SOAP Toolkit API) that the merchant uses to send a transaction request to CyberSource. | [optional] -**application_version** | **String** | Version of the CyberSource application or integration used for a transaction. | [optional] -**application_user** | **String** | The entity that is responsible for running the transaction and submitting the processing request to CyberSource. This could be a person, a system, or a connection method. | [optional] - - diff --git a/docs/Rbsv1subscriptionsClientReferenceInformation.md b/docs/Rbsv1subscriptionsClientReferenceInformation.md deleted file mode 100644 index ee86745c..00000000 --- a/docs/Rbsv1subscriptionsClientReferenceInformation.md +++ /dev/null @@ -1,13 +0,0 @@ -# CyberSource::Rbsv1subscriptionsClientReferenceInformation - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**code** | **String** | > Deprecated: This field is ignored. Merchant-generated order reference or tracking number. It is recommended that you send a unique value for each transaction so that you can perform meaningful searches for the transaction. #### Used by **Authorization** Required field. #### PIN Debit Requests for PIN debit reversals need to use the same merchant reference number that was used in the transaction that is being reversed. Required field for all PIN Debit requests (purchase, credit, and reversal). #### FDC Nashville Global Certain circumstances can cause the processor to truncate this value to 15 or 17 characters for Level II and Level III processing, which can cause a discrepancy between the value you submit and the value included in some processor reports. | [optional] -**comments** | **String** | > Deprecated: This field is ignored. Brief description of the order or any comment you wish to add to the order. | [optional] -**partner** | [**Rbsv1subscriptionsClientReferenceInformationPartner**](Rbsv1subscriptionsClientReferenceInformationPartner.md) | | [optional] -**application_name** | **String** | > Deprecated: This field is ignored. The name of the Connection Method client (such as Virtual Terminal or SOAP Toolkit API) that the merchant uses to send a transaction request to CyberSource. | [optional] -**application_version** | **String** | > Deprecated: This field is ignored. Version of the CyberSource application or integration used for a transaction. | [optional] -**application_user** | **String** | > Deprecated: This field is ignored. The entity that is responsible for running the transaction and submitting the processing request to CyberSource. This could be a person, a system, or a connection method. | [optional] - - diff --git a/docs/Rbsv1subscriptionsClientReferenceInformationPartner.md b/docs/Rbsv1subscriptionsClientReferenceInformationPartner.md deleted file mode 100644 index 75f330c9..00000000 --- a/docs/Rbsv1subscriptionsClientReferenceInformationPartner.md +++ /dev/null @@ -1,9 +0,0 @@ -# CyberSource::Rbsv1subscriptionsClientReferenceInformationPartner - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**developer_id** | **String** | > This field is ignored when you provide the `subscriptionInformation.originalTransactionId` or update the subscription. Identifier for the developer that helped integrate a partner solution to CyberSource. Send this value in all requests that are sent through the partner solutions built by that developer. CyberSource assigns the ID to the developer. **Note** When you see a developer ID of 999 in reports, the developer ID that was submitted is incorrect. | [optional] -**solution_id** | **String** | > This field is ignored when you provide the `subscriptionInformation.originalTransactionId` or update the subscription. Identifier for the partner that is integrated to CyberSource. Send this value in all requests that are sent through the partner solution. CyberSource assigns the ID to the partner. **Note** When you see a solutionId of 999 in reports, the solutionId that was submitted is incorrect. | [optional] - - diff --git a/docs/ShippingAddressListForCustomerEmbedded.md b/docs/ShippingAddressListForCustomerEmbedded.md index f60cd36f..241d7922 100644 --- a/docs/ShippingAddressListForCustomerEmbedded.md +++ b/docs/ShippingAddressListForCustomerEmbedded.md @@ -3,6 +3,6 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**shipping_addresses** | [**Array<Tmsv2customersEmbeddedDefaultShippingAddress>**](Tmsv2customersEmbeddedDefaultShippingAddress.md) | | [optional] +**shipping_addresses** | [**Array<Tmsv2tokenizeTokenInformationCustomerEmbeddedDefaultShippingAddress>**](Tmsv2tokenizeTokenInformationCustomerEmbeddedDefaultShippingAddress.md) | | [optional] diff --git a/docs/SubscriptionsApi.md b/docs/SubscriptionsApi.md index 855c6863..6373d496 100644 --- a/docs/SubscriptionsApi.md +++ b/docs/SubscriptionsApi.md @@ -4,7 +4,7 @@ All URIs are relative to *https://apitest.cybersource.com* Method | HTTP request | Description ------------- | ------------- | ------------- -[**activate_subscription**](SubscriptionsApi.md#activate_subscription) | **POST** /rbs/v1/subscriptions/{id}/activate | Activate a Subscription +[**activate_subscription**](SubscriptionsApi.md#activate_subscription) | **POST** /rbs/v1/subscriptions/{id}/activate | Reactivating a Suspended Subscription [**cancel_subscription**](SubscriptionsApi.md#cancel_subscription) | **POST** /rbs/v1/subscriptions/{id}/cancel | Cancel a Subscription [**create_subscription**](SubscriptionsApi.md#create_subscription) | **POST** /rbs/v1/subscriptions | Create a Subscription [**get_all_subscriptions**](SubscriptionsApi.md#get_all_subscriptions) | **GET** /rbs/v1/subscriptions | Get a List of Subscriptions @@ -17,9 +17,9 @@ Method | HTTP request | Description # **activate_subscription** > ActivateSubscriptionResponse activate_subscription(id, opts) -Activate a Subscription +Reactivating a Suspended Subscription -Activate a `SUSPENDED` Subscription +# Reactivating a Suspended Subscription You can reactivate a suspended subscription for the next billing cycle. You cannot reactivate a canceled or completed subscription. You can specify whether you want to process missed payments for the period during which the subscription was suspended using the `processMissedPayments` query parameter by setting it to true or false. If no value is specified, the system will default to `true`. **Important:** The \"processMissedPayments\" query parameter is only effective when the Ask each time before reactivating option is selected in the reactivation settings. If any other option is chosen, the value provided in the request will be ignored by the system. For more information, see the [Recurring Billing User Guide](https://developer.cybersource.com/docs/cybs/en-us/recurring-billing/user/all/rest/recurring-billing-user/recurring-billing-user-about-guide.html). You can check how many payments were missed and the total amount by retrieving the subscription details, where you will find the `reactivationInformation` object. See: [Retrieving a Subscription](https://developer.cybersource.com/docs/cybs/en-us/recurring-billing/developer/all/rest/recurring-billing-dev/recur-bill-subscriptions/recur-bill-getting-a-subscription.html). ### Example ```ruby @@ -31,11 +31,11 @@ api_instance = CyberSource::SubscriptionsApi.new id = 'id_example' # String | Subscription Id opts = { - process_skipped_payments: true # BOOLEAN | Indicates if skipped payments should be processed from the period when the subscription was suspended. By default, this is set to true. + process_missed_payments: true # BOOLEAN | Indicates if missed payments should be processed from the period when the subscription was suspended. By default, this is set to true. When any option other than \"Ask each time before reactivating\" is selected in the reactivation settings, the value that you enter will be ignored. } begin - #Activate a Subscription + #Reactivating a Suspended Subscription result = api_instance.activate_subscription(id, opts) p result rescue CyberSource::ApiError => e @@ -48,7 +48,7 @@ end Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **id** | **String**| Subscription Id | - **process_skipped_payments** | **BOOLEAN**| Indicates if skipped payments should be processed from the period when the subscription was suspended. By default, this is set to true. | [optional] [default to true] + **process_missed_payments** | **BOOLEAN**| Indicates if missed payments should be processed from the period when the subscription was suspended. By default, this is set to true. When any option other than \"Ask each time before reactivating\" is selected in the reactivation settings, the value that you enter will be ignored. | [optional] [default to true] ### Return type @@ -306,7 +306,7 @@ No authorization required Suspend a Subscription -Suspend a Subscription +Suspend a Subscription ### Example ```ruby diff --git a/docs/TmsMerchantInformation.md b/docs/TmsMerchantInformation.md new file mode 100644 index 00000000..e110a7de --- /dev/null +++ b/docs/TmsMerchantInformation.md @@ -0,0 +1,8 @@ +# CyberSource::TmsMerchantInformation + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**merchant_descriptor** | [**TmsMerchantInformationMerchantDescriptor**](TmsMerchantInformationMerchantDescriptor.md) | | [optional] + + diff --git a/docs/Tmsv2customersEmbeddedDefaultPaymentInstrumentMerchantInformationMerchantDescriptor.md b/docs/TmsMerchantInformationMerchantDescriptor.md similarity index 83% rename from docs/Tmsv2customersEmbeddedDefaultPaymentInstrumentMerchantInformationMerchantDescriptor.md rename to docs/TmsMerchantInformationMerchantDescriptor.md index a9d9e1ce..4b73af66 100644 --- a/docs/Tmsv2customersEmbeddedDefaultPaymentInstrumentMerchantInformationMerchantDescriptor.md +++ b/docs/TmsMerchantInformationMerchantDescriptor.md @@ -1,4 +1,4 @@ -# CyberSource::Tmsv2customersEmbeddedDefaultPaymentInstrumentMerchantInformationMerchantDescriptor +# CyberSource::TmsMerchantInformationMerchantDescriptor ## Properties Name | Type | Description | Notes diff --git a/docs/Tmsv2customersEmbedded.md b/docs/Tmsv2customersEmbedded.md deleted file mode 100644 index bb98aa64..00000000 --- a/docs/Tmsv2customersEmbedded.md +++ /dev/null @@ -1,9 +0,0 @@ -# CyberSource::Tmsv2customersEmbedded - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**default_payment_instrument** | [**Tmsv2customersEmbeddedDefaultPaymentInstrument**](Tmsv2customersEmbeddedDefaultPaymentInstrument.md) | | [optional] -**default_shipping_address** | [**Tmsv2customersEmbeddedDefaultShippingAddress**](Tmsv2customersEmbeddedDefaultShippingAddress.md) | | [optional] - - diff --git a/docs/Tmsv2customersEmbeddedDefaultPaymentInstrument.md b/docs/Tmsv2customersEmbeddedDefaultPaymentInstrument.md deleted file mode 100644 index 93e130d6..00000000 --- a/docs/Tmsv2customersEmbeddedDefaultPaymentInstrument.md +++ /dev/null @@ -1,22 +0,0 @@ -# CyberSource::Tmsv2customersEmbeddedDefaultPaymentInstrument - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**_links** | [**Tmsv2customersEmbeddedDefaultPaymentInstrumentLinks**](Tmsv2customersEmbeddedDefaultPaymentInstrumentLinks.md) | | [optional] -**id** | **String** | The Id of the Payment Instrument Token. | [optional] -**object** | **String** | The type. Possible Values: - paymentInstrument | [optional] -**default** | **BOOLEAN** | Flag that indicates whether customer payment instrument is the dafault. Possible Values: - `true`: Payment instrument is customer's default. - `false`: Payment instrument is not customer's default. | [optional] -**state** | **String** | Issuers state for the card number. Possible Values: - ACTIVE - CLOSED : The account has been closed. | [optional] -**type** | **String** | The type of Payment Instrument. Possible Values: - cardHash | [optional] -**bank_account** | [**Tmsv2customersEmbeddedDefaultPaymentInstrumentBankAccount**](Tmsv2customersEmbeddedDefaultPaymentInstrumentBankAccount.md) | | [optional] -**card** | [**Tmsv2customersEmbeddedDefaultPaymentInstrumentCard**](Tmsv2customersEmbeddedDefaultPaymentInstrumentCard.md) | | [optional] -**buyer_information** | [**Tmsv2customersEmbeddedDefaultPaymentInstrumentBuyerInformation**](Tmsv2customersEmbeddedDefaultPaymentInstrumentBuyerInformation.md) | | [optional] -**bill_to** | [**Tmsv2customersEmbeddedDefaultPaymentInstrumentBillTo**](Tmsv2customersEmbeddedDefaultPaymentInstrumentBillTo.md) | | [optional] -**processing_information** | [**TmsPaymentInstrumentProcessingInfo**](TmsPaymentInstrumentProcessingInfo.md) | | [optional] -**merchant_information** | [**Tmsv2customersEmbeddedDefaultPaymentInstrumentMerchantInformation**](Tmsv2customersEmbeddedDefaultPaymentInstrumentMerchantInformation.md) | | [optional] -**instrument_identifier** | [**Tmsv2customersEmbeddedDefaultPaymentInstrumentInstrumentIdentifier**](Tmsv2customersEmbeddedDefaultPaymentInstrumentInstrumentIdentifier.md) | | [optional] -**metadata** | [**Tmsv2customersEmbeddedDefaultPaymentInstrumentMetadata**](Tmsv2customersEmbeddedDefaultPaymentInstrumentMetadata.md) | | [optional] -**_embedded** | [**Tmsv2customersEmbeddedDefaultPaymentInstrumentEmbedded**](Tmsv2customersEmbeddedDefaultPaymentInstrumentEmbedded.md) | | [optional] - - diff --git a/docs/Tmsv2customersEmbeddedDefaultPaymentInstrumentBuyerInformationPersonalIdentification.md b/docs/Tmsv2customersEmbeddedDefaultPaymentInstrumentBuyerInformationPersonalIdentification.md deleted file mode 100644 index 1d68763e..00000000 --- a/docs/Tmsv2customersEmbeddedDefaultPaymentInstrumentBuyerInformationPersonalIdentification.md +++ /dev/null @@ -1,10 +0,0 @@ -# CyberSource::Tmsv2customersEmbeddedDefaultPaymentInstrumentBuyerInformationPersonalIdentification - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**id** | **String** | The value of the identification type. | [optional] -**type** | **String** | The type of the identification. Possible Values: - driver license | [optional] -**issued_by** | [**Tmsv2customersEmbeddedDefaultPaymentInstrumentBuyerInformationIssuedBy**](Tmsv2customersEmbeddedDefaultPaymentInstrumentBuyerInformationIssuedBy.md) | | [optional] - - diff --git a/docs/Tmsv2customersEmbeddedDefaultPaymentInstrumentLinks.md b/docs/Tmsv2customersEmbeddedDefaultPaymentInstrumentLinks.md deleted file mode 100644 index 1bf84da0..00000000 --- a/docs/Tmsv2customersEmbeddedDefaultPaymentInstrumentLinks.md +++ /dev/null @@ -1,9 +0,0 @@ -# CyberSource::Tmsv2customersEmbeddedDefaultPaymentInstrumentLinks - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**_self** | [**Tmsv2customersEmbeddedDefaultPaymentInstrumentLinksSelf**](Tmsv2customersEmbeddedDefaultPaymentInstrumentLinksSelf.md) | | [optional] -**customer** | [**Tmsv2customersLinksSelf**](Tmsv2customersLinksSelf.md) | | [optional] - - diff --git a/docs/Tmsv2customersEmbeddedDefaultPaymentInstrumentMerchantInformation.md b/docs/Tmsv2customersEmbeddedDefaultPaymentInstrumentMerchantInformation.md deleted file mode 100644 index 03772764..00000000 --- a/docs/Tmsv2customersEmbeddedDefaultPaymentInstrumentMerchantInformation.md +++ /dev/null @@ -1,8 +0,0 @@ -# CyberSource::Tmsv2customersEmbeddedDefaultPaymentInstrumentMerchantInformation - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**merchant_descriptor** | [**Tmsv2customersEmbeddedDefaultPaymentInstrumentMerchantInformationMerchantDescriptor**](Tmsv2customersEmbeddedDefaultPaymentInstrumentMerchantInformationMerchantDescriptor.md) | | [optional] - - diff --git a/docs/Tmsv2customersEmbeddedDefaultShippingAddress.md b/docs/Tmsv2customersEmbeddedDefaultShippingAddress.md deleted file mode 100644 index 0402db12..00000000 --- a/docs/Tmsv2customersEmbeddedDefaultShippingAddress.md +++ /dev/null @@ -1,12 +0,0 @@ -# CyberSource::Tmsv2customersEmbeddedDefaultShippingAddress - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**_links** | [**Tmsv2customersEmbeddedDefaultShippingAddressLinks**](Tmsv2customersEmbeddedDefaultShippingAddressLinks.md) | | [optional] -**id** | **String** | The Id of the Shipping Address Token. | [optional] -**default** | **BOOLEAN** | Flag that indicates whether customer shipping address is the dafault. Possible Values: - `true`: Shipping Address is customer's default. - `false`: Shipping Address is not customer's default. | [optional] -**ship_to** | [**Tmsv2customersEmbeddedDefaultShippingAddressShipTo**](Tmsv2customersEmbeddedDefaultShippingAddressShipTo.md) | | [optional] -**metadata** | [**Tmsv2customersEmbeddedDefaultShippingAddressMetadata**](Tmsv2customersEmbeddedDefaultShippingAddressMetadata.md) | | [optional] - - diff --git a/docs/Tmsv2customersEmbeddedDefaultShippingAddressLinks.md b/docs/Tmsv2customersEmbeddedDefaultShippingAddressLinks.md deleted file mode 100644 index 6d92c4c9..00000000 --- a/docs/Tmsv2customersEmbeddedDefaultShippingAddressLinks.md +++ /dev/null @@ -1,9 +0,0 @@ -# CyberSource::Tmsv2customersEmbeddedDefaultShippingAddressLinks - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**_self** | [**Tmsv2customersEmbeddedDefaultShippingAddressLinksSelf**](Tmsv2customersEmbeddedDefaultShippingAddressLinksSelf.md) | | [optional] -**customer** | [**Tmsv2customersEmbeddedDefaultShippingAddressLinksCustomer**](Tmsv2customersEmbeddedDefaultShippingAddressLinksCustomer.md) | | [optional] - - diff --git a/docs/Tmsv2customersLinks.md b/docs/Tmsv2customersLinks.md deleted file mode 100644 index b594ad5a..00000000 --- a/docs/Tmsv2customersLinks.md +++ /dev/null @@ -1,10 +0,0 @@ -# CyberSource::Tmsv2customersLinks - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**_self** | [**Tmsv2customersLinksSelf**](Tmsv2customersLinksSelf.md) | | [optional] -**payment_instruments** | [**Tmsv2customersLinksPaymentInstruments**](Tmsv2customersLinksPaymentInstruments.md) | | [optional] -**shipping_address** | [**Tmsv2customersLinksShippingAddress**](Tmsv2customersLinksShippingAddress.md) | | [optional] - - diff --git a/docs/Tmsv2tokenizeProcessingInformation.md b/docs/Tmsv2tokenizeProcessingInformation.md new file mode 100644 index 00000000..d3f37221 --- /dev/null +++ b/docs/Tmsv2tokenizeProcessingInformation.md @@ -0,0 +1,9 @@ +# CyberSource::Tmsv2tokenizeProcessingInformation + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**action_list** | **Array<String>** | Array of actions (one or more) to be included in the tokenize request. Possible Values: - `TOKEN_CREATE`: Use this when you want to create a token from the card/bank data in your tokenize request. | [optional] +**action_token_types** | **Array<String>** | TMS tokens types you want to perform the action on. Possible Values: - customer - paymentInstrument - instrumentIdentifier - shippingAddress - tokenizedCard | [optional] + + diff --git a/docs/Tmsv2tokenizeTokenInformation.md b/docs/Tmsv2tokenizeTokenInformation.md new file mode 100644 index 00000000..ef1f1f01 --- /dev/null +++ b/docs/Tmsv2tokenizeTokenInformation.md @@ -0,0 +1,13 @@ +# CyberSource::Tmsv2tokenizeTokenInformation + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**jti** | **String** | TMS Transient Token, 64 hexadecimal id value representing captured payment credentials (including Sensitive Authentication Data, e.g. CVV). | [optional] +**transient_token_jwt** | **String** | Flex API Transient Token encoded as JWT (JSON Web Token), e.g. Flex microform or Unified Payment checkout result. | [optional] +**customer** | [**Tmsv2tokenizeTokenInformationCustomer**](Tmsv2tokenizeTokenInformationCustomer.md) | | [optional] +**shipping_address** | [**Tmsv2tokenizeTokenInformationCustomerEmbeddedDefaultShippingAddress**](Tmsv2tokenizeTokenInformationCustomerEmbeddedDefaultShippingAddress.md) | | [optional] +**payment_instrument** | [**Tmsv2tokenizeTokenInformationCustomerEmbeddedDefaultPaymentInstrument**](Tmsv2tokenizeTokenInformationCustomerEmbeddedDefaultPaymentInstrument.md) | | [optional] +**instrument_identifier** | [**TmsEmbeddedInstrumentIdentifier**](TmsEmbeddedInstrumentIdentifier.md) | | [optional] + + diff --git a/docs/Tmsv2tokenizeTokenInformationCustomer.md b/docs/Tmsv2tokenizeTokenInformationCustomer.md new file mode 100644 index 00000000..37be28fc --- /dev/null +++ b/docs/Tmsv2tokenizeTokenInformationCustomer.md @@ -0,0 +1,17 @@ +# CyberSource::Tmsv2tokenizeTokenInformationCustomer + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**_links** | [**Tmsv2tokenizeTokenInformationCustomerLinks**](Tmsv2tokenizeTokenInformationCustomerLinks.md) | | [optional] +**id** | **String** | The Id of the Customer Token. | [optional] +**object_information** | [**Tmsv2tokenizeTokenInformationCustomerObjectInformation**](Tmsv2tokenizeTokenInformationCustomerObjectInformation.md) | | [optional] +**buyer_information** | [**Tmsv2tokenizeTokenInformationCustomerBuyerInformation**](Tmsv2tokenizeTokenInformationCustomerBuyerInformation.md) | | [optional] +**client_reference_information** | [**Tmsv2tokenizeTokenInformationCustomerClientReferenceInformation**](Tmsv2tokenizeTokenInformationCustomerClientReferenceInformation.md) | | [optional] +**merchant_defined_information** | [**Array<Tmsv2tokenizeTokenInformationCustomerMerchantDefinedInformation>**](Tmsv2tokenizeTokenInformationCustomerMerchantDefinedInformation.md) | Object containing the custom data that the merchant defines. | [optional] +**default_payment_instrument** | [**Tmsv2tokenizeTokenInformationCustomerDefaultPaymentInstrument**](Tmsv2tokenizeTokenInformationCustomerDefaultPaymentInstrument.md) | | [optional] +**default_shipping_address** | [**Tmsv2tokenizeTokenInformationCustomerDefaultShippingAddress**](Tmsv2tokenizeTokenInformationCustomerDefaultShippingAddress.md) | | [optional] +**metadata** | [**Tmsv2tokenizeTokenInformationCustomerMetadata**](Tmsv2tokenizeTokenInformationCustomerMetadata.md) | | [optional] +**_embedded** | [**Tmsv2tokenizeTokenInformationCustomerEmbedded**](Tmsv2tokenizeTokenInformationCustomerEmbedded.md) | | [optional] + + diff --git a/docs/Tmsv2customersBuyerInformation.md b/docs/Tmsv2tokenizeTokenInformationCustomerBuyerInformation.md similarity index 81% rename from docs/Tmsv2customersBuyerInformation.md rename to docs/Tmsv2tokenizeTokenInformationCustomerBuyerInformation.md index 6001e029..2dcde505 100644 --- a/docs/Tmsv2customersBuyerInformation.md +++ b/docs/Tmsv2tokenizeTokenInformationCustomerBuyerInformation.md @@ -1,4 +1,4 @@ -# CyberSource::Tmsv2customersBuyerInformation +# CyberSource::Tmsv2tokenizeTokenInformationCustomerBuyerInformation ## Properties Name | Type | Description | Notes diff --git a/docs/Tmsv2customersClientReferenceInformation.md b/docs/Tmsv2tokenizeTokenInformationCustomerClientReferenceInformation.md similarity index 72% rename from docs/Tmsv2customersClientReferenceInformation.md rename to docs/Tmsv2tokenizeTokenInformationCustomerClientReferenceInformation.md index b25cb014..4d017340 100644 --- a/docs/Tmsv2customersClientReferenceInformation.md +++ b/docs/Tmsv2tokenizeTokenInformationCustomerClientReferenceInformation.md @@ -1,4 +1,4 @@ -# CyberSource::Tmsv2customersClientReferenceInformation +# CyberSource::Tmsv2tokenizeTokenInformationCustomerClientReferenceInformation ## Properties Name | Type | Description | Notes diff --git a/docs/Tmsv2customersDefaultPaymentInstrument.md b/docs/Tmsv2tokenizeTokenInformationCustomerDefaultPaymentInstrument.md similarity index 72% rename from docs/Tmsv2customersDefaultPaymentInstrument.md rename to docs/Tmsv2tokenizeTokenInformationCustomerDefaultPaymentInstrument.md index eb1b86ef..45f4e6d5 100644 --- a/docs/Tmsv2customersDefaultPaymentInstrument.md +++ b/docs/Tmsv2tokenizeTokenInformationCustomerDefaultPaymentInstrument.md @@ -1,4 +1,4 @@ -# CyberSource::Tmsv2customersDefaultPaymentInstrument +# CyberSource::Tmsv2tokenizeTokenInformationCustomerDefaultPaymentInstrument ## Properties Name | Type | Description | Notes diff --git a/docs/Tmsv2customersDefaultShippingAddress.md b/docs/Tmsv2tokenizeTokenInformationCustomerDefaultShippingAddress.md similarity index 72% rename from docs/Tmsv2customersDefaultShippingAddress.md rename to docs/Tmsv2tokenizeTokenInformationCustomerDefaultShippingAddress.md index e14c5db3..e29cb762 100644 --- a/docs/Tmsv2customersDefaultShippingAddress.md +++ b/docs/Tmsv2tokenizeTokenInformationCustomerDefaultShippingAddress.md @@ -1,4 +1,4 @@ -# CyberSource::Tmsv2customersDefaultShippingAddress +# CyberSource::Tmsv2tokenizeTokenInformationCustomerDefaultShippingAddress ## Properties Name | Type | Description | Notes diff --git a/docs/Tmsv2tokenizeTokenInformationCustomerEmbedded.md b/docs/Tmsv2tokenizeTokenInformationCustomerEmbedded.md new file mode 100644 index 00000000..c209f32c --- /dev/null +++ b/docs/Tmsv2tokenizeTokenInformationCustomerEmbedded.md @@ -0,0 +1,9 @@ +# CyberSource::Tmsv2tokenizeTokenInformationCustomerEmbedded + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**default_payment_instrument** | [**Tmsv2tokenizeTokenInformationCustomerEmbeddedDefaultPaymentInstrument**](Tmsv2tokenizeTokenInformationCustomerEmbeddedDefaultPaymentInstrument.md) | | [optional] +**default_shipping_address** | [**Tmsv2tokenizeTokenInformationCustomerEmbeddedDefaultShippingAddress**](Tmsv2tokenizeTokenInformationCustomerEmbeddedDefaultShippingAddress.md) | | [optional] + + diff --git a/docs/Tmsv2tokenizeTokenInformationCustomerEmbeddedDefaultPaymentInstrument.md b/docs/Tmsv2tokenizeTokenInformationCustomerEmbeddedDefaultPaymentInstrument.md new file mode 100644 index 00000000..a28faede --- /dev/null +++ b/docs/Tmsv2tokenizeTokenInformationCustomerEmbeddedDefaultPaymentInstrument.md @@ -0,0 +1,22 @@ +# CyberSource::Tmsv2tokenizeTokenInformationCustomerEmbeddedDefaultPaymentInstrument + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**_links** | [**Tmsv2tokenizeTokenInformationCustomerEmbeddedDefaultPaymentInstrumentLinks**](Tmsv2tokenizeTokenInformationCustomerEmbeddedDefaultPaymentInstrumentLinks.md) | | [optional] +**id** | **String** | The Id of the Payment Instrument Token. | [optional] +**object** | **String** | The type. Possible Values: - paymentInstrument | [optional] +**default** | **BOOLEAN** | Flag that indicates whether customer payment instrument is the dafault. Possible Values: - `true`: Payment instrument is customer's default. - `false`: Payment instrument is not customer's default. | [optional] +**state** | **String** | Issuers state for the card number. Possible Values: - ACTIVE - CLOSED : The account has been closed. | [optional] +**type** | **String** | The type of Payment Instrument. Possible Values: - cardHash | [optional] +**bank_account** | [**Tmsv2tokenizeTokenInformationCustomerEmbeddedDefaultPaymentInstrumentBankAccount**](Tmsv2tokenizeTokenInformationCustomerEmbeddedDefaultPaymentInstrumentBankAccount.md) | | [optional] +**card** | [**Tmsv2tokenizeTokenInformationCustomerEmbeddedDefaultPaymentInstrumentCard**](Tmsv2tokenizeTokenInformationCustomerEmbeddedDefaultPaymentInstrumentCard.md) | | [optional] +**buyer_information** | [**Tmsv2tokenizeTokenInformationCustomerEmbeddedDefaultPaymentInstrumentBuyerInformation**](Tmsv2tokenizeTokenInformationCustomerEmbeddedDefaultPaymentInstrumentBuyerInformation.md) | | [optional] +**bill_to** | [**Tmsv2tokenizeTokenInformationCustomerEmbeddedDefaultPaymentInstrumentBillTo**](Tmsv2tokenizeTokenInformationCustomerEmbeddedDefaultPaymentInstrumentBillTo.md) | | [optional] +**processing_information** | [**TmsPaymentInstrumentProcessingInfo**](TmsPaymentInstrumentProcessingInfo.md) | | [optional] +**merchant_information** | [**TmsMerchantInformation**](TmsMerchantInformation.md) | | [optional] +**instrument_identifier** | [**Tmsv2tokenizeTokenInformationCustomerEmbeddedDefaultPaymentInstrumentInstrumentIdentifier**](Tmsv2tokenizeTokenInformationCustomerEmbeddedDefaultPaymentInstrumentInstrumentIdentifier.md) | | [optional] +**metadata** | [**Tmsv2tokenizeTokenInformationCustomerEmbeddedDefaultPaymentInstrumentMetadata**](Tmsv2tokenizeTokenInformationCustomerEmbeddedDefaultPaymentInstrumentMetadata.md) | | [optional] +**_embedded** | [**Tmsv2tokenizeTokenInformationCustomerEmbeddedDefaultPaymentInstrumentEmbedded**](Tmsv2tokenizeTokenInformationCustomerEmbeddedDefaultPaymentInstrumentEmbedded.md) | | [optional] + + diff --git a/docs/Tmsv2customersEmbeddedDefaultPaymentInstrumentBankAccount.md b/docs/Tmsv2tokenizeTokenInformationCustomerEmbeddedDefaultPaymentInstrumentBankAccount.md similarity index 78% rename from docs/Tmsv2customersEmbeddedDefaultPaymentInstrumentBankAccount.md rename to docs/Tmsv2tokenizeTokenInformationCustomerEmbeddedDefaultPaymentInstrumentBankAccount.md index a38353d9..8c71b150 100644 --- a/docs/Tmsv2customersEmbeddedDefaultPaymentInstrumentBankAccount.md +++ b/docs/Tmsv2tokenizeTokenInformationCustomerEmbeddedDefaultPaymentInstrumentBankAccount.md @@ -1,4 +1,4 @@ -# CyberSource::Tmsv2customersEmbeddedDefaultPaymentInstrumentBankAccount +# CyberSource::Tmsv2tokenizeTokenInformationCustomerEmbeddedDefaultPaymentInstrumentBankAccount ## Properties Name | Type | Description | Notes diff --git a/docs/Tmsv2customersEmbeddedDefaultPaymentInstrumentBillTo.md b/docs/Tmsv2tokenizeTokenInformationCustomerEmbeddedDefaultPaymentInstrumentBillTo.md similarity index 94% rename from docs/Tmsv2customersEmbeddedDefaultPaymentInstrumentBillTo.md rename to docs/Tmsv2tokenizeTokenInformationCustomerEmbeddedDefaultPaymentInstrumentBillTo.md index 97f51227..f51c8f24 100644 --- a/docs/Tmsv2customersEmbeddedDefaultPaymentInstrumentBillTo.md +++ b/docs/Tmsv2tokenizeTokenInformationCustomerEmbeddedDefaultPaymentInstrumentBillTo.md @@ -1,4 +1,4 @@ -# CyberSource::Tmsv2customersEmbeddedDefaultPaymentInstrumentBillTo +# CyberSource::Tmsv2tokenizeTokenInformationCustomerEmbeddedDefaultPaymentInstrumentBillTo ## Properties Name | Type | Description | Notes diff --git a/docs/Tmsv2customersEmbeddedDefaultPaymentInstrumentBuyerInformation.md b/docs/Tmsv2tokenizeTokenInformationCustomerEmbeddedDefaultPaymentInstrumentBuyerInformation.md similarity index 77% rename from docs/Tmsv2customersEmbeddedDefaultPaymentInstrumentBuyerInformation.md rename to docs/Tmsv2tokenizeTokenInformationCustomerEmbeddedDefaultPaymentInstrumentBuyerInformation.md index 97f244bc..0b5f12ad 100644 --- a/docs/Tmsv2customersEmbeddedDefaultPaymentInstrumentBuyerInformation.md +++ b/docs/Tmsv2tokenizeTokenInformationCustomerEmbeddedDefaultPaymentInstrumentBuyerInformation.md @@ -1,4 +1,4 @@ -# CyberSource::Tmsv2customersEmbeddedDefaultPaymentInstrumentBuyerInformation +# CyberSource::Tmsv2tokenizeTokenInformationCustomerEmbeddedDefaultPaymentInstrumentBuyerInformation ## Properties Name | Type | Description | Notes @@ -6,6 +6,6 @@ Name | Type | Description | Notes **company_tax_id** | **String** | Company's tax identifier. This is only used for eCheck service. | [optional] **currency** | **String** | Currency used for the order. Use the three-character I[ISO Standard Currency Codes.](http://apps.cybersource.com/library/documentation/sbc/quickref/currencies.pdf) For an authorization reversal (`reversalInformation`) or a capture (`processingOptions.capture` is set to `true`), you must use the same currency that you used in your payment authorization request. #### DCC for First Data Your local currency. For details, see the `currency` field description in [Dynamic Currency Conversion For First Data Using the SCMP API](http://apps.cybersource.com/library/documentation/dev_guides/DCC_FirstData_SCMP/DCC_FirstData_SCMP_API.pdf). # For details about currency as used in partial authorizations, see \"Features for Debit Cards and Prepaid Cards\" in the [Credit Card Services Using the SCMP API Guide](https://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html/) | [optional] **date_of_birth** | **Date** | Date of birth of the customer. Format: YYYY-MM-DD | [optional] -**personal_identification** | [**Array<Tmsv2customersEmbeddedDefaultPaymentInstrumentBuyerInformationPersonalIdentification>**](Tmsv2customersEmbeddedDefaultPaymentInstrumentBuyerInformationPersonalIdentification.md) | | [optional] +**personal_identification** | [**Array<Tmsv2tokenizeTokenInformationCustomerEmbeddedDefaultPaymentInstrumentBuyerInformationPersonalIdentification>**](Tmsv2tokenizeTokenInformationCustomerEmbeddedDefaultPaymentInstrumentBuyerInformationPersonalIdentification.md) | | [optional] diff --git a/docs/Tmsv2customersEmbeddedDefaultPaymentInstrumentBuyerInformationIssuedBy.md b/docs/Tmsv2tokenizeTokenInformationCustomerEmbeddedDefaultPaymentInstrumentBuyerInformationIssuedBy.md similarity index 75% rename from docs/Tmsv2customersEmbeddedDefaultPaymentInstrumentBuyerInformationIssuedBy.md rename to docs/Tmsv2tokenizeTokenInformationCustomerEmbeddedDefaultPaymentInstrumentBuyerInformationIssuedBy.md index 5e1f8264..6e025c47 100644 --- a/docs/Tmsv2customersEmbeddedDefaultPaymentInstrumentBuyerInformationIssuedBy.md +++ b/docs/Tmsv2tokenizeTokenInformationCustomerEmbeddedDefaultPaymentInstrumentBuyerInformationIssuedBy.md @@ -1,4 +1,4 @@ -# CyberSource::Tmsv2customersEmbeddedDefaultPaymentInstrumentBuyerInformationIssuedBy +# CyberSource::Tmsv2tokenizeTokenInformationCustomerEmbeddedDefaultPaymentInstrumentBuyerInformationIssuedBy ## Properties Name | Type | Description | Notes diff --git a/docs/Tmsv2tokenizeTokenInformationCustomerEmbeddedDefaultPaymentInstrumentBuyerInformationPersonalIdentification.md b/docs/Tmsv2tokenizeTokenInformationCustomerEmbeddedDefaultPaymentInstrumentBuyerInformationPersonalIdentification.md new file mode 100644 index 00000000..9d56dad3 --- /dev/null +++ b/docs/Tmsv2tokenizeTokenInformationCustomerEmbeddedDefaultPaymentInstrumentBuyerInformationPersonalIdentification.md @@ -0,0 +1,10 @@ +# CyberSource::Tmsv2tokenizeTokenInformationCustomerEmbeddedDefaultPaymentInstrumentBuyerInformationPersonalIdentification + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**id** | **String** | The value of the identification type. | [optional] +**type** | **String** | The type of the identification. Possible Values: - driver license | [optional] +**issued_by** | [**Tmsv2tokenizeTokenInformationCustomerEmbeddedDefaultPaymentInstrumentBuyerInformationIssuedBy**](Tmsv2tokenizeTokenInformationCustomerEmbeddedDefaultPaymentInstrumentBuyerInformationIssuedBy.md) | | [optional] + + diff --git a/docs/Tmsv2customersEmbeddedDefaultPaymentInstrumentCard.md b/docs/Tmsv2tokenizeTokenInformationCustomerEmbeddedDefaultPaymentInstrumentCard.md similarity index 91% rename from docs/Tmsv2customersEmbeddedDefaultPaymentInstrumentCard.md rename to docs/Tmsv2tokenizeTokenInformationCustomerEmbeddedDefaultPaymentInstrumentCard.md index 68a3e0c8..3f3f1b63 100644 --- a/docs/Tmsv2customersEmbeddedDefaultPaymentInstrumentCard.md +++ b/docs/Tmsv2tokenizeTokenInformationCustomerEmbeddedDefaultPaymentInstrumentCard.md @@ -1,4 +1,4 @@ -# CyberSource::Tmsv2customersEmbeddedDefaultPaymentInstrumentCard +# CyberSource::Tmsv2tokenizeTokenInformationCustomerEmbeddedDefaultPaymentInstrumentCard ## Properties Name | Type | Description | Notes @@ -11,6 +11,6 @@ Name | Type | Description | Notes **start_year** | **String** | Year of the start of the Maestro (UK Domestic) card validity period. Do not include the field, even with a blank value, if the card is not a Maestro (UK Domestic) card. `Format: YYYY`. **Note** The start date is not required for Maestro (UK Domestic) transactions. | [optional] **use_as** | **String** | 'Payment Instrument was created / updated as part of a pinless debit transaction.' | [optional] **sdk_hash_value** | **String** | Hash value representing the card. | [optional] -**tokenized_information** | [**Tmsv2customersEmbeddedDefaultPaymentInstrumentCardTokenizedInformation**](Tmsv2customersEmbeddedDefaultPaymentInstrumentCardTokenizedInformation.md) | | [optional] +**tokenized_information** | [**Tmsv2tokenizeTokenInformationCustomerEmbeddedDefaultPaymentInstrumentCardTokenizedInformation**](Tmsv2tokenizeTokenInformationCustomerEmbeddedDefaultPaymentInstrumentCardTokenizedInformation.md) | | [optional] diff --git a/docs/Tmsv2customersEmbeddedDefaultPaymentInstrumentCardTokenizedInformation.md b/docs/Tmsv2tokenizeTokenInformationCustomerEmbeddedDefaultPaymentInstrumentCardTokenizedInformation.md similarity index 88% rename from docs/Tmsv2customersEmbeddedDefaultPaymentInstrumentCardTokenizedInformation.md rename to docs/Tmsv2tokenizeTokenInformationCustomerEmbeddedDefaultPaymentInstrumentCardTokenizedInformation.md index c4d6ac3f..7b215b5e 100644 --- a/docs/Tmsv2customersEmbeddedDefaultPaymentInstrumentCardTokenizedInformation.md +++ b/docs/Tmsv2tokenizeTokenInformationCustomerEmbeddedDefaultPaymentInstrumentCardTokenizedInformation.md @@ -1,4 +1,4 @@ -# CyberSource::Tmsv2customersEmbeddedDefaultPaymentInstrumentCardTokenizedInformation +# CyberSource::Tmsv2tokenizeTokenInformationCustomerEmbeddedDefaultPaymentInstrumentCardTokenizedInformation ## Properties Name | Type | Description | Notes diff --git a/docs/Tmsv2customersEmbeddedDefaultPaymentInstrumentEmbedded.md b/docs/Tmsv2tokenizeTokenInformationCustomerEmbeddedDefaultPaymentInstrumentEmbedded.md similarity index 71% rename from docs/Tmsv2customersEmbeddedDefaultPaymentInstrumentEmbedded.md rename to docs/Tmsv2tokenizeTokenInformationCustomerEmbeddedDefaultPaymentInstrumentEmbedded.md index a03f9dd6..faa09a77 100644 --- a/docs/Tmsv2customersEmbeddedDefaultPaymentInstrumentEmbedded.md +++ b/docs/Tmsv2tokenizeTokenInformationCustomerEmbeddedDefaultPaymentInstrumentEmbedded.md @@ -1,4 +1,4 @@ -# CyberSource::Tmsv2customersEmbeddedDefaultPaymentInstrumentEmbedded +# CyberSource::Tmsv2tokenizeTokenInformationCustomerEmbeddedDefaultPaymentInstrumentEmbedded ## Properties Name | Type | Description | Notes diff --git a/docs/Tmsv2customersEmbeddedDefaultPaymentInstrumentInstrumentIdentifier.md b/docs/Tmsv2tokenizeTokenInformationCustomerEmbeddedDefaultPaymentInstrumentInstrumentIdentifier.md similarity index 67% rename from docs/Tmsv2customersEmbeddedDefaultPaymentInstrumentInstrumentIdentifier.md rename to docs/Tmsv2tokenizeTokenInformationCustomerEmbeddedDefaultPaymentInstrumentInstrumentIdentifier.md index 2ca967e4..8a63445d 100644 --- a/docs/Tmsv2customersEmbeddedDefaultPaymentInstrumentInstrumentIdentifier.md +++ b/docs/Tmsv2tokenizeTokenInformationCustomerEmbeddedDefaultPaymentInstrumentInstrumentIdentifier.md @@ -1,4 +1,4 @@ -# CyberSource::Tmsv2customersEmbeddedDefaultPaymentInstrumentInstrumentIdentifier +# CyberSource::Tmsv2tokenizeTokenInformationCustomerEmbeddedDefaultPaymentInstrumentInstrumentIdentifier ## Properties Name | Type | Description | Notes diff --git a/docs/Tmsv2tokenizeTokenInformationCustomerEmbeddedDefaultPaymentInstrumentLinks.md b/docs/Tmsv2tokenizeTokenInformationCustomerEmbeddedDefaultPaymentInstrumentLinks.md new file mode 100644 index 00000000..88cc954d --- /dev/null +++ b/docs/Tmsv2tokenizeTokenInformationCustomerEmbeddedDefaultPaymentInstrumentLinks.md @@ -0,0 +1,9 @@ +# CyberSource::Tmsv2tokenizeTokenInformationCustomerEmbeddedDefaultPaymentInstrumentLinks + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**_self** | [**Tmsv2tokenizeTokenInformationCustomerEmbeddedDefaultPaymentInstrumentLinksSelf**](Tmsv2tokenizeTokenInformationCustomerEmbeddedDefaultPaymentInstrumentLinksSelf.md) | | [optional] +**customer** | [**Tmsv2tokenizeTokenInformationCustomerLinksSelf**](Tmsv2tokenizeTokenInformationCustomerLinksSelf.md) | | [optional] + + diff --git a/docs/Tmsv2customersEmbeddedDefaultPaymentInstrumentLinksSelf.md b/docs/Tmsv2tokenizeTokenInformationCustomerEmbeddedDefaultPaymentInstrumentLinksSelf.md similarity index 66% rename from docs/Tmsv2customersEmbeddedDefaultPaymentInstrumentLinksSelf.md rename to docs/Tmsv2tokenizeTokenInformationCustomerEmbeddedDefaultPaymentInstrumentLinksSelf.md index 51bf0d4e..a68029e6 100644 --- a/docs/Tmsv2customersEmbeddedDefaultPaymentInstrumentLinksSelf.md +++ b/docs/Tmsv2tokenizeTokenInformationCustomerEmbeddedDefaultPaymentInstrumentLinksSelf.md @@ -1,4 +1,4 @@ -# CyberSource::Tmsv2customersEmbeddedDefaultPaymentInstrumentLinksSelf +# CyberSource::Tmsv2tokenizeTokenInformationCustomerEmbeddedDefaultPaymentInstrumentLinksSelf ## Properties Name | Type | Description | Notes diff --git a/docs/Tmsv2customersEmbeddedDefaultPaymentInstrumentMetadata.md b/docs/Tmsv2tokenizeTokenInformationCustomerEmbeddedDefaultPaymentInstrumentMetadata.md similarity index 67% rename from docs/Tmsv2customersEmbeddedDefaultPaymentInstrumentMetadata.md rename to docs/Tmsv2tokenizeTokenInformationCustomerEmbeddedDefaultPaymentInstrumentMetadata.md index 381802f3..a3832d57 100644 --- a/docs/Tmsv2customersEmbeddedDefaultPaymentInstrumentMetadata.md +++ b/docs/Tmsv2tokenizeTokenInformationCustomerEmbeddedDefaultPaymentInstrumentMetadata.md @@ -1,4 +1,4 @@ -# CyberSource::Tmsv2customersEmbeddedDefaultPaymentInstrumentMetadata +# CyberSource::Tmsv2tokenizeTokenInformationCustomerEmbeddedDefaultPaymentInstrumentMetadata ## Properties Name | Type | Description | Notes diff --git a/docs/Tmsv2tokenizeTokenInformationCustomerEmbeddedDefaultShippingAddress.md b/docs/Tmsv2tokenizeTokenInformationCustomerEmbeddedDefaultShippingAddress.md new file mode 100644 index 00000000..7129f386 --- /dev/null +++ b/docs/Tmsv2tokenizeTokenInformationCustomerEmbeddedDefaultShippingAddress.md @@ -0,0 +1,12 @@ +# CyberSource::Tmsv2tokenizeTokenInformationCustomerEmbeddedDefaultShippingAddress + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**_links** | [**Tmsv2tokenizeTokenInformationCustomerEmbeddedDefaultShippingAddressLinks**](Tmsv2tokenizeTokenInformationCustomerEmbeddedDefaultShippingAddressLinks.md) | | [optional] +**id** | **String** | The Id of the Shipping Address Token. | [optional] +**default** | **BOOLEAN** | Flag that indicates whether customer shipping address is the dafault. Possible Values: - `true`: Shipping Address is customer's default. - `false`: Shipping Address is not customer's default. | [optional] +**ship_to** | [**Tmsv2tokenizeTokenInformationCustomerEmbeddedDefaultShippingAddressShipTo**](Tmsv2tokenizeTokenInformationCustomerEmbeddedDefaultShippingAddressShipTo.md) | | [optional] +**metadata** | [**Tmsv2tokenizeTokenInformationCustomerEmbeddedDefaultShippingAddressMetadata**](Tmsv2tokenizeTokenInformationCustomerEmbeddedDefaultShippingAddressMetadata.md) | | [optional] + + diff --git a/docs/Tmsv2tokenizeTokenInformationCustomerEmbeddedDefaultShippingAddressLinks.md b/docs/Tmsv2tokenizeTokenInformationCustomerEmbeddedDefaultShippingAddressLinks.md new file mode 100644 index 00000000..968d921b --- /dev/null +++ b/docs/Tmsv2tokenizeTokenInformationCustomerEmbeddedDefaultShippingAddressLinks.md @@ -0,0 +1,9 @@ +# CyberSource::Tmsv2tokenizeTokenInformationCustomerEmbeddedDefaultShippingAddressLinks + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**_self** | [**Tmsv2tokenizeTokenInformationCustomerEmbeddedDefaultShippingAddressLinksSelf**](Tmsv2tokenizeTokenInformationCustomerEmbeddedDefaultShippingAddressLinksSelf.md) | | [optional] +**customer** | [**Tmsv2tokenizeTokenInformationCustomerEmbeddedDefaultShippingAddressLinksCustomer**](Tmsv2tokenizeTokenInformationCustomerEmbeddedDefaultShippingAddressLinksCustomer.md) | | [optional] + + diff --git a/docs/Tmsv2customersEmbeddedDefaultShippingAddressLinksCustomer.md b/docs/Tmsv2tokenizeTokenInformationCustomerEmbeddedDefaultShippingAddressLinksCustomer.md similarity index 64% rename from docs/Tmsv2customersEmbeddedDefaultShippingAddressLinksCustomer.md rename to docs/Tmsv2tokenizeTokenInformationCustomerEmbeddedDefaultShippingAddressLinksCustomer.md index 6fbd3e60..9ca45dd6 100644 --- a/docs/Tmsv2customersEmbeddedDefaultShippingAddressLinksCustomer.md +++ b/docs/Tmsv2tokenizeTokenInformationCustomerEmbeddedDefaultShippingAddressLinksCustomer.md @@ -1,4 +1,4 @@ -# CyberSource::Tmsv2customersEmbeddedDefaultShippingAddressLinksCustomer +# CyberSource::Tmsv2tokenizeTokenInformationCustomerEmbeddedDefaultShippingAddressLinksCustomer ## Properties Name | Type | Description | Notes diff --git a/docs/Tmsv2customersEmbeddedDefaultShippingAddressLinksSelf.md b/docs/Tmsv2tokenizeTokenInformationCustomerEmbeddedDefaultShippingAddressLinksSelf.md similarity index 67% rename from docs/Tmsv2customersEmbeddedDefaultShippingAddressLinksSelf.md rename to docs/Tmsv2tokenizeTokenInformationCustomerEmbeddedDefaultShippingAddressLinksSelf.md index 0285f53b..03217eb2 100644 --- a/docs/Tmsv2customersEmbeddedDefaultShippingAddressLinksSelf.md +++ b/docs/Tmsv2tokenizeTokenInformationCustomerEmbeddedDefaultShippingAddressLinksSelf.md @@ -1,4 +1,4 @@ -# CyberSource::Tmsv2customersEmbeddedDefaultShippingAddressLinksSelf +# CyberSource::Tmsv2tokenizeTokenInformationCustomerEmbeddedDefaultShippingAddressLinksSelf ## Properties Name | Type | Description | Notes diff --git a/docs/Tmsv2customersEmbeddedDefaultShippingAddressMetadata.md b/docs/Tmsv2tokenizeTokenInformationCustomerEmbeddedDefaultShippingAddressMetadata.md similarity index 67% rename from docs/Tmsv2customersEmbeddedDefaultShippingAddressMetadata.md rename to docs/Tmsv2tokenizeTokenInformationCustomerEmbeddedDefaultShippingAddressMetadata.md index 78dc4e2e..831793a9 100644 --- a/docs/Tmsv2customersEmbeddedDefaultShippingAddressMetadata.md +++ b/docs/Tmsv2tokenizeTokenInformationCustomerEmbeddedDefaultShippingAddressMetadata.md @@ -1,4 +1,4 @@ -# CyberSource::Tmsv2customersEmbeddedDefaultShippingAddressMetadata +# CyberSource::Tmsv2tokenizeTokenInformationCustomerEmbeddedDefaultShippingAddressMetadata ## Properties Name | Type | Description | Notes diff --git a/docs/Tmsv2customersEmbeddedDefaultShippingAddressShipTo.md b/docs/Tmsv2tokenizeTokenInformationCustomerEmbeddedDefaultShippingAddressShipTo.md similarity index 95% rename from docs/Tmsv2customersEmbeddedDefaultShippingAddressShipTo.md rename to docs/Tmsv2tokenizeTokenInformationCustomerEmbeddedDefaultShippingAddressShipTo.md index 9ddfb385..d262f20e 100644 --- a/docs/Tmsv2customersEmbeddedDefaultShippingAddressShipTo.md +++ b/docs/Tmsv2tokenizeTokenInformationCustomerEmbeddedDefaultShippingAddressShipTo.md @@ -1,4 +1,4 @@ -# CyberSource::Tmsv2customersEmbeddedDefaultShippingAddressShipTo +# CyberSource::Tmsv2tokenizeTokenInformationCustomerEmbeddedDefaultShippingAddressShipTo ## Properties Name | Type | Description | Notes diff --git a/docs/Tmsv2tokenizeTokenInformationCustomerLinks.md b/docs/Tmsv2tokenizeTokenInformationCustomerLinks.md new file mode 100644 index 00000000..d2a49b80 --- /dev/null +++ b/docs/Tmsv2tokenizeTokenInformationCustomerLinks.md @@ -0,0 +1,10 @@ +# CyberSource::Tmsv2tokenizeTokenInformationCustomerLinks + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**_self** | [**Tmsv2tokenizeTokenInformationCustomerLinksSelf**](Tmsv2tokenizeTokenInformationCustomerLinksSelf.md) | | [optional] +**payment_instruments** | [**Tmsv2tokenizeTokenInformationCustomerLinksPaymentInstruments**](Tmsv2tokenizeTokenInformationCustomerLinksPaymentInstruments.md) | | [optional] +**shipping_address** | [**Tmsv2tokenizeTokenInformationCustomerLinksShippingAddress**](Tmsv2tokenizeTokenInformationCustomerLinksShippingAddress.md) | | [optional] + + diff --git a/docs/Tmsv2customersLinksPaymentInstruments.md b/docs/Tmsv2tokenizeTokenInformationCustomerLinksPaymentInstruments.md similarity index 71% rename from docs/Tmsv2customersLinksPaymentInstruments.md rename to docs/Tmsv2tokenizeTokenInformationCustomerLinksPaymentInstruments.md index 9656f1f5..84e29fb1 100644 --- a/docs/Tmsv2customersLinksPaymentInstruments.md +++ b/docs/Tmsv2tokenizeTokenInformationCustomerLinksPaymentInstruments.md @@ -1,4 +1,4 @@ -# CyberSource::Tmsv2customersLinksPaymentInstruments +# CyberSource::Tmsv2tokenizeTokenInformationCustomerLinksPaymentInstruments ## Properties Name | Type | Description | Notes diff --git a/docs/Tmsv2customersLinksSelf.md b/docs/Tmsv2tokenizeTokenInformationCustomerLinksSelf.md similarity index 73% rename from docs/Tmsv2customersLinksSelf.md rename to docs/Tmsv2tokenizeTokenInformationCustomerLinksSelf.md index f72e073b..b98f075b 100644 --- a/docs/Tmsv2customersLinksSelf.md +++ b/docs/Tmsv2tokenizeTokenInformationCustomerLinksSelf.md @@ -1,4 +1,4 @@ -# CyberSource::Tmsv2customersLinksSelf +# CyberSource::Tmsv2tokenizeTokenInformationCustomerLinksSelf ## Properties Name | Type | Description | Notes diff --git a/docs/Tmsv2customersLinksShippingAddress.md b/docs/Tmsv2tokenizeTokenInformationCustomerLinksShippingAddress.md similarity index 72% rename from docs/Tmsv2customersLinksShippingAddress.md rename to docs/Tmsv2tokenizeTokenInformationCustomerLinksShippingAddress.md index 4ad9a81a..46fd62ba 100644 --- a/docs/Tmsv2customersLinksShippingAddress.md +++ b/docs/Tmsv2tokenizeTokenInformationCustomerLinksShippingAddress.md @@ -1,4 +1,4 @@ -# CyberSource::Tmsv2customersLinksShippingAddress +# CyberSource::Tmsv2tokenizeTokenInformationCustomerLinksShippingAddress ## Properties Name | Type | Description | Notes diff --git a/docs/Tmsv2customersMerchantDefinedInformation.md b/docs/Tmsv2tokenizeTokenInformationCustomerMerchantDefinedInformation.md similarity index 95% rename from docs/Tmsv2customersMerchantDefinedInformation.md rename to docs/Tmsv2tokenizeTokenInformationCustomerMerchantDefinedInformation.md index a5c6369c..6cceda78 100644 --- a/docs/Tmsv2customersMerchantDefinedInformation.md +++ b/docs/Tmsv2tokenizeTokenInformationCustomerMerchantDefinedInformation.md @@ -1,4 +1,4 @@ -# CyberSource::Tmsv2customersMerchantDefinedInformation +# CyberSource::Tmsv2tokenizeTokenInformationCustomerMerchantDefinedInformation ## Properties Name | Type | Description | Notes diff --git a/docs/Tmsv2customersMetadata.md b/docs/Tmsv2tokenizeTokenInformationCustomerMetadata.md similarity index 75% rename from docs/Tmsv2customersMetadata.md rename to docs/Tmsv2tokenizeTokenInformationCustomerMetadata.md index d039fdaf..5bcf44e2 100644 --- a/docs/Tmsv2customersMetadata.md +++ b/docs/Tmsv2tokenizeTokenInformationCustomerMetadata.md @@ -1,4 +1,4 @@ -# CyberSource::Tmsv2customersMetadata +# CyberSource::Tmsv2tokenizeTokenInformationCustomerMetadata ## Properties Name | Type | Description | Notes diff --git a/docs/Tmsv2customersObjectInformation.md b/docs/Tmsv2tokenizeTokenInformationCustomerObjectInformation.md similarity index 79% rename from docs/Tmsv2customersObjectInformation.md rename to docs/Tmsv2tokenizeTokenInformationCustomerObjectInformation.md index f8a5d121..9b296253 100644 --- a/docs/Tmsv2customersObjectInformation.md +++ b/docs/Tmsv2tokenizeTokenInformationCustomerObjectInformation.md @@ -1,4 +1,4 @@ -# CyberSource::Tmsv2customersObjectInformation +# CyberSource::Tmsv2tokenizeTokenInformationCustomerObjectInformation ## Properties Name | Type | Description | Notes diff --git a/docs/Tmsv2tokenizedcardstokenizedCardIdissuerlifecycleeventsimulationsCard.md b/docs/Tmsv2tokenizedcardstokenizedCardIdissuerlifecycleeventsimulationsCard.md new file mode 100644 index 00000000..aea5ee40 --- /dev/null +++ b/docs/Tmsv2tokenizedcardstokenizedCardIdissuerlifecycleeventsimulationsCard.md @@ -0,0 +1,10 @@ +# CyberSource::Tmsv2tokenizedcardstokenizedCardIdissuerlifecycleeventsimulationsCard + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**last4** | **String** | The new last 4 digits of the card number associated to the Tokenized Card. | [optional] +**expiration_month** | **String** | The new two-digit month of the card associated to the Tokenized Card. Format: `MM`. Possible Values: `01` through `12`. | [optional] +**expiration_year** | **String** | The new four-digit year of the card associated to the Tokenized Card. Format: `YYYY`. | [optional] + + diff --git a/docs/Tmsv2tokenizedcardstokenizedCardIdissuerlifecycleeventsimulationsMetadata.md b/docs/Tmsv2tokenizedcardstokenizedCardIdissuerlifecycleeventsimulationsMetadata.md new file mode 100644 index 00000000..32180ee2 --- /dev/null +++ b/docs/Tmsv2tokenizedcardstokenizedCardIdissuerlifecycleeventsimulationsMetadata.md @@ -0,0 +1,8 @@ +# CyberSource::Tmsv2tokenizedcardstokenizedCardIdissuerlifecycleeventsimulationsMetadata + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**card_art** | [**Tmsv2tokenizedcardstokenizedCardIdissuerlifecycleeventsimulationsMetadataCardArt**](Tmsv2tokenizedcardstokenizedCardIdissuerlifecycleeventsimulationsMetadataCardArt.md) | | [optional] + + diff --git a/docs/Tmsv2tokenizedcardstokenizedCardIdissuerlifecycleeventsimulationsMetadataCardArt.md b/docs/Tmsv2tokenizedcardstokenizedCardIdissuerlifecycleeventsimulationsMetadataCardArt.md new file mode 100644 index 00000000..42ce45eb --- /dev/null +++ b/docs/Tmsv2tokenizedcardstokenizedCardIdissuerlifecycleeventsimulationsMetadataCardArt.md @@ -0,0 +1,8 @@ +# CyberSource::Tmsv2tokenizedcardstokenizedCardIdissuerlifecycleeventsimulationsMetadataCardArt + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**combined_asset** | [**Tmsv2tokenizedcardstokenizedCardIdissuerlifecycleeventsimulationsMetadataCardArtCombinedAsset**](Tmsv2tokenizedcardstokenizedCardIdissuerlifecycleeventsimulationsMetadataCardArtCombinedAsset.md) | | [optional] + + diff --git a/docs/Tmsv2tokenizedcardstokenizedCardIdissuerlifecycleeventsimulationsMetadataCardArtCombinedAsset.md b/docs/Tmsv2tokenizedcardstokenizedCardIdissuerlifecycleeventsimulationsMetadataCardArtCombinedAsset.md new file mode 100644 index 00000000..5de5a1ab --- /dev/null +++ b/docs/Tmsv2tokenizedcardstokenizedCardIdissuerlifecycleeventsimulationsMetadataCardArtCombinedAsset.md @@ -0,0 +1,8 @@ +# CyberSource::Tmsv2tokenizedcardstokenizedCardIdissuerlifecycleeventsimulationsMetadataCardArtCombinedAsset + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**update** | **String** | Set to \"true\" to simulate an update to the combined card art asset associated with the Tokenized Card. | [optional] + + diff --git a/docs/TokenApi.md b/docs/TokenApi.md index 43d7f617..9827ecbd 100644 --- a/docs/TokenApi.md +++ b/docs/TokenApi.md @@ -9,7 +9,7 @@ Method | HTTP request | Description # **get_card_art_asset** -> InlineResponse200 get_card_art_asset(instrument_identifier_id, token_provider, asset_type) +> InlineResponse2001 get_card_art_asset(instrument_identifier_id, token_provider, asset_type) Retrieve Card Art @@ -48,7 +48,7 @@ Name | Type | Description | Notes ### Return type -[**InlineResponse200**](InlineResponse200.md) +[**InlineResponse2001**](InlineResponse2001.md) ### Authorization diff --git a/docs/TokenizeApi.md b/docs/TokenizeApi.md new file mode 100644 index 00000000..7a2ef734 --- /dev/null +++ b/docs/TokenizeApi.md @@ -0,0 +1,60 @@ +# CyberSource::TokenizeApi + +All URIs are relative to *https://apitest.cybersource.com* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**tokenize**](TokenizeApi.md#tokenize) | **POST** /tms/v2/tokenize | Tokenize + + +# **tokenize** +> InlineResponse200 tokenize(post_tokenize_request, opts) + +Tokenize + +| | | | | --- | --- | --- | |The **Tokenize API** endpoint facilitates the creation of various TMS tokens such as Customers, Payment Instruments, Shipping Addresses, and Instrument Identifiers in a single operation. The request includes a processingInformation object, which specifies **\"TOKEN_CREATE\"** and the types of tokens to be created. The **tokenInformation** section of the request includes detailed information relevant to each token type. This includes attributes for Customers, Payment Instruments, Shipping Addresses, Instrument Identifiers and Transient Token data. The payload is flexible, allowing for different combinations of tokens to be created in a single request.|      |The **API response** includes a responses array, which details the outcome of the tokenization process for each requested resource type, such as Customer, Payment Instrument, Shipping Address, and Instrument Identifier. Each entry in this array provides an HTTP status code such as **201/200 for successful creations**, and a unique identifier for the newly created token.
In cases where token creation encounters issues, the response includes a **non-2XX** status code and an errors array for the affected resource. Each error object in the array details the **error type and a descriptive message** providing insight into why a particular token creation was not attempted or failed. + +### Example +```ruby +# load the gem +require 'cybersource_rest_client' + +api_instance = CyberSource::TokenizeApi.new + +post_tokenize_request = CyberSource::PostTokenizeRequest.new # PostTokenizeRequest | + +opts = { + profile_id: 'profile_id_example' # String | The Id of a profile containing user specific TMS configuration. +} + +begin + #Tokenize + result = api_instance.tokenize(post_tokenize_request, opts) + p result +rescue CyberSource::ApiError => e + puts "Exception when calling TokenizeApi->tokenize: #{e}" +end +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **post_tokenize_request** | [**PostTokenizeRequest**](PostTokenizeRequest.md)| | + **profile_id** | **String**| The Id of a profile containing user specific TMS configuration. | [optional] + +### Return type + +[**InlineResponse200**](InlineResponse200.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: application/json;charset=utf-8 + - **Accept**: application/json;charset=utf-8 + + + diff --git a/docs/TokenizedCardApi.md b/docs/TokenizedCardApi.md index 8be92b76..943f5ebc 100644 --- a/docs/TokenizedCardApi.md +++ b/docs/TokenizedCardApi.md @@ -6,6 +6,7 @@ Method | HTTP request | Description ------------- | ------------- | ------------- [**delete_tokenized_card**](TokenizedCardApi.md#delete_tokenized_card) | **DELETE** /tms/v2/tokenized-cards/{tokenizedCardId} | Delete a Tokenized Card [**get_tokenized_card**](TokenizedCardApi.md#get_tokenized_card) | **GET** /tms/v2/tokenized-cards/{tokenizedCardId} | Retrieve a Tokenized Card +[**post_issuer_life_cycle_simulation**](TokenizedCardApi.md#post_issuer_life_cycle_simulation) | **POST** /tms/v2/tokenized-cards/{tokenizedCardId}/issuer-life-cycle-event-simulations | Simulate Issuer Life Cycle Management Events [**post_tokenized_card**](TokenizedCardApi.md#post_tokenized_card) | **POST** /tms/v2/tokenized-cards | Create a Tokenized Card @@ -110,6 +111,58 @@ No authorization required +# **post_issuer_life_cycle_simulation** +> post_issuer_life_cycle_simulation(profile_id, tokenized_card_id, post_issuer_life_cycle_simulation_request) + +Simulate Issuer Life Cycle Management Events + +**Lifecycle Management Events**
Simulates an issuer life cycle manegement event for updates on the tokenized card. The events that can be simulated are: - Token status changes (e.g. active, suspended, deleted) - Updates to the underlying card, including card art changes, expiration date changes, and card number suffix. **Note:** This is only available in CAS environment. + +### Example +```ruby +# load the gem +require 'cybersource_rest_client' + +api_instance = CyberSource::TokenizedCardApi.new + +profile_id = 'profile_id_example' # String | The Id of a profile containing user specific TMS configuration. + +tokenized_card_id = 'tokenized_card_id_example' # String | The Id of a tokenized card. + +post_issuer_life_cycle_simulation_request = CyberSource::PostIssuerLifeCycleSimulationRequest.new # PostIssuerLifeCycleSimulationRequest | + + +begin + #Simulate Issuer Life Cycle Management Events + api_instance.post_issuer_life_cycle_simulation(profile_id, tokenized_card_id, post_issuer_life_cycle_simulation_request) +rescue CyberSource::ApiError => e + puts "Exception when calling TokenizedCardApi->post_issuer_life_cycle_simulation: #{e}" +end +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **profile_id** | **String**| The Id of a profile containing user specific TMS configuration. | + **tokenized_card_id** | **String**| The Id of a tokenized card. | + **post_issuer_life_cycle_simulation_request** | [**PostIssuerLifeCycleSimulationRequest**](PostIssuerLifeCycleSimulationRequest.md)| | + +### Return type + +nil (empty response body) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: application/json;charset=utf-8 + - **Accept**: application/json;charset=utf-8 + + + # **post_tokenized_card** > TokenizedcardRequest post_tokenized_card(tokenizedcard_request, opts) diff --git a/docs/UpdateSubscription.md b/docs/UpdateSubscription.md index da011132..8a5f0626 100644 --- a/docs/UpdateSubscription.md +++ b/docs/UpdateSubscription.md @@ -3,7 +3,7 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**client_reference_information** | [**Rbsv1subscriptionsClientReferenceInformation**](Rbsv1subscriptionsClientReferenceInformation.md) | | [optional] +**client_reference_information** | [**GetAllSubscriptionsResponseClientReferenceInformation**](GetAllSubscriptionsResponseClientReferenceInformation.md) | | [optional] **processing_information** | [**Rbsv1subscriptionsProcessingInformation**](Rbsv1subscriptionsProcessingInformation.md) | | [optional] **plan_information** | [**Rbsv1subscriptionsidPlanInformation**](Rbsv1subscriptionsidPlanInformation.md) | | [optional] **subscription_information** | [**Rbsv1subscriptionsidSubscriptionInformation**](Rbsv1subscriptionsidSubscriptionInformation.md) | | [optional] diff --git a/docs/Upv1capturecontextsData.md b/docs/Upv1capturecontextsData.md index 5c20ad07..a4cdbcda 100644 --- a/docs/Upv1capturecontextsData.md +++ b/docs/Upv1capturecontextsData.md @@ -11,5 +11,7 @@ Name | Type | Description | Notes **processing_information** | [**Upv1capturecontextsDataProcessingInformation**](Upv1capturecontextsDataProcessingInformation.md) | | [optional] **recipient_information** | [**Upv1capturecontextsDataRecipientInformation**](Upv1capturecontextsDataRecipientInformation.md) | | [optional] **merchant_defined_information** | [**Upv1capturecontextsDataMerchantDefinedInformation**](Upv1capturecontextsDataMerchantDefinedInformation.md) | | [optional] +**device_information** | [**Upv1capturecontextsDataDeviceInformation**](Upv1capturecontextsDataDeviceInformation.md) | | [optional] +**payment_information** | [**Upv1capturecontextsDataPaymentInformation**](Upv1capturecontextsDataPaymentInformation.md) | | [optional] diff --git a/docs/Upv1capturecontextsDataBuyerInformation.md b/docs/Upv1capturecontextsDataBuyerInformation.md index 5aef84c2..526de15e 100644 --- a/docs/Upv1capturecontextsDataBuyerInformation.md +++ b/docs/Upv1capturecontextsDataBuyerInformation.md @@ -4,7 +4,9 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **personal_identification** | [**Upv1capturecontextsDataBuyerInformationPersonalIdentification**](Upv1capturecontextsDataBuyerInformationPersonalIdentification.md) | | [optional] -**merchant_customer_id** | **String** | | [optional] -**company_tax_id** | **String** | | [optional] +**merchant_customer_id** | **String** | The Merchant Customer ID | [optional] +**company_tax_id** | **String** | The Company Tax ID | [optional] +**date_of_birth** | **String** | The date of birth | [optional] +**language** | **String** | The preferred language | [optional] diff --git a/docs/Upv1capturecontextsDataBuyerInformationPersonalIdentification.md b/docs/Upv1capturecontextsDataBuyerInformationPersonalIdentification.md index fd271780..aa0fd0eb 100644 --- a/docs/Upv1capturecontextsDataBuyerInformationPersonalIdentification.md +++ b/docs/Upv1capturecontextsDataBuyerInformationPersonalIdentification.md @@ -3,6 +3,6 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**cpf** | **String** | | [optional] +**cpf** | **String** | CPF Number (Brazil). Must be 11 digits in length. | [optional] diff --git a/docs/Upv1capturecontextsDataConsumerAuthenticationInformation.md b/docs/Upv1capturecontextsDataConsumerAuthenticationInformation.md index 51d8546f..496ad608 100644 --- a/docs/Upv1capturecontextsDataConsumerAuthenticationInformation.md +++ b/docs/Upv1capturecontextsDataConsumerAuthenticationInformation.md @@ -3,7 +3,8 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**challenge_code** | **String** | | [optional] -**message_category** | **String** | | [optional] +**challenge_code** | **String** | The challenge code | [optional] +**message_category** | **String** | The message category | [optional] +**acs_window_size** | **String** | The acs window size | [optional] diff --git a/docs/Upv1capturecontextsDataDeviceInformation.md b/docs/Upv1capturecontextsDataDeviceInformation.md new file mode 100644 index 00000000..012e9a3b --- /dev/null +++ b/docs/Upv1capturecontextsDataDeviceInformation.md @@ -0,0 +1,8 @@ +# CyberSource::Upv1capturecontextsDataDeviceInformation + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**ip_address** | **String** | The IP Address | [optional] + + diff --git a/docs/Upv1capturecontextsDataMerchantInformationMerchantDescriptor.md b/docs/Upv1capturecontextsDataMerchantInformationMerchantDescriptor.md index fc5af9f0..b391c8cf 100644 --- a/docs/Upv1capturecontextsDataMerchantInformationMerchantDescriptor.md +++ b/docs/Upv1capturecontextsDataMerchantInformationMerchantDescriptor.md @@ -4,5 +4,12 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **name** | **String** | The name of the merchant | [optional] +**alternate_name** | **String** | The alternate name of the merchant | [optional] +**locality** | **String** | The locality of the merchant | [optional] +**phone** | **String** | The phone number of the merchant | [optional] +**country** | **String** | The country code of the merchant | [optional] +**postal_code** | **String** | The postal code of the merchant | [optional] +**administrative_area** | **String** | The administrative area of the merchant | [optional] +**address1** | **String** | The first line of the merchant's address | [optional] diff --git a/docs/Upv1capturecontextsDataOrderInformation.md b/docs/Upv1capturecontextsDataOrderInformation.md index e88bd993..5d4593d4 100644 --- a/docs/Upv1capturecontextsDataOrderInformation.md +++ b/docs/Upv1capturecontextsDataOrderInformation.md @@ -7,5 +7,6 @@ Name | Type | Description | Notes **bill_to** | [**Upv1capturecontextsDataOrderInformationBillTo**](Upv1capturecontextsDataOrderInformationBillTo.md) | | [optional] **ship_to** | [**Upv1capturecontextsDataOrderInformationShipTo**](Upv1capturecontextsDataOrderInformationShipTo.md) | | [optional] **line_items** | [**Upv1capturecontextsDataOrderInformationLineItems**](Upv1capturecontextsDataOrderInformationLineItems.md) | | [optional] +**invoice_details** | [**Upv1capturecontextsDataOrderInformationInvoiceDetails**](Upv1capturecontextsDataOrderInformationInvoiceDetails.md) | | [optional] diff --git a/docs/Upv1capturecontextsDataOrderInformationAmountDetails.md b/docs/Upv1capturecontextsDataOrderInformationAmountDetails.md index 39ecdcaa..a12b0752 100644 --- a/docs/Upv1capturecontextsDataOrderInformationAmountDetails.md +++ b/docs/Upv1capturecontextsDataOrderInformationAmountDetails.md @@ -10,5 +10,6 @@ Name | Type | Description | Notes **sub_total_amount** | **String** | This field defines the sub total amount applicable to the order. | [optional] **service_fee_amount** | **String** | This field defines the service fee amount applicable to the order. | [optional] **tax_amount** | **String** | This field defines the tax amount applicable to the order. | [optional] +**tax_details** | [**Upv1capturecontextsDataOrderInformationAmountDetailsTaxDetails**](Upv1capturecontextsDataOrderInformationAmountDetailsTaxDetails.md) | | [optional] diff --git a/docs/Upv1capturecontextsDataOrderInformationAmountDetailsTaxDetails.md b/docs/Upv1capturecontextsDataOrderInformationAmountDetailsTaxDetails.md new file mode 100644 index 00000000..3e120521 --- /dev/null +++ b/docs/Upv1capturecontextsDataOrderInformationAmountDetailsTaxDetails.md @@ -0,0 +1,9 @@ +# CyberSource::Upv1capturecontextsDataOrderInformationAmountDetailsTaxDetails + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**tax_id** | **String** | This field defines the tax identifier/registration number | [optional] +**type** | **String** | This field defines the Tax type code (N=National, S=State, L=Local etc) | [optional] + + diff --git a/docs/Upv1capturecontextsDataOrderInformationInvoiceDetails.md b/docs/Upv1capturecontextsDataOrderInformationInvoiceDetails.md new file mode 100644 index 00000000..b495a3bb --- /dev/null +++ b/docs/Upv1capturecontextsDataOrderInformationInvoiceDetails.md @@ -0,0 +1,9 @@ +# CyberSource::Upv1capturecontextsDataOrderInformationInvoiceDetails + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**invoice_number** | **String** | Invoice number | [optional] +**product_description** | **String** | Product description | [optional] + + diff --git a/docs/Upv1capturecontextsDataOrderInformationLineItems.md b/docs/Upv1capturecontextsDataOrderInformationLineItems.md index 5be9a2b0..fb5f2122 100644 --- a/docs/Upv1capturecontextsDataOrderInformationLineItems.md +++ b/docs/Upv1capturecontextsDataOrderInformationLineItems.md @@ -3,37 +3,37 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**product_code** | **String** | | [optional] -**product_name** | **String** | | [optional] -**product_sku** | **String** | | [optional] -**quantity** | **Integer** | | [optional] -**unit_price** | **String** | | [optional] -**unit_of_measure** | **String** | | [optional] -**total_amount** | **String** | | [optional] -**tax_amount** | **String** | | [optional] -**tax_rate** | **String** | | [optional] -**tax_applied_after_discount** | **String** | | [optional] -**tax_status_indicator** | **String** | | [optional] -**tax_type_code** | **String** | | [optional] -**amount_includes_tax** | **BOOLEAN** | | [optional] -**type_of_supply** | **String** | | [optional] -**commodity_code** | **String** | | [optional] -**discount_amount** | **String** | | [optional] -**discount_applied** | **BOOLEAN** | | [optional] -**discount_rate** | **String** | | [optional] -**invoice_number** | **String** | | [optional] +**product_code** | **String** | Code identifying the product. | [optional] +**product_name** | **String** | Name of the product. | [optional] +**product_sku** | **String** | Stock Keeping Unit identifier | [optional] +**quantity** | **Integer** | Quantity of the product | [optional] +**unit_price** | **String** | Price per unit | [optional] +**unit_of_measure** | **String** | Unit of measure (e.g. EA, KG, LB) | [optional] +**total_amount** | **String** | Total amount for the line item | [optional] +**tax_amount** | **String** | Tax amount applied | [optional] +**tax_rate** | **String** | Tax rate applied | [optional] +**tax_applied_after_discount** | **String** | Indicates if tax applied after discount | [optional] +**tax_status_indicator** | **String** | Tax status indicator | [optional] +**tax_type_code** | **String** | Tax type code | [optional] +**amount_includes_tax** | **BOOLEAN** | Indicates if amount includes tax | [optional] +**type_of_supply** | **String** | Type of supply | [optional] +**commodity_code** | **String** | Commodity code | [optional] +**discount_amount** | **String** | Discount amount applied | [optional] +**discount_applied** | **BOOLEAN** | Indicates if discount applied | [optional] +**discount_rate** | **String** | Discount rate applied | [optional] +**invoice_number** | **String** | Invoice number for the line item | [optional] **tax_details** | [**Upv1capturecontextsDataOrderInformationLineItemsTaxDetails**](Upv1capturecontextsDataOrderInformationLineItemsTaxDetails.md) | | [optional] -**fulfillment_type** | **String** | | [optional] -**weight** | **String** | | [optional] -**weight_identifier** | **String** | | [optional] -**weight_unit** | **String** | | [optional] -**reference_data_code** | **String** | | [optional] -**reference_data_number** | **String** | | [optional] -**unit_tax_amount** | **String** | | [optional] -**product_description** | **String** | | [optional] -**gift_card_currency** | **String** | | [optional] -**shipping_destination_types** | **String** | | [optional] -**gift** | **BOOLEAN** | | [optional] +**fulfillment_type** | **String** | Fulfillment type | [optional] +**weight** | **String** | Weight of the product | [optional] +**weight_identifier** | **String** | Weight identifier | [optional] +**weight_unit** | **String** | Unit of weight of the product | [optional] +**reference_data_code** | **String** | Reference data code | [optional] +**reference_data_number** | **String** | Reference data number | [optional] +**unit_tax_amount** | **String** | Unit tax amount | [optional] +**product_description** | **String** | Description of the product | [optional] +**gift_card_currency** | **String** | Gift card currency | [optional] +**shipping_destination_types** | **String** | Shipping destination types | [optional] +**gift** | **BOOLEAN** | Indicates if item is a gift | [optional] **passenger** | [**Upv1capturecontextsDataOrderInformationLineItemsPassenger**](Upv1capturecontextsDataOrderInformationLineItemsPassenger.md) | | [optional] diff --git a/docs/Upv1capturecontextsDataOrderInformationLineItemsPassenger.md b/docs/Upv1capturecontextsDataOrderInformationLineItemsPassenger.md index 6446608c..a1d53c89 100644 --- a/docs/Upv1capturecontextsDataOrderInformationLineItemsPassenger.md +++ b/docs/Upv1capturecontextsDataOrderInformationLineItemsPassenger.md @@ -3,13 +3,13 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**type** | **String** | | [optional] -**status** | **String** | | [optional] -**phone** | **String** | | [optional] -**first_name** | **String** | | [optional] -**last_name** | **String** | | [optional] -**id** | **String** | | [optional] -**email** | **String** | | [optional] -**nationality** | **String** | | [optional] +**type** | **String** | Passenger type | [optional] +**status** | **String** | Passenger status | [optional] +**phone** | **String** | Passenger phone number | [optional] +**first_name** | **String** | Passenger first name | [optional] +**last_name** | **String** | Passenger last name | [optional] +**id** | **String** | Passenger ID | [optional] +**email** | **String** | Passenger email | [optional] +**nationality** | **String** | Passenger nationality | [optional] diff --git a/docs/Upv1capturecontextsDataOrderInformationLineItemsTaxDetails.md b/docs/Upv1capturecontextsDataOrderInformationLineItemsTaxDetails.md index f90022cd..8f4496f7 100644 --- a/docs/Upv1capturecontextsDataOrderInformationLineItemsTaxDetails.md +++ b/docs/Upv1capturecontextsDataOrderInformationLineItemsTaxDetails.md @@ -3,12 +3,12 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**type** | **String** | | [optional] -**amount** | **String** | | [optional] -**rate** | **String** | | [optional] -**code** | **String** | | [optional] -**tax_id** | **String** | | [optional] -**applied** | **BOOLEAN** | | [optional] -**exemption_code** | **String** | | [optional] +**type** | **String** | Type of tax | [optional] +**amount** | **String** | Tax amount | [optional] +**rate** | **String** | Tax rate | [optional] +**code** | **String** | Tax code | [optional] +**tax_id** | **String** | Tax Identifier | [optional] +**applied** | **BOOLEAN** | Indicates if tax applied | [optional] +**exemption_code** | **String** | Tax exemption code | [optional] diff --git a/docs/Upv1capturecontextsDataPaymentInformation.md b/docs/Upv1capturecontextsDataPaymentInformation.md new file mode 100644 index 00000000..93d4e047 --- /dev/null +++ b/docs/Upv1capturecontextsDataPaymentInformation.md @@ -0,0 +1,8 @@ +# CyberSource::Upv1capturecontextsDataPaymentInformation + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**card** | [**Upv1capturecontextsDataPaymentInformationCard**](Upv1capturecontextsDataPaymentInformationCard.md) | | [optional] + + diff --git a/docs/Upv1capturecontextsDataPaymentInformationCard.md b/docs/Upv1capturecontextsDataPaymentInformationCard.md new file mode 100644 index 00000000..072571ee --- /dev/null +++ b/docs/Upv1capturecontextsDataPaymentInformationCard.md @@ -0,0 +1,8 @@ +# CyberSource::Upv1capturecontextsDataPaymentInformationCard + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**type_selection_indicator** | **String** | The card type selection indicator | [optional] + + diff --git a/docs/Upv1capturecontextsDataProcessingInformation.md b/docs/Upv1capturecontextsDataProcessingInformation.md index 42b52e78..63f20966 100644 --- a/docs/Upv1capturecontextsDataProcessingInformation.md +++ b/docs/Upv1capturecontextsDataProcessingInformation.md @@ -3,7 +3,7 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**reconciliation_id** | **String** | | [optional] +**reconciliation_id** | **String** | The reconciliation ID | [optional] **authorization_options** | [**Upv1capturecontextsDataProcessingInformationAuthorizationOptions**](Upv1capturecontextsDataProcessingInformationAuthorizationOptions.md) | | [optional] diff --git a/docs/Upv1capturecontextsDataProcessingInformationAuthorizationOptions.md b/docs/Upv1capturecontextsDataProcessingInformationAuthorizationOptions.md index 922b9e1c..94450643 100644 --- a/docs/Upv1capturecontextsDataProcessingInformationAuthorizationOptions.md +++ b/docs/Upv1capturecontextsDataProcessingInformationAuthorizationOptions.md @@ -3,8 +3,13 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**aft_indicator** | **BOOLEAN** | | [optional] +**aft_indicator** | **BOOLEAN** | The AFT indicator | [optional] +**auth_indicator** | **String** | The authorization indicator | [optional] +**ignore_cv_result** | **BOOLEAN** | Ignore the CV result | [optional] +**ignore_avs_result** | **BOOLEAN** | Ignore the AVS result | [optional] **initiator** | [**Upv1capturecontextsDataProcessingInformationAuthorizationOptionsInitiator**](Upv1capturecontextsDataProcessingInformationAuthorizationOptionsInitiator.md) | | [optional] -**business_application_id** | **String** | | [optional] +**business_application_id** | **String** | The business application Id | [optional] +**commerce_indicator** | **String** | The commerce indicator | [optional] +**processing_instruction** | **String** | The processing instruction | [optional] diff --git a/docs/Upv1capturecontextsDataProcessingInformationAuthorizationOptionsInitiator.md b/docs/Upv1capturecontextsDataProcessingInformationAuthorizationOptionsInitiator.md index ff902954..9cf7965e 100644 --- a/docs/Upv1capturecontextsDataProcessingInformationAuthorizationOptionsInitiator.md +++ b/docs/Upv1capturecontextsDataProcessingInformationAuthorizationOptionsInitiator.md @@ -3,7 +3,7 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**credential_stored_on_file** | **BOOLEAN** | | [optional] +**credential_stored_on_file** | **BOOLEAN** | Store the credential on file | [optional] **merchant_initiated_transaction** | [**Upv1capturecontextsDataProcessingInformationAuthorizationOptionsInitiatorMerchantInitiatedTransaction**](Upv1capturecontextsDataProcessingInformationAuthorizationOptionsInitiatorMerchantInitiatedTransaction.md) | | [optional] diff --git a/docs/Upv1capturecontextsDataRecipientInformation.md b/docs/Upv1capturecontextsDataRecipientInformation.md index 3ed9acee..5099d68d 100644 --- a/docs/Upv1capturecontextsDataRecipientInformation.md +++ b/docs/Upv1capturecontextsDataRecipientInformation.md @@ -10,5 +10,7 @@ Name | Type | Description | Notes **account_id** | **String** | The account ID of the recipient | [optional] **administrative_area** | **String** | The administrative area of the recipient | [optional] **account_type** | **String** | The account type of the recipient | [optional] +**date_of_birth** | **String** | The date of birth of the recipient | [optional] +**postal_code** | **String** | The postal code of the recipient | [optional] diff --git a/generator/cybersource-rest-spec-ruby.json b/generator/cybersource-rest-spec-ruby.json index 2ad9b3a5..5ef8cbf0 100644 --- a/generator/cybersource-rest-spec-ruby.json +++ b/generator/cybersource-rest-spec-ruby.json @@ -65,6 +65,10 @@ "name": "payment-tokens", "description": "A payment-tokens is a service that is used for retrieving vault details or deleting vault id/payment method.\n" }, + { + "name": "Tokenize", + "description": "An orchestration resource used to combine multiple API calls into a single request.\n" + }, { "name": "Customer", "description": "A Customer can be linked to multiple Payment Instruments and Shipping Addresses.\nWith one Payment Instrument and Shipping Address designated as the default.\nIt stores merchant reference information for the Customer such as email and merchant defined data.\n" @@ -85,6 +89,10 @@ "name": "Instrument Identifier", "description": "An Instrument Identifier represents a unique card number(PAN) or bank account (echeck).\nIt can also be associated with a Network Token that can be used for payment transactions.\n" }, + { + "name": "Tokenized Card", + "description": "A Tokenized Card represents a Network Token that can be used for payment transactions.\n" + }, { "name": "Token", "description": "Token resources can act on different token types such as Customers, Payment Instruments or Instrument Identifiers.\n" @@ -3135,6 +3143,11 @@ "type": "string", "maxLength": 10, "description": "Acquirer country." + }, + "serviceProvidername": { + "type": "string", + "maxLength": 50, + "description": "Contains transfer service provider name." } } }, @@ -47498,10 +47511,10 @@ } } }, - "/tms/v2/customers": { + "/tms/v2/tokenize": { "post": { - "summary": "Create a Customer", - "description": "| | | |\n| --- | --- | --- |\n|**Customers**
A Customer represents your tokenized customer information.
You should associate the Customer Id with the customer account on your systems.
A Customer can have one or more [Payment Instruments](#token-management_customer-payment-instrument_create-a-customer-payment-instrumentl) or [Shipping Addresses](#token-management_customer-shipping-address_create-a-customer-shipping-address) with one allocated as the Customers default.

**Creating a Customer**
It is recommended you [create a Customer via a Payment Authorization](#payments_payments_process-a-payment_samplerequests-dropdown_authorization-with-token-create_authorization-with-customer-token-creation_liveconsole-tab-request-body), this can be for a zero amount.
The Customer will be created with a Payment Instrument and Shipping Address.
You can also [add additional Payment Instruments to a Customer via a Payment Authorization](#payments_payments_process-a-payment_samplerequests-dropdown_authorization-with-token-create_authorization-create-default-payment-instrument-shipping-address-for-existing-customer_liveconsole-tab-request-body).
In Europe: You should perform Payer Authentication alongside the Authorization.|      |**Payment Network Tokens**
Network tokens perform better than regular card numbers and they are not necessarily invalidated when a cardholder loses their card, or it expires.
A Payment Network Token will be automatically created and used in future payments if you are enabled for the service.
A Payment Network Token can also be [provisioned for an existing Instrument Identifier](#token-management_instrument-identifier_enroll-an-instrument-identifier-for-payment-network-token).
For more information about Payment Network Tokens see the Developer Guide.

**Payments with Customers**
To perform a payment with the Customers default details specify the [Customer Id in the payments request](#payments_payments_process-a-payment_samplerequests-dropdown_authorization-using-tokens_authorization-with-customer-token-id_liveconsole-tab-request-body).
To perform a payment with a particular Payment Instrument or Shipping Address
specify the [Payment Instrument or Shipping Address Ids in the payments request](#payments_payments_process-a-payment_samplerequests-dropdown_authorization-using-tokens_authorization-with-customer-payment-instrument-and-shipping-address-token-id_liveconsole-tab-request-body).\nThe availability of API features for a merchant may depend on the portfolio configuration and may need to be enabled at the portfolio level before they can be added to merchant accounts.\n", + "summary": "Tokenize", + "description": "| | | | \n| --- | --- | --- |\n|The **Tokenize API** endpoint facilitates the creation of various TMS tokens such as Customers, Payment Instruments, Shipping Addresses, and Instrument Identifiers in a single operation. The request includes a processingInformation object, which specifies **\"TOKEN_CREATE\"** and the types of tokens to be created. The **tokenInformation** section of the request includes detailed information relevant to each token type. This includes attributes for Customers, Payment Instruments, Shipping Addresses, Instrument Identifiers and Transient Token data. The payload is flexible, allowing for different combinations of tokens to be created in a single request.|      |The **API response** includes a responses array, which details the outcome of the tokenization process for each requested resource type, such as Customer, Payment Instrument, Shipping Address, and Instrument Identifier. Each entry in this array provides an HTTP status code such as **201/200 for successful creations**, and a unique identifier for the newly created token.
In cases where token creation encounters issues, the response includes a **non-2XX** status code and an errors array for the affected resource. Each error object in the array details the **error type and a descriptive message** providing insight into why a particular token creation was not attempted or failed.\n", "parameters": [ { "name": "profile-id", @@ -47514,154 +47527,53 @@ "x-hide-field": true }, { - "name": "postCustomerRequest", + "name": "postTokenizeRequest", "in": "body", "required": true, "schema": { "type": "object", "properties": { - "_links": { + "processingInformation": { "type": "object", - "readOnly": true, "properties": { - "self": { - "type": "object", - "readOnly": true, - "properties": { - "href": { - "type": "string", - "readOnly": true, - "description": "Link to the Customer.\n", - "example": "/tms/v2/customers/D9F340DD3DB9C276E053A2598D0A41A3" - } - } - }, - "paymentInstruments": { - "type": "object", - "readOnly": true, - "properties": { - "href": { - "type": "string", - "readOnly": true, - "description": "Link to the Customers Payment Instruments.\n", - "example": "/tms/v2/customers/D9F340DD3DB9C276E053A2598D0A41A3/payment-instruments" - } - } + "actionList": { + "type": "array", + "description": "Array of actions (one or more) to be included in the tokenize request.\n\nPossible Values:\n\n - `TOKEN_CREATE`: Use this when you want to create a token from the card/bank data in your tokenize request.\n", + "items": { + "type": "string" + }, + "example": [ + "TOKEN_CREATE" + ] }, - "shippingAddress": { - "type": "object", - "readOnly": true, - "properties": { - "href": { - "type": "string", - "readOnly": true, - "description": "Link to the Customers Shipping Addresses.\n", - "example": "/tms/v2/customers/D9F340DD3DB9C276E053A2598D0A41A3/shipping-addresses" - } - } + "actionTokenTypes": { + "type": "array", + "description": "TMS tokens types you want to perform the action on.\n\nPossible Values:\n- customer\n- paymentInstrument\n- instrumentIdentifier\n- shippingAddress\n- tokenizedCard\n", + "items": { + "type": "string" + }, + "example": [ + "customer", + "paymentInstrument", + "shippingAddress", + "instrumentIdentifier" + ] } } }, - "id": { - "type": "string", - "minLength": 1, - "maxLength": 32, - "description": "The Id of the Customer Token." - }, - "objectInformation": { + "tokenInformation": { "type": "object", "properties": { - "title": { + "jti": { "type": "string", - "description": "Name or title of the customer.\n", - "maxLength": 60 + "maxLength": 64, + "description": "TMS Transient Token, 64 hexadecimal id value representing captured payment credentials (including Sensitive Authentication Data, e.g. CVV).\n" }, - "comment": { - "type": "string", - "description": "Comments that you can make about the customer.\n", - "maxLength": 150 - } - } - }, - "buyerInformation": { - "type": "object", - "properties": { - "merchantCustomerID": { + "transientTokenJwt": { "type": "string", - "description": "Your identifier for the customer.\n", - "maxLength": 100 + "description": "Flex API Transient Token encoded as JWT (JSON Web Token), e.g. Flex microform or Unified Payment checkout result.\n" }, - "email": { - "type": "string", - "maxLength": 255, - "description": "Customer's primary email address, including the full domain name.\n" - } - } - }, - "clientReferenceInformation": { - "type": "object", - "properties": { - "code": { - "type": "string", - "description": "Client-generated order reference or tracking number.\n", - "maxLength": 50 - } - } - }, - "merchantDefinedInformation": { - "type": "array", - "description": "Object containing the custom data that the merchant defines.\n", - "items": { - "type": "object", - "properties": { - "name": { - "type": "string", - "description": "The number you assign as the name for your merchant-defined data or secure field. Possible Values are data1 to data4 and sensitive1 to sensitive4\n\nFor example, to set the name for merchant-defined data 2 field, you would reference merchantDefinedInformation[x].name as data2\nPossible Values:\n- data1\n- data2\n- data3\n- data4\n- sensitive1\n- sensitive2\n- sensitive3\n- sensitive4\n" - }, - "value": { - "type": "string", - "description": "The value you assign for your merchant-defined data field.\n\n**Warning** Merchant-defined data fields are not intended to and must not be used to capture personally identifying information. Accordingly, merchants are prohibited from capturing, obtaining, and/or transmitting any personally identifying information in or via the merchant-defined data fields. Personally identifying information includes, but is not\nlimited to, address, credit card number, social security number, driver's license number, state-issued identification number, passport number, and card verification numbers (CVV,\nCVC2, CVV2, CID, CVN). In the event it is discovered a merchant is capturing and/or transmitting personally identifying information via the merchant-defined data fields, whether or not intentionally, the merchant's account will immediately be suspended, which will result in a rejection of any and all transaction requests submitted by the merchant after the point of suspension.\n", - "maxLength": 100 - } - } - } - }, - "defaultPaymentInstrument": { - "type": "object", - "properties": { - "id": { - "type": "string", - "description": "The Id of the Customers default Payment Instrument\n" - } - } - }, - "defaultShippingAddress": { - "type": "object", - "properties": { - "id": { - "type": "string", - "description": "The Id of the Customers default Shipping Address\n" - } - } - }, - "metadata": { - "type": "object", - "readOnly": true, - "properties": { - "creator": { - "type": "string", - "readOnly": true, - "description": "The creator of the Customer.\n" - } - } - }, - "_embedded": { - "type": "object", - "readOnly": true, - "description": "Additional resources for the Customer.\n", - "properties": { - "defaultPaymentInstrument": { - "readOnly": true, + "customer": { "type": "object", "properties": { "_links": { @@ -47675,20 +47587,32 @@ "href": { "type": "string", "readOnly": true, - "description": "Link to the Payment Instrument.\n", + "description": "Link to the Customer.\n", + "example": "/tms/v2/customers/D9F340DD3DB9C276E053A2598D0A41A3" + } + } + }, + "paymentInstruments": { + "type": "object", + "readOnly": true, + "properties": { + "href": { + "type": "string", + "readOnly": true, + "description": "Link to the Customers Payment Instruments.\n", "example": "/tms/v2/customers/D9F340DD3DB9C276E053A2598D0A41A3/payment-instruments" } } }, - "customer": { + "shippingAddress": { "type": "object", "readOnly": true, "properties": { "href": { "type": "string", "readOnly": true, - "description": "Link to the Customer.\n", - "example": "/tms/v2/customers/D9F340DD3DB9C276E053A2598D0A41A3" + "description": "Link to the Customers Shipping Addresses.\n", + "example": "/tms/v2/customers/D9F340DD3DB9C276E053A2598D0A41A3/shipping-addresses" } } } @@ -47698,251 +47622,81 @@ "type": "string", "minLength": 1, "maxLength": 32, - "description": "The Id of the Payment Instrument Token." - }, - "object": { - "type": "string", - "readOnly": true, - "example": "paymentInstrument", - "description": "The type.\n\nPossible Values:\n- paymentInstrument\n" + "description": "The Id of the Customer Token." }, - "default": { - "type": "boolean", - "description": "Flag that indicates whether customer payment instrument is the dafault.\nPossible Values:\n - `true`: Payment instrument is customer's default.\n - `false`: Payment instrument is not customer's default.\n" - }, - "state": { - "type": "string", - "readOnly": true, - "example": "ACTIVE", - "description": "Issuers state for the card number.\nPossible Values:\n- ACTIVE\n- CLOSED : The account has been closed.\n" - }, - "type": { - "type": "string", - "readOnly": true, - "description": "The type of Payment Instrument.\nPossible Values:\n- cardHash\n" - }, - "bankAccount": { - "type": "object", - "properties": { - "type": { - "type": "string", - "maxLength": 18, - "description": "Account type.\n\nPossible Values:\n - checking : C\n - general ledger : G This value is supported only on Wells Fargo ACH\n - savings : S (U.S. dollars only)\n - corporate checking : X (U.S. dollars only)\n" - } - } - }, - "card": { + "objectInformation": { "type": "object", "properties": { - "expirationMonth": { - "type": "string", - "maxLength": 2, - "description": "Two-digit month in which the payment card expires.\n\nFormat: `MM`.\n\nPossible Values: `01` through `12`.\n" - }, - "expirationYear": { - "type": "string", - "maxLength": 4, - "description": "Four-digit year in which the credit card expires.\n\nFormat: `YYYY`.\n" - }, - "type": { - "type": "string", - "description": "Value that indicates the card type. Possible Values v2 : v1:\n * 001 : visa\n * 002 : mastercard - Eurocard\u2014European regional brand of Mastercard\n * 003 : american express\n * 004 : discover\n * 005 : diners club\n * 006 : carte blanche\n * 007 : jcb\n * 008 : optima\n * 011 : twinpay credit\n * 012 : twinpay debit\n * 013 : walmart\n * 014 : enRoute\n * 015 : lowes consumer\n * 016 : home depot consumer\n * 017 : mbna\n * 018 : dicks sportswear\n * 019 : casual corner\n * 020 : sears\n * 021 : jal\n * 023 : disney\n * 024 : maestro uk domestic\n * 025 : sams club consumer\n * 026 : sams club business\n * 028 : bill me later\n * 029 : bebe\n * 030 : restoration hardware\n * 031 : delta online \u2014 use this value only for Ingenico ePayments. For other processors, use 001 for all Visa card types.\n * 032 : solo\n * 033 : visa electron\n * 034 : dankort\n * 035 : laser\n * 036 : carte bleue \u2014 formerly Cartes Bancaires\n * 037 : carta si\n * 038 : pinless debit\n * 039 : encoded account\n * 040 : uatp\n * 041 : household\n * 042 : maestro international\n * 043 : ge money uk\n * 044 : korean cards\n * 045 : style\n * 046 : jcrew\n * 047 : payease china processing ewallet\n * 048 : payease china processing bank transfer\n * 049 : meijer private label\n * 050 : hipercard \u2014 supported only by the Comercio Latino processor.\n * 051 : aura \u2014 supported only by the Comercio Latino processor.\n * 052 : redecard\n * 054 : elo \u2014 supported only by the Comercio Latino processor.\n * 055 : capital one private label\n * 056 : synchrony private label\n * 057 : costco private label\n * 060 : mada\n * 062 : china union pay\n * 063 : falabella private label\n" - }, - "issueNumber": { - "type": "string", - "maxLength": 2, - "description": "Number of times a Maestro (UK Domestic) card has been issued to the account holder. The card might or might not have an issue number. The number can consist of one or two digits, and the first digit might be a zero. When you include this value in your request, include exactly what is printed on the card. A value of 2 is different than a value of 02. Do not include the field, even with a blank value, if the card is not a Maestro (UK Domestic) card.\n\n**Note** The issue number is not required for Maestro (UK Domestic) transactions.\n" - }, - "startMonth": { - "type": "string", - "maxLength": 2, - "description": "Month of the start of the Maestro (UK Domestic) card validity period. Do not include the field, even with a blank value, if the card is not a Maestro (UK Domestic) card. `Format: MM`.\nPossible Values: 01 through 12.\n\n**Note** The start date is not required for Maestro (UK Domestic) transactions.\n" - }, - "startYear": { + "title": { "type": "string", - "maxLength": 4, - "description": "Year of the start of the Maestro (UK Domestic) card validity period. Do not include the field, even with a blank value, if the card is not a Maestro (UK Domestic) card. `Format: YYYY`.\n\n**Note** The start date is not required for Maestro (UK Domestic) transactions.\n" + "description": "Name or title of the customer.\n", + "maxLength": 60 }, - "useAs": { + "comment": { "type": "string", - "example": "pinless debit", - "description": "'Payment Instrument was created / updated as part of a pinless debit transaction.'\n" - }, - "sdkHashValue": { - "type": "string", - "minLength": 32, - "maxLength": 34, - "readOnly": true, - "description": "Hash value representing the card.\n" - }, - "tokenizedInformation": { - "type": "object", - "properties": { - "requestorID": { - "type": "string", - "maxLength": 11, - "description": "Value that identifies your business and indicates that the cardholder's account number is tokenized. This value\nis assigned by the token service provider and is unique within the token service provider's database.\n\n**Note** This field is supported only through **VisaNet** and **FDC Nashville Global**.\n" - }, - "transactionType": { - "type": "string", - "maxLength": 1, - "description": "Type of transaction that provided the token data. This value does not specify the token service provider; it\nspecifies the entity that provided you with information about the token.\n\nSet the value for this field to 1. An application on the customer's mobile device provided the token data.\n" - } - } + "description": "Comments that you can make about the customer.\n", + "maxLength": 150 } } }, "buyerInformation": { "type": "object", "properties": { - "companyTaxID": { - "type": "string", - "maxLength": 9, - "description": "Company's tax identifier. This is only used for eCheck service.\n" - }, - "currency": { + "merchantCustomerID": { "type": "string", - "maxLength": 3, - "description": "Currency used for the order. Use the three-character I[ISO Standard Currency Codes.](http://apps.cybersource.com/library/documentation/sbc/quickref/currencies.pdf)\n\nFor an authorization reversal (`reversalInformation`) or a capture (`processingOptions.capture` is set to `true`), you must use the same currency that you used in your payment authorization request.\n\n#### DCC for First Data\nYour local currency. For details, see the `currency` field description in [Dynamic Currency Conversion For First Data Using the SCMP API](http://apps.cybersource.com/library/documentation/dev_guides/DCC_FirstData_SCMP/DCC_FirstData_SCMP_API.pdf).\n# For details about currency as used in partial authorizations, see \"Features for Debit Cards and Prepaid Cards\" in the [Credit Card Services Using the SCMP API Guide](https://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html/)\n" + "description": "Your identifier for the customer.\n", + "maxLength": 100 }, - "dateOfBirth": { + "email": { "type": "string", - "format": "date", - "example": "1960-12-30", - "description": "Date of birth of the customer. Format: YYYY-MM-DD\n" - }, - "personalIdentification": { - "type": "array", - "items": { - "type": "object", - "properties": { - "id": { - "type": "string", - "maxLength": 26, - "description": "The value of the identification type.\n" - }, - "type": { - "type": "string", - "description": "The type of the identification.\n\nPossible Values:\n - driver license\n" - }, - "issuedBy": { - "type": "object", - "properties": { - "administrativeArea": { - "type": "string", - "description": "The State or province where the customer's driver's license was issued.\n\nUse the two-character State, Province, and Territory Codes for the United States and Canada.\n", - "maxLength": 20 - } - } - } - } - } + "maxLength": 255, + "description": "Customer's primary email address, including the full domain name.\n" } } }, - "billTo": { + "clientReferenceInformation": { "type": "object", "properties": { - "firstName": { - "type": "string", - "maxLength": 60, - "description": "Customer's first name. This name must be the same as the name on the card.\n" - }, - "lastName": { - "type": "string", - "maxLength": 60, - "description": "Customer's last name. This name must be the same as the name on the card.\n" - }, - "company": { - "type": "string", - "maxLength": 60, - "description": "Name of the customer's company.\n" - }, - "address1": { - "type": "string", - "maxLength": 60, - "description": "Payment card billing street address as it appears on the credit card issuer's records.\n" - }, - "address2": { - "type": "string", - "maxLength": 60, - "description": "Additional address information.\n" - }, - "locality": { - "type": "string", - "maxLength": 50, - "description": "Payment card billing city.\n" - }, - "administrativeArea": { - "type": "string", - "maxLength": 20, - "description": "State or province of the billing address. Use the State, Province, and Territory Codes for the United States\nand Canada.\n" - }, - "postalCode": { - "type": "string", - "maxLength": 10, - "description": "Postal code for the billing address. The postal code must consist of 5 to 9 digits.\n\nWhen the billing country is the U.S., the 9-digit postal code must follow this format:\n[5 digits][dash][4 digits]\n\n**Example** `12345-6789`\n\nWhen the billing country is Canada, the 6-digit postal code must follow this format:\n[alpha][numeric][alpha][space][numeric][alpha][numeric]\n\n**Example** `A1B 2C3`\n" - }, - "country": { + "code": { "type": "string", - "maxLength": 2, - "description": "Payment card billing country. Use the two-character ISO Standard Country Codes.\n" - }, - "email": { - "type": "string", - "maxLength": 255, - "description": "Customer's email address, including the full domain name.\n" - }, - "phoneNumber": { - "type": "string", - "maxLength": 15, - "description": "Customer's phone number.\n" + "description": "Client-generated order reference or tracking number.\n", + "maxLength": 50 } } }, - "processingInformation": { - "type": "object", - "title": "tmsPaymentInstrumentProcessingInfo", - "properties": { - "billPaymentProgramEnabled": { - "type": "boolean", - "description": "Flag that indicates that this is a payment for a bill or for an existing contractual loan.\nPossible Values:\n- `true`: Bill payment or loan payment.\n- `false` (default): Not a bill payment or loan payment.\n# For processor-specific details, see the `bill_payment` field description in [Credit Card Services Using the SCMP API.](https://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html/)\n" - }, - "bankTransferOptions": { - "type": "object", - "properties": { - "SECCode": { - "type": "string", - "maxLength": 3, - "description": "Specifies the authorization method for the transaction.\n\n#### TeleCheck\nPossible Values:\n- `ARC`: account receivable conversion\n- `CCD`: corporate cash disbursement\n- `POP`: point of purchase conversion\n- `PPD`: prearranged payment and deposit entry\n- `TEL`: telephone-initiated entry\n- `WEB`: internet-initiated entry\n\n# For details, see `ecp_sec_code` field description in the [Electronic Check Services Using the SCMP API Guide.](https://apps.cybersource.com/library/documentation/dev_guides/EChecks_SCMP_API/html/)\n" - } + "merchantDefinedInformation": { + "type": "array", + "description": "Object containing the custom data that the merchant defines.\n", + "items": { + "type": "object", + "properties": { + "name": { + "type": "string", + "description": "The number you assign as the name for your merchant-defined data or secure field. Possible Values are data1 to data4 and sensitive1 to sensitive4\n\nFor example, to set the name for merchant-defined data 2 field, you would reference merchantDefinedInformation[x].name as data2\nPossible Values:\n- data1\n- data2\n- data3\n- data4\n- sensitive1\n- sensitive2\n- sensitive3\n- sensitive4\n" + }, + "value": { + "type": "string", + "description": "The value you assign for your merchant-defined data field.\n\n**Warning** Merchant-defined data fields are not intended to and must not be used to capture personally identifying information. Accordingly, merchants are prohibited from capturing, obtaining, and/or transmitting any personally identifying information in or via the merchant-defined data fields. Personally identifying information includes, but is not\nlimited to, address, credit card number, social security number, driver's license number, state-issued identification number, passport number, and card verification numbers (CVV,\nCVC2, CVV2, CID, CVN). In the event it is discovered a merchant is capturing and/or transmitting personally identifying information via the merchant-defined data fields, whether or not intentionally, the merchant's account will immediately be suspended, which will result in a rejection of any and all transaction requests submitted by the merchant after the point of suspension.\n", + "maxLength": 100 } } } }, - "merchantInformation": { + "defaultPaymentInstrument": { "type": "object", "properties": { - "merchantDescriptor": { - "type": "object", - "properties": { - "alternateName": { - "type": "string", - "description": "Alternate contact information for your business,such as an email address or URL.\nThis value might be displayed on the cardholder's statement.\nWhen you do not include this value in your capture or credit request, the merchant URL from your CyberSource account is used.\nImportant This value must consist of English characters\n", - "maxLength": 13 - } - } + "id": { + "type": "string", + "description": "The Id of the Customers default Payment Instrument\n" } } }, - "instrumentIdentifier": { + "defaultShippingAddress": { "type": "object", "properties": { "id": { "type": "string", - "minLength": 12, - "maxLength": 32, - "description": "The Id of the Instrument Identifier linked to the Payment Instrument.\n" + "description": "The Id of the Customers default Shipping Address\n" } } }, @@ -47953,18 +47707,17 @@ "creator": { "type": "string", "readOnly": true, - "description": "The creator of the Payment Instrument.\n" + "description": "The creator of the Customer.\n" } } }, "_embedded": { "type": "object", "readOnly": true, - "description": "Additional resources for the Payment Instrument.\n", + "description": "Additional resources for the Customer.\n", "properties": { - "instrumentIdentifier": { + "defaultPaymentInstrument": { "readOnly": true, - "title": "tmsEmbeddedInstrumentIdentifier", "type": "object", "properties": { "_links": { @@ -47978,20 +47731,20 @@ "href": { "type": "string", "readOnly": true, - "description": "Link to the Instrument Identifier.\n", - "example": "tms/v1/instrumentidentifiers/7010000000016241111" + "description": "Link to the Payment Instrument.\n", + "example": "/tms/v2/customers/D9F340DD3DB9C276E053A2598D0A41A3/payment-instruments" } } }, - "paymentInstruments": { + "customer": { "type": "object", "readOnly": true, "properties": { "href": { "type": "string", "readOnly": true, - "description": "Link to the Instrument Identifiers Payment Instruments.\n", - "example": "tms/v1/instrumentidentifiers/7010000000016241111/paymentinstruments" + "description": "Link to the Customer.\n", + "example": "/tms/v2/customers/D9F340DD3DB9C276E053A2598D0A41A3" } } } @@ -47999,13 +47752,19 @@ }, "id": { "type": "string", - "description": "The Id of the Instrument Identifier Token.\n" + "minLength": 1, + "maxLength": 32, + "description": "The Id of the Payment Instrument Token." }, "object": { "type": "string", "readOnly": true, - "example": "instrumentIdentifier", - "description": "The type.\n\nPossible Values:\n- instrumentIdentifier\n" + "example": "paymentInstrument", + "description": "The type.\n\nPossible Values:\n- paymentInstrument\n" + }, + "default": { + "type": "boolean", + "description": "Flag that indicates whether customer payment instrument is the dafault.\nPossible Values:\n - `true`: Payment instrument is customer's default.\n - `false`: Payment instrument is not customer's default.\n" }, "state": { "type": "string", @@ -48015,35 +47774,22 @@ }, "type": { "type": "string", - "description": "The type of Instrument Identifier.\nPossible Values:\n- enrollable card\n- enrollable token\n" - }, - "source": { - "type": "string", - "description": "Source of the card details.\nPossible Values:\n- CONTACTLESS_TAP\n" + "readOnly": true, + "description": "The type of Payment Instrument.\nPossible Values:\n- cardHash\n" }, - "tokenProvisioningInformation": { + "bankAccount": { "type": "object", "properties": { - "consumerConsentObtained": { - "type": "boolean", - "description": "Flag that indicates whether the user consented to the tokenization of their credentials. Required for card network tokenization in certain markets, such as India.\nPossible Values:\n- `true`: Consumer has consented to tokenization of their credentials.\n- `false`: Consumer has not consented to tokenization of their credentials.\n" - }, - "multiFactorAuthenticated": { - "type": "boolean", - "description": "Flag that indicates whether AFA (Additional Factor of Authentication) for the PAN was completed. Required for card network tokenization in certain markets, such as India.\nPossible Values:\n- `true`: Consumer has been authenticated by the issuer.\n- `false`: Consumer has not been authenticated by the issuer.\n" + "type": { + "type": "string", + "maxLength": 18, + "description": "Account type.\n\nPossible Values:\n - checking : C\n - general ledger : G This value is supported only on Wells Fargo ACH\n - savings : S (U.S. dollars only)\n - corporate checking : X (U.S. dollars only)\n" } } }, "card": { "type": "object", - "description": "The expirationMonth, expirationYear and securityCode is sent to the issuer as part of network token enrollment and is not stored under the Instrument Identifier.\n", "properties": { - "number": { - "type": "string", - "minLength": 12, - "maxLength": 19, - "description": "The customer's payment card number, also known as the Primary Account Number (PAN). You can also use this field\nfor encoded account numbers.\n" - }, "expirationMonth": { "type": "string", "maxLength": 2, @@ -48054,474 +47800,94 @@ "maxLength": 4, "description": "Four-digit year in which the credit card expires.\n\nFormat: `YYYY`.\n" }, - "securityCode": { - "type": "string", - "maxLength": 4, - "description": "Card Verification Code. \nThis value is sent to the issuer to support the approval of a network token provision.\nIt is not persisted against the Instrument Identifier.\n" - } - } - }, - "pointOfSaleInformation": { - "type": "object", - "required": [ - "emvTags" - ], - "properties": { - "emvTags": { - "type": "array", - "minItems": 1, - "maxItems": 50, - "items": { - "type": "object", - "required": [ - "tag", - "value", - "source" - ], - "properties": { - "tag": { - "type": "string", - "minLength": 1, - "maxLength": 10, - "pattern": "^[0-9A-Fa-f]{1,10}$", - "description": "EMV tag, 1-10 hex characters." - }, - "value": { - "type": "string", - "minLength": 1, - "maxLength": 64, - "description": "EMV tag value, 1-64 characters." - }, - "source": { - "type": "string", - "description": "Source of the tag.\n\nPossible Values:\n - CARD\n - TERMINAL\n" - } - }, - "example": { - "tag": "5A", - "value": "4111111111111111", - "source": "CARD" - } - } - } - } - }, - "bankAccount": { - "type": "object", - "properties": { - "number": { - "type": "string", - "maxLength": 17, - "description": "Account number.\n\nWhen processing encoded account numbers, use this field for the encoded account number.\n" - }, - "routingNumber": { - "type": "string", - "description": "Bank routing number. This is also called the transit number.\n\n# For details, see `ecp_rdfi` field description in the [Electronic Check Services Using the SCMP API Guide.](https://apps.cybersource.com/library/documentation/dev_guides/EChecks_SCMP_API/html/)\n" - } - } - }, - "tokenizedCard": { - "title": "tmsv2TokenizedCard", - "type": "object", - "properties": { - "_links": { - "type": "object", - "readOnly": true, - "properties": { - "self": { - "type": "object", - "readOnly": true, - "properties": { - "href": { - "type": "string", - "readOnly": true, - "description": "Link to the Tokenized Card.\nexample: 'tms/v2/tokenized-cards/7010000000016241111'\n" - } - } - } - } - }, - "id": { - "type": "string", - "readOnly": true, - "description": "The Id of the Tokenized Card.\n" - }, - "object": { - "type": "string", - "readOnly": true, - "example": "tokenizedCard", - "description": "The type.\nPossible Values:\n- tokenizedCard\n" - }, - "accountReferenceId": { - "type": "string", - "description": "An identifier provided by the issuer for the account.\n" - }, - "consumerId": { - "type": "string", - "maxLength": 36, - "description": "Identifier of the consumer within the wallet. Maximum 24 characters for VTS." - }, - "createInstrumentIdentifier": { - "type": "boolean", - "description": "Specifies whether the InstrumentId should be created (true) or not (false).\nPossible Values:\n- `true`: The InstrumentId should be created.\n- `false`: The InstrumentId should be created.\n" - }, - "source": { - "type": "string", - "description": "Source of the card details.\nPossible Values:\n- ONFILE\n- TOKEN\n- ISSUER\n" - }, - "state": { - "type": "string", - "readOnly": true, - "example": "ACTIVE", - "description": "State of the network token or network token provision.\nPossible Values:\n ACTIVE : Network token is active.\n SUSPENDED : Network token is suspended. This state can change back to ACTIVE.\n DELETED : This is a final state for a network token instance.\n UNPROVISIONED : A previous network token.\n" - }, - "reason": { - "type": "string", - "readOnly": true, - "example": "ACTIVE", - "description": "Issuers state for the network token\nPossible Values:\n- INVALID_REQUEST : The network token provision request contained invalid data.\n- CARD_VERIFICATION_FAILED : The network token provision request contained data that could not be verified.\n- CARD_NOT_ELIGIBLE : Card can currently not be used with issuer for tokenization.\n- CARD_NOT_ALLOWED : Card can currently not be used with card association for tokenization.\n- DECLINED : Card can currently not be used with issuer for tokenization.\n- SERVICE_UNAVAILABLE : The network token service was unavailable or timed out.\n- SYSTEM_ERROR : An unexpected error occurred with network token service, check configuration.\n" - }, - "number": { - "type": "string", - "readOnly": true, - "description": "The token requestor's network token for the provided PAN and consumer Id, if available.\n" - }, - "expirationMonth": { - "type": "string", - "readOnly": true, - "description": "Two-digit month in which the network token expires.\nFormat: `MM`.\nPossible Values: `01` through `12`.\n" - }, - "expirationYear": { - "type": "string", - "readOnly": true, - "description": "Four-digit year in which the network token expires.\nFormat: `YYYY`.\n" - }, "type": { "type": "string", - "description": "The type of card (Card Network).\nPossible Values:\n- visa\n- mastercard\n- americanexpress\n" + "description": "Value that indicates the card type. Possible Values v2 : v1:\n * 001 : visa\n * 002 : mastercard - Eurocard\u2014European regional brand of Mastercard\n * 003 : american express\n * 004 : discover\n * 005 : diners club\n * 006 : carte blanche\n * 007 : jcb\n * 008 : optima\n * 011 : twinpay credit\n * 012 : twinpay debit\n * 013 : walmart\n * 014 : enRoute\n * 015 : lowes consumer\n * 016 : home depot consumer\n * 017 : mbna\n * 018 : dicks sportswear\n * 019 : casual corner\n * 020 : sears\n * 021 : jal\n * 023 : disney\n * 024 : maestro uk domestic\n * 025 : sams club consumer\n * 026 : sams club business\n * 028 : bill me later\n * 029 : bebe\n * 030 : restoration hardware\n * 031 : delta online \u2014 use this value only for Ingenico ePayments. For other processors, use 001 for all Visa card types.\n * 032 : solo\n * 033 : visa electron\n * 034 : dankort\n * 035 : laser\n * 036 : carte bleue \u2014 formerly Cartes Bancaires\n * 037 : carta si\n * 038 : pinless debit\n * 039 : encoded account\n * 040 : uatp\n * 041 : household\n * 042 : maestro international\n * 043 : ge money uk\n * 044 : korean cards\n * 045 : style\n * 046 : jcrew\n * 047 : payease china processing ewallet\n * 048 : payease china processing bank transfer\n * 049 : meijer private label\n * 050 : hipercard \u2014 supported only by the Comercio Latino processor.\n * 051 : aura \u2014 supported only by the Comercio Latino processor.\n * 052 : redecard\n * 054 : elo \u2014 supported only by the Comercio Latino processor.\n * 055 : capital one private label\n * 056 : synchrony private label\n * 057 : costco private label\n * 060 : mada\n * 062 : china union pay\n * 063 : falabella private label\n" }, - "cryptogram": { + "issueNumber": { "type": "string", - "readOnly": true, - "description": "Value generated by the card association to be used alongside the network token for processing a payment.\n", - "example": "CgAFRFYFPTFOfg5rj2ais9wQAAAAAM=" - }, - "securityCode": { - "type": "string", - "readOnly": true, - "description": "4-digit number generated by the card association to be used alogside the network token for processing a payment. Only supported for Amex and SCOF.\n", - "example": "4523" - }, - "eci": { - "type": "string", - "readOnly": true, - "description": "Raw Electronic Commerce Indicator provided by the card association with the result of the cardholder authentication.\n" + "maxLength": 2, + "description": "Number of times a Maestro (UK Domestic) card has been issued to the account holder. The card might or might not have an issue number. The number can consist of one or two digits, and the first digit might be a zero. When you include this value in your request, include exactly what is printed on the card. A value of 2 is different than a value of 02. Do not include the field, even with a blank value, if the card is not a Maestro (UK Domestic) card.\n\n**Note** The issue number is not required for Maestro (UK Domestic) transactions.\n" }, - "requestorId": { + "startMonth": { "type": "string", - "readOnly": true, - "maxLength": 11, - "description": "11-digit identifier that uniquely identifies the Token Requestor.\n" + "maxLength": 2, + "description": "Month of the start of the Maestro (UK Domestic) card validity period. Do not include the field, even with a blank value, if the card is not a Maestro (UK Domestic) card. `Format: MM`.\nPossible Values: 01 through 12.\n\n**Note** The start date is not required for Maestro (UK Domestic) transactions.\n" }, - "enrollmentId": { + "startYear": { "type": "string", - "readOnly": true, - "description": "Unique id to identify this PAN/ enrollment.\n" + "maxLength": 4, + "description": "Year of the start of the Maestro (UK Domestic) card validity period. Do not include the field, even with a blank value, if the card is not a Maestro (UK Domestic) card. `Format: YYYY`.\n\n**Note** The start date is not required for Maestro (UK Domestic) transactions.\n" }, - "tokenReferenceId": { + "useAs": { "type": "string", - "readOnly": true, - "description": "Unique ID for netwrok token.\n" + "example": "pinless debit", + "description": "'Payment Instrument was created / updated as part of a pinless debit transaction.'\n" }, - "paymentAccountReference": { + "sdkHashValue": { "type": "string", + "minLength": 32, + "maxLength": 34, "readOnly": true, - "description": "Payment account reference.\n" + "description": "Hash value representing the card.\n" }, - "card": { + "tokenizedInformation": { "type": "object", - "description": "Card object used to create a network token\n", "properties": { - "number": { - "type": "string", - "minLength": 12, - "maxLength": 19, - "description": "The customer's payment card number, also known as the Primary Account Number (PAN).\n" - }, - "expirationMonth": { - "type": "string", - "maxLength": 2, - "description": "Two-digit month in which the payment card expires.\n\nFormat: `MM`.\n\nPossible Values: `01` through `12`.\n" - }, - "expirationYear": { - "type": "string", - "maxLength": 4, - "description": "Four-digit year in which the credit card expires.\n\nFormat: `YYYY`.\n" - }, - "type": { + "requestorID": { "type": "string", - "description": "The type of card (Card Network).\nPossible Values:\n- 001: visa\n" + "maxLength": 11, + "description": "Value that identifies your business and indicates that the cardholder's account number is tokenized. This value\nis assigned by the token service provider and is unique within the token service provider's database.\n\n**Note** This field is supported only through **VisaNet** and **FDC Nashville Global**.\n" }, - "suffix": { + "transactionType": { "type": "string", - "readOnly": true, - "description": "The customer's latest payment card number suffix.\n" - }, - "issueDate": { - "type": "string", - "readOnly": true, - "format": "date", - "description": "Card issuance date. XML date format: YYYY-MM-DD.", - "example": "2030-12-15" - }, - "activationDate": { - "type": "string", - "readOnly": true, - "format": "date", - "description": "Card activation date. XML date format: YYYY-MM-DD", - "example": "2030-12-20" - }, - "expirationPrinted": { - "type": "boolean", - "readOnly": true, - "description": "Indicates if the expiration date is printed on the card.", - "example": true - }, - "securityCodePrinted": { - "type": "boolean", - "readOnly": true, - "description": "Indicates if the Card Verification Number is printed on the card.", - "example": true - }, - "termsAndConditions": { - "type": "object", - "readOnly": true, - "properties": { - "url": { - "type": "string", - "readOnly": true, - "description": "Issuer Card Terms and Conditions url." - } - } - } - } - }, - "passcode": { - "type": "object", - "description": "Passcode by issuer for ID&V.\n", - "properties": { - "value": { - "type": "string", - "description": "OTP generated at issuer.\n" - } - } - }, - "metadata": { - "type": "object", - "readOnly": true, - "description": "Metadata associated with the tokenized card.\n", - "properties": { - "cardArt": { - "title": "TmsCardArt", - "description": "Card art associated with the tokenized card.\n", - "type": "object", - "readOnly": true, - "properties": { - "foregroundColor": { - "description": "Card foreground color.\n", - "type": "string", - "readOnly": true - }, - "combinedAsset": { - "description": "Combined card art asset associated with the tokenized card.\n", - "type": "object", - "readOnly": true, - "properties": { - "id": { - "type": "string", - "description": "Unique identifier for the asset\n" - }, - "_links": { - "type": "object", - "readOnly": true, - "properties": { - "self": { - "type": "object", - "readOnly": true, - "properties": { - "href": { - "type": "string", - "readOnly": true, - "description": "Link to the card art asset.\nexample: 'tms/v2/tokens/7020000000010603216/visa/assets/card-art-combined'\n" - } - } - } - } - } - } - }, - "brandLogoAsset": { - "description": "Brand logo card art asset associated with the tokenized card.\n", - "type": "object", - "readOnly": true, - "properties": { - "id": { - "type": "string", - "description": "Unique identifier for the asset\n" - }, - "_links": { - "type": "object", - "readOnly": true, - "properties": { - "self": { - "type": "object", - "readOnly": true, - "properties": { - "href": { - "type": "string", - "readOnly": true, - "description": "Link to the card art asset.\nexample: 'tms/v2/tokens/7020000000010603216/visa/assets/brand-logo'\n" - } - } - } - } - } - } - }, - "issuerLogoAsset": { - "description": "Issuer logo card art asset associated with the tokenized card.\n", - "type": "object", - "readOnly": true, - "properties": { - "id": { - "type": "string", - "description": "Unique identifier for the asset\n" - }, - "_links": { - "type": "object", - "readOnly": true, - "properties": { - "self": { - "type": "object", - "readOnly": true, - "properties": { - "href": { - "type": "string", - "readOnly": true, - "description": "Link to the card art asset.\nexample: 'tms/v2/tokens/7020000000010603216/visa/assets/issuer-logo'\n" - } - } - } - } - } - } - }, - "iconAsset": { - "description": "Icon card art asset associated with the tokenized card.\n", - "type": "object", - "readOnly": true, - "properties": { - "id": { - "type": "string", - "description": "Unique identifier for the asset\n" - }, - "_links": { - "type": "object", - "readOnly": true, - "properties": { - "self": { - "type": "object", - "readOnly": true, - "properties": { - "href": { - "type": "string", - "readOnly": true, - "description": "Link to the card art asset.\nexample: 'tms/v2/tokens/7020000000010603216/visa/assets/icon'\n" - } - } - } - } - } - } - } - } - }, - "issuer": { - "description": "Issuer associated with the tokenized card.\n", - "type": "object", - "readOnly": true, - "properties": { - "name": { - "description": "Issuer name.\n", - "type": "string", - "readOnly": true - }, - "shortDescription": { - "description": "Short description of the card.\n", - "type": "string", - "readOnly": true - }, - "longDescription": { - "description": "Long description of the card.\n", - "type": "string", - "readOnly": true - }, - "email": { - "type": "string", - "readOnly": true, - "description": "Issuer customer service email address." - }, - "phoneNumber": { - "type": "string", - "readOnly": true, - "description": "Issuer customer service phone number." - }, - "url": { - "type": "string", - "readOnly": true, - "description": "Issuer customer service url." - } - } + "maxLength": 1, + "description": "Type of transaction that provided the token data. This value does not specify the token service provider; it\nspecifies the entity that provided you with information about the token.\n\nSet the value for this field to 1. An application on the customer's mobile device provided the token data.\n" } } } } }, - "issuer": { + "buyerInformation": { "type": "object", - "readOnly": true, "properties": { - "paymentAccountReference": { + "companyTaxID": { "type": "string", - "readOnly": true, - "maxLength": 32, - "description": "This reference number serves as a link to the cardholder account and to all transactions for that account.\n" - } - } - }, - "processingInformation": { - "type": "object", - "properties": { - "authorizationOptions": { - "type": "object", - "title": "tmsAuthorizationOptions", - "properties": { - "initiator": { - "type": "object", - "properties": { - "merchantInitiatedTransaction": { - "type": "object", - "properties": { - "previousTransactionId": { - "type": "string", - "maxLength": 15, - "description": "Network transaction identifier that was returned in the payment response field _processorInformation.transactionID_\nin the reply message for either the original merchant-initiated payment in the series or the previous\nmerchant-initiated payment in the series.\n" - }, - "originalAuthorizedAmount": { - "type": "string", - "maxLength": 15, - "description": "Amount of the original authorization.\n" - } + "maxLength": 9, + "description": "Company's tax identifier. This is only used for eCheck service.\n" + }, + "currency": { + "type": "string", + "maxLength": 3, + "description": "Currency used for the order. Use the three-character I[ISO Standard Currency Codes.](http://apps.cybersource.com/library/documentation/sbc/quickref/currencies.pdf)\n\nFor an authorization reversal (`reversalInformation`) or a capture (`processingOptions.capture` is set to `true`), you must use the same currency that you used in your payment authorization request.\n\n#### DCC for First Data\nYour local currency. For details, see the `currency` field description in [Dynamic Currency Conversion For First Data Using the SCMP API](http://apps.cybersource.com/library/documentation/dev_guides/DCC_FirstData_SCMP/DCC_FirstData_SCMP_API.pdf).\n# For details about currency as used in partial authorizations, see \"Features for Debit Cards and Prepaid Cards\" in the [Credit Card Services Using the SCMP API Guide](https://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html/)\n" + }, + "dateOfBirth": { + "type": "string", + "format": "date", + "example": "1960-12-30", + "description": "Date of birth of the customer. Format: YYYY-MM-DD\n" + }, + "personalIdentification": { + "type": "array", + "items": { + "type": "object", + "properties": { + "id": { + "type": "string", + "maxLength": 26, + "description": "The value of the identification type.\n" + }, + "type": { + "type": "string", + "description": "The type of the identification.\n\nPossible Values:\n - driver license\n" + }, + "issuedBy": { + "type": "object", + "properties": { + "administrativeArea": { + "type": "string", + "description": "The State or province where the customer's driver's license was issued.\n\nUse the two-character State, Province, and Territory Codes for the United States and Canada.\n", + "maxLength": 20 } } } @@ -48532,7 +47898,4760 @@ }, "billTo": { "type": "object", - "description": "This information is sent to the issuer as part of network token enrollment and is not stored under the Instrument Identifier.\n", + "properties": { + "firstName": { + "type": "string", + "maxLength": 60, + "description": "Customer's first name. This name must be the same as the name on the card.\n" + }, + "lastName": { + "type": "string", + "maxLength": 60, + "description": "Customer's last name. This name must be the same as the name on the card.\n" + }, + "company": { + "type": "string", + "maxLength": 60, + "description": "Name of the customer's company.\n" + }, + "address1": { + "type": "string", + "maxLength": 60, + "description": "Payment card billing street address as it appears on the credit card issuer's records.\n" + }, + "address2": { + "type": "string", + "maxLength": 60, + "description": "Additional address information.\n" + }, + "locality": { + "type": "string", + "maxLength": 50, + "description": "Payment card billing city.\n" + }, + "administrativeArea": { + "type": "string", + "maxLength": 20, + "description": "State or province of the billing address. Use the State, Province, and Territory Codes for the United States\nand Canada.\n" + }, + "postalCode": { + "type": "string", + "maxLength": 10, + "description": "Postal code for the billing address. The postal code must consist of 5 to 9 digits.\n\nWhen the billing country is the U.S., the 9-digit postal code must follow this format:\n[5 digits][dash][4 digits]\n\n**Example** `12345-6789`\n\nWhen the billing country is Canada, the 6-digit postal code must follow this format:\n[alpha][numeric][alpha][space][numeric][alpha][numeric]\n\n**Example** `A1B 2C3`\n" + }, + "country": { + "type": "string", + "maxLength": 2, + "description": "Payment card billing country. Use the two-character ISO Standard Country Codes.\n" + }, + "email": { + "type": "string", + "maxLength": 255, + "description": "Customer's email address, including the full domain name.\n" + }, + "phoneNumber": { + "type": "string", + "maxLength": 15, + "description": "Customer's phone number.\n" + } + } + }, + "processingInformation": { + "type": "object", + "title": "tmsPaymentInstrumentProcessingInfo", + "properties": { + "billPaymentProgramEnabled": { + "type": "boolean", + "description": "Flag that indicates that this is a payment for a bill or for an existing contractual loan.\nPossible Values:\n- `true`: Bill payment or loan payment.\n- `false` (default): Not a bill payment or loan payment.\n# For processor-specific details, see the `bill_payment` field description in [Credit Card Services Using the SCMP API.](https://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html/)\n" + }, + "bankTransferOptions": { + "type": "object", + "properties": { + "SECCode": { + "type": "string", + "maxLength": 3, + "description": "Specifies the authorization method for the transaction.\n\n#### TeleCheck\nPossible Values:\n- `ARC`: account receivable conversion\n- `CCD`: corporate cash disbursement\n- `POP`: point of purchase conversion\n- `PPD`: prearranged payment and deposit entry\n- `TEL`: telephone-initiated entry\n- `WEB`: internet-initiated entry\n\n# For details, see `ecp_sec_code` field description in the [Electronic Check Services Using the SCMP API Guide.](https://apps.cybersource.com/library/documentation/dev_guides/EChecks_SCMP_API/html/)\n" + } + } + } + } + }, + "merchantInformation": { + "type": "object", + "title": "TmsMerchantInformation", + "properties": { + "merchantDescriptor": { + "type": "object", + "properties": { + "alternateName": { + "type": "string", + "description": "Alternate contact information for your business,such as an email address or URL.\nThis value might be displayed on the cardholder's statement.\nWhen you do not include this value in your capture or credit request, the merchant URL from your CyberSource account is used.\nImportant This value must consist of English characters\n", + "maxLength": 13 + } + } + } + } + }, + "instrumentIdentifier": { + "type": "object", + "properties": { + "id": { + "type": "string", + "minLength": 12, + "maxLength": 32, + "description": "The Id of the Instrument Identifier linked to the Payment Instrument.\n" + } + } + }, + "metadata": { + "type": "object", + "readOnly": true, + "properties": { + "creator": { + "type": "string", + "readOnly": true, + "description": "The creator of the Payment Instrument.\n" + } + } + }, + "_embedded": { + "type": "object", + "readOnly": true, + "description": "Additional resources for the Payment Instrument.\n", + "properties": { + "instrumentIdentifier": { + "readOnly": true, + "title": "tmsEmbeddedInstrumentIdentifier", + "type": "object", + "properties": { + "_links": { + "type": "object", + "readOnly": true, + "properties": { + "self": { + "type": "object", + "readOnly": true, + "properties": { + "href": { + "type": "string", + "readOnly": true, + "description": "Link to the Instrument Identifier.\n", + "example": "tms/v1/instrumentidentifiers/7010000000016241111" + } + } + }, + "paymentInstruments": { + "type": "object", + "readOnly": true, + "properties": { + "href": { + "type": "string", + "readOnly": true, + "description": "Link to the Instrument Identifiers Payment Instruments.\n", + "example": "tms/v1/instrumentidentifiers/7010000000016241111/paymentinstruments" + } + } + } + } + }, + "id": { + "type": "string", + "description": "The Id of the Instrument Identifier Token.\n" + }, + "object": { + "type": "string", + "readOnly": true, + "example": "instrumentIdentifier", + "description": "The type.\n\nPossible Values:\n- instrumentIdentifier\n" + }, + "state": { + "type": "string", + "readOnly": true, + "example": "ACTIVE", + "description": "Issuers state for the card number.\nPossible Values:\n- ACTIVE\n- CLOSED : The account has been closed.\n" + }, + "type": { + "type": "string", + "description": "The type of Instrument Identifier.\nPossible Values:\n- enrollable card\n- enrollable token\n" + }, + "source": { + "type": "string", + "description": "Source of the card details.\nPossible Values:\n- CONTACTLESS_TAP\n" + }, + "tokenProvisioningInformation": { + "type": "object", + "properties": { + "consumerConsentObtained": { + "type": "boolean", + "description": "Flag that indicates whether the user consented to the tokenization of their credentials. Required for card network tokenization in certain markets, such as India.\nPossible Values:\n- `true`: Consumer has consented to tokenization of their credentials.\n- `false`: Consumer has not consented to tokenization of their credentials.\n" + }, + "multiFactorAuthenticated": { + "type": "boolean", + "description": "Flag that indicates whether AFA (Additional Factor of Authentication) for the PAN was completed. Required for card network tokenization in certain markets, such as India.\nPossible Values:\n- `true`: Consumer has been authenticated by the issuer.\n- `false`: Consumer has not been authenticated by the issuer.\n" + } + } + }, + "card": { + "type": "object", + "description": "The expirationMonth, expirationYear and securityCode is sent to the issuer as part of network token enrollment and is not stored under the Instrument Identifier.\n", + "properties": { + "number": { + "type": "string", + "minLength": 12, + "maxLength": 19, + "description": "The customer's payment card number, also known as the Primary Account Number (PAN). You can also use this field\nfor encoded account numbers.\n" + }, + "expirationMonth": { + "type": "string", + "maxLength": 2, + "description": "Two-digit month in which the payment card expires.\n\nFormat: `MM`.\n\nPossible Values: `01` through `12`.\n" + }, + "expirationYear": { + "type": "string", + "maxLength": 4, + "description": "Four-digit year in which the credit card expires.\n\nFormat: `YYYY`.\n" + }, + "securityCode": { + "type": "string", + "maxLength": 4, + "description": "Card Verification Code. \nThis value is sent to the issuer to support the approval of a network token provision.\nIt is not persisted against the Instrument Identifier.\n" + } + } + }, + "pointOfSaleInformation": { + "type": "object", + "required": [ + "emvTags" + ], + "properties": { + "emvTags": { + "type": "array", + "minItems": 1, + "maxItems": 50, + "items": { + "type": "object", + "required": [ + "tag", + "value", + "source" + ], + "properties": { + "tag": { + "type": "string", + "minLength": 1, + "maxLength": 10, + "pattern": "^[0-9A-Fa-f]{1,10}$", + "description": "EMV tag, 1-10 hex characters." + }, + "value": { + "type": "string", + "minLength": 1, + "maxLength": 64, + "description": "EMV tag value, 1-64 characters." + }, + "source": { + "type": "string", + "description": "Source of the tag.\n\nPossible Values:\n - CARD\n - TERMINAL\n" + } + }, + "example": { + "tag": "5A", + "value": "4111111111111111", + "source": "CARD" + } + } + } + } + }, + "bankAccount": { + "type": "object", + "properties": { + "number": { + "type": "string", + "maxLength": 17, + "description": "Account number.\n\nWhen processing encoded account numbers, use this field for the encoded account number.\n" + }, + "routingNumber": { + "type": "string", + "description": "Bank routing number. This is also called the transit number.\n\n# For details, see `ecp_rdfi` field description in the [Electronic Check Services Using the SCMP API Guide.](https://apps.cybersource.com/library/documentation/dev_guides/EChecks_SCMP_API/html/)\n" + } + } + }, + "tokenizedCard": { + "title": "tmsv2TokenizedCard", + "type": "object", + "properties": { + "_links": { + "type": "object", + "readOnly": true, + "properties": { + "self": { + "type": "object", + "readOnly": true, + "properties": { + "href": { + "type": "string", + "readOnly": true, + "description": "Link to the Tokenized Card.\nexample: 'tms/v2/tokenized-cards/7010000000016241111'\n" + } + } + } + } + }, + "id": { + "type": "string", + "readOnly": true, + "description": "The Id of the Tokenized Card.\n" + }, + "object": { + "type": "string", + "readOnly": true, + "example": "tokenizedCard", + "description": "The type.\nPossible Values:\n- tokenizedCard\n" + }, + "accountReferenceId": { + "type": "string", + "description": "An identifier provided by the issuer for the account.\n" + }, + "consumerId": { + "type": "string", + "maxLength": 36, + "description": "Identifier of the consumer within the wallet. Maximum 24 characters for VTS." + }, + "createInstrumentIdentifier": { + "type": "boolean", + "description": "Specifies whether the InstrumentId should be created (true) or not (false).\nPossible Values:\n- `true`: The InstrumentId should be created.\n- `false`: The InstrumentId should be created.\n" + }, + "source": { + "type": "string", + "description": "Source of the card details.\nPossible Values:\n- ONFILE\n- TOKEN\n- ISSUER\n" + }, + "state": { + "type": "string", + "readOnly": true, + "example": "ACTIVE", + "description": "State of the network token or network token provision.\nPossible Values:\n ACTIVE : Network token is active.\n SUSPENDED : Network token is suspended. This state can change back to ACTIVE.\n DELETED : This is a final state for a network token instance.\n UNPROVISIONED : A previous network token.\n" + }, + "reason": { + "type": "string", + "readOnly": true, + "example": "ACTIVE", + "description": "Issuers state for the network token\nPossible Values:\n- INVALID_REQUEST : The network token provision request contained invalid data.\n- CARD_VERIFICATION_FAILED : The network token provision request contained data that could not be verified.\n- CARD_NOT_ELIGIBLE : Card can currently not be used with issuer for tokenization.\n- CARD_NOT_ALLOWED : Card can currently not be used with card association for tokenization.\n- DECLINED : Card can currently not be used with issuer for tokenization.\n- SERVICE_UNAVAILABLE : The network token service was unavailable or timed out.\n- SYSTEM_ERROR : An unexpected error occurred with network token service, check configuration.\n" + }, + "number": { + "type": "string", + "readOnly": true, + "description": "The token requestor's network token for the provided PAN and consumer Id, if available.\n" + }, + "expirationMonth": { + "type": "string", + "readOnly": true, + "description": "Two-digit month in which the network token expires.\nFormat: `MM`.\nPossible Values: `01` through `12`.\n" + }, + "expirationYear": { + "type": "string", + "readOnly": true, + "description": "Four-digit year in which the network token expires.\nFormat: `YYYY`.\n" + }, + "type": { + "type": "string", + "description": "The type of card (Card Network).\nPossible Values:\n- visa\n- mastercard\n- americanexpress\n" + }, + "cryptogram": { + "type": "string", + "readOnly": true, + "description": "Value generated by the card association to be used alongside the network token for processing a payment.\n", + "example": "CgAFRFYFPTFOfg5rj2ais9wQAAAAAM=" + }, + "securityCode": { + "type": "string", + "readOnly": true, + "description": "4-digit number generated by the card association to be used alogside the network token for processing a payment. Only supported for Amex and SCOF.\n", + "example": "4523" + }, + "eci": { + "type": "string", + "readOnly": true, + "description": "Raw Electronic Commerce Indicator provided by the card association with the result of the cardholder authentication.\n" + }, + "requestorId": { + "type": "string", + "readOnly": true, + "maxLength": 11, + "description": "11-digit identifier that uniquely identifies the Token Requestor.\n" + }, + "enrollmentId": { + "type": "string", + "readOnly": true, + "description": "Unique id to identify this PAN/ enrollment.\n" + }, + "tokenReferenceId": { + "type": "string", + "readOnly": true, + "description": "Unique ID for netwrok token.\n" + }, + "paymentAccountReference": { + "type": "string", + "readOnly": true, + "description": "Payment account reference.\n" + }, + "card": { + "type": "object", + "description": "Card object used to create a network token\n", + "properties": { + "number": { + "type": "string", + "minLength": 12, + "maxLength": 19, + "description": "The customer's payment card number, also known as the Primary Account Number (PAN).\n" + }, + "expirationMonth": { + "type": "string", + "maxLength": 2, + "description": "Two-digit month in which the payment card expires.\n\nFormat: `MM`.\n\nPossible Values: `01` through `12`.\n" + }, + "expirationYear": { + "type": "string", + "maxLength": 4, + "description": "Four-digit year in which the credit card expires.\n\nFormat: `YYYY`.\n" + }, + "type": { + "type": "string", + "description": "The type of card (Card Network).\nPossible Values:\n- 001: visa\n" + }, + "suffix": { + "type": "string", + "readOnly": true, + "description": "The customer's latest payment card number suffix.\n" + }, + "issueDate": { + "type": "string", + "readOnly": true, + "format": "date", + "description": "Card issuance date. XML date format: YYYY-MM-DD.", + "example": "2030-12-15" + }, + "activationDate": { + "type": "string", + "readOnly": true, + "format": "date", + "description": "Card activation date. XML date format: YYYY-MM-DD", + "example": "2030-12-20" + }, + "expirationPrinted": { + "type": "boolean", + "readOnly": true, + "description": "Indicates if the expiration date is printed on the card.", + "example": true + }, + "securityCodePrinted": { + "type": "boolean", + "readOnly": true, + "description": "Indicates if the Card Verification Number is printed on the card.", + "example": true + }, + "termsAndConditions": { + "type": "object", + "readOnly": true, + "properties": { + "url": { + "type": "string", + "readOnly": true, + "description": "Issuer Card Terms and Conditions url." + } + } + } + } + }, + "passcode": { + "type": "object", + "description": "Passcode by issuer for ID&V.\n", + "properties": { + "value": { + "type": "string", + "description": "OTP generated at issuer.\n" + } + } + }, + "metadata": { + "type": "object", + "readOnly": true, + "description": "Metadata associated with the tokenized card.\n", + "properties": { + "cardArt": { + "title": "TmsCardArt", + "description": "Card art associated with the tokenized card.\n", + "type": "object", + "readOnly": true, + "properties": { + "foregroundColor": { + "description": "Card foreground color.\n", + "type": "string", + "readOnly": true + }, + "combinedAsset": { + "description": "Combined card art asset associated with the tokenized card.\n", + "type": "object", + "readOnly": true, + "properties": { + "id": { + "type": "string", + "description": "Unique identifier for the asset\n" + }, + "_links": { + "type": "object", + "readOnly": true, + "properties": { + "self": { + "type": "object", + "readOnly": true, + "properties": { + "href": { + "type": "string", + "readOnly": true, + "description": "Link to the card art asset.\nexample: 'tms/v2/tokens/7020000000010603216/visa/assets/card-art-combined'\n" + } + } + } + } + } + } + }, + "brandLogoAsset": { + "description": "Brand logo card art asset associated with the tokenized card.\n", + "type": "object", + "readOnly": true, + "properties": { + "id": { + "type": "string", + "description": "Unique identifier for the asset\n" + }, + "_links": { + "type": "object", + "readOnly": true, + "properties": { + "self": { + "type": "object", + "readOnly": true, + "properties": { + "href": { + "type": "string", + "readOnly": true, + "description": "Link to the card art asset.\nexample: 'tms/v2/tokens/7020000000010603216/visa/assets/brand-logo'\n" + } + } + } + } + } + } + }, + "issuerLogoAsset": { + "description": "Issuer logo card art asset associated with the tokenized card.\n", + "type": "object", + "readOnly": true, + "properties": { + "id": { + "type": "string", + "description": "Unique identifier for the asset\n" + }, + "_links": { + "type": "object", + "readOnly": true, + "properties": { + "self": { + "type": "object", + "readOnly": true, + "properties": { + "href": { + "type": "string", + "readOnly": true, + "description": "Link to the card art asset.\nexample: 'tms/v2/tokens/7020000000010603216/visa/assets/issuer-logo'\n" + } + } + } + } + } + } + }, + "iconAsset": { + "description": "Icon card art asset associated with the tokenized card.\n", + "type": "object", + "readOnly": true, + "properties": { + "id": { + "type": "string", + "description": "Unique identifier for the asset\n" + }, + "_links": { + "type": "object", + "readOnly": true, + "properties": { + "self": { + "type": "object", + "readOnly": true, + "properties": { + "href": { + "type": "string", + "readOnly": true, + "description": "Link to the card art asset.\nexample: 'tms/v2/tokens/7020000000010603216/visa/assets/icon'\n" + } + } + } + } + } + } + } + } + }, + "issuer": { + "description": "Issuer associated with the tokenized card.\n", + "type": "object", + "readOnly": true, + "properties": { + "name": { + "description": "Issuer name.\n", + "type": "string", + "readOnly": true + }, + "shortDescription": { + "description": "Short description of the card.\n", + "type": "string", + "readOnly": true + }, + "longDescription": { + "description": "Long description of the card.\n", + "type": "string", + "readOnly": true + }, + "email": { + "type": "string", + "readOnly": true, + "description": "Issuer customer service email address." + }, + "phoneNumber": { + "type": "string", + "readOnly": true, + "description": "Issuer customer service phone number." + }, + "url": { + "type": "string", + "readOnly": true, + "description": "Issuer customer service url." + } + } + } + } + } + } + }, + "issuer": { + "type": "object", + "readOnly": true, + "properties": { + "paymentAccountReference": { + "type": "string", + "readOnly": true, + "maxLength": 32, + "description": "This reference number serves as a link to the cardholder account and to all transactions for that account.\n" + } + } + }, + "processingInformation": { + "type": "object", + "properties": { + "authorizationOptions": { + "type": "object", + "title": "tmsAuthorizationOptions", + "properties": { + "initiator": { + "type": "object", + "properties": { + "merchantInitiatedTransaction": { + "type": "object", + "properties": { + "previousTransactionId": { + "type": "string", + "maxLength": 15, + "description": "Network transaction identifier that was returned in the payment response field _processorInformation.transactionID_\nin the reply message for either the original merchant-initiated payment in the series or the previous\nmerchant-initiated payment in the series.\n" + }, + "originalAuthorizedAmount": { + "type": "string", + "maxLength": 15, + "description": "Amount of the original authorization.\n" + } + } + } + } + } + } + } + } + }, + "billTo": { + "type": "object", + "description": "This information is sent to the issuer as part of network token enrollment and is not stored under the Instrument Identifier.\n", + "properties": { + "address1": { + "type": "string", + "maxLength": 60, + "description": "Payment card billing street address as it appears on the credit card issuer's records.\n" + }, + "address2": { + "type": "string", + "maxLength": 60, + "description": "Additional address information.\n" + }, + "locality": { + "type": "string", + "maxLength": 50, + "description": "Payment card billing city.\n" + }, + "administrativeArea": { + "type": "string", + "maxLength": 20, + "description": "State or province of the billing address. Use the State, Province, and Territory Codes for the United States\nand Canada.\n" + }, + "postalCode": { + "type": "string", + "maxLength": 10, + "description": "Postal code for the billing address. The postal code must consist of 5 to 9 digits.\n\nWhen the billing country is the U.S., the 9-digit postal code must follow this format:\n[5 digits][dash][4 digits]\n\n**Example** `12345-6789`\n\nWhen the billing country is Canada, the 6-digit postal code must follow this format:\n[alpha][numeric][alpha][space][numeric][alpha][numeric]\n\n**Example** `A1B 2C3`\n" + }, + "country": { + "type": "string", + "maxLength": 2, + "description": "Payment card billing country. Use the two-character ISO Standard Country Codes.\n" + } + } + }, + "metadata": { + "type": "object", + "readOnly": true, + "properties": { + "creator": { + "type": "string", + "readOnly": true, + "description": "The creator of the Instrument Identifier." + } + } + }, + "_embedded": { + "type": "object", + "readOnly": true, + "properties": { + "binLookup": { + "title": "TmsBinLookup", + "description": "Bin Information of the PAN provided by BinLookUp Service. This is only retrieved when retrieveBinDetails=true is passed as a query parameter.\n", + "readOnly": true, + "type": "object", + "properties": { + "paymentAccountInformation": { + "type": "object", + "properties": { + "card": { + "type": "object", + "properties": { + "type": { + "type": "string", + "maxLength": 3, + "description": "This field contains a 3-digit numeric value that indicates the card type within Cybersource eco-system.\nPossible values from BIN Lookup Service (based on availability and enablement):\n- `000`: Unsupported Card Type\n- `001`: Visa\n- `002`: Mastercard\n- `003`: American Express\n- `004`: Discover\n- `005`: Diners Club\n- `007`: JCB\n- `036`: Cartes Bancaire\n- `042`: Maestro\n- `054`: Elo\n- `058`: Carnet\n- `060`: MADA\n- `061`: RuPay\n- `062`: China UnionPay\n- `064`: Prompt Card\n- `067`: Meeza\n- `068`: PayPak\n- `070`: EFTPOS\n- `081`: Jaywan\n- `082`: TPN\n\nGlossary of possible values in the payments ecosystem:\n- `001`: Visa\n- `002`: Mastercard\n- `003`: American Express\n- `004`: Discover\n- `005`: Diners Club\n- `006`: Carte Blanche\n- `007`: JCB\n- `008`: Optima\n- `009`: GE Private Label\n- `010`: Beneficial Private Label\n- `011`: Twinpay Credit Card\n- `012`: Twinpay Debit Card\n- `013`: Walmart\n- `014`: EnRoute\n- `015`: Lowe's Consumer\n- `016`: Home Depot Consumer\n- `017`: MBNA\n- `018`: Dick's Sportwear\n- `019`: Casual Corner\n- `020`: Sears\n- `021`: JAL\n- `023`: Disney Card\n- `024`: Switch/Solo\n- `025`: Sam's Club Consumer\n- `026`: Sam's Club Business\n- `027`: Nico's\n- `028`: Paymentech Bill Me Later\n- `029`: Bebe\n- `030`: Restoration Hardware\n- `031`: Delta Online\n- `032`: Solo\n- `033`: Visa Electron\n- `034`: Dankort\n- `035`: Laser\n- `036`: Cartes Bancaire\n- `037`: Carta Si\n- `040`: UATP\n- `041`: HOUSEHOLD\n- `042`: Maestro\n- `043`: GE MONEY\n- `044`: Korean Cards\n- `045`: Style Cards\n- `046`: J.Crew\n- `047`: Payeasecn eWallet\n- `048`: Payeasecn Bank Transfer\n- `049`: Meijer\n- `050`: Hipercard\n- `051`: Aura\n- `052`: Redecard\n- `053`: Orico Card\n- `054`: Elo\n- `055`: Capital One Private Label\n- `057`: Costco Private Label\n- `058`: Carnet\n- `059`: ValueLink\n- `060`: MADA\n- `061`: RuPay\n- `062`: China UnionPay\n- `063`: Falabella Private Label\n- `064`: Prompt Card\n- `065`: Korean Domestic\n- `066`: Banricompras\n- `067`: Meeza\n- `068`: PayPak\n- `070`: EFTPOS\n- `071`: Codensa\n- `072`: Olimpica\n- `073`: Colsubsidio\n- `074`: Tuya\n- `075`: Sodexo\n- `076`: Naranja\n- `077`: Cabal\n- `078`: DINELCO\n- `079`: PANAL\n- `080`: EPM\n- `081`: Jaywan\n- `082`: TPN\n" + }, + "brandName": { + "type": "string", + "maxLength": 20, + "description": "This field contains the card brand name. \n\nSome of the possible values (not an exhaustive list) are -\n\n - VISA\n - MASTERCARD\n - AMERICAN EXPRESS\n - DISCOVER\n - DINERS CLUB\n - CARTE BLANCHE\n - JCB\n - OPTIMA\n - TWINPAY CREDIT CARD\n - TWINPAY DEBIT CARD\n - WALMART\n - ENROUTE\n - LOWES CONSUMER\n - HOME DEPOT CONSUMER\n - MBNA\n - DICKS SPORTWEAR\n - CASUAL CORNER\n - SEARS\n - JAL\n - DISNEY CARD\n - SWITCH/SOLO\n - SAMS CLUB CONSUMER\n - SAMS CLUB BUSINESS\n - NICOS HOUSE CARD\n - BEBE\n - RESTORATION HARDWARE\n - DELTA ONLINE\n - SOLO\n - VISA ELECTRON\n - DANKORT\n - LASER\n - CARTE BANCAIRE\n - CARTA SI\n - ENCODED ACCOUNT\n - UATP\n - HOUSEHOLD\n - MAESTRO\n - GE CAPITAL\n - KOREAN CARDS\n - STYLE CARDS\n - JCREW\n - MEIJER\n - HIPERCARD\n - AURA\n - REDECARD\n - ORICO HOUSE CARD\n - MADA\n - ELO\n - CAPITAL ONE PRIVATE LABEL\n - CARNET\n - RUPAY\n - CHINA UNION PAY\n - FALABELLA PRIVATE LABEL\n - PROMPTCARD\n - KOREAN DOMESTIC\n - BANRICOMPRAS\n - MEEZA\n - PAYPAK\n - JAYWAN\n - TPN\n" + }, + "currency": { + "type": "string", + "maxLength": 3, + "description": "This field indicates the 3-letter [ISO Standard Currency Codes](http://apps.cybersource.com/library/documentation/sbc/quickref/currencies.pdf) for the card currency.\n" + }, + "maxLength": { + "type": "string", + "maxLength": 2, + "description": "This field contains the max length of the card.\n" + }, + "credentialType": { + "type": "string", + "maxLength": 5, + "description": "This field contains the type of the payment credential.\nPossible values:\n - PAN\n - TOKEN \n" + }, + "brands": { + "description": "Array of brands", + "type": "array", + "items": { + "type": "object", + "properties": { + "type": { + "type": "string", + "maxLength": 3, + "description": "This field contains a 3-digit numeric value that indicates the card type within Cybersource eco-system.\nPossible values from BIN Lookup Service (based on availability and enablement):\n- `000`: Unsupported Card Type\n- `001`: Visa\n- `002`: Mastercard\n- `003`: American Express\n- `004`: Discover\n- `005`: Diners Club\n- `007`: JCB\n- `036`: Cartes Bancaire\n- `042`: Maestro\n- `054`: Elo\n- `058`: Carnet\n- `060`: MADA\n- `061`: RuPay\n- `062`: China UnionPay\n- `064`: Prompt Card\n- `067`: Meeza\n- `068`: PayPak\n- `070`: EFTPOS\n- `081`: Jaywan\n- `082`: TPN\n\nGlossary of possible values in the payments ecosystem:\n- `001`: Visa\n- `002`: Mastercard\n- `003`: American Express\n- `004`: Discover\n- `005`: Diners Club\n- `006`: Carte Blanche\n- `007`: JCB\n- `008`: Optima\n- `009`: GE Private Label\n- `010`: Beneficial Private Label\n- `011`: Twinpay Credit Card\n- `012`: Twinpay Debit Card\n- `013`: Walmart\n- `014`: EnRoute\n- `015`: Lowe's Consumer\n- `016`: Home Depot Consumer\n- `017`: MBNA\n- `018`: Dick's Sportwear\n- `019`: Casual Corner\n- `020`: Sears\n- `021`: JAL\n- `023`: Disney Card\n- `024`: Switch/Solo\n- `025`: Sam's Club Consumer\n- `026`: Sam's Club Business\n- `027`: Nico's\n- `028`: Paymentech Bill Me Later\n- `029`: Bebe\n- `030`: Restoration Hardware\n- `031`: Delta Online\n- `032`: Solo\n- `033`: Visa Electron\n- `034`: Dankort\n- `035`: Laser\n- `036`: Cartes Bancaire\n- `037`: Carta Si\n- `040`: UATP\n- `041`: HOUSEHOLD\n- `042`: Maestro\n- `043`: GE MONEY\n- `044`: Korean Cards\n- `045`: Style Cards\n- `046`: J.Crew\n- `047`: Payeasecn eWallet\n- `048`: Payeasecn Bank Transfer\n- `049`: Meijer\n- `050`: Hipercard\n- `051`: Aura\n- `052`: Redecard\n- `053`: Orico Card\n- `054`: Elo\n- `055`: Capital One Private Label\n- `057`: Costco Private Label\n- `058`: Carnet\n- `059`: ValueLink\n- `060`: MADA\n- `061`: RuPay\n- `062`: China UnionPay\n- `063`: Falabella Private Label\n- `064`: Prompt Card\n- `065`: Korean Domestic\n- `066`: Banricompras\n- `067`: Meeza\n- `068`: PayPak\n- `070`: EFTPOS\n- `071`: Codensa\n- `072`: Olimpica\n- `073`: Colsubsidio\n- `074`: Tuya\n- `075`: Sodexo\n- `076`: Naranja\n- `077`: Cabal\n- `078`: DINELCO\n- `079`: PANAL\n- `080`: EPM\n- `081`: Jaywan\n- `082`: TPN\n" + }, + "brandName": { + "type": "string", + "maxLength": 20, + "description": "This field contains the card brand name. \n\nSome of the possible values (not an exhaustive list) are -\n\n - VISA\n - MASTERCARD\n - AMERICAN EXPRESS\n - DISCOVER\n - DINERS CLUB\n - CARTE BLANCHE\n - JCB\n - OPTIMA\n - TWINPAY CREDIT CARD\n - TWINPAY DEBIT CARD\n - WALMART\n - ENROUTE\n - LOWES CONSUMER\n - HOME DEPOT CONSUMER\n - MBNA\n - DICKS SPORTWEAR\n - CASUAL CORNER\n - SEARS\n - JAL\n - DISNEY CARD\n - SWITCH/SOLO\n - SAMS CLUB CONSUMER\n - SAMS CLUB BUSINESS\n - NICOS HOUSE CARD\n - BEBE\n - RESTORATION HARDWARE\n - DELTA ONLINE\n - SOLO\n - VISA ELECTRON\n - DANKORT\n - LASER\n - CARTE BANCAIRE\n - CARTA SI\n - ENCODED ACCOUNT\n - UATP\n - HOUSEHOLD\n - MAESTRO\n - GE CAPITAL\n - KOREAN CARDS\n - STYLE CARDS\n - JCREW\n - MEIJER\n - HIPERCARD\n - AURA\n - REDECARD\n - ORICO HOUSE CARD\n - MADA\n - ELO\n - CAPITAL ONE PRIVATE LABEL\n - CARNET\n - RUPAY\n - CHINA UNION PAY\n - FALABELLA PRIVATE LABEL\n - PROMPTCARD\n - KOREAN DOMESTIC\n - BANRICOMPRAS\n - MEEZA\n - PAYPAK\n - JAYWAN\n - TPN\n" + } + } + } + } + } + }, + "features": { + "type": "object", + "properties": { + "accountFundingSource": { + "type": "string", + "maxLength": 20, + "description": "This field contains the account funding source.\nPossible values:\n - `CREDIT`\n - `DEBIT`\n - `PREPAID`\n - `DEFERRED DEBIT`\n - `CHARGE`\n" + }, + "accountFundingSourceSubType": { + "type": "string", + "maxLength": 20, + "description": "This field contains the type of prepaid card.\nPossible values:\n - `Reloadable`\n - `Non-reloadable`\n" + }, + "cardProduct": { + "type": "string", + "maxLength": 50, + "description": "This field contains the type of issuer product.\nExample values:\n - Visa Classic\n - Visa Signature\n - Visa Infinite\n" + }, + "messageType": { + "type": "string", + "maxLength": 1, + "description": "This field contains the type of BIN based authentication.\nPossible values:\n - `S`: Single Message\n - `D`: Dual Message\n" + }, + "acceptanceLevel": { + "type": "string", + "maxLength": 2, + "description": "This field contains the acceptance level of the PAN.\nPossible values:\n - `0` : Normal\n - `1` : Monitor\n - `2` : Refuse\n - `3` : Not Allowed\n - `4` : Private\n - `5` : Test\n" + }, + "cardPlatform": { + "type": "string", + "maxLength": 20, + "description": "This field contains the type of card platform.\nPossible values:\n - `BUSINESS`\n - `CONSUMER`\n - `CORPORATE`\n - `COMMERCIAL`\n - `GOVERNMENT`\n" + }, + "comboCard": { + "type": "string", + "maxLength": 1, + "description": "This field indicates the type of combo card.\nPossible values:\n - 0 (Not a combo card)\n - 1 (Credit and Prepaid Combo card)\n - 2 (Credit and Debit Combo card)\n - 3 (Prepaid Credit and Prepaid Debit combo card)\n" + }, + "corporatePurchase": { + "type": "boolean", + "description": "This field indicates if the instrument can be used for corporate purchasing. This field is only applicable for American Express cards.\nPossible values:\n - `true`\n - `false`\n" + }, + "healthCard": { + "type": "boolean", + "description": "This field indicates if the BIN is for healthcare (HSA/FSA). Currently, this field is only supported for Visa BINs.\nPossible values:\n - `true`\n - `false`\n" + }, + "sharedBIN": { + "type": "boolean", + "description": "This field indicates if the BIN is shared by multiple issuers\nPossible values:\n - `true`\n - `false`\n" + }, + "posDomesticOnly": { + "type": "boolean", + "description": "This field indicates if the BIN is valid only for POS domestic usage.\nPossible values:\n - `true`\n - `false`\n" + }, + "gamblingAllowed": { + "type": "boolean", + "description": "This field indicates if gambling transactions are allowed on the BIN.\nPossible values:\n - `true`\n - `false`\n" + }, + "commercialCardLevel2": { + "type": "boolean", + "description": "This field indicates if a transaction on the instrument qualifies for level 2 interchange rates.\nPossible values:\n - `true`\n - `false`\n" + }, + "commercialCardLevel3": { + "type": "boolean", + "description": "This field indicates if a transaction on the instrument qualifies for level 3 interchange rates.\nPossible values:\n - `true`\n - `false`\n" + }, + "exemptBIN": { + "type": "boolean", + "description": "This field indicates if a transaction on the instrument qualifies for government exempt interchange fee.\nPossible values:\n - `true`\n - `false`\n" + }, + "accountLevelManagement": { + "type": "boolean", + "description": "This field indicates if the BIN participates in Account Level Management (ALM).\nPossible values:\n - `true`\n - `false`\n" + }, + "onlineGamblingBlock": { + "type": "boolean", + "description": "This field indicates if online gambling is blocked on the BIN.\nPossible values:\n - `true`\n - `false`\n" + }, + "autoSubstantiation": { + "type": "boolean", + "description": "This field indicates if auto-substantiation is enabled on the BIN.\nPossible values:\n - `true`\n - `false`\n" + }, + "flexCredential": { + "type": "boolean", + "description": "This field indicates if the instrument is a flex credential.\nPossible values:\n - `true`\n - `false`\n" + }, + "productId": { + "type": "string", + "description": "This field contains the Visa-assigned product identifier associated with the BIN. This field is only supported for Visa BINs.\nExample values:\n - Q4\n - P\n - AX\n" + }, + "productIdSubtype": { + "type": "string", + "description": "This field contains the Visa-assigned product subtype identifier associated with the BIN. This field is only supported for Visa BINs.\nExample values:\n - BB\n - EX\n - L2\n - C2\n" + }, + "threeDSSupport": { + "type": "boolean", + "description": "This field indicates if the payment instrument supports 3D Secure authentication.\nPossible values:\n - `true`\n - `false`\n" + }, + "siEligible": { + "type": "boolean", + "description": "This field indicates if the payment instrument is eligible for Standing Instructions (recurring payments).\nPossible values:\n - `true`\n - `false`\n" + }, + "emiEligible": { + "type": "boolean", + "description": "This field indicates if the card is eligible for Equated Monthly Installments (EMI).\nPossible values:\n - `true`\n - `false`\n" + } + } + }, + "network": { + "type": "object", + "properties": { + "id": { + "type": "string", + "description": "This field contains a code that identifies the network.\n[List of Network ID and Sharing Group Code](https://developer.visa.com/request_response_codes#network_id_and_sharing_group_code)\n" + } + } + } + } + }, + "issuerInformation": { + "type": "object", + "properties": { + "name": { + "type": "string", + "maxLength": 200, + "description": "This field contains the issuer name.\n" + }, + "country": { + "type": "string", + "maxLength": 2, + "description": "This field contains [2-character ISO Country Codes](http://apps.cybersource.com/library/documentation/sbc/quickref/countries_alpha_list.pdf) for the issuer.\n" + }, + "binLength": { + "type": "string", + "maxLength": 2, + "description": "This field contains the length of the BIN. In some cases, this field may be absent if we do not receive accurate information from the network source.\n" + }, + "accountPrefix": { + "type": "string", + "maxLength": 8, + "description": "This field contains the first 6 to 8 digits of a primary account number (PAN). The length of the field is determined by [PCI-DSS standards for truncation](https://pcissc.secure.force.com/faq/articles/Frequently_Asked_Question/What-are-acceptable-formats-for-truncation-of-primary-account-numbers).In case the input is not the full intrument (PAN or TOKEN), this field may be truncated.\n" + }, + "phoneNumber": { + "type": "string", + "maxLength": 50, + "description": "This field contains the customer service phone number for the issuer.\n" + } + } + } + } + } + } + } + } + } + } + } + } + }, + "defaultShippingAddress": { + "readOnly": true, + "type": "object", + "properties": { + "_links": { + "type": "object", + "readOnly": true, + "properties": { + "self": { + "type": "object", + "readOnly": true, + "properties": { + "href": { + "type": "string", + "readOnly": true, + "description": "Link to the Customers Shipping Address\n", + "example": "/tms/v2/customers/D9F340DD3DB9C276E053A2598D0A41A3/shipping-addresses/D9F3439F0448C901E053A2598D0AA1CC" + } + } + }, + "customer": { + "type": "object", + "readOnly": true, + "properties": { + "href": { + "type": "string", + "readOnly": true, + "description": "Link to the Customer\n", + "example": "/tms/v2/customers/D9F340DD3DB9C276E053A2598D0A41A3" + } + } + } + } + }, + "id": { + "type": "string", + "minLength": 1, + "maxLength": 32, + "description": "The Id of the Shipping Address Token." + }, + "default": { + "type": "boolean", + "description": "Flag that indicates whether customer shipping address is the dafault.\nPossible Values:\n - `true`: Shipping Address is customer's default.\n - `false`: Shipping Address is not customer's default.\n" + }, + "shipTo": { + "type": "object", + "properties": { + "firstName": { + "type": "string", + "maxLength": 60, + "description": "First name of the recipient.\n" + }, + "lastName": { + "type": "string", + "maxLength": 60, + "description": "Last name of the recipient.\n" + }, + "company": { + "type": "string", + "maxLength": 60, + "description": "Company associated with the shipping address.\n" + }, + "address1": { + "type": "string", + "maxLength": 60, + "description": "First line of the shipping address.\n" + }, + "address2": { + "type": "string", + "maxLength": 60, + "description": "Second line of the shipping address.\n" + }, + "locality": { + "type": "string", + "maxLength": 50, + "description": "City of the shipping address.\n" + }, + "administrativeArea": { + "type": "string", + "maxLength": 20, + "description": "State or province of the shipping address. Use 2 character the State,\nProvince, and Territory Codes for the United States and Canada.\n" + }, + "postalCode": { + "type": "string", + "maxLength": 10, + "description": "Postal code for the shipping address. The postal code must consist of 5 to 9 digits.\n\nWhen the billing country is the U.S., the 9-digit postal code must follow this format:\n[5 digits][dash][4 digits]\n\nExample 12345-6789\n\nWhen the billing country is Canada, the 6-digit postal code must follow this format:\n[alpha][numeric][alpha][space][numeric][alpha][numeric]\n\nExample A1B 2C3\n\n**American Express Direct**\\\nBefore sending the postal code to the processor, all nonalphanumeric characters are removed and, if the\nremaining value is longer than nine characters, truncates the value starting from the right side.\n" + }, + "country": { + "type": "string", + "description": "Country of the shipping address. Use the two-character ISO Standard Country Codes.\n", + "maxLength": 2 + }, + "email": { + "type": "string", + "maxLength": 320, + "description": "Email associated with the shipping address.\n" + }, + "phoneNumber": { + "type": "string", + "maxLength": 15, + "description": "Phone number associated with the shipping address.\n" + } + } + }, + "metadata": { + "type": "object", + "readOnly": true, + "properties": { + "creator": { + "type": "string", + "readOnly": true, + "description": "The creator of the Shipping Address." + } + } + } + } + } + } + } + } + }, + "shippingAddress": { + "type": "object", + "properties": { + "_links": { + "type": "object", + "readOnly": true, + "properties": { + "self": { + "type": "object", + "readOnly": true, + "properties": { + "href": { + "type": "string", + "readOnly": true, + "description": "Link to the Customers Shipping Address\n", + "example": "/tms/v2/customers/D9F340DD3DB9C276E053A2598D0A41A3/shipping-addresses/D9F3439F0448C901E053A2598D0AA1CC" + } + } + }, + "customer": { + "type": "object", + "readOnly": true, + "properties": { + "href": { + "type": "string", + "readOnly": true, + "description": "Link to the Customer\n", + "example": "/tms/v2/customers/D9F340DD3DB9C276E053A2598D0A41A3" + } + } + } + } + }, + "id": { + "type": "string", + "minLength": 1, + "maxLength": 32, + "description": "The Id of the Shipping Address Token." + }, + "default": { + "type": "boolean", + "description": "Flag that indicates whether customer shipping address is the dafault.\nPossible Values:\n - `true`: Shipping Address is customer's default.\n - `false`: Shipping Address is not customer's default.\n" + }, + "shipTo": { + "type": "object", + "properties": { + "firstName": { + "type": "string", + "maxLength": 60, + "description": "First name of the recipient.\n" + }, + "lastName": { + "type": "string", + "maxLength": 60, + "description": "Last name of the recipient.\n" + }, + "company": { + "type": "string", + "maxLength": 60, + "description": "Company associated with the shipping address.\n" + }, + "address1": { + "type": "string", + "maxLength": 60, + "description": "First line of the shipping address.\n" + }, + "address2": { + "type": "string", + "maxLength": 60, + "description": "Second line of the shipping address.\n" + }, + "locality": { + "type": "string", + "maxLength": 50, + "description": "City of the shipping address.\n" + }, + "administrativeArea": { + "type": "string", + "maxLength": 20, + "description": "State or province of the shipping address. Use 2 character the State,\nProvince, and Territory Codes for the United States and Canada.\n" + }, + "postalCode": { + "type": "string", + "maxLength": 10, + "description": "Postal code for the shipping address. The postal code must consist of 5 to 9 digits.\n\nWhen the billing country is the U.S., the 9-digit postal code must follow this format:\n[5 digits][dash][4 digits]\n\nExample 12345-6789\n\nWhen the billing country is Canada, the 6-digit postal code must follow this format:\n[alpha][numeric][alpha][space][numeric][alpha][numeric]\n\nExample A1B 2C3\n\n**American Express Direct**\\\nBefore sending the postal code to the processor, all nonalphanumeric characters are removed and, if the\nremaining value is longer than nine characters, truncates the value starting from the right side.\n" + }, + "country": { + "type": "string", + "description": "Country of the shipping address. Use the two-character ISO Standard Country Codes.\n", + "maxLength": 2 + }, + "email": { + "type": "string", + "maxLength": 320, + "description": "Email associated with the shipping address.\n" + }, + "phoneNumber": { + "type": "string", + "maxLength": 15, + "description": "Phone number associated with the shipping address.\n" + } + } + }, + "metadata": { + "type": "object", + "readOnly": true, + "properties": { + "creator": { + "type": "string", + "readOnly": true, + "description": "The creator of the Shipping Address." + } + } + } + } + }, + "paymentInstrument": { + "type": "object", + "properties": { + "_links": { + "type": "object", + "readOnly": true, + "properties": { + "self": { + "type": "object", + "readOnly": true, + "properties": { + "href": { + "type": "string", + "readOnly": true, + "description": "Link to the Payment Instrument.\n", + "example": "/tms/v2/customers/D9F340DD3DB9C276E053A2598D0A41A3/payment-instruments" + } + } + }, + "customer": { + "type": "object", + "readOnly": true, + "properties": { + "href": { + "type": "string", + "readOnly": true, + "description": "Link to the Customer.\n", + "example": "/tms/v2/customers/D9F340DD3DB9C276E053A2598D0A41A3" + } + } + } + } + }, + "id": { + "type": "string", + "minLength": 1, + "maxLength": 32, + "description": "The Id of the Payment Instrument Token." + }, + "object": { + "type": "string", + "readOnly": true, + "example": "paymentInstrument", + "description": "The type.\n\nPossible Values:\n- paymentInstrument\n" + }, + "default": { + "type": "boolean", + "description": "Flag that indicates whether customer payment instrument is the dafault.\nPossible Values:\n - `true`: Payment instrument is customer's default.\n - `false`: Payment instrument is not customer's default.\n" + }, + "state": { + "type": "string", + "readOnly": true, + "example": "ACTIVE", + "description": "Issuers state for the card number.\nPossible Values:\n- ACTIVE\n- CLOSED : The account has been closed.\n" + }, + "type": { + "type": "string", + "readOnly": true, + "description": "The type of Payment Instrument.\nPossible Values:\n- cardHash\n" + }, + "bankAccount": { + "type": "object", + "properties": { + "type": { + "type": "string", + "maxLength": 18, + "description": "Account type.\n\nPossible Values:\n - checking : C\n - general ledger : G This value is supported only on Wells Fargo ACH\n - savings : S (U.S. dollars only)\n - corporate checking : X (U.S. dollars only)\n" + } + } + }, + "card": { + "type": "object", + "properties": { + "expirationMonth": { + "type": "string", + "maxLength": 2, + "description": "Two-digit month in which the payment card expires.\n\nFormat: `MM`.\n\nPossible Values: `01` through `12`.\n" + }, + "expirationYear": { + "type": "string", + "maxLength": 4, + "description": "Four-digit year in which the credit card expires.\n\nFormat: `YYYY`.\n" + }, + "type": { + "type": "string", + "description": "Value that indicates the card type. Possible Values v2 : v1:\n * 001 : visa\n * 002 : mastercard - Eurocard\u2014European regional brand of Mastercard\n * 003 : american express\n * 004 : discover\n * 005 : diners club\n * 006 : carte blanche\n * 007 : jcb\n * 008 : optima\n * 011 : twinpay credit\n * 012 : twinpay debit\n * 013 : walmart\n * 014 : enRoute\n * 015 : lowes consumer\n * 016 : home depot consumer\n * 017 : mbna\n * 018 : dicks sportswear\n * 019 : casual corner\n * 020 : sears\n * 021 : jal\n * 023 : disney\n * 024 : maestro uk domestic\n * 025 : sams club consumer\n * 026 : sams club business\n * 028 : bill me later\n * 029 : bebe\n * 030 : restoration hardware\n * 031 : delta online \u2014 use this value only for Ingenico ePayments. For other processors, use 001 for all Visa card types.\n * 032 : solo\n * 033 : visa electron\n * 034 : dankort\n * 035 : laser\n * 036 : carte bleue \u2014 formerly Cartes Bancaires\n * 037 : carta si\n * 038 : pinless debit\n * 039 : encoded account\n * 040 : uatp\n * 041 : household\n * 042 : maestro international\n * 043 : ge money uk\n * 044 : korean cards\n * 045 : style\n * 046 : jcrew\n * 047 : payease china processing ewallet\n * 048 : payease china processing bank transfer\n * 049 : meijer private label\n * 050 : hipercard \u2014 supported only by the Comercio Latino processor.\n * 051 : aura \u2014 supported only by the Comercio Latino processor.\n * 052 : redecard\n * 054 : elo \u2014 supported only by the Comercio Latino processor.\n * 055 : capital one private label\n * 056 : synchrony private label\n * 057 : costco private label\n * 060 : mada\n * 062 : china union pay\n * 063 : falabella private label\n" + }, + "issueNumber": { + "type": "string", + "maxLength": 2, + "description": "Number of times a Maestro (UK Domestic) card has been issued to the account holder. The card might or might not have an issue number. The number can consist of one or two digits, and the first digit might be a zero. When you include this value in your request, include exactly what is printed on the card. A value of 2 is different than a value of 02. Do not include the field, even with a blank value, if the card is not a Maestro (UK Domestic) card.\n\n**Note** The issue number is not required for Maestro (UK Domestic) transactions.\n" + }, + "startMonth": { + "type": "string", + "maxLength": 2, + "description": "Month of the start of the Maestro (UK Domestic) card validity period. Do not include the field, even with a blank value, if the card is not a Maestro (UK Domestic) card. `Format: MM`.\nPossible Values: 01 through 12.\n\n**Note** The start date is not required for Maestro (UK Domestic) transactions.\n" + }, + "startYear": { + "type": "string", + "maxLength": 4, + "description": "Year of the start of the Maestro (UK Domestic) card validity period. Do not include the field, even with a blank value, if the card is not a Maestro (UK Domestic) card. `Format: YYYY`.\n\n**Note** The start date is not required for Maestro (UK Domestic) transactions.\n" + }, + "useAs": { + "type": "string", + "example": "pinless debit", + "description": "'Payment Instrument was created / updated as part of a pinless debit transaction.'\n" + }, + "sdkHashValue": { + "type": "string", + "minLength": 32, + "maxLength": 34, + "readOnly": true, + "description": "Hash value representing the card.\n" + }, + "tokenizedInformation": { + "type": "object", + "properties": { + "requestorID": { + "type": "string", + "maxLength": 11, + "description": "Value that identifies your business and indicates that the cardholder's account number is tokenized. This value\nis assigned by the token service provider and is unique within the token service provider's database.\n\n**Note** This field is supported only through **VisaNet** and **FDC Nashville Global**.\n" + }, + "transactionType": { + "type": "string", + "maxLength": 1, + "description": "Type of transaction that provided the token data. This value does not specify the token service provider; it\nspecifies the entity that provided you with information about the token.\n\nSet the value for this field to 1. An application on the customer's mobile device provided the token data.\n" + } + } + } + } + }, + "buyerInformation": { + "type": "object", + "properties": { + "companyTaxID": { + "type": "string", + "maxLength": 9, + "description": "Company's tax identifier. This is only used for eCheck service.\n" + }, + "currency": { + "type": "string", + "maxLength": 3, + "description": "Currency used for the order. Use the three-character I[ISO Standard Currency Codes.](http://apps.cybersource.com/library/documentation/sbc/quickref/currencies.pdf)\n\nFor an authorization reversal (`reversalInformation`) or a capture (`processingOptions.capture` is set to `true`), you must use the same currency that you used in your payment authorization request.\n\n#### DCC for First Data\nYour local currency. For details, see the `currency` field description in [Dynamic Currency Conversion For First Data Using the SCMP API](http://apps.cybersource.com/library/documentation/dev_guides/DCC_FirstData_SCMP/DCC_FirstData_SCMP_API.pdf).\n# For details about currency as used in partial authorizations, see \"Features for Debit Cards and Prepaid Cards\" in the [Credit Card Services Using the SCMP API Guide](https://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html/)\n" + }, + "dateOfBirth": { + "type": "string", + "format": "date", + "example": "1960-12-30", + "description": "Date of birth of the customer. Format: YYYY-MM-DD\n" + }, + "personalIdentification": { + "type": "array", + "items": { + "type": "object", + "properties": { + "id": { + "type": "string", + "maxLength": 26, + "description": "The value of the identification type.\n" + }, + "type": { + "type": "string", + "description": "The type of the identification.\n\nPossible Values:\n - driver license\n" + }, + "issuedBy": { + "type": "object", + "properties": { + "administrativeArea": { + "type": "string", + "description": "The State or province where the customer's driver's license was issued.\n\nUse the two-character State, Province, and Territory Codes for the United States and Canada.\n", + "maxLength": 20 + } + } + } + } + } + } + } + }, + "billTo": { + "type": "object", + "properties": { + "firstName": { + "type": "string", + "maxLength": 60, + "description": "Customer's first name. This name must be the same as the name on the card.\n" + }, + "lastName": { + "type": "string", + "maxLength": 60, + "description": "Customer's last name. This name must be the same as the name on the card.\n" + }, + "company": { + "type": "string", + "maxLength": 60, + "description": "Name of the customer's company.\n" + }, + "address1": { + "type": "string", + "maxLength": 60, + "description": "Payment card billing street address as it appears on the credit card issuer's records.\n" + }, + "address2": { + "type": "string", + "maxLength": 60, + "description": "Additional address information.\n" + }, + "locality": { + "type": "string", + "maxLength": 50, + "description": "Payment card billing city.\n" + }, + "administrativeArea": { + "type": "string", + "maxLength": 20, + "description": "State or province of the billing address. Use the State, Province, and Territory Codes for the United States\nand Canada.\n" + }, + "postalCode": { + "type": "string", + "maxLength": 10, + "description": "Postal code for the billing address. The postal code must consist of 5 to 9 digits.\n\nWhen the billing country is the U.S., the 9-digit postal code must follow this format:\n[5 digits][dash][4 digits]\n\n**Example** `12345-6789`\n\nWhen the billing country is Canada, the 6-digit postal code must follow this format:\n[alpha][numeric][alpha][space][numeric][alpha][numeric]\n\n**Example** `A1B 2C3`\n" + }, + "country": { + "type": "string", + "maxLength": 2, + "description": "Payment card billing country. Use the two-character ISO Standard Country Codes.\n" + }, + "email": { + "type": "string", + "maxLength": 255, + "description": "Customer's email address, including the full domain name.\n" + }, + "phoneNumber": { + "type": "string", + "maxLength": 15, + "description": "Customer's phone number.\n" + } + } + }, + "processingInformation": { + "type": "object", + "title": "tmsPaymentInstrumentProcessingInfo", + "properties": { + "billPaymentProgramEnabled": { + "type": "boolean", + "description": "Flag that indicates that this is a payment for a bill or for an existing contractual loan.\nPossible Values:\n- `true`: Bill payment or loan payment.\n- `false` (default): Not a bill payment or loan payment.\n# For processor-specific details, see the `bill_payment` field description in [Credit Card Services Using the SCMP API.](https://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html/)\n" + }, + "bankTransferOptions": { + "type": "object", + "properties": { + "SECCode": { + "type": "string", + "maxLength": 3, + "description": "Specifies the authorization method for the transaction.\n\n#### TeleCheck\nPossible Values:\n- `ARC`: account receivable conversion\n- `CCD`: corporate cash disbursement\n- `POP`: point of purchase conversion\n- `PPD`: prearranged payment and deposit entry\n- `TEL`: telephone-initiated entry\n- `WEB`: internet-initiated entry\n\n# For details, see `ecp_sec_code` field description in the [Electronic Check Services Using the SCMP API Guide.](https://apps.cybersource.com/library/documentation/dev_guides/EChecks_SCMP_API/html/)\n" + } + } + } + } + }, + "merchantInformation": { + "type": "object", + "title": "TmsMerchantInformation", + "properties": { + "merchantDescriptor": { + "type": "object", + "properties": { + "alternateName": { + "type": "string", + "description": "Alternate contact information for your business,such as an email address or URL.\nThis value might be displayed on the cardholder's statement.\nWhen you do not include this value in your capture or credit request, the merchant URL from your CyberSource account is used.\nImportant This value must consist of English characters\n", + "maxLength": 13 + } + } + } + } + }, + "instrumentIdentifier": { + "type": "object", + "properties": { + "id": { + "type": "string", + "minLength": 12, + "maxLength": 32, + "description": "The Id of the Instrument Identifier linked to the Payment Instrument.\n" + } + } + }, + "metadata": { + "type": "object", + "readOnly": true, + "properties": { + "creator": { + "type": "string", + "readOnly": true, + "description": "The creator of the Payment Instrument.\n" + } + } + }, + "_embedded": { + "type": "object", + "readOnly": true, + "description": "Additional resources for the Payment Instrument.\n", + "properties": { + "instrumentIdentifier": { + "readOnly": true, + "title": "tmsEmbeddedInstrumentIdentifier", + "type": "object", + "properties": { + "_links": { + "type": "object", + "readOnly": true, + "properties": { + "self": { + "type": "object", + "readOnly": true, + "properties": { + "href": { + "type": "string", + "readOnly": true, + "description": "Link to the Instrument Identifier.\n", + "example": "tms/v1/instrumentidentifiers/7010000000016241111" + } + } + }, + "paymentInstruments": { + "type": "object", + "readOnly": true, + "properties": { + "href": { + "type": "string", + "readOnly": true, + "description": "Link to the Instrument Identifiers Payment Instruments.\n", + "example": "tms/v1/instrumentidentifiers/7010000000016241111/paymentinstruments" + } + } + } + } + }, + "id": { + "type": "string", + "description": "The Id of the Instrument Identifier Token.\n" + }, + "object": { + "type": "string", + "readOnly": true, + "example": "instrumentIdentifier", + "description": "The type.\n\nPossible Values:\n- instrumentIdentifier\n" + }, + "state": { + "type": "string", + "readOnly": true, + "example": "ACTIVE", + "description": "Issuers state for the card number.\nPossible Values:\n- ACTIVE\n- CLOSED : The account has been closed.\n" + }, + "type": { + "type": "string", + "description": "The type of Instrument Identifier.\nPossible Values:\n- enrollable card\n- enrollable token\n" + }, + "source": { + "type": "string", + "description": "Source of the card details.\nPossible Values:\n- CONTACTLESS_TAP\n" + }, + "tokenProvisioningInformation": { + "type": "object", + "properties": { + "consumerConsentObtained": { + "type": "boolean", + "description": "Flag that indicates whether the user consented to the tokenization of their credentials. Required for card network tokenization in certain markets, such as India.\nPossible Values:\n- `true`: Consumer has consented to tokenization of their credentials.\n- `false`: Consumer has not consented to tokenization of their credentials.\n" + }, + "multiFactorAuthenticated": { + "type": "boolean", + "description": "Flag that indicates whether AFA (Additional Factor of Authentication) for the PAN was completed. Required for card network tokenization in certain markets, such as India.\nPossible Values:\n- `true`: Consumer has been authenticated by the issuer.\n- `false`: Consumer has not been authenticated by the issuer.\n" + } + } + }, + "card": { + "type": "object", + "description": "The expirationMonth, expirationYear and securityCode is sent to the issuer as part of network token enrollment and is not stored under the Instrument Identifier.\n", + "properties": { + "number": { + "type": "string", + "minLength": 12, + "maxLength": 19, + "description": "The customer's payment card number, also known as the Primary Account Number (PAN). You can also use this field\nfor encoded account numbers.\n" + }, + "expirationMonth": { + "type": "string", + "maxLength": 2, + "description": "Two-digit month in which the payment card expires.\n\nFormat: `MM`.\n\nPossible Values: `01` through `12`.\n" + }, + "expirationYear": { + "type": "string", + "maxLength": 4, + "description": "Four-digit year in which the credit card expires.\n\nFormat: `YYYY`.\n" + }, + "securityCode": { + "type": "string", + "maxLength": 4, + "description": "Card Verification Code. \nThis value is sent to the issuer to support the approval of a network token provision.\nIt is not persisted against the Instrument Identifier.\n" + } + } + }, + "pointOfSaleInformation": { + "type": "object", + "required": [ + "emvTags" + ], + "properties": { + "emvTags": { + "type": "array", + "minItems": 1, + "maxItems": 50, + "items": { + "type": "object", + "required": [ + "tag", + "value", + "source" + ], + "properties": { + "tag": { + "type": "string", + "minLength": 1, + "maxLength": 10, + "pattern": "^[0-9A-Fa-f]{1,10}$", + "description": "EMV tag, 1-10 hex characters." + }, + "value": { + "type": "string", + "minLength": 1, + "maxLength": 64, + "description": "EMV tag value, 1-64 characters." + }, + "source": { + "type": "string", + "description": "Source of the tag.\n\nPossible Values:\n - CARD\n - TERMINAL\n" + } + }, + "example": { + "tag": "5A", + "value": "4111111111111111", + "source": "CARD" + } + } + } + } + }, + "bankAccount": { + "type": "object", + "properties": { + "number": { + "type": "string", + "maxLength": 17, + "description": "Account number.\n\nWhen processing encoded account numbers, use this field for the encoded account number.\n" + }, + "routingNumber": { + "type": "string", + "description": "Bank routing number. This is also called the transit number.\n\n# For details, see `ecp_rdfi` field description in the [Electronic Check Services Using the SCMP API Guide.](https://apps.cybersource.com/library/documentation/dev_guides/EChecks_SCMP_API/html/)\n" + } + } + }, + "tokenizedCard": { + "title": "tmsv2TokenizedCard", + "type": "object", + "properties": { + "_links": { + "type": "object", + "readOnly": true, + "properties": { + "self": { + "type": "object", + "readOnly": true, + "properties": { + "href": { + "type": "string", + "readOnly": true, + "description": "Link to the Tokenized Card.\nexample: 'tms/v2/tokenized-cards/7010000000016241111'\n" + } + } + } + } + }, + "id": { + "type": "string", + "readOnly": true, + "description": "The Id of the Tokenized Card.\n" + }, + "object": { + "type": "string", + "readOnly": true, + "example": "tokenizedCard", + "description": "The type.\nPossible Values:\n- tokenizedCard\n" + }, + "accountReferenceId": { + "type": "string", + "description": "An identifier provided by the issuer for the account.\n" + }, + "consumerId": { + "type": "string", + "maxLength": 36, + "description": "Identifier of the consumer within the wallet. Maximum 24 characters for VTS." + }, + "createInstrumentIdentifier": { + "type": "boolean", + "description": "Specifies whether the InstrumentId should be created (true) or not (false).\nPossible Values:\n- `true`: The InstrumentId should be created.\n- `false`: The InstrumentId should be created.\n" + }, + "source": { + "type": "string", + "description": "Source of the card details.\nPossible Values:\n- ONFILE\n- TOKEN\n- ISSUER\n" + }, + "state": { + "type": "string", + "readOnly": true, + "example": "ACTIVE", + "description": "State of the network token or network token provision.\nPossible Values:\n ACTIVE : Network token is active.\n SUSPENDED : Network token is suspended. This state can change back to ACTIVE.\n DELETED : This is a final state for a network token instance.\n UNPROVISIONED : A previous network token.\n" + }, + "reason": { + "type": "string", + "readOnly": true, + "example": "ACTIVE", + "description": "Issuers state for the network token\nPossible Values:\n- INVALID_REQUEST : The network token provision request contained invalid data.\n- CARD_VERIFICATION_FAILED : The network token provision request contained data that could not be verified.\n- CARD_NOT_ELIGIBLE : Card can currently not be used with issuer for tokenization.\n- CARD_NOT_ALLOWED : Card can currently not be used with card association for tokenization.\n- DECLINED : Card can currently not be used with issuer for tokenization.\n- SERVICE_UNAVAILABLE : The network token service was unavailable or timed out.\n- SYSTEM_ERROR : An unexpected error occurred with network token service, check configuration.\n" + }, + "number": { + "type": "string", + "readOnly": true, + "description": "The token requestor's network token for the provided PAN and consumer Id, if available.\n" + }, + "expirationMonth": { + "type": "string", + "readOnly": true, + "description": "Two-digit month in which the network token expires.\nFormat: `MM`.\nPossible Values: `01` through `12`.\n" + }, + "expirationYear": { + "type": "string", + "readOnly": true, + "description": "Four-digit year in which the network token expires.\nFormat: `YYYY`.\n" + }, + "type": { + "type": "string", + "description": "The type of card (Card Network).\nPossible Values:\n- visa\n- mastercard\n- americanexpress\n" + }, + "cryptogram": { + "type": "string", + "readOnly": true, + "description": "Value generated by the card association to be used alongside the network token for processing a payment.\n", + "example": "CgAFRFYFPTFOfg5rj2ais9wQAAAAAM=" + }, + "securityCode": { + "type": "string", + "readOnly": true, + "description": "4-digit number generated by the card association to be used alogside the network token for processing a payment. Only supported for Amex and SCOF.\n", + "example": "4523" + }, + "eci": { + "type": "string", + "readOnly": true, + "description": "Raw Electronic Commerce Indicator provided by the card association with the result of the cardholder authentication.\n" + }, + "requestorId": { + "type": "string", + "readOnly": true, + "maxLength": 11, + "description": "11-digit identifier that uniquely identifies the Token Requestor.\n" + }, + "enrollmentId": { + "type": "string", + "readOnly": true, + "description": "Unique id to identify this PAN/ enrollment.\n" + }, + "tokenReferenceId": { + "type": "string", + "readOnly": true, + "description": "Unique ID for netwrok token.\n" + }, + "paymentAccountReference": { + "type": "string", + "readOnly": true, + "description": "Payment account reference.\n" + }, + "card": { + "type": "object", + "description": "Card object used to create a network token\n", + "properties": { + "number": { + "type": "string", + "minLength": 12, + "maxLength": 19, + "description": "The customer's payment card number, also known as the Primary Account Number (PAN).\n" + }, + "expirationMonth": { + "type": "string", + "maxLength": 2, + "description": "Two-digit month in which the payment card expires.\n\nFormat: `MM`.\n\nPossible Values: `01` through `12`.\n" + }, + "expirationYear": { + "type": "string", + "maxLength": 4, + "description": "Four-digit year in which the credit card expires.\n\nFormat: `YYYY`.\n" + }, + "type": { + "type": "string", + "description": "The type of card (Card Network).\nPossible Values:\n- 001: visa\n" + }, + "suffix": { + "type": "string", + "readOnly": true, + "description": "The customer's latest payment card number suffix.\n" + }, + "issueDate": { + "type": "string", + "readOnly": true, + "format": "date", + "description": "Card issuance date. XML date format: YYYY-MM-DD.", + "example": "2030-12-15" + }, + "activationDate": { + "type": "string", + "readOnly": true, + "format": "date", + "description": "Card activation date. XML date format: YYYY-MM-DD", + "example": "2030-12-20" + }, + "expirationPrinted": { + "type": "boolean", + "readOnly": true, + "description": "Indicates if the expiration date is printed on the card.", + "example": true + }, + "securityCodePrinted": { + "type": "boolean", + "readOnly": true, + "description": "Indicates if the Card Verification Number is printed on the card.", + "example": true + }, + "termsAndConditions": { + "type": "object", + "readOnly": true, + "properties": { + "url": { + "type": "string", + "readOnly": true, + "description": "Issuer Card Terms and Conditions url." + } + } + } + } + }, + "passcode": { + "type": "object", + "description": "Passcode by issuer for ID&V.\n", + "properties": { + "value": { + "type": "string", + "description": "OTP generated at issuer.\n" + } + } + }, + "metadata": { + "type": "object", + "readOnly": true, + "description": "Metadata associated with the tokenized card.\n", + "properties": { + "cardArt": { + "title": "TmsCardArt", + "description": "Card art associated with the tokenized card.\n", + "type": "object", + "readOnly": true, + "properties": { + "foregroundColor": { + "description": "Card foreground color.\n", + "type": "string", + "readOnly": true + }, + "combinedAsset": { + "description": "Combined card art asset associated with the tokenized card.\n", + "type": "object", + "readOnly": true, + "properties": { + "id": { + "type": "string", + "description": "Unique identifier for the asset\n" + }, + "_links": { + "type": "object", + "readOnly": true, + "properties": { + "self": { + "type": "object", + "readOnly": true, + "properties": { + "href": { + "type": "string", + "readOnly": true, + "description": "Link to the card art asset.\nexample: 'tms/v2/tokens/7020000000010603216/visa/assets/card-art-combined'\n" + } + } + } + } + } + } + }, + "brandLogoAsset": { + "description": "Brand logo card art asset associated with the tokenized card.\n", + "type": "object", + "readOnly": true, + "properties": { + "id": { + "type": "string", + "description": "Unique identifier for the asset\n" + }, + "_links": { + "type": "object", + "readOnly": true, + "properties": { + "self": { + "type": "object", + "readOnly": true, + "properties": { + "href": { + "type": "string", + "readOnly": true, + "description": "Link to the card art asset.\nexample: 'tms/v2/tokens/7020000000010603216/visa/assets/brand-logo'\n" + } + } + } + } + } + } + }, + "issuerLogoAsset": { + "description": "Issuer logo card art asset associated with the tokenized card.\n", + "type": "object", + "readOnly": true, + "properties": { + "id": { + "type": "string", + "description": "Unique identifier for the asset\n" + }, + "_links": { + "type": "object", + "readOnly": true, + "properties": { + "self": { + "type": "object", + "readOnly": true, + "properties": { + "href": { + "type": "string", + "readOnly": true, + "description": "Link to the card art asset.\nexample: 'tms/v2/tokens/7020000000010603216/visa/assets/issuer-logo'\n" + } + } + } + } + } + } + }, + "iconAsset": { + "description": "Icon card art asset associated with the tokenized card.\n", + "type": "object", + "readOnly": true, + "properties": { + "id": { + "type": "string", + "description": "Unique identifier for the asset\n" + }, + "_links": { + "type": "object", + "readOnly": true, + "properties": { + "self": { + "type": "object", + "readOnly": true, + "properties": { + "href": { + "type": "string", + "readOnly": true, + "description": "Link to the card art asset.\nexample: 'tms/v2/tokens/7020000000010603216/visa/assets/icon'\n" + } + } + } + } + } + } + } + } + }, + "issuer": { + "description": "Issuer associated with the tokenized card.\n", + "type": "object", + "readOnly": true, + "properties": { + "name": { + "description": "Issuer name.\n", + "type": "string", + "readOnly": true + }, + "shortDescription": { + "description": "Short description of the card.\n", + "type": "string", + "readOnly": true + }, + "longDescription": { + "description": "Long description of the card.\n", + "type": "string", + "readOnly": true + }, + "email": { + "type": "string", + "readOnly": true, + "description": "Issuer customer service email address." + }, + "phoneNumber": { + "type": "string", + "readOnly": true, + "description": "Issuer customer service phone number." + }, + "url": { + "type": "string", + "readOnly": true, + "description": "Issuer customer service url." + } + } + } + } + } + } + }, + "issuer": { + "type": "object", + "readOnly": true, + "properties": { + "paymentAccountReference": { + "type": "string", + "readOnly": true, + "maxLength": 32, + "description": "This reference number serves as a link to the cardholder account and to all transactions for that account.\n" + } + } + }, + "processingInformation": { + "type": "object", + "properties": { + "authorizationOptions": { + "type": "object", + "title": "tmsAuthorizationOptions", + "properties": { + "initiator": { + "type": "object", + "properties": { + "merchantInitiatedTransaction": { + "type": "object", + "properties": { + "previousTransactionId": { + "type": "string", + "maxLength": 15, + "description": "Network transaction identifier that was returned in the payment response field _processorInformation.transactionID_\nin the reply message for either the original merchant-initiated payment in the series or the previous\nmerchant-initiated payment in the series.\n" + }, + "originalAuthorizedAmount": { + "type": "string", + "maxLength": 15, + "description": "Amount of the original authorization.\n" + } + } + } + } + } + } + } + } + }, + "billTo": { + "type": "object", + "description": "This information is sent to the issuer as part of network token enrollment and is not stored under the Instrument Identifier.\n", + "properties": { + "address1": { + "type": "string", + "maxLength": 60, + "description": "Payment card billing street address as it appears on the credit card issuer's records.\n" + }, + "address2": { + "type": "string", + "maxLength": 60, + "description": "Additional address information.\n" + }, + "locality": { + "type": "string", + "maxLength": 50, + "description": "Payment card billing city.\n" + }, + "administrativeArea": { + "type": "string", + "maxLength": 20, + "description": "State or province of the billing address. Use the State, Province, and Territory Codes for the United States\nand Canada.\n" + }, + "postalCode": { + "type": "string", + "maxLength": 10, + "description": "Postal code for the billing address. The postal code must consist of 5 to 9 digits.\n\nWhen the billing country is the U.S., the 9-digit postal code must follow this format:\n[5 digits][dash][4 digits]\n\n**Example** `12345-6789`\n\nWhen the billing country is Canada, the 6-digit postal code must follow this format:\n[alpha][numeric][alpha][space][numeric][alpha][numeric]\n\n**Example** `A1B 2C3`\n" + }, + "country": { + "type": "string", + "maxLength": 2, + "description": "Payment card billing country. Use the two-character ISO Standard Country Codes.\n" + } + } + }, + "metadata": { + "type": "object", + "readOnly": true, + "properties": { + "creator": { + "type": "string", + "readOnly": true, + "description": "The creator of the Instrument Identifier." + } + } + }, + "_embedded": { + "type": "object", + "readOnly": true, + "properties": { + "binLookup": { + "title": "TmsBinLookup", + "description": "Bin Information of the PAN provided by BinLookUp Service. This is only retrieved when retrieveBinDetails=true is passed as a query parameter.\n", + "readOnly": true, + "type": "object", + "properties": { + "paymentAccountInformation": { + "type": "object", + "properties": { + "card": { + "type": "object", + "properties": { + "type": { + "type": "string", + "maxLength": 3, + "description": "This field contains a 3-digit numeric value that indicates the card type within Cybersource eco-system.\nPossible values from BIN Lookup Service (based on availability and enablement):\n- `000`: Unsupported Card Type\n- `001`: Visa\n- `002`: Mastercard\n- `003`: American Express\n- `004`: Discover\n- `005`: Diners Club\n- `007`: JCB\n- `036`: Cartes Bancaire\n- `042`: Maestro\n- `054`: Elo\n- `058`: Carnet\n- `060`: MADA\n- `061`: RuPay\n- `062`: China UnionPay\n- `064`: Prompt Card\n- `067`: Meeza\n- `068`: PayPak\n- `070`: EFTPOS\n- `081`: Jaywan\n- `082`: TPN\n\nGlossary of possible values in the payments ecosystem:\n- `001`: Visa\n- `002`: Mastercard\n- `003`: American Express\n- `004`: Discover\n- `005`: Diners Club\n- `006`: Carte Blanche\n- `007`: JCB\n- `008`: Optima\n- `009`: GE Private Label\n- `010`: Beneficial Private Label\n- `011`: Twinpay Credit Card\n- `012`: Twinpay Debit Card\n- `013`: Walmart\n- `014`: EnRoute\n- `015`: Lowe's Consumer\n- `016`: Home Depot Consumer\n- `017`: MBNA\n- `018`: Dick's Sportwear\n- `019`: Casual Corner\n- `020`: Sears\n- `021`: JAL\n- `023`: Disney Card\n- `024`: Switch/Solo\n- `025`: Sam's Club Consumer\n- `026`: Sam's Club Business\n- `027`: Nico's\n- `028`: Paymentech Bill Me Later\n- `029`: Bebe\n- `030`: Restoration Hardware\n- `031`: Delta Online\n- `032`: Solo\n- `033`: Visa Electron\n- `034`: Dankort\n- `035`: Laser\n- `036`: Cartes Bancaire\n- `037`: Carta Si\n- `040`: UATP\n- `041`: HOUSEHOLD\n- `042`: Maestro\n- `043`: GE MONEY\n- `044`: Korean Cards\n- `045`: Style Cards\n- `046`: J.Crew\n- `047`: Payeasecn eWallet\n- `048`: Payeasecn Bank Transfer\n- `049`: Meijer\n- `050`: Hipercard\n- `051`: Aura\n- `052`: Redecard\n- `053`: Orico Card\n- `054`: Elo\n- `055`: Capital One Private Label\n- `057`: Costco Private Label\n- `058`: Carnet\n- `059`: ValueLink\n- `060`: MADA\n- `061`: RuPay\n- `062`: China UnionPay\n- `063`: Falabella Private Label\n- `064`: Prompt Card\n- `065`: Korean Domestic\n- `066`: Banricompras\n- `067`: Meeza\n- `068`: PayPak\n- `070`: EFTPOS\n- `071`: Codensa\n- `072`: Olimpica\n- `073`: Colsubsidio\n- `074`: Tuya\n- `075`: Sodexo\n- `076`: Naranja\n- `077`: Cabal\n- `078`: DINELCO\n- `079`: PANAL\n- `080`: EPM\n- `081`: Jaywan\n- `082`: TPN\n" + }, + "brandName": { + "type": "string", + "maxLength": 20, + "description": "This field contains the card brand name. \n\nSome of the possible values (not an exhaustive list) are -\n\n - VISA\n - MASTERCARD\n - AMERICAN EXPRESS\n - DISCOVER\n - DINERS CLUB\n - CARTE BLANCHE\n - JCB\n - OPTIMA\n - TWINPAY CREDIT CARD\n - TWINPAY DEBIT CARD\n - WALMART\n - ENROUTE\n - LOWES CONSUMER\n - HOME DEPOT CONSUMER\n - MBNA\n - DICKS SPORTWEAR\n - CASUAL CORNER\n - SEARS\n - JAL\n - DISNEY CARD\n - SWITCH/SOLO\n - SAMS CLUB CONSUMER\n - SAMS CLUB BUSINESS\n - NICOS HOUSE CARD\n - BEBE\n - RESTORATION HARDWARE\n - DELTA ONLINE\n - SOLO\n - VISA ELECTRON\n - DANKORT\n - LASER\n - CARTE BANCAIRE\n - CARTA SI\n - ENCODED ACCOUNT\n - UATP\n - HOUSEHOLD\n - MAESTRO\n - GE CAPITAL\n - KOREAN CARDS\n - STYLE CARDS\n - JCREW\n - MEIJER\n - HIPERCARD\n - AURA\n - REDECARD\n - ORICO HOUSE CARD\n - MADA\n - ELO\n - CAPITAL ONE PRIVATE LABEL\n - CARNET\n - RUPAY\n - CHINA UNION PAY\n - FALABELLA PRIVATE LABEL\n - PROMPTCARD\n - KOREAN DOMESTIC\n - BANRICOMPRAS\n - MEEZA\n - PAYPAK\n - JAYWAN\n - TPN\n" + }, + "currency": { + "type": "string", + "maxLength": 3, + "description": "This field indicates the 3-letter [ISO Standard Currency Codes](http://apps.cybersource.com/library/documentation/sbc/quickref/currencies.pdf) for the card currency.\n" + }, + "maxLength": { + "type": "string", + "maxLength": 2, + "description": "This field contains the max length of the card.\n" + }, + "credentialType": { + "type": "string", + "maxLength": 5, + "description": "This field contains the type of the payment credential.\nPossible values:\n - PAN\n - TOKEN \n" + }, + "brands": { + "description": "Array of brands", + "type": "array", + "items": { + "type": "object", + "properties": { + "type": { + "type": "string", + "maxLength": 3, + "description": "This field contains a 3-digit numeric value that indicates the card type within Cybersource eco-system.\nPossible values from BIN Lookup Service (based on availability and enablement):\n- `000`: Unsupported Card Type\n- `001`: Visa\n- `002`: Mastercard\n- `003`: American Express\n- `004`: Discover\n- `005`: Diners Club\n- `007`: JCB\n- `036`: Cartes Bancaire\n- `042`: Maestro\n- `054`: Elo\n- `058`: Carnet\n- `060`: MADA\n- `061`: RuPay\n- `062`: China UnionPay\n- `064`: Prompt Card\n- `067`: Meeza\n- `068`: PayPak\n- `070`: EFTPOS\n- `081`: Jaywan\n- `082`: TPN\n\nGlossary of possible values in the payments ecosystem:\n- `001`: Visa\n- `002`: Mastercard\n- `003`: American Express\n- `004`: Discover\n- `005`: Diners Club\n- `006`: Carte Blanche\n- `007`: JCB\n- `008`: Optima\n- `009`: GE Private Label\n- `010`: Beneficial Private Label\n- `011`: Twinpay Credit Card\n- `012`: Twinpay Debit Card\n- `013`: Walmart\n- `014`: EnRoute\n- `015`: Lowe's Consumer\n- `016`: Home Depot Consumer\n- `017`: MBNA\n- `018`: Dick's Sportwear\n- `019`: Casual Corner\n- `020`: Sears\n- `021`: JAL\n- `023`: Disney Card\n- `024`: Switch/Solo\n- `025`: Sam's Club Consumer\n- `026`: Sam's Club Business\n- `027`: Nico's\n- `028`: Paymentech Bill Me Later\n- `029`: Bebe\n- `030`: Restoration Hardware\n- `031`: Delta Online\n- `032`: Solo\n- `033`: Visa Electron\n- `034`: Dankort\n- `035`: Laser\n- `036`: Cartes Bancaire\n- `037`: Carta Si\n- `040`: UATP\n- `041`: HOUSEHOLD\n- `042`: Maestro\n- `043`: GE MONEY\n- `044`: Korean Cards\n- `045`: Style Cards\n- `046`: J.Crew\n- `047`: Payeasecn eWallet\n- `048`: Payeasecn Bank Transfer\n- `049`: Meijer\n- `050`: Hipercard\n- `051`: Aura\n- `052`: Redecard\n- `053`: Orico Card\n- `054`: Elo\n- `055`: Capital One Private Label\n- `057`: Costco Private Label\n- `058`: Carnet\n- `059`: ValueLink\n- `060`: MADA\n- `061`: RuPay\n- `062`: China UnionPay\n- `063`: Falabella Private Label\n- `064`: Prompt Card\n- `065`: Korean Domestic\n- `066`: Banricompras\n- `067`: Meeza\n- `068`: PayPak\n- `070`: EFTPOS\n- `071`: Codensa\n- `072`: Olimpica\n- `073`: Colsubsidio\n- `074`: Tuya\n- `075`: Sodexo\n- `076`: Naranja\n- `077`: Cabal\n- `078`: DINELCO\n- `079`: PANAL\n- `080`: EPM\n- `081`: Jaywan\n- `082`: TPN\n" + }, + "brandName": { + "type": "string", + "maxLength": 20, + "description": "This field contains the card brand name. \n\nSome of the possible values (not an exhaustive list) are -\n\n - VISA\n - MASTERCARD\n - AMERICAN EXPRESS\n - DISCOVER\n - DINERS CLUB\n - CARTE BLANCHE\n - JCB\n - OPTIMA\n - TWINPAY CREDIT CARD\n - TWINPAY DEBIT CARD\n - WALMART\n - ENROUTE\n - LOWES CONSUMER\n - HOME DEPOT CONSUMER\n - MBNA\n - DICKS SPORTWEAR\n - CASUAL CORNER\n - SEARS\n - JAL\n - DISNEY CARD\n - SWITCH/SOLO\n - SAMS CLUB CONSUMER\n - SAMS CLUB BUSINESS\n - NICOS HOUSE CARD\n - BEBE\n - RESTORATION HARDWARE\n - DELTA ONLINE\n - SOLO\n - VISA ELECTRON\n - DANKORT\n - LASER\n - CARTE BANCAIRE\n - CARTA SI\n - ENCODED ACCOUNT\n - UATP\n - HOUSEHOLD\n - MAESTRO\n - GE CAPITAL\n - KOREAN CARDS\n - STYLE CARDS\n - JCREW\n - MEIJER\n - HIPERCARD\n - AURA\n - REDECARD\n - ORICO HOUSE CARD\n - MADA\n - ELO\n - CAPITAL ONE PRIVATE LABEL\n - CARNET\n - RUPAY\n - CHINA UNION PAY\n - FALABELLA PRIVATE LABEL\n - PROMPTCARD\n - KOREAN DOMESTIC\n - BANRICOMPRAS\n - MEEZA\n - PAYPAK\n - JAYWAN\n - TPN\n" + } + } + } + } + } + }, + "features": { + "type": "object", + "properties": { + "accountFundingSource": { + "type": "string", + "maxLength": 20, + "description": "This field contains the account funding source.\nPossible values:\n - `CREDIT`\n - `DEBIT`\n - `PREPAID`\n - `DEFERRED DEBIT`\n - `CHARGE`\n" + }, + "accountFundingSourceSubType": { + "type": "string", + "maxLength": 20, + "description": "This field contains the type of prepaid card.\nPossible values:\n - `Reloadable`\n - `Non-reloadable`\n" + }, + "cardProduct": { + "type": "string", + "maxLength": 50, + "description": "This field contains the type of issuer product.\nExample values:\n - Visa Classic\n - Visa Signature\n - Visa Infinite\n" + }, + "messageType": { + "type": "string", + "maxLength": 1, + "description": "This field contains the type of BIN based authentication.\nPossible values:\n - `S`: Single Message\n - `D`: Dual Message\n" + }, + "acceptanceLevel": { + "type": "string", + "maxLength": 2, + "description": "This field contains the acceptance level of the PAN.\nPossible values:\n - `0` : Normal\n - `1` : Monitor\n - `2` : Refuse\n - `3` : Not Allowed\n - `4` : Private\n - `5` : Test\n" + }, + "cardPlatform": { + "type": "string", + "maxLength": 20, + "description": "This field contains the type of card platform.\nPossible values:\n - `BUSINESS`\n - `CONSUMER`\n - `CORPORATE`\n - `COMMERCIAL`\n - `GOVERNMENT`\n" + }, + "comboCard": { + "type": "string", + "maxLength": 1, + "description": "This field indicates the type of combo card.\nPossible values:\n - 0 (Not a combo card)\n - 1 (Credit and Prepaid Combo card)\n - 2 (Credit and Debit Combo card)\n - 3 (Prepaid Credit and Prepaid Debit combo card)\n" + }, + "corporatePurchase": { + "type": "boolean", + "description": "This field indicates if the instrument can be used for corporate purchasing. This field is only applicable for American Express cards.\nPossible values:\n - `true`\n - `false`\n" + }, + "healthCard": { + "type": "boolean", + "description": "This field indicates if the BIN is for healthcare (HSA/FSA). Currently, this field is only supported for Visa BINs.\nPossible values:\n - `true`\n - `false`\n" + }, + "sharedBIN": { + "type": "boolean", + "description": "This field indicates if the BIN is shared by multiple issuers\nPossible values:\n - `true`\n - `false`\n" + }, + "posDomesticOnly": { + "type": "boolean", + "description": "This field indicates if the BIN is valid only for POS domestic usage.\nPossible values:\n - `true`\n - `false`\n" + }, + "gamblingAllowed": { + "type": "boolean", + "description": "This field indicates if gambling transactions are allowed on the BIN.\nPossible values:\n - `true`\n - `false`\n" + }, + "commercialCardLevel2": { + "type": "boolean", + "description": "This field indicates if a transaction on the instrument qualifies for level 2 interchange rates.\nPossible values:\n - `true`\n - `false`\n" + }, + "commercialCardLevel3": { + "type": "boolean", + "description": "This field indicates if a transaction on the instrument qualifies for level 3 interchange rates.\nPossible values:\n - `true`\n - `false`\n" + }, + "exemptBIN": { + "type": "boolean", + "description": "This field indicates if a transaction on the instrument qualifies for government exempt interchange fee.\nPossible values:\n - `true`\n - `false`\n" + }, + "accountLevelManagement": { + "type": "boolean", + "description": "This field indicates if the BIN participates in Account Level Management (ALM).\nPossible values:\n - `true`\n - `false`\n" + }, + "onlineGamblingBlock": { + "type": "boolean", + "description": "This field indicates if online gambling is blocked on the BIN.\nPossible values:\n - `true`\n - `false`\n" + }, + "autoSubstantiation": { + "type": "boolean", + "description": "This field indicates if auto-substantiation is enabled on the BIN.\nPossible values:\n - `true`\n - `false`\n" + }, + "flexCredential": { + "type": "boolean", + "description": "This field indicates if the instrument is a flex credential.\nPossible values:\n - `true`\n - `false`\n" + }, + "productId": { + "type": "string", + "description": "This field contains the Visa-assigned product identifier associated with the BIN. This field is only supported for Visa BINs.\nExample values:\n - Q4\n - P\n - AX\n" + }, + "productIdSubtype": { + "type": "string", + "description": "This field contains the Visa-assigned product subtype identifier associated with the BIN. This field is only supported for Visa BINs.\nExample values:\n - BB\n - EX\n - L2\n - C2\n" + }, + "threeDSSupport": { + "type": "boolean", + "description": "This field indicates if the payment instrument supports 3D Secure authentication.\nPossible values:\n - `true`\n - `false`\n" + }, + "siEligible": { + "type": "boolean", + "description": "This field indicates if the payment instrument is eligible for Standing Instructions (recurring payments).\nPossible values:\n - `true`\n - `false`\n" + }, + "emiEligible": { + "type": "boolean", + "description": "This field indicates if the card is eligible for Equated Monthly Installments (EMI).\nPossible values:\n - `true`\n - `false`\n" + } + } + }, + "network": { + "type": "object", + "properties": { + "id": { + "type": "string", + "description": "This field contains a code that identifies the network.\n[List of Network ID and Sharing Group Code](https://developer.visa.com/request_response_codes#network_id_and_sharing_group_code)\n" + } + } + } + } + }, + "issuerInformation": { + "type": "object", + "properties": { + "name": { + "type": "string", + "maxLength": 200, + "description": "This field contains the issuer name.\n" + }, + "country": { + "type": "string", + "maxLength": 2, + "description": "This field contains [2-character ISO Country Codes](http://apps.cybersource.com/library/documentation/sbc/quickref/countries_alpha_list.pdf) for the issuer.\n" + }, + "binLength": { + "type": "string", + "maxLength": 2, + "description": "This field contains the length of the BIN. In some cases, this field may be absent if we do not receive accurate information from the network source.\n" + }, + "accountPrefix": { + "type": "string", + "maxLength": 8, + "description": "This field contains the first 6 to 8 digits of a primary account number (PAN). The length of the field is determined by [PCI-DSS standards for truncation](https://pcissc.secure.force.com/faq/articles/Frequently_Asked_Question/What-are-acceptable-formats-for-truncation-of-primary-account-numbers).In case the input is not the full intrument (PAN or TOKEN), this field may be truncated.\n" + }, + "phoneNumber": { + "type": "string", + "maxLength": 50, + "description": "This field contains the customer service phone number for the issuer.\n" + } + } + } + } + } + } + } + } + } + } + } + } + }, + "instrumentIdentifier": { + "type": "object", + "properties": { + "_links": { + "type": "object", + "readOnly": true, + "properties": { + "self": { + "type": "object", + "readOnly": true, + "properties": { + "href": { + "type": "string", + "readOnly": true, + "description": "Link to the Instrument Identifier.\n", + "example": "tms/v1/instrumentidentifiers/7010000000016241111" + } + } + }, + "paymentInstruments": { + "type": "object", + "readOnly": true, + "properties": { + "href": { + "type": "string", + "readOnly": true, + "description": "Link to the Instrument Identifiers Payment Instruments.\n", + "example": "tms/v1/instrumentidentifiers/7010000000016241111/paymentinstruments" + } + } + } + } + }, + "id": { + "type": "string", + "description": "The Id of the Instrument Identifier Token.\n" + }, + "object": { + "type": "string", + "readOnly": true, + "example": "instrumentIdentifier", + "description": "The type.\n\nPossible Values:\n- instrumentIdentifier\n" + }, + "state": { + "type": "string", + "readOnly": true, + "example": "ACTIVE", + "description": "Issuers state for the card number.\nPossible Values:\n- ACTIVE\n- CLOSED : The account has been closed.\n" + }, + "type": { + "type": "string", + "description": "The type of Instrument Identifier.\nPossible Values:\n- enrollable card\n- enrollable token\n" + }, + "source": { + "type": "string", + "description": "Source of the card details.\nPossible Values:\n- CONTACTLESS_TAP\n" + }, + "tokenProvisioningInformation": { + "type": "object", + "properties": { + "consumerConsentObtained": { + "type": "boolean", + "description": "Flag that indicates whether the user consented to the tokenization of their credentials. Required for card network tokenization in certain markets, such as India.\nPossible Values:\n- `true`: Consumer has consented to tokenization of their credentials.\n- `false`: Consumer has not consented to tokenization of their credentials.\n" + }, + "multiFactorAuthenticated": { + "type": "boolean", + "description": "Flag that indicates whether AFA (Additional Factor of Authentication) for the PAN was completed. Required for card network tokenization in certain markets, such as India.\nPossible Values:\n- `true`: Consumer has been authenticated by the issuer.\n- `false`: Consumer has not been authenticated by the issuer.\n" + } + } + }, + "card": { + "type": "object", + "description": "The expirationMonth, expirationYear and securityCode is sent to the issuer as part of network token enrollment and is not stored under the Instrument Identifier.\n", + "properties": { + "number": { + "type": "string", + "minLength": 12, + "maxLength": 19, + "description": "The customer's payment card number, also known as the Primary Account Number (PAN). You can also use this field\nfor encoded account numbers.\n" + }, + "expirationMonth": { + "type": "string", + "maxLength": 2, + "description": "Two-digit month in which the payment card expires.\n\nFormat: `MM`.\n\nPossible Values: `01` through `12`.\n" + }, + "expirationYear": { + "type": "string", + "maxLength": 4, + "description": "Four-digit year in which the credit card expires.\n\nFormat: `YYYY`.\n" + }, + "securityCode": { + "type": "string", + "maxLength": 4, + "description": "Card Verification Code. \nThis value is sent to the issuer to support the approval of a network token provision.\nIt is not persisted against the Instrument Identifier.\n" + } + } + }, + "pointOfSaleInformation": { + "type": "object", + "required": [ + "emvTags" + ], + "properties": { + "emvTags": { + "type": "array", + "minItems": 1, + "maxItems": 50, + "items": { + "type": "object", + "required": [ + "tag", + "value", + "source" + ], + "properties": { + "tag": { + "type": "string", + "minLength": 1, + "maxLength": 10, + "pattern": "^[0-9A-Fa-f]{1,10}$", + "description": "EMV tag, 1-10 hex characters." + }, + "value": { + "type": "string", + "minLength": 1, + "maxLength": 64, + "description": "EMV tag value, 1-64 characters." + }, + "source": { + "type": "string", + "description": "Source of the tag.\n\nPossible Values:\n - CARD\n - TERMINAL\n" + } + }, + "example": { + "tag": "5A", + "value": "4111111111111111", + "source": "CARD" + } + } + } + } + }, + "bankAccount": { + "type": "object", + "properties": { + "number": { + "type": "string", + "maxLength": 17, + "description": "Account number.\n\nWhen processing encoded account numbers, use this field for the encoded account number.\n" + }, + "routingNumber": { + "type": "string", + "description": "Bank routing number. This is also called the transit number.\n\n# For details, see `ecp_rdfi` field description in the [Electronic Check Services Using the SCMP API Guide.](https://apps.cybersource.com/library/documentation/dev_guides/EChecks_SCMP_API/html/)\n" + } + } + }, + "tokenizedCard": { + "title": "tmsv2TokenizedCard", + "type": "object", + "properties": { + "_links": { + "type": "object", + "readOnly": true, + "properties": { + "self": { + "type": "object", + "readOnly": true, + "properties": { + "href": { + "type": "string", + "readOnly": true, + "description": "Link to the Tokenized Card.\nexample: 'tms/v2/tokenized-cards/7010000000016241111'\n" + } + } + } + } + }, + "id": { + "type": "string", + "readOnly": true, + "description": "The Id of the Tokenized Card.\n" + }, + "object": { + "type": "string", + "readOnly": true, + "example": "tokenizedCard", + "description": "The type.\nPossible Values:\n- tokenizedCard\n" + }, + "accountReferenceId": { + "type": "string", + "description": "An identifier provided by the issuer for the account.\n" + }, + "consumerId": { + "type": "string", + "maxLength": 36, + "description": "Identifier of the consumer within the wallet. Maximum 24 characters for VTS." + }, + "createInstrumentIdentifier": { + "type": "boolean", + "description": "Specifies whether the InstrumentId should be created (true) or not (false).\nPossible Values:\n- `true`: The InstrumentId should be created.\n- `false`: The InstrumentId should be created.\n" + }, + "source": { + "type": "string", + "description": "Source of the card details.\nPossible Values:\n- ONFILE\n- TOKEN\n- ISSUER\n" + }, + "state": { + "type": "string", + "readOnly": true, + "example": "ACTIVE", + "description": "State of the network token or network token provision.\nPossible Values:\n ACTIVE : Network token is active.\n SUSPENDED : Network token is suspended. This state can change back to ACTIVE.\n DELETED : This is a final state for a network token instance.\n UNPROVISIONED : A previous network token.\n" + }, + "reason": { + "type": "string", + "readOnly": true, + "example": "ACTIVE", + "description": "Issuers state for the network token\nPossible Values:\n- INVALID_REQUEST : The network token provision request contained invalid data.\n- CARD_VERIFICATION_FAILED : The network token provision request contained data that could not be verified.\n- CARD_NOT_ELIGIBLE : Card can currently not be used with issuer for tokenization.\n- CARD_NOT_ALLOWED : Card can currently not be used with card association for tokenization.\n- DECLINED : Card can currently not be used with issuer for tokenization.\n- SERVICE_UNAVAILABLE : The network token service was unavailable or timed out.\n- SYSTEM_ERROR : An unexpected error occurred with network token service, check configuration.\n" + }, + "number": { + "type": "string", + "readOnly": true, + "description": "The token requestor's network token for the provided PAN and consumer Id, if available.\n" + }, + "expirationMonth": { + "type": "string", + "readOnly": true, + "description": "Two-digit month in which the network token expires.\nFormat: `MM`.\nPossible Values: `01` through `12`.\n" + }, + "expirationYear": { + "type": "string", + "readOnly": true, + "description": "Four-digit year in which the network token expires.\nFormat: `YYYY`.\n" + }, + "type": { + "type": "string", + "description": "The type of card (Card Network).\nPossible Values:\n- visa\n- mastercard\n- americanexpress\n" + }, + "cryptogram": { + "type": "string", + "readOnly": true, + "description": "Value generated by the card association to be used alongside the network token for processing a payment.\n", + "example": "CgAFRFYFPTFOfg5rj2ais9wQAAAAAM=" + }, + "securityCode": { + "type": "string", + "readOnly": true, + "description": "4-digit number generated by the card association to be used alogside the network token for processing a payment. Only supported for Amex and SCOF.\n", + "example": "4523" + }, + "eci": { + "type": "string", + "readOnly": true, + "description": "Raw Electronic Commerce Indicator provided by the card association with the result of the cardholder authentication.\n" + }, + "requestorId": { + "type": "string", + "readOnly": true, + "maxLength": 11, + "description": "11-digit identifier that uniquely identifies the Token Requestor.\n" + }, + "enrollmentId": { + "type": "string", + "readOnly": true, + "description": "Unique id to identify this PAN/ enrollment.\n" + }, + "tokenReferenceId": { + "type": "string", + "readOnly": true, + "description": "Unique ID for netwrok token.\n" + }, + "paymentAccountReference": { + "type": "string", + "readOnly": true, + "description": "Payment account reference.\n" + }, + "card": { + "type": "object", + "description": "Card object used to create a network token\n", + "properties": { + "number": { + "type": "string", + "minLength": 12, + "maxLength": 19, + "description": "The customer's payment card number, also known as the Primary Account Number (PAN).\n" + }, + "expirationMonth": { + "type": "string", + "maxLength": 2, + "description": "Two-digit month in which the payment card expires.\n\nFormat: `MM`.\n\nPossible Values: `01` through `12`.\n" + }, + "expirationYear": { + "type": "string", + "maxLength": 4, + "description": "Four-digit year in which the credit card expires.\n\nFormat: `YYYY`.\n" + }, + "type": { + "type": "string", + "description": "The type of card (Card Network).\nPossible Values:\n- 001: visa\n" + }, + "suffix": { + "type": "string", + "readOnly": true, + "description": "The customer's latest payment card number suffix.\n" + }, + "issueDate": { + "type": "string", + "readOnly": true, + "format": "date", + "description": "Card issuance date. XML date format: YYYY-MM-DD.", + "example": "2030-12-15" + }, + "activationDate": { + "type": "string", + "readOnly": true, + "format": "date", + "description": "Card activation date. XML date format: YYYY-MM-DD", + "example": "2030-12-20" + }, + "expirationPrinted": { + "type": "boolean", + "readOnly": true, + "description": "Indicates if the expiration date is printed on the card.", + "example": true + }, + "securityCodePrinted": { + "type": "boolean", + "readOnly": true, + "description": "Indicates if the Card Verification Number is printed on the card.", + "example": true + }, + "termsAndConditions": { + "type": "object", + "readOnly": true, + "properties": { + "url": { + "type": "string", + "readOnly": true, + "description": "Issuer Card Terms and Conditions url." + } + } + } + } + }, + "passcode": { + "type": "object", + "description": "Passcode by issuer for ID&V.\n", + "properties": { + "value": { + "type": "string", + "description": "OTP generated at issuer.\n" + } + } + }, + "metadata": { + "type": "object", + "readOnly": true, + "description": "Metadata associated with the tokenized card.\n", + "properties": { + "cardArt": { + "title": "TmsCardArt", + "description": "Card art associated with the tokenized card.\n", + "type": "object", + "readOnly": true, + "properties": { + "foregroundColor": { + "description": "Card foreground color.\n", + "type": "string", + "readOnly": true + }, + "combinedAsset": { + "description": "Combined card art asset associated with the tokenized card.\n", + "type": "object", + "readOnly": true, + "properties": { + "id": { + "type": "string", + "description": "Unique identifier for the asset\n" + }, + "_links": { + "type": "object", + "readOnly": true, + "properties": { + "self": { + "type": "object", + "readOnly": true, + "properties": { + "href": { + "type": "string", + "readOnly": true, + "description": "Link to the card art asset.\nexample: 'tms/v2/tokens/7020000000010603216/visa/assets/card-art-combined'\n" + } + } + } + } + } + } + }, + "brandLogoAsset": { + "description": "Brand logo card art asset associated with the tokenized card.\n", + "type": "object", + "readOnly": true, + "properties": { + "id": { + "type": "string", + "description": "Unique identifier for the asset\n" + }, + "_links": { + "type": "object", + "readOnly": true, + "properties": { + "self": { + "type": "object", + "readOnly": true, + "properties": { + "href": { + "type": "string", + "readOnly": true, + "description": "Link to the card art asset.\nexample: 'tms/v2/tokens/7020000000010603216/visa/assets/brand-logo'\n" + } + } + } + } + } + } + }, + "issuerLogoAsset": { + "description": "Issuer logo card art asset associated with the tokenized card.\n", + "type": "object", + "readOnly": true, + "properties": { + "id": { + "type": "string", + "description": "Unique identifier for the asset\n" + }, + "_links": { + "type": "object", + "readOnly": true, + "properties": { + "self": { + "type": "object", + "readOnly": true, + "properties": { + "href": { + "type": "string", + "readOnly": true, + "description": "Link to the card art asset.\nexample: 'tms/v2/tokens/7020000000010603216/visa/assets/issuer-logo'\n" + } + } + } + } + } + } + }, + "iconAsset": { + "description": "Icon card art asset associated with the tokenized card.\n", + "type": "object", + "readOnly": true, + "properties": { + "id": { + "type": "string", + "description": "Unique identifier for the asset\n" + }, + "_links": { + "type": "object", + "readOnly": true, + "properties": { + "self": { + "type": "object", + "readOnly": true, + "properties": { + "href": { + "type": "string", + "readOnly": true, + "description": "Link to the card art asset.\nexample: 'tms/v2/tokens/7020000000010603216/visa/assets/icon'\n" + } + } + } + } + } + } + } + } + }, + "issuer": { + "description": "Issuer associated with the tokenized card.\n", + "type": "object", + "readOnly": true, + "properties": { + "name": { + "description": "Issuer name.\n", + "type": "string", + "readOnly": true + }, + "shortDescription": { + "description": "Short description of the card.\n", + "type": "string", + "readOnly": true + }, + "longDescription": { + "description": "Long description of the card.\n", + "type": "string", + "readOnly": true + }, + "email": { + "type": "string", + "readOnly": true, + "description": "Issuer customer service email address." + }, + "phoneNumber": { + "type": "string", + "readOnly": true, + "description": "Issuer customer service phone number." + }, + "url": { + "type": "string", + "readOnly": true, + "description": "Issuer customer service url." + } + } + } + } + } + } + }, + "issuer": { + "type": "object", + "readOnly": true, + "properties": { + "paymentAccountReference": { + "type": "string", + "readOnly": true, + "maxLength": 32, + "description": "This reference number serves as a link to the cardholder account and to all transactions for that account.\n" + } + } + }, + "processingInformation": { + "type": "object", + "properties": { + "authorizationOptions": { + "type": "object", + "title": "tmsAuthorizationOptions", + "properties": { + "initiator": { + "type": "object", + "properties": { + "merchantInitiatedTransaction": { + "type": "object", + "properties": { + "previousTransactionId": { + "type": "string", + "maxLength": 15, + "description": "Network transaction identifier that was returned in the payment response field _processorInformation.transactionID_\nin the reply message for either the original merchant-initiated payment in the series or the previous\nmerchant-initiated payment in the series.\n" + }, + "originalAuthorizedAmount": { + "type": "string", + "maxLength": 15, + "description": "Amount of the original authorization.\n" + } + } + } + } + } + } + } + } + }, + "billTo": { + "type": "object", + "description": "This information is sent to the issuer as part of network token enrollment and is not stored under the Instrument Identifier.\n", + "properties": { + "address1": { + "type": "string", + "maxLength": 60, + "description": "Payment card billing street address as it appears on the credit card issuer's records.\n" + }, + "address2": { + "type": "string", + "maxLength": 60, + "description": "Additional address information.\n" + }, + "locality": { + "type": "string", + "maxLength": 50, + "description": "Payment card billing city.\n" + }, + "administrativeArea": { + "type": "string", + "maxLength": 20, + "description": "State or province of the billing address. Use the State, Province, and Territory Codes for the United States\nand Canada.\n" + }, + "postalCode": { + "type": "string", + "maxLength": 10, + "description": "Postal code for the billing address. The postal code must consist of 5 to 9 digits.\n\nWhen the billing country is the U.S., the 9-digit postal code must follow this format:\n[5 digits][dash][4 digits]\n\n**Example** `12345-6789`\n\nWhen the billing country is Canada, the 6-digit postal code must follow this format:\n[alpha][numeric][alpha][space][numeric][alpha][numeric]\n\n**Example** `A1B 2C3`\n" + }, + "country": { + "type": "string", + "maxLength": 2, + "description": "Payment card billing country. Use the two-character ISO Standard Country Codes.\n" + } + } + }, + "metadata": { + "type": "object", + "readOnly": true, + "properties": { + "creator": { + "type": "string", + "readOnly": true, + "description": "The creator of the Instrument Identifier." + } + } + }, + "_embedded": { + "type": "object", + "readOnly": true, + "properties": { + "binLookup": { + "title": "TmsBinLookup", + "description": "Bin Information of the PAN provided by BinLookUp Service. This is only retrieved when retrieveBinDetails=true is passed as a query parameter.\n", + "readOnly": true, + "type": "object", + "properties": { + "paymentAccountInformation": { + "type": "object", + "properties": { + "card": { + "type": "object", + "properties": { + "type": { + "type": "string", + "maxLength": 3, + "description": "This field contains a 3-digit numeric value that indicates the card type within Cybersource eco-system.\nPossible values from BIN Lookup Service (based on availability and enablement):\n- `000`: Unsupported Card Type\n- `001`: Visa\n- `002`: Mastercard\n- `003`: American Express\n- `004`: Discover\n- `005`: Diners Club\n- `007`: JCB\n- `036`: Cartes Bancaire\n- `042`: Maestro\n- `054`: Elo\n- `058`: Carnet\n- `060`: MADA\n- `061`: RuPay\n- `062`: China UnionPay\n- `064`: Prompt Card\n- `067`: Meeza\n- `068`: PayPak\n- `070`: EFTPOS\n- `081`: Jaywan\n- `082`: TPN\n\nGlossary of possible values in the payments ecosystem:\n- `001`: Visa\n- `002`: Mastercard\n- `003`: American Express\n- `004`: Discover\n- `005`: Diners Club\n- `006`: Carte Blanche\n- `007`: JCB\n- `008`: Optima\n- `009`: GE Private Label\n- `010`: Beneficial Private Label\n- `011`: Twinpay Credit Card\n- `012`: Twinpay Debit Card\n- `013`: Walmart\n- `014`: EnRoute\n- `015`: Lowe's Consumer\n- `016`: Home Depot Consumer\n- `017`: MBNA\n- `018`: Dick's Sportwear\n- `019`: Casual Corner\n- `020`: Sears\n- `021`: JAL\n- `023`: Disney Card\n- `024`: Switch/Solo\n- `025`: Sam's Club Consumer\n- `026`: Sam's Club Business\n- `027`: Nico's\n- `028`: Paymentech Bill Me Later\n- `029`: Bebe\n- `030`: Restoration Hardware\n- `031`: Delta Online\n- `032`: Solo\n- `033`: Visa Electron\n- `034`: Dankort\n- `035`: Laser\n- `036`: Cartes Bancaire\n- `037`: Carta Si\n- `040`: UATP\n- `041`: HOUSEHOLD\n- `042`: Maestro\n- `043`: GE MONEY\n- `044`: Korean Cards\n- `045`: Style Cards\n- `046`: J.Crew\n- `047`: Payeasecn eWallet\n- `048`: Payeasecn Bank Transfer\n- `049`: Meijer\n- `050`: Hipercard\n- `051`: Aura\n- `052`: Redecard\n- `053`: Orico Card\n- `054`: Elo\n- `055`: Capital One Private Label\n- `057`: Costco Private Label\n- `058`: Carnet\n- `059`: ValueLink\n- `060`: MADA\n- `061`: RuPay\n- `062`: China UnionPay\n- `063`: Falabella Private Label\n- `064`: Prompt Card\n- `065`: Korean Domestic\n- `066`: Banricompras\n- `067`: Meeza\n- `068`: PayPak\n- `070`: EFTPOS\n- `071`: Codensa\n- `072`: Olimpica\n- `073`: Colsubsidio\n- `074`: Tuya\n- `075`: Sodexo\n- `076`: Naranja\n- `077`: Cabal\n- `078`: DINELCO\n- `079`: PANAL\n- `080`: EPM\n- `081`: Jaywan\n- `082`: TPN\n" + }, + "brandName": { + "type": "string", + "maxLength": 20, + "description": "This field contains the card brand name. \n\nSome of the possible values (not an exhaustive list) are -\n\n - VISA\n - MASTERCARD\n - AMERICAN EXPRESS\n - DISCOVER\n - DINERS CLUB\n - CARTE BLANCHE\n - JCB\n - OPTIMA\n - TWINPAY CREDIT CARD\n - TWINPAY DEBIT CARD\n - WALMART\n - ENROUTE\n - LOWES CONSUMER\n - HOME DEPOT CONSUMER\n - MBNA\n - DICKS SPORTWEAR\n - CASUAL CORNER\n - SEARS\n - JAL\n - DISNEY CARD\n - SWITCH/SOLO\n - SAMS CLUB CONSUMER\n - SAMS CLUB BUSINESS\n - NICOS HOUSE CARD\n - BEBE\n - RESTORATION HARDWARE\n - DELTA ONLINE\n - SOLO\n - VISA ELECTRON\n - DANKORT\n - LASER\n - CARTE BANCAIRE\n - CARTA SI\n - ENCODED ACCOUNT\n - UATP\n - HOUSEHOLD\n - MAESTRO\n - GE CAPITAL\n - KOREAN CARDS\n - STYLE CARDS\n - JCREW\n - MEIJER\n - HIPERCARD\n - AURA\n - REDECARD\n - ORICO HOUSE CARD\n - MADA\n - ELO\n - CAPITAL ONE PRIVATE LABEL\n - CARNET\n - RUPAY\n - CHINA UNION PAY\n - FALABELLA PRIVATE LABEL\n - PROMPTCARD\n - KOREAN DOMESTIC\n - BANRICOMPRAS\n - MEEZA\n - PAYPAK\n - JAYWAN\n - TPN\n" + }, + "currency": { + "type": "string", + "maxLength": 3, + "description": "This field indicates the 3-letter [ISO Standard Currency Codes](http://apps.cybersource.com/library/documentation/sbc/quickref/currencies.pdf) for the card currency.\n" + }, + "maxLength": { + "type": "string", + "maxLength": 2, + "description": "This field contains the max length of the card.\n" + }, + "credentialType": { + "type": "string", + "maxLength": 5, + "description": "This field contains the type of the payment credential.\nPossible values:\n - PAN\n - TOKEN \n" + }, + "brands": { + "description": "Array of brands", + "type": "array", + "items": { + "type": "object", + "properties": { + "type": { + "type": "string", + "maxLength": 3, + "description": "This field contains a 3-digit numeric value that indicates the card type within Cybersource eco-system.\nPossible values from BIN Lookup Service (based on availability and enablement):\n- `000`: Unsupported Card Type\n- `001`: Visa\n- `002`: Mastercard\n- `003`: American Express\n- `004`: Discover\n- `005`: Diners Club\n- `007`: JCB\n- `036`: Cartes Bancaire\n- `042`: Maestro\n- `054`: Elo\n- `058`: Carnet\n- `060`: MADA\n- `061`: RuPay\n- `062`: China UnionPay\n- `064`: Prompt Card\n- `067`: Meeza\n- `068`: PayPak\n- `070`: EFTPOS\n- `081`: Jaywan\n- `082`: TPN\n\nGlossary of possible values in the payments ecosystem:\n- `001`: Visa\n- `002`: Mastercard\n- `003`: American Express\n- `004`: Discover\n- `005`: Diners Club\n- `006`: Carte Blanche\n- `007`: JCB\n- `008`: Optima\n- `009`: GE Private Label\n- `010`: Beneficial Private Label\n- `011`: Twinpay Credit Card\n- `012`: Twinpay Debit Card\n- `013`: Walmart\n- `014`: EnRoute\n- `015`: Lowe's Consumer\n- `016`: Home Depot Consumer\n- `017`: MBNA\n- `018`: Dick's Sportwear\n- `019`: Casual Corner\n- `020`: Sears\n- `021`: JAL\n- `023`: Disney Card\n- `024`: Switch/Solo\n- `025`: Sam's Club Consumer\n- `026`: Sam's Club Business\n- `027`: Nico's\n- `028`: Paymentech Bill Me Later\n- `029`: Bebe\n- `030`: Restoration Hardware\n- `031`: Delta Online\n- `032`: Solo\n- `033`: Visa Electron\n- `034`: Dankort\n- `035`: Laser\n- `036`: Cartes Bancaire\n- `037`: Carta Si\n- `040`: UATP\n- `041`: HOUSEHOLD\n- `042`: Maestro\n- `043`: GE MONEY\n- `044`: Korean Cards\n- `045`: Style Cards\n- `046`: J.Crew\n- `047`: Payeasecn eWallet\n- `048`: Payeasecn Bank Transfer\n- `049`: Meijer\n- `050`: Hipercard\n- `051`: Aura\n- `052`: Redecard\n- `053`: Orico Card\n- `054`: Elo\n- `055`: Capital One Private Label\n- `057`: Costco Private Label\n- `058`: Carnet\n- `059`: ValueLink\n- `060`: MADA\n- `061`: RuPay\n- `062`: China UnionPay\n- `063`: Falabella Private Label\n- `064`: Prompt Card\n- `065`: Korean Domestic\n- `066`: Banricompras\n- `067`: Meeza\n- `068`: PayPak\n- `070`: EFTPOS\n- `071`: Codensa\n- `072`: Olimpica\n- `073`: Colsubsidio\n- `074`: Tuya\n- `075`: Sodexo\n- `076`: Naranja\n- `077`: Cabal\n- `078`: DINELCO\n- `079`: PANAL\n- `080`: EPM\n- `081`: Jaywan\n- `082`: TPN\n" + }, + "brandName": { + "type": "string", + "maxLength": 20, + "description": "This field contains the card brand name. \n\nSome of the possible values (not an exhaustive list) are -\n\n - VISA\n - MASTERCARD\n - AMERICAN EXPRESS\n - DISCOVER\n - DINERS CLUB\n - CARTE BLANCHE\n - JCB\n - OPTIMA\n - TWINPAY CREDIT CARD\n - TWINPAY DEBIT CARD\n - WALMART\n - ENROUTE\n - LOWES CONSUMER\n - HOME DEPOT CONSUMER\n - MBNA\n - DICKS SPORTWEAR\n - CASUAL CORNER\n - SEARS\n - JAL\n - DISNEY CARD\n - SWITCH/SOLO\n - SAMS CLUB CONSUMER\n - SAMS CLUB BUSINESS\n - NICOS HOUSE CARD\n - BEBE\n - RESTORATION HARDWARE\n - DELTA ONLINE\n - SOLO\n - VISA ELECTRON\n - DANKORT\n - LASER\n - CARTE BANCAIRE\n - CARTA SI\n - ENCODED ACCOUNT\n - UATP\n - HOUSEHOLD\n - MAESTRO\n - GE CAPITAL\n - KOREAN CARDS\n - STYLE CARDS\n - JCREW\n - MEIJER\n - HIPERCARD\n - AURA\n - REDECARD\n - ORICO HOUSE CARD\n - MADA\n - ELO\n - CAPITAL ONE PRIVATE LABEL\n - CARNET\n - RUPAY\n - CHINA UNION PAY\n - FALABELLA PRIVATE LABEL\n - PROMPTCARD\n - KOREAN DOMESTIC\n - BANRICOMPRAS\n - MEEZA\n - PAYPAK\n - JAYWAN\n - TPN\n" + } + } + } + } + } + }, + "features": { + "type": "object", + "properties": { + "accountFundingSource": { + "type": "string", + "maxLength": 20, + "description": "This field contains the account funding source.\nPossible values:\n - `CREDIT`\n - `DEBIT`\n - `PREPAID`\n - `DEFERRED DEBIT`\n - `CHARGE`\n" + }, + "accountFundingSourceSubType": { + "type": "string", + "maxLength": 20, + "description": "This field contains the type of prepaid card.\nPossible values:\n - `Reloadable`\n - `Non-reloadable`\n" + }, + "cardProduct": { + "type": "string", + "maxLength": 50, + "description": "This field contains the type of issuer product.\nExample values:\n - Visa Classic\n - Visa Signature\n - Visa Infinite\n" + }, + "messageType": { + "type": "string", + "maxLength": 1, + "description": "This field contains the type of BIN based authentication.\nPossible values:\n - `S`: Single Message\n - `D`: Dual Message\n" + }, + "acceptanceLevel": { + "type": "string", + "maxLength": 2, + "description": "This field contains the acceptance level of the PAN.\nPossible values:\n - `0` : Normal\n - `1` : Monitor\n - `2` : Refuse\n - `3` : Not Allowed\n - `4` : Private\n - `5` : Test\n" + }, + "cardPlatform": { + "type": "string", + "maxLength": 20, + "description": "This field contains the type of card platform.\nPossible values:\n - `BUSINESS`\n - `CONSUMER`\n - `CORPORATE`\n - `COMMERCIAL`\n - `GOVERNMENT`\n" + }, + "comboCard": { + "type": "string", + "maxLength": 1, + "description": "This field indicates the type of combo card.\nPossible values:\n - 0 (Not a combo card)\n - 1 (Credit and Prepaid Combo card)\n - 2 (Credit and Debit Combo card)\n - 3 (Prepaid Credit and Prepaid Debit combo card)\n" + }, + "corporatePurchase": { + "type": "boolean", + "description": "This field indicates if the instrument can be used for corporate purchasing. This field is only applicable for American Express cards.\nPossible values:\n - `true`\n - `false`\n" + }, + "healthCard": { + "type": "boolean", + "description": "This field indicates if the BIN is for healthcare (HSA/FSA). Currently, this field is only supported for Visa BINs.\nPossible values:\n - `true`\n - `false`\n" + }, + "sharedBIN": { + "type": "boolean", + "description": "This field indicates if the BIN is shared by multiple issuers\nPossible values:\n - `true`\n - `false`\n" + }, + "posDomesticOnly": { + "type": "boolean", + "description": "This field indicates if the BIN is valid only for POS domestic usage.\nPossible values:\n - `true`\n - `false`\n" + }, + "gamblingAllowed": { + "type": "boolean", + "description": "This field indicates if gambling transactions are allowed on the BIN.\nPossible values:\n - `true`\n - `false`\n" + }, + "commercialCardLevel2": { + "type": "boolean", + "description": "This field indicates if a transaction on the instrument qualifies for level 2 interchange rates.\nPossible values:\n - `true`\n - `false`\n" + }, + "commercialCardLevel3": { + "type": "boolean", + "description": "This field indicates if a transaction on the instrument qualifies for level 3 interchange rates.\nPossible values:\n - `true`\n - `false`\n" + }, + "exemptBIN": { + "type": "boolean", + "description": "This field indicates if a transaction on the instrument qualifies for government exempt interchange fee.\nPossible values:\n - `true`\n - `false`\n" + }, + "accountLevelManagement": { + "type": "boolean", + "description": "This field indicates if the BIN participates in Account Level Management (ALM).\nPossible values:\n - `true`\n - `false`\n" + }, + "onlineGamblingBlock": { + "type": "boolean", + "description": "This field indicates if online gambling is blocked on the BIN.\nPossible values:\n - `true`\n - `false`\n" + }, + "autoSubstantiation": { + "type": "boolean", + "description": "This field indicates if auto-substantiation is enabled on the BIN.\nPossible values:\n - `true`\n - `false`\n" + }, + "flexCredential": { + "type": "boolean", + "description": "This field indicates if the instrument is a flex credential.\nPossible values:\n - `true`\n - `false`\n" + }, + "productId": { + "type": "string", + "description": "This field contains the Visa-assigned product identifier associated with the BIN. This field is only supported for Visa BINs.\nExample values:\n - Q4\n - P\n - AX\n" + }, + "productIdSubtype": { + "type": "string", + "description": "This field contains the Visa-assigned product subtype identifier associated with the BIN. This field is only supported for Visa BINs.\nExample values:\n - BB\n - EX\n - L2\n - C2\n" + }, + "threeDSSupport": { + "type": "boolean", + "description": "This field indicates if the payment instrument supports 3D Secure authentication.\nPossible values:\n - `true`\n - `false`\n" + }, + "siEligible": { + "type": "boolean", + "description": "This field indicates if the payment instrument is eligible for Standing Instructions (recurring payments).\nPossible values:\n - `true`\n - `false`\n" + }, + "emiEligible": { + "type": "boolean", + "description": "This field indicates if the card is eligible for Equated Monthly Installments (EMI).\nPossible values:\n - `true`\n - `false`\n" + } + } + }, + "network": { + "type": "object", + "properties": { + "id": { + "type": "string", + "description": "This field contains a code that identifies the network.\n[List of Network ID and Sharing Group Code](https://developer.visa.com/request_response_codes#network_id_and_sharing_group_code)\n" + } + } + } + } + }, + "issuerInformation": { + "type": "object", + "properties": { + "name": { + "type": "string", + "maxLength": 200, + "description": "This field contains the issuer name.\n" + }, + "country": { + "type": "string", + "maxLength": 2, + "description": "This field contains [2-character ISO Country Codes](http://apps.cybersource.com/library/documentation/sbc/quickref/countries_alpha_list.pdf) for the issuer.\n" + }, + "binLength": { + "type": "string", + "maxLength": 2, + "description": "This field contains the length of the BIN. In some cases, this field may be absent if we do not receive accurate information from the network source.\n" + }, + "accountPrefix": { + "type": "string", + "maxLength": 8, + "description": "This field contains the first 6 to 8 digits of a primary account number (PAN). The length of the field is determined by [PCI-DSS standards for truncation](https://pcissc.secure.force.com/faq/articles/Frequently_Asked_Question/What-are-acceptable-formats-for-truncation-of-primary-account-numbers).In case the input is not the full intrument (PAN or TOKEN), this field may be truncated.\n" + }, + "phoneNumber": { + "type": "string", + "maxLength": 50, + "description": "This field contains the customer service phone number for the issuer.\n" + } + } + } + } + } + } + } + } + } + } + } + } + } + } + ], + "tags": [ + "Tokenize" + ], + "operationId": "tokenize", + "x-devcenter-metaData": { + "categoryTag": "Token_Management", + "developerGuides": "https://developer.cybersource.com/docs/cybs/en-us/tms/developer/all/rest/tms-developer/intro.html", + "mleForRequest": "mandatory" + }, + "consumes": [ + "application/json;charset=utf-8" + ], + "produces": [ + "application/json;charset=utf-8" + ], + "responses": { + "200": { + "description": "Returns the responses from the orchestrated API requests.", + "headers": { + "v-c-correlation-id": { + "description": "The mandatory correlation Id passed by upstream (calling) system.", + "type": "string" + }, + "uniqueTransactionID": { + "description": "A globally-unique Id associated with your request.", + "type": "string" + } + }, + "schema": { + "type": "object", + "properties": { + "responses": { + "type": "array", + "items": { + "type": "object", + "properties": { + "resource": { + "type": "string", + "description": "TMS token type associated with the response.\n\nPossible Values:\n- customer\n- paymentInstrument\n- instrumentIdentifier\n- shippingAddress\n- tokenizedCard\n", + "example": "customer" + }, + "httpStatus": { + "type": "integer", + "format": "int32", + "description": "Http status associated with the response.\n", + "example": 201 + }, + "id": { + "type": "string", + "description": "TMS token id associated with the response.\n", + "example": "351A67733325454AE0633F36CF0A9420" + }, + "errors": { + "type": "array", + "items": { + "type": "object", + "properties": { + "type": { + "type": "string", + "description": "The type of error.\n\nPossible Values:\n - invalidHeaders\n - missingHeaders\n - invalidFields\n - missingFields\n - unsupportedPaymentMethodModification\n - invalidCombination\n - forbidden\n - notFound\n - instrumentIdentifierDeletionError\n - tokenIdConflict\n - conflict\n - notAvailable\n - serverError\n - notAttempted\n\nA \"notAttempted\" error type is returned when the request cannot be processed because it depends on the existence of another token that does not exist. For example, creating a shipping address token is not attempted if the required customer token is missing.\n", + "example": "notAttempted" + }, + "message": { + "type": "string", + "description": "The detailed message related to the type.", + "example": "Creation not attempted due to customer token creation failure" + }, + "details": { + "type": "array", + "readOnly": true, + "items": { + "type": "object", + "readOnly": true, + "properties": { + "name": { + "type": "string", + "readOnly": true, + "description": "The name of the field that caused the error.", + "example": "address1" + }, + "location": { + "type": "string", + "readOnly": true, + "description": "The location of the field that caused the error.", + "example": "billTo" + } + } + } + } + } + } + } + } + } + } + } + } + }, + "400": { + "description": "Bad Request: e.g. A required header value could be missing.", + "headers": { + "v-c-correlation-id": { + "description": "The mandatory correlation Id passed by upstream (calling) system.", + "type": "string" + }, + "uniqueTransactionID": { + "description": "A globally unique Id associated with your request.", + "type": "string" + } + }, + "schema": { + "type": "object", + "readOnly": true, + "properties": { + "errors": { + "type": "array", + "readOnly": true, + "items": { + "type": "object", + "readOnly": true, + "properties": { + "type": { + "type": "string", + "readOnly": true, + "description": "The type of error.\n\nPossible Values:\n - invalidHeaders\n - missingHeaders\n - invalidFields\n - missingFields\n - unsupportedPaymentMethodModification\n - invalidCombination\n" + }, + "message": { + "type": "string", + "readOnly": true, + "description": "The detailed message related to the type." + }, + "details": { + "type": "array", + "readOnly": true, + "items": { + "type": "object", + "readOnly": true, + "properties": { + "name": { + "type": "string", + "readOnly": true, + "description": "The name of the field that caused the error." + }, + "location": { + "type": "string", + "readOnly": true, + "description": "The location of the field that caused the error." + } + } + } + } + } + } + } + } + }, + "examples": { + "Invalid Customer request body": { + "errors": [ + { + "type": "invalidRequest", + "message": "Invalid HTTP Body" + } + ] + } + } + }, + "403": { + "description": "Forbidden: e.g. The profile might not have permission to perform the operation.", + "headers": { + "v-c-correlation-id": { + "description": "The mandatory correlation Id passed by upstream (calling) system.", + "type": "string" + }, + "uniqueTransactionID": { + "description": "A globally unique Id associated with your request.", + "type": "string" + } + }, + "schema": { + "type": "object", + "readOnly": true, + "properties": { + "errors": { + "type": "array", + "readOnly": true, + "items": { + "type": "object", + "readOnly": true, + "properties": { + "type": { + "type": "string", + "readOnly": true, + "description": "The type of error.\n\nPossible Values:\n - forbidden\n - declined\n" + }, + "message": { + "type": "string", + "readOnly": true, + "description": "The detailed message related to the type." + } + } + } + } + } + }, + "examples": { + "application/json": { + "errors": [ + { + "type": "forbidden", + "message": "Request not permitted" + } + ] + } + } + }, + "424": { + "description": "Failed Dependency: e.g. The profile represented by the profile-id may not exist or the profile-id was entered incorrectly.", + "headers": { + "v-c-correlation-id": { + "description": "The mandatory correlation Id passed by upstream (calling) system.", + "type": "string" + }, + "uniqueTransactionID": { + "description": "A globally unique Id associated with your request.", + "type": "string" + } + }, + "schema": { + "type": "object", + "readOnly": true, + "properties": { + "errors": { + "type": "array", + "readOnly": true, + "items": { + "type": "object", + "readOnly": true, + "properties": { + "type": { + "type": "string", + "readOnly": true, + "description": "The type of error.\n\nPossible Values:\n - notFound\n" + }, + "message": { + "type": "string", + "readOnly": true, + "description": "The detailed message related to the type." + } + } + } + } + } + }, + "examples": { + "application/json": { + "errors": [ + { + "type": "notFound", + "message": "Profile not found" + } + ] + } + } + }, + "500": { + "description": "Unexpected error.", + "headers": { + "v-c-correlation-id": { + "description": "The mandatory correlation Id passed by upstream (calling) system.", + "type": "string" + }, + "uniqueTransactionID": { + "description": "A globally unique Id associated with your request.", + "type": "string" + } + }, + "examples": { + "application/json": { + "errors": [ + { + "type": "serverError", + "message": "Internal server error" + } + ] + } + }, + "schema": { + "type": "object", + "readOnly": true, + "properties": { + "errors": { + "type": "array", + "readOnly": true, + "items": { + "type": "object", + "readOnly": true, + "properties": { + "type": { + "type": "string", + "readOnly": true, + "description": "The type of error.\n\nPossible Values:\n - internalError\n" + }, + "message": { + "type": "string", + "readOnly": true, + "description": "The detailed message related to the type." + } + } + } + } + } + } + } + }, + "x-example": { + "example0": { + "summary": "Create Complete Customer & Network Token using a Card", + "value": { + "processingInformation": { + "actionList": [ + "TOKEN_CREATE" + ], + "actionTokenTypes": [ + "customer", + "shippingAddress", + "paymentInstrument", + "instrumentIdentifier" + ] + }, + "tokenInformation": { + "customer": { + "buyerInformation": { + "merchantCustomerID": "Your customer identifier", + "email": "test@cybs.com" + }, + "clientReferenceInformation": { + "code": "TC50171_3" + }, + "merchantDefinedInformation": [ + { + "name": "data1", + "value": "Your customer data" + } + ] + }, + "shippingAddress": { + "default": "true", + "shipTo": { + "firstName": "John", + "lastName": "Doe", + "company": "CyberSource", + "address1": "1 Market St", + "locality": "San Francisco", + "administrativeArea": "CA", + "postalCode": "94105", + "country": "US", + "email": "test@cybs.com", + "phoneNumber": "4158880000" + } + }, + "paymentInstrument": { + "default": "true", + "card": { + "expirationMonth": "12", + "expirationYear": "2031", + "type": "001" + }, + "billTo": { + "firstName": "John", + "lastName": "Doe", + "company": "CyberSource", + "address1": "1 Market St", + "locality": "San Francisco", + "administrativeArea": "CA", + "postalCode": "94105", + "country": "US", + "email": "test@cybs.com", + "phoneNumber": "4158880000" + } + }, + "instrumentIdentifier": { + "type": "enrollable card", + "card": { + "number": "4622943123116478", + "expirationMonth": "12", + "expirationYear": "2026" + } + } + } + } + }, + "example1": { + "summary": "Create Customer Payment Instrument & Network Token using a Card", + "value": { + "processingInformation": { + "actionList": [ + "TOKEN_CREATE" + ], + "actionTokenTypes": [ + "paymentInstrument", + "instrumentIdentifier" + ] + }, + "tokenInformation": { + "customer": { + "id": "" + }, + "paymentInstrument": { + "default": "true", + "card": { + "expirationMonth": "12", + "expirationYear": "2031", + "type": "001" + }, + "billTo": { + "firstName": "John", + "lastName": "Doe", + "company": "CyberSource", + "address1": "1 Market St", + "locality": "San Francisco", + "administrativeArea": "CA", + "postalCode": "94105", + "country": "US", + "email": "test@cybs.com", + "phoneNumber": "4158880000" + } + }, + "instrumentIdentifier": { + "type": "enrollable card", + "card": { + "number": "4622943123116478", + "expirationMonth": "12", + "expirationYear": "2026" + } + } + } + } + }, + "example2": { + "summary": "Create Instrument Identifier & Network Token using a Card", + "value": { + "processingInformation": { + "actionList": [ + "TOKEN_CREATE" + ], + "actionTokenTypes": [ + "instrumentIdentifier" + ] + }, + "tokenInformation": { + "instrumentIdentifier": { + "type": "enrollable card", + "card": { + "number": "4622943123116478", + "expirationMonth": "12", + "expirationYear": "2026" + } + } + } + } + }, + "example3": { + "summary": "Create Complete Customer using a Transient Token", + "value": { + "processingInformation": { + "actionList": [ + "TOKEN_CREATE" + ], + "actionTokenTypes": [ + "customer", + "shippingAddress", + "paymentInstrument", + "instrumentIdentifier" + ] + }, + "tokenInformation": { + "transientTokenJwt": "", + "customer": { + "buyerInformation": { + "merchantCustomerID": "Your customer identifier", + "email": "test@cybs.com" + }, + "clientReferenceInformation": { + "code": "TC50171_3" + }, + "merchantDefinedInformation": [ + { + "name": "data1", + "value": "Your customer data" + } + ] + }, + "shippingAddress": { + "default": "true", + "shipTo": { + "firstName": "John", + "lastName": "Doe", + "company": "CyberSource", + "address1": "1 Market St", + "locality": "San Francisco", + "administrativeArea": "CA", + "postalCode": "94105", + "country": "US", + "email": "test@cybs.com", + "phoneNumber": "4158880000" + } + }, + "paymentInstrument": { + "default": "true", + "card": { + "expirationMonth": "12", + "expirationYear": "2031", + "type": "001" + }, + "billTo": { + "firstName": "John", + "lastName": "Doe", + "company": "CyberSource", + "address1": "1 Market St", + "locality": "San Francisco", + "administrativeArea": "CA", + "postalCode": "94105", + "country": "US", + "email": "test@cybs.com", + "phoneNumber": "4158880000" + } + } + } + } + }, + "example4": { + "summary": "Create Instrument Identifier using a Transient Token", + "value": { + "processingInformation": { + "actionList": [ + "TOKEN_CREATE" + ], + "actionTokenTypes": [ + "instrumentIdentifier" + ] + }, + "tokenInformation": { + "transientTokenJwt": "" + } + } + } + } + } + }, + "/tms/v2/customers": { + "post": { + "summary": "Create a Customer", + "description": "| | | |\n| --- | --- | --- |\n|**Customers**
A Customer represents your tokenized customer information.
You should associate the Customer Id with the customer account on your systems.
A Customer can have one or more [Payment Instruments](#token-management_customer-payment-instrument_create-a-customer-payment-instrumentl) or [Shipping Addresses](#token-management_customer-shipping-address_create-a-customer-shipping-address) with one allocated as the Customers default.

**Creating a Customer**
It is recommended you [create a Customer via a Payment Authorization](#payments_payments_process-a-payment_samplerequests-dropdown_authorization-with-token-create_authorization-with-customer-token-creation_liveconsole-tab-request-body), this can be for a zero amount.
The Customer will be created with a Payment Instrument and Shipping Address.
You can also [add additional Payment Instruments to a Customer via a Payment Authorization](#payments_payments_process-a-payment_samplerequests-dropdown_authorization-with-token-create_authorization-create-default-payment-instrument-shipping-address-for-existing-customer_liveconsole-tab-request-body).
In Europe: You should perform Payer Authentication alongside the Authorization.|      |**Payment Network Tokens**
Network tokens perform better than regular card numbers and they are not necessarily invalidated when a cardholder loses their card, or it expires.
A Payment Network Token will be automatically created and used in future payments if you are enabled for the service.
A Payment Network Token can also be [provisioned for an existing Instrument Identifier](#token-management_instrument-identifier_enroll-an-instrument-identifier-for-payment-network-token).
For more information about Payment Network Tokens see the Developer Guide.

**Payments with Customers**
To perform a payment with the Customers default details specify the [Customer Id in the payments request](#payments_payments_process-a-payment_samplerequests-dropdown_authorization-using-tokens_authorization-with-customer-token-id_liveconsole-tab-request-body).
To perform a payment with a particular Payment Instrument or Shipping Address
specify the [Payment Instrument or Shipping Address Ids in the payments request](#payments_payments_process-a-payment_samplerequests-dropdown_authorization-using-tokens_authorization-with-customer-payment-instrument-and-shipping-address-token-id_liveconsole-tab-request-body).\nThe availability of API features for a merchant may depend on the portfolio configuration and may need to be enabled at the portfolio level before they can be added to merchant accounts.\n", + "parameters": [ + { + "name": "profile-id", + "in": "header", + "description": "The Id of a profile containing user specific TMS configuration.", + "required": false, + "type": "string", + "minLength": 36, + "maxLength": 36, + "x-hide-field": true + }, + { + "name": "postCustomerRequest", + "in": "body", + "required": true, + "schema": { + "type": "object", + "properties": { + "_links": { + "type": "object", + "readOnly": true, + "properties": { + "self": { + "type": "object", + "readOnly": true, + "properties": { + "href": { + "type": "string", + "readOnly": true, + "description": "Link to the Customer.\n", + "example": "/tms/v2/customers/D9F340DD3DB9C276E053A2598D0A41A3" + } + } + }, + "paymentInstruments": { + "type": "object", + "readOnly": true, + "properties": { + "href": { + "type": "string", + "readOnly": true, + "description": "Link to the Customers Payment Instruments.\n", + "example": "/tms/v2/customers/D9F340DD3DB9C276E053A2598D0A41A3/payment-instruments" + } + } + }, + "shippingAddress": { + "type": "object", + "readOnly": true, + "properties": { + "href": { + "type": "string", + "readOnly": true, + "description": "Link to the Customers Shipping Addresses.\n", + "example": "/tms/v2/customers/D9F340DD3DB9C276E053A2598D0A41A3/shipping-addresses" + } + } + } + } + }, + "id": { + "type": "string", + "minLength": 1, + "maxLength": 32, + "description": "The Id of the Customer Token." + }, + "objectInformation": { + "type": "object", + "properties": { + "title": { + "type": "string", + "description": "Name or title of the customer.\n", + "maxLength": 60 + }, + "comment": { + "type": "string", + "description": "Comments that you can make about the customer.\n", + "maxLength": 150 + } + } + }, + "buyerInformation": { + "type": "object", + "properties": { + "merchantCustomerID": { + "type": "string", + "description": "Your identifier for the customer.\n", + "maxLength": 100 + }, + "email": { + "type": "string", + "maxLength": 255, + "description": "Customer's primary email address, including the full domain name.\n" + } + } + }, + "clientReferenceInformation": { + "type": "object", + "properties": { + "code": { + "type": "string", + "description": "Client-generated order reference or tracking number.\n", + "maxLength": 50 + } + } + }, + "merchantDefinedInformation": { + "type": "array", + "description": "Object containing the custom data that the merchant defines.\n", + "items": { + "type": "object", + "properties": { + "name": { + "type": "string", + "description": "The number you assign as the name for your merchant-defined data or secure field. Possible Values are data1 to data4 and sensitive1 to sensitive4\n\nFor example, to set the name for merchant-defined data 2 field, you would reference merchantDefinedInformation[x].name as data2\nPossible Values:\n- data1\n- data2\n- data3\n- data4\n- sensitive1\n- sensitive2\n- sensitive3\n- sensitive4\n" + }, + "value": { + "type": "string", + "description": "The value you assign for your merchant-defined data field.\n\n**Warning** Merchant-defined data fields are not intended to and must not be used to capture personally identifying information. Accordingly, merchants are prohibited from capturing, obtaining, and/or transmitting any personally identifying information in or via the merchant-defined data fields. Personally identifying information includes, but is not\nlimited to, address, credit card number, social security number, driver's license number, state-issued identification number, passport number, and card verification numbers (CVV,\nCVC2, CVV2, CID, CVN). In the event it is discovered a merchant is capturing and/or transmitting personally identifying information via the merchant-defined data fields, whether or not intentionally, the merchant's account will immediately be suspended, which will result in a rejection of any and all transaction requests submitted by the merchant after the point of suspension.\n", + "maxLength": 100 + } + } + } + }, + "defaultPaymentInstrument": { + "type": "object", + "properties": { + "id": { + "type": "string", + "description": "The Id of the Customers default Payment Instrument\n" + } + } + }, + "defaultShippingAddress": { + "type": "object", + "properties": { + "id": { + "type": "string", + "description": "The Id of the Customers default Shipping Address\n" + } + } + }, + "metadata": { + "type": "object", + "readOnly": true, + "properties": { + "creator": { + "type": "string", + "readOnly": true, + "description": "The creator of the Customer.\n" + } + } + }, + "_embedded": { + "type": "object", + "readOnly": true, + "description": "Additional resources for the Customer.\n", + "properties": { + "defaultPaymentInstrument": { + "readOnly": true, + "type": "object", + "properties": { + "_links": { + "type": "object", + "readOnly": true, + "properties": { + "self": { + "type": "object", + "readOnly": true, + "properties": { + "href": { + "type": "string", + "readOnly": true, + "description": "Link to the Payment Instrument.\n", + "example": "/tms/v2/customers/D9F340DD3DB9C276E053A2598D0A41A3/payment-instruments" + } + } + }, + "customer": { + "type": "object", + "readOnly": true, + "properties": { + "href": { + "type": "string", + "readOnly": true, + "description": "Link to the Customer.\n", + "example": "/tms/v2/customers/D9F340DD3DB9C276E053A2598D0A41A3" + } + } + } + } + }, + "id": { + "type": "string", + "minLength": 1, + "maxLength": 32, + "description": "The Id of the Payment Instrument Token." + }, + "object": { + "type": "string", + "readOnly": true, + "example": "paymentInstrument", + "description": "The type.\n\nPossible Values:\n- paymentInstrument\n" + }, + "default": { + "type": "boolean", + "description": "Flag that indicates whether customer payment instrument is the dafault.\nPossible Values:\n - `true`: Payment instrument is customer's default.\n - `false`: Payment instrument is not customer's default.\n" + }, + "state": { + "type": "string", + "readOnly": true, + "example": "ACTIVE", + "description": "Issuers state for the card number.\nPossible Values:\n- ACTIVE\n- CLOSED : The account has been closed.\n" + }, + "type": { + "type": "string", + "readOnly": true, + "description": "The type of Payment Instrument.\nPossible Values:\n- cardHash\n" + }, + "bankAccount": { + "type": "object", + "properties": { + "type": { + "type": "string", + "maxLength": 18, + "description": "Account type.\n\nPossible Values:\n - checking : C\n - general ledger : G This value is supported only on Wells Fargo ACH\n - savings : S (U.S. dollars only)\n - corporate checking : X (U.S. dollars only)\n" + } + } + }, + "card": { + "type": "object", + "properties": { + "expirationMonth": { + "type": "string", + "maxLength": 2, + "description": "Two-digit month in which the payment card expires.\n\nFormat: `MM`.\n\nPossible Values: `01` through `12`.\n" + }, + "expirationYear": { + "type": "string", + "maxLength": 4, + "description": "Four-digit year in which the credit card expires.\n\nFormat: `YYYY`.\n" + }, + "type": { + "type": "string", + "description": "Value that indicates the card type. Possible Values v2 : v1:\n * 001 : visa\n * 002 : mastercard - Eurocard\u2014European regional brand of Mastercard\n * 003 : american express\n * 004 : discover\n * 005 : diners club\n * 006 : carte blanche\n * 007 : jcb\n * 008 : optima\n * 011 : twinpay credit\n * 012 : twinpay debit\n * 013 : walmart\n * 014 : enRoute\n * 015 : lowes consumer\n * 016 : home depot consumer\n * 017 : mbna\n * 018 : dicks sportswear\n * 019 : casual corner\n * 020 : sears\n * 021 : jal\n * 023 : disney\n * 024 : maestro uk domestic\n * 025 : sams club consumer\n * 026 : sams club business\n * 028 : bill me later\n * 029 : bebe\n * 030 : restoration hardware\n * 031 : delta online \u2014 use this value only for Ingenico ePayments. For other processors, use 001 for all Visa card types.\n * 032 : solo\n * 033 : visa electron\n * 034 : dankort\n * 035 : laser\n * 036 : carte bleue \u2014 formerly Cartes Bancaires\n * 037 : carta si\n * 038 : pinless debit\n * 039 : encoded account\n * 040 : uatp\n * 041 : household\n * 042 : maestro international\n * 043 : ge money uk\n * 044 : korean cards\n * 045 : style\n * 046 : jcrew\n * 047 : payease china processing ewallet\n * 048 : payease china processing bank transfer\n * 049 : meijer private label\n * 050 : hipercard \u2014 supported only by the Comercio Latino processor.\n * 051 : aura \u2014 supported only by the Comercio Latino processor.\n * 052 : redecard\n * 054 : elo \u2014 supported only by the Comercio Latino processor.\n * 055 : capital one private label\n * 056 : synchrony private label\n * 057 : costco private label\n * 060 : mada\n * 062 : china union pay\n * 063 : falabella private label\n" + }, + "issueNumber": { + "type": "string", + "maxLength": 2, + "description": "Number of times a Maestro (UK Domestic) card has been issued to the account holder. The card might or might not have an issue number. The number can consist of one or two digits, and the first digit might be a zero. When you include this value in your request, include exactly what is printed on the card. A value of 2 is different than a value of 02. Do not include the field, even with a blank value, if the card is not a Maestro (UK Domestic) card.\n\n**Note** The issue number is not required for Maestro (UK Domestic) transactions.\n" + }, + "startMonth": { + "type": "string", + "maxLength": 2, + "description": "Month of the start of the Maestro (UK Domestic) card validity period. Do not include the field, even with a blank value, if the card is not a Maestro (UK Domestic) card. `Format: MM`.\nPossible Values: 01 through 12.\n\n**Note** The start date is not required for Maestro (UK Domestic) transactions.\n" + }, + "startYear": { + "type": "string", + "maxLength": 4, + "description": "Year of the start of the Maestro (UK Domestic) card validity period. Do not include the field, even with a blank value, if the card is not a Maestro (UK Domestic) card. `Format: YYYY`.\n\n**Note** The start date is not required for Maestro (UK Domestic) transactions.\n" + }, + "useAs": { + "type": "string", + "example": "pinless debit", + "description": "'Payment Instrument was created / updated as part of a pinless debit transaction.'\n" + }, + "sdkHashValue": { + "type": "string", + "minLength": 32, + "maxLength": 34, + "readOnly": true, + "description": "Hash value representing the card.\n" + }, + "tokenizedInformation": { + "type": "object", + "properties": { + "requestorID": { + "type": "string", + "maxLength": 11, + "description": "Value that identifies your business and indicates that the cardholder's account number is tokenized. This value\nis assigned by the token service provider and is unique within the token service provider's database.\n\n**Note** This field is supported only through **VisaNet** and **FDC Nashville Global**.\n" + }, + "transactionType": { + "type": "string", + "maxLength": 1, + "description": "Type of transaction that provided the token data. This value does not specify the token service provider; it\nspecifies the entity that provided you with information about the token.\n\nSet the value for this field to 1. An application on the customer's mobile device provided the token data.\n" + } + } + } + } + }, + "buyerInformation": { + "type": "object", + "properties": { + "companyTaxID": { + "type": "string", + "maxLength": 9, + "description": "Company's tax identifier. This is only used for eCheck service.\n" + }, + "currency": { + "type": "string", + "maxLength": 3, + "description": "Currency used for the order. Use the three-character I[ISO Standard Currency Codes.](http://apps.cybersource.com/library/documentation/sbc/quickref/currencies.pdf)\n\nFor an authorization reversal (`reversalInformation`) or a capture (`processingOptions.capture` is set to `true`), you must use the same currency that you used in your payment authorization request.\n\n#### DCC for First Data\nYour local currency. For details, see the `currency` field description in [Dynamic Currency Conversion For First Data Using the SCMP API](http://apps.cybersource.com/library/documentation/dev_guides/DCC_FirstData_SCMP/DCC_FirstData_SCMP_API.pdf).\n# For details about currency as used in partial authorizations, see \"Features for Debit Cards and Prepaid Cards\" in the [Credit Card Services Using the SCMP API Guide](https://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html/)\n" + }, + "dateOfBirth": { + "type": "string", + "format": "date", + "example": "1960-12-30", + "description": "Date of birth of the customer. Format: YYYY-MM-DD\n" + }, + "personalIdentification": { + "type": "array", + "items": { + "type": "object", + "properties": { + "id": { + "type": "string", + "maxLength": 26, + "description": "The value of the identification type.\n" + }, + "type": { + "type": "string", + "description": "The type of the identification.\n\nPossible Values:\n - driver license\n" + }, + "issuedBy": { + "type": "object", + "properties": { + "administrativeArea": { + "type": "string", + "description": "The State or province where the customer's driver's license was issued.\n\nUse the two-character State, Province, and Territory Codes for the United States and Canada.\n", + "maxLength": 20 + } + } + } + } + } + } + } + }, + "billTo": { + "type": "object", + "properties": { + "firstName": { + "type": "string", + "maxLength": 60, + "description": "Customer's first name. This name must be the same as the name on the card.\n" + }, + "lastName": { + "type": "string", + "maxLength": 60, + "description": "Customer's last name. This name must be the same as the name on the card.\n" + }, + "company": { + "type": "string", + "maxLength": 60, + "description": "Name of the customer's company.\n" + }, + "address1": { + "type": "string", + "maxLength": 60, + "description": "Payment card billing street address as it appears on the credit card issuer's records.\n" + }, + "address2": { + "type": "string", + "maxLength": 60, + "description": "Additional address information.\n" + }, + "locality": { + "type": "string", + "maxLength": 50, + "description": "Payment card billing city.\n" + }, + "administrativeArea": { + "type": "string", + "maxLength": 20, + "description": "State or province of the billing address. Use the State, Province, and Territory Codes for the United States\nand Canada.\n" + }, + "postalCode": { + "type": "string", + "maxLength": 10, + "description": "Postal code for the billing address. The postal code must consist of 5 to 9 digits.\n\nWhen the billing country is the U.S., the 9-digit postal code must follow this format:\n[5 digits][dash][4 digits]\n\n**Example** `12345-6789`\n\nWhen the billing country is Canada, the 6-digit postal code must follow this format:\n[alpha][numeric][alpha][space][numeric][alpha][numeric]\n\n**Example** `A1B 2C3`\n" + }, + "country": { + "type": "string", + "maxLength": 2, + "description": "Payment card billing country. Use the two-character ISO Standard Country Codes.\n" + }, + "email": { + "type": "string", + "maxLength": 255, + "description": "Customer's email address, including the full domain name.\n" + }, + "phoneNumber": { + "type": "string", + "maxLength": 15, + "description": "Customer's phone number.\n" + } + } + }, + "processingInformation": { + "type": "object", + "title": "tmsPaymentInstrumentProcessingInfo", + "properties": { + "billPaymentProgramEnabled": { + "type": "boolean", + "description": "Flag that indicates that this is a payment for a bill or for an existing contractual loan.\nPossible Values:\n- `true`: Bill payment or loan payment.\n- `false` (default): Not a bill payment or loan payment.\n# For processor-specific details, see the `bill_payment` field description in [Credit Card Services Using the SCMP API.](https://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html/)\n" + }, + "bankTransferOptions": { + "type": "object", + "properties": { + "SECCode": { + "type": "string", + "maxLength": 3, + "description": "Specifies the authorization method for the transaction.\n\n#### TeleCheck\nPossible Values:\n- `ARC`: account receivable conversion\n- `CCD`: corporate cash disbursement\n- `POP`: point of purchase conversion\n- `PPD`: prearranged payment and deposit entry\n- `TEL`: telephone-initiated entry\n- `WEB`: internet-initiated entry\n\n# For details, see `ecp_sec_code` field description in the [Electronic Check Services Using the SCMP API Guide.](https://apps.cybersource.com/library/documentation/dev_guides/EChecks_SCMP_API/html/)\n" + } + } + } + } + }, + "merchantInformation": { + "type": "object", + "title": "TmsMerchantInformation", + "properties": { + "merchantDescriptor": { + "type": "object", + "properties": { + "alternateName": { + "type": "string", + "description": "Alternate contact information for your business,such as an email address or URL.\nThis value might be displayed on the cardholder's statement.\nWhen you do not include this value in your capture or credit request, the merchant URL from your CyberSource account is used.\nImportant This value must consist of English characters\n", + "maxLength": 13 + } + } + } + } + }, + "instrumentIdentifier": { + "type": "object", + "properties": { + "id": { + "type": "string", + "minLength": 12, + "maxLength": 32, + "description": "The Id of the Instrument Identifier linked to the Payment Instrument.\n" + } + } + }, + "metadata": { + "type": "object", + "readOnly": true, + "properties": { + "creator": { + "type": "string", + "readOnly": true, + "description": "The creator of the Payment Instrument.\n" + } + } + }, + "_embedded": { + "type": "object", + "readOnly": true, + "description": "Additional resources for the Payment Instrument.\n", + "properties": { + "instrumentIdentifier": { + "readOnly": true, + "title": "tmsEmbeddedInstrumentIdentifier", + "type": "object", + "properties": { + "_links": { + "type": "object", + "readOnly": true, + "properties": { + "self": { + "type": "object", + "readOnly": true, + "properties": { + "href": { + "type": "string", + "readOnly": true, + "description": "Link to the Instrument Identifier.\n", + "example": "tms/v1/instrumentidentifiers/7010000000016241111" + } + } + }, + "paymentInstruments": { + "type": "object", + "readOnly": true, + "properties": { + "href": { + "type": "string", + "readOnly": true, + "description": "Link to the Instrument Identifiers Payment Instruments.\n", + "example": "tms/v1/instrumentidentifiers/7010000000016241111/paymentinstruments" + } + } + } + } + }, + "id": { + "type": "string", + "description": "The Id of the Instrument Identifier Token.\n" + }, + "object": { + "type": "string", + "readOnly": true, + "example": "instrumentIdentifier", + "description": "The type.\n\nPossible Values:\n- instrumentIdentifier\n" + }, + "state": { + "type": "string", + "readOnly": true, + "example": "ACTIVE", + "description": "Issuers state for the card number.\nPossible Values:\n- ACTIVE\n- CLOSED : The account has been closed.\n" + }, + "type": { + "type": "string", + "description": "The type of Instrument Identifier.\nPossible Values:\n- enrollable card\n- enrollable token\n" + }, + "source": { + "type": "string", + "description": "Source of the card details.\nPossible Values:\n- CONTACTLESS_TAP\n" + }, + "tokenProvisioningInformation": { + "type": "object", + "properties": { + "consumerConsentObtained": { + "type": "boolean", + "description": "Flag that indicates whether the user consented to the tokenization of their credentials. Required for card network tokenization in certain markets, such as India.\nPossible Values:\n- `true`: Consumer has consented to tokenization of their credentials.\n- `false`: Consumer has not consented to tokenization of their credentials.\n" + }, + "multiFactorAuthenticated": { + "type": "boolean", + "description": "Flag that indicates whether AFA (Additional Factor of Authentication) for the PAN was completed. Required for card network tokenization in certain markets, such as India.\nPossible Values:\n- `true`: Consumer has been authenticated by the issuer.\n- `false`: Consumer has not been authenticated by the issuer.\n" + } + } + }, + "card": { + "type": "object", + "description": "The expirationMonth, expirationYear and securityCode is sent to the issuer as part of network token enrollment and is not stored under the Instrument Identifier.\n", + "properties": { + "number": { + "type": "string", + "minLength": 12, + "maxLength": 19, + "description": "The customer's payment card number, also known as the Primary Account Number (PAN). You can also use this field\nfor encoded account numbers.\n" + }, + "expirationMonth": { + "type": "string", + "maxLength": 2, + "description": "Two-digit month in which the payment card expires.\n\nFormat: `MM`.\n\nPossible Values: `01` through `12`.\n" + }, + "expirationYear": { + "type": "string", + "maxLength": 4, + "description": "Four-digit year in which the credit card expires.\n\nFormat: `YYYY`.\n" + }, + "securityCode": { + "type": "string", + "maxLength": 4, + "description": "Card Verification Code. \nThis value is sent to the issuer to support the approval of a network token provision.\nIt is not persisted against the Instrument Identifier.\n" + } + } + }, + "pointOfSaleInformation": { + "type": "object", + "required": [ + "emvTags" + ], + "properties": { + "emvTags": { + "type": "array", + "minItems": 1, + "maxItems": 50, + "items": { + "type": "object", + "required": [ + "tag", + "value", + "source" + ], + "properties": { + "tag": { + "type": "string", + "minLength": 1, + "maxLength": 10, + "pattern": "^[0-9A-Fa-f]{1,10}$", + "description": "EMV tag, 1-10 hex characters." + }, + "value": { + "type": "string", + "minLength": 1, + "maxLength": 64, + "description": "EMV tag value, 1-64 characters." + }, + "source": { + "type": "string", + "description": "Source of the tag.\n\nPossible Values:\n - CARD\n - TERMINAL\n" + } + }, + "example": { + "tag": "5A", + "value": "4111111111111111", + "source": "CARD" + } + } + } + } + }, + "bankAccount": { + "type": "object", + "properties": { + "number": { + "type": "string", + "maxLength": 17, + "description": "Account number.\n\nWhen processing encoded account numbers, use this field for the encoded account number.\n" + }, + "routingNumber": { + "type": "string", + "description": "Bank routing number. This is also called the transit number.\n\n# For details, see `ecp_rdfi` field description in the [Electronic Check Services Using the SCMP API Guide.](https://apps.cybersource.com/library/documentation/dev_guides/EChecks_SCMP_API/html/)\n" + } + } + }, + "tokenizedCard": { + "title": "tmsv2TokenizedCard", + "type": "object", + "properties": { + "_links": { + "type": "object", + "readOnly": true, + "properties": { + "self": { + "type": "object", + "readOnly": true, + "properties": { + "href": { + "type": "string", + "readOnly": true, + "description": "Link to the Tokenized Card.\nexample: 'tms/v2/tokenized-cards/7010000000016241111'\n" + } + } + } + } + }, + "id": { + "type": "string", + "readOnly": true, + "description": "The Id of the Tokenized Card.\n" + }, + "object": { + "type": "string", + "readOnly": true, + "example": "tokenizedCard", + "description": "The type.\nPossible Values:\n- tokenizedCard\n" + }, + "accountReferenceId": { + "type": "string", + "description": "An identifier provided by the issuer for the account.\n" + }, + "consumerId": { + "type": "string", + "maxLength": 36, + "description": "Identifier of the consumer within the wallet. Maximum 24 characters for VTS." + }, + "createInstrumentIdentifier": { + "type": "boolean", + "description": "Specifies whether the InstrumentId should be created (true) or not (false).\nPossible Values:\n- `true`: The InstrumentId should be created.\n- `false`: The InstrumentId should be created.\n" + }, + "source": { + "type": "string", + "description": "Source of the card details.\nPossible Values:\n- ONFILE\n- TOKEN\n- ISSUER\n" + }, + "state": { + "type": "string", + "readOnly": true, + "example": "ACTIVE", + "description": "State of the network token or network token provision.\nPossible Values:\n ACTIVE : Network token is active.\n SUSPENDED : Network token is suspended. This state can change back to ACTIVE.\n DELETED : This is a final state for a network token instance.\n UNPROVISIONED : A previous network token.\n" + }, + "reason": { + "type": "string", + "readOnly": true, + "example": "ACTIVE", + "description": "Issuers state for the network token\nPossible Values:\n- INVALID_REQUEST : The network token provision request contained invalid data.\n- CARD_VERIFICATION_FAILED : The network token provision request contained data that could not be verified.\n- CARD_NOT_ELIGIBLE : Card can currently not be used with issuer for tokenization.\n- CARD_NOT_ALLOWED : Card can currently not be used with card association for tokenization.\n- DECLINED : Card can currently not be used with issuer for tokenization.\n- SERVICE_UNAVAILABLE : The network token service was unavailable or timed out.\n- SYSTEM_ERROR : An unexpected error occurred with network token service, check configuration.\n" + }, + "number": { + "type": "string", + "readOnly": true, + "description": "The token requestor's network token for the provided PAN and consumer Id, if available.\n" + }, + "expirationMonth": { + "type": "string", + "readOnly": true, + "description": "Two-digit month in which the network token expires.\nFormat: `MM`.\nPossible Values: `01` through `12`.\n" + }, + "expirationYear": { + "type": "string", + "readOnly": true, + "description": "Four-digit year in which the network token expires.\nFormat: `YYYY`.\n" + }, + "type": { + "type": "string", + "description": "The type of card (Card Network).\nPossible Values:\n- visa\n- mastercard\n- americanexpress\n" + }, + "cryptogram": { + "type": "string", + "readOnly": true, + "description": "Value generated by the card association to be used alongside the network token for processing a payment.\n", + "example": "CgAFRFYFPTFOfg5rj2ais9wQAAAAAM=" + }, + "securityCode": { + "type": "string", + "readOnly": true, + "description": "4-digit number generated by the card association to be used alogside the network token for processing a payment. Only supported for Amex and SCOF.\n", + "example": "4523" + }, + "eci": { + "type": "string", + "readOnly": true, + "description": "Raw Electronic Commerce Indicator provided by the card association with the result of the cardholder authentication.\n" + }, + "requestorId": { + "type": "string", + "readOnly": true, + "maxLength": 11, + "description": "11-digit identifier that uniquely identifies the Token Requestor.\n" + }, + "enrollmentId": { + "type": "string", + "readOnly": true, + "description": "Unique id to identify this PAN/ enrollment.\n" + }, + "tokenReferenceId": { + "type": "string", + "readOnly": true, + "description": "Unique ID for netwrok token.\n" + }, + "paymentAccountReference": { + "type": "string", + "readOnly": true, + "description": "Payment account reference.\n" + }, + "card": { + "type": "object", + "description": "Card object used to create a network token\n", + "properties": { + "number": { + "type": "string", + "minLength": 12, + "maxLength": 19, + "description": "The customer's payment card number, also known as the Primary Account Number (PAN).\n" + }, + "expirationMonth": { + "type": "string", + "maxLength": 2, + "description": "Two-digit month in which the payment card expires.\n\nFormat: `MM`.\n\nPossible Values: `01` through `12`.\n" + }, + "expirationYear": { + "type": "string", + "maxLength": 4, + "description": "Four-digit year in which the credit card expires.\n\nFormat: `YYYY`.\n" + }, + "type": { + "type": "string", + "description": "The type of card (Card Network).\nPossible Values:\n- 001: visa\n" + }, + "suffix": { + "type": "string", + "readOnly": true, + "description": "The customer's latest payment card number suffix.\n" + }, + "issueDate": { + "type": "string", + "readOnly": true, + "format": "date", + "description": "Card issuance date. XML date format: YYYY-MM-DD.", + "example": "2030-12-15" + }, + "activationDate": { + "type": "string", + "readOnly": true, + "format": "date", + "description": "Card activation date. XML date format: YYYY-MM-DD", + "example": "2030-12-20" + }, + "expirationPrinted": { + "type": "boolean", + "readOnly": true, + "description": "Indicates if the expiration date is printed on the card.", + "example": true + }, + "securityCodePrinted": { + "type": "boolean", + "readOnly": true, + "description": "Indicates if the Card Verification Number is printed on the card.", + "example": true + }, + "termsAndConditions": { + "type": "object", + "readOnly": true, + "properties": { + "url": { + "type": "string", + "readOnly": true, + "description": "Issuer Card Terms and Conditions url." + } + } + } + } + }, + "passcode": { + "type": "object", + "description": "Passcode by issuer for ID&V.\n", + "properties": { + "value": { + "type": "string", + "description": "OTP generated at issuer.\n" + } + } + }, + "metadata": { + "type": "object", + "readOnly": true, + "description": "Metadata associated with the tokenized card.\n", + "properties": { + "cardArt": { + "title": "TmsCardArt", + "description": "Card art associated with the tokenized card.\n", + "type": "object", + "readOnly": true, + "properties": { + "foregroundColor": { + "description": "Card foreground color.\n", + "type": "string", + "readOnly": true + }, + "combinedAsset": { + "description": "Combined card art asset associated with the tokenized card.\n", + "type": "object", + "readOnly": true, + "properties": { + "id": { + "type": "string", + "description": "Unique identifier for the asset\n" + }, + "_links": { + "type": "object", + "readOnly": true, + "properties": { + "self": { + "type": "object", + "readOnly": true, + "properties": { + "href": { + "type": "string", + "readOnly": true, + "description": "Link to the card art asset.\nexample: 'tms/v2/tokens/7020000000010603216/visa/assets/card-art-combined'\n" + } + } + } + } + } + } + }, + "brandLogoAsset": { + "description": "Brand logo card art asset associated with the tokenized card.\n", + "type": "object", + "readOnly": true, + "properties": { + "id": { + "type": "string", + "description": "Unique identifier for the asset\n" + }, + "_links": { + "type": "object", + "readOnly": true, + "properties": { + "self": { + "type": "object", + "readOnly": true, + "properties": { + "href": { + "type": "string", + "readOnly": true, + "description": "Link to the card art asset.\nexample: 'tms/v2/tokens/7020000000010603216/visa/assets/brand-logo'\n" + } + } + } + } + } + } + }, + "issuerLogoAsset": { + "description": "Issuer logo card art asset associated with the tokenized card.\n", + "type": "object", + "readOnly": true, + "properties": { + "id": { + "type": "string", + "description": "Unique identifier for the asset\n" + }, + "_links": { + "type": "object", + "readOnly": true, + "properties": { + "self": { + "type": "object", + "readOnly": true, + "properties": { + "href": { + "type": "string", + "readOnly": true, + "description": "Link to the card art asset.\nexample: 'tms/v2/tokens/7020000000010603216/visa/assets/issuer-logo'\n" + } + } + } + } + } + } + }, + "iconAsset": { + "description": "Icon card art asset associated with the tokenized card.\n", + "type": "object", + "readOnly": true, + "properties": { + "id": { + "type": "string", + "description": "Unique identifier for the asset\n" + }, + "_links": { + "type": "object", + "readOnly": true, + "properties": { + "self": { + "type": "object", + "readOnly": true, + "properties": { + "href": { + "type": "string", + "readOnly": true, + "description": "Link to the card art asset.\nexample: 'tms/v2/tokens/7020000000010603216/visa/assets/icon'\n" + } + } + } + } + } + } + } + } + }, + "issuer": { + "description": "Issuer associated with the tokenized card.\n", + "type": "object", + "readOnly": true, + "properties": { + "name": { + "description": "Issuer name.\n", + "type": "string", + "readOnly": true + }, + "shortDescription": { + "description": "Short description of the card.\n", + "type": "string", + "readOnly": true + }, + "longDescription": { + "description": "Long description of the card.\n", + "type": "string", + "readOnly": true + }, + "email": { + "type": "string", + "readOnly": true, + "description": "Issuer customer service email address." + }, + "phoneNumber": { + "type": "string", + "readOnly": true, + "description": "Issuer customer service phone number." + }, + "url": { + "type": "string", + "readOnly": true, + "description": "Issuer customer service url." + } + } + } + } + } + } + }, + "issuer": { + "type": "object", + "readOnly": true, + "properties": { + "paymentAccountReference": { + "type": "string", + "readOnly": true, + "maxLength": 32, + "description": "This reference number serves as a link to the cardholder account and to all transactions for that account.\n" + } + } + }, + "processingInformation": { + "type": "object", + "properties": { + "authorizationOptions": { + "type": "object", + "title": "tmsAuthorizationOptions", + "properties": { + "initiator": { + "type": "object", + "properties": { + "merchantInitiatedTransaction": { + "type": "object", + "properties": { + "previousTransactionId": { + "type": "string", + "maxLength": 15, + "description": "Network transaction identifier that was returned in the payment response field _processorInformation.transactionID_\nin the reply message for either the original merchant-initiated payment in the series or the previous\nmerchant-initiated payment in the series.\n" + }, + "originalAuthorizedAmount": { + "type": "string", + "maxLength": 15, + "description": "Amount of the original authorization.\n" + } + } + } + } + } + } + } + } + }, + "billTo": { + "type": "object", + "description": "This information is sent to the issuer as part of network token enrollment and is not stored under the Instrument Identifier.\n", "properties": { "address1": { "type": "string", @@ -48927,7 +53046,8 @@ "operationId": "postCustomer", "x-devcenter-metaData": { "categoryTag": "Token_Management", - "developerGuides": "https://developer.cybersource.com/docs/cybs/en-us/tms/developer/ctv/rest/tms/tms-cust-tkn/tms-cust-tkn-create-intro.html" + "developerGuides": "https://developer.cybersource.com/docs/cybs/en-us/tms/developer/ctv/rest/tms/tms-cust-tkn/tms-cust-tkn-create-intro.html", + "mleForRequest": "optional" }, "consumes": [ "application/json;charset=utf-8" @@ -49362,6 +53482,7 @@ }, "merchantInformation": { "type": "object", + "title": "TmsMerchantInformation", "properties": { "merchantDescriptor": { "type": "object", @@ -51120,6 +55241,7 @@ }, "merchantInformation": { "type": "object", + "title": "TmsMerchantInformation", "properties": { "merchantDescriptor": { "type": "object", @@ -52875,6 +56997,7 @@ }, "merchantInformation": { "type": "object", + "title": "TmsMerchantInformation", "properties": { "merchantDescriptor": { "type": "object", @@ -53880,7 +58003,8 @@ "operationId": "patchCustomer", "x-devcenter-metaData": { "categoryTag": "Token_Management", - "developerGuides": "https://developer.cybersource.com/docs/cybs/en-us/tms/developer/ctv/rest/tms/tms-cust-tkn/tms-cust-tkn-update-intro.html" + "developerGuides": "https://developer.cybersource.com/docs/cybs/en-us/tms/developer/ctv/rest/tms/tms-cust-tkn/tms-cust-tkn-update-intro.html", + "mleForRequest": "optional" }, "consumes": [ "application/json;charset=utf-8" @@ -54324,6 +58448,7 @@ }, "merchantInformation": { "type": "object", + "title": "TmsMerchantInformation", "properties": { "merchantDescriptor": { "type": "object", @@ -56255,7 +60380,8 @@ "operationId": "postCustomerShippingAddress", "x-devcenter-metaData": { "categoryTag": "Token_Management", - "developerGuides": "https://developer.cybersource.com/docs/cybs/en-us/tms/developer/ctv/rest/tms/tms-ship-tkn/tms-ship-addr-tkn-create-intro.html" + "developerGuides": "https://developer.cybersource.com/docs/cybs/en-us/tms/developer/ctv/rest/tms/tms-ship-tkn/tms-ship-addr-tkn-create-intro.html", + "mleForRequest": "optional" }, "consumes": [ "application/json;charset=utf-8" @@ -58030,7 +62156,8 @@ "operationId": "patchCustomersShippingAddress", "x-devcenter-metaData": { "categoryTag": "Token_Management", - "developerGuides": "https://developer.cybersource.com/docs/cybs/en-us/tms/developer/ctv/rest/tms/tms-ship-tkn/tms-ship-addr-tkn-update-intro.html" + "developerGuides": "https://developer.cybersource.com/docs/cybs/en-us/tms/developer/ctv/rest/tms/tms-ship-tkn/tms-ship-addr-tkn-update-intro.html", + "mleForRequest": "optional" }, "consumes": [ "application/json;charset=utf-8" @@ -59303,6 +63430,7 @@ }, "merchantInformation": { "type": "object", + "title": "TmsMerchantInformation", "properties": { "merchantDescriptor": { "type": "object", @@ -60187,7 +64315,8 @@ "operationId": "postCustomerPaymentInstrument", "x-devcenter-metaData": { "categoryTag": "Token_Management", - "developerGuides": "https://developer.cybersource.com/docs/cybs/en-us/tms/developer/ctv/rest/tms/tms-cust-pi-tkn/tms-cust-pi-tkn-create-intro.html" + "developerGuides": "https://developer.cybersource.com/docs/cybs/en-us/tms/developer/ctv/rest/tms/tms-cust-pi-tkn/tms-cust-pi-tkn-create-intro.html", + "mleForRequest": "optional" }, "consumes": [ "application/json;charset=utf-8" @@ -60491,6 +64620,7 @@ }, "merchantInformation": { "type": "object", + "title": "TmsMerchantInformation", "properties": { "merchantDescriptor": { "type": "object", @@ -62212,6 +66342,7 @@ }, "merchantInformation": { "type": "object", + "title": "TmsMerchantInformation", "properties": { "merchantDescriptor": { "type": "object", @@ -63748,6 +67879,7 @@ }, "merchantInformation": { "type": "object", + "title": "TmsMerchantInformation", "properties": { "merchantDescriptor": { "type": "object", @@ -65247,6 +69379,7 @@ }, "merchantInformation": { "type": "object", + "title": "TmsMerchantInformation", "properties": { "merchantDescriptor": { "type": "object", @@ -66131,7 +70264,8 @@ "operationId": "patchCustomersPaymentInstrument", "x-devcenter-metaData": { "categoryTag": "Token_Management", - "developerGuides": "https://developer.cybersource.com/docs/cybs/en-us/tms/developer/ctv/rest/tms/tms-cust-pi-tkn/tms-cust-pi-tkn-update-intro.html" + "developerGuides": "https://developer.cybersource.com/docs/cybs/en-us/tms/developer/ctv/rest/tms/tms-cust-pi-tkn/tms-cust-pi-tkn-update-intro.html", + "mleForRequest": "optional" }, "consumes": [ "application/json;charset=utf-8" @@ -66431,6 +70565,7 @@ }, "merchantInformation": { "type": "object", + "title": "TmsMerchantInformation", "properties": { "merchantDescriptor": { "type": "object", @@ -68473,6 +72608,7 @@ }, "merchantInformation": { "type": "object", + "title": "TmsMerchantInformation", "properties": { "merchantDescriptor": { "type": "object", @@ -69357,7 +73493,8 @@ "operationId": "postPaymentInstrument", "x-devcenter-metaData": { "categoryTag": "Token_Management", - "developerGuides": "https://developer.cybersource.com/docs/cybs/en-us/tms/developer/ctv/rest/tms/tms-pi-tkn/tms-pi-tkn-create-intro.html" + "developerGuides": "https://developer.cybersource.com/docs/cybs/en-us/tms/developer/ctv/rest/tms/tms-pi-tkn/tms-pi-tkn-create-intro.html", + "mleForRequest": "optional" }, "consumes": [ "application/json;charset=utf-8" @@ -69643,6 +73780,7 @@ }, "merchantInformation": { "type": "object", + "title": "TmsMerchantInformation", "properties": { "merchantDescriptor": { "type": "object", @@ -71221,6 +75359,7 @@ }, "merchantInformation": { "type": "object", + "title": "TmsMerchantInformation", "properties": { "merchantDescriptor": { "type": "object", @@ -72718,6 +76857,7 @@ }, "merchantInformation": { "type": "object", + "title": "TmsMerchantInformation", "properties": { "merchantDescriptor": { "type": "object", @@ -73602,7 +77742,8 @@ "operationId": "patchPaymentInstrument", "x-devcenter-metaData": { "categoryTag": "Token_Management", - "developerGuides": "https://developer.cybersource.com/docs/cybs/en-us/tms/developer/ctv/rest/tms/tms-pi-tkn/tms-pi-tkn-update-intro.html" + "developerGuides": "https://developer.cybersource.com/docs/cybs/en-us/tms/developer/ctv/rest/tms/tms-pi-tkn/tms-pi-tkn-update-intro.html", + "mleForRequest": "optional" }, "consumes": [ "application/json;charset=utf-8" @@ -73902,6 +78043,7 @@ }, "merchantInformation": { "type": "object", + "title": "TmsMerchantInformation", "properties": { "merchantDescriptor": { "type": "object", @@ -76389,7 +80531,8 @@ "operationId": "postInstrumentIdentifier", "x-devcenter-metaData": { "categoryTag": "Token_Management", - "developerGuides": "https://developer.cybersource.com/docs/cybs/en-us/tms/developer/ctv/rest/tms/tms-ii-tkn/tms-ii-tkn-create-intro.html" + "developerGuides": "https://developer.cybersource.com/docs/cybs/en-us/tms/developer/ctv/rest/tms/tms-ii-tkn/tms-ii-tkn-create-intro.html", + "mleForRequest": "optional" }, "consumes": [ "application/json;charset=utf-8" @@ -80528,7 +84671,8 @@ "operationId": "patchInstrumentIdentifier", "x-devcenter-metaData": { "categoryTag": "Token_Management", - "developerGuides": "https://developer.cybersource.com/docs/cybs/en-us/tms/developer/ctv/rest/tms/tms-ii-tkn/tms-ii-tkn-update-intro.html" + "developerGuides": "https://developer.cybersource.com/docs/cybs/en-us/tms/developer/ctv/rest/tms/tms-ii-tkn/tms-ii-tkn-update-intro.html", + "mleForRequest": "optional" }, "consumes": [ "application/json;charset=utf-8" @@ -82600,6 +86744,7 @@ }, "merchantInformation": { "type": "object", + "title": "TmsMerchantInformation", "properties": { "merchantDescriptor": { "type": "object", @@ -84666,7 +88811,8 @@ "operationId": "postInstrumentIdentifierEnrollment", "x-devcenter-metaData": { "categoryTag": "Token_Management", - "developerGuides": "https://developer.cybersource.com/docs/cybs/en-us/tms/developer/ctv/rest/tms/tms-net-tkn-intro/tms-net-tkn-partner-ii-intro.html" + "developerGuides": "https://developer.cybersource.com/docs/cybs/en-us/tms/developer/ctv/rest/tms/tms-net-tkn-intro/tms-net-tkn-partner-ii-intro.html", + "mleForRequest": "optional" }, "consumes": [ "application/json;charset=utf-8" @@ -85447,7 +89593,8 @@ "operationId": "postTokenizedCard", "x-devcenter-metaData": { "categoryTag": "Token_Management", - "developerGuides": "https://developer.cybersource.com/docs/cybs/en-us/tms/developer/ctv/rest/tms/tms-net-tkn-indirect/tms-net-tkn-card-create-cof-intro.html" + "developerGuides": "https://developer.cybersource.com/docs/cybs/en-us/tms/developer/ctv/rest/tms/tms-net-tkn-indirect/tms-net-tkn-card-create-cof-intro.html", + "mleForRequest": "optional" }, "consumes": [ "application/json;charset=utf-8" @@ -87321,7 +91468,154 @@ "type": { "type": "string", "readOnly": true, - "description": "The type of error.\n\nPossible Values:\n - forbidden\n - declined\n" + "description": "The type of error.\n\nPossible Values:\n - forbidden\n - declined\n" + }, + "message": { + "type": "string", + "readOnly": true, + "description": "The detailed message related to the type." + } + } + } + } + } + }, + "examples": { + "application/json": { + "errors": [ + { + "type": "forbidden", + "message": "Request not permitted" + } + ] + } + } + }, + "404": { + "description": "Token Not Found. The Id may not exist or was entered incorrectly.", + "headers": { + "v-c-correlation-id": { + "description": "The mandatory correlation Id passed by upstream (calling) system.", + "type": "string" + }, + "uniqueTransactionID": { + "description": "A globally unique Id associated with your request.", + "type": "string" + } + }, + "schema": { + "type": "object", + "readOnly": true, + "properties": { + "errors": { + "type": "array", + "readOnly": true, + "items": { + "type": "object", + "readOnly": true, + "properties": { + "type": { + "type": "string", + "readOnly": true, + "description": "The type of error.\n\nPossible Values:\n - notFound\n" + }, + "message": { + "type": "string", + "readOnly": true, + "description": "The detailed message related to the type." + } + } + } + } + } + }, + "examples": { + "application/json": { + "errors": [ + { + "type": "notFound", + "message": "Token not found" + } + ] + } + } + }, + "409": { + "description": "Conflict. The token is linked to a Payment Instrument.", + "headers": { + "v-c-correlation-id": { + "description": "The mandatory correlation Id passed by upstream (calling) system.", + "type": "string" + }, + "uniqueTransactionID": { + "description": "A globally unique Id associated with your request.", + "type": "string" + } + }, + "schema": { + "type": "object", + "readOnly": true, + "properties": { + "errors": { + "type": "array", + "readOnly": true, + "items": { + "type": "object", + "readOnly": true, + "properties": { + "type": { + "type": "string", + "readOnly": true, + "description": "The type of error.\n\nPossible Values:\n - instrumentIdentifierDeletionError\n - tokenIdConflict\n - conflict\n" + }, + "message": { + "type": "string", + "readOnly": true, + "description": "The detailed message related to the type." + } + } + } + } + } + }, + "examples": { + "application/json": { + "errors": [ + { + "type": "conflict", + "message": "Action cannot be performed as the PaymentInstrument is the customers default" + } + ] + } + } + }, + "410": { + "description": "Token Not Available. The token has been deleted.", + "headers": { + "v-c-correlation-id": { + "description": "The mandatory correlation Id passed by upstream (calling) system.", + "type": "string" + }, + "uniqueTransactionID": { + "description": "A globally unique Id associated with your request.", + "type": "string" + } + }, + "schema": { + "type": "object", + "readOnly": true, + "properties": { + "errors": { + "type": "array", + "readOnly": true, + "items": { + "type": "object", + "readOnly": true, + "properties": { + "type": { + "type": "string", + "readOnly": true, + "description": "The type of error.\n\nPossible Values:\n - notAvailable\n" }, "message": { "type": "string", @@ -87337,15 +91631,15 @@ "application/json": { "errors": [ { - "type": "forbidden", - "message": "Request not permitted" + "type": "notAvailable", + "message": "Token not available." } ] } } }, - "404": { - "description": "Token Not Found. The Id may not exist or was entered incorrectly.", + "424": { + "description": "Failed Dependency: e.g. The profile represented by the profile-id may not exist or the profile-id was entered incorrectly.", "headers": { "v-c-correlation-id": { "description": "The mandatory correlation Id passed by upstream (calling) system.", @@ -87387,14 +91681,14 @@ "errors": [ { "type": "notFound", - "message": "Token not found" + "message": "Profile not found" } ] } } }, - "409": { - "description": "Conflict. The token is linked to a Payment Instrument.", + "500": { + "description": "Unexpected error.", "headers": { "v-c-correlation-id": { "description": "The mandatory correlation Id passed by upstream (calling) system.", @@ -87405,6 +91699,16 @@ "type": "string" } }, + "examples": { + "application/json": { + "errors": [ + { + "type": "serverError", + "message": "Internal server error" + } + ] + } + }, "schema": { "type": "object", "readOnly": true, @@ -87419,12 +91723,180 @@ "type": { "type": "string", "readOnly": true, - "description": "The type of error.\n\nPossible Values:\n - instrumentIdentifierDeletionError\n - tokenIdConflict\n - conflict\n" + "description": "The type of error.\n\nPossible Values:\n - internalError\n" + }, + "message": { + "type": "string", + "readOnly": true, + "description": "The detailed message related to the type." + } + } + } + } + } + } + } + } + } + }, + "/tms/v2/tokenized-cards/{tokenizedCardId}/issuer-life-cycle-event-simulations": { + "post": { + "summary": "Simulate Issuer Life Cycle Management Events", + "description": "**Lifecycle Management Events**
Simulates an issuer life cycle manegement event for updates on the tokenized card.\nThe events that can be simulated are:\n- Token status changes (e.g. active, suspended, deleted)\n- Updates to the underlying card, including card art changes, expiration date changes, and card number suffix.\n**Note:** This is only available in CAS environment.\n", + "parameters": [ + { + "name": "profile-id", + "in": "header", + "required": true, + "type": "string", + "description": "The Id of a profile containing user specific TMS configuration.", + "minLength": 36, + "maxLength": 36 + }, + { + "name": "tokenizedCardId", + "in": "path", + "description": "The Id of a tokenized card.", + "required": true, + "type": "string", + "minLength": 12, + "maxLength": 32 + }, + { + "name": "postIssuerLifeCycleSimulationRequest", + "in": "body", + "required": true, + "schema": { + "type": "object", + "description": "Represents the Issuer LifeCycle Event Simulation for a Tokenized Card.\n", + "properties": { + "state": { + "type": "string", + "description": "The new state of the Tokenized Card.\nPossible Values:\n- ACTIVE\n- SUSPENDED\n- DELETED\n" + }, + "card": { + "type": "object", + "properties": { + "last4": { + "type": "string", + "maxLength": 4, + "description": "The new last 4 digits of the card number associated to the Tokenized Card.\n" + }, + "expirationMonth": { + "type": "string", + "maxLength": 2, + "description": "The new two-digit month of the card associated to the Tokenized Card.\nFormat: `MM`.\nPossible Values: `01` through `12`.\n" + }, + "expirationYear": { + "type": "string", + "maxLength": 4, + "description": "The new four-digit year of the card associated to the Tokenized Card.\nFormat: `YYYY`.\n" + } + } + }, + "metadata": { + "type": "object", + "properties": { + "cardArt": { + "type": "object", + "properties": { + "combinedAsset": { + "type": "object", + "properties": { + "update": { + "type": "string", + "description": "Set to \"true\" to simulate an update to the combined card art asset associated with the Tokenized Card.\n" + } + } + } + } + } + } + } + } + } + } + ], + "tags": [ + "Tokenized Card" + ], + "operationId": "postIssuerLifeCycleSimulation", + "x-devcenter-metaData": { + "categoryTag": "Token_Management", + "developerGuides": "https://developer.cybersource.com/docs/cybs/en-us/tms/developer/ctv/rest/tms/tms-net-tkn-intro/tms-net-tkn-card-simulate-issuer-life-cycle-event-intro.html" + }, + "consumes": [ + "application/json;charset=utf-8" + ], + "produces": [ + "application/json;charset=utf-8" + ], + "responses": { + "204": { + "description": "The request is fulfilled but does not need to return a body", + "headers": { + "v-c-correlation-id": { + "description": "The mandatory correlation Id passed by upstream (calling) system.", + "type": "string" + }, + "uniqueTransactionID": { + "description": "A globally unique Id associated with your request.", + "type": "string" + } + } + }, + "400": { + "description": "Bad Request: e.g. A required header value could be missing.", + "headers": { + "v-c-correlation-id": { + "description": "The mandatory correlation Id passed by upstream (calling) system.", + "type": "string" + }, + "uniqueTransactionID": { + "description": "A globally unique Id associated with your request.", + "type": "string" + } + }, + "schema": { + "type": "object", + "readOnly": true, + "properties": { + "errors": { + "type": "array", + "readOnly": true, + "items": { + "type": "object", + "readOnly": true, + "properties": { + "type": { + "type": "string", + "readOnly": true, + "description": "The type of error.\n\nPossible Values:\n - invalidHeaders\n - missingHeaders\n - invalidFields\n - missingFields\n - unsupportedPaymentMethodModification\n - invalidCombination\n" }, "message": { "type": "string", "readOnly": true, "description": "The detailed message related to the type." + }, + "details": { + "type": "array", + "readOnly": true, + "items": { + "type": "object", + "readOnly": true, + "properties": { + "name": { + "type": "string", + "readOnly": true, + "description": "The name of the field that caused the error." + }, + "location": { + "type": "string", + "readOnly": true, + "description": "The location of the field that caused the error." + } + } + } } } } @@ -87432,18 +91904,18 @@ } }, "examples": { - "application/json": { + "Invalid Customer request body": { "errors": [ { - "type": "conflict", - "message": "Action cannot be performed as the PaymentInstrument is the customers default" + "type": "invalidRequest", + "message": "Invalid HTTP Body" } ] } } }, - "410": { - "description": "Token Not Available. The token has been deleted.", + "403": { + "description": "Forbidden: e.g. The profile might not have permission to perform the operation.", "headers": { "v-c-correlation-id": { "description": "The mandatory correlation Id passed by upstream (calling) system.", @@ -87468,7 +91940,7 @@ "type": { "type": "string", "readOnly": true, - "description": "The type of error.\n\nPossible Values:\n - notAvailable\n" + "description": "The type of error.\n\nPossible Values:\n - forbidden\n - declined\n" }, "message": { "type": "string", @@ -87484,15 +91956,15 @@ "application/json": { "errors": [ { - "type": "notAvailable", - "message": "Token not available." + "type": "forbidden", + "message": "Request not permitted" } ] } } }, - "424": { - "description": "Failed Dependency: e.g. The profile represented by the profile-id may not exist or the profile-id was entered incorrectly.", + "404": { + "description": "Token Not Found. The Id may not exist or was entered incorrectly.", "headers": { "v-c-correlation-id": { "description": "The mandatory correlation Id passed by upstream (calling) system.", @@ -87534,7 +92006,7 @@ "errors": [ { "type": "notFound", - "message": "Profile not found" + "message": "Token not found" } ] } @@ -87589,6 +92061,36 @@ } } } + }, + "x-example": { + "example0": { + "summary": "Simulate Network Token Status Update", + "value": { + "state": "SUSPENDED" + } + }, + "example1": { + "summary": "Simulate Network Token Card Metadata Update", + "value": { + "card": { + "last4": "9876", + "expirationMonth": "11", + "expirationYear": "2040" + } + } + }, + "example2": { + "summary": "Simulate Network Token Card Art Update", + "value": { + "metadata": { + "cardArt": { + "combinedAsset": { + "update": "true" + } + } + } + } + } } } }, @@ -87853,7 +92355,8 @@ "operationId": "postTokenPaymentCredentials", "x-devcenter-metaData": { "categoryTag": "Token_Management", - "developerGuides": "https://developer.cybersource.com/docs/cybs/en-us/tms/developer/ctv/rest/tms/tms-net-tkn-indirect/tms-net-tkn-partner-retrieve-pay-cred-intro.html" + "developerGuides": "https://developer.cybersource.com/docs/cybs/en-us/tms/developer/ctv/rest/tms/tms-net-tkn-indirect/tms-net-tkn-partner-retrieve-pay-cred-intro.html", + "mleForRequest": "optional" }, "consumes": [ "application/json;charset=utf-8" @@ -101675,43 +106178,6 @@ "schema": { "type": "object", "properties": { - "clientReferenceInformation": { - "type": "object", - "properties": { - "comments": { - "type": "string", - "maxLength": 255, - "description": "Brief description of the order or any comment you wish to add to the order.\n" - }, - "partner": { - "type": "object", - "properties": { - "developerId": { - "type": "string", - "maxLength": 8, - "description": "Identifier for the developer that helped integrate a partner solution to CyberSource.\n\nSend this value in all requests that are sent through the partner solutions built by that developer.\nCyberSource assigns the ID to the developer.\n\n**Note** When you see a developer ID of 999 in reports, the developer ID that was submitted is incorrect.\n" - }, - "solutionId": { - "type": "string", - "maxLength": 8, - "description": "Identifier for the partner that is integrated to CyberSource.\n\nSend this value in all requests that are sent through the partner solution. CyberSource assigns the ID to the partner.\n\n**Note** When you see a solutionId of 999 in reports, the solutionId that was submitted is incorrect.\n" - } - } - }, - "applicationName": { - "type": "string", - "description": "The name of the Connection Method client (such as Virtual Terminal or SOAP Toolkit API) that the merchant uses to send a transaction request to CyberSource.\n" - }, - "applicationVersion": { - "type": "string", - "description": "Version of the CyberSource application or integration used for a transaction.\n" - }, - "applicationUser": { - "type": "string", - "description": "The entity that is responsible for running the transaction and submitting the processing request to CyberSource. This could be a person, a system, or a connection method.\n" - } - } - }, "planInformation": { "type": "object", "required": [ @@ -103422,41 +107888,9 @@ "type": "object", "properties": { "code": { - "description": "> Deprecated: This field is ignored.\n\nMerchant-generated order reference or tracking number. It is recommended that you send a unique value for each\ntransaction so that you can perform meaningful searches for the transaction.\n\n#### Used by\n**Authorization**\nRequired field.\n\n#### PIN Debit\nRequests for PIN debit reversals need to use the same merchant reference number that was used in the transaction that is being\nreversed.\n\nRequired field for all PIN Debit requests (purchase, credit, and reversal).\n\n#### FDC Nashville Global\nCertain circumstances can cause the processor to truncate this value to 15 or 17 characters for Level II and Level III processing, which can cause a discrepancy between the value you submit and the value included in some processor reports.\n", + "description": "\nMerchant-generated order reference or tracking number. It is recommended that you send a unique value for each\ntransaction so that you can perform meaningful searches for the transaction.\n\n#### Used by\n**Authorization**\nRequired field.\n\n#### PIN Debit\nRequests for PIN debit reversals need to use the same merchant reference number that was used in the transaction that is being\nreversed.\n\nRequired field for all PIN Debit requests (purchase, credit, and reversal).\n\n#### FDC Nashville Global\nCertain circumstances can cause the processor to truncate this value to 15 or 17 characters for Level II and Level III processing, which can cause a discrepancy between the value you submit and the value included in some processor reports.\n", "type": "string", "maxLength": 50 - }, - "comments": { - "description": "> Deprecated: This field is ignored.\n\nBrief description of the order or any comment you wish to add to the order.\n", - "type": "string", - "maxLength": 255 - }, - "partner": { - "type": "object", - "properties": { - "developerId": { - "description": "> This field is ignored when you provide the `subscriptionInformation.originalTransactionId` or update the subscription.\n\nIdentifier for the developer that helped integrate a partner solution to CyberSource.\n\nSend this value in all requests that are sent through the partner solutions built by that developer.\nCyberSource assigns the ID to the developer.\n\n**Note** When you see a developer ID of 999 in reports, the developer ID that was submitted is incorrect.\n", - "type": "string", - "maxLength": 8 - }, - "solutionId": { - "description": "> This field is ignored when you provide the `subscriptionInformation.originalTransactionId` or update the subscription.\n\nIdentifier for the partner that is integrated to CyberSource.\n\nSend this value in all requests that are sent through the partner solution. CyberSource assigns the ID to the partner.\n\n**Note** When you see a solutionId of 999 in reports, the solutionId that was submitted is incorrect.\n", - "type": "string", - "maxLength": 8 - } - } - }, - "applicationName": { - "description": "> Deprecated: This field is ignored.\n\nThe name of the Connection Method client (such as Virtual Terminal or SOAP Toolkit API) that the merchant uses to send a transaction request to CyberSource.\n", - "type": "string" - }, - "applicationVersion": { - "description": "> Deprecated: This field is ignored.\n\nVersion of the CyberSource application or integration used for a transaction.\n", - "type": "string" - }, - "applicationUser": { - "description": "> Deprecated: This field is ignored.\n\nThe entity that is responsible for running the transaction and submitting the processing request to CyberSource. This could be a person, a system, or a connection method.\n", - "type": "string" } } }, @@ -103607,6 +108041,9 @@ "customer": { "id": "C24F5921EB870D99E053AF598E0A4105" } + }, + "clientReferenceInformation": { + "code": "TC501713" } } } @@ -103715,6 +108152,16 @@ "description": "Subscription Status:\n - `PENDING`\n - `ACTIVE`\n - `FAILED`\n" } } + }, + "clientReferenceInformation": { + "type": "object", + "properties": { + "code": { + "description": "\nMerchant-generated order reference or tracking number. It is recommended that you send a unique value for each\ntransaction so that you can perform meaningful searches for the transaction.\n\n#### Used by\n**Authorization**\nRequired field.\n\n#### PIN Debit\nRequests for PIN debit reversals need to use the same merchant reference number that was used in the transaction that is being\nreversed.\n\nRequired field for all PIN Debit requests (purchase, credit, and reversal).\n\n#### FDC Nashville Global\nCertain circumstances can cause the processor to truncate this value to 15 or 17 characters for Level II and Level III processing, which can cause a discrepancy between the value you submit and the value included in some processor reports.\n", + "type": "string", + "maxLength": 50 + } + } } }, "example": { @@ -103820,6 +108267,9 @@ "summary": "Create Subscription", "sample-name": "Create Subscription", "value": { + "clientReferenceInformation": { + "code": "TC501713" + }, "subscriptionInformation": { "planId": "6868912495476705603955", "name": "Subscription with PlanId", @@ -103838,13 +108288,7 @@ "sample-name": "(deprecated) Create Subscription with Authorization", "value": { "clientReferenceInformation": { - "code": "TC501713", - "partner": { - "developerId": "ABCD1234", - "solutionId": "GEF1234" - }, - "applicationName": "CYBS-SDK", - "applicationVersion": "v1" + "code": "TC501713" }, "processingInformation": { "commerceIndicator": "recurring", @@ -104116,6 +108560,16 @@ } } }, + "clientReferenceInformation": { + "type": "object", + "properties": { + "code": { + "description": "\nMerchant-generated order reference or tracking number. It is recommended that you send a unique value for each\ntransaction so that you can perform meaningful searches for the transaction.\n\n#### Used by\n**Authorization**\nRequired field.\n\n#### PIN Debit\nRequests for PIN debit reversals need to use the same merchant reference number that was used in the transaction that is being\nreversed.\n\nRequired field for all PIN Debit requests (purchase, credit, and reversal).\n\n#### FDC Nashville Global\nCertain circumstances can cause the processor to truncate this value to 15 or 17 characters for Level II and Level III processing, which can cause a discrepancy between the value you submit and the value included in some processor reports.\n", + "type": "string", + "maxLength": 50 + } + } + }, "paymentInformation": { "type": "object", "properties": { @@ -104475,18 +108929,28 @@ } } }, + "clientReferenceInformation": { + "type": "object", + "properties": { + "code": { + "description": "\nMerchant-generated order reference or tracking number. It is recommended that you send a unique value for each\ntransaction so that you can perform meaningful searches for the transaction.\n\n#### Used by\n**Authorization**\nRequired field.\n\n#### PIN Debit\nRequests for PIN debit reversals need to use the same merchant reference number that was used in the transaction that is being\nreversed.\n\nRequired field for all PIN Debit requests (purchase, credit, and reversal).\n\n#### FDC Nashville Global\nCertain circumstances can cause the processor to truncate this value to 15 or 17 characters for Level II and Level III processing, which can cause a discrepancy between the value you submit and the value included in some processor reports.\n", + "type": "string", + "maxLength": 50 + } + } + }, "reactivationInformation": { "type": "object", "properties": { - "skippedPaymentsCount": { + "missedPaymentsCount": { "type": "string", "maxLength": 10, "description": "Number of payments that should have occurred while the subscription was in a suspended status.\n" }, - "skippedPaymentsTotalAmount": { + "missedPaymentsTotalAmount": { "type": "string", "maxLength": 19, - "description": "Total amount that will be charged upon reactivation if `processSkippedPayments` is set to `true`.\n" + "description": "Total amount that will be charged upon reactivation if `processMissedPayments` is set to `true`.\n" } } } @@ -104616,41 +109080,9 @@ "type": "object", "properties": { "code": { - "description": "> Deprecated: This field is ignored.\n\nMerchant-generated order reference or tracking number. It is recommended that you send a unique value for each\ntransaction so that you can perform meaningful searches for the transaction.\n\n#### Used by\n**Authorization**\nRequired field.\n\n#### PIN Debit\nRequests for PIN debit reversals need to use the same merchant reference number that was used in the transaction that is being\nreversed.\n\nRequired field for all PIN Debit requests (purchase, credit, and reversal).\n\n#### FDC Nashville Global\nCertain circumstances can cause the processor to truncate this value to 15 or 17 characters for Level II and Level III processing, which can cause a discrepancy between the value you submit and the value included in some processor reports.\n", + "description": "\nMerchant-generated order reference or tracking number. It is recommended that you send a unique value for each\ntransaction so that you can perform meaningful searches for the transaction.\n\n#### Used by\n**Authorization**\nRequired field.\n\n#### PIN Debit\nRequests for PIN debit reversals need to use the same merchant reference number that was used in the transaction that is being\nreversed.\n\nRequired field for all PIN Debit requests (purchase, credit, and reversal).\n\n#### FDC Nashville Global\nCertain circumstances can cause the processor to truncate this value to 15 or 17 characters for Level II and Level III processing, which can cause a discrepancy between the value you submit and the value included in some processor reports.\n", "type": "string", "maxLength": 50 - }, - "comments": { - "description": "> Deprecated: This field is ignored.\n\nBrief description of the order or any comment you wish to add to the order.\n", - "type": "string", - "maxLength": 255 - }, - "partner": { - "type": "object", - "properties": { - "developerId": { - "description": "> This field is ignored when you provide the `subscriptionInformation.originalTransactionId` or update the subscription.\n\nIdentifier for the developer that helped integrate a partner solution to CyberSource.\n\nSend this value in all requests that are sent through the partner solutions built by that developer.\nCyberSource assigns the ID to the developer.\n\n**Note** When you see a developer ID of 999 in reports, the developer ID that was submitted is incorrect.\n", - "type": "string", - "maxLength": 8 - }, - "solutionId": { - "description": "> This field is ignored when you provide the `subscriptionInformation.originalTransactionId` or update the subscription.\n\nIdentifier for the partner that is integrated to CyberSource.\n\nSend this value in all requests that are sent through the partner solution. CyberSource assigns the ID to the partner.\n\n**Note** When you see a solutionId of 999 in reports, the solutionId that was submitted is incorrect.\n", - "type": "string", - "maxLength": 8 - } - } - }, - "applicationName": { - "description": "> Deprecated: This field is ignored.\n\nThe name of the Connection Method client (such as Virtual Terminal or SOAP Toolkit API) that the merchant uses to send a transaction request to CyberSource.\n", - "type": "string" - }, - "applicationVersion": { - "description": "> Deprecated: This field is ignored.\n\nVersion of the CyberSource application or integration used for a transaction.\n", - "type": "string" - }, - "applicationUser": { - "description": "> Deprecated: This field is ignored.\n\nThe entity that is responsible for running the transaction and submitting the processing request to CyberSource. This could be a person, a system, or a connection method.\n", - "type": "string" } } }, @@ -105109,7 +109541,7 @@ "/rbs/v1/subscriptions/{id}/suspend": { "post": { "summary": "Suspend a Subscription", - "description": "Suspend a Subscription", + "description": "Suspend a Subscription\n", "tags": [ "Subscriptions" ], @@ -105277,8 +109709,8 @@ }, "/rbs/v1/subscriptions/{id}/activate": { "post": { - "summary": "Activate a Subscription", - "description": "Activate a `SUSPENDED` Subscription\n", + "summary": "Reactivating a Suspended Subscription", + "description": "# Reactivating a Suspended Subscription\n\nYou can reactivate a suspended subscription for the next billing cycle. You cannot reactivate a canceled or completed subscription.\n\nYou can specify whether you want to process missed payments for the period during which the subscription was suspended using the `processMissedPayments` query parameter by setting it to true or false. \nIf no value is specified, the system will default to `true`.\n\n**Important:** The \"processMissedPayments\" query parameter is only effective when the Ask each time before reactivating option is selected in the reactivation settings. If any other option is chosen, the value provided in the request will be ignored by the system. For more information, see the [Recurring Billing User Guide](https://developer.cybersource.com/docs/cybs/en-us/recurring-billing/user/all/rest/recurring-billing-user/recurring-billing-user-about-guide.html).\n\nYou can check how many payments were missed and the total amount by retrieving the subscription details, where you will find the `reactivationInformation` object. See: [Retrieving a Subscription](https://developer.cybersource.com/docs/cybs/en-us/recurring-billing/developer/all/rest/recurring-billing-dev/recur-bill-subscriptions/recur-bill-getting-a-subscription.html).\n", "tags": [ "Subscriptions" ], @@ -105306,10 +109738,10 @@ "description": "Subscription Id" }, { - "name": "processSkippedPayments", + "name": "processMissedPayments", "in": "query", "type": "boolean", - "description": "Indicates if skipped payments should be processed from the period when the subscription was suspended. By default, this is set to true.", + "description": "Indicates if missed payments should be processed from the period when the subscription was suspended. By default, this is set to true.\nWhen any option other than \"Ask each time before reactivating\" is selected in the reactivation settings, the value that you enter will be ignored.\n", "required": false, "default": true } @@ -106073,41 +110505,9 @@ "type": "object", "properties": { "code": { - "description": "> Deprecated: This field is ignored.\n\nMerchant-generated order reference or tracking number. It is recommended that you send a unique value for each\ntransaction so that you can perform meaningful searches for the transaction.\n\n#### Used by\n**Authorization**\nRequired field.\n\n#### PIN Debit\nRequests for PIN debit reversals need to use the same merchant reference number that was used in the transaction that is being\nreversed.\n\nRequired field for all PIN Debit requests (purchase, credit, and reversal).\n\n#### FDC Nashville Global\nCertain circumstances can cause the processor to truncate this value to 15 or 17 characters for Level II and Level III processing, which can cause a discrepancy between the value you submit and the value included in some processor reports.\n", + "description": "\nMerchant-generated order reference or tracking number. It is recommended that you send a unique value for each\ntransaction so that you can perform meaningful searches for the transaction.\n\n#### Used by\n**Authorization**\nRequired field.\n\n#### PIN Debit\nRequests for PIN debit reversals need to use the same merchant reference number that was used in the transaction that is being\nreversed.\n\nRequired field for all PIN Debit requests (purchase, credit, and reversal).\n\n#### FDC Nashville Global\nCertain circumstances can cause the processor to truncate this value to 15 or 17 characters for Level II and Level III processing, which can cause a discrepancy between the value you submit and the value included in some processor reports.\n", "type": "string", "maxLength": 50 - }, - "comments": { - "description": "> Deprecated: This field is ignored.\n\nBrief description of the order or any comment you wish to add to the order.\n", - "type": "string", - "maxLength": 255 - }, - "partner": { - "type": "object", - "properties": { - "developerId": { - "description": "> This field is ignored when you provide the `subscriptionInformation.originalTransactionId` or update the subscription.\n\nIdentifier for the developer that helped integrate a partner solution to CyberSource.\n\nSend this value in all requests that are sent through the partner solutions built by that developer.\nCyberSource assigns the ID to the developer.\n\n**Note** When you see a developer ID of 999 in reports, the developer ID that was submitted is incorrect.\n", - "type": "string", - "maxLength": 8 - }, - "solutionId": { - "description": "> This field is ignored when you provide the `subscriptionInformation.originalTransactionId` or update the subscription.\n\nIdentifier for the partner that is integrated to CyberSource.\n\nSend this value in all requests that are sent through the partner solution. CyberSource assigns the ID to the partner.\n\n**Note** When you see a solutionId of 999 in reports, the solutionId that was submitted is incorrect.\n", - "type": "string", - "maxLength": 8 - } - } - }, - "applicationName": { - "description": "> Deprecated: This field is ignored.\n\nThe name of the Connection Method client (such as Virtual Terminal or SOAP Toolkit API) that the merchant uses to send a transaction request to CyberSource.\n", - "type": "string" - }, - "applicationVersion": { - "description": "> Deprecated: This field is ignored.\n\nVersion of the CyberSource application or integration used for a transaction.\n", - "type": "string" - }, - "applicationUser": { - "description": "> Deprecated: This field is ignored.\n\nThe entity that is responsible for running the transaction and submitting the processing request to CyberSource. This could be a person, a system, or a connection method.\n", - "type": "string" } } }, @@ -106230,13 +110630,7 @@ }, "example": { "clientReferenceInformation": { - "code": "FollowOn from 7216512479796378604957", - "partner": { - "developerId": "ABCD1234", - "solutionId": "GEF1234" - }, - "applicationName": "CYBS-SDK", - "applicationVersion": "v1" + "code": "FollowOn from 7216512479796378604957" }, "processingInformation": { "commerceIndicator": "recurring", @@ -106358,6 +110752,16 @@ "description": "Subscription Status:\n - `PENDING`\n - `ACTIVE`\n - `FAILED`\n" } } + }, + "clientReferenceInformation": { + "type": "object", + "properties": { + "code": { + "description": "\nMerchant-generated order reference or tracking number. It is recommended that you send a unique value for each\ntransaction so that you can perform meaningful searches for the transaction.\n\n#### Used by\n**Authorization**\nRequired field.\n\n#### PIN Debit\nRequests for PIN debit reversals need to use the same merchant reference number that was used in the transaction that is being\nreversed.\n\nRequired field for all PIN Debit requests (purchase, credit, and reversal).\n\n#### FDC Nashville Global\nCertain circumstances can cause the processor to truncate this value to 15 or 17 characters for Level II and Level III processing, which can cause a discrepancy between the value you submit and the value included in some processor reports.\n", + "type": "string", + "maxLength": 50 + } + } } }, "example": { @@ -106464,13 +110868,7 @@ "sample-name": "Create Follow-On Subscription", "value": { "clientReferenceInformation": { - "code": "FollowOn from 7216512479796378604957", - "partner": { - "developerId": "ABCD1234", - "solutionId": "GEF1234" - }, - "applicationName": "CYBS-SDK", - "applicationVersion": "v1" + "code": "FollowOn from 7216512479796378604957" }, "processingInformation": { "commerceIndicator": "recurring", @@ -134847,6 +139245,24 @@ } } } + }, + "batchUpload": { + "type": "object", + "properties": { + "subscriptionInformation": { + "type": "object", + "properties": { + "enabled": { + "type": "boolean" + }, + "selfServiceability": { + "type": "string", + "default": "NOT_SELF_SERVICEABLE", + "description": "Indicates if the organization can enable this product using self service. \nPossible values:\n- SELF_SERVICEABLE\n- NOT_SELF_SERVICEABLE\n- SELF_SERVICE_ONLY" + } + } + } + } } } }, @@ -136622,26 +141038,159 @@ "type": "string" } } - } - } - }, - "recurringBilling": { - "type": "object", - "properties": { - "subscriptionStatus": { + } + } + }, + "recurringBilling": { + "type": "object", + "properties": { + "subscriptionStatus": { + "type": "object", + "properties": { + "submitTimeUtc": { + "type": "string", + "description": "Time of request in UTC. `Format: YYYY-MM-DDThh:mm:ssZ`\n\nExample 2016-08-11T22:47:57Z equals August 11, 2016, at 22:47:57 (10:47:57 p.m.). The T separates the date and the\ntime. The Z indicates UTC.\n" + }, + "status": { + "type": "string", + "description": "Possible values:\n- SUCCESS\n- FAILURE\n- PARTIAL\n- PENDING" + }, + "reason": { + "type": "string", + "description": "Possible values:\n- DEPENDENT_PRODUCT_NOT_CONTRACTED\n- DEPENDENT_FEATURE_NOT_CHOSEN\n- MISSING_DATA\n- INVALID_DATA\n- DUPLICATE_FIELD" + }, + "details": { + "type": "array", + "items": { + "type": "object", + "properties": { + "field": { + "type": "string" + }, + "reason": { + "type": "string", + "description": "Possible values:\n- MISSING_DATA\n- INVALID_DATA\n- DUPLICATE_FIELD" + } + }, + "additionalProperties": { + "type": "string" + } + } + }, + "message": { + "type": "string" + } + } + }, + "configurationStatus": { + "type": "object", + "properties": { + "configurationId": { + "type": "string", + "description": "This is NOT for MVP" + }, + "version": { + "type": "string" + }, + "submitTimeUtc": { + "type": "string", + "description": "Time of request in UTC. `Format: YYYY-MM-DDThh:mm:ssZ`\n\nExample 2016-08-11T22:47:57Z equals August 11, 2016, at 22:47:57 (10:47:57 p.m.). The T separates the date and the\ntime. The Z indicates UTC.\n" + }, + "status": { + "type": "string", + "description": "Possible values:\n- SUCCESS\n- PARTIAL\n- PENDING\n- NOT_SETUP" + }, + "reason": { + "type": "string", + "description": "Possible values:\n- PENDING_PROVISIONING_PROCESS\n- MISSING_DATA\n- INVALID_DATA\n- DUPLICATE_FIELD\n- NOT_APPLICABLE" + }, + "details": { + "type": "array", + "items": { + "type": "object", + "properties": { + "field": { + "type": "string" + }, + "reason": { + "type": "string", + "description": "Possible values:\n- MISSING_DATA\n- INVALID_DATA\n- DUPLICATE_FIELD" + } + }, + "additionalProperties": { + "type": "string" + } + } + }, + "message": { + "type": "string" + } + } + } + } + }, + "cybsReadyTerminal": { + "type": "object", + "properties": { + "subscriptionStatus": { + "type": "object", + "properties": { + "submitTimeUtc": { + "type": "string", + "description": "Time of request in UTC. `Format: YYYY-MM-DDThh:mm:ssZ`\n\nExample 2016-08-11T22:47:57Z equals August 11, 2016, at 22:47:57 (10:47:57 p.m.). The T separates the date and the\ntime. The Z indicates UTC.\n" + }, + "status": { + "type": "string", + "description": "Possible values:\n- SUCCESS\n- FAILURE\n- PARTIAL\n- PENDING" + }, + "reason": { + "type": "string", + "description": "Possible values:\n- DEPENDENT_PRODUCT_NOT_CONTRACTED\n- DEPENDENT_FEATURE_NOT_CHOSEN\n- MISSING_DATA\n- INVALID_DATA\n- DUPLICATE_FIELD" + }, + "details": { + "type": "array", + "items": { + "type": "object", + "properties": { + "field": { + "type": "string" + }, + "reason": { + "type": "string", + "description": "Possible values:\n- MISSING_DATA\n- INVALID_DATA\n- DUPLICATE_FIELD" + } + }, + "additionalProperties": { + "type": "string" + } + } + }, + "message": { + "type": "string" + } + } + }, + "configurationStatus": { "type": "object", "properties": { + "configurationId": { + "type": "string", + "description": "This is NOT for MVP" + }, + "version": { + "type": "string" + }, "submitTimeUtc": { "type": "string", "description": "Time of request in UTC. `Format: YYYY-MM-DDThh:mm:ssZ`\n\nExample 2016-08-11T22:47:57Z equals August 11, 2016, at 22:47:57 (10:47:57 p.m.). The T separates the date and the\ntime. The Z indicates UTC.\n" }, "status": { "type": "string", - "description": "Possible values:\n- SUCCESS\n- FAILURE\n- PARTIAL\n- PENDING" + "description": "Possible values:\n- SUCCESS\n- PARTIAL\n- PENDING\n- NOT_SETUP" }, "reason": { "type": "string", - "description": "Possible values:\n- DEPENDENT_PRODUCT_NOT_CONTRACTED\n- DEPENDENT_FEATURE_NOT_CHOSEN\n- MISSING_DATA\n- INVALID_DATA\n- DUPLICATE_FIELD" + "description": "Possible values:\n- PENDING_PROVISIONING_PROCESS\n- MISSING_DATA\n- INVALID_DATA\n- DUPLICATE_FIELD\n- NOT_APPLICABLE" }, "details": { "type": "array", @@ -136665,28 +141214,26 @@ "type": "string" } } - }, - "configurationStatus": { + } + } + }, + "paymentOrchestration": { + "type": "object", + "properties": { + "subscriptionStatus": { "type": "object", "properties": { - "configurationId": { - "type": "string", - "description": "This is NOT for MVP" - }, - "version": { - "type": "string" - }, "submitTimeUtc": { "type": "string", "description": "Time of request in UTC. `Format: YYYY-MM-DDThh:mm:ssZ`\n\nExample 2016-08-11T22:47:57Z equals August 11, 2016, at 22:47:57 (10:47:57 p.m.). The T separates the date and the\ntime. The Z indicates UTC.\n" }, "status": { "type": "string", - "description": "Possible values:\n- SUCCESS\n- PARTIAL\n- PENDING\n- NOT_SETUP" + "description": "Possible values:\n- SUCCESS\n- FAILURE\n- PARTIAL\n- PENDING" }, "reason": { "type": "string", - "description": "Possible values:\n- PENDING_PROVISIONING_PROCESS\n- MISSING_DATA\n- INVALID_DATA\n- DUPLICATE_FIELD\n- NOT_APPLICABLE" + "description": "Possible values:\n- DEPENDENT_PRODUCT_NOT_CONTRACTED\n- DEPENDENT_FEATURE_NOT_CHOSEN\n- MISSING_DATA\n- INVALID_DATA\n- DUPLICATE_FIELD" }, "details": { "type": "array", @@ -136713,7 +141260,7 @@ } } }, - "cybsReadyTerminal": { + "payouts": { "type": "object", "properties": { "subscriptionStatus": { @@ -136801,7 +141348,7 @@ } } }, - "paymentOrchestration": { + "payByLink": { "type": "object", "properties": { "subscriptionStatus": { @@ -136844,7 +141391,7 @@ } } }, - "payouts": { + "unifiedCheckout": { "type": "object", "properties": { "subscriptionStatus": { @@ -136884,55 +141431,10 @@ "type": "string" } } - }, - "configurationStatus": { - "type": "object", - "properties": { - "configurationId": { - "type": "string", - "description": "This is NOT for MVP" - }, - "version": { - "type": "string" - }, - "submitTimeUtc": { - "type": "string", - "description": "Time of request in UTC. `Format: YYYY-MM-DDThh:mm:ssZ`\n\nExample 2016-08-11T22:47:57Z equals August 11, 2016, at 22:47:57 (10:47:57 p.m.). The T separates the date and the\ntime. The Z indicates UTC.\n" - }, - "status": { - "type": "string", - "description": "Possible values:\n- SUCCESS\n- PARTIAL\n- PENDING\n- NOT_SETUP" - }, - "reason": { - "type": "string", - "description": "Possible values:\n- PENDING_PROVISIONING_PROCESS\n- MISSING_DATA\n- INVALID_DATA\n- DUPLICATE_FIELD\n- NOT_APPLICABLE" - }, - "details": { - "type": "array", - "items": { - "type": "object", - "properties": { - "field": { - "type": "string" - }, - "reason": { - "type": "string", - "description": "Possible values:\n- MISSING_DATA\n- INVALID_DATA\n- DUPLICATE_FIELD" - } - }, - "additionalProperties": { - "type": "string" - } - } - }, - "message": { - "type": "string" - } - } } } }, - "payByLink": { + "receivablesManager": { "type": "object", "properties": { "subscriptionStatus": { @@ -136975,7 +141477,7 @@ } } }, - "unifiedCheckout": { + "serviceFee": { "type": "object", "properties": { "subscriptionStatus": { @@ -137015,26 +141517,28 @@ "type": "string" } } - } - } - }, - "receivablesManager": { - "type": "object", - "properties": { - "subscriptionStatus": { + }, + "configurationStatus": { "type": "object", "properties": { + "configurationId": { + "type": "string", + "description": "This is NOT for MVP" + }, + "version": { + "type": "string" + }, "submitTimeUtc": { "type": "string", "description": "Time of request in UTC. `Format: YYYY-MM-DDThh:mm:ssZ`\n\nExample 2016-08-11T22:47:57Z equals August 11, 2016, at 22:47:57 (10:47:57 p.m.). The T separates the date and the\ntime. The Z indicates UTC.\n" }, "status": { "type": "string", - "description": "Possible values:\n- SUCCESS\n- FAILURE\n- PARTIAL\n- PENDING" + "description": "Possible values:\n- SUCCESS\n- PARTIAL\n- PENDING\n- NOT_SETUP" }, "reason": { "type": "string", - "description": "Possible values:\n- DEPENDENT_PRODUCT_NOT_CONTRACTED\n- DEPENDENT_FEATURE_NOT_CHOSEN\n- MISSING_DATA\n- INVALID_DATA\n- DUPLICATE_FIELD" + "description": "Possible values:\n- PENDING_PROVISIONING_PROCESS\n- MISSING_DATA\n- INVALID_DATA\n- DUPLICATE_FIELD\n- NOT_APPLICABLE" }, "details": { "type": "array", @@ -137061,7 +141565,7 @@ } } }, - "serviceFee": { + "batchUpload": { "type": "object", "properties": { "subscriptionStatus": { @@ -137101,51 +141605,6 @@ "type": "string" } } - }, - "configurationStatus": { - "type": "object", - "properties": { - "configurationId": { - "type": "string", - "description": "This is NOT for MVP" - }, - "version": { - "type": "string" - }, - "submitTimeUtc": { - "type": "string", - "description": "Time of request in UTC. `Format: YYYY-MM-DDThh:mm:ssZ`\n\nExample 2016-08-11T22:47:57Z equals August 11, 2016, at 22:47:57 (10:47:57 p.m.). The T separates the date and the\ntime. The Z indicates UTC.\n" - }, - "status": { - "type": "string", - "description": "Possible values:\n- SUCCESS\n- PARTIAL\n- PENDING\n- NOT_SETUP" - }, - "reason": { - "type": "string", - "description": "Possible values:\n- PENDING_PROVISIONING_PROCESS\n- MISSING_DATA\n- INVALID_DATA\n- DUPLICATE_FIELD\n- NOT_APPLICABLE" - }, - "details": { - "type": "array", - "items": { - "type": "object", - "properties": { - "field": { - "type": "string" - }, - "reason": { - "type": "string", - "description": "Possible values:\n- MISSING_DATA\n- INVALID_DATA\n- DUPLICATE_FIELD" - } - }, - "additionalProperties": { - "type": "string" - } - } - }, - "message": { - "type": "string" - } - } } } } @@ -145273,6 +149732,24 @@ } } } + }, + "batchUpload": { + "type": "object", + "properties": { + "subscriptionInformation": { + "type": "object", + "properties": { + "enabled": { + "type": "boolean" + }, + "selfServiceability": { + "type": "string", + "default": "NOT_SELF_SERVICEABLE", + "description": "Indicates if the organization can enable this product using self service. \nPossible values:\n- SELF_SERVICEABLE\n- NOT_SELF_SERVICEABLE\n- SELF_SERVICE_ONLY" + } + } + } + } } } }, @@ -147440,6 +151917,49 @@ } } } + }, + "batchUpload": { + "type": "object", + "properties": { + "subscriptionStatus": { + "type": "object", + "properties": { + "submitTimeUtc": { + "type": "string", + "description": "Time of request in UTC. `Format: YYYY-MM-DDThh:mm:ssZ`\n\nExample 2016-08-11T22:47:57Z equals August 11, 2016, at 22:47:57 (10:47:57 p.m.). The T separates the date and the\ntime. The Z indicates UTC.\n" + }, + "status": { + "type": "string", + "description": "Possible values:\n- SUCCESS\n- FAILURE\n- PARTIAL\n- PENDING" + }, + "reason": { + "type": "string", + "description": "Possible values:\n- DEPENDENT_PRODUCT_NOT_CONTRACTED\n- DEPENDENT_FEATURE_NOT_CHOSEN\n- MISSING_DATA\n- INVALID_DATA\n- DUPLICATE_FIELD" + }, + "details": { + "type": "array", + "items": { + "type": "object", + "properties": { + "field": { + "type": "string" + }, + "reason": { + "type": "string", + "description": "Possible values:\n- MISSING_DATA\n- INVALID_DATA\n- DUPLICATE_FIELD" + } + }, + "additionalProperties": { + "type": "string" + } + } + }, + "message": { + "type": "string" + } + } + } + } } } }, @@ -151507,7 +156027,7 @@ "properties": { "clientVersion": { "type": "string", - "example": "0.25", + "example": "0.32", "maxLength": 60, "description": "Specify the version of Unified Checkout that you want to use." }, @@ -151536,7 +156056,7 @@ "items": { "type": "string" }, - "description": "The payment types that are allowed for the merchant. \n\nPossible values when launching Unified Checkout:\n - APPLEPAY\n - CHECK\n - CLICKTOPAY\n - GOOGLEPAY\n - PANENTRY \n - PAZE

\n\nUnified Checkout supports the following Buy Now, Pay Later (BNPL) payment methods:\n - AFTERPAY

\n\nUnified Checkout supports the following Online Bank Transfer payment methods:\n - Bancontact (BE)\n - DragonPay (PH)\n - iDEAL (NL)\n - Multibanco (PT)\n - MyBank (IT, BE, PT, ES)\n - Przelewy24|P24 (PL)\n - Tink Pay By Bank (GB)\n\nPossible values when launching Click To Pay Drop-In UI:\n- CLICKTOPAY

\n\n**Important:** \n - CLICKTOPAY only available for Visa, Mastercard and AMEX for saved cards.\n - Visa and Mastercard will look to tokenize using network tokenization for all Click to Pay requests. Click to Pay uses Click to Pay token requester IDs and not the merchant's existing token requester.\n - Apple Pay, Google Pay, Check, and Paze can be used independently without requiring PAN entry in the allowedPaymentTypes field.

\n\n**Managing Google Pay Authentication Types**\nWhen you enable Google Pay on Unified Checkout you can specify optional parameters that define the types of card authentication you receive from Google Pay.

\n\n**Managing Google Pay Authentication Types**\nWhere Click to Pay is the payment type selected by the customer and the customer manually enters their card, the option to enroll their card in Click to Pay will be auto-checked if this field is set to \"true\". \n\nThis is only available where the merchant and cardholder are based in the following countries and the billing type is set to \"FULL\" or \"PARTIAL\".\n - UAE\n - Argentina\n - Brazil\n - Chile\n - Colombia\n - Kuwait\n - Mexico\n - Peru\n - Qatar\n - Saudi Arabia\n - Ukraine\n - South Africa

\n\nIf false, this is not present or not supported in the market. Enrollment in Click to Pay is not checked for the customer when completing manual card entry.\n" + "description": "The payment types that are allowed for the merchant. \n\nPossible values when launching Unified Checkout:\n - APPLEPAY\n - CHECK\n - CLICKTOPAY\n - GOOGLEPAY\n - PANENTRY \n - PAZE

\n\nUnified Checkout supports the following Buy Now, Pay Later (BNPL) payment methods:\n - AFTERPAY

\n\nUnified Checkout supports the following Online Bank Transfer payment methods:\n - Bancontact (BE)\n - DragonPay (PH)\n - iDEAL (NL)\n - Multibanco (PT)\n - MyBank (IT, BE, PT, ES)\n - Przelewy24|P24 (PL)\n - Tink Pay By Bank (GB)

\n\n Unified Checkout supports the following Post-Pay Reference payment methods:\n - Konbini (JP)

\n\nPossible values when launching Click To Pay Drop-In UI:\n- CLICKTOPAY

\n\n**Important:** \n - CLICKTOPAY only available for Visa, Mastercard and AMEX for saved cards.\n - Visa and Mastercard will look to tokenize using network tokenization for all Click to Pay requests. Click to Pay uses Click to Pay token requester IDs and not the merchant's existing token requester.\n - Apple Pay, Google Pay, Check, and Paze can be used independently without requiring PAN entry in the allowedPaymentTypes field.

\n\n**Managing Google Pay Authentication Types**\nWhen you enable Google Pay on Unified Checkout you can specify optional parameters that define the types of card authentication you receive from Google Pay.

\n\n**Managing Google Pay Authentication Types**\nWhere Click to Pay is the payment type selected by the customer and the customer manually enters their card, the option to enroll their card in Click to Pay will be auto-checked if this field is set to \"true\". \n\nThis is only available where the merchant and cardholder are based in the following countries and the billing type is set to \"FULL\" or \"PARTIAL\".\n - UAE\n - Argentina\n - Brazil\n - Chile\n - Colombia\n - Kuwait\n - Mexico\n - Peru\n - Qatar\n - Saudi Arabia\n - Ukraine\n - South Africa

\n\nIf false, this is not present or not supported in the market. Enrollment in Click to Pay is not checked for the customer when completing manual card entry.\n" }, "country": { "type": "string", @@ -151549,6 +156069,11 @@ "example": "en_US", "description": "Localization of the User experience conforming to the ISO 639-1 language standards and two-character ISO Standard Country Code.\n\nPlease refer to list of [supported locales through Unified Checkout](https://developer.cybersource.com/docs/cybs/en-us/unified-checkout/developer/all/rest/unified-checkout/uc-appendix-languages.html)\n" }, + "buttonType": { + "type": "string", + "example": null, + "description": "Changes the label on the payment button within Unified Checkout .

\n\nPossible values:\n- ADD_CARD\n- CARD_PAYMENT\n- CHECKOUT\n- CHECKOUT_AND_CONTINUE\n- DEBIT_CREDIT\n- DONATE\n- PAY\n- PAY_WITH_CARD\n- SAVE_CARD\n- SUBSCRIBE_WITH_CARD

\n\nThis is an optional field,\n" + }, "captureMandate": { "type": "object", "properties": { @@ -151705,6 +156230,23 @@ "type": "string", "example": 10, "description": "This field defines the tax amount applicable to the order.\n" + }, + "taxDetails": { + "type": "object", + "properties": { + "taxId": { + "type": "string", + "example": 1234, + "maxLength": 20, + "description": "This field defines the tax identifier/registration number\n" + }, + "type": { + "type": "string", + "example": "N", + "maxLength": 1, + "description": "This field defines the Tax type code (N=National, S=State, L=Local etc)\n" + } + } } } }, @@ -151971,188 +156513,225 @@ "productCode": { "type": "string", "maxLength": 255, - "example": "electronics" + "example": "electronics", + "description": "Code identifying the product." }, "productName": { "type": "string", "maxLength": 255, - "example": "smartphone" + "example": "smartphone", + "description": "Name of the product." }, "productSku": { "type": "string", "maxLength": 255, - "example": "SKU12345" + "example": "SKU12345", + "description": "Stock Keeping Unit identifier" }, "quantity": { "type": "integer", "minimum": 1, "maximum": 999999999, "default": 1, - "example": 2 + "example": 2, + "description": "Quantity of the product" }, "unitPrice": { "type": "string", "maxLength": 15, - "example": "399.99" + "example": "399.99", + "description": "Price per unit" }, "unitOfMeasure": { "type": "string", "maxLength": 12, - "example": "EA" + "example": "EA", + "description": "Unit of measure (e.g. EA, KG, LB)" }, "totalAmount": { "type": "string", "maxLength": 13, - "example": "799.98" + "example": "799.98", + "description": "Total amount for the line item" }, "taxAmount": { "type": "string", "maxLength": 15, - "example": "64.00" + "example": "64.00", + "description": "Tax amount applied" }, "taxRate": { "type": "string", "maxLength": 7, - "example": "0.88" + "example": "0.88", + "description": "Tax rate applied" }, "taxAppliedAfterDiscount": { "type": "string", "maxLength": 1, - "example": "Y" + "example": "Y", + "description": "Indicates if tax applied after discount" }, "taxStatusIndicator": { "type": "string", "maxLength": 1, - "example": "N" + "example": "N", + "description": "Tax status indicator" }, "taxTypeCode": { "type": "string", "maxLength": 4, - "example": "VAT" + "example": "VAT", + "description": "Tax type code" }, "amountIncludesTax": { "type": "boolean", - "example": false + "example": false, + "description": "Indicates if amount includes tax" }, "typeOfSupply": { "type": "string", "maxLength": 2, - "example": "GS" + "example": "GS", + "description": "Type of supply" }, "commodityCode": { "type": "string", "maxLength": 15, - "example": "123456" + "example": "123456", + "description": "Commodity code" }, "discountAmount": { "type": "string", "maxLength": 13, - "example": "10.00" + "example": "10.00", + "description": "Discount amount applied" }, "discountApplied": { "type": "boolean", - "example": true + "example": true, + "description": "Indicates if discount applied" }, "discountRate": { "type": "string", "maxLength": 6, - "example": "0.05" + "example": "0.05", + "description": "Discount rate applied" }, "invoiceNumber": { "type": "string", "maxLength": 23, - "example": "INV-001" + "example": "INV-001", + "description": "Invoice number for the line item" }, "taxDetails": { "type": "object", "properties": { "type": { "type": "string", - "example": "VAT" + "example": "VAT", + "description": "Type of tax" }, "amount": { "type": "string", "maxLength": 13, - "example": 5.99 + "example": 5.99, + "description": "Tax amount" }, "rate": { "type": "string", "maxLength": 6, - "example": 20 + "example": 20, + "description": "Tax rate" }, "code": { "type": "string", "maxLength": 4, - "example": "VAT" + "example": "VAT", + "description": "Tax code" }, "taxId": { "type": "string", "maxLength": 15, - "example": "TAXID12345" + "example": "TAXID12345", + "description": "Tax Identifier" }, "applied": { "type": "boolean", - "example": true + "example": true, + "description": "Indicates if tax applied" }, "exemptionCode": { "type": "string", "maxLength": 1, - "example": "E" + "example": "E", + "description": "Tax exemption code" } } }, "fulfillmentType": { "type": "string", - "example": "Delivery" + "example": "Delivery", + "description": "Fulfillment type" }, "weight": { "type": "string", "maxLength": 9, - "example": "1.5" + "example": "1.5", + "description": "Weight of the product" }, "weightIdentifier": { "type": "string", "maxLength": 1, - "example": "N" + "example": "N", + "description": "Weight identifier" }, "weightUnit": { "type": "string", "maxLength": 2, - "example": "KG" + "example": "KG", + "description": "Unit of weight of the product" }, "referenceDataCode": { "type": "string", "maxLength": 150, - "example": "REFCODE" + "example": "REFCODE", + "description": "Reference data code" }, "referenceDataNumber": { "type": "string", "maxLength": 30, - "example": "REF123" + "example": "REF123", + "description": "Reference data number" }, "unitTaxAmount": { "type": "string", "maxLength": 15, - "example": "3.20" + "example": "3.20", + "description": "Unit tax amount" }, "productDescription": { "type": "string", "maxLength": 30, - "example": "Latest model smartphone" + "example": "Latest model smartphone", + "description": "Description of the product" }, "giftCardCurrency": { "type": "string", "maxLength": 3, - "example": "USD" + "example": "USD", + "description": "Gift card currency" }, "shippingDestinationTypes": { "type": "string", "maxLength": 50, - "example": "Residential" + "example": "Residential", + "description": "Shipping destination types" }, "gift": { "type": "boolean", - "example": false + "example": false, + "description": "Indicates if item is a gift" }, "passenger": { "type": "object", @@ -152160,46 +156739,71 @@ "type": { "type": "string", "maxLength": 50, - "example": "Residential" + "example": "Residential", + "description": "Passenger type" }, "status": { "type": "string", "maxLength": 32, - "example": "Gold" + "example": "Gold", + "description": "Passenger status" }, "phone": { "type": "string", "maxLength": 15, - "example": "123456789" + "example": "123456789", + "description": "Passenger phone number" }, "firstName": { "type": "string", "maxLength": 60, - "example": "John" + "example": "John", + "description": "Passenger first name" }, "lastName": { "type": "string", "maxLength": 60, - "example": "Doe" + "example": "Doe", + "description": "Passenger last name" }, "id": { "type": "string", "maxLength": 40, - "example": "AIR1234567" + "example": "AIR1234567", + "description": "Passenger ID" }, "email": { "type": "string", "maxLength": 50, - "example": "john.doe@example.com" + "example": "john.doe@example.com", + "description": "Passenger email" }, "nationality": { "type": "string", "maxLength": 2, - "example": "US" + "example": "US", + "description": "Passenger nationality" } } } } + }, + "invoiceDetails": { + "type": "object", + "properties": { + "invoiceNumber": { + "type": "string", + "maxLength": 255, + "example": "electronics", + "description": "Invoice number" + }, + "productDescription": { + "type": "string", + "maxLength": 255, + "example": "electronics", + "description": "Product description" + } + } } } }, @@ -152211,21 +156815,35 @@ "properties": { "cpf": { "type": "string", - "minLength": 11, "maxLength": 11, - "example": "12345678900" + "example": "12345678900", + "description": "CPF Number (Brazil). Must be 11 digits in length.\n" } } }, "merchantCustomerId": { "type": "string", "maxLength": 100, - "example": "M123456767" + "example": "M123456767", + "description": "The Merchant Customer ID\n" }, "companyTaxId": { "type": "string", "maxLength": 9, - "example": "" + "example": "", + "description": "The Company Tax ID\n" + }, + "dateOfBirth": { + "type": "string", + "maxLength": 10, + "example": "12/03/1976", + "description": "The date of birth\n" + }, + "language": { + "type": "string", + "maxLength": 10, + "example": "English", + "description": "The preferred language\n" } } }, @@ -152245,7 +156863,7 @@ "maxLength": 8, "example": "DEV12345" }, - "SolutionId": { + "solutionId": { "type": "string", "maxLength": 8, "example": "SOL1234" @@ -152260,12 +156878,20 @@ "challengeCode": { "type": "string", "maxLength": 2, - "example": "01" + "example": "01", + "description": "The challenge code\n" }, "messageCategory": { "type": "string", "maxLength": 2, - "example": "01" + "example": "01", + "description": "The message category\n" + }, + "acsWindowSize": { + "type": "string", + "maxLength": 2, + "example": "01", + "description": "The acs window size\n" } } }, @@ -152277,9 +156903,51 @@ "properties": { "name": { "type": "string", - "maxLength": 22, + "maxLength": 25, "example": "Euro Electronics", "description": "The name of the merchant" + }, + "alternateName": { + "type": "string", + "maxLength": 25, + "example": "Smyth Holdings PLC", + "description": "The alternate name of the merchant" + }, + "locality": { + "type": "string", + "maxLength": 50, + "example": "New York", + "description": "The locality of the merchant" + }, + "phone": { + "type": "string", + "maxLength": 15, + "example": "555-555-123", + "description": "The phone number of the merchant" + }, + "country": { + "type": "string", + "maxLength": 2, + "example": "US", + "description": "The country code of the merchant" + }, + "postalCode": { + "type": "string", + "maxLength": 10, + "example": "170056", + "description": "The postal code of the merchant" + }, + "administrativeArea": { + "type": "string", + "maxLength": 2, + "example": "NY", + "description": "The administrative area of the merchant" + }, + "address1": { + "type": "string", + "maxLength": 60, + "example": "123 47th Street", + "description": "The first line of the merchant's address" } } } @@ -152291,28 +156959,46 @@ "reconciliationId": { "type": "string", "maxLength": 60, - "example": "01234567" + "example": "01234567", + "description": "The reconciliation ID" }, "authorizationOptions": { "type": "object", "properties": { "aftIndicator": { "type": "boolean", - "example": true + "example": true, + "description": "The AFT indicator" + }, + "authIndicator": { + "type": "string", + "example": 1, + "description": "The authorization indicator" + }, + "ignoreCvResult": { + "type": "boolean", + "example": true, + "description": "Ignore the CV result" + }, + "ignoreAvsResult": { + "type": "boolean", + "example": true, + "description": "Ignore the AVS result" }, "initiator": { "type": "object", "properties": { "credentialStoredOnFile": { "type": "boolean", - "example": true + "example": true, + "description": "Store the credential on file" }, "merchantInitiatedTransaction": { "type": "object", "properties": { "reason": { "type": "string", - "maxLength": 1, + "maxLength": 2, "example": 1 } } @@ -152322,7 +157008,20 @@ "businessApplicationId": { "type": "string", "maxLength": 2, - "example": "AA" + "example": "AA", + "description": "The business application Id" + }, + "commerceIndicator": { + "type": "string", + "maxLength": 20, + "example": "INDICATOR", + "description": "The commerce indicator" + }, + "processingInstruction": { + "type": "string", + "maxLength": 50, + "example": "ORDER_SAVED_EXPLICITLY", + "description": "The processing instruction" } } } @@ -152361,14 +157060,26 @@ "administrativeArea": { "type": "string", "maxLength": 2, - "example": "Devon", + "example": "GB", "description": "The administrative area of the recipient" }, "accountType": { "type": "string", "maxLength": 2, - "example": "Checking", + "example": "01", "description": "The account type of the recipient" + }, + "dateOfBirth": { + "type": "string", + "maxLength": 8, + "example": "05111999", + "description": "The date of birth of the recipient" + }, + "postalCode": { + "type": "string", + "maxLength": 10, + "example": "170056", + "description": "The postal code of the recipient" } } }, @@ -152377,20 +157088,50 @@ "properties": { "key": { "type": "string", - "maxLength": 50, + "maxLength": 10, + "example": "1", "description": "The key or identifier for the merchant-defined data field" }, "value": { "type": "string", - "maxLength": 255, + "maxLength": 100, + "example": "123456", "description": "The value associated with the merchant-defined data field" } } + }, + "deviceInformation": { + "type": "object", + "properties": { + "ipAddress": { + "type": "string", + "maxLength": 45, + "example": "192.168.1.1", + "description": "The IP Address" + } + } + }, + "paymentInformation": { + "type": "object", + "properties": { + "card": { + "type": "object", + "properties": { + "typeSelectionIndicator": { + "type": "string", + "maxLength": 1, + "example": "0", + "description": "The card type selection indicator" + } + } + } + } } } }, "orderInformation": { "type": "object", + "description": "If you need to include any fields within the data object, you must use the orderInformation object that is nested inside the data object. This ensures proper structure and compliance with the Unified Checkout schema. This top-level orderInformation field is not intended for use when working with the data object.", "properties": { "amountDetails": { "type": "object", @@ -152674,7 +157415,7 @@ "example0": { "summary": "Generate Unified Checkout Capture Context", "value": { - "clientVersion": "0.31", + "clientVersion": "0.32", "targetOrigins": [ "https://yourCheckoutPage.com" ], @@ -152709,10 +157450,12 @@ "decisionManager": true, "consumerAuthentication": true }, - "orderInformation": { - "amountDetails": { - "totalAmount": "21.00", - "currency": "USD" + "data": { + "orderInformation": { + "amountDetails": { + "totalAmount": "21.00", + "currency": "USD" + } } } } @@ -152720,7 +157463,7 @@ "example1": { "summary": "Generate Unified Checkout Capture Context With Full List of Card Networks", "value": { - "clientVersion": "0.31", + "clientVersion": "0.32", "targetOrigins": [ "https://yourCheckoutPage.com" ], @@ -152784,7 +157527,7 @@ "example2": { "summary": "Generate Unified Checkout Capture Context With Custom Google Payment Options", "value": { - "clientVersion": "0.31", + "clientVersion": "0.32", "targetOrigins": [ "https://yourCheckoutPage.com" ], @@ -152840,7 +157583,7 @@ "example3": { "summary": "Generate Unified Checkout Capture Context With Autocheck Enrollment", "value": { - "clientVersion": "0.31", + "clientVersion": "0.32", "targetOrigins": [ "https://yourCheckoutPage.com" ], @@ -152890,7 +157633,7 @@ "example4": { "summary": "Generate Unified Checkout Capture Context (Opt-out of receiving card number prefix)", "value": { - "clientVersion": "0.31", + "clientVersion": "0.32", "targetOrigins": [ "https://yourCheckoutPage.com" ], @@ -152941,7 +157684,7 @@ "example5": { "summary": "Generate Unified Checkout Capture Context passing Billing & Shipping", "value": { - "clientVersion": "0.31", + "clientVersion": "0.32", "targetOrigins": [ "https://yourCheckoutPage.com" ], @@ -153036,7 +157779,7 @@ "example6": { "summary": "Generate Unified Checkout Capture Context For Click To Pay Drop-In UI", "value": { - "clientVersion": "0.31", + "clientVersion": "0.32", "targetOrigins": [ "https://yourCheckoutPage.com" ], @@ -153074,7 +157817,7 @@ "example7": { "summary": "Generate Unified Checkout Capture Context ($ Afterpay (US))", "value": { - "clientVersion": "0.31", + "clientVersion": "0.32", "targetOrigins": [ "https://yourCheckoutPage.com" ], @@ -153145,7 +157888,7 @@ "example8": { "summary": "Generate Unified Checkout Capture Context (Afterpay (CAN))", "value": { - "clientVersion": "0.31", + "clientVersion": "0.32", "targetOrigins": [ "https://yourCheckoutPage.com" ], @@ -153216,7 +157959,7 @@ "example9": { "summary": "Generate Unified Checkout Capture Context (Clearpay (GB))", "value": { - "clientVersion": "0.31", + "clientVersion": "0.32", "targetOrigins": [ "https://yourCheckoutPage.com" ], @@ -153289,7 +158032,7 @@ "example10": { "summary": "Generate Unified Checkout Capture Context (Afterpay (AU))", "value": { - "clientVersion": "0.31", + "clientVersion": "0.32", "targetOrigins": [ "https://yourCheckoutPage.com" ], @@ -153360,7 +158103,7 @@ "example11": { "summary": "Generate Unified Checkout Capture Context (Afterpay (NZ))", "value": { - "clientVersion": "0.31", + "clientVersion": "0.32", "targetOrigins": [ "https://yourCheckoutPage.com" ], @@ -153429,9 +158172,153 @@ "parentTag": "Unified Checkout with Alternate Payments (Buy Now, Pay Later)" }, "example12": { + "summary": "Generate Unified Checkout Capture Context (Bancontact (BE))", + "value": { + "clientVersion": "0.32", + "targetOrigins": [ + "https://yourCheckoutPage.com" + ], + "allowedCardNetworks": [ + "VISA", + "MASTERCARD", + "AMEX" + ], + "allowedPaymentTypes": [ + "APPLEPAY", + "CHECK", + "CLICKTOPAY", + "GOOGLEPAY", + "PANENTRY", + "PAZE", + "BANCONTACT" + ], + "country": "BE", + "locale": "fr_BE", + "captureMandate": { + "billingType": "FULL", + "requestEmail": true, + "requestPhone": true, + "requestShipping": true, + "shipToCountries": [ + "BE", + "NL", + "FR" + ], + "showAcceptedNetworkIcons": true + }, + "completeMandate": { + "type": "PREFER_AUTH", + "decisionManager": true, + "consumerAuthentication": true + }, + "data": { + "orderInformation": { + "amountDetails": { + "totalAmount": "21.00", + "currency": "EUR" + }, + "billTo": { + "email": "jean.dupont@example.com", + "firstName": "Jean", + "lastName": "Dupont", + "address1": "Avenue Louise 123", + "administrativeArea": "Brussels", + "buildingNumber": 123, + "country": "BE", + "locality": "Brussels", + "postalCode": "1050" + }, + "shipTo": { + "firstName": "Marie", + "lastName": "Dupont", + "address1": "Rue de la Loi 200", + "administrativeArea": "Brussels", + "buildingNumber": 200, + "country": "BE", + "locality": "Brussels", + "postalCode": "1040" + } + } + } + }, + "parentTag": "Unified Checkout with Alternate Payments (Online Bank Transfer)" + }, + "example13": { + "summary": "Generate Unified Checkout Capture Context (DragonPay (PH))", + "value": { + "clientVersion": "0.32", + "targetOrigins": [ + "https://yourCheckoutPage.com" + ], + "allowedCardNetworks": [ + "VISA", + "MASTERCARD", + "AMEX" + ], + "allowedPaymentTypes": [ + "APPLEPAY", + "CHECK", + "CLICKTOPAY", + "GOOGLEPAY", + "PANENTRY", + "PAZE", + "DRAGONPAY" + ], + "country": "PH", + "locale": "en-PH", + "captureMandate": { + "billingType": "FULL", + "requestEmail": true, + "requestPhone": true, + "requestShipping": true, + "shipToCountries": [ + "PH", + "SG", + "MY" + ], + "showAcceptedNetworkIcons": true + }, + "completeMandate": { + "type": "PREFER_AUTH", + "decisionManager": true, + "consumerAuthentication": true + }, + "data": { + "orderInformation": { + "amountDetails": { + "totalAmount": "121.00", + "currency": "PHP" + }, + "billTo": { + "email": "juan.dela.cruz@example.com", + "firstName": "Juan", + "lastName": "Dela Cruz", + "address1": "123 Ayala Avenue", + "administrativeArea": "NCR", + "buildingNumber": 123, + "country": "PH", + "locality": "Makati City", + "postalCode": "1226" + }, + "shipTo": { + "firstName": "Maria", + "lastName": "Dela Cruz", + "address1": "45 Ortigas Center", + "administrativeArea": "NCR", + "buildingNumber": 45, + "country": "PH", + "locality": "Pasig City", + "postalCode": "1605" + } + } + } + }, + "parentTag": "Unified Checkout with Alternate Payments (Online Bank Transfer)" + }, + "example14": { "summary": "Generate Unified Checkout Capture Context (iDEAL (NL))", "value": { - "clientVersion": "0.31", + "clientVersion": "0.32", "targetOrigins": [ "https://yourCheckoutPage.com" ], @@ -153499,10 +158386,10 @@ }, "parentTag": "Unified Checkout with Alternate Payments (Online Bank Transfer)" }, - "example13": { + "example15": { "summary": "Generate Unified Checkout Capture Context (Multibanco (PT))", "value": { - "clientVersion": "0.31", + "clientVersion": "0.32", "targetOrigins": [ "https://yourCheckoutPage.com" ], @@ -153571,10 +158458,83 @@ }, "parentTag": "Unified Checkout with Alternate Payments (Online Bank Transfer)" }, - "example14": { + "example16": { + "summary": "Generate Unified Checkout Capture Context (MyBank (IT))", + "value": { + "clientVersion": "0.32", + "targetOrigins": [ + "https://yourCheckoutPage.com" + ], + "allowedCardNetworks": [ + "VISA", + "MASTERCARD", + "AMEX" + ], + "allowedPaymentTypes": [ + "APPLEPAY", + "CHECK", + "CLICKTOPAY", + "GOOGLEPAY", + "PANENTRY", + "PAZE", + "MYBBT" + ], + "country": "IT", + "locale": "it-IT", + "captureMandate": { + "billingType": "FULL", + "requestEmail": true, + "requestPhone": true, + "requestShipping": true, + "shipToCountries": [ + "IT", + "ES", + "BE", + "PT" + ], + "showAcceptedNetworkIcons": true + }, + "completeMandate": { + "type": "PREFER_AUTH", + "decisionManager": true, + "consumerAuthentication": true + }, + "data": { + "orderInformation": { + "amountDetails": { + "totalAmount": "21.00", + "currency": "EUR" + }, + "billTo": { + "email": "mario.rossi@example.com", + "firstName": "Mario", + "lastName": "Rossi", + "address1": "Via Dante Alighieri 15", + "administrativeArea": "MI", + "buildingNumber": 15, + "country": "IT", + "locality": "Milano", + "postalCode": "20121" + }, + "shipTo": { + "firstName": "Lucia", + "lastName": "Rossi", + "address1": "Corso Vittorio Emanuele II 8", + "administrativeArea": "RM", + "buildingNumber": 8, + "country": "IT", + "locality": "Roma", + "postalCode": "00186" + } + } + } + }, + "parentTag": "Unified Checkout with Alternate Payments (Online Bank Transfer)" + }, + "example17": { "summary": "Generate Unified Checkout Capture Context (Przelewy24|P24 (PL))", "value": { - "clientVersion": "0.31", + "clientVersion": "0.32", "targetOrigins": [ "https://yourCheckoutPage.com" ], @@ -153643,10 +158603,10 @@ }, "parentTag": "Unified Checkout with Alternate Payments (Online Bank Transfer)" }, - "example15": { + "example18": { "summary": "Generate Unified Checkout Capture Context (Tink Pay By Bank (GB))", "value": { - "clientVersion": "0.31", + "clientVersion": "0.32", "targetOrigins": [ "https://yourCheckoutPage.com" ], @@ -153712,6 +158672,78 @@ } }, "parentTag": "Unified Checkout with Alternate Payments (Online Bank Transfer)" + }, + "example19": { + "summary": "Generate Unified Checkout Capture Context (Konbini (JP))", + "value": { + "clientVersion": "0.32", + "targetOrigins": [ + "https://yourCheckoutPage.com" + ], + "allowedCardNetworks": [ + "VISA", + "MASTERCARD", + "AMEX" + ], + "allowedPaymentTypes": [ + "APPLEPAY", + "CHECK", + "CLICKTOPAY", + "GOOGLEPAY", + "PANENTRY", + "PAZE", + "KONBINI" + ], + "country": "JP", + "locale": "ja-JP", + "captureMandate": { + "billingType": "FULL", + "requestEmail": true, + "requestPhone": true, + "requestShipping": true, + "shipToCountries": [ + "JP", + "US" + ], + "showAcceptedNetworkIcons": true + }, + "completeMandate": { + "type": "PREFER_AUTH", + "decisionManager": true, + "consumerAuthentication": true + }, + "data": { + "orderInformation": { + "amountDetails": { + "totalAmount": "21.00", + "currency": "JPY" + }, + "billTo": { + "email": "taro.suzuki@example.jp", + "firstName": "Taro", + "lastName": "Suzuki", + "address1": "1-9-1 Marunouchi", + "administrativeArea": "Tokyo", + "buildingNumber": 1, + "country": "JP", + "locality": "Chiyoda-ku", + "postalCode": "100-0005", + "phoneNumber": "0312345678" + }, + "shipTo": { + "firstName": "Hanako", + "lastName": "Suzuki", + "address1": "3-1-1 Umeda", + "administrativeArea": "Osaka", + "buildingNumber": 3, + "country": "JP", + "locality": "Kita-ku", + "postalCode": "530-0001" + } + } + } + }, + "parentTag": "Unified Checkout with Alternate Payments (Post-Pay Reference)" } }, "responses": { @@ -155215,7 +160247,7 @@ "authorizationType": [ "Json Web Token" ], - "overrideMerchantCredential": "echecktestdevcenter001", + "overrideMerchantCredential": "apiref_chase", "SDK_ONLY_AddDisclaimer": true }, "consumes": [ diff --git a/generator/cybersource-rest-spec.json b/generator/cybersource-rest-spec.json index 77d450b9..b3b3e590 100644 --- a/generator/cybersource-rest-spec.json +++ b/generator/cybersource-rest-spec.json @@ -65,6 +65,10 @@ "name": "payment-tokens", "description": "A payment-tokens is a service that is used for retrieving vault details or deleting vault id/payment method.\n" }, + { + "name": "Tokenize", + "description": "An orchestration resource used to combine multiple API calls into a single request.\n" + }, { "name": "Customer", "description": "A Customer can be linked to multiple Payment Instruments and Shipping Addresses.\nWith one Payment Instrument and Shipping Address designated as the default.\nIt stores merchant reference information for the Customer such as email and merchant defined data.\n" @@ -85,6 +89,10 @@ "name": "Instrument Identifier", "description": "An Instrument Identifier represents a unique card number(PAN) or bank account (echeck).\nIt can also be associated with a Network Token that can be used for payment transactions.\n" }, + { + "name": "Tokenized Card", + "description": "A Tokenized Card represents a Network Token that can be used for payment transactions.\n" + }, { "name": "Token", "description": "Token resources can act on different token types such as Customers, Payment Instruments or Instrument Identifiers.\n" @@ -3135,6 +3143,11 @@ "type": "string", "maxLength": 10, "description": "Acquirer country." + }, + "serviceProvidername": { + "type": "string", + "maxLength": 50, + "description": "Contains transfer service provider name." } } }, @@ -47498,10 +47511,10 @@ } } }, - "/tms/v2/customers": { + "/tms/v2/tokenize": { "post": { - "summary": "Create a Customer", - "description": "| | | |\n| --- | --- | --- |\n|**Customers**
A Customer represents your tokenized customer information.
You should associate the Customer Id with the customer account on your systems.
A Customer can have one or more [Payment Instruments](#token-management_customer-payment-instrument_create-a-customer-payment-instrumentl) or [Shipping Addresses](#token-management_customer-shipping-address_create-a-customer-shipping-address) with one allocated as the Customers default.

**Creating a Customer**
It is recommended you [create a Customer via a Payment Authorization](#payments_payments_process-a-payment_samplerequests-dropdown_authorization-with-token-create_authorization-with-customer-token-creation_liveconsole-tab-request-body), this can be for a zero amount.
The Customer will be created with a Payment Instrument and Shipping Address.
You can also [add additional Payment Instruments to a Customer via a Payment Authorization](#payments_payments_process-a-payment_samplerequests-dropdown_authorization-with-token-create_authorization-create-default-payment-instrument-shipping-address-for-existing-customer_liveconsole-tab-request-body).
In Europe: You should perform Payer Authentication alongside the Authorization.|      |**Payment Network Tokens**
Network tokens perform better than regular card numbers and they are not necessarily invalidated when a cardholder loses their card, or it expires.
A Payment Network Token will be automatically created and used in future payments if you are enabled for the service.
A Payment Network Token can also be [provisioned for an existing Instrument Identifier](#token-management_instrument-identifier_enroll-an-instrument-identifier-for-payment-network-token).
For more information about Payment Network Tokens see the Developer Guide.

**Payments with Customers**
To perform a payment with the Customers default details specify the [Customer Id in the payments request](#payments_payments_process-a-payment_samplerequests-dropdown_authorization-using-tokens_authorization-with-customer-token-id_liveconsole-tab-request-body).
To perform a payment with a particular Payment Instrument or Shipping Address
specify the [Payment Instrument or Shipping Address Ids in the payments request](#payments_payments_process-a-payment_samplerequests-dropdown_authorization-using-tokens_authorization-with-customer-payment-instrument-and-shipping-address-token-id_liveconsole-tab-request-body).\nThe availability of API features for a merchant may depend on the portfolio configuration and may need to be enabled at the portfolio level before they can be added to merchant accounts.\n", + "summary": "Tokenize", + "description": "| | | | \n| --- | --- | --- |\n|The **Tokenize API** endpoint facilitates the creation of various TMS tokens such as Customers, Payment Instruments, Shipping Addresses, and Instrument Identifiers in a single operation. The request includes a processingInformation object, which specifies **\"TOKEN_CREATE\"** and the types of tokens to be created. The **tokenInformation** section of the request includes detailed information relevant to each token type. This includes attributes for Customers, Payment Instruments, Shipping Addresses, Instrument Identifiers and Transient Token data. The payload is flexible, allowing for different combinations of tokens to be created in a single request.|      |The **API response** includes a responses array, which details the outcome of the tokenization process for each requested resource type, such as Customer, Payment Instrument, Shipping Address, and Instrument Identifier. Each entry in this array provides an HTTP status code such as **201/200 for successful creations**, and a unique identifier for the newly created token.
In cases where token creation encounters issues, the response includes a **non-2XX** status code and an errors array for the affected resource. Each error object in the array details the **error type and a descriptive message** providing insight into why a particular token creation was not attempted or failed.\n", "parameters": [ { "name": "profile-id", @@ -47514,154 +47527,53 @@ "x-hide-field": true }, { - "name": "postCustomerRequest", + "name": "postTokenizeRequest", "in": "body", "required": true, "schema": { "type": "object", "properties": { - "_links": { + "processingInformation": { "type": "object", - "readOnly": true, "properties": { - "self": { - "type": "object", - "readOnly": true, - "properties": { - "href": { - "type": "string", - "readOnly": true, - "description": "Link to the Customer.\n", - "example": "/tms/v2/customers/D9F340DD3DB9C276E053A2598D0A41A3" - } - } - }, - "paymentInstruments": { - "type": "object", - "readOnly": true, - "properties": { - "href": { - "type": "string", - "readOnly": true, - "description": "Link to the Customers Payment Instruments.\n", - "example": "/tms/v2/customers/D9F340DD3DB9C276E053A2598D0A41A3/payment-instruments" - } - } + "actionList": { + "type": "array", + "description": "Array of actions (one or more) to be included in the tokenize request.\n\nPossible Values:\n\n - `TOKEN_CREATE`: Use this when you want to create a token from the card/bank data in your tokenize request.\n", + "items": { + "type": "string" + }, + "example": [ + "TOKEN_CREATE" + ] }, - "shippingAddress": { - "type": "object", - "readOnly": true, - "properties": { - "href": { - "type": "string", - "readOnly": true, - "description": "Link to the Customers Shipping Addresses.\n", - "example": "/tms/v2/customers/D9F340DD3DB9C276E053A2598D0A41A3/shipping-addresses" - } - } + "actionTokenTypes": { + "type": "array", + "description": "TMS tokens types you want to perform the action on.\n\nPossible Values:\n- customer\n- paymentInstrument\n- instrumentIdentifier\n- shippingAddress\n- tokenizedCard\n", + "items": { + "type": "string" + }, + "example": [ + "customer", + "paymentInstrument", + "shippingAddress", + "instrumentIdentifier" + ] } } }, - "id": { - "type": "string", - "minLength": 1, - "maxLength": 32, - "description": "The Id of the Customer Token." - }, - "objectInformation": { + "tokenInformation": { "type": "object", "properties": { - "title": { + "jti": { "type": "string", - "description": "Name or title of the customer.\n", - "maxLength": 60 + "maxLength": 64, + "description": "TMS Transient Token, 64 hexadecimal id value representing captured payment credentials (including Sensitive Authentication Data, e.g. CVV).\n" }, - "comment": { - "type": "string", - "description": "Comments that you can make about the customer.\n", - "maxLength": 150 - } - } - }, - "buyerInformation": { - "type": "object", - "properties": { - "merchantCustomerID": { + "transientTokenJwt": { "type": "string", - "description": "Your identifier for the customer.\n", - "maxLength": 100 + "description": "Flex API Transient Token encoded as JWT (JSON Web Token), e.g. Flex microform or Unified Payment checkout result.\n" }, - "email": { - "type": "string", - "maxLength": 255, - "description": "Customer's primary email address, including the full domain name.\n" - } - } - }, - "clientReferenceInformation": { - "type": "object", - "properties": { - "code": { - "type": "string", - "description": "Client-generated order reference or tracking number.\n", - "maxLength": 50 - } - } - }, - "merchantDefinedInformation": { - "type": "array", - "description": "Object containing the custom data that the merchant defines.\n", - "items": { - "type": "object", - "properties": { - "name": { - "type": "string", - "description": "The number you assign as the name for your merchant-defined data or secure field. Possible Values are data1 to data4 and sensitive1 to sensitive4\n\nFor example, to set the name for merchant-defined data 2 field, you would reference merchantDefinedInformation[x].name as data2\nPossible Values:\n- data1\n- data2\n- data3\n- data4\n- sensitive1\n- sensitive2\n- sensitive3\n- sensitive4\n" - }, - "value": { - "type": "string", - "description": "The value you assign for your merchant-defined data field.\n\n**Warning** Merchant-defined data fields are not intended to and must not be used to capture personally identifying information. Accordingly, merchants are prohibited from capturing, obtaining, and/or transmitting any personally identifying information in or via the merchant-defined data fields. Personally identifying information includes, but is not\nlimited to, address, credit card number, social security number, driver's license number, state-issued identification number, passport number, and card verification numbers (CVV,\nCVC2, CVV2, CID, CVN). In the event it is discovered a merchant is capturing and/or transmitting personally identifying information via the merchant-defined data fields, whether or not intentionally, the merchant's account will immediately be suspended, which will result in a rejection of any and all transaction requests submitted by the merchant after the point of suspension.\n", - "maxLength": 100 - } - } - } - }, - "defaultPaymentInstrument": { - "type": "object", - "properties": { - "id": { - "type": "string", - "description": "The Id of the Customers default Payment Instrument\n" - } - } - }, - "defaultShippingAddress": { - "type": "object", - "properties": { - "id": { - "type": "string", - "description": "The Id of the Customers default Shipping Address\n" - } - } - }, - "metadata": { - "type": "object", - "readOnly": true, - "properties": { - "creator": { - "type": "string", - "readOnly": true, - "description": "The creator of the Customer.\n" - } - } - }, - "_embedded": { - "type": "object", - "readOnly": true, - "description": "Additional resources for the Customer.\n", - "properties": { - "defaultPaymentInstrument": { - "readOnly": true, + "customer": { "type": "object", "properties": { "_links": { @@ -47675,20 +47587,32 @@ "href": { "type": "string", "readOnly": true, - "description": "Link to the Payment Instrument.\n", + "description": "Link to the Customer.\n", + "example": "/tms/v2/customers/D9F340DD3DB9C276E053A2598D0A41A3" + } + } + }, + "paymentInstruments": { + "type": "object", + "readOnly": true, + "properties": { + "href": { + "type": "string", + "readOnly": true, + "description": "Link to the Customers Payment Instruments.\n", "example": "/tms/v2/customers/D9F340DD3DB9C276E053A2598D0A41A3/payment-instruments" } } }, - "customer": { + "shippingAddress": { "type": "object", "readOnly": true, "properties": { "href": { "type": "string", "readOnly": true, - "description": "Link to the Customer.\n", - "example": "/tms/v2/customers/D9F340DD3DB9C276E053A2598D0A41A3" + "description": "Link to the Customers Shipping Addresses.\n", + "example": "/tms/v2/customers/D9F340DD3DB9C276E053A2598D0A41A3/shipping-addresses" } } } @@ -47698,251 +47622,81 @@ "type": "string", "minLength": 1, "maxLength": 32, - "description": "The Id of the Payment Instrument Token." - }, - "object": { - "type": "string", - "readOnly": true, - "example": "paymentInstrument", - "description": "The type.\n\nPossible Values:\n- paymentInstrument\n" + "description": "The Id of the Customer Token." }, - "default": { - "type": "boolean", - "description": "Flag that indicates whether customer payment instrument is the dafault.\nPossible Values:\n - `true`: Payment instrument is customer's default.\n - `false`: Payment instrument is not customer's default.\n" - }, - "state": { - "type": "string", - "readOnly": true, - "example": "ACTIVE", - "description": "Issuers state for the card number.\nPossible Values:\n- ACTIVE\n- CLOSED : The account has been closed.\n" - }, - "type": { - "type": "string", - "readOnly": true, - "description": "The type of Payment Instrument.\nPossible Values:\n- cardHash\n" - }, - "bankAccount": { - "type": "object", - "properties": { - "type": { - "type": "string", - "maxLength": 18, - "description": "Account type.\n\nPossible Values:\n - checking : C\n - general ledger : G This value is supported only on Wells Fargo ACH\n - savings : S (U.S. dollars only)\n - corporate checking : X (U.S. dollars only)\n" - } - } - }, - "card": { + "objectInformation": { "type": "object", "properties": { - "expirationMonth": { - "type": "string", - "maxLength": 2, - "description": "Two-digit month in which the payment card expires.\n\nFormat: `MM`.\n\nPossible Values: `01` through `12`.\n" - }, - "expirationYear": { - "type": "string", - "maxLength": 4, - "description": "Four-digit year in which the credit card expires.\n\nFormat: `YYYY`.\n" - }, - "type": { - "type": "string", - "description": "Value that indicates the card type. Possible Values v2 : v1:\n * 001 : visa\n * 002 : mastercard - Eurocard\u2014European regional brand of Mastercard\n * 003 : american express\n * 004 : discover\n * 005 : diners club\n * 006 : carte blanche\n * 007 : jcb\n * 008 : optima\n * 011 : twinpay credit\n * 012 : twinpay debit\n * 013 : walmart\n * 014 : enRoute\n * 015 : lowes consumer\n * 016 : home depot consumer\n * 017 : mbna\n * 018 : dicks sportswear\n * 019 : casual corner\n * 020 : sears\n * 021 : jal\n * 023 : disney\n * 024 : maestro uk domestic\n * 025 : sams club consumer\n * 026 : sams club business\n * 028 : bill me later\n * 029 : bebe\n * 030 : restoration hardware\n * 031 : delta online \u2014 use this value only for Ingenico ePayments. For other processors, use 001 for all Visa card types.\n * 032 : solo\n * 033 : visa electron\n * 034 : dankort\n * 035 : laser\n * 036 : carte bleue \u2014 formerly Cartes Bancaires\n * 037 : carta si\n * 038 : pinless debit\n * 039 : encoded account\n * 040 : uatp\n * 041 : household\n * 042 : maestro international\n * 043 : ge money uk\n * 044 : korean cards\n * 045 : style\n * 046 : jcrew\n * 047 : payease china processing ewallet\n * 048 : payease china processing bank transfer\n * 049 : meijer private label\n * 050 : hipercard \u2014 supported only by the Comercio Latino processor.\n * 051 : aura \u2014 supported only by the Comercio Latino processor.\n * 052 : redecard\n * 054 : elo \u2014 supported only by the Comercio Latino processor.\n * 055 : capital one private label\n * 056 : synchrony private label\n * 057 : costco private label\n * 060 : mada\n * 062 : china union pay\n * 063 : falabella private label\n" - }, - "issueNumber": { - "type": "string", - "maxLength": 2, - "description": "Number of times a Maestro (UK Domestic) card has been issued to the account holder. The card might or might not have an issue number. The number can consist of one or two digits, and the first digit might be a zero. When you include this value in your request, include exactly what is printed on the card. A value of 2 is different than a value of 02. Do not include the field, even with a blank value, if the card is not a Maestro (UK Domestic) card.\n\n**Note** The issue number is not required for Maestro (UK Domestic) transactions.\n" - }, - "startMonth": { - "type": "string", - "maxLength": 2, - "description": "Month of the start of the Maestro (UK Domestic) card validity period. Do not include the field, even with a blank value, if the card is not a Maestro (UK Domestic) card. `Format: MM`.\nPossible Values: 01 through 12.\n\n**Note** The start date is not required for Maestro (UK Domestic) transactions.\n" - }, - "startYear": { + "title": { "type": "string", - "maxLength": 4, - "description": "Year of the start of the Maestro (UK Domestic) card validity period. Do not include the field, even with a blank value, if the card is not a Maestro (UK Domestic) card. `Format: YYYY`.\n\n**Note** The start date is not required for Maestro (UK Domestic) transactions.\n" + "description": "Name or title of the customer.\n", + "maxLength": 60 }, - "useAs": { + "comment": { "type": "string", - "example": "pinless debit", - "description": "'Payment Instrument was created / updated as part of a pinless debit transaction.'\n" - }, - "hash": { - "type": "string", - "minLength": 32, - "maxLength": 34, - "readOnly": true, - "description": "Hash value representing the card.\n" - }, - "tokenizedInformation": { - "type": "object", - "properties": { - "requestorID": { - "type": "string", - "maxLength": 11, - "description": "Value that identifies your business and indicates that the cardholder's account number is tokenized. This value\nis assigned by the token service provider and is unique within the token service provider's database.\n\n**Note** This field is supported only through **VisaNet** and **FDC Nashville Global**.\n" - }, - "transactionType": { - "type": "string", - "maxLength": 1, - "description": "Type of transaction that provided the token data. This value does not specify the token service provider; it\nspecifies the entity that provided you with information about the token.\n\nSet the value for this field to 1. An application on the customer's mobile device provided the token data.\n" - } - } + "description": "Comments that you can make about the customer.\n", + "maxLength": 150 } } }, "buyerInformation": { "type": "object", "properties": { - "companyTaxID": { - "type": "string", - "maxLength": 9, - "description": "Company's tax identifier. This is only used for eCheck service.\n" - }, - "currency": { + "merchantCustomerID": { "type": "string", - "maxLength": 3, - "description": "Currency used for the order. Use the three-character I[ISO Standard Currency Codes.](http://apps.cybersource.com/library/documentation/sbc/quickref/currencies.pdf)\n\nFor an authorization reversal (`reversalInformation`) or a capture (`processingOptions.capture` is set to `true`), you must use the same currency that you used in your payment authorization request.\n\n#### DCC for First Data\nYour local currency. For details, see the `currency` field description in [Dynamic Currency Conversion For First Data Using the SCMP API](http://apps.cybersource.com/library/documentation/dev_guides/DCC_FirstData_SCMP/DCC_FirstData_SCMP_API.pdf).\n# For details about currency as used in partial authorizations, see \"Features for Debit Cards and Prepaid Cards\" in the [Credit Card Services Using the SCMP API Guide](https://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html/)\n" + "description": "Your identifier for the customer.\n", + "maxLength": 100 }, - "dateOfBirth": { + "email": { "type": "string", - "format": "date", - "example": "1960-12-30", - "description": "Date of birth of the customer. Format: YYYY-MM-DD\n" - }, - "personalIdentification": { - "type": "array", - "items": { - "type": "object", - "properties": { - "id": { - "type": "string", - "maxLength": 26, - "description": "The value of the identification type.\n" - }, - "type": { - "type": "string", - "description": "The type of the identification.\n\nPossible Values:\n - driver license\n" - }, - "issuedBy": { - "type": "object", - "properties": { - "administrativeArea": { - "type": "string", - "description": "The State or province where the customer's driver's license was issued.\n\nUse the two-character State, Province, and Territory Codes for the United States and Canada.\n", - "maxLength": 20 - } - } - } - } - } + "maxLength": 255, + "description": "Customer's primary email address, including the full domain name.\n" } } }, - "billTo": { + "clientReferenceInformation": { "type": "object", "properties": { - "firstName": { - "type": "string", - "maxLength": 60, - "description": "Customer's first name. This name must be the same as the name on the card.\n" - }, - "lastName": { - "type": "string", - "maxLength": 60, - "description": "Customer's last name. This name must be the same as the name on the card.\n" - }, - "company": { - "type": "string", - "maxLength": 60, - "description": "Name of the customer's company.\n" - }, - "address1": { - "type": "string", - "maxLength": 60, - "description": "Payment card billing street address as it appears on the credit card issuer's records.\n" - }, - "address2": { - "type": "string", - "maxLength": 60, - "description": "Additional address information.\n" - }, - "locality": { - "type": "string", - "maxLength": 50, - "description": "Payment card billing city.\n" - }, - "administrativeArea": { - "type": "string", - "maxLength": 20, - "description": "State or province of the billing address. Use the State, Province, and Territory Codes for the United States\nand Canada.\n" - }, - "postalCode": { - "type": "string", - "maxLength": 10, - "description": "Postal code for the billing address. The postal code must consist of 5 to 9 digits.\n\nWhen the billing country is the U.S., the 9-digit postal code must follow this format:\n[5 digits][dash][4 digits]\n\n**Example** `12345-6789`\n\nWhen the billing country is Canada, the 6-digit postal code must follow this format:\n[alpha][numeric][alpha][space][numeric][alpha][numeric]\n\n**Example** `A1B 2C3`\n" - }, - "country": { + "code": { "type": "string", - "maxLength": 2, - "description": "Payment card billing country. Use the two-character ISO Standard Country Codes.\n" - }, - "email": { - "type": "string", - "maxLength": 255, - "description": "Customer's email address, including the full domain name.\n" - }, - "phoneNumber": { - "type": "string", - "maxLength": 15, - "description": "Customer's phone number.\n" + "description": "Client-generated order reference or tracking number.\n", + "maxLength": 50 } } }, - "processingInformation": { - "type": "object", - "title": "tmsPaymentInstrumentProcessingInfo", - "properties": { - "billPaymentProgramEnabled": { - "type": "boolean", - "description": "Flag that indicates that this is a payment for a bill or for an existing contractual loan.\nPossible Values:\n- `true`: Bill payment or loan payment.\n- `false` (default): Not a bill payment or loan payment.\n# For processor-specific details, see the `bill_payment` field description in [Credit Card Services Using the SCMP API.](https://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html/)\n" - }, - "bankTransferOptions": { - "type": "object", - "properties": { - "SECCode": { - "type": "string", - "maxLength": 3, - "description": "Specifies the authorization method for the transaction.\n\n#### TeleCheck\nPossible Values:\n- `ARC`: account receivable conversion\n- `CCD`: corporate cash disbursement\n- `POP`: point of purchase conversion\n- `PPD`: prearranged payment and deposit entry\n- `TEL`: telephone-initiated entry\n- `WEB`: internet-initiated entry\n\n# For details, see `ecp_sec_code` field description in the [Electronic Check Services Using the SCMP API Guide.](https://apps.cybersource.com/library/documentation/dev_guides/EChecks_SCMP_API/html/)\n" - } + "merchantDefinedInformation": { + "type": "array", + "description": "Object containing the custom data that the merchant defines.\n", + "items": { + "type": "object", + "properties": { + "name": { + "type": "string", + "description": "The number you assign as the name for your merchant-defined data or secure field. Possible Values are data1 to data4 and sensitive1 to sensitive4\n\nFor example, to set the name for merchant-defined data 2 field, you would reference merchantDefinedInformation[x].name as data2\nPossible Values:\n- data1\n- data2\n- data3\n- data4\n- sensitive1\n- sensitive2\n- sensitive3\n- sensitive4\n" + }, + "value": { + "type": "string", + "description": "The value you assign for your merchant-defined data field.\n\n**Warning** Merchant-defined data fields are not intended to and must not be used to capture personally identifying information. Accordingly, merchants are prohibited from capturing, obtaining, and/or transmitting any personally identifying information in or via the merchant-defined data fields. Personally identifying information includes, but is not\nlimited to, address, credit card number, social security number, driver's license number, state-issued identification number, passport number, and card verification numbers (CVV,\nCVC2, CVV2, CID, CVN). In the event it is discovered a merchant is capturing and/or transmitting personally identifying information via the merchant-defined data fields, whether or not intentionally, the merchant's account will immediately be suspended, which will result in a rejection of any and all transaction requests submitted by the merchant after the point of suspension.\n", + "maxLength": 100 } } } }, - "merchantInformation": { + "defaultPaymentInstrument": { "type": "object", "properties": { - "merchantDescriptor": { - "type": "object", - "properties": { - "alternateName": { - "type": "string", - "description": "Alternate contact information for your business,such as an email address or URL.\nThis value might be displayed on the cardholder's statement.\nWhen you do not include this value in your capture or credit request, the merchant URL from your CyberSource account is used.\nImportant This value must consist of English characters\n", - "maxLength": 13 - } - } + "id": { + "type": "string", + "description": "The Id of the Customers default Payment Instrument\n" } } }, - "instrumentIdentifier": { + "defaultShippingAddress": { "type": "object", "properties": { "id": { "type": "string", - "minLength": 12, - "maxLength": 32, - "description": "The Id of the Instrument Identifier linked to the Payment Instrument.\n" + "description": "The Id of the Customers default Shipping Address\n" } } }, @@ -47953,18 +47707,17 @@ "creator": { "type": "string", "readOnly": true, - "description": "The creator of the Payment Instrument.\n" + "description": "The creator of the Customer.\n" } } }, "_embedded": { "type": "object", "readOnly": true, - "description": "Additional resources for the Payment Instrument.\n", + "description": "Additional resources for the Customer.\n", "properties": { - "instrumentIdentifier": { + "defaultPaymentInstrument": { "readOnly": true, - "title": "tmsEmbeddedInstrumentIdentifier", "type": "object", "properties": { "_links": { @@ -47978,20 +47731,20 @@ "href": { "type": "string", "readOnly": true, - "description": "Link to the Instrument Identifier.\n", - "example": "tms/v1/instrumentidentifiers/7010000000016241111" + "description": "Link to the Payment Instrument.\n", + "example": "/tms/v2/customers/D9F340DD3DB9C276E053A2598D0A41A3/payment-instruments" } } }, - "paymentInstruments": { + "customer": { "type": "object", "readOnly": true, "properties": { "href": { "type": "string", "readOnly": true, - "description": "Link to the Instrument Identifiers Payment Instruments.\n", - "example": "tms/v1/instrumentidentifiers/7010000000016241111/paymentinstruments" + "description": "Link to the Customer.\n", + "example": "/tms/v2/customers/D9F340DD3DB9C276E053A2598D0A41A3" } } } @@ -47999,13 +47752,19 @@ }, "id": { "type": "string", - "description": "The Id of the Instrument Identifier Token.\n" + "minLength": 1, + "maxLength": 32, + "description": "The Id of the Payment Instrument Token." }, "object": { "type": "string", "readOnly": true, - "example": "instrumentIdentifier", - "description": "The type.\n\nPossible Values:\n- instrumentIdentifier\n" + "example": "paymentInstrument", + "description": "The type.\n\nPossible Values:\n- paymentInstrument\n" + }, + "default": { + "type": "boolean", + "description": "Flag that indicates whether customer payment instrument is the dafault.\nPossible Values:\n - `true`: Payment instrument is customer's default.\n - `false`: Payment instrument is not customer's default.\n" }, "state": { "type": "string", @@ -48015,35 +47774,22 @@ }, "type": { "type": "string", - "description": "The type of Instrument Identifier.\nPossible Values:\n- enrollable card\n- enrollable token\n" - }, - "source": { - "type": "string", - "description": "Source of the card details.\nPossible Values:\n- CONTACTLESS_TAP\n" + "readOnly": true, + "description": "The type of Payment Instrument.\nPossible Values:\n- cardHash\n" }, - "tokenProvisioningInformation": { + "bankAccount": { "type": "object", "properties": { - "consumerConsentObtained": { - "type": "boolean", - "description": "Flag that indicates whether the user consented to the tokenization of their credentials. Required for card network tokenization in certain markets, such as India.\nPossible Values:\n- `true`: Consumer has consented to tokenization of their credentials.\n- `false`: Consumer has not consented to tokenization of their credentials.\n" - }, - "multiFactorAuthenticated": { - "type": "boolean", - "description": "Flag that indicates whether AFA (Additional Factor of Authentication) for the PAN was completed. Required for card network tokenization in certain markets, such as India.\nPossible Values:\n- `true`: Consumer has been authenticated by the issuer.\n- `false`: Consumer has not been authenticated by the issuer.\n" + "type": { + "type": "string", + "maxLength": 18, + "description": "Account type.\n\nPossible Values:\n - checking : C\n - general ledger : G This value is supported only on Wells Fargo ACH\n - savings : S (U.S. dollars only)\n - corporate checking : X (U.S. dollars only)\n" } } }, "card": { "type": "object", - "description": "The expirationMonth, expirationYear and securityCode is sent to the issuer as part of network token enrollment and is not stored under the Instrument Identifier.\n", "properties": { - "number": { - "type": "string", - "minLength": 12, - "maxLength": 19, - "description": "The customer's payment card number, also known as the Primary Account Number (PAN). You can also use this field\nfor encoded account numbers.\n" - }, "expirationMonth": { "type": "string", "maxLength": 2, @@ -48054,474 +47800,94 @@ "maxLength": 4, "description": "Four-digit year in which the credit card expires.\n\nFormat: `YYYY`.\n" }, - "securityCode": { - "type": "string", - "maxLength": 4, - "description": "Card Verification Code. \nThis value is sent to the issuer to support the approval of a network token provision.\nIt is not persisted against the Instrument Identifier.\n" - } - } - }, - "pointOfSaleInformation": { - "type": "object", - "required": [ - "emvTags" - ], - "properties": { - "emvTags": { - "type": "array", - "minItems": 1, - "maxItems": 50, - "items": { - "type": "object", - "required": [ - "tag", - "value", - "source" - ], - "properties": { - "tag": { - "type": "string", - "minLength": 1, - "maxLength": 10, - "pattern": "^[0-9A-Fa-f]{1,10}$", - "description": "EMV tag, 1-10 hex characters." - }, - "value": { - "type": "string", - "minLength": 1, - "maxLength": 64, - "description": "EMV tag value, 1-64 characters." - }, - "source": { - "type": "string", - "description": "Source of the tag.\n\nPossible Values:\n - CARD\n - TERMINAL\n" - } - }, - "example": { - "tag": "5A", - "value": "4111111111111111", - "source": "CARD" - } - } - } - } - }, - "bankAccount": { - "type": "object", - "properties": { - "number": { - "type": "string", - "maxLength": 17, - "description": "Account number.\n\nWhen processing encoded account numbers, use this field for the encoded account number.\n" - }, - "routingNumber": { - "type": "string", - "description": "Bank routing number. This is also called the transit number.\n\n# For details, see `ecp_rdfi` field description in the [Electronic Check Services Using the SCMP API Guide.](https://apps.cybersource.com/library/documentation/dev_guides/EChecks_SCMP_API/html/)\n" - } - } - }, - "tokenizedCard": { - "title": "tmsv2TokenizedCard", - "type": "object", - "properties": { - "_links": { - "type": "object", - "readOnly": true, - "properties": { - "self": { - "type": "object", - "readOnly": true, - "properties": { - "href": { - "type": "string", - "readOnly": true, - "description": "Link to the Tokenized Card.\nexample: 'tms/v2/tokenized-cards/7010000000016241111'\n" - } - } - } - } - }, - "id": { - "type": "string", - "readOnly": true, - "description": "The Id of the Tokenized Card.\n" - }, - "object": { - "type": "string", - "readOnly": true, - "example": "tokenizedCard", - "description": "The type.\nPossible Values:\n- tokenizedCard\n" - }, - "accountReferenceId": { - "type": "string", - "description": "An identifier provided by the issuer for the account.\n" - }, - "consumerId": { - "type": "string", - "maxLength": 36, - "description": "Identifier of the consumer within the wallet. Maximum 24 characters for VTS." - }, - "createInstrumentIdentifier": { - "type": "boolean", - "description": "Specifies whether the InstrumentId should be created (true) or not (false).\nPossible Values:\n- `true`: The InstrumentId should be created.\n- `false`: The InstrumentId should be created.\n" - }, - "source": { - "type": "string", - "description": "Source of the card details.\nPossible Values:\n- ONFILE\n- TOKEN\n- ISSUER\n" - }, - "state": { - "type": "string", - "readOnly": true, - "example": "ACTIVE", - "description": "State of the network token or network token provision.\nPossible Values:\n ACTIVE : Network token is active.\n SUSPENDED : Network token is suspended. This state can change back to ACTIVE.\n DELETED : This is a final state for a network token instance.\n UNPROVISIONED : A previous network token.\n" - }, - "reason": { - "type": "string", - "readOnly": true, - "example": "ACTIVE", - "description": "Issuers state for the network token\nPossible Values:\n- INVALID_REQUEST : The network token provision request contained invalid data.\n- CARD_VERIFICATION_FAILED : The network token provision request contained data that could not be verified.\n- CARD_NOT_ELIGIBLE : Card can currently not be used with issuer for tokenization.\n- CARD_NOT_ALLOWED : Card can currently not be used with card association for tokenization.\n- DECLINED : Card can currently not be used with issuer for tokenization.\n- SERVICE_UNAVAILABLE : The network token service was unavailable or timed out.\n- SYSTEM_ERROR : An unexpected error occurred with network token service, check configuration.\n" - }, - "number": { - "type": "string", - "readOnly": true, - "description": "The token requestor's network token for the provided PAN and consumer Id, if available.\n" - }, - "expirationMonth": { - "type": "string", - "readOnly": true, - "description": "Two-digit month in which the network token expires.\nFormat: `MM`.\nPossible Values: `01` through `12`.\n" - }, - "expirationYear": { - "type": "string", - "readOnly": true, - "description": "Four-digit year in which the network token expires.\nFormat: `YYYY`.\n" - }, "type": { "type": "string", - "description": "The type of card (Card Network).\nPossible Values:\n- visa\n- mastercard\n- americanexpress\n" + "description": "Value that indicates the card type. Possible Values v2 : v1:\n * 001 : visa\n * 002 : mastercard - Eurocard\u2014European regional brand of Mastercard\n * 003 : american express\n * 004 : discover\n * 005 : diners club\n * 006 : carte blanche\n * 007 : jcb\n * 008 : optima\n * 011 : twinpay credit\n * 012 : twinpay debit\n * 013 : walmart\n * 014 : enRoute\n * 015 : lowes consumer\n * 016 : home depot consumer\n * 017 : mbna\n * 018 : dicks sportswear\n * 019 : casual corner\n * 020 : sears\n * 021 : jal\n * 023 : disney\n * 024 : maestro uk domestic\n * 025 : sams club consumer\n * 026 : sams club business\n * 028 : bill me later\n * 029 : bebe\n * 030 : restoration hardware\n * 031 : delta online \u2014 use this value only for Ingenico ePayments. For other processors, use 001 for all Visa card types.\n * 032 : solo\n * 033 : visa electron\n * 034 : dankort\n * 035 : laser\n * 036 : carte bleue \u2014 formerly Cartes Bancaires\n * 037 : carta si\n * 038 : pinless debit\n * 039 : encoded account\n * 040 : uatp\n * 041 : household\n * 042 : maestro international\n * 043 : ge money uk\n * 044 : korean cards\n * 045 : style\n * 046 : jcrew\n * 047 : payease china processing ewallet\n * 048 : payease china processing bank transfer\n * 049 : meijer private label\n * 050 : hipercard \u2014 supported only by the Comercio Latino processor.\n * 051 : aura \u2014 supported only by the Comercio Latino processor.\n * 052 : redecard\n * 054 : elo \u2014 supported only by the Comercio Latino processor.\n * 055 : capital one private label\n * 056 : synchrony private label\n * 057 : costco private label\n * 060 : mada\n * 062 : china union pay\n * 063 : falabella private label\n" }, - "cryptogram": { + "issueNumber": { "type": "string", - "readOnly": true, - "description": "Value generated by the card association to be used alongside the network token for processing a payment.\n", - "example": "CgAFRFYFPTFOfg5rj2ais9wQAAAAAM=" - }, - "securityCode": { - "type": "string", - "readOnly": true, - "description": "4-digit number generated by the card association to be used alogside the network token for processing a payment. Only supported for Amex and SCOF.\n", - "example": "4523" - }, - "eci": { - "type": "string", - "readOnly": true, - "description": "Raw Electronic Commerce Indicator provided by the card association with the result of the cardholder authentication.\n" + "maxLength": 2, + "description": "Number of times a Maestro (UK Domestic) card has been issued to the account holder. The card might or might not have an issue number. The number can consist of one or two digits, and the first digit might be a zero. When you include this value in your request, include exactly what is printed on the card. A value of 2 is different than a value of 02. Do not include the field, even with a blank value, if the card is not a Maestro (UK Domestic) card.\n\n**Note** The issue number is not required for Maestro (UK Domestic) transactions.\n" }, - "requestorId": { + "startMonth": { "type": "string", - "readOnly": true, - "maxLength": 11, - "description": "11-digit identifier that uniquely identifies the Token Requestor.\n" + "maxLength": 2, + "description": "Month of the start of the Maestro (UK Domestic) card validity period. Do not include the field, even with a blank value, if the card is not a Maestro (UK Domestic) card. `Format: MM`.\nPossible Values: 01 through 12.\n\n**Note** The start date is not required for Maestro (UK Domestic) transactions.\n" }, - "enrollmentId": { + "startYear": { "type": "string", - "readOnly": true, - "description": "Unique id to identify this PAN/ enrollment.\n" + "maxLength": 4, + "description": "Year of the start of the Maestro (UK Domestic) card validity period. Do not include the field, even with a blank value, if the card is not a Maestro (UK Domestic) card. `Format: YYYY`.\n\n**Note** The start date is not required for Maestro (UK Domestic) transactions.\n" }, - "tokenReferenceId": { + "useAs": { "type": "string", - "readOnly": true, - "description": "Unique ID for netwrok token.\n" + "example": "pinless debit", + "description": "'Payment Instrument was created / updated as part of a pinless debit transaction.'\n" }, - "paymentAccountReference": { + "hash": { "type": "string", + "minLength": 32, + "maxLength": 34, "readOnly": true, - "description": "Payment account reference.\n" + "description": "Hash value representing the card.\n" }, - "card": { + "tokenizedInformation": { "type": "object", - "description": "Card object used to create a network token\n", "properties": { - "number": { - "type": "string", - "minLength": 12, - "maxLength": 19, - "description": "The customer's payment card number, also known as the Primary Account Number (PAN).\n" - }, - "expirationMonth": { - "type": "string", - "maxLength": 2, - "description": "Two-digit month in which the payment card expires.\n\nFormat: `MM`.\n\nPossible Values: `01` through `12`.\n" - }, - "expirationYear": { - "type": "string", - "maxLength": 4, - "description": "Four-digit year in which the credit card expires.\n\nFormat: `YYYY`.\n" - }, - "type": { + "requestorID": { "type": "string", - "description": "The type of card (Card Network).\nPossible Values:\n- 001: visa\n" + "maxLength": 11, + "description": "Value that identifies your business and indicates that the cardholder's account number is tokenized. This value\nis assigned by the token service provider and is unique within the token service provider's database.\n\n**Note** This field is supported only through **VisaNet** and **FDC Nashville Global**.\n" }, - "suffix": { + "transactionType": { "type": "string", - "readOnly": true, - "description": "The customer's latest payment card number suffix.\n" - }, - "issueDate": { - "type": "string", - "readOnly": true, - "format": "date", - "description": "Card issuance date. XML date format: YYYY-MM-DD.", - "example": "2030-12-15" - }, - "activationDate": { - "type": "string", - "readOnly": true, - "format": "date", - "description": "Card activation date. XML date format: YYYY-MM-DD", - "example": "2030-12-20" - }, - "expirationPrinted": { - "type": "boolean", - "readOnly": true, - "description": "Indicates if the expiration date is printed on the card.", - "example": true - }, - "securityCodePrinted": { - "type": "boolean", - "readOnly": true, - "description": "Indicates if the Card Verification Number is printed on the card.", - "example": true - }, - "termsAndConditions": { - "type": "object", - "readOnly": true, - "properties": { - "url": { - "type": "string", - "readOnly": true, - "description": "Issuer Card Terms and Conditions url." - } - } - } - } - }, - "passcode": { - "type": "object", - "description": "Passcode by issuer for ID&V.\n", - "properties": { - "value": { - "type": "string", - "description": "OTP generated at issuer.\n" - } - } - }, - "metadata": { - "type": "object", - "readOnly": true, - "description": "Metadata associated with the tokenized card.\n", - "properties": { - "cardArt": { - "title": "TmsCardArt", - "description": "Card art associated with the tokenized card.\n", - "type": "object", - "readOnly": true, - "properties": { - "foregroundColor": { - "description": "Card foreground color.\n", - "type": "string", - "readOnly": true - }, - "combinedAsset": { - "description": "Combined card art asset associated with the tokenized card.\n", - "type": "object", - "readOnly": true, - "properties": { - "id": { - "type": "string", - "description": "Unique identifier for the asset\n" - }, - "_links": { - "type": "object", - "readOnly": true, - "properties": { - "self": { - "type": "object", - "readOnly": true, - "properties": { - "href": { - "type": "string", - "readOnly": true, - "description": "Link to the card art asset.\nexample: 'tms/v2/tokens/7020000000010603216/visa/assets/card-art-combined'\n" - } - } - } - } - } - } - }, - "brandLogoAsset": { - "description": "Brand logo card art asset associated with the tokenized card.\n", - "type": "object", - "readOnly": true, - "properties": { - "id": { - "type": "string", - "description": "Unique identifier for the asset\n" - }, - "_links": { - "type": "object", - "readOnly": true, - "properties": { - "self": { - "type": "object", - "readOnly": true, - "properties": { - "href": { - "type": "string", - "readOnly": true, - "description": "Link to the card art asset.\nexample: 'tms/v2/tokens/7020000000010603216/visa/assets/brand-logo'\n" - } - } - } - } - } - } - }, - "issuerLogoAsset": { - "description": "Issuer logo card art asset associated with the tokenized card.\n", - "type": "object", - "readOnly": true, - "properties": { - "id": { - "type": "string", - "description": "Unique identifier for the asset\n" - }, - "_links": { - "type": "object", - "readOnly": true, - "properties": { - "self": { - "type": "object", - "readOnly": true, - "properties": { - "href": { - "type": "string", - "readOnly": true, - "description": "Link to the card art asset.\nexample: 'tms/v2/tokens/7020000000010603216/visa/assets/issuer-logo'\n" - } - } - } - } - } - } - }, - "iconAsset": { - "description": "Icon card art asset associated with the tokenized card.\n", - "type": "object", - "readOnly": true, - "properties": { - "id": { - "type": "string", - "description": "Unique identifier for the asset\n" - }, - "_links": { - "type": "object", - "readOnly": true, - "properties": { - "self": { - "type": "object", - "readOnly": true, - "properties": { - "href": { - "type": "string", - "readOnly": true, - "description": "Link to the card art asset.\nexample: 'tms/v2/tokens/7020000000010603216/visa/assets/icon'\n" - } - } - } - } - } - } - } - } - }, - "issuer": { - "description": "Issuer associated with the tokenized card.\n", - "type": "object", - "readOnly": true, - "properties": { - "name": { - "description": "Issuer name.\n", - "type": "string", - "readOnly": true - }, - "shortDescription": { - "description": "Short description of the card.\n", - "type": "string", - "readOnly": true - }, - "longDescription": { - "description": "Long description of the card.\n", - "type": "string", - "readOnly": true - }, - "email": { - "type": "string", - "readOnly": true, - "description": "Issuer customer service email address." - }, - "phoneNumber": { - "type": "string", - "readOnly": true, - "description": "Issuer customer service phone number." - }, - "url": { - "type": "string", - "readOnly": true, - "description": "Issuer customer service url." - } - } + "maxLength": 1, + "description": "Type of transaction that provided the token data. This value does not specify the token service provider; it\nspecifies the entity that provided you with information about the token.\n\nSet the value for this field to 1. An application on the customer's mobile device provided the token data.\n" } } } } }, - "issuer": { + "buyerInformation": { "type": "object", - "readOnly": true, "properties": { - "paymentAccountReference": { + "companyTaxID": { "type": "string", - "readOnly": true, - "maxLength": 32, - "description": "This reference number serves as a link to the cardholder account and to all transactions for that account.\n" - } - } - }, - "processingInformation": { - "type": "object", - "properties": { - "authorizationOptions": { - "type": "object", - "title": "tmsAuthorizationOptions", - "properties": { - "initiator": { - "type": "object", - "properties": { - "merchantInitiatedTransaction": { - "type": "object", - "properties": { - "previousTransactionId": { - "type": "string", - "maxLength": 15, - "description": "Network transaction identifier that was returned in the payment response field _processorInformation.transactionID_\nin the reply message for either the original merchant-initiated payment in the series or the previous\nmerchant-initiated payment in the series.\n" - }, - "originalAuthorizedAmount": { - "type": "string", - "maxLength": 15, - "description": "Amount of the original authorization.\n" - } + "maxLength": 9, + "description": "Company's tax identifier. This is only used for eCheck service.\n" + }, + "currency": { + "type": "string", + "maxLength": 3, + "description": "Currency used for the order. Use the three-character I[ISO Standard Currency Codes.](http://apps.cybersource.com/library/documentation/sbc/quickref/currencies.pdf)\n\nFor an authorization reversal (`reversalInformation`) or a capture (`processingOptions.capture` is set to `true`), you must use the same currency that you used in your payment authorization request.\n\n#### DCC for First Data\nYour local currency. For details, see the `currency` field description in [Dynamic Currency Conversion For First Data Using the SCMP API](http://apps.cybersource.com/library/documentation/dev_guides/DCC_FirstData_SCMP/DCC_FirstData_SCMP_API.pdf).\n# For details about currency as used in partial authorizations, see \"Features for Debit Cards and Prepaid Cards\" in the [Credit Card Services Using the SCMP API Guide](https://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html/)\n" + }, + "dateOfBirth": { + "type": "string", + "format": "date", + "example": "1960-12-30", + "description": "Date of birth of the customer. Format: YYYY-MM-DD\n" + }, + "personalIdentification": { + "type": "array", + "items": { + "type": "object", + "properties": { + "id": { + "type": "string", + "maxLength": 26, + "description": "The value of the identification type.\n" + }, + "type": { + "type": "string", + "description": "The type of the identification.\n\nPossible Values:\n - driver license\n" + }, + "issuedBy": { + "type": "object", + "properties": { + "administrativeArea": { + "type": "string", + "description": "The State or province where the customer's driver's license was issued.\n\nUse the two-character State, Province, and Territory Codes for the United States and Canada.\n", + "maxLength": 20 } } } @@ -48532,7 +47898,4760 @@ }, "billTo": { "type": "object", - "description": "This information is sent to the issuer as part of network token enrollment and is not stored under the Instrument Identifier.\n", + "properties": { + "firstName": { + "type": "string", + "maxLength": 60, + "description": "Customer's first name. This name must be the same as the name on the card.\n" + }, + "lastName": { + "type": "string", + "maxLength": 60, + "description": "Customer's last name. This name must be the same as the name on the card.\n" + }, + "company": { + "type": "string", + "maxLength": 60, + "description": "Name of the customer's company.\n" + }, + "address1": { + "type": "string", + "maxLength": 60, + "description": "Payment card billing street address as it appears on the credit card issuer's records.\n" + }, + "address2": { + "type": "string", + "maxLength": 60, + "description": "Additional address information.\n" + }, + "locality": { + "type": "string", + "maxLength": 50, + "description": "Payment card billing city.\n" + }, + "administrativeArea": { + "type": "string", + "maxLength": 20, + "description": "State or province of the billing address. Use the State, Province, and Territory Codes for the United States\nand Canada.\n" + }, + "postalCode": { + "type": "string", + "maxLength": 10, + "description": "Postal code for the billing address. The postal code must consist of 5 to 9 digits.\n\nWhen the billing country is the U.S., the 9-digit postal code must follow this format:\n[5 digits][dash][4 digits]\n\n**Example** `12345-6789`\n\nWhen the billing country is Canada, the 6-digit postal code must follow this format:\n[alpha][numeric][alpha][space][numeric][alpha][numeric]\n\n**Example** `A1B 2C3`\n" + }, + "country": { + "type": "string", + "maxLength": 2, + "description": "Payment card billing country. Use the two-character ISO Standard Country Codes.\n" + }, + "email": { + "type": "string", + "maxLength": 255, + "description": "Customer's email address, including the full domain name.\n" + }, + "phoneNumber": { + "type": "string", + "maxLength": 15, + "description": "Customer's phone number.\n" + } + } + }, + "processingInformation": { + "type": "object", + "title": "tmsPaymentInstrumentProcessingInfo", + "properties": { + "billPaymentProgramEnabled": { + "type": "boolean", + "description": "Flag that indicates that this is a payment for a bill or for an existing contractual loan.\nPossible Values:\n- `true`: Bill payment or loan payment.\n- `false` (default): Not a bill payment or loan payment.\n# For processor-specific details, see the `bill_payment` field description in [Credit Card Services Using the SCMP API.](https://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html/)\n" + }, + "bankTransferOptions": { + "type": "object", + "properties": { + "SECCode": { + "type": "string", + "maxLength": 3, + "description": "Specifies the authorization method for the transaction.\n\n#### TeleCheck\nPossible Values:\n- `ARC`: account receivable conversion\n- `CCD`: corporate cash disbursement\n- `POP`: point of purchase conversion\n- `PPD`: prearranged payment and deposit entry\n- `TEL`: telephone-initiated entry\n- `WEB`: internet-initiated entry\n\n# For details, see `ecp_sec_code` field description in the [Electronic Check Services Using the SCMP API Guide.](https://apps.cybersource.com/library/documentation/dev_guides/EChecks_SCMP_API/html/)\n" + } + } + } + } + }, + "merchantInformation": { + "type": "object", + "title": "TmsMerchantInformation", + "properties": { + "merchantDescriptor": { + "type": "object", + "properties": { + "alternateName": { + "type": "string", + "description": "Alternate contact information for your business,such as an email address or URL.\nThis value might be displayed on the cardholder's statement.\nWhen you do not include this value in your capture or credit request, the merchant URL from your CyberSource account is used.\nImportant This value must consist of English characters\n", + "maxLength": 13 + } + } + } + } + }, + "instrumentIdentifier": { + "type": "object", + "properties": { + "id": { + "type": "string", + "minLength": 12, + "maxLength": 32, + "description": "The Id of the Instrument Identifier linked to the Payment Instrument.\n" + } + } + }, + "metadata": { + "type": "object", + "readOnly": true, + "properties": { + "creator": { + "type": "string", + "readOnly": true, + "description": "The creator of the Payment Instrument.\n" + } + } + }, + "_embedded": { + "type": "object", + "readOnly": true, + "description": "Additional resources for the Payment Instrument.\n", + "properties": { + "instrumentIdentifier": { + "readOnly": true, + "title": "tmsEmbeddedInstrumentIdentifier", + "type": "object", + "properties": { + "_links": { + "type": "object", + "readOnly": true, + "properties": { + "self": { + "type": "object", + "readOnly": true, + "properties": { + "href": { + "type": "string", + "readOnly": true, + "description": "Link to the Instrument Identifier.\n", + "example": "tms/v1/instrumentidentifiers/7010000000016241111" + } + } + }, + "paymentInstruments": { + "type": "object", + "readOnly": true, + "properties": { + "href": { + "type": "string", + "readOnly": true, + "description": "Link to the Instrument Identifiers Payment Instruments.\n", + "example": "tms/v1/instrumentidentifiers/7010000000016241111/paymentinstruments" + } + } + } + } + }, + "id": { + "type": "string", + "description": "The Id of the Instrument Identifier Token.\n" + }, + "object": { + "type": "string", + "readOnly": true, + "example": "instrumentIdentifier", + "description": "The type.\n\nPossible Values:\n- instrumentIdentifier\n" + }, + "state": { + "type": "string", + "readOnly": true, + "example": "ACTIVE", + "description": "Issuers state for the card number.\nPossible Values:\n- ACTIVE\n- CLOSED : The account has been closed.\n" + }, + "type": { + "type": "string", + "description": "The type of Instrument Identifier.\nPossible Values:\n- enrollable card\n- enrollable token\n" + }, + "source": { + "type": "string", + "description": "Source of the card details.\nPossible Values:\n- CONTACTLESS_TAP\n" + }, + "tokenProvisioningInformation": { + "type": "object", + "properties": { + "consumerConsentObtained": { + "type": "boolean", + "description": "Flag that indicates whether the user consented to the tokenization of their credentials. Required for card network tokenization in certain markets, such as India.\nPossible Values:\n- `true`: Consumer has consented to tokenization of their credentials.\n- `false`: Consumer has not consented to tokenization of their credentials.\n" + }, + "multiFactorAuthenticated": { + "type": "boolean", + "description": "Flag that indicates whether AFA (Additional Factor of Authentication) for the PAN was completed. Required for card network tokenization in certain markets, such as India.\nPossible Values:\n- `true`: Consumer has been authenticated by the issuer.\n- `false`: Consumer has not been authenticated by the issuer.\n" + } + } + }, + "card": { + "type": "object", + "description": "The expirationMonth, expirationYear and securityCode is sent to the issuer as part of network token enrollment and is not stored under the Instrument Identifier.\n", + "properties": { + "number": { + "type": "string", + "minLength": 12, + "maxLength": 19, + "description": "The customer's payment card number, also known as the Primary Account Number (PAN). You can also use this field\nfor encoded account numbers.\n" + }, + "expirationMonth": { + "type": "string", + "maxLength": 2, + "description": "Two-digit month in which the payment card expires.\n\nFormat: `MM`.\n\nPossible Values: `01` through `12`.\n" + }, + "expirationYear": { + "type": "string", + "maxLength": 4, + "description": "Four-digit year in which the credit card expires.\n\nFormat: `YYYY`.\n" + }, + "securityCode": { + "type": "string", + "maxLength": 4, + "description": "Card Verification Code. \nThis value is sent to the issuer to support the approval of a network token provision.\nIt is not persisted against the Instrument Identifier.\n" + } + } + }, + "pointOfSaleInformation": { + "type": "object", + "required": [ + "emvTags" + ], + "properties": { + "emvTags": { + "type": "array", + "minItems": 1, + "maxItems": 50, + "items": { + "type": "object", + "required": [ + "tag", + "value", + "source" + ], + "properties": { + "tag": { + "type": "string", + "minLength": 1, + "maxLength": 10, + "pattern": "^[0-9A-Fa-f]{1,10}$", + "description": "EMV tag, 1-10 hex characters." + }, + "value": { + "type": "string", + "minLength": 1, + "maxLength": 64, + "description": "EMV tag value, 1-64 characters." + }, + "source": { + "type": "string", + "description": "Source of the tag.\n\nPossible Values:\n - CARD\n - TERMINAL\n" + } + }, + "example": { + "tag": "5A", + "value": "4111111111111111", + "source": "CARD" + } + } + } + } + }, + "bankAccount": { + "type": "object", + "properties": { + "number": { + "type": "string", + "maxLength": 17, + "description": "Account number.\n\nWhen processing encoded account numbers, use this field for the encoded account number.\n" + }, + "routingNumber": { + "type": "string", + "description": "Bank routing number. This is also called the transit number.\n\n# For details, see `ecp_rdfi` field description in the [Electronic Check Services Using the SCMP API Guide.](https://apps.cybersource.com/library/documentation/dev_guides/EChecks_SCMP_API/html/)\n" + } + } + }, + "tokenizedCard": { + "title": "tmsv2TokenizedCard", + "type": "object", + "properties": { + "_links": { + "type": "object", + "readOnly": true, + "properties": { + "self": { + "type": "object", + "readOnly": true, + "properties": { + "href": { + "type": "string", + "readOnly": true, + "description": "Link to the Tokenized Card.\nexample: 'tms/v2/tokenized-cards/7010000000016241111'\n" + } + } + } + } + }, + "id": { + "type": "string", + "readOnly": true, + "description": "The Id of the Tokenized Card.\n" + }, + "object": { + "type": "string", + "readOnly": true, + "example": "tokenizedCard", + "description": "The type.\nPossible Values:\n- tokenizedCard\n" + }, + "accountReferenceId": { + "type": "string", + "description": "An identifier provided by the issuer for the account.\n" + }, + "consumerId": { + "type": "string", + "maxLength": 36, + "description": "Identifier of the consumer within the wallet. Maximum 24 characters for VTS." + }, + "createInstrumentIdentifier": { + "type": "boolean", + "description": "Specifies whether the InstrumentId should be created (true) or not (false).\nPossible Values:\n- `true`: The InstrumentId should be created.\n- `false`: The InstrumentId should be created.\n" + }, + "source": { + "type": "string", + "description": "Source of the card details.\nPossible Values:\n- ONFILE\n- TOKEN\n- ISSUER\n" + }, + "state": { + "type": "string", + "readOnly": true, + "example": "ACTIVE", + "description": "State of the network token or network token provision.\nPossible Values:\n ACTIVE : Network token is active.\n SUSPENDED : Network token is suspended. This state can change back to ACTIVE.\n DELETED : This is a final state for a network token instance.\n UNPROVISIONED : A previous network token.\n" + }, + "reason": { + "type": "string", + "readOnly": true, + "example": "ACTIVE", + "description": "Issuers state for the network token\nPossible Values:\n- INVALID_REQUEST : The network token provision request contained invalid data.\n- CARD_VERIFICATION_FAILED : The network token provision request contained data that could not be verified.\n- CARD_NOT_ELIGIBLE : Card can currently not be used with issuer for tokenization.\n- CARD_NOT_ALLOWED : Card can currently not be used with card association for tokenization.\n- DECLINED : Card can currently not be used with issuer for tokenization.\n- SERVICE_UNAVAILABLE : The network token service was unavailable or timed out.\n- SYSTEM_ERROR : An unexpected error occurred with network token service, check configuration.\n" + }, + "number": { + "type": "string", + "readOnly": true, + "description": "The token requestor's network token for the provided PAN and consumer Id, if available.\n" + }, + "expirationMonth": { + "type": "string", + "readOnly": true, + "description": "Two-digit month in which the network token expires.\nFormat: `MM`.\nPossible Values: `01` through `12`.\n" + }, + "expirationYear": { + "type": "string", + "readOnly": true, + "description": "Four-digit year in which the network token expires.\nFormat: `YYYY`.\n" + }, + "type": { + "type": "string", + "description": "The type of card (Card Network).\nPossible Values:\n- visa\n- mastercard\n- americanexpress\n" + }, + "cryptogram": { + "type": "string", + "readOnly": true, + "description": "Value generated by the card association to be used alongside the network token for processing a payment.\n", + "example": "CgAFRFYFPTFOfg5rj2ais9wQAAAAAM=" + }, + "securityCode": { + "type": "string", + "readOnly": true, + "description": "4-digit number generated by the card association to be used alogside the network token for processing a payment. Only supported for Amex and SCOF.\n", + "example": "4523" + }, + "eci": { + "type": "string", + "readOnly": true, + "description": "Raw Electronic Commerce Indicator provided by the card association with the result of the cardholder authentication.\n" + }, + "requestorId": { + "type": "string", + "readOnly": true, + "maxLength": 11, + "description": "11-digit identifier that uniquely identifies the Token Requestor.\n" + }, + "enrollmentId": { + "type": "string", + "readOnly": true, + "description": "Unique id to identify this PAN/ enrollment.\n" + }, + "tokenReferenceId": { + "type": "string", + "readOnly": true, + "description": "Unique ID for netwrok token.\n" + }, + "paymentAccountReference": { + "type": "string", + "readOnly": true, + "description": "Payment account reference.\n" + }, + "card": { + "type": "object", + "description": "Card object used to create a network token\n", + "properties": { + "number": { + "type": "string", + "minLength": 12, + "maxLength": 19, + "description": "The customer's payment card number, also known as the Primary Account Number (PAN).\n" + }, + "expirationMonth": { + "type": "string", + "maxLength": 2, + "description": "Two-digit month in which the payment card expires.\n\nFormat: `MM`.\n\nPossible Values: `01` through `12`.\n" + }, + "expirationYear": { + "type": "string", + "maxLength": 4, + "description": "Four-digit year in which the credit card expires.\n\nFormat: `YYYY`.\n" + }, + "type": { + "type": "string", + "description": "The type of card (Card Network).\nPossible Values:\n- 001: visa\n" + }, + "suffix": { + "type": "string", + "readOnly": true, + "description": "The customer's latest payment card number suffix.\n" + }, + "issueDate": { + "type": "string", + "readOnly": true, + "format": "date", + "description": "Card issuance date. XML date format: YYYY-MM-DD.", + "example": "2030-12-15" + }, + "activationDate": { + "type": "string", + "readOnly": true, + "format": "date", + "description": "Card activation date. XML date format: YYYY-MM-DD", + "example": "2030-12-20" + }, + "expirationPrinted": { + "type": "boolean", + "readOnly": true, + "description": "Indicates if the expiration date is printed on the card.", + "example": true + }, + "securityCodePrinted": { + "type": "boolean", + "readOnly": true, + "description": "Indicates if the Card Verification Number is printed on the card.", + "example": true + }, + "termsAndConditions": { + "type": "object", + "readOnly": true, + "properties": { + "url": { + "type": "string", + "readOnly": true, + "description": "Issuer Card Terms and Conditions url." + } + } + } + } + }, + "passcode": { + "type": "object", + "description": "Passcode by issuer for ID&V.\n", + "properties": { + "value": { + "type": "string", + "description": "OTP generated at issuer.\n" + } + } + }, + "metadata": { + "type": "object", + "readOnly": true, + "description": "Metadata associated with the tokenized card.\n", + "properties": { + "cardArt": { + "title": "TmsCardArt", + "description": "Card art associated with the tokenized card.\n", + "type": "object", + "readOnly": true, + "properties": { + "foregroundColor": { + "description": "Card foreground color.\n", + "type": "string", + "readOnly": true + }, + "combinedAsset": { + "description": "Combined card art asset associated with the tokenized card.\n", + "type": "object", + "readOnly": true, + "properties": { + "id": { + "type": "string", + "description": "Unique identifier for the asset\n" + }, + "_links": { + "type": "object", + "readOnly": true, + "properties": { + "self": { + "type": "object", + "readOnly": true, + "properties": { + "href": { + "type": "string", + "readOnly": true, + "description": "Link to the card art asset.\nexample: 'tms/v2/tokens/7020000000010603216/visa/assets/card-art-combined'\n" + } + } + } + } + } + } + }, + "brandLogoAsset": { + "description": "Brand logo card art asset associated with the tokenized card.\n", + "type": "object", + "readOnly": true, + "properties": { + "id": { + "type": "string", + "description": "Unique identifier for the asset\n" + }, + "_links": { + "type": "object", + "readOnly": true, + "properties": { + "self": { + "type": "object", + "readOnly": true, + "properties": { + "href": { + "type": "string", + "readOnly": true, + "description": "Link to the card art asset.\nexample: 'tms/v2/tokens/7020000000010603216/visa/assets/brand-logo'\n" + } + } + } + } + } + } + }, + "issuerLogoAsset": { + "description": "Issuer logo card art asset associated with the tokenized card.\n", + "type": "object", + "readOnly": true, + "properties": { + "id": { + "type": "string", + "description": "Unique identifier for the asset\n" + }, + "_links": { + "type": "object", + "readOnly": true, + "properties": { + "self": { + "type": "object", + "readOnly": true, + "properties": { + "href": { + "type": "string", + "readOnly": true, + "description": "Link to the card art asset.\nexample: 'tms/v2/tokens/7020000000010603216/visa/assets/issuer-logo'\n" + } + } + } + } + } + } + }, + "iconAsset": { + "description": "Icon card art asset associated with the tokenized card.\n", + "type": "object", + "readOnly": true, + "properties": { + "id": { + "type": "string", + "description": "Unique identifier for the asset\n" + }, + "_links": { + "type": "object", + "readOnly": true, + "properties": { + "self": { + "type": "object", + "readOnly": true, + "properties": { + "href": { + "type": "string", + "readOnly": true, + "description": "Link to the card art asset.\nexample: 'tms/v2/tokens/7020000000010603216/visa/assets/icon'\n" + } + } + } + } + } + } + } + } + }, + "issuer": { + "description": "Issuer associated with the tokenized card.\n", + "type": "object", + "readOnly": true, + "properties": { + "name": { + "description": "Issuer name.\n", + "type": "string", + "readOnly": true + }, + "shortDescription": { + "description": "Short description of the card.\n", + "type": "string", + "readOnly": true + }, + "longDescription": { + "description": "Long description of the card.\n", + "type": "string", + "readOnly": true + }, + "email": { + "type": "string", + "readOnly": true, + "description": "Issuer customer service email address." + }, + "phoneNumber": { + "type": "string", + "readOnly": true, + "description": "Issuer customer service phone number." + }, + "url": { + "type": "string", + "readOnly": true, + "description": "Issuer customer service url." + } + } + } + } + } + } + }, + "issuer": { + "type": "object", + "readOnly": true, + "properties": { + "paymentAccountReference": { + "type": "string", + "readOnly": true, + "maxLength": 32, + "description": "This reference number serves as a link to the cardholder account and to all transactions for that account.\n" + } + } + }, + "processingInformation": { + "type": "object", + "properties": { + "authorizationOptions": { + "type": "object", + "title": "tmsAuthorizationOptions", + "properties": { + "initiator": { + "type": "object", + "properties": { + "merchantInitiatedTransaction": { + "type": "object", + "properties": { + "previousTransactionId": { + "type": "string", + "maxLength": 15, + "description": "Network transaction identifier that was returned in the payment response field _processorInformation.transactionID_\nin the reply message for either the original merchant-initiated payment in the series or the previous\nmerchant-initiated payment in the series.\n" + }, + "originalAuthorizedAmount": { + "type": "string", + "maxLength": 15, + "description": "Amount of the original authorization.\n" + } + } + } + } + } + } + } + } + }, + "billTo": { + "type": "object", + "description": "This information is sent to the issuer as part of network token enrollment and is not stored under the Instrument Identifier.\n", + "properties": { + "address1": { + "type": "string", + "maxLength": 60, + "description": "Payment card billing street address as it appears on the credit card issuer's records.\n" + }, + "address2": { + "type": "string", + "maxLength": 60, + "description": "Additional address information.\n" + }, + "locality": { + "type": "string", + "maxLength": 50, + "description": "Payment card billing city.\n" + }, + "administrativeArea": { + "type": "string", + "maxLength": 20, + "description": "State or province of the billing address. Use the State, Province, and Territory Codes for the United States\nand Canada.\n" + }, + "postalCode": { + "type": "string", + "maxLength": 10, + "description": "Postal code for the billing address. The postal code must consist of 5 to 9 digits.\n\nWhen the billing country is the U.S., the 9-digit postal code must follow this format:\n[5 digits][dash][4 digits]\n\n**Example** `12345-6789`\n\nWhen the billing country is Canada, the 6-digit postal code must follow this format:\n[alpha][numeric][alpha][space][numeric][alpha][numeric]\n\n**Example** `A1B 2C3`\n" + }, + "country": { + "type": "string", + "maxLength": 2, + "description": "Payment card billing country. Use the two-character ISO Standard Country Codes.\n" + } + } + }, + "metadata": { + "type": "object", + "readOnly": true, + "properties": { + "creator": { + "type": "string", + "readOnly": true, + "description": "The creator of the Instrument Identifier." + } + } + }, + "_embedded": { + "type": "object", + "readOnly": true, + "properties": { + "binLookup": { + "title": "TmsBinLookup", + "description": "Bin Information of the PAN provided by BinLookUp Service. This is only retrieved when retrieveBinDetails=true is passed as a query parameter.\n", + "readOnly": true, + "type": "object", + "properties": { + "paymentAccountInformation": { + "type": "object", + "properties": { + "card": { + "type": "object", + "properties": { + "type": { + "type": "string", + "maxLength": 3, + "description": "This field contains a 3-digit numeric value that indicates the card type within Cybersource eco-system.\nPossible values from BIN Lookup Service (based on availability and enablement):\n- `000`: Unsupported Card Type\n- `001`: Visa\n- `002`: Mastercard\n- `003`: American Express\n- `004`: Discover\n- `005`: Diners Club\n- `007`: JCB\n- `036`: Cartes Bancaire\n- `042`: Maestro\n- `054`: Elo\n- `058`: Carnet\n- `060`: MADA\n- `061`: RuPay\n- `062`: China UnionPay\n- `064`: Prompt Card\n- `067`: Meeza\n- `068`: PayPak\n- `070`: EFTPOS\n- `081`: Jaywan\n- `082`: TPN\n\nGlossary of possible values in the payments ecosystem:\n- `001`: Visa\n- `002`: Mastercard\n- `003`: American Express\n- `004`: Discover\n- `005`: Diners Club\n- `006`: Carte Blanche\n- `007`: JCB\n- `008`: Optima\n- `009`: GE Private Label\n- `010`: Beneficial Private Label\n- `011`: Twinpay Credit Card\n- `012`: Twinpay Debit Card\n- `013`: Walmart\n- `014`: EnRoute\n- `015`: Lowe's Consumer\n- `016`: Home Depot Consumer\n- `017`: MBNA\n- `018`: Dick's Sportwear\n- `019`: Casual Corner\n- `020`: Sears\n- `021`: JAL\n- `023`: Disney Card\n- `024`: Switch/Solo\n- `025`: Sam's Club Consumer\n- `026`: Sam's Club Business\n- `027`: Nico's\n- `028`: Paymentech Bill Me Later\n- `029`: Bebe\n- `030`: Restoration Hardware\n- `031`: Delta Online\n- `032`: Solo\n- `033`: Visa Electron\n- `034`: Dankort\n- `035`: Laser\n- `036`: Cartes Bancaire\n- `037`: Carta Si\n- `040`: UATP\n- `041`: HOUSEHOLD\n- `042`: Maestro\n- `043`: GE MONEY\n- `044`: Korean Cards\n- `045`: Style Cards\n- `046`: J.Crew\n- `047`: Payeasecn eWallet\n- `048`: Payeasecn Bank Transfer\n- `049`: Meijer\n- `050`: Hipercard\n- `051`: Aura\n- `052`: Redecard\n- `053`: Orico Card\n- `054`: Elo\n- `055`: Capital One Private Label\n- `057`: Costco Private Label\n- `058`: Carnet\n- `059`: ValueLink\n- `060`: MADA\n- `061`: RuPay\n- `062`: China UnionPay\n- `063`: Falabella Private Label\n- `064`: Prompt Card\n- `065`: Korean Domestic\n- `066`: Banricompras\n- `067`: Meeza\n- `068`: PayPak\n- `070`: EFTPOS\n- `071`: Codensa\n- `072`: Olimpica\n- `073`: Colsubsidio\n- `074`: Tuya\n- `075`: Sodexo\n- `076`: Naranja\n- `077`: Cabal\n- `078`: DINELCO\n- `079`: PANAL\n- `080`: EPM\n- `081`: Jaywan\n- `082`: TPN\n" + }, + "brandName": { + "type": "string", + "maxLength": 20, + "description": "This field contains the card brand name. \n\nSome of the possible values (not an exhaustive list) are -\n\n - VISA\n - MASTERCARD\n - AMERICAN EXPRESS\n - DISCOVER\n - DINERS CLUB\n - CARTE BLANCHE\n - JCB\n - OPTIMA\n - TWINPAY CREDIT CARD\n - TWINPAY DEBIT CARD\n - WALMART\n - ENROUTE\n - LOWES CONSUMER\n - HOME DEPOT CONSUMER\n - MBNA\n - DICKS SPORTWEAR\n - CASUAL CORNER\n - SEARS\n - JAL\n - DISNEY CARD\n - SWITCH/SOLO\n - SAMS CLUB CONSUMER\n - SAMS CLUB BUSINESS\n - NICOS HOUSE CARD\n - BEBE\n - RESTORATION HARDWARE\n - DELTA ONLINE\n - SOLO\n - VISA ELECTRON\n - DANKORT\n - LASER\n - CARTE BANCAIRE\n - CARTA SI\n - ENCODED ACCOUNT\n - UATP\n - HOUSEHOLD\n - MAESTRO\n - GE CAPITAL\n - KOREAN CARDS\n - STYLE CARDS\n - JCREW\n - MEIJER\n - HIPERCARD\n - AURA\n - REDECARD\n - ORICO HOUSE CARD\n - MADA\n - ELO\n - CAPITAL ONE PRIVATE LABEL\n - CARNET\n - RUPAY\n - CHINA UNION PAY\n - FALABELLA PRIVATE LABEL\n - PROMPTCARD\n - KOREAN DOMESTIC\n - BANRICOMPRAS\n - MEEZA\n - PAYPAK\n - JAYWAN\n - TPN\n" + }, + "currency": { + "type": "string", + "maxLength": 3, + "description": "This field indicates the 3-letter [ISO Standard Currency Codes](http://apps.cybersource.com/library/documentation/sbc/quickref/currencies.pdf) for the card currency.\n" + }, + "maxLength": { + "type": "string", + "maxLength": 2, + "description": "This field contains the max length of the card.\n" + }, + "credentialType": { + "type": "string", + "maxLength": 5, + "description": "This field contains the type of the payment credential.\nPossible values:\n - PAN\n - TOKEN \n" + }, + "brands": { + "description": "Array of brands", + "type": "array", + "items": { + "type": "object", + "properties": { + "type": { + "type": "string", + "maxLength": 3, + "description": "This field contains a 3-digit numeric value that indicates the card type within Cybersource eco-system.\nPossible values from BIN Lookup Service (based on availability and enablement):\n- `000`: Unsupported Card Type\n- `001`: Visa\n- `002`: Mastercard\n- `003`: American Express\n- `004`: Discover\n- `005`: Diners Club\n- `007`: JCB\n- `036`: Cartes Bancaire\n- `042`: Maestro\n- `054`: Elo\n- `058`: Carnet\n- `060`: MADA\n- `061`: RuPay\n- `062`: China UnionPay\n- `064`: Prompt Card\n- `067`: Meeza\n- `068`: PayPak\n- `070`: EFTPOS\n- `081`: Jaywan\n- `082`: TPN\n\nGlossary of possible values in the payments ecosystem:\n- `001`: Visa\n- `002`: Mastercard\n- `003`: American Express\n- `004`: Discover\n- `005`: Diners Club\n- `006`: Carte Blanche\n- `007`: JCB\n- `008`: Optima\n- `009`: GE Private Label\n- `010`: Beneficial Private Label\n- `011`: Twinpay Credit Card\n- `012`: Twinpay Debit Card\n- `013`: Walmart\n- `014`: EnRoute\n- `015`: Lowe's Consumer\n- `016`: Home Depot Consumer\n- `017`: MBNA\n- `018`: Dick's Sportwear\n- `019`: Casual Corner\n- `020`: Sears\n- `021`: JAL\n- `023`: Disney Card\n- `024`: Switch/Solo\n- `025`: Sam's Club Consumer\n- `026`: Sam's Club Business\n- `027`: Nico's\n- `028`: Paymentech Bill Me Later\n- `029`: Bebe\n- `030`: Restoration Hardware\n- `031`: Delta Online\n- `032`: Solo\n- `033`: Visa Electron\n- `034`: Dankort\n- `035`: Laser\n- `036`: Cartes Bancaire\n- `037`: Carta Si\n- `040`: UATP\n- `041`: HOUSEHOLD\n- `042`: Maestro\n- `043`: GE MONEY\n- `044`: Korean Cards\n- `045`: Style Cards\n- `046`: J.Crew\n- `047`: Payeasecn eWallet\n- `048`: Payeasecn Bank Transfer\n- `049`: Meijer\n- `050`: Hipercard\n- `051`: Aura\n- `052`: Redecard\n- `053`: Orico Card\n- `054`: Elo\n- `055`: Capital One Private Label\n- `057`: Costco Private Label\n- `058`: Carnet\n- `059`: ValueLink\n- `060`: MADA\n- `061`: RuPay\n- `062`: China UnionPay\n- `063`: Falabella Private Label\n- `064`: Prompt Card\n- `065`: Korean Domestic\n- `066`: Banricompras\n- `067`: Meeza\n- `068`: PayPak\n- `070`: EFTPOS\n- `071`: Codensa\n- `072`: Olimpica\n- `073`: Colsubsidio\n- `074`: Tuya\n- `075`: Sodexo\n- `076`: Naranja\n- `077`: Cabal\n- `078`: DINELCO\n- `079`: PANAL\n- `080`: EPM\n- `081`: Jaywan\n- `082`: TPN\n" + }, + "brandName": { + "type": "string", + "maxLength": 20, + "description": "This field contains the card brand name. \n\nSome of the possible values (not an exhaustive list) are -\n\n - VISA\n - MASTERCARD\n - AMERICAN EXPRESS\n - DISCOVER\n - DINERS CLUB\n - CARTE BLANCHE\n - JCB\n - OPTIMA\n - TWINPAY CREDIT CARD\n - TWINPAY DEBIT CARD\n - WALMART\n - ENROUTE\n - LOWES CONSUMER\n - HOME DEPOT CONSUMER\n - MBNA\n - DICKS SPORTWEAR\n - CASUAL CORNER\n - SEARS\n - JAL\n - DISNEY CARD\n - SWITCH/SOLO\n - SAMS CLUB CONSUMER\n - SAMS CLUB BUSINESS\n - NICOS HOUSE CARD\n - BEBE\n - RESTORATION HARDWARE\n - DELTA ONLINE\n - SOLO\n - VISA ELECTRON\n - DANKORT\n - LASER\n - CARTE BANCAIRE\n - CARTA SI\n - ENCODED ACCOUNT\n - UATP\n - HOUSEHOLD\n - MAESTRO\n - GE CAPITAL\n - KOREAN CARDS\n - STYLE CARDS\n - JCREW\n - MEIJER\n - HIPERCARD\n - AURA\n - REDECARD\n - ORICO HOUSE CARD\n - MADA\n - ELO\n - CAPITAL ONE PRIVATE LABEL\n - CARNET\n - RUPAY\n - CHINA UNION PAY\n - FALABELLA PRIVATE LABEL\n - PROMPTCARD\n - KOREAN DOMESTIC\n - BANRICOMPRAS\n - MEEZA\n - PAYPAK\n - JAYWAN\n - TPN\n" + } + } + } + } + } + }, + "features": { + "type": "object", + "properties": { + "accountFundingSource": { + "type": "string", + "maxLength": 20, + "description": "This field contains the account funding source.\nPossible values:\n - `CREDIT`\n - `DEBIT`\n - `PREPAID`\n - `DEFERRED DEBIT`\n - `CHARGE`\n" + }, + "accountFundingSourceSubType": { + "type": "string", + "maxLength": 20, + "description": "This field contains the type of prepaid card.\nPossible values:\n - `Reloadable`\n - `Non-reloadable`\n" + }, + "cardProduct": { + "type": "string", + "maxLength": 50, + "description": "This field contains the type of issuer product.\nExample values:\n - Visa Classic\n - Visa Signature\n - Visa Infinite\n" + }, + "messageType": { + "type": "string", + "maxLength": 1, + "description": "This field contains the type of BIN based authentication.\nPossible values:\n - `S`: Single Message\n - `D`: Dual Message\n" + }, + "acceptanceLevel": { + "type": "string", + "maxLength": 2, + "description": "This field contains the acceptance level of the PAN.\nPossible values:\n - `0` : Normal\n - `1` : Monitor\n - `2` : Refuse\n - `3` : Not Allowed\n - `4` : Private\n - `5` : Test\n" + }, + "cardPlatform": { + "type": "string", + "maxLength": 20, + "description": "This field contains the type of card platform.\nPossible values:\n - `BUSINESS`\n - `CONSUMER`\n - `CORPORATE`\n - `COMMERCIAL`\n - `GOVERNMENT`\n" + }, + "comboCard": { + "type": "string", + "maxLength": 1, + "description": "This field indicates the type of combo card.\nPossible values:\n - 0 (Not a combo card)\n - 1 (Credit and Prepaid Combo card)\n - 2 (Credit and Debit Combo card)\n - 3 (Prepaid Credit and Prepaid Debit combo card)\n" + }, + "corporatePurchase": { + "type": "boolean", + "description": "This field indicates if the instrument can be used for corporate purchasing. This field is only applicable for American Express cards.\nPossible values:\n - `true`\n - `false`\n" + }, + "healthCard": { + "type": "boolean", + "description": "This field indicates if the BIN is for healthcare (HSA/FSA). Currently, this field is only supported for Visa BINs.\nPossible values:\n - `true`\n - `false`\n" + }, + "sharedBIN": { + "type": "boolean", + "description": "This field indicates if the BIN is shared by multiple issuers\nPossible values:\n - `true`\n - `false`\n" + }, + "posDomesticOnly": { + "type": "boolean", + "description": "This field indicates if the BIN is valid only for POS domestic usage.\nPossible values:\n - `true`\n - `false`\n" + }, + "gamblingAllowed": { + "type": "boolean", + "description": "This field indicates if gambling transactions are allowed on the BIN.\nPossible values:\n - `true`\n - `false`\n" + }, + "commercialCardLevel2": { + "type": "boolean", + "description": "This field indicates if a transaction on the instrument qualifies for level 2 interchange rates.\nPossible values:\n - `true`\n - `false`\n" + }, + "commercialCardLevel3": { + "type": "boolean", + "description": "This field indicates if a transaction on the instrument qualifies for level 3 interchange rates.\nPossible values:\n - `true`\n - `false`\n" + }, + "exemptBIN": { + "type": "boolean", + "description": "This field indicates if a transaction on the instrument qualifies for government exempt interchange fee.\nPossible values:\n - `true`\n - `false`\n" + }, + "accountLevelManagement": { + "type": "boolean", + "description": "This field indicates if the BIN participates in Account Level Management (ALM).\nPossible values:\n - `true`\n - `false`\n" + }, + "onlineGamblingBlock": { + "type": "boolean", + "description": "This field indicates if online gambling is blocked on the BIN.\nPossible values:\n - `true`\n - `false`\n" + }, + "autoSubstantiation": { + "type": "boolean", + "description": "This field indicates if auto-substantiation is enabled on the BIN.\nPossible values:\n - `true`\n - `false`\n" + }, + "flexCredential": { + "type": "boolean", + "description": "This field indicates if the instrument is a flex credential.\nPossible values:\n - `true`\n - `false`\n" + }, + "productId": { + "type": "string", + "description": "This field contains the Visa-assigned product identifier associated with the BIN. This field is only supported for Visa BINs.\nExample values:\n - Q4\n - P\n - AX\n" + }, + "productIdSubtype": { + "type": "string", + "description": "This field contains the Visa-assigned product subtype identifier associated with the BIN. This field is only supported for Visa BINs.\nExample values:\n - BB\n - EX\n - L2\n - C2\n" + }, + "threeDSSupport": { + "type": "boolean", + "description": "This field indicates if the payment instrument supports 3D Secure authentication.\nPossible values:\n - `true`\n - `false`\n" + }, + "siEligible": { + "type": "boolean", + "description": "This field indicates if the payment instrument is eligible for Standing Instructions (recurring payments).\nPossible values:\n - `true`\n - `false`\n" + }, + "emiEligible": { + "type": "boolean", + "description": "This field indicates if the card is eligible for Equated Monthly Installments (EMI).\nPossible values:\n - `true`\n - `false`\n" + } + } + }, + "network": { + "type": "object", + "properties": { + "id": { + "type": "string", + "description": "This field contains a code that identifies the network.\n[List of Network ID and Sharing Group Code](https://developer.visa.com/request_response_codes#network_id_and_sharing_group_code)\n" + } + } + } + } + }, + "issuerInformation": { + "type": "object", + "properties": { + "name": { + "type": "string", + "maxLength": 200, + "description": "This field contains the issuer name.\n" + }, + "country": { + "type": "string", + "maxLength": 2, + "description": "This field contains [2-character ISO Country Codes](http://apps.cybersource.com/library/documentation/sbc/quickref/countries_alpha_list.pdf) for the issuer.\n" + }, + "binLength": { + "type": "string", + "maxLength": 2, + "description": "This field contains the length of the BIN. In some cases, this field may be absent if we do not receive accurate information from the network source.\n" + }, + "accountPrefix": { + "type": "string", + "maxLength": 8, + "description": "This field contains the first 6 to 8 digits of a primary account number (PAN). The length of the field is determined by [PCI-DSS standards for truncation](https://pcissc.secure.force.com/faq/articles/Frequently_Asked_Question/What-are-acceptable-formats-for-truncation-of-primary-account-numbers).In case the input is not the full intrument (PAN or TOKEN), this field may be truncated.\n" + }, + "phoneNumber": { + "type": "string", + "maxLength": 50, + "description": "This field contains the customer service phone number for the issuer.\n" + } + } + } + } + } + } + } + } + } + } + } + } + }, + "defaultShippingAddress": { + "readOnly": true, + "type": "object", + "properties": { + "_links": { + "type": "object", + "readOnly": true, + "properties": { + "self": { + "type": "object", + "readOnly": true, + "properties": { + "href": { + "type": "string", + "readOnly": true, + "description": "Link to the Customers Shipping Address\n", + "example": "/tms/v2/customers/D9F340DD3DB9C276E053A2598D0A41A3/shipping-addresses/D9F3439F0448C901E053A2598D0AA1CC" + } + } + }, + "customer": { + "type": "object", + "readOnly": true, + "properties": { + "href": { + "type": "string", + "readOnly": true, + "description": "Link to the Customer\n", + "example": "/tms/v2/customers/D9F340DD3DB9C276E053A2598D0A41A3" + } + } + } + } + }, + "id": { + "type": "string", + "minLength": 1, + "maxLength": 32, + "description": "The Id of the Shipping Address Token." + }, + "default": { + "type": "boolean", + "description": "Flag that indicates whether customer shipping address is the dafault.\nPossible Values:\n - `true`: Shipping Address is customer's default.\n - `false`: Shipping Address is not customer's default.\n" + }, + "shipTo": { + "type": "object", + "properties": { + "firstName": { + "type": "string", + "maxLength": 60, + "description": "First name of the recipient.\n" + }, + "lastName": { + "type": "string", + "maxLength": 60, + "description": "Last name of the recipient.\n" + }, + "company": { + "type": "string", + "maxLength": 60, + "description": "Company associated with the shipping address.\n" + }, + "address1": { + "type": "string", + "maxLength": 60, + "description": "First line of the shipping address.\n" + }, + "address2": { + "type": "string", + "maxLength": 60, + "description": "Second line of the shipping address.\n" + }, + "locality": { + "type": "string", + "maxLength": 50, + "description": "City of the shipping address.\n" + }, + "administrativeArea": { + "type": "string", + "maxLength": 20, + "description": "State or province of the shipping address. Use 2 character the State,\nProvince, and Territory Codes for the United States and Canada.\n" + }, + "postalCode": { + "type": "string", + "maxLength": 10, + "description": "Postal code for the shipping address. The postal code must consist of 5 to 9 digits.\n\nWhen the billing country is the U.S., the 9-digit postal code must follow this format:\n[5 digits][dash][4 digits]\n\nExample 12345-6789\n\nWhen the billing country is Canada, the 6-digit postal code must follow this format:\n[alpha][numeric][alpha][space][numeric][alpha][numeric]\n\nExample A1B 2C3\n\n**American Express Direct**\\\nBefore sending the postal code to the processor, all nonalphanumeric characters are removed and, if the\nremaining value is longer than nine characters, truncates the value starting from the right side.\n" + }, + "country": { + "type": "string", + "description": "Country of the shipping address. Use the two-character ISO Standard Country Codes.\n", + "maxLength": 2 + }, + "email": { + "type": "string", + "maxLength": 320, + "description": "Email associated with the shipping address.\n" + }, + "phoneNumber": { + "type": "string", + "maxLength": 15, + "description": "Phone number associated with the shipping address.\n" + } + } + }, + "metadata": { + "type": "object", + "readOnly": true, + "properties": { + "creator": { + "type": "string", + "readOnly": true, + "description": "The creator of the Shipping Address." + } + } + } + } + } + } + } + } + }, + "shippingAddress": { + "type": "object", + "properties": { + "_links": { + "type": "object", + "readOnly": true, + "properties": { + "self": { + "type": "object", + "readOnly": true, + "properties": { + "href": { + "type": "string", + "readOnly": true, + "description": "Link to the Customers Shipping Address\n", + "example": "/tms/v2/customers/D9F340DD3DB9C276E053A2598D0A41A3/shipping-addresses/D9F3439F0448C901E053A2598D0AA1CC" + } + } + }, + "customer": { + "type": "object", + "readOnly": true, + "properties": { + "href": { + "type": "string", + "readOnly": true, + "description": "Link to the Customer\n", + "example": "/tms/v2/customers/D9F340DD3DB9C276E053A2598D0A41A3" + } + } + } + } + }, + "id": { + "type": "string", + "minLength": 1, + "maxLength": 32, + "description": "The Id of the Shipping Address Token." + }, + "default": { + "type": "boolean", + "description": "Flag that indicates whether customer shipping address is the dafault.\nPossible Values:\n - `true`: Shipping Address is customer's default.\n - `false`: Shipping Address is not customer's default.\n" + }, + "shipTo": { + "type": "object", + "properties": { + "firstName": { + "type": "string", + "maxLength": 60, + "description": "First name of the recipient.\n" + }, + "lastName": { + "type": "string", + "maxLength": 60, + "description": "Last name of the recipient.\n" + }, + "company": { + "type": "string", + "maxLength": 60, + "description": "Company associated with the shipping address.\n" + }, + "address1": { + "type": "string", + "maxLength": 60, + "description": "First line of the shipping address.\n" + }, + "address2": { + "type": "string", + "maxLength": 60, + "description": "Second line of the shipping address.\n" + }, + "locality": { + "type": "string", + "maxLength": 50, + "description": "City of the shipping address.\n" + }, + "administrativeArea": { + "type": "string", + "maxLength": 20, + "description": "State or province of the shipping address. Use 2 character the State,\nProvince, and Territory Codes for the United States and Canada.\n" + }, + "postalCode": { + "type": "string", + "maxLength": 10, + "description": "Postal code for the shipping address. The postal code must consist of 5 to 9 digits.\n\nWhen the billing country is the U.S., the 9-digit postal code must follow this format:\n[5 digits][dash][4 digits]\n\nExample 12345-6789\n\nWhen the billing country is Canada, the 6-digit postal code must follow this format:\n[alpha][numeric][alpha][space][numeric][alpha][numeric]\n\nExample A1B 2C3\n\n**American Express Direct**\\\nBefore sending the postal code to the processor, all nonalphanumeric characters are removed and, if the\nremaining value is longer than nine characters, truncates the value starting from the right side.\n" + }, + "country": { + "type": "string", + "description": "Country of the shipping address. Use the two-character ISO Standard Country Codes.\n", + "maxLength": 2 + }, + "email": { + "type": "string", + "maxLength": 320, + "description": "Email associated with the shipping address.\n" + }, + "phoneNumber": { + "type": "string", + "maxLength": 15, + "description": "Phone number associated with the shipping address.\n" + } + } + }, + "metadata": { + "type": "object", + "readOnly": true, + "properties": { + "creator": { + "type": "string", + "readOnly": true, + "description": "The creator of the Shipping Address." + } + } + } + } + }, + "paymentInstrument": { + "type": "object", + "properties": { + "_links": { + "type": "object", + "readOnly": true, + "properties": { + "self": { + "type": "object", + "readOnly": true, + "properties": { + "href": { + "type": "string", + "readOnly": true, + "description": "Link to the Payment Instrument.\n", + "example": "/tms/v2/customers/D9F340DD3DB9C276E053A2598D0A41A3/payment-instruments" + } + } + }, + "customer": { + "type": "object", + "readOnly": true, + "properties": { + "href": { + "type": "string", + "readOnly": true, + "description": "Link to the Customer.\n", + "example": "/tms/v2/customers/D9F340DD3DB9C276E053A2598D0A41A3" + } + } + } + } + }, + "id": { + "type": "string", + "minLength": 1, + "maxLength": 32, + "description": "The Id of the Payment Instrument Token." + }, + "object": { + "type": "string", + "readOnly": true, + "example": "paymentInstrument", + "description": "The type.\n\nPossible Values:\n- paymentInstrument\n" + }, + "default": { + "type": "boolean", + "description": "Flag that indicates whether customer payment instrument is the dafault.\nPossible Values:\n - `true`: Payment instrument is customer's default.\n - `false`: Payment instrument is not customer's default.\n" + }, + "state": { + "type": "string", + "readOnly": true, + "example": "ACTIVE", + "description": "Issuers state for the card number.\nPossible Values:\n- ACTIVE\n- CLOSED : The account has been closed.\n" + }, + "type": { + "type": "string", + "readOnly": true, + "description": "The type of Payment Instrument.\nPossible Values:\n- cardHash\n" + }, + "bankAccount": { + "type": "object", + "properties": { + "type": { + "type": "string", + "maxLength": 18, + "description": "Account type.\n\nPossible Values:\n - checking : C\n - general ledger : G This value is supported only on Wells Fargo ACH\n - savings : S (U.S. dollars only)\n - corporate checking : X (U.S. dollars only)\n" + } + } + }, + "card": { + "type": "object", + "properties": { + "expirationMonth": { + "type": "string", + "maxLength": 2, + "description": "Two-digit month in which the payment card expires.\n\nFormat: `MM`.\n\nPossible Values: `01` through `12`.\n" + }, + "expirationYear": { + "type": "string", + "maxLength": 4, + "description": "Four-digit year in which the credit card expires.\n\nFormat: `YYYY`.\n" + }, + "type": { + "type": "string", + "description": "Value that indicates the card type. Possible Values v2 : v1:\n * 001 : visa\n * 002 : mastercard - Eurocard\u2014European regional brand of Mastercard\n * 003 : american express\n * 004 : discover\n * 005 : diners club\n * 006 : carte blanche\n * 007 : jcb\n * 008 : optima\n * 011 : twinpay credit\n * 012 : twinpay debit\n * 013 : walmart\n * 014 : enRoute\n * 015 : lowes consumer\n * 016 : home depot consumer\n * 017 : mbna\n * 018 : dicks sportswear\n * 019 : casual corner\n * 020 : sears\n * 021 : jal\n * 023 : disney\n * 024 : maestro uk domestic\n * 025 : sams club consumer\n * 026 : sams club business\n * 028 : bill me later\n * 029 : bebe\n * 030 : restoration hardware\n * 031 : delta online \u2014 use this value only for Ingenico ePayments. For other processors, use 001 for all Visa card types.\n * 032 : solo\n * 033 : visa electron\n * 034 : dankort\n * 035 : laser\n * 036 : carte bleue \u2014 formerly Cartes Bancaires\n * 037 : carta si\n * 038 : pinless debit\n * 039 : encoded account\n * 040 : uatp\n * 041 : household\n * 042 : maestro international\n * 043 : ge money uk\n * 044 : korean cards\n * 045 : style\n * 046 : jcrew\n * 047 : payease china processing ewallet\n * 048 : payease china processing bank transfer\n * 049 : meijer private label\n * 050 : hipercard \u2014 supported only by the Comercio Latino processor.\n * 051 : aura \u2014 supported only by the Comercio Latino processor.\n * 052 : redecard\n * 054 : elo \u2014 supported only by the Comercio Latino processor.\n * 055 : capital one private label\n * 056 : synchrony private label\n * 057 : costco private label\n * 060 : mada\n * 062 : china union pay\n * 063 : falabella private label\n" + }, + "issueNumber": { + "type": "string", + "maxLength": 2, + "description": "Number of times a Maestro (UK Domestic) card has been issued to the account holder. The card might or might not have an issue number. The number can consist of one or two digits, and the first digit might be a zero. When you include this value in your request, include exactly what is printed on the card. A value of 2 is different than a value of 02. Do not include the field, even with a blank value, if the card is not a Maestro (UK Domestic) card.\n\n**Note** The issue number is not required for Maestro (UK Domestic) transactions.\n" + }, + "startMonth": { + "type": "string", + "maxLength": 2, + "description": "Month of the start of the Maestro (UK Domestic) card validity period. Do not include the field, even with a blank value, if the card is not a Maestro (UK Domestic) card. `Format: MM`.\nPossible Values: 01 through 12.\n\n**Note** The start date is not required for Maestro (UK Domestic) transactions.\n" + }, + "startYear": { + "type": "string", + "maxLength": 4, + "description": "Year of the start of the Maestro (UK Domestic) card validity period. Do not include the field, even with a blank value, if the card is not a Maestro (UK Domestic) card. `Format: YYYY`.\n\n**Note** The start date is not required for Maestro (UK Domestic) transactions.\n" + }, + "useAs": { + "type": "string", + "example": "pinless debit", + "description": "'Payment Instrument was created / updated as part of a pinless debit transaction.'\n" + }, + "hash": { + "type": "string", + "minLength": 32, + "maxLength": 34, + "readOnly": true, + "description": "Hash value representing the card.\n" + }, + "tokenizedInformation": { + "type": "object", + "properties": { + "requestorID": { + "type": "string", + "maxLength": 11, + "description": "Value that identifies your business and indicates that the cardholder's account number is tokenized. This value\nis assigned by the token service provider and is unique within the token service provider's database.\n\n**Note** This field is supported only through **VisaNet** and **FDC Nashville Global**.\n" + }, + "transactionType": { + "type": "string", + "maxLength": 1, + "description": "Type of transaction that provided the token data. This value does not specify the token service provider; it\nspecifies the entity that provided you with information about the token.\n\nSet the value for this field to 1. An application on the customer's mobile device provided the token data.\n" + } + } + } + } + }, + "buyerInformation": { + "type": "object", + "properties": { + "companyTaxID": { + "type": "string", + "maxLength": 9, + "description": "Company's tax identifier. This is only used for eCheck service.\n" + }, + "currency": { + "type": "string", + "maxLength": 3, + "description": "Currency used for the order. Use the three-character I[ISO Standard Currency Codes.](http://apps.cybersource.com/library/documentation/sbc/quickref/currencies.pdf)\n\nFor an authorization reversal (`reversalInformation`) or a capture (`processingOptions.capture` is set to `true`), you must use the same currency that you used in your payment authorization request.\n\n#### DCC for First Data\nYour local currency. For details, see the `currency` field description in [Dynamic Currency Conversion For First Data Using the SCMP API](http://apps.cybersource.com/library/documentation/dev_guides/DCC_FirstData_SCMP/DCC_FirstData_SCMP_API.pdf).\n# For details about currency as used in partial authorizations, see \"Features for Debit Cards and Prepaid Cards\" in the [Credit Card Services Using the SCMP API Guide](https://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html/)\n" + }, + "dateOfBirth": { + "type": "string", + "format": "date", + "example": "1960-12-30", + "description": "Date of birth of the customer. Format: YYYY-MM-DD\n" + }, + "personalIdentification": { + "type": "array", + "items": { + "type": "object", + "properties": { + "id": { + "type": "string", + "maxLength": 26, + "description": "The value of the identification type.\n" + }, + "type": { + "type": "string", + "description": "The type of the identification.\n\nPossible Values:\n - driver license\n" + }, + "issuedBy": { + "type": "object", + "properties": { + "administrativeArea": { + "type": "string", + "description": "The State or province where the customer's driver's license was issued.\n\nUse the two-character State, Province, and Territory Codes for the United States and Canada.\n", + "maxLength": 20 + } + } + } + } + } + } + } + }, + "billTo": { + "type": "object", + "properties": { + "firstName": { + "type": "string", + "maxLength": 60, + "description": "Customer's first name. This name must be the same as the name on the card.\n" + }, + "lastName": { + "type": "string", + "maxLength": 60, + "description": "Customer's last name. This name must be the same as the name on the card.\n" + }, + "company": { + "type": "string", + "maxLength": 60, + "description": "Name of the customer's company.\n" + }, + "address1": { + "type": "string", + "maxLength": 60, + "description": "Payment card billing street address as it appears on the credit card issuer's records.\n" + }, + "address2": { + "type": "string", + "maxLength": 60, + "description": "Additional address information.\n" + }, + "locality": { + "type": "string", + "maxLength": 50, + "description": "Payment card billing city.\n" + }, + "administrativeArea": { + "type": "string", + "maxLength": 20, + "description": "State or province of the billing address. Use the State, Province, and Territory Codes for the United States\nand Canada.\n" + }, + "postalCode": { + "type": "string", + "maxLength": 10, + "description": "Postal code for the billing address. The postal code must consist of 5 to 9 digits.\n\nWhen the billing country is the U.S., the 9-digit postal code must follow this format:\n[5 digits][dash][4 digits]\n\n**Example** `12345-6789`\n\nWhen the billing country is Canada, the 6-digit postal code must follow this format:\n[alpha][numeric][alpha][space][numeric][alpha][numeric]\n\n**Example** `A1B 2C3`\n" + }, + "country": { + "type": "string", + "maxLength": 2, + "description": "Payment card billing country. Use the two-character ISO Standard Country Codes.\n" + }, + "email": { + "type": "string", + "maxLength": 255, + "description": "Customer's email address, including the full domain name.\n" + }, + "phoneNumber": { + "type": "string", + "maxLength": 15, + "description": "Customer's phone number.\n" + } + } + }, + "processingInformation": { + "type": "object", + "title": "tmsPaymentInstrumentProcessingInfo", + "properties": { + "billPaymentProgramEnabled": { + "type": "boolean", + "description": "Flag that indicates that this is a payment for a bill or for an existing contractual loan.\nPossible Values:\n- `true`: Bill payment or loan payment.\n- `false` (default): Not a bill payment or loan payment.\n# For processor-specific details, see the `bill_payment` field description in [Credit Card Services Using the SCMP API.](https://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html/)\n" + }, + "bankTransferOptions": { + "type": "object", + "properties": { + "SECCode": { + "type": "string", + "maxLength": 3, + "description": "Specifies the authorization method for the transaction.\n\n#### TeleCheck\nPossible Values:\n- `ARC`: account receivable conversion\n- `CCD`: corporate cash disbursement\n- `POP`: point of purchase conversion\n- `PPD`: prearranged payment and deposit entry\n- `TEL`: telephone-initiated entry\n- `WEB`: internet-initiated entry\n\n# For details, see `ecp_sec_code` field description in the [Electronic Check Services Using the SCMP API Guide.](https://apps.cybersource.com/library/documentation/dev_guides/EChecks_SCMP_API/html/)\n" + } + } + } + } + }, + "merchantInformation": { + "type": "object", + "title": "TmsMerchantInformation", + "properties": { + "merchantDescriptor": { + "type": "object", + "properties": { + "alternateName": { + "type": "string", + "description": "Alternate contact information for your business,such as an email address or URL.\nThis value might be displayed on the cardholder's statement.\nWhen you do not include this value in your capture or credit request, the merchant URL from your CyberSource account is used.\nImportant This value must consist of English characters\n", + "maxLength": 13 + } + } + } + } + }, + "instrumentIdentifier": { + "type": "object", + "properties": { + "id": { + "type": "string", + "minLength": 12, + "maxLength": 32, + "description": "The Id of the Instrument Identifier linked to the Payment Instrument.\n" + } + } + }, + "metadata": { + "type": "object", + "readOnly": true, + "properties": { + "creator": { + "type": "string", + "readOnly": true, + "description": "The creator of the Payment Instrument.\n" + } + } + }, + "_embedded": { + "type": "object", + "readOnly": true, + "description": "Additional resources for the Payment Instrument.\n", + "properties": { + "instrumentIdentifier": { + "readOnly": true, + "title": "tmsEmbeddedInstrumentIdentifier", + "type": "object", + "properties": { + "_links": { + "type": "object", + "readOnly": true, + "properties": { + "self": { + "type": "object", + "readOnly": true, + "properties": { + "href": { + "type": "string", + "readOnly": true, + "description": "Link to the Instrument Identifier.\n", + "example": "tms/v1/instrumentidentifiers/7010000000016241111" + } + } + }, + "paymentInstruments": { + "type": "object", + "readOnly": true, + "properties": { + "href": { + "type": "string", + "readOnly": true, + "description": "Link to the Instrument Identifiers Payment Instruments.\n", + "example": "tms/v1/instrumentidentifiers/7010000000016241111/paymentinstruments" + } + } + } + } + }, + "id": { + "type": "string", + "description": "The Id of the Instrument Identifier Token.\n" + }, + "object": { + "type": "string", + "readOnly": true, + "example": "instrumentIdentifier", + "description": "The type.\n\nPossible Values:\n- instrumentIdentifier\n" + }, + "state": { + "type": "string", + "readOnly": true, + "example": "ACTIVE", + "description": "Issuers state for the card number.\nPossible Values:\n- ACTIVE\n- CLOSED : The account has been closed.\n" + }, + "type": { + "type": "string", + "description": "The type of Instrument Identifier.\nPossible Values:\n- enrollable card\n- enrollable token\n" + }, + "source": { + "type": "string", + "description": "Source of the card details.\nPossible Values:\n- CONTACTLESS_TAP\n" + }, + "tokenProvisioningInformation": { + "type": "object", + "properties": { + "consumerConsentObtained": { + "type": "boolean", + "description": "Flag that indicates whether the user consented to the tokenization of their credentials. Required for card network tokenization in certain markets, such as India.\nPossible Values:\n- `true`: Consumer has consented to tokenization of their credentials.\n- `false`: Consumer has not consented to tokenization of their credentials.\n" + }, + "multiFactorAuthenticated": { + "type": "boolean", + "description": "Flag that indicates whether AFA (Additional Factor of Authentication) for the PAN was completed. Required for card network tokenization in certain markets, such as India.\nPossible Values:\n- `true`: Consumer has been authenticated by the issuer.\n- `false`: Consumer has not been authenticated by the issuer.\n" + } + } + }, + "card": { + "type": "object", + "description": "The expirationMonth, expirationYear and securityCode is sent to the issuer as part of network token enrollment and is not stored under the Instrument Identifier.\n", + "properties": { + "number": { + "type": "string", + "minLength": 12, + "maxLength": 19, + "description": "The customer's payment card number, also known as the Primary Account Number (PAN). You can also use this field\nfor encoded account numbers.\n" + }, + "expirationMonth": { + "type": "string", + "maxLength": 2, + "description": "Two-digit month in which the payment card expires.\n\nFormat: `MM`.\n\nPossible Values: `01` through `12`.\n" + }, + "expirationYear": { + "type": "string", + "maxLength": 4, + "description": "Four-digit year in which the credit card expires.\n\nFormat: `YYYY`.\n" + }, + "securityCode": { + "type": "string", + "maxLength": 4, + "description": "Card Verification Code. \nThis value is sent to the issuer to support the approval of a network token provision.\nIt is not persisted against the Instrument Identifier.\n" + } + } + }, + "pointOfSaleInformation": { + "type": "object", + "required": [ + "emvTags" + ], + "properties": { + "emvTags": { + "type": "array", + "minItems": 1, + "maxItems": 50, + "items": { + "type": "object", + "required": [ + "tag", + "value", + "source" + ], + "properties": { + "tag": { + "type": "string", + "minLength": 1, + "maxLength": 10, + "pattern": "^[0-9A-Fa-f]{1,10}$", + "description": "EMV tag, 1-10 hex characters." + }, + "value": { + "type": "string", + "minLength": 1, + "maxLength": 64, + "description": "EMV tag value, 1-64 characters." + }, + "source": { + "type": "string", + "description": "Source of the tag.\n\nPossible Values:\n - CARD\n - TERMINAL\n" + } + }, + "example": { + "tag": "5A", + "value": "4111111111111111", + "source": "CARD" + } + } + } + } + }, + "bankAccount": { + "type": "object", + "properties": { + "number": { + "type": "string", + "maxLength": 17, + "description": "Account number.\n\nWhen processing encoded account numbers, use this field for the encoded account number.\n" + }, + "routingNumber": { + "type": "string", + "description": "Bank routing number. This is also called the transit number.\n\n# For details, see `ecp_rdfi` field description in the [Electronic Check Services Using the SCMP API Guide.](https://apps.cybersource.com/library/documentation/dev_guides/EChecks_SCMP_API/html/)\n" + } + } + }, + "tokenizedCard": { + "title": "tmsv2TokenizedCard", + "type": "object", + "properties": { + "_links": { + "type": "object", + "readOnly": true, + "properties": { + "self": { + "type": "object", + "readOnly": true, + "properties": { + "href": { + "type": "string", + "readOnly": true, + "description": "Link to the Tokenized Card.\nexample: 'tms/v2/tokenized-cards/7010000000016241111'\n" + } + } + } + } + }, + "id": { + "type": "string", + "readOnly": true, + "description": "The Id of the Tokenized Card.\n" + }, + "object": { + "type": "string", + "readOnly": true, + "example": "tokenizedCard", + "description": "The type.\nPossible Values:\n- tokenizedCard\n" + }, + "accountReferenceId": { + "type": "string", + "description": "An identifier provided by the issuer for the account.\n" + }, + "consumerId": { + "type": "string", + "maxLength": 36, + "description": "Identifier of the consumer within the wallet. Maximum 24 characters for VTS." + }, + "createInstrumentIdentifier": { + "type": "boolean", + "description": "Specifies whether the InstrumentId should be created (true) or not (false).\nPossible Values:\n- `true`: The InstrumentId should be created.\n- `false`: The InstrumentId should be created.\n" + }, + "source": { + "type": "string", + "description": "Source of the card details.\nPossible Values:\n- ONFILE\n- TOKEN\n- ISSUER\n" + }, + "state": { + "type": "string", + "readOnly": true, + "example": "ACTIVE", + "description": "State of the network token or network token provision.\nPossible Values:\n ACTIVE : Network token is active.\n SUSPENDED : Network token is suspended. This state can change back to ACTIVE.\n DELETED : This is a final state for a network token instance.\n UNPROVISIONED : A previous network token.\n" + }, + "reason": { + "type": "string", + "readOnly": true, + "example": "ACTIVE", + "description": "Issuers state for the network token\nPossible Values:\n- INVALID_REQUEST : The network token provision request contained invalid data.\n- CARD_VERIFICATION_FAILED : The network token provision request contained data that could not be verified.\n- CARD_NOT_ELIGIBLE : Card can currently not be used with issuer for tokenization.\n- CARD_NOT_ALLOWED : Card can currently not be used with card association for tokenization.\n- DECLINED : Card can currently not be used with issuer for tokenization.\n- SERVICE_UNAVAILABLE : The network token service was unavailable or timed out.\n- SYSTEM_ERROR : An unexpected error occurred with network token service, check configuration.\n" + }, + "number": { + "type": "string", + "readOnly": true, + "description": "The token requestor's network token for the provided PAN and consumer Id, if available.\n" + }, + "expirationMonth": { + "type": "string", + "readOnly": true, + "description": "Two-digit month in which the network token expires.\nFormat: `MM`.\nPossible Values: `01` through `12`.\n" + }, + "expirationYear": { + "type": "string", + "readOnly": true, + "description": "Four-digit year in which the network token expires.\nFormat: `YYYY`.\n" + }, + "type": { + "type": "string", + "description": "The type of card (Card Network).\nPossible Values:\n- visa\n- mastercard\n- americanexpress\n" + }, + "cryptogram": { + "type": "string", + "readOnly": true, + "description": "Value generated by the card association to be used alongside the network token for processing a payment.\n", + "example": "CgAFRFYFPTFOfg5rj2ais9wQAAAAAM=" + }, + "securityCode": { + "type": "string", + "readOnly": true, + "description": "4-digit number generated by the card association to be used alogside the network token for processing a payment. Only supported for Amex and SCOF.\n", + "example": "4523" + }, + "eci": { + "type": "string", + "readOnly": true, + "description": "Raw Electronic Commerce Indicator provided by the card association with the result of the cardholder authentication.\n" + }, + "requestorId": { + "type": "string", + "readOnly": true, + "maxLength": 11, + "description": "11-digit identifier that uniquely identifies the Token Requestor.\n" + }, + "enrollmentId": { + "type": "string", + "readOnly": true, + "description": "Unique id to identify this PAN/ enrollment.\n" + }, + "tokenReferenceId": { + "type": "string", + "readOnly": true, + "description": "Unique ID for netwrok token.\n" + }, + "paymentAccountReference": { + "type": "string", + "readOnly": true, + "description": "Payment account reference.\n" + }, + "card": { + "type": "object", + "description": "Card object used to create a network token\n", + "properties": { + "number": { + "type": "string", + "minLength": 12, + "maxLength": 19, + "description": "The customer's payment card number, also known as the Primary Account Number (PAN).\n" + }, + "expirationMonth": { + "type": "string", + "maxLength": 2, + "description": "Two-digit month in which the payment card expires.\n\nFormat: `MM`.\n\nPossible Values: `01` through `12`.\n" + }, + "expirationYear": { + "type": "string", + "maxLength": 4, + "description": "Four-digit year in which the credit card expires.\n\nFormat: `YYYY`.\n" + }, + "type": { + "type": "string", + "description": "The type of card (Card Network).\nPossible Values:\n- 001: visa\n" + }, + "suffix": { + "type": "string", + "readOnly": true, + "description": "The customer's latest payment card number suffix.\n" + }, + "issueDate": { + "type": "string", + "readOnly": true, + "format": "date", + "description": "Card issuance date. XML date format: YYYY-MM-DD.", + "example": "2030-12-15" + }, + "activationDate": { + "type": "string", + "readOnly": true, + "format": "date", + "description": "Card activation date. XML date format: YYYY-MM-DD", + "example": "2030-12-20" + }, + "expirationPrinted": { + "type": "boolean", + "readOnly": true, + "description": "Indicates if the expiration date is printed on the card.", + "example": true + }, + "securityCodePrinted": { + "type": "boolean", + "readOnly": true, + "description": "Indicates if the Card Verification Number is printed on the card.", + "example": true + }, + "termsAndConditions": { + "type": "object", + "readOnly": true, + "properties": { + "url": { + "type": "string", + "readOnly": true, + "description": "Issuer Card Terms and Conditions url." + } + } + } + } + }, + "passcode": { + "type": "object", + "description": "Passcode by issuer for ID&V.\n", + "properties": { + "value": { + "type": "string", + "description": "OTP generated at issuer.\n" + } + } + }, + "metadata": { + "type": "object", + "readOnly": true, + "description": "Metadata associated with the tokenized card.\n", + "properties": { + "cardArt": { + "title": "TmsCardArt", + "description": "Card art associated with the tokenized card.\n", + "type": "object", + "readOnly": true, + "properties": { + "foregroundColor": { + "description": "Card foreground color.\n", + "type": "string", + "readOnly": true + }, + "combinedAsset": { + "description": "Combined card art asset associated with the tokenized card.\n", + "type": "object", + "readOnly": true, + "properties": { + "id": { + "type": "string", + "description": "Unique identifier for the asset\n" + }, + "_links": { + "type": "object", + "readOnly": true, + "properties": { + "self": { + "type": "object", + "readOnly": true, + "properties": { + "href": { + "type": "string", + "readOnly": true, + "description": "Link to the card art asset.\nexample: 'tms/v2/tokens/7020000000010603216/visa/assets/card-art-combined'\n" + } + } + } + } + } + } + }, + "brandLogoAsset": { + "description": "Brand logo card art asset associated with the tokenized card.\n", + "type": "object", + "readOnly": true, + "properties": { + "id": { + "type": "string", + "description": "Unique identifier for the asset\n" + }, + "_links": { + "type": "object", + "readOnly": true, + "properties": { + "self": { + "type": "object", + "readOnly": true, + "properties": { + "href": { + "type": "string", + "readOnly": true, + "description": "Link to the card art asset.\nexample: 'tms/v2/tokens/7020000000010603216/visa/assets/brand-logo'\n" + } + } + } + } + } + } + }, + "issuerLogoAsset": { + "description": "Issuer logo card art asset associated with the tokenized card.\n", + "type": "object", + "readOnly": true, + "properties": { + "id": { + "type": "string", + "description": "Unique identifier for the asset\n" + }, + "_links": { + "type": "object", + "readOnly": true, + "properties": { + "self": { + "type": "object", + "readOnly": true, + "properties": { + "href": { + "type": "string", + "readOnly": true, + "description": "Link to the card art asset.\nexample: 'tms/v2/tokens/7020000000010603216/visa/assets/issuer-logo'\n" + } + } + } + } + } + } + }, + "iconAsset": { + "description": "Icon card art asset associated with the tokenized card.\n", + "type": "object", + "readOnly": true, + "properties": { + "id": { + "type": "string", + "description": "Unique identifier for the asset\n" + }, + "_links": { + "type": "object", + "readOnly": true, + "properties": { + "self": { + "type": "object", + "readOnly": true, + "properties": { + "href": { + "type": "string", + "readOnly": true, + "description": "Link to the card art asset.\nexample: 'tms/v2/tokens/7020000000010603216/visa/assets/icon'\n" + } + } + } + } + } + } + } + } + }, + "issuer": { + "description": "Issuer associated with the tokenized card.\n", + "type": "object", + "readOnly": true, + "properties": { + "name": { + "description": "Issuer name.\n", + "type": "string", + "readOnly": true + }, + "shortDescription": { + "description": "Short description of the card.\n", + "type": "string", + "readOnly": true + }, + "longDescription": { + "description": "Long description of the card.\n", + "type": "string", + "readOnly": true + }, + "email": { + "type": "string", + "readOnly": true, + "description": "Issuer customer service email address." + }, + "phoneNumber": { + "type": "string", + "readOnly": true, + "description": "Issuer customer service phone number." + }, + "url": { + "type": "string", + "readOnly": true, + "description": "Issuer customer service url." + } + } + } + } + } + } + }, + "issuer": { + "type": "object", + "readOnly": true, + "properties": { + "paymentAccountReference": { + "type": "string", + "readOnly": true, + "maxLength": 32, + "description": "This reference number serves as a link to the cardholder account and to all transactions for that account.\n" + } + } + }, + "processingInformation": { + "type": "object", + "properties": { + "authorizationOptions": { + "type": "object", + "title": "tmsAuthorizationOptions", + "properties": { + "initiator": { + "type": "object", + "properties": { + "merchantInitiatedTransaction": { + "type": "object", + "properties": { + "previousTransactionId": { + "type": "string", + "maxLength": 15, + "description": "Network transaction identifier that was returned in the payment response field _processorInformation.transactionID_\nin the reply message for either the original merchant-initiated payment in the series or the previous\nmerchant-initiated payment in the series.\n" + }, + "originalAuthorizedAmount": { + "type": "string", + "maxLength": 15, + "description": "Amount of the original authorization.\n" + } + } + } + } + } + } + } + } + }, + "billTo": { + "type": "object", + "description": "This information is sent to the issuer as part of network token enrollment and is not stored under the Instrument Identifier.\n", + "properties": { + "address1": { + "type": "string", + "maxLength": 60, + "description": "Payment card billing street address as it appears on the credit card issuer's records.\n" + }, + "address2": { + "type": "string", + "maxLength": 60, + "description": "Additional address information.\n" + }, + "locality": { + "type": "string", + "maxLength": 50, + "description": "Payment card billing city.\n" + }, + "administrativeArea": { + "type": "string", + "maxLength": 20, + "description": "State or province of the billing address. Use the State, Province, and Territory Codes for the United States\nand Canada.\n" + }, + "postalCode": { + "type": "string", + "maxLength": 10, + "description": "Postal code for the billing address. The postal code must consist of 5 to 9 digits.\n\nWhen the billing country is the U.S., the 9-digit postal code must follow this format:\n[5 digits][dash][4 digits]\n\n**Example** `12345-6789`\n\nWhen the billing country is Canada, the 6-digit postal code must follow this format:\n[alpha][numeric][alpha][space][numeric][alpha][numeric]\n\n**Example** `A1B 2C3`\n" + }, + "country": { + "type": "string", + "maxLength": 2, + "description": "Payment card billing country. Use the two-character ISO Standard Country Codes.\n" + } + } + }, + "metadata": { + "type": "object", + "readOnly": true, + "properties": { + "creator": { + "type": "string", + "readOnly": true, + "description": "The creator of the Instrument Identifier." + } + } + }, + "_embedded": { + "type": "object", + "readOnly": true, + "properties": { + "binLookup": { + "title": "TmsBinLookup", + "description": "Bin Information of the PAN provided by BinLookUp Service. This is only retrieved when retrieveBinDetails=true is passed as a query parameter.\n", + "readOnly": true, + "type": "object", + "properties": { + "paymentAccountInformation": { + "type": "object", + "properties": { + "card": { + "type": "object", + "properties": { + "type": { + "type": "string", + "maxLength": 3, + "description": "This field contains a 3-digit numeric value that indicates the card type within Cybersource eco-system.\nPossible values from BIN Lookup Service (based on availability and enablement):\n- `000`: Unsupported Card Type\n- `001`: Visa\n- `002`: Mastercard\n- `003`: American Express\n- `004`: Discover\n- `005`: Diners Club\n- `007`: JCB\n- `036`: Cartes Bancaire\n- `042`: Maestro\n- `054`: Elo\n- `058`: Carnet\n- `060`: MADA\n- `061`: RuPay\n- `062`: China UnionPay\n- `064`: Prompt Card\n- `067`: Meeza\n- `068`: PayPak\n- `070`: EFTPOS\n- `081`: Jaywan\n- `082`: TPN\n\nGlossary of possible values in the payments ecosystem:\n- `001`: Visa\n- `002`: Mastercard\n- `003`: American Express\n- `004`: Discover\n- `005`: Diners Club\n- `006`: Carte Blanche\n- `007`: JCB\n- `008`: Optima\n- `009`: GE Private Label\n- `010`: Beneficial Private Label\n- `011`: Twinpay Credit Card\n- `012`: Twinpay Debit Card\n- `013`: Walmart\n- `014`: EnRoute\n- `015`: Lowe's Consumer\n- `016`: Home Depot Consumer\n- `017`: MBNA\n- `018`: Dick's Sportwear\n- `019`: Casual Corner\n- `020`: Sears\n- `021`: JAL\n- `023`: Disney Card\n- `024`: Switch/Solo\n- `025`: Sam's Club Consumer\n- `026`: Sam's Club Business\n- `027`: Nico's\n- `028`: Paymentech Bill Me Later\n- `029`: Bebe\n- `030`: Restoration Hardware\n- `031`: Delta Online\n- `032`: Solo\n- `033`: Visa Electron\n- `034`: Dankort\n- `035`: Laser\n- `036`: Cartes Bancaire\n- `037`: Carta Si\n- `040`: UATP\n- `041`: HOUSEHOLD\n- `042`: Maestro\n- `043`: GE MONEY\n- `044`: Korean Cards\n- `045`: Style Cards\n- `046`: J.Crew\n- `047`: Payeasecn eWallet\n- `048`: Payeasecn Bank Transfer\n- `049`: Meijer\n- `050`: Hipercard\n- `051`: Aura\n- `052`: Redecard\n- `053`: Orico Card\n- `054`: Elo\n- `055`: Capital One Private Label\n- `057`: Costco Private Label\n- `058`: Carnet\n- `059`: ValueLink\n- `060`: MADA\n- `061`: RuPay\n- `062`: China UnionPay\n- `063`: Falabella Private Label\n- `064`: Prompt Card\n- `065`: Korean Domestic\n- `066`: Banricompras\n- `067`: Meeza\n- `068`: PayPak\n- `070`: EFTPOS\n- `071`: Codensa\n- `072`: Olimpica\n- `073`: Colsubsidio\n- `074`: Tuya\n- `075`: Sodexo\n- `076`: Naranja\n- `077`: Cabal\n- `078`: DINELCO\n- `079`: PANAL\n- `080`: EPM\n- `081`: Jaywan\n- `082`: TPN\n" + }, + "brandName": { + "type": "string", + "maxLength": 20, + "description": "This field contains the card brand name. \n\nSome of the possible values (not an exhaustive list) are -\n\n - VISA\n - MASTERCARD\n - AMERICAN EXPRESS\n - DISCOVER\n - DINERS CLUB\n - CARTE BLANCHE\n - JCB\n - OPTIMA\n - TWINPAY CREDIT CARD\n - TWINPAY DEBIT CARD\n - WALMART\n - ENROUTE\n - LOWES CONSUMER\n - HOME DEPOT CONSUMER\n - MBNA\n - DICKS SPORTWEAR\n - CASUAL CORNER\n - SEARS\n - JAL\n - DISNEY CARD\n - SWITCH/SOLO\n - SAMS CLUB CONSUMER\n - SAMS CLUB BUSINESS\n - NICOS HOUSE CARD\n - BEBE\n - RESTORATION HARDWARE\n - DELTA ONLINE\n - SOLO\n - VISA ELECTRON\n - DANKORT\n - LASER\n - CARTE BANCAIRE\n - CARTA SI\n - ENCODED ACCOUNT\n - UATP\n - HOUSEHOLD\n - MAESTRO\n - GE CAPITAL\n - KOREAN CARDS\n - STYLE CARDS\n - JCREW\n - MEIJER\n - HIPERCARD\n - AURA\n - REDECARD\n - ORICO HOUSE CARD\n - MADA\n - ELO\n - CAPITAL ONE PRIVATE LABEL\n - CARNET\n - RUPAY\n - CHINA UNION PAY\n - FALABELLA PRIVATE LABEL\n - PROMPTCARD\n - KOREAN DOMESTIC\n - BANRICOMPRAS\n - MEEZA\n - PAYPAK\n - JAYWAN\n - TPN\n" + }, + "currency": { + "type": "string", + "maxLength": 3, + "description": "This field indicates the 3-letter [ISO Standard Currency Codes](http://apps.cybersource.com/library/documentation/sbc/quickref/currencies.pdf) for the card currency.\n" + }, + "maxLength": { + "type": "string", + "maxLength": 2, + "description": "This field contains the max length of the card.\n" + }, + "credentialType": { + "type": "string", + "maxLength": 5, + "description": "This field contains the type of the payment credential.\nPossible values:\n - PAN\n - TOKEN \n" + }, + "brands": { + "description": "Array of brands", + "type": "array", + "items": { + "type": "object", + "properties": { + "type": { + "type": "string", + "maxLength": 3, + "description": "This field contains a 3-digit numeric value that indicates the card type within Cybersource eco-system.\nPossible values from BIN Lookup Service (based on availability and enablement):\n- `000`: Unsupported Card Type\n- `001`: Visa\n- `002`: Mastercard\n- `003`: American Express\n- `004`: Discover\n- `005`: Diners Club\n- `007`: JCB\n- `036`: Cartes Bancaire\n- `042`: Maestro\n- `054`: Elo\n- `058`: Carnet\n- `060`: MADA\n- `061`: RuPay\n- `062`: China UnionPay\n- `064`: Prompt Card\n- `067`: Meeza\n- `068`: PayPak\n- `070`: EFTPOS\n- `081`: Jaywan\n- `082`: TPN\n\nGlossary of possible values in the payments ecosystem:\n- `001`: Visa\n- `002`: Mastercard\n- `003`: American Express\n- `004`: Discover\n- `005`: Diners Club\n- `006`: Carte Blanche\n- `007`: JCB\n- `008`: Optima\n- `009`: GE Private Label\n- `010`: Beneficial Private Label\n- `011`: Twinpay Credit Card\n- `012`: Twinpay Debit Card\n- `013`: Walmart\n- `014`: EnRoute\n- `015`: Lowe's Consumer\n- `016`: Home Depot Consumer\n- `017`: MBNA\n- `018`: Dick's Sportwear\n- `019`: Casual Corner\n- `020`: Sears\n- `021`: JAL\n- `023`: Disney Card\n- `024`: Switch/Solo\n- `025`: Sam's Club Consumer\n- `026`: Sam's Club Business\n- `027`: Nico's\n- `028`: Paymentech Bill Me Later\n- `029`: Bebe\n- `030`: Restoration Hardware\n- `031`: Delta Online\n- `032`: Solo\n- `033`: Visa Electron\n- `034`: Dankort\n- `035`: Laser\n- `036`: Cartes Bancaire\n- `037`: Carta Si\n- `040`: UATP\n- `041`: HOUSEHOLD\n- `042`: Maestro\n- `043`: GE MONEY\n- `044`: Korean Cards\n- `045`: Style Cards\n- `046`: J.Crew\n- `047`: Payeasecn eWallet\n- `048`: Payeasecn Bank Transfer\n- `049`: Meijer\n- `050`: Hipercard\n- `051`: Aura\n- `052`: Redecard\n- `053`: Orico Card\n- `054`: Elo\n- `055`: Capital One Private Label\n- `057`: Costco Private Label\n- `058`: Carnet\n- `059`: ValueLink\n- `060`: MADA\n- `061`: RuPay\n- `062`: China UnionPay\n- `063`: Falabella Private Label\n- `064`: Prompt Card\n- `065`: Korean Domestic\n- `066`: Banricompras\n- `067`: Meeza\n- `068`: PayPak\n- `070`: EFTPOS\n- `071`: Codensa\n- `072`: Olimpica\n- `073`: Colsubsidio\n- `074`: Tuya\n- `075`: Sodexo\n- `076`: Naranja\n- `077`: Cabal\n- `078`: DINELCO\n- `079`: PANAL\n- `080`: EPM\n- `081`: Jaywan\n- `082`: TPN\n" + }, + "brandName": { + "type": "string", + "maxLength": 20, + "description": "This field contains the card brand name. \n\nSome of the possible values (not an exhaustive list) are -\n\n - VISA\n - MASTERCARD\n - AMERICAN EXPRESS\n - DISCOVER\n - DINERS CLUB\n - CARTE BLANCHE\n - JCB\n - OPTIMA\n - TWINPAY CREDIT CARD\n - TWINPAY DEBIT CARD\n - WALMART\n - ENROUTE\n - LOWES CONSUMER\n - HOME DEPOT CONSUMER\n - MBNA\n - DICKS SPORTWEAR\n - CASUAL CORNER\n - SEARS\n - JAL\n - DISNEY CARD\n - SWITCH/SOLO\n - SAMS CLUB CONSUMER\n - SAMS CLUB BUSINESS\n - NICOS HOUSE CARD\n - BEBE\n - RESTORATION HARDWARE\n - DELTA ONLINE\n - SOLO\n - VISA ELECTRON\n - DANKORT\n - LASER\n - CARTE BANCAIRE\n - CARTA SI\n - ENCODED ACCOUNT\n - UATP\n - HOUSEHOLD\n - MAESTRO\n - GE CAPITAL\n - KOREAN CARDS\n - STYLE CARDS\n - JCREW\n - MEIJER\n - HIPERCARD\n - AURA\n - REDECARD\n - ORICO HOUSE CARD\n - MADA\n - ELO\n - CAPITAL ONE PRIVATE LABEL\n - CARNET\n - RUPAY\n - CHINA UNION PAY\n - FALABELLA PRIVATE LABEL\n - PROMPTCARD\n - KOREAN DOMESTIC\n - BANRICOMPRAS\n - MEEZA\n - PAYPAK\n - JAYWAN\n - TPN\n" + } + } + } + } + } + }, + "features": { + "type": "object", + "properties": { + "accountFundingSource": { + "type": "string", + "maxLength": 20, + "description": "This field contains the account funding source.\nPossible values:\n - `CREDIT`\n - `DEBIT`\n - `PREPAID`\n - `DEFERRED DEBIT`\n - `CHARGE`\n" + }, + "accountFundingSourceSubType": { + "type": "string", + "maxLength": 20, + "description": "This field contains the type of prepaid card.\nPossible values:\n - `Reloadable`\n - `Non-reloadable`\n" + }, + "cardProduct": { + "type": "string", + "maxLength": 50, + "description": "This field contains the type of issuer product.\nExample values:\n - Visa Classic\n - Visa Signature\n - Visa Infinite\n" + }, + "messageType": { + "type": "string", + "maxLength": 1, + "description": "This field contains the type of BIN based authentication.\nPossible values:\n - `S`: Single Message\n - `D`: Dual Message\n" + }, + "acceptanceLevel": { + "type": "string", + "maxLength": 2, + "description": "This field contains the acceptance level of the PAN.\nPossible values:\n - `0` : Normal\n - `1` : Monitor\n - `2` : Refuse\n - `3` : Not Allowed\n - `4` : Private\n - `5` : Test\n" + }, + "cardPlatform": { + "type": "string", + "maxLength": 20, + "description": "This field contains the type of card platform.\nPossible values:\n - `BUSINESS`\n - `CONSUMER`\n - `CORPORATE`\n - `COMMERCIAL`\n - `GOVERNMENT`\n" + }, + "comboCard": { + "type": "string", + "maxLength": 1, + "description": "This field indicates the type of combo card.\nPossible values:\n - 0 (Not a combo card)\n - 1 (Credit and Prepaid Combo card)\n - 2 (Credit and Debit Combo card)\n - 3 (Prepaid Credit and Prepaid Debit combo card)\n" + }, + "corporatePurchase": { + "type": "boolean", + "description": "This field indicates if the instrument can be used for corporate purchasing. This field is only applicable for American Express cards.\nPossible values:\n - `true`\n - `false`\n" + }, + "healthCard": { + "type": "boolean", + "description": "This field indicates if the BIN is for healthcare (HSA/FSA). Currently, this field is only supported for Visa BINs.\nPossible values:\n - `true`\n - `false`\n" + }, + "sharedBIN": { + "type": "boolean", + "description": "This field indicates if the BIN is shared by multiple issuers\nPossible values:\n - `true`\n - `false`\n" + }, + "posDomesticOnly": { + "type": "boolean", + "description": "This field indicates if the BIN is valid only for POS domestic usage.\nPossible values:\n - `true`\n - `false`\n" + }, + "gamblingAllowed": { + "type": "boolean", + "description": "This field indicates if gambling transactions are allowed on the BIN.\nPossible values:\n - `true`\n - `false`\n" + }, + "commercialCardLevel2": { + "type": "boolean", + "description": "This field indicates if a transaction on the instrument qualifies for level 2 interchange rates.\nPossible values:\n - `true`\n - `false`\n" + }, + "commercialCardLevel3": { + "type": "boolean", + "description": "This field indicates if a transaction on the instrument qualifies for level 3 interchange rates.\nPossible values:\n - `true`\n - `false`\n" + }, + "exemptBIN": { + "type": "boolean", + "description": "This field indicates if a transaction on the instrument qualifies for government exempt interchange fee.\nPossible values:\n - `true`\n - `false`\n" + }, + "accountLevelManagement": { + "type": "boolean", + "description": "This field indicates if the BIN participates in Account Level Management (ALM).\nPossible values:\n - `true`\n - `false`\n" + }, + "onlineGamblingBlock": { + "type": "boolean", + "description": "This field indicates if online gambling is blocked on the BIN.\nPossible values:\n - `true`\n - `false`\n" + }, + "autoSubstantiation": { + "type": "boolean", + "description": "This field indicates if auto-substantiation is enabled on the BIN.\nPossible values:\n - `true`\n - `false`\n" + }, + "flexCredential": { + "type": "boolean", + "description": "This field indicates if the instrument is a flex credential.\nPossible values:\n - `true`\n - `false`\n" + }, + "productId": { + "type": "string", + "description": "This field contains the Visa-assigned product identifier associated with the BIN. This field is only supported for Visa BINs.\nExample values:\n - Q4\n - P\n - AX\n" + }, + "productIdSubtype": { + "type": "string", + "description": "This field contains the Visa-assigned product subtype identifier associated with the BIN. This field is only supported for Visa BINs.\nExample values:\n - BB\n - EX\n - L2\n - C2\n" + }, + "threeDSSupport": { + "type": "boolean", + "description": "This field indicates if the payment instrument supports 3D Secure authentication.\nPossible values:\n - `true`\n - `false`\n" + }, + "siEligible": { + "type": "boolean", + "description": "This field indicates if the payment instrument is eligible for Standing Instructions (recurring payments).\nPossible values:\n - `true`\n - `false`\n" + }, + "emiEligible": { + "type": "boolean", + "description": "This field indicates if the card is eligible for Equated Monthly Installments (EMI).\nPossible values:\n - `true`\n - `false`\n" + } + } + }, + "network": { + "type": "object", + "properties": { + "id": { + "type": "string", + "description": "This field contains a code that identifies the network.\n[List of Network ID and Sharing Group Code](https://developer.visa.com/request_response_codes#network_id_and_sharing_group_code)\n" + } + } + } + } + }, + "issuerInformation": { + "type": "object", + "properties": { + "name": { + "type": "string", + "maxLength": 200, + "description": "This field contains the issuer name.\n" + }, + "country": { + "type": "string", + "maxLength": 2, + "description": "This field contains [2-character ISO Country Codes](http://apps.cybersource.com/library/documentation/sbc/quickref/countries_alpha_list.pdf) for the issuer.\n" + }, + "binLength": { + "type": "string", + "maxLength": 2, + "description": "This field contains the length of the BIN. In some cases, this field may be absent if we do not receive accurate information from the network source.\n" + }, + "accountPrefix": { + "type": "string", + "maxLength": 8, + "description": "This field contains the first 6 to 8 digits of a primary account number (PAN). The length of the field is determined by [PCI-DSS standards for truncation](https://pcissc.secure.force.com/faq/articles/Frequently_Asked_Question/What-are-acceptable-formats-for-truncation-of-primary-account-numbers).In case the input is not the full intrument (PAN or TOKEN), this field may be truncated.\n" + }, + "phoneNumber": { + "type": "string", + "maxLength": 50, + "description": "This field contains the customer service phone number for the issuer.\n" + } + } + } + } + } + } + } + } + } + } + } + } + }, + "instrumentIdentifier": { + "type": "object", + "properties": { + "_links": { + "type": "object", + "readOnly": true, + "properties": { + "self": { + "type": "object", + "readOnly": true, + "properties": { + "href": { + "type": "string", + "readOnly": true, + "description": "Link to the Instrument Identifier.\n", + "example": "tms/v1/instrumentidentifiers/7010000000016241111" + } + } + }, + "paymentInstruments": { + "type": "object", + "readOnly": true, + "properties": { + "href": { + "type": "string", + "readOnly": true, + "description": "Link to the Instrument Identifiers Payment Instruments.\n", + "example": "tms/v1/instrumentidentifiers/7010000000016241111/paymentinstruments" + } + } + } + } + }, + "id": { + "type": "string", + "description": "The Id of the Instrument Identifier Token.\n" + }, + "object": { + "type": "string", + "readOnly": true, + "example": "instrumentIdentifier", + "description": "The type.\n\nPossible Values:\n- instrumentIdentifier\n" + }, + "state": { + "type": "string", + "readOnly": true, + "example": "ACTIVE", + "description": "Issuers state for the card number.\nPossible Values:\n- ACTIVE\n- CLOSED : The account has been closed.\n" + }, + "type": { + "type": "string", + "description": "The type of Instrument Identifier.\nPossible Values:\n- enrollable card\n- enrollable token\n" + }, + "source": { + "type": "string", + "description": "Source of the card details.\nPossible Values:\n- CONTACTLESS_TAP\n" + }, + "tokenProvisioningInformation": { + "type": "object", + "properties": { + "consumerConsentObtained": { + "type": "boolean", + "description": "Flag that indicates whether the user consented to the tokenization of their credentials. Required for card network tokenization in certain markets, such as India.\nPossible Values:\n- `true`: Consumer has consented to tokenization of their credentials.\n- `false`: Consumer has not consented to tokenization of their credentials.\n" + }, + "multiFactorAuthenticated": { + "type": "boolean", + "description": "Flag that indicates whether AFA (Additional Factor of Authentication) for the PAN was completed. Required for card network tokenization in certain markets, such as India.\nPossible Values:\n- `true`: Consumer has been authenticated by the issuer.\n- `false`: Consumer has not been authenticated by the issuer.\n" + } + } + }, + "card": { + "type": "object", + "description": "The expirationMonth, expirationYear and securityCode is sent to the issuer as part of network token enrollment and is not stored under the Instrument Identifier.\n", + "properties": { + "number": { + "type": "string", + "minLength": 12, + "maxLength": 19, + "description": "The customer's payment card number, also known as the Primary Account Number (PAN). You can also use this field\nfor encoded account numbers.\n" + }, + "expirationMonth": { + "type": "string", + "maxLength": 2, + "description": "Two-digit month in which the payment card expires.\n\nFormat: `MM`.\n\nPossible Values: `01` through `12`.\n" + }, + "expirationYear": { + "type": "string", + "maxLength": 4, + "description": "Four-digit year in which the credit card expires.\n\nFormat: `YYYY`.\n" + }, + "securityCode": { + "type": "string", + "maxLength": 4, + "description": "Card Verification Code. \nThis value is sent to the issuer to support the approval of a network token provision.\nIt is not persisted against the Instrument Identifier.\n" + } + } + }, + "pointOfSaleInformation": { + "type": "object", + "required": [ + "emvTags" + ], + "properties": { + "emvTags": { + "type": "array", + "minItems": 1, + "maxItems": 50, + "items": { + "type": "object", + "required": [ + "tag", + "value", + "source" + ], + "properties": { + "tag": { + "type": "string", + "minLength": 1, + "maxLength": 10, + "pattern": "^[0-9A-Fa-f]{1,10}$", + "description": "EMV tag, 1-10 hex characters." + }, + "value": { + "type": "string", + "minLength": 1, + "maxLength": 64, + "description": "EMV tag value, 1-64 characters." + }, + "source": { + "type": "string", + "description": "Source of the tag.\n\nPossible Values:\n - CARD\n - TERMINAL\n" + } + }, + "example": { + "tag": "5A", + "value": "4111111111111111", + "source": "CARD" + } + } + } + } + }, + "bankAccount": { + "type": "object", + "properties": { + "number": { + "type": "string", + "maxLength": 17, + "description": "Account number.\n\nWhen processing encoded account numbers, use this field for the encoded account number.\n" + }, + "routingNumber": { + "type": "string", + "description": "Bank routing number. This is also called the transit number.\n\n# For details, see `ecp_rdfi` field description in the [Electronic Check Services Using the SCMP API Guide.](https://apps.cybersource.com/library/documentation/dev_guides/EChecks_SCMP_API/html/)\n" + } + } + }, + "tokenizedCard": { + "title": "tmsv2TokenizedCard", + "type": "object", + "properties": { + "_links": { + "type": "object", + "readOnly": true, + "properties": { + "self": { + "type": "object", + "readOnly": true, + "properties": { + "href": { + "type": "string", + "readOnly": true, + "description": "Link to the Tokenized Card.\nexample: 'tms/v2/tokenized-cards/7010000000016241111'\n" + } + } + } + } + }, + "id": { + "type": "string", + "readOnly": true, + "description": "The Id of the Tokenized Card.\n" + }, + "object": { + "type": "string", + "readOnly": true, + "example": "tokenizedCard", + "description": "The type.\nPossible Values:\n- tokenizedCard\n" + }, + "accountReferenceId": { + "type": "string", + "description": "An identifier provided by the issuer for the account.\n" + }, + "consumerId": { + "type": "string", + "maxLength": 36, + "description": "Identifier of the consumer within the wallet. Maximum 24 characters for VTS." + }, + "createInstrumentIdentifier": { + "type": "boolean", + "description": "Specifies whether the InstrumentId should be created (true) or not (false).\nPossible Values:\n- `true`: The InstrumentId should be created.\n- `false`: The InstrumentId should be created.\n" + }, + "source": { + "type": "string", + "description": "Source of the card details.\nPossible Values:\n- ONFILE\n- TOKEN\n- ISSUER\n" + }, + "state": { + "type": "string", + "readOnly": true, + "example": "ACTIVE", + "description": "State of the network token or network token provision.\nPossible Values:\n ACTIVE : Network token is active.\n SUSPENDED : Network token is suspended. This state can change back to ACTIVE.\n DELETED : This is a final state for a network token instance.\n UNPROVISIONED : A previous network token.\n" + }, + "reason": { + "type": "string", + "readOnly": true, + "example": "ACTIVE", + "description": "Issuers state for the network token\nPossible Values:\n- INVALID_REQUEST : The network token provision request contained invalid data.\n- CARD_VERIFICATION_FAILED : The network token provision request contained data that could not be verified.\n- CARD_NOT_ELIGIBLE : Card can currently not be used with issuer for tokenization.\n- CARD_NOT_ALLOWED : Card can currently not be used with card association for tokenization.\n- DECLINED : Card can currently not be used with issuer for tokenization.\n- SERVICE_UNAVAILABLE : The network token service was unavailable or timed out.\n- SYSTEM_ERROR : An unexpected error occurred with network token service, check configuration.\n" + }, + "number": { + "type": "string", + "readOnly": true, + "description": "The token requestor's network token for the provided PAN and consumer Id, if available.\n" + }, + "expirationMonth": { + "type": "string", + "readOnly": true, + "description": "Two-digit month in which the network token expires.\nFormat: `MM`.\nPossible Values: `01` through `12`.\n" + }, + "expirationYear": { + "type": "string", + "readOnly": true, + "description": "Four-digit year in which the network token expires.\nFormat: `YYYY`.\n" + }, + "type": { + "type": "string", + "description": "The type of card (Card Network).\nPossible Values:\n- visa\n- mastercard\n- americanexpress\n" + }, + "cryptogram": { + "type": "string", + "readOnly": true, + "description": "Value generated by the card association to be used alongside the network token for processing a payment.\n", + "example": "CgAFRFYFPTFOfg5rj2ais9wQAAAAAM=" + }, + "securityCode": { + "type": "string", + "readOnly": true, + "description": "4-digit number generated by the card association to be used alogside the network token for processing a payment. Only supported for Amex and SCOF.\n", + "example": "4523" + }, + "eci": { + "type": "string", + "readOnly": true, + "description": "Raw Electronic Commerce Indicator provided by the card association with the result of the cardholder authentication.\n" + }, + "requestorId": { + "type": "string", + "readOnly": true, + "maxLength": 11, + "description": "11-digit identifier that uniquely identifies the Token Requestor.\n" + }, + "enrollmentId": { + "type": "string", + "readOnly": true, + "description": "Unique id to identify this PAN/ enrollment.\n" + }, + "tokenReferenceId": { + "type": "string", + "readOnly": true, + "description": "Unique ID for netwrok token.\n" + }, + "paymentAccountReference": { + "type": "string", + "readOnly": true, + "description": "Payment account reference.\n" + }, + "card": { + "type": "object", + "description": "Card object used to create a network token\n", + "properties": { + "number": { + "type": "string", + "minLength": 12, + "maxLength": 19, + "description": "The customer's payment card number, also known as the Primary Account Number (PAN).\n" + }, + "expirationMonth": { + "type": "string", + "maxLength": 2, + "description": "Two-digit month in which the payment card expires.\n\nFormat: `MM`.\n\nPossible Values: `01` through `12`.\n" + }, + "expirationYear": { + "type": "string", + "maxLength": 4, + "description": "Four-digit year in which the credit card expires.\n\nFormat: `YYYY`.\n" + }, + "type": { + "type": "string", + "description": "The type of card (Card Network).\nPossible Values:\n- 001: visa\n" + }, + "suffix": { + "type": "string", + "readOnly": true, + "description": "The customer's latest payment card number suffix.\n" + }, + "issueDate": { + "type": "string", + "readOnly": true, + "format": "date", + "description": "Card issuance date. XML date format: YYYY-MM-DD.", + "example": "2030-12-15" + }, + "activationDate": { + "type": "string", + "readOnly": true, + "format": "date", + "description": "Card activation date. XML date format: YYYY-MM-DD", + "example": "2030-12-20" + }, + "expirationPrinted": { + "type": "boolean", + "readOnly": true, + "description": "Indicates if the expiration date is printed on the card.", + "example": true + }, + "securityCodePrinted": { + "type": "boolean", + "readOnly": true, + "description": "Indicates if the Card Verification Number is printed on the card.", + "example": true + }, + "termsAndConditions": { + "type": "object", + "readOnly": true, + "properties": { + "url": { + "type": "string", + "readOnly": true, + "description": "Issuer Card Terms and Conditions url." + } + } + } + } + }, + "passcode": { + "type": "object", + "description": "Passcode by issuer for ID&V.\n", + "properties": { + "value": { + "type": "string", + "description": "OTP generated at issuer.\n" + } + } + }, + "metadata": { + "type": "object", + "readOnly": true, + "description": "Metadata associated with the tokenized card.\n", + "properties": { + "cardArt": { + "title": "TmsCardArt", + "description": "Card art associated with the tokenized card.\n", + "type": "object", + "readOnly": true, + "properties": { + "foregroundColor": { + "description": "Card foreground color.\n", + "type": "string", + "readOnly": true + }, + "combinedAsset": { + "description": "Combined card art asset associated with the tokenized card.\n", + "type": "object", + "readOnly": true, + "properties": { + "id": { + "type": "string", + "description": "Unique identifier for the asset\n" + }, + "_links": { + "type": "object", + "readOnly": true, + "properties": { + "self": { + "type": "object", + "readOnly": true, + "properties": { + "href": { + "type": "string", + "readOnly": true, + "description": "Link to the card art asset.\nexample: 'tms/v2/tokens/7020000000010603216/visa/assets/card-art-combined'\n" + } + } + } + } + } + } + }, + "brandLogoAsset": { + "description": "Brand logo card art asset associated with the tokenized card.\n", + "type": "object", + "readOnly": true, + "properties": { + "id": { + "type": "string", + "description": "Unique identifier for the asset\n" + }, + "_links": { + "type": "object", + "readOnly": true, + "properties": { + "self": { + "type": "object", + "readOnly": true, + "properties": { + "href": { + "type": "string", + "readOnly": true, + "description": "Link to the card art asset.\nexample: 'tms/v2/tokens/7020000000010603216/visa/assets/brand-logo'\n" + } + } + } + } + } + } + }, + "issuerLogoAsset": { + "description": "Issuer logo card art asset associated with the tokenized card.\n", + "type": "object", + "readOnly": true, + "properties": { + "id": { + "type": "string", + "description": "Unique identifier for the asset\n" + }, + "_links": { + "type": "object", + "readOnly": true, + "properties": { + "self": { + "type": "object", + "readOnly": true, + "properties": { + "href": { + "type": "string", + "readOnly": true, + "description": "Link to the card art asset.\nexample: 'tms/v2/tokens/7020000000010603216/visa/assets/issuer-logo'\n" + } + } + } + } + } + } + }, + "iconAsset": { + "description": "Icon card art asset associated with the tokenized card.\n", + "type": "object", + "readOnly": true, + "properties": { + "id": { + "type": "string", + "description": "Unique identifier for the asset\n" + }, + "_links": { + "type": "object", + "readOnly": true, + "properties": { + "self": { + "type": "object", + "readOnly": true, + "properties": { + "href": { + "type": "string", + "readOnly": true, + "description": "Link to the card art asset.\nexample: 'tms/v2/tokens/7020000000010603216/visa/assets/icon'\n" + } + } + } + } + } + } + } + } + }, + "issuer": { + "description": "Issuer associated with the tokenized card.\n", + "type": "object", + "readOnly": true, + "properties": { + "name": { + "description": "Issuer name.\n", + "type": "string", + "readOnly": true + }, + "shortDescription": { + "description": "Short description of the card.\n", + "type": "string", + "readOnly": true + }, + "longDescription": { + "description": "Long description of the card.\n", + "type": "string", + "readOnly": true + }, + "email": { + "type": "string", + "readOnly": true, + "description": "Issuer customer service email address." + }, + "phoneNumber": { + "type": "string", + "readOnly": true, + "description": "Issuer customer service phone number." + }, + "url": { + "type": "string", + "readOnly": true, + "description": "Issuer customer service url." + } + } + } + } + } + } + }, + "issuer": { + "type": "object", + "readOnly": true, + "properties": { + "paymentAccountReference": { + "type": "string", + "readOnly": true, + "maxLength": 32, + "description": "This reference number serves as a link to the cardholder account and to all transactions for that account.\n" + } + } + }, + "processingInformation": { + "type": "object", + "properties": { + "authorizationOptions": { + "type": "object", + "title": "tmsAuthorizationOptions", + "properties": { + "initiator": { + "type": "object", + "properties": { + "merchantInitiatedTransaction": { + "type": "object", + "properties": { + "previousTransactionId": { + "type": "string", + "maxLength": 15, + "description": "Network transaction identifier that was returned in the payment response field _processorInformation.transactionID_\nin the reply message for either the original merchant-initiated payment in the series or the previous\nmerchant-initiated payment in the series.\n" + }, + "originalAuthorizedAmount": { + "type": "string", + "maxLength": 15, + "description": "Amount of the original authorization.\n" + } + } + } + } + } + } + } + } + }, + "billTo": { + "type": "object", + "description": "This information is sent to the issuer as part of network token enrollment and is not stored under the Instrument Identifier.\n", + "properties": { + "address1": { + "type": "string", + "maxLength": 60, + "description": "Payment card billing street address as it appears on the credit card issuer's records.\n" + }, + "address2": { + "type": "string", + "maxLength": 60, + "description": "Additional address information.\n" + }, + "locality": { + "type": "string", + "maxLength": 50, + "description": "Payment card billing city.\n" + }, + "administrativeArea": { + "type": "string", + "maxLength": 20, + "description": "State or province of the billing address. Use the State, Province, and Territory Codes for the United States\nand Canada.\n" + }, + "postalCode": { + "type": "string", + "maxLength": 10, + "description": "Postal code for the billing address. The postal code must consist of 5 to 9 digits.\n\nWhen the billing country is the U.S., the 9-digit postal code must follow this format:\n[5 digits][dash][4 digits]\n\n**Example** `12345-6789`\n\nWhen the billing country is Canada, the 6-digit postal code must follow this format:\n[alpha][numeric][alpha][space][numeric][alpha][numeric]\n\n**Example** `A1B 2C3`\n" + }, + "country": { + "type": "string", + "maxLength": 2, + "description": "Payment card billing country. Use the two-character ISO Standard Country Codes.\n" + } + } + }, + "metadata": { + "type": "object", + "readOnly": true, + "properties": { + "creator": { + "type": "string", + "readOnly": true, + "description": "The creator of the Instrument Identifier." + } + } + }, + "_embedded": { + "type": "object", + "readOnly": true, + "properties": { + "binLookup": { + "title": "TmsBinLookup", + "description": "Bin Information of the PAN provided by BinLookUp Service. This is only retrieved when retrieveBinDetails=true is passed as a query parameter.\n", + "readOnly": true, + "type": "object", + "properties": { + "paymentAccountInformation": { + "type": "object", + "properties": { + "card": { + "type": "object", + "properties": { + "type": { + "type": "string", + "maxLength": 3, + "description": "This field contains a 3-digit numeric value that indicates the card type within Cybersource eco-system.\nPossible values from BIN Lookup Service (based on availability and enablement):\n- `000`: Unsupported Card Type\n- `001`: Visa\n- `002`: Mastercard\n- `003`: American Express\n- `004`: Discover\n- `005`: Diners Club\n- `007`: JCB\n- `036`: Cartes Bancaire\n- `042`: Maestro\n- `054`: Elo\n- `058`: Carnet\n- `060`: MADA\n- `061`: RuPay\n- `062`: China UnionPay\n- `064`: Prompt Card\n- `067`: Meeza\n- `068`: PayPak\n- `070`: EFTPOS\n- `081`: Jaywan\n- `082`: TPN\n\nGlossary of possible values in the payments ecosystem:\n- `001`: Visa\n- `002`: Mastercard\n- `003`: American Express\n- `004`: Discover\n- `005`: Diners Club\n- `006`: Carte Blanche\n- `007`: JCB\n- `008`: Optima\n- `009`: GE Private Label\n- `010`: Beneficial Private Label\n- `011`: Twinpay Credit Card\n- `012`: Twinpay Debit Card\n- `013`: Walmart\n- `014`: EnRoute\n- `015`: Lowe's Consumer\n- `016`: Home Depot Consumer\n- `017`: MBNA\n- `018`: Dick's Sportwear\n- `019`: Casual Corner\n- `020`: Sears\n- `021`: JAL\n- `023`: Disney Card\n- `024`: Switch/Solo\n- `025`: Sam's Club Consumer\n- `026`: Sam's Club Business\n- `027`: Nico's\n- `028`: Paymentech Bill Me Later\n- `029`: Bebe\n- `030`: Restoration Hardware\n- `031`: Delta Online\n- `032`: Solo\n- `033`: Visa Electron\n- `034`: Dankort\n- `035`: Laser\n- `036`: Cartes Bancaire\n- `037`: Carta Si\n- `040`: UATP\n- `041`: HOUSEHOLD\n- `042`: Maestro\n- `043`: GE MONEY\n- `044`: Korean Cards\n- `045`: Style Cards\n- `046`: J.Crew\n- `047`: Payeasecn eWallet\n- `048`: Payeasecn Bank Transfer\n- `049`: Meijer\n- `050`: Hipercard\n- `051`: Aura\n- `052`: Redecard\n- `053`: Orico Card\n- `054`: Elo\n- `055`: Capital One Private Label\n- `057`: Costco Private Label\n- `058`: Carnet\n- `059`: ValueLink\n- `060`: MADA\n- `061`: RuPay\n- `062`: China UnionPay\n- `063`: Falabella Private Label\n- `064`: Prompt Card\n- `065`: Korean Domestic\n- `066`: Banricompras\n- `067`: Meeza\n- `068`: PayPak\n- `070`: EFTPOS\n- `071`: Codensa\n- `072`: Olimpica\n- `073`: Colsubsidio\n- `074`: Tuya\n- `075`: Sodexo\n- `076`: Naranja\n- `077`: Cabal\n- `078`: DINELCO\n- `079`: PANAL\n- `080`: EPM\n- `081`: Jaywan\n- `082`: TPN\n" + }, + "brandName": { + "type": "string", + "maxLength": 20, + "description": "This field contains the card brand name. \n\nSome of the possible values (not an exhaustive list) are -\n\n - VISA\n - MASTERCARD\n - AMERICAN EXPRESS\n - DISCOVER\n - DINERS CLUB\n - CARTE BLANCHE\n - JCB\n - OPTIMA\n - TWINPAY CREDIT CARD\n - TWINPAY DEBIT CARD\n - WALMART\n - ENROUTE\n - LOWES CONSUMER\n - HOME DEPOT CONSUMER\n - MBNA\n - DICKS SPORTWEAR\n - CASUAL CORNER\n - SEARS\n - JAL\n - DISNEY CARD\n - SWITCH/SOLO\n - SAMS CLUB CONSUMER\n - SAMS CLUB BUSINESS\n - NICOS HOUSE CARD\n - BEBE\n - RESTORATION HARDWARE\n - DELTA ONLINE\n - SOLO\n - VISA ELECTRON\n - DANKORT\n - LASER\n - CARTE BANCAIRE\n - CARTA SI\n - ENCODED ACCOUNT\n - UATP\n - HOUSEHOLD\n - MAESTRO\n - GE CAPITAL\n - KOREAN CARDS\n - STYLE CARDS\n - JCREW\n - MEIJER\n - HIPERCARD\n - AURA\n - REDECARD\n - ORICO HOUSE CARD\n - MADA\n - ELO\n - CAPITAL ONE PRIVATE LABEL\n - CARNET\n - RUPAY\n - CHINA UNION PAY\n - FALABELLA PRIVATE LABEL\n - PROMPTCARD\n - KOREAN DOMESTIC\n - BANRICOMPRAS\n - MEEZA\n - PAYPAK\n - JAYWAN\n - TPN\n" + }, + "currency": { + "type": "string", + "maxLength": 3, + "description": "This field indicates the 3-letter [ISO Standard Currency Codes](http://apps.cybersource.com/library/documentation/sbc/quickref/currencies.pdf) for the card currency.\n" + }, + "maxLength": { + "type": "string", + "maxLength": 2, + "description": "This field contains the max length of the card.\n" + }, + "credentialType": { + "type": "string", + "maxLength": 5, + "description": "This field contains the type of the payment credential.\nPossible values:\n - PAN\n - TOKEN \n" + }, + "brands": { + "description": "Array of brands", + "type": "array", + "items": { + "type": "object", + "properties": { + "type": { + "type": "string", + "maxLength": 3, + "description": "This field contains a 3-digit numeric value that indicates the card type within Cybersource eco-system.\nPossible values from BIN Lookup Service (based on availability and enablement):\n- `000`: Unsupported Card Type\n- `001`: Visa\n- `002`: Mastercard\n- `003`: American Express\n- `004`: Discover\n- `005`: Diners Club\n- `007`: JCB\n- `036`: Cartes Bancaire\n- `042`: Maestro\n- `054`: Elo\n- `058`: Carnet\n- `060`: MADA\n- `061`: RuPay\n- `062`: China UnionPay\n- `064`: Prompt Card\n- `067`: Meeza\n- `068`: PayPak\n- `070`: EFTPOS\n- `081`: Jaywan\n- `082`: TPN\n\nGlossary of possible values in the payments ecosystem:\n- `001`: Visa\n- `002`: Mastercard\n- `003`: American Express\n- `004`: Discover\n- `005`: Diners Club\n- `006`: Carte Blanche\n- `007`: JCB\n- `008`: Optima\n- `009`: GE Private Label\n- `010`: Beneficial Private Label\n- `011`: Twinpay Credit Card\n- `012`: Twinpay Debit Card\n- `013`: Walmart\n- `014`: EnRoute\n- `015`: Lowe's Consumer\n- `016`: Home Depot Consumer\n- `017`: MBNA\n- `018`: Dick's Sportwear\n- `019`: Casual Corner\n- `020`: Sears\n- `021`: JAL\n- `023`: Disney Card\n- `024`: Switch/Solo\n- `025`: Sam's Club Consumer\n- `026`: Sam's Club Business\n- `027`: Nico's\n- `028`: Paymentech Bill Me Later\n- `029`: Bebe\n- `030`: Restoration Hardware\n- `031`: Delta Online\n- `032`: Solo\n- `033`: Visa Electron\n- `034`: Dankort\n- `035`: Laser\n- `036`: Cartes Bancaire\n- `037`: Carta Si\n- `040`: UATP\n- `041`: HOUSEHOLD\n- `042`: Maestro\n- `043`: GE MONEY\n- `044`: Korean Cards\n- `045`: Style Cards\n- `046`: J.Crew\n- `047`: Payeasecn eWallet\n- `048`: Payeasecn Bank Transfer\n- `049`: Meijer\n- `050`: Hipercard\n- `051`: Aura\n- `052`: Redecard\n- `053`: Orico Card\n- `054`: Elo\n- `055`: Capital One Private Label\n- `057`: Costco Private Label\n- `058`: Carnet\n- `059`: ValueLink\n- `060`: MADA\n- `061`: RuPay\n- `062`: China UnionPay\n- `063`: Falabella Private Label\n- `064`: Prompt Card\n- `065`: Korean Domestic\n- `066`: Banricompras\n- `067`: Meeza\n- `068`: PayPak\n- `070`: EFTPOS\n- `071`: Codensa\n- `072`: Olimpica\n- `073`: Colsubsidio\n- `074`: Tuya\n- `075`: Sodexo\n- `076`: Naranja\n- `077`: Cabal\n- `078`: DINELCO\n- `079`: PANAL\n- `080`: EPM\n- `081`: Jaywan\n- `082`: TPN\n" + }, + "brandName": { + "type": "string", + "maxLength": 20, + "description": "This field contains the card brand name. \n\nSome of the possible values (not an exhaustive list) are -\n\n - VISA\n - MASTERCARD\n - AMERICAN EXPRESS\n - DISCOVER\n - DINERS CLUB\n - CARTE BLANCHE\n - JCB\n - OPTIMA\n - TWINPAY CREDIT CARD\n - TWINPAY DEBIT CARD\n - WALMART\n - ENROUTE\n - LOWES CONSUMER\n - HOME DEPOT CONSUMER\n - MBNA\n - DICKS SPORTWEAR\n - CASUAL CORNER\n - SEARS\n - JAL\n - DISNEY CARD\n - SWITCH/SOLO\n - SAMS CLUB CONSUMER\n - SAMS CLUB BUSINESS\n - NICOS HOUSE CARD\n - BEBE\n - RESTORATION HARDWARE\n - DELTA ONLINE\n - SOLO\n - VISA ELECTRON\n - DANKORT\n - LASER\n - CARTE BANCAIRE\n - CARTA SI\n - ENCODED ACCOUNT\n - UATP\n - HOUSEHOLD\n - MAESTRO\n - GE CAPITAL\n - KOREAN CARDS\n - STYLE CARDS\n - JCREW\n - MEIJER\n - HIPERCARD\n - AURA\n - REDECARD\n - ORICO HOUSE CARD\n - MADA\n - ELO\n - CAPITAL ONE PRIVATE LABEL\n - CARNET\n - RUPAY\n - CHINA UNION PAY\n - FALABELLA PRIVATE LABEL\n - PROMPTCARD\n - KOREAN DOMESTIC\n - BANRICOMPRAS\n - MEEZA\n - PAYPAK\n - JAYWAN\n - TPN\n" + } + } + } + } + } + }, + "features": { + "type": "object", + "properties": { + "accountFundingSource": { + "type": "string", + "maxLength": 20, + "description": "This field contains the account funding source.\nPossible values:\n - `CREDIT`\n - `DEBIT`\n - `PREPAID`\n - `DEFERRED DEBIT`\n - `CHARGE`\n" + }, + "accountFundingSourceSubType": { + "type": "string", + "maxLength": 20, + "description": "This field contains the type of prepaid card.\nPossible values:\n - `Reloadable`\n - `Non-reloadable`\n" + }, + "cardProduct": { + "type": "string", + "maxLength": 50, + "description": "This field contains the type of issuer product.\nExample values:\n - Visa Classic\n - Visa Signature\n - Visa Infinite\n" + }, + "messageType": { + "type": "string", + "maxLength": 1, + "description": "This field contains the type of BIN based authentication.\nPossible values:\n - `S`: Single Message\n - `D`: Dual Message\n" + }, + "acceptanceLevel": { + "type": "string", + "maxLength": 2, + "description": "This field contains the acceptance level of the PAN.\nPossible values:\n - `0` : Normal\n - `1` : Monitor\n - `2` : Refuse\n - `3` : Not Allowed\n - `4` : Private\n - `5` : Test\n" + }, + "cardPlatform": { + "type": "string", + "maxLength": 20, + "description": "This field contains the type of card platform.\nPossible values:\n - `BUSINESS`\n - `CONSUMER`\n - `CORPORATE`\n - `COMMERCIAL`\n - `GOVERNMENT`\n" + }, + "comboCard": { + "type": "string", + "maxLength": 1, + "description": "This field indicates the type of combo card.\nPossible values:\n - 0 (Not a combo card)\n - 1 (Credit and Prepaid Combo card)\n - 2 (Credit and Debit Combo card)\n - 3 (Prepaid Credit and Prepaid Debit combo card)\n" + }, + "corporatePurchase": { + "type": "boolean", + "description": "This field indicates if the instrument can be used for corporate purchasing. This field is only applicable for American Express cards.\nPossible values:\n - `true`\n - `false`\n" + }, + "healthCard": { + "type": "boolean", + "description": "This field indicates if the BIN is for healthcare (HSA/FSA). Currently, this field is only supported for Visa BINs.\nPossible values:\n - `true`\n - `false`\n" + }, + "sharedBIN": { + "type": "boolean", + "description": "This field indicates if the BIN is shared by multiple issuers\nPossible values:\n - `true`\n - `false`\n" + }, + "posDomesticOnly": { + "type": "boolean", + "description": "This field indicates if the BIN is valid only for POS domestic usage.\nPossible values:\n - `true`\n - `false`\n" + }, + "gamblingAllowed": { + "type": "boolean", + "description": "This field indicates if gambling transactions are allowed on the BIN.\nPossible values:\n - `true`\n - `false`\n" + }, + "commercialCardLevel2": { + "type": "boolean", + "description": "This field indicates if a transaction on the instrument qualifies for level 2 interchange rates.\nPossible values:\n - `true`\n - `false`\n" + }, + "commercialCardLevel3": { + "type": "boolean", + "description": "This field indicates if a transaction on the instrument qualifies for level 3 interchange rates.\nPossible values:\n - `true`\n - `false`\n" + }, + "exemptBIN": { + "type": "boolean", + "description": "This field indicates if a transaction on the instrument qualifies for government exempt interchange fee.\nPossible values:\n - `true`\n - `false`\n" + }, + "accountLevelManagement": { + "type": "boolean", + "description": "This field indicates if the BIN participates in Account Level Management (ALM).\nPossible values:\n - `true`\n - `false`\n" + }, + "onlineGamblingBlock": { + "type": "boolean", + "description": "This field indicates if online gambling is blocked on the BIN.\nPossible values:\n - `true`\n - `false`\n" + }, + "autoSubstantiation": { + "type": "boolean", + "description": "This field indicates if auto-substantiation is enabled on the BIN.\nPossible values:\n - `true`\n - `false`\n" + }, + "flexCredential": { + "type": "boolean", + "description": "This field indicates if the instrument is a flex credential.\nPossible values:\n - `true`\n - `false`\n" + }, + "productId": { + "type": "string", + "description": "This field contains the Visa-assigned product identifier associated with the BIN. This field is only supported for Visa BINs.\nExample values:\n - Q4\n - P\n - AX\n" + }, + "productIdSubtype": { + "type": "string", + "description": "This field contains the Visa-assigned product subtype identifier associated with the BIN. This field is only supported for Visa BINs.\nExample values:\n - BB\n - EX\n - L2\n - C2\n" + }, + "threeDSSupport": { + "type": "boolean", + "description": "This field indicates if the payment instrument supports 3D Secure authentication.\nPossible values:\n - `true`\n - `false`\n" + }, + "siEligible": { + "type": "boolean", + "description": "This field indicates if the payment instrument is eligible for Standing Instructions (recurring payments).\nPossible values:\n - `true`\n - `false`\n" + }, + "emiEligible": { + "type": "boolean", + "description": "This field indicates if the card is eligible for Equated Monthly Installments (EMI).\nPossible values:\n - `true`\n - `false`\n" + } + } + }, + "network": { + "type": "object", + "properties": { + "id": { + "type": "string", + "description": "This field contains a code that identifies the network.\n[List of Network ID and Sharing Group Code](https://developer.visa.com/request_response_codes#network_id_and_sharing_group_code)\n" + } + } + } + } + }, + "issuerInformation": { + "type": "object", + "properties": { + "name": { + "type": "string", + "maxLength": 200, + "description": "This field contains the issuer name.\n" + }, + "country": { + "type": "string", + "maxLength": 2, + "description": "This field contains [2-character ISO Country Codes](http://apps.cybersource.com/library/documentation/sbc/quickref/countries_alpha_list.pdf) for the issuer.\n" + }, + "binLength": { + "type": "string", + "maxLength": 2, + "description": "This field contains the length of the BIN. In some cases, this field may be absent if we do not receive accurate information from the network source.\n" + }, + "accountPrefix": { + "type": "string", + "maxLength": 8, + "description": "This field contains the first 6 to 8 digits of a primary account number (PAN). The length of the field is determined by [PCI-DSS standards for truncation](https://pcissc.secure.force.com/faq/articles/Frequently_Asked_Question/What-are-acceptable-formats-for-truncation-of-primary-account-numbers).In case the input is not the full intrument (PAN or TOKEN), this field may be truncated.\n" + }, + "phoneNumber": { + "type": "string", + "maxLength": 50, + "description": "This field contains the customer service phone number for the issuer.\n" + } + } + } + } + } + } + } + } + } + } + } + } + } + } + ], + "tags": [ + "Tokenize" + ], + "operationId": "tokenize", + "x-devcenter-metaData": { + "categoryTag": "Token_Management", + "developerGuides": "https://developer.cybersource.com/docs/cybs/en-us/tms/developer/all/rest/tms-developer/intro.html", + "mleForRequest": "mandatory" + }, + "consumes": [ + "application/json;charset=utf-8" + ], + "produces": [ + "application/json;charset=utf-8" + ], + "responses": { + "200": { + "description": "Returns the responses from the orchestrated API requests.", + "headers": { + "v-c-correlation-id": { + "description": "The mandatory correlation Id passed by upstream (calling) system.", + "type": "string" + }, + "uniqueTransactionID": { + "description": "A globally-unique Id associated with your request.", + "type": "string" + } + }, + "schema": { + "type": "object", + "properties": { + "responses": { + "type": "array", + "items": { + "type": "object", + "properties": { + "resource": { + "type": "string", + "description": "TMS token type associated with the response.\n\nPossible Values:\n- customer\n- paymentInstrument\n- instrumentIdentifier\n- shippingAddress\n- tokenizedCard\n", + "example": "customer" + }, + "httpStatus": { + "type": "integer", + "format": "int32", + "description": "Http status associated with the response.\n", + "example": 201 + }, + "id": { + "type": "string", + "description": "TMS token id associated with the response.\n", + "example": "351A67733325454AE0633F36CF0A9420" + }, + "errors": { + "type": "array", + "items": { + "type": "object", + "properties": { + "type": { + "type": "string", + "description": "The type of error.\n\nPossible Values:\n - invalidHeaders\n - missingHeaders\n - invalidFields\n - missingFields\n - unsupportedPaymentMethodModification\n - invalidCombination\n - forbidden\n - notFound\n - instrumentIdentifierDeletionError\n - tokenIdConflict\n - conflict\n - notAvailable\n - serverError\n - notAttempted\n\nA \"notAttempted\" error type is returned when the request cannot be processed because it depends on the existence of another token that does not exist. For example, creating a shipping address token is not attempted if the required customer token is missing.\n", + "example": "notAttempted" + }, + "message": { + "type": "string", + "description": "The detailed message related to the type.", + "example": "Creation not attempted due to customer token creation failure" + }, + "details": { + "type": "array", + "readOnly": true, + "items": { + "type": "object", + "readOnly": true, + "properties": { + "name": { + "type": "string", + "readOnly": true, + "description": "The name of the field that caused the error.", + "example": "address1" + }, + "location": { + "type": "string", + "readOnly": true, + "description": "The location of the field that caused the error.", + "example": "billTo" + } + } + } + } + } + } + } + } + } + } + } + } + }, + "400": { + "description": "Bad Request: e.g. A required header value could be missing.", + "headers": { + "v-c-correlation-id": { + "description": "The mandatory correlation Id passed by upstream (calling) system.", + "type": "string" + }, + "uniqueTransactionID": { + "description": "A globally unique Id associated with your request.", + "type": "string" + } + }, + "schema": { + "type": "object", + "readOnly": true, + "properties": { + "errors": { + "type": "array", + "readOnly": true, + "items": { + "type": "object", + "readOnly": true, + "properties": { + "type": { + "type": "string", + "readOnly": true, + "description": "The type of error.\n\nPossible Values:\n - invalidHeaders\n - missingHeaders\n - invalidFields\n - missingFields\n - unsupportedPaymentMethodModification\n - invalidCombination\n" + }, + "message": { + "type": "string", + "readOnly": true, + "description": "The detailed message related to the type." + }, + "details": { + "type": "array", + "readOnly": true, + "items": { + "type": "object", + "readOnly": true, + "properties": { + "name": { + "type": "string", + "readOnly": true, + "description": "The name of the field that caused the error." + }, + "location": { + "type": "string", + "readOnly": true, + "description": "The location of the field that caused the error." + } + } + } + } + } + } + } + } + }, + "examples": { + "Invalid Customer request body": { + "errors": [ + { + "type": "invalidRequest", + "message": "Invalid HTTP Body" + } + ] + } + } + }, + "403": { + "description": "Forbidden: e.g. The profile might not have permission to perform the operation.", + "headers": { + "v-c-correlation-id": { + "description": "The mandatory correlation Id passed by upstream (calling) system.", + "type": "string" + }, + "uniqueTransactionID": { + "description": "A globally unique Id associated with your request.", + "type": "string" + } + }, + "schema": { + "type": "object", + "readOnly": true, + "properties": { + "errors": { + "type": "array", + "readOnly": true, + "items": { + "type": "object", + "readOnly": true, + "properties": { + "type": { + "type": "string", + "readOnly": true, + "description": "The type of error.\n\nPossible Values:\n - forbidden\n - declined\n" + }, + "message": { + "type": "string", + "readOnly": true, + "description": "The detailed message related to the type." + } + } + } + } + } + }, + "examples": { + "application/json": { + "errors": [ + { + "type": "forbidden", + "message": "Request not permitted" + } + ] + } + } + }, + "424": { + "description": "Failed Dependency: e.g. The profile represented by the profile-id may not exist or the profile-id was entered incorrectly.", + "headers": { + "v-c-correlation-id": { + "description": "The mandatory correlation Id passed by upstream (calling) system.", + "type": "string" + }, + "uniqueTransactionID": { + "description": "A globally unique Id associated with your request.", + "type": "string" + } + }, + "schema": { + "type": "object", + "readOnly": true, + "properties": { + "errors": { + "type": "array", + "readOnly": true, + "items": { + "type": "object", + "readOnly": true, + "properties": { + "type": { + "type": "string", + "readOnly": true, + "description": "The type of error.\n\nPossible Values:\n - notFound\n" + }, + "message": { + "type": "string", + "readOnly": true, + "description": "The detailed message related to the type." + } + } + } + } + } + }, + "examples": { + "application/json": { + "errors": [ + { + "type": "notFound", + "message": "Profile not found" + } + ] + } + } + }, + "500": { + "description": "Unexpected error.", + "headers": { + "v-c-correlation-id": { + "description": "The mandatory correlation Id passed by upstream (calling) system.", + "type": "string" + }, + "uniqueTransactionID": { + "description": "A globally unique Id associated with your request.", + "type": "string" + } + }, + "examples": { + "application/json": { + "errors": [ + { + "type": "serverError", + "message": "Internal server error" + } + ] + } + }, + "schema": { + "type": "object", + "readOnly": true, + "properties": { + "errors": { + "type": "array", + "readOnly": true, + "items": { + "type": "object", + "readOnly": true, + "properties": { + "type": { + "type": "string", + "readOnly": true, + "description": "The type of error.\n\nPossible Values:\n - internalError\n" + }, + "message": { + "type": "string", + "readOnly": true, + "description": "The detailed message related to the type." + } + } + } + } + } + } + } + }, + "x-example": { + "example0": { + "summary": "Create Complete Customer & Network Token using a Card", + "value": { + "processingInformation": { + "actionList": [ + "TOKEN_CREATE" + ], + "actionTokenTypes": [ + "customer", + "shippingAddress", + "paymentInstrument", + "instrumentIdentifier" + ] + }, + "tokenInformation": { + "customer": { + "buyerInformation": { + "merchantCustomerID": "Your customer identifier", + "email": "test@cybs.com" + }, + "clientReferenceInformation": { + "code": "TC50171_3" + }, + "merchantDefinedInformation": [ + { + "name": "data1", + "value": "Your customer data" + } + ] + }, + "shippingAddress": { + "default": "true", + "shipTo": { + "firstName": "John", + "lastName": "Doe", + "company": "CyberSource", + "address1": "1 Market St", + "locality": "San Francisco", + "administrativeArea": "CA", + "postalCode": "94105", + "country": "US", + "email": "test@cybs.com", + "phoneNumber": "4158880000" + } + }, + "paymentInstrument": { + "default": "true", + "card": { + "expirationMonth": "12", + "expirationYear": "2031", + "type": "001" + }, + "billTo": { + "firstName": "John", + "lastName": "Doe", + "company": "CyberSource", + "address1": "1 Market St", + "locality": "San Francisco", + "administrativeArea": "CA", + "postalCode": "94105", + "country": "US", + "email": "test@cybs.com", + "phoneNumber": "4158880000" + } + }, + "instrumentIdentifier": { + "type": "enrollable card", + "card": { + "number": "4622943123116478", + "expirationMonth": "12", + "expirationYear": "2026" + } + } + } + } + }, + "example1": { + "summary": "Create Customer Payment Instrument & Network Token using a Card", + "value": { + "processingInformation": { + "actionList": [ + "TOKEN_CREATE" + ], + "actionTokenTypes": [ + "paymentInstrument", + "instrumentIdentifier" + ] + }, + "tokenInformation": { + "customer": { + "id": "" + }, + "paymentInstrument": { + "default": "true", + "card": { + "expirationMonth": "12", + "expirationYear": "2031", + "type": "001" + }, + "billTo": { + "firstName": "John", + "lastName": "Doe", + "company": "CyberSource", + "address1": "1 Market St", + "locality": "San Francisco", + "administrativeArea": "CA", + "postalCode": "94105", + "country": "US", + "email": "test@cybs.com", + "phoneNumber": "4158880000" + } + }, + "instrumentIdentifier": { + "type": "enrollable card", + "card": { + "number": "4622943123116478", + "expirationMonth": "12", + "expirationYear": "2026" + } + } + } + } + }, + "example2": { + "summary": "Create Instrument Identifier & Network Token using a Card", + "value": { + "processingInformation": { + "actionList": [ + "TOKEN_CREATE" + ], + "actionTokenTypes": [ + "instrumentIdentifier" + ] + }, + "tokenInformation": { + "instrumentIdentifier": { + "type": "enrollable card", + "card": { + "number": "4622943123116478", + "expirationMonth": "12", + "expirationYear": "2026" + } + } + } + } + }, + "example3": { + "summary": "Create Complete Customer using a Transient Token", + "value": { + "processingInformation": { + "actionList": [ + "TOKEN_CREATE" + ], + "actionTokenTypes": [ + "customer", + "shippingAddress", + "paymentInstrument", + "instrumentIdentifier" + ] + }, + "tokenInformation": { + "transientTokenJwt": "", + "customer": { + "buyerInformation": { + "merchantCustomerID": "Your customer identifier", + "email": "test@cybs.com" + }, + "clientReferenceInformation": { + "code": "TC50171_3" + }, + "merchantDefinedInformation": [ + { + "name": "data1", + "value": "Your customer data" + } + ] + }, + "shippingAddress": { + "default": "true", + "shipTo": { + "firstName": "John", + "lastName": "Doe", + "company": "CyberSource", + "address1": "1 Market St", + "locality": "San Francisco", + "administrativeArea": "CA", + "postalCode": "94105", + "country": "US", + "email": "test@cybs.com", + "phoneNumber": "4158880000" + } + }, + "paymentInstrument": { + "default": "true", + "card": { + "expirationMonth": "12", + "expirationYear": "2031", + "type": "001" + }, + "billTo": { + "firstName": "John", + "lastName": "Doe", + "company": "CyberSource", + "address1": "1 Market St", + "locality": "San Francisco", + "administrativeArea": "CA", + "postalCode": "94105", + "country": "US", + "email": "test@cybs.com", + "phoneNumber": "4158880000" + } + } + } + } + }, + "example4": { + "summary": "Create Instrument Identifier using a Transient Token", + "value": { + "processingInformation": { + "actionList": [ + "TOKEN_CREATE" + ], + "actionTokenTypes": [ + "instrumentIdentifier" + ] + }, + "tokenInformation": { + "transientTokenJwt": "" + } + } + } + } + } + }, + "/tms/v2/customers": { + "post": { + "summary": "Create a Customer", + "description": "| | | |\n| --- | --- | --- |\n|**Customers**
A Customer represents your tokenized customer information.
You should associate the Customer Id with the customer account on your systems.
A Customer can have one or more [Payment Instruments](#token-management_customer-payment-instrument_create-a-customer-payment-instrumentl) or [Shipping Addresses](#token-management_customer-shipping-address_create-a-customer-shipping-address) with one allocated as the Customers default.

**Creating a Customer**
It is recommended you [create a Customer via a Payment Authorization](#payments_payments_process-a-payment_samplerequests-dropdown_authorization-with-token-create_authorization-with-customer-token-creation_liveconsole-tab-request-body), this can be for a zero amount.
The Customer will be created with a Payment Instrument and Shipping Address.
You can also [add additional Payment Instruments to a Customer via a Payment Authorization](#payments_payments_process-a-payment_samplerequests-dropdown_authorization-with-token-create_authorization-create-default-payment-instrument-shipping-address-for-existing-customer_liveconsole-tab-request-body).
In Europe: You should perform Payer Authentication alongside the Authorization.|      |**Payment Network Tokens**
Network tokens perform better than regular card numbers and they are not necessarily invalidated when a cardholder loses their card, or it expires.
A Payment Network Token will be automatically created and used in future payments if you are enabled for the service.
A Payment Network Token can also be [provisioned for an existing Instrument Identifier](#token-management_instrument-identifier_enroll-an-instrument-identifier-for-payment-network-token).
For more information about Payment Network Tokens see the Developer Guide.

**Payments with Customers**
To perform a payment with the Customers default details specify the [Customer Id in the payments request](#payments_payments_process-a-payment_samplerequests-dropdown_authorization-using-tokens_authorization-with-customer-token-id_liveconsole-tab-request-body).
To perform a payment with a particular Payment Instrument or Shipping Address
specify the [Payment Instrument or Shipping Address Ids in the payments request](#payments_payments_process-a-payment_samplerequests-dropdown_authorization-using-tokens_authorization-with-customer-payment-instrument-and-shipping-address-token-id_liveconsole-tab-request-body).\nThe availability of API features for a merchant may depend on the portfolio configuration and may need to be enabled at the portfolio level before they can be added to merchant accounts.\n", + "parameters": [ + { + "name": "profile-id", + "in": "header", + "description": "The Id of a profile containing user specific TMS configuration.", + "required": false, + "type": "string", + "minLength": 36, + "maxLength": 36, + "x-hide-field": true + }, + { + "name": "postCustomerRequest", + "in": "body", + "required": true, + "schema": { + "type": "object", + "properties": { + "_links": { + "type": "object", + "readOnly": true, + "properties": { + "self": { + "type": "object", + "readOnly": true, + "properties": { + "href": { + "type": "string", + "readOnly": true, + "description": "Link to the Customer.\n", + "example": "/tms/v2/customers/D9F340DD3DB9C276E053A2598D0A41A3" + } + } + }, + "paymentInstruments": { + "type": "object", + "readOnly": true, + "properties": { + "href": { + "type": "string", + "readOnly": true, + "description": "Link to the Customers Payment Instruments.\n", + "example": "/tms/v2/customers/D9F340DD3DB9C276E053A2598D0A41A3/payment-instruments" + } + } + }, + "shippingAddress": { + "type": "object", + "readOnly": true, + "properties": { + "href": { + "type": "string", + "readOnly": true, + "description": "Link to the Customers Shipping Addresses.\n", + "example": "/tms/v2/customers/D9F340DD3DB9C276E053A2598D0A41A3/shipping-addresses" + } + } + } + } + }, + "id": { + "type": "string", + "minLength": 1, + "maxLength": 32, + "description": "The Id of the Customer Token." + }, + "objectInformation": { + "type": "object", + "properties": { + "title": { + "type": "string", + "description": "Name or title of the customer.\n", + "maxLength": 60 + }, + "comment": { + "type": "string", + "description": "Comments that you can make about the customer.\n", + "maxLength": 150 + } + } + }, + "buyerInformation": { + "type": "object", + "properties": { + "merchantCustomerID": { + "type": "string", + "description": "Your identifier for the customer.\n", + "maxLength": 100 + }, + "email": { + "type": "string", + "maxLength": 255, + "description": "Customer's primary email address, including the full domain name.\n" + } + } + }, + "clientReferenceInformation": { + "type": "object", + "properties": { + "code": { + "type": "string", + "description": "Client-generated order reference or tracking number.\n", + "maxLength": 50 + } + } + }, + "merchantDefinedInformation": { + "type": "array", + "description": "Object containing the custom data that the merchant defines.\n", + "items": { + "type": "object", + "properties": { + "name": { + "type": "string", + "description": "The number you assign as the name for your merchant-defined data or secure field. Possible Values are data1 to data4 and sensitive1 to sensitive4\n\nFor example, to set the name for merchant-defined data 2 field, you would reference merchantDefinedInformation[x].name as data2\nPossible Values:\n- data1\n- data2\n- data3\n- data4\n- sensitive1\n- sensitive2\n- sensitive3\n- sensitive4\n" + }, + "value": { + "type": "string", + "description": "The value you assign for your merchant-defined data field.\n\n**Warning** Merchant-defined data fields are not intended to and must not be used to capture personally identifying information. Accordingly, merchants are prohibited from capturing, obtaining, and/or transmitting any personally identifying information in or via the merchant-defined data fields. Personally identifying information includes, but is not\nlimited to, address, credit card number, social security number, driver's license number, state-issued identification number, passport number, and card verification numbers (CVV,\nCVC2, CVV2, CID, CVN). In the event it is discovered a merchant is capturing and/or transmitting personally identifying information via the merchant-defined data fields, whether or not intentionally, the merchant's account will immediately be suspended, which will result in a rejection of any and all transaction requests submitted by the merchant after the point of suspension.\n", + "maxLength": 100 + } + } + } + }, + "defaultPaymentInstrument": { + "type": "object", + "properties": { + "id": { + "type": "string", + "description": "The Id of the Customers default Payment Instrument\n" + } + } + }, + "defaultShippingAddress": { + "type": "object", + "properties": { + "id": { + "type": "string", + "description": "The Id of the Customers default Shipping Address\n" + } + } + }, + "metadata": { + "type": "object", + "readOnly": true, + "properties": { + "creator": { + "type": "string", + "readOnly": true, + "description": "The creator of the Customer.\n" + } + } + }, + "_embedded": { + "type": "object", + "readOnly": true, + "description": "Additional resources for the Customer.\n", + "properties": { + "defaultPaymentInstrument": { + "readOnly": true, + "type": "object", + "properties": { + "_links": { + "type": "object", + "readOnly": true, + "properties": { + "self": { + "type": "object", + "readOnly": true, + "properties": { + "href": { + "type": "string", + "readOnly": true, + "description": "Link to the Payment Instrument.\n", + "example": "/tms/v2/customers/D9F340DD3DB9C276E053A2598D0A41A3/payment-instruments" + } + } + }, + "customer": { + "type": "object", + "readOnly": true, + "properties": { + "href": { + "type": "string", + "readOnly": true, + "description": "Link to the Customer.\n", + "example": "/tms/v2/customers/D9F340DD3DB9C276E053A2598D0A41A3" + } + } + } + } + }, + "id": { + "type": "string", + "minLength": 1, + "maxLength": 32, + "description": "The Id of the Payment Instrument Token." + }, + "object": { + "type": "string", + "readOnly": true, + "example": "paymentInstrument", + "description": "The type.\n\nPossible Values:\n- paymentInstrument\n" + }, + "default": { + "type": "boolean", + "description": "Flag that indicates whether customer payment instrument is the dafault.\nPossible Values:\n - `true`: Payment instrument is customer's default.\n - `false`: Payment instrument is not customer's default.\n" + }, + "state": { + "type": "string", + "readOnly": true, + "example": "ACTIVE", + "description": "Issuers state for the card number.\nPossible Values:\n- ACTIVE\n- CLOSED : The account has been closed.\n" + }, + "type": { + "type": "string", + "readOnly": true, + "description": "The type of Payment Instrument.\nPossible Values:\n- cardHash\n" + }, + "bankAccount": { + "type": "object", + "properties": { + "type": { + "type": "string", + "maxLength": 18, + "description": "Account type.\n\nPossible Values:\n - checking : C\n - general ledger : G This value is supported only on Wells Fargo ACH\n - savings : S (U.S. dollars only)\n - corporate checking : X (U.S. dollars only)\n" + } + } + }, + "card": { + "type": "object", + "properties": { + "expirationMonth": { + "type": "string", + "maxLength": 2, + "description": "Two-digit month in which the payment card expires.\n\nFormat: `MM`.\n\nPossible Values: `01` through `12`.\n" + }, + "expirationYear": { + "type": "string", + "maxLength": 4, + "description": "Four-digit year in which the credit card expires.\n\nFormat: `YYYY`.\n" + }, + "type": { + "type": "string", + "description": "Value that indicates the card type. Possible Values v2 : v1:\n * 001 : visa\n * 002 : mastercard - Eurocard\u2014European regional brand of Mastercard\n * 003 : american express\n * 004 : discover\n * 005 : diners club\n * 006 : carte blanche\n * 007 : jcb\n * 008 : optima\n * 011 : twinpay credit\n * 012 : twinpay debit\n * 013 : walmart\n * 014 : enRoute\n * 015 : lowes consumer\n * 016 : home depot consumer\n * 017 : mbna\n * 018 : dicks sportswear\n * 019 : casual corner\n * 020 : sears\n * 021 : jal\n * 023 : disney\n * 024 : maestro uk domestic\n * 025 : sams club consumer\n * 026 : sams club business\n * 028 : bill me later\n * 029 : bebe\n * 030 : restoration hardware\n * 031 : delta online \u2014 use this value only for Ingenico ePayments. For other processors, use 001 for all Visa card types.\n * 032 : solo\n * 033 : visa electron\n * 034 : dankort\n * 035 : laser\n * 036 : carte bleue \u2014 formerly Cartes Bancaires\n * 037 : carta si\n * 038 : pinless debit\n * 039 : encoded account\n * 040 : uatp\n * 041 : household\n * 042 : maestro international\n * 043 : ge money uk\n * 044 : korean cards\n * 045 : style\n * 046 : jcrew\n * 047 : payease china processing ewallet\n * 048 : payease china processing bank transfer\n * 049 : meijer private label\n * 050 : hipercard \u2014 supported only by the Comercio Latino processor.\n * 051 : aura \u2014 supported only by the Comercio Latino processor.\n * 052 : redecard\n * 054 : elo \u2014 supported only by the Comercio Latino processor.\n * 055 : capital one private label\n * 056 : synchrony private label\n * 057 : costco private label\n * 060 : mada\n * 062 : china union pay\n * 063 : falabella private label\n" + }, + "issueNumber": { + "type": "string", + "maxLength": 2, + "description": "Number of times a Maestro (UK Domestic) card has been issued to the account holder. The card might or might not have an issue number. The number can consist of one or two digits, and the first digit might be a zero. When you include this value in your request, include exactly what is printed on the card. A value of 2 is different than a value of 02. Do not include the field, even with a blank value, if the card is not a Maestro (UK Domestic) card.\n\n**Note** The issue number is not required for Maestro (UK Domestic) transactions.\n" + }, + "startMonth": { + "type": "string", + "maxLength": 2, + "description": "Month of the start of the Maestro (UK Domestic) card validity period. Do not include the field, even with a blank value, if the card is not a Maestro (UK Domestic) card. `Format: MM`.\nPossible Values: 01 through 12.\n\n**Note** The start date is not required for Maestro (UK Domestic) transactions.\n" + }, + "startYear": { + "type": "string", + "maxLength": 4, + "description": "Year of the start of the Maestro (UK Domestic) card validity period. Do not include the field, even with a blank value, if the card is not a Maestro (UK Domestic) card. `Format: YYYY`.\n\n**Note** The start date is not required for Maestro (UK Domestic) transactions.\n" + }, + "useAs": { + "type": "string", + "example": "pinless debit", + "description": "'Payment Instrument was created / updated as part of a pinless debit transaction.'\n" + }, + "hash": { + "type": "string", + "minLength": 32, + "maxLength": 34, + "readOnly": true, + "description": "Hash value representing the card.\n" + }, + "tokenizedInformation": { + "type": "object", + "properties": { + "requestorID": { + "type": "string", + "maxLength": 11, + "description": "Value that identifies your business and indicates that the cardholder's account number is tokenized. This value\nis assigned by the token service provider and is unique within the token service provider's database.\n\n**Note** This field is supported only through **VisaNet** and **FDC Nashville Global**.\n" + }, + "transactionType": { + "type": "string", + "maxLength": 1, + "description": "Type of transaction that provided the token data. This value does not specify the token service provider; it\nspecifies the entity that provided you with information about the token.\n\nSet the value for this field to 1. An application on the customer's mobile device provided the token data.\n" + } + } + } + } + }, + "buyerInformation": { + "type": "object", + "properties": { + "companyTaxID": { + "type": "string", + "maxLength": 9, + "description": "Company's tax identifier. This is only used for eCheck service.\n" + }, + "currency": { + "type": "string", + "maxLength": 3, + "description": "Currency used for the order. Use the three-character I[ISO Standard Currency Codes.](http://apps.cybersource.com/library/documentation/sbc/quickref/currencies.pdf)\n\nFor an authorization reversal (`reversalInformation`) or a capture (`processingOptions.capture` is set to `true`), you must use the same currency that you used in your payment authorization request.\n\n#### DCC for First Data\nYour local currency. For details, see the `currency` field description in [Dynamic Currency Conversion For First Data Using the SCMP API](http://apps.cybersource.com/library/documentation/dev_guides/DCC_FirstData_SCMP/DCC_FirstData_SCMP_API.pdf).\n# For details about currency as used in partial authorizations, see \"Features for Debit Cards and Prepaid Cards\" in the [Credit Card Services Using the SCMP API Guide](https://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html/)\n" + }, + "dateOfBirth": { + "type": "string", + "format": "date", + "example": "1960-12-30", + "description": "Date of birth of the customer. Format: YYYY-MM-DD\n" + }, + "personalIdentification": { + "type": "array", + "items": { + "type": "object", + "properties": { + "id": { + "type": "string", + "maxLength": 26, + "description": "The value of the identification type.\n" + }, + "type": { + "type": "string", + "description": "The type of the identification.\n\nPossible Values:\n - driver license\n" + }, + "issuedBy": { + "type": "object", + "properties": { + "administrativeArea": { + "type": "string", + "description": "The State or province where the customer's driver's license was issued.\n\nUse the two-character State, Province, and Territory Codes for the United States and Canada.\n", + "maxLength": 20 + } + } + } + } + } + } + } + }, + "billTo": { + "type": "object", + "properties": { + "firstName": { + "type": "string", + "maxLength": 60, + "description": "Customer's first name. This name must be the same as the name on the card.\n" + }, + "lastName": { + "type": "string", + "maxLength": 60, + "description": "Customer's last name. This name must be the same as the name on the card.\n" + }, + "company": { + "type": "string", + "maxLength": 60, + "description": "Name of the customer's company.\n" + }, + "address1": { + "type": "string", + "maxLength": 60, + "description": "Payment card billing street address as it appears on the credit card issuer's records.\n" + }, + "address2": { + "type": "string", + "maxLength": 60, + "description": "Additional address information.\n" + }, + "locality": { + "type": "string", + "maxLength": 50, + "description": "Payment card billing city.\n" + }, + "administrativeArea": { + "type": "string", + "maxLength": 20, + "description": "State or province of the billing address. Use the State, Province, and Territory Codes for the United States\nand Canada.\n" + }, + "postalCode": { + "type": "string", + "maxLength": 10, + "description": "Postal code for the billing address. The postal code must consist of 5 to 9 digits.\n\nWhen the billing country is the U.S., the 9-digit postal code must follow this format:\n[5 digits][dash][4 digits]\n\n**Example** `12345-6789`\n\nWhen the billing country is Canada, the 6-digit postal code must follow this format:\n[alpha][numeric][alpha][space][numeric][alpha][numeric]\n\n**Example** `A1B 2C3`\n" + }, + "country": { + "type": "string", + "maxLength": 2, + "description": "Payment card billing country. Use the two-character ISO Standard Country Codes.\n" + }, + "email": { + "type": "string", + "maxLength": 255, + "description": "Customer's email address, including the full domain name.\n" + }, + "phoneNumber": { + "type": "string", + "maxLength": 15, + "description": "Customer's phone number.\n" + } + } + }, + "processingInformation": { + "type": "object", + "title": "tmsPaymentInstrumentProcessingInfo", + "properties": { + "billPaymentProgramEnabled": { + "type": "boolean", + "description": "Flag that indicates that this is a payment for a bill or for an existing contractual loan.\nPossible Values:\n- `true`: Bill payment or loan payment.\n- `false` (default): Not a bill payment or loan payment.\n# For processor-specific details, see the `bill_payment` field description in [Credit Card Services Using the SCMP API.](https://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html/)\n" + }, + "bankTransferOptions": { + "type": "object", + "properties": { + "SECCode": { + "type": "string", + "maxLength": 3, + "description": "Specifies the authorization method for the transaction.\n\n#### TeleCheck\nPossible Values:\n- `ARC`: account receivable conversion\n- `CCD`: corporate cash disbursement\n- `POP`: point of purchase conversion\n- `PPD`: prearranged payment and deposit entry\n- `TEL`: telephone-initiated entry\n- `WEB`: internet-initiated entry\n\n# For details, see `ecp_sec_code` field description in the [Electronic Check Services Using the SCMP API Guide.](https://apps.cybersource.com/library/documentation/dev_guides/EChecks_SCMP_API/html/)\n" + } + } + } + } + }, + "merchantInformation": { + "type": "object", + "title": "TmsMerchantInformation", + "properties": { + "merchantDescriptor": { + "type": "object", + "properties": { + "alternateName": { + "type": "string", + "description": "Alternate contact information for your business,such as an email address or URL.\nThis value might be displayed on the cardholder's statement.\nWhen you do not include this value in your capture or credit request, the merchant URL from your CyberSource account is used.\nImportant This value must consist of English characters\n", + "maxLength": 13 + } + } + } + } + }, + "instrumentIdentifier": { + "type": "object", + "properties": { + "id": { + "type": "string", + "minLength": 12, + "maxLength": 32, + "description": "The Id of the Instrument Identifier linked to the Payment Instrument.\n" + } + } + }, + "metadata": { + "type": "object", + "readOnly": true, + "properties": { + "creator": { + "type": "string", + "readOnly": true, + "description": "The creator of the Payment Instrument.\n" + } + } + }, + "_embedded": { + "type": "object", + "readOnly": true, + "description": "Additional resources for the Payment Instrument.\n", + "properties": { + "instrumentIdentifier": { + "readOnly": true, + "title": "tmsEmbeddedInstrumentIdentifier", + "type": "object", + "properties": { + "_links": { + "type": "object", + "readOnly": true, + "properties": { + "self": { + "type": "object", + "readOnly": true, + "properties": { + "href": { + "type": "string", + "readOnly": true, + "description": "Link to the Instrument Identifier.\n", + "example": "tms/v1/instrumentidentifiers/7010000000016241111" + } + } + }, + "paymentInstruments": { + "type": "object", + "readOnly": true, + "properties": { + "href": { + "type": "string", + "readOnly": true, + "description": "Link to the Instrument Identifiers Payment Instruments.\n", + "example": "tms/v1/instrumentidentifiers/7010000000016241111/paymentinstruments" + } + } + } + } + }, + "id": { + "type": "string", + "description": "The Id of the Instrument Identifier Token.\n" + }, + "object": { + "type": "string", + "readOnly": true, + "example": "instrumentIdentifier", + "description": "The type.\n\nPossible Values:\n- instrumentIdentifier\n" + }, + "state": { + "type": "string", + "readOnly": true, + "example": "ACTIVE", + "description": "Issuers state for the card number.\nPossible Values:\n- ACTIVE\n- CLOSED : The account has been closed.\n" + }, + "type": { + "type": "string", + "description": "The type of Instrument Identifier.\nPossible Values:\n- enrollable card\n- enrollable token\n" + }, + "source": { + "type": "string", + "description": "Source of the card details.\nPossible Values:\n- CONTACTLESS_TAP\n" + }, + "tokenProvisioningInformation": { + "type": "object", + "properties": { + "consumerConsentObtained": { + "type": "boolean", + "description": "Flag that indicates whether the user consented to the tokenization of their credentials. Required for card network tokenization in certain markets, such as India.\nPossible Values:\n- `true`: Consumer has consented to tokenization of their credentials.\n- `false`: Consumer has not consented to tokenization of their credentials.\n" + }, + "multiFactorAuthenticated": { + "type": "boolean", + "description": "Flag that indicates whether AFA (Additional Factor of Authentication) for the PAN was completed. Required for card network tokenization in certain markets, such as India.\nPossible Values:\n- `true`: Consumer has been authenticated by the issuer.\n- `false`: Consumer has not been authenticated by the issuer.\n" + } + } + }, + "card": { + "type": "object", + "description": "The expirationMonth, expirationYear and securityCode is sent to the issuer as part of network token enrollment and is not stored under the Instrument Identifier.\n", + "properties": { + "number": { + "type": "string", + "minLength": 12, + "maxLength": 19, + "description": "The customer's payment card number, also known as the Primary Account Number (PAN). You can also use this field\nfor encoded account numbers.\n" + }, + "expirationMonth": { + "type": "string", + "maxLength": 2, + "description": "Two-digit month in which the payment card expires.\n\nFormat: `MM`.\n\nPossible Values: `01` through `12`.\n" + }, + "expirationYear": { + "type": "string", + "maxLength": 4, + "description": "Four-digit year in which the credit card expires.\n\nFormat: `YYYY`.\n" + }, + "securityCode": { + "type": "string", + "maxLength": 4, + "description": "Card Verification Code. \nThis value is sent to the issuer to support the approval of a network token provision.\nIt is not persisted against the Instrument Identifier.\n" + } + } + }, + "pointOfSaleInformation": { + "type": "object", + "required": [ + "emvTags" + ], + "properties": { + "emvTags": { + "type": "array", + "minItems": 1, + "maxItems": 50, + "items": { + "type": "object", + "required": [ + "tag", + "value", + "source" + ], + "properties": { + "tag": { + "type": "string", + "minLength": 1, + "maxLength": 10, + "pattern": "^[0-9A-Fa-f]{1,10}$", + "description": "EMV tag, 1-10 hex characters." + }, + "value": { + "type": "string", + "minLength": 1, + "maxLength": 64, + "description": "EMV tag value, 1-64 characters." + }, + "source": { + "type": "string", + "description": "Source of the tag.\n\nPossible Values:\n - CARD\n - TERMINAL\n" + } + }, + "example": { + "tag": "5A", + "value": "4111111111111111", + "source": "CARD" + } + } + } + } + }, + "bankAccount": { + "type": "object", + "properties": { + "number": { + "type": "string", + "maxLength": 17, + "description": "Account number.\n\nWhen processing encoded account numbers, use this field for the encoded account number.\n" + }, + "routingNumber": { + "type": "string", + "description": "Bank routing number. This is also called the transit number.\n\n# For details, see `ecp_rdfi` field description in the [Electronic Check Services Using the SCMP API Guide.](https://apps.cybersource.com/library/documentation/dev_guides/EChecks_SCMP_API/html/)\n" + } + } + }, + "tokenizedCard": { + "title": "tmsv2TokenizedCard", + "type": "object", + "properties": { + "_links": { + "type": "object", + "readOnly": true, + "properties": { + "self": { + "type": "object", + "readOnly": true, + "properties": { + "href": { + "type": "string", + "readOnly": true, + "description": "Link to the Tokenized Card.\nexample: 'tms/v2/tokenized-cards/7010000000016241111'\n" + } + } + } + } + }, + "id": { + "type": "string", + "readOnly": true, + "description": "The Id of the Tokenized Card.\n" + }, + "object": { + "type": "string", + "readOnly": true, + "example": "tokenizedCard", + "description": "The type.\nPossible Values:\n- tokenizedCard\n" + }, + "accountReferenceId": { + "type": "string", + "description": "An identifier provided by the issuer for the account.\n" + }, + "consumerId": { + "type": "string", + "maxLength": 36, + "description": "Identifier of the consumer within the wallet. Maximum 24 characters for VTS." + }, + "createInstrumentIdentifier": { + "type": "boolean", + "description": "Specifies whether the InstrumentId should be created (true) or not (false).\nPossible Values:\n- `true`: The InstrumentId should be created.\n- `false`: The InstrumentId should be created.\n" + }, + "source": { + "type": "string", + "description": "Source of the card details.\nPossible Values:\n- ONFILE\n- TOKEN\n- ISSUER\n" + }, + "state": { + "type": "string", + "readOnly": true, + "example": "ACTIVE", + "description": "State of the network token or network token provision.\nPossible Values:\n ACTIVE : Network token is active.\n SUSPENDED : Network token is suspended. This state can change back to ACTIVE.\n DELETED : This is a final state for a network token instance.\n UNPROVISIONED : A previous network token.\n" + }, + "reason": { + "type": "string", + "readOnly": true, + "example": "ACTIVE", + "description": "Issuers state for the network token\nPossible Values:\n- INVALID_REQUEST : The network token provision request contained invalid data.\n- CARD_VERIFICATION_FAILED : The network token provision request contained data that could not be verified.\n- CARD_NOT_ELIGIBLE : Card can currently not be used with issuer for tokenization.\n- CARD_NOT_ALLOWED : Card can currently not be used with card association for tokenization.\n- DECLINED : Card can currently not be used with issuer for tokenization.\n- SERVICE_UNAVAILABLE : The network token service was unavailable or timed out.\n- SYSTEM_ERROR : An unexpected error occurred with network token service, check configuration.\n" + }, + "number": { + "type": "string", + "readOnly": true, + "description": "The token requestor's network token for the provided PAN and consumer Id, if available.\n" + }, + "expirationMonth": { + "type": "string", + "readOnly": true, + "description": "Two-digit month in which the network token expires.\nFormat: `MM`.\nPossible Values: `01` through `12`.\n" + }, + "expirationYear": { + "type": "string", + "readOnly": true, + "description": "Four-digit year in which the network token expires.\nFormat: `YYYY`.\n" + }, + "type": { + "type": "string", + "description": "The type of card (Card Network).\nPossible Values:\n- visa\n- mastercard\n- americanexpress\n" + }, + "cryptogram": { + "type": "string", + "readOnly": true, + "description": "Value generated by the card association to be used alongside the network token for processing a payment.\n", + "example": "CgAFRFYFPTFOfg5rj2ais9wQAAAAAM=" + }, + "securityCode": { + "type": "string", + "readOnly": true, + "description": "4-digit number generated by the card association to be used alogside the network token for processing a payment. Only supported for Amex and SCOF.\n", + "example": "4523" + }, + "eci": { + "type": "string", + "readOnly": true, + "description": "Raw Electronic Commerce Indicator provided by the card association with the result of the cardholder authentication.\n" + }, + "requestorId": { + "type": "string", + "readOnly": true, + "maxLength": 11, + "description": "11-digit identifier that uniquely identifies the Token Requestor.\n" + }, + "enrollmentId": { + "type": "string", + "readOnly": true, + "description": "Unique id to identify this PAN/ enrollment.\n" + }, + "tokenReferenceId": { + "type": "string", + "readOnly": true, + "description": "Unique ID for netwrok token.\n" + }, + "paymentAccountReference": { + "type": "string", + "readOnly": true, + "description": "Payment account reference.\n" + }, + "card": { + "type": "object", + "description": "Card object used to create a network token\n", + "properties": { + "number": { + "type": "string", + "minLength": 12, + "maxLength": 19, + "description": "The customer's payment card number, also known as the Primary Account Number (PAN).\n" + }, + "expirationMonth": { + "type": "string", + "maxLength": 2, + "description": "Two-digit month in which the payment card expires.\n\nFormat: `MM`.\n\nPossible Values: `01` through `12`.\n" + }, + "expirationYear": { + "type": "string", + "maxLength": 4, + "description": "Four-digit year in which the credit card expires.\n\nFormat: `YYYY`.\n" + }, + "type": { + "type": "string", + "description": "The type of card (Card Network).\nPossible Values:\n- 001: visa\n" + }, + "suffix": { + "type": "string", + "readOnly": true, + "description": "The customer's latest payment card number suffix.\n" + }, + "issueDate": { + "type": "string", + "readOnly": true, + "format": "date", + "description": "Card issuance date. XML date format: YYYY-MM-DD.", + "example": "2030-12-15" + }, + "activationDate": { + "type": "string", + "readOnly": true, + "format": "date", + "description": "Card activation date. XML date format: YYYY-MM-DD", + "example": "2030-12-20" + }, + "expirationPrinted": { + "type": "boolean", + "readOnly": true, + "description": "Indicates if the expiration date is printed on the card.", + "example": true + }, + "securityCodePrinted": { + "type": "boolean", + "readOnly": true, + "description": "Indicates if the Card Verification Number is printed on the card.", + "example": true + }, + "termsAndConditions": { + "type": "object", + "readOnly": true, + "properties": { + "url": { + "type": "string", + "readOnly": true, + "description": "Issuer Card Terms and Conditions url." + } + } + } + } + }, + "passcode": { + "type": "object", + "description": "Passcode by issuer for ID&V.\n", + "properties": { + "value": { + "type": "string", + "description": "OTP generated at issuer.\n" + } + } + }, + "metadata": { + "type": "object", + "readOnly": true, + "description": "Metadata associated with the tokenized card.\n", + "properties": { + "cardArt": { + "title": "TmsCardArt", + "description": "Card art associated with the tokenized card.\n", + "type": "object", + "readOnly": true, + "properties": { + "foregroundColor": { + "description": "Card foreground color.\n", + "type": "string", + "readOnly": true + }, + "combinedAsset": { + "description": "Combined card art asset associated with the tokenized card.\n", + "type": "object", + "readOnly": true, + "properties": { + "id": { + "type": "string", + "description": "Unique identifier for the asset\n" + }, + "_links": { + "type": "object", + "readOnly": true, + "properties": { + "self": { + "type": "object", + "readOnly": true, + "properties": { + "href": { + "type": "string", + "readOnly": true, + "description": "Link to the card art asset.\nexample: 'tms/v2/tokens/7020000000010603216/visa/assets/card-art-combined'\n" + } + } + } + } + } + } + }, + "brandLogoAsset": { + "description": "Brand logo card art asset associated with the tokenized card.\n", + "type": "object", + "readOnly": true, + "properties": { + "id": { + "type": "string", + "description": "Unique identifier for the asset\n" + }, + "_links": { + "type": "object", + "readOnly": true, + "properties": { + "self": { + "type": "object", + "readOnly": true, + "properties": { + "href": { + "type": "string", + "readOnly": true, + "description": "Link to the card art asset.\nexample: 'tms/v2/tokens/7020000000010603216/visa/assets/brand-logo'\n" + } + } + } + } + } + } + }, + "issuerLogoAsset": { + "description": "Issuer logo card art asset associated with the tokenized card.\n", + "type": "object", + "readOnly": true, + "properties": { + "id": { + "type": "string", + "description": "Unique identifier for the asset\n" + }, + "_links": { + "type": "object", + "readOnly": true, + "properties": { + "self": { + "type": "object", + "readOnly": true, + "properties": { + "href": { + "type": "string", + "readOnly": true, + "description": "Link to the card art asset.\nexample: 'tms/v2/tokens/7020000000010603216/visa/assets/issuer-logo'\n" + } + } + } + } + } + } + }, + "iconAsset": { + "description": "Icon card art asset associated with the tokenized card.\n", + "type": "object", + "readOnly": true, + "properties": { + "id": { + "type": "string", + "description": "Unique identifier for the asset\n" + }, + "_links": { + "type": "object", + "readOnly": true, + "properties": { + "self": { + "type": "object", + "readOnly": true, + "properties": { + "href": { + "type": "string", + "readOnly": true, + "description": "Link to the card art asset.\nexample: 'tms/v2/tokens/7020000000010603216/visa/assets/icon'\n" + } + } + } + } + } + } + } + } + }, + "issuer": { + "description": "Issuer associated with the tokenized card.\n", + "type": "object", + "readOnly": true, + "properties": { + "name": { + "description": "Issuer name.\n", + "type": "string", + "readOnly": true + }, + "shortDescription": { + "description": "Short description of the card.\n", + "type": "string", + "readOnly": true + }, + "longDescription": { + "description": "Long description of the card.\n", + "type": "string", + "readOnly": true + }, + "email": { + "type": "string", + "readOnly": true, + "description": "Issuer customer service email address." + }, + "phoneNumber": { + "type": "string", + "readOnly": true, + "description": "Issuer customer service phone number." + }, + "url": { + "type": "string", + "readOnly": true, + "description": "Issuer customer service url." + } + } + } + } + } + } + }, + "issuer": { + "type": "object", + "readOnly": true, + "properties": { + "paymentAccountReference": { + "type": "string", + "readOnly": true, + "maxLength": 32, + "description": "This reference number serves as a link to the cardholder account and to all transactions for that account.\n" + } + } + }, + "processingInformation": { + "type": "object", + "properties": { + "authorizationOptions": { + "type": "object", + "title": "tmsAuthorizationOptions", + "properties": { + "initiator": { + "type": "object", + "properties": { + "merchantInitiatedTransaction": { + "type": "object", + "properties": { + "previousTransactionId": { + "type": "string", + "maxLength": 15, + "description": "Network transaction identifier that was returned in the payment response field _processorInformation.transactionID_\nin the reply message for either the original merchant-initiated payment in the series or the previous\nmerchant-initiated payment in the series.\n" + }, + "originalAuthorizedAmount": { + "type": "string", + "maxLength": 15, + "description": "Amount of the original authorization.\n" + } + } + } + } + } + } + } + } + }, + "billTo": { + "type": "object", + "description": "This information is sent to the issuer as part of network token enrollment and is not stored under the Instrument Identifier.\n", "properties": { "address1": { "type": "string", @@ -48927,7 +53046,8 @@ "operationId": "postCustomer", "x-devcenter-metaData": { "categoryTag": "Token_Management", - "developerGuides": "https://developer.cybersource.com/docs/cybs/en-us/tms/developer/ctv/rest/tms/tms-cust-tkn/tms-cust-tkn-create-intro.html" + "developerGuides": "https://developer.cybersource.com/docs/cybs/en-us/tms/developer/ctv/rest/tms/tms-cust-tkn/tms-cust-tkn-create-intro.html", + "mleForRequest": "optional" }, "consumes": [ "application/json;charset=utf-8" @@ -49362,6 +53482,7 @@ }, "merchantInformation": { "type": "object", + "title": "TmsMerchantInformation", "properties": { "merchantDescriptor": { "type": "object", @@ -51120,6 +55241,7 @@ }, "merchantInformation": { "type": "object", + "title": "TmsMerchantInformation", "properties": { "merchantDescriptor": { "type": "object", @@ -52875,6 +56997,7 @@ }, "merchantInformation": { "type": "object", + "title": "TmsMerchantInformation", "properties": { "merchantDescriptor": { "type": "object", @@ -53880,7 +58003,8 @@ "operationId": "patchCustomer", "x-devcenter-metaData": { "categoryTag": "Token_Management", - "developerGuides": "https://developer.cybersource.com/docs/cybs/en-us/tms/developer/ctv/rest/tms/tms-cust-tkn/tms-cust-tkn-update-intro.html" + "developerGuides": "https://developer.cybersource.com/docs/cybs/en-us/tms/developer/ctv/rest/tms/tms-cust-tkn/tms-cust-tkn-update-intro.html", + "mleForRequest": "optional" }, "consumes": [ "application/json;charset=utf-8" @@ -54324,6 +58448,7 @@ }, "merchantInformation": { "type": "object", + "title": "TmsMerchantInformation", "properties": { "merchantDescriptor": { "type": "object", @@ -56255,7 +60380,8 @@ "operationId": "postCustomerShippingAddress", "x-devcenter-metaData": { "categoryTag": "Token_Management", - "developerGuides": "https://developer.cybersource.com/docs/cybs/en-us/tms/developer/ctv/rest/tms/tms-ship-tkn/tms-ship-addr-tkn-create-intro.html" + "developerGuides": "https://developer.cybersource.com/docs/cybs/en-us/tms/developer/ctv/rest/tms/tms-ship-tkn/tms-ship-addr-tkn-create-intro.html", + "mleForRequest": "optional" }, "consumes": [ "application/json;charset=utf-8" @@ -58030,7 +62156,8 @@ "operationId": "patchCustomersShippingAddress", "x-devcenter-metaData": { "categoryTag": "Token_Management", - "developerGuides": "https://developer.cybersource.com/docs/cybs/en-us/tms/developer/ctv/rest/tms/tms-ship-tkn/tms-ship-addr-tkn-update-intro.html" + "developerGuides": "https://developer.cybersource.com/docs/cybs/en-us/tms/developer/ctv/rest/tms/tms-ship-tkn/tms-ship-addr-tkn-update-intro.html", + "mleForRequest": "optional" }, "consumes": [ "application/json;charset=utf-8" @@ -59303,6 +63430,7 @@ }, "merchantInformation": { "type": "object", + "title": "TmsMerchantInformation", "properties": { "merchantDescriptor": { "type": "object", @@ -60187,7 +64315,8 @@ "operationId": "postCustomerPaymentInstrument", "x-devcenter-metaData": { "categoryTag": "Token_Management", - "developerGuides": "https://developer.cybersource.com/docs/cybs/en-us/tms/developer/ctv/rest/tms/tms-cust-pi-tkn/tms-cust-pi-tkn-create-intro.html" + "developerGuides": "https://developer.cybersource.com/docs/cybs/en-us/tms/developer/ctv/rest/tms/tms-cust-pi-tkn/tms-cust-pi-tkn-create-intro.html", + "mleForRequest": "optional" }, "consumes": [ "application/json;charset=utf-8" @@ -60491,6 +64620,7 @@ }, "merchantInformation": { "type": "object", + "title": "TmsMerchantInformation", "properties": { "merchantDescriptor": { "type": "object", @@ -62212,6 +66342,7 @@ }, "merchantInformation": { "type": "object", + "title": "TmsMerchantInformation", "properties": { "merchantDescriptor": { "type": "object", @@ -63748,6 +67879,7 @@ }, "merchantInformation": { "type": "object", + "title": "TmsMerchantInformation", "properties": { "merchantDescriptor": { "type": "object", @@ -65247,6 +69379,7 @@ }, "merchantInformation": { "type": "object", + "title": "TmsMerchantInformation", "properties": { "merchantDescriptor": { "type": "object", @@ -66131,7 +70264,8 @@ "operationId": "patchCustomersPaymentInstrument", "x-devcenter-metaData": { "categoryTag": "Token_Management", - "developerGuides": "https://developer.cybersource.com/docs/cybs/en-us/tms/developer/ctv/rest/tms/tms-cust-pi-tkn/tms-cust-pi-tkn-update-intro.html" + "developerGuides": "https://developer.cybersource.com/docs/cybs/en-us/tms/developer/ctv/rest/tms/tms-cust-pi-tkn/tms-cust-pi-tkn-update-intro.html", + "mleForRequest": "optional" }, "consumes": [ "application/json;charset=utf-8" @@ -66431,6 +70565,7 @@ }, "merchantInformation": { "type": "object", + "title": "TmsMerchantInformation", "properties": { "merchantDescriptor": { "type": "object", @@ -68473,6 +72608,7 @@ }, "merchantInformation": { "type": "object", + "title": "TmsMerchantInformation", "properties": { "merchantDescriptor": { "type": "object", @@ -69357,7 +73493,8 @@ "operationId": "postPaymentInstrument", "x-devcenter-metaData": { "categoryTag": "Token_Management", - "developerGuides": "https://developer.cybersource.com/docs/cybs/en-us/tms/developer/ctv/rest/tms/tms-pi-tkn/tms-pi-tkn-create-intro.html" + "developerGuides": "https://developer.cybersource.com/docs/cybs/en-us/tms/developer/ctv/rest/tms/tms-pi-tkn/tms-pi-tkn-create-intro.html", + "mleForRequest": "optional" }, "consumes": [ "application/json;charset=utf-8" @@ -69643,6 +73780,7 @@ }, "merchantInformation": { "type": "object", + "title": "TmsMerchantInformation", "properties": { "merchantDescriptor": { "type": "object", @@ -71221,6 +75359,7 @@ }, "merchantInformation": { "type": "object", + "title": "TmsMerchantInformation", "properties": { "merchantDescriptor": { "type": "object", @@ -72718,6 +76857,7 @@ }, "merchantInformation": { "type": "object", + "title": "TmsMerchantInformation", "properties": { "merchantDescriptor": { "type": "object", @@ -73602,7 +77742,8 @@ "operationId": "patchPaymentInstrument", "x-devcenter-metaData": { "categoryTag": "Token_Management", - "developerGuides": "https://developer.cybersource.com/docs/cybs/en-us/tms/developer/ctv/rest/tms/tms-pi-tkn/tms-pi-tkn-update-intro.html" + "developerGuides": "https://developer.cybersource.com/docs/cybs/en-us/tms/developer/ctv/rest/tms/tms-pi-tkn/tms-pi-tkn-update-intro.html", + "mleForRequest": "optional" }, "consumes": [ "application/json;charset=utf-8" @@ -73902,6 +78043,7 @@ }, "merchantInformation": { "type": "object", + "title": "TmsMerchantInformation", "properties": { "merchantDescriptor": { "type": "object", @@ -76389,7 +80531,8 @@ "operationId": "postInstrumentIdentifier", "x-devcenter-metaData": { "categoryTag": "Token_Management", - "developerGuides": "https://developer.cybersource.com/docs/cybs/en-us/tms/developer/ctv/rest/tms/tms-ii-tkn/tms-ii-tkn-create-intro.html" + "developerGuides": "https://developer.cybersource.com/docs/cybs/en-us/tms/developer/ctv/rest/tms/tms-ii-tkn/tms-ii-tkn-create-intro.html", + "mleForRequest": "optional" }, "consumes": [ "application/json;charset=utf-8" @@ -80528,7 +84671,8 @@ "operationId": "patchInstrumentIdentifier", "x-devcenter-metaData": { "categoryTag": "Token_Management", - "developerGuides": "https://developer.cybersource.com/docs/cybs/en-us/tms/developer/ctv/rest/tms/tms-ii-tkn/tms-ii-tkn-update-intro.html" + "developerGuides": "https://developer.cybersource.com/docs/cybs/en-us/tms/developer/ctv/rest/tms/tms-ii-tkn/tms-ii-tkn-update-intro.html", + "mleForRequest": "optional" }, "consumes": [ "application/json;charset=utf-8" @@ -82600,6 +86744,7 @@ }, "merchantInformation": { "type": "object", + "title": "TmsMerchantInformation", "properties": { "merchantDescriptor": { "type": "object", @@ -84666,7 +88811,8 @@ "operationId": "postInstrumentIdentifierEnrollment", "x-devcenter-metaData": { "categoryTag": "Token_Management", - "developerGuides": "https://developer.cybersource.com/docs/cybs/en-us/tms/developer/ctv/rest/tms/tms-net-tkn-intro/tms-net-tkn-partner-ii-intro.html" + "developerGuides": "https://developer.cybersource.com/docs/cybs/en-us/tms/developer/ctv/rest/tms/tms-net-tkn-intro/tms-net-tkn-partner-ii-intro.html", + "mleForRequest": "optional" }, "consumes": [ "application/json;charset=utf-8" @@ -85447,7 +89593,8 @@ "operationId": "postTokenizedCard", "x-devcenter-metaData": { "categoryTag": "Token_Management", - "developerGuides": "https://developer.cybersource.com/docs/cybs/en-us/tms/developer/ctv/rest/tms/tms-net-tkn-indirect/tms-net-tkn-card-create-cof-intro.html" + "developerGuides": "https://developer.cybersource.com/docs/cybs/en-us/tms/developer/ctv/rest/tms/tms-net-tkn-indirect/tms-net-tkn-card-create-cof-intro.html", + "mleForRequest": "optional" }, "consumes": [ "application/json;charset=utf-8" @@ -87321,7 +91468,154 @@ "type": { "type": "string", "readOnly": true, - "description": "The type of error.\n\nPossible Values:\n - forbidden\n - declined\n" + "description": "The type of error.\n\nPossible Values:\n - forbidden\n - declined\n" + }, + "message": { + "type": "string", + "readOnly": true, + "description": "The detailed message related to the type." + } + } + } + } + } + }, + "examples": { + "application/json": { + "errors": [ + { + "type": "forbidden", + "message": "Request not permitted" + } + ] + } + } + }, + "404": { + "description": "Token Not Found. The Id may not exist or was entered incorrectly.", + "headers": { + "v-c-correlation-id": { + "description": "The mandatory correlation Id passed by upstream (calling) system.", + "type": "string" + }, + "uniqueTransactionID": { + "description": "A globally unique Id associated with your request.", + "type": "string" + } + }, + "schema": { + "type": "object", + "readOnly": true, + "properties": { + "errors": { + "type": "array", + "readOnly": true, + "items": { + "type": "object", + "readOnly": true, + "properties": { + "type": { + "type": "string", + "readOnly": true, + "description": "The type of error.\n\nPossible Values:\n - notFound\n" + }, + "message": { + "type": "string", + "readOnly": true, + "description": "The detailed message related to the type." + } + } + } + } + } + }, + "examples": { + "application/json": { + "errors": [ + { + "type": "notFound", + "message": "Token not found" + } + ] + } + } + }, + "409": { + "description": "Conflict. The token is linked to a Payment Instrument.", + "headers": { + "v-c-correlation-id": { + "description": "The mandatory correlation Id passed by upstream (calling) system.", + "type": "string" + }, + "uniqueTransactionID": { + "description": "A globally unique Id associated with your request.", + "type": "string" + } + }, + "schema": { + "type": "object", + "readOnly": true, + "properties": { + "errors": { + "type": "array", + "readOnly": true, + "items": { + "type": "object", + "readOnly": true, + "properties": { + "type": { + "type": "string", + "readOnly": true, + "description": "The type of error.\n\nPossible Values:\n - instrumentIdentifierDeletionError\n - tokenIdConflict\n - conflict\n" + }, + "message": { + "type": "string", + "readOnly": true, + "description": "The detailed message related to the type." + } + } + } + } + } + }, + "examples": { + "application/json": { + "errors": [ + { + "type": "conflict", + "message": "Action cannot be performed as the PaymentInstrument is the customers default" + } + ] + } + } + }, + "410": { + "description": "Token Not Available. The token has been deleted.", + "headers": { + "v-c-correlation-id": { + "description": "The mandatory correlation Id passed by upstream (calling) system.", + "type": "string" + }, + "uniqueTransactionID": { + "description": "A globally unique Id associated with your request.", + "type": "string" + } + }, + "schema": { + "type": "object", + "readOnly": true, + "properties": { + "errors": { + "type": "array", + "readOnly": true, + "items": { + "type": "object", + "readOnly": true, + "properties": { + "type": { + "type": "string", + "readOnly": true, + "description": "The type of error.\n\nPossible Values:\n - notAvailable\n" }, "message": { "type": "string", @@ -87337,15 +91631,15 @@ "application/json": { "errors": [ { - "type": "forbidden", - "message": "Request not permitted" + "type": "notAvailable", + "message": "Token not available." } ] } } }, - "404": { - "description": "Token Not Found. The Id may not exist or was entered incorrectly.", + "424": { + "description": "Failed Dependency: e.g. The profile represented by the profile-id may not exist or the profile-id was entered incorrectly.", "headers": { "v-c-correlation-id": { "description": "The mandatory correlation Id passed by upstream (calling) system.", @@ -87387,14 +91681,14 @@ "errors": [ { "type": "notFound", - "message": "Token not found" + "message": "Profile not found" } ] } } }, - "409": { - "description": "Conflict. The token is linked to a Payment Instrument.", + "500": { + "description": "Unexpected error.", "headers": { "v-c-correlation-id": { "description": "The mandatory correlation Id passed by upstream (calling) system.", @@ -87405,6 +91699,16 @@ "type": "string" } }, + "examples": { + "application/json": { + "errors": [ + { + "type": "serverError", + "message": "Internal server error" + } + ] + } + }, "schema": { "type": "object", "readOnly": true, @@ -87419,12 +91723,180 @@ "type": { "type": "string", "readOnly": true, - "description": "The type of error.\n\nPossible Values:\n - instrumentIdentifierDeletionError\n - tokenIdConflict\n - conflict\n" + "description": "The type of error.\n\nPossible Values:\n - internalError\n" + }, + "message": { + "type": "string", + "readOnly": true, + "description": "The detailed message related to the type." + } + } + } + } + } + } + } + } + } + }, + "/tms/v2/tokenized-cards/{tokenizedCardId}/issuer-life-cycle-event-simulations": { + "post": { + "summary": "Simulate Issuer Life Cycle Management Events", + "description": "**Lifecycle Management Events**
Simulates an issuer life cycle manegement event for updates on the tokenized card.\nThe events that can be simulated are:\n- Token status changes (e.g. active, suspended, deleted)\n- Updates to the underlying card, including card art changes, expiration date changes, and card number suffix.\n**Note:** This is only available in CAS environment.\n", + "parameters": [ + { + "name": "profile-id", + "in": "header", + "required": true, + "type": "string", + "description": "The Id of a profile containing user specific TMS configuration.", + "minLength": 36, + "maxLength": 36 + }, + { + "name": "tokenizedCardId", + "in": "path", + "description": "The Id of a tokenized card.", + "required": true, + "type": "string", + "minLength": 12, + "maxLength": 32 + }, + { + "name": "postIssuerLifeCycleSimulationRequest", + "in": "body", + "required": true, + "schema": { + "type": "object", + "description": "Represents the Issuer LifeCycle Event Simulation for a Tokenized Card.\n", + "properties": { + "state": { + "type": "string", + "description": "The new state of the Tokenized Card.\nPossible Values:\n- ACTIVE\n- SUSPENDED\n- DELETED\n" + }, + "card": { + "type": "object", + "properties": { + "last4": { + "type": "string", + "maxLength": 4, + "description": "The new last 4 digits of the card number associated to the Tokenized Card.\n" + }, + "expirationMonth": { + "type": "string", + "maxLength": 2, + "description": "The new two-digit month of the card associated to the Tokenized Card.\nFormat: `MM`.\nPossible Values: `01` through `12`.\n" + }, + "expirationYear": { + "type": "string", + "maxLength": 4, + "description": "The new four-digit year of the card associated to the Tokenized Card.\nFormat: `YYYY`.\n" + } + } + }, + "metadata": { + "type": "object", + "properties": { + "cardArt": { + "type": "object", + "properties": { + "combinedAsset": { + "type": "object", + "properties": { + "update": { + "type": "string", + "description": "Set to \"true\" to simulate an update to the combined card art asset associated with the Tokenized Card.\n" + } + } + } + } + } + } + } + } + } + } + ], + "tags": [ + "Tokenized Card" + ], + "operationId": "postIssuerLifeCycleSimulation", + "x-devcenter-metaData": { + "categoryTag": "Token_Management", + "developerGuides": "https://developer.cybersource.com/docs/cybs/en-us/tms/developer/ctv/rest/tms/tms-net-tkn-intro/tms-net-tkn-card-simulate-issuer-life-cycle-event-intro.html" + }, + "consumes": [ + "application/json;charset=utf-8" + ], + "produces": [ + "application/json;charset=utf-8" + ], + "responses": { + "204": { + "description": "The request is fulfilled but does not need to return a body", + "headers": { + "v-c-correlation-id": { + "description": "The mandatory correlation Id passed by upstream (calling) system.", + "type": "string" + }, + "uniqueTransactionID": { + "description": "A globally unique Id associated with your request.", + "type": "string" + } + } + }, + "400": { + "description": "Bad Request: e.g. A required header value could be missing.", + "headers": { + "v-c-correlation-id": { + "description": "The mandatory correlation Id passed by upstream (calling) system.", + "type": "string" + }, + "uniqueTransactionID": { + "description": "A globally unique Id associated with your request.", + "type": "string" + } + }, + "schema": { + "type": "object", + "readOnly": true, + "properties": { + "errors": { + "type": "array", + "readOnly": true, + "items": { + "type": "object", + "readOnly": true, + "properties": { + "type": { + "type": "string", + "readOnly": true, + "description": "The type of error.\n\nPossible Values:\n - invalidHeaders\n - missingHeaders\n - invalidFields\n - missingFields\n - unsupportedPaymentMethodModification\n - invalidCombination\n" }, "message": { "type": "string", "readOnly": true, "description": "The detailed message related to the type." + }, + "details": { + "type": "array", + "readOnly": true, + "items": { + "type": "object", + "readOnly": true, + "properties": { + "name": { + "type": "string", + "readOnly": true, + "description": "The name of the field that caused the error." + }, + "location": { + "type": "string", + "readOnly": true, + "description": "The location of the field that caused the error." + } + } + } } } } @@ -87432,18 +91904,18 @@ } }, "examples": { - "application/json": { + "Invalid Customer request body": { "errors": [ { - "type": "conflict", - "message": "Action cannot be performed as the PaymentInstrument is the customers default" + "type": "invalidRequest", + "message": "Invalid HTTP Body" } ] } } }, - "410": { - "description": "Token Not Available. The token has been deleted.", + "403": { + "description": "Forbidden: e.g. The profile might not have permission to perform the operation.", "headers": { "v-c-correlation-id": { "description": "The mandatory correlation Id passed by upstream (calling) system.", @@ -87468,7 +91940,7 @@ "type": { "type": "string", "readOnly": true, - "description": "The type of error.\n\nPossible Values:\n - notAvailable\n" + "description": "The type of error.\n\nPossible Values:\n - forbidden\n - declined\n" }, "message": { "type": "string", @@ -87484,15 +91956,15 @@ "application/json": { "errors": [ { - "type": "notAvailable", - "message": "Token not available." + "type": "forbidden", + "message": "Request not permitted" } ] } } }, - "424": { - "description": "Failed Dependency: e.g. The profile represented by the profile-id may not exist or the profile-id was entered incorrectly.", + "404": { + "description": "Token Not Found. The Id may not exist or was entered incorrectly.", "headers": { "v-c-correlation-id": { "description": "The mandatory correlation Id passed by upstream (calling) system.", @@ -87534,7 +92006,7 @@ "errors": [ { "type": "notFound", - "message": "Profile not found" + "message": "Token not found" } ] } @@ -87589,6 +92061,36 @@ } } } + }, + "x-example": { + "example0": { + "summary": "Simulate Network Token Status Update", + "value": { + "state": "SUSPENDED" + } + }, + "example1": { + "summary": "Simulate Network Token Card Metadata Update", + "value": { + "card": { + "last4": "9876", + "expirationMonth": "11", + "expirationYear": "2040" + } + } + }, + "example2": { + "summary": "Simulate Network Token Card Art Update", + "value": { + "metadata": { + "cardArt": { + "combinedAsset": { + "update": "true" + } + } + } + } + } } } }, @@ -87853,7 +92355,8 @@ "operationId": "postTokenPaymentCredentials", "x-devcenter-metaData": { "categoryTag": "Token_Management", - "developerGuides": "https://developer.cybersource.com/docs/cybs/en-us/tms/developer/ctv/rest/tms/tms-net-tkn-indirect/tms-net-tkn-partner-retrieve-pay-cred-intro.html" + "developerGuides": "https://developer.cybersource.com/docs/cybs/en-us/tms/developer/ctv/rest/tms/tms-net-tkn-indirect/tms-net-tkn-partner-retrieve-pay-cred-intro.html", + "mleForRequest": "optional" }, "consumes": [ "application/json;charset=utf-8" @@ -101675,43 +106178,6 @@ "schema": { "type": "object", "properties": { - "clientReferenceInformation": { - "type": "object", - "properties": { - "comments": { - "type": "string", - "maxLength": 255, - "description": "Brief description of the order or any comment you wish to add to the order.\n" - }, - "partner": { - "type": "object", - "properties": { - "developerId": { - "type": "string", - "maxLength": 8, - "description": "Identifier for the developer that helped integrate a partner solution to CyberSource.\n\nSend this value in all requests that are sent through the partner solutions built by that developer.\nCyberSource assigns the ID to the developer.\n\n**Note** When you see a developer ID of 999 in reports, the developer ID that was submitted is incorrect.\n" - }, - "solutionId": { - "type": "string", - "maxLength": 8, - "description": "Identifier for the partner that is integrated to CyberSource.\n\nSend this value in all requests that are sent through the partner solution. CyberSource assigns the ID to the partner.\n\n**Note** When you see a solutionId of 999 in reports, the solutionId that was submitted is incorrect.\n" - } - } - }, - "applicationName": { - "type": "string", - "description": "The name of the Connection Method client (such as Virtual Terminal or SOAP Toolkit API) that the merchant uses to send a transaction request to CyberSource.\n" - }, - "applicationVersion": { - "type": "string", - "description": "Version of the CyberSource application or integration used for a transaction.\n" - }, - "applicationUser": { - "type": "string", - "description": "The entity that is responsible for running the transaction and submitting the processing request to CyberSource. This could be a person, a system, or a connection method.\n" - } - } - }, "planInformation": { "type": "object", "required": [ @@ -103422,41 +107888,9 @@ "type": "object", "properties": { "code": { - "description": "> Deprecated: This field is ignored.\n\nMerchant-generated order reference or tracking number. It is recommended that you send a unique value for each\ntransaction so that you can perform meaningful searches for the transaction.\n\n#### Used by\n**Authorization**\nRequired field.\n\n#### PIN Debit\nRequests for PIN debit reversals need to use the same merchant reference number that was used in the transaction that is being\nreversed.\n\nRequired field for all PIN Debit requests (purchase, credit, and reversal).\n\n#### FDC Nashville Global\nCertain circumstances can cause the processor to truncate this value to 15 or 17 characters for Level II and Level III processing, which can cause a discrepancy between the value you submit and the value included in some processor reports.\n", + "description": "\nMerchant-generated order reference or tracking number. It is recommended that you send a unique value for each\ntransaction so that you can perform meaningful searches for the transaction.\n\n#### Used by\n**Authorization**\nRequired field.\n\n#### PIN Debit\nRequests for PIN debit reversals need to use the same merchant reference number that was used in the transaction that is being\nreversed.\n\nRequired field for all PIN Debit requests (purchase, credit, and reversal).\n\n#### FDC Nashville Global\nCertain circumstances can cause the processor to truncate this value to 15 or 17 characters for Level II and Level III processing, which can cause a discrepancy between the value you submit and the value included in some processor reports.\n", "type": "string", "maxLength": 50 - }, - "comments": { - "description": "> Deprecated: This field is ignored.\n\nBrief description of the order or any comment you wish to add to the order.\n", - "type": "string", - "maxLength": 255 - }, - "partner": { - "type": "object", - "properties": { - "developerId": { - "description": "> This field is ignored when you provide the `subscriptionInformation.originalTransactionId` or update the subscription.\n\nIdentifier for the developer that helped integrate a partner solution to CyberSource.\n\nSend this value in all requests that are sent through the partner solutions built by that developer.\nCyberSource assigns the ID to the developer.\n\n**Note** When you see a developer ID of 999 in reports, the developer ID that was submitted is incorrect.\n", - "type": "string", - "maxLength": 8 - }, - "solutionId": { - "description": "> This field is ignored when you provide the `subscriptionInformation.originalTransactionId` or update the subscription.\n\nIdentifier for the partner that is integrated to CyberSource.\n\nSend this value in all requests that are sent through the partner solution. CyberSource assigns the ID to the partner.\n\n**Note** When you see a solutionId of 999 in reports, the solutionId that was submitted is incorrect.\n", - "type": "string", - "maxLength": 8 - } - } - }, - "applicationName": { - "description": "> Deprecated: This field is ignored.\n\nThe name of the Connection Method client (such as Virtual Terminal or SOAP Toolkit API) that the merchant uses to send a transaction request to CyberSource.\n", - "type": "string" - }, - "applicationVersion": { - "description": "> Deprecated: This field is ignored.\n\nVersion of the CyberSource application or integration used for a transaction.\n", - "type": "string" - }, - "applicationUser": { - "description": "> Deprecated: This field is ignored.\n\nThe entity that is responsible for running the transaction and submitting the processing request to CyberSource. This could be a person, a system, or a connection method.\n", - "type": "string" } } }, @@ -103607,6 +108041,9 @@ "customer": { "id": "C24F5921EB870D99E053AF598E0A4105" } + }, + "clientReferenceInformation": { + "code": "TC501713" } } } @@ -103715,6 +108152,16 @@ "description": "Subscription Status:\n - `PENDING`\n - `ACTIVE`\n - `FAILED`\n" } } + }, + "clientReferenceInformation": { + "type": "object", + "properties": { + "code": { + "description": "\nMerchant-generated order reference or tracking number. It is recommended that you send a unique value for each\ntransaction so that you can perform meaningful searches for the transaction.\n\n#### Used by\n**Authorization**\nRequired field.\n\n#### PIN Debit\nRequests for PIN debit reversals need to use the same merchant reference number that was used in the transaction that is being\nreversed.\n\nRequired field for all PIN Debit requests (purchase, credit, and reversal).\n\n#### FDC Nashville Global\nCertain circumstances can cause the processor to truncate this value to 15 or 17 characters for Level II and Level III processing, which can cause a discrepancy between the value you submit and the value included in some processor reports.\n", + "type": "string", + "maxLength": 50 + } + } } }, "example": { @@ -103820,6 +108267,9 @@ "summary": "Create Subscription", "sample-name": "Create Subscription", "value": { + "clientReferenceInformation": { + "code": "TC501713" + }, "subscriptionInformation": { "planId": "6868912495476705603955", "name": "Subscription with PlanId", @@ -103838,13 +108288,7 @@ "sample-name": "(deprecated) Create Subscription with Authorization", "value": { "clientReferenceInformation": { - "code": "TC501713", - "partner": { - "developerId": "ABCD1234", - "solutionId": "GEF1234" - }, - "applicationName": "CYBS-SDK", - "applicationVersion": "v1" + "code": "TC501713" }, "processingInformation": { "commerceIndicator": "recurring", @@ -104116,6 +108560,16 @@ } } }, + "clientReferenceInformation": { + "type": "object", + "properties": { + "code": { + "description": "\nMerchant-generated order reference or tracking number. It is recommended that you send a unique value for each\ntransaction so that you can perform meaningful searches for the transaction.\n\n#### Used by\n**Authorization**\nRequired field.\n\n#### PIN Debit\nRequests for PIN debit reversals need to use the same merchant reference number that was used in the transaction that is being\nreversed.\n\nRequired field for all PIN Debit requests (purchase, credit, and reversal).\n\n#### FDC Nashville Global\nCertain circumstances can cause the processor to truncate this value to 15 or 17 characters for Level II and Level III processing, which can cause a discrepancy between the value you submit and the value included in some processor reports.\n", + "type": "string", + "maxLength": 50 + } + } + }, "paymentInformation": { "type": "object", "properties": { @@ -104475,18 +108929,28 @@ } } }, + "clientReferenceInformation": { + "type": "object", + "properties": { + "code": { + "description": "\nMerchant-generated order reference or tracking number. It is recommended that you send a unique value for each\ntransaction so that you can perform meaningful searches for the transaction.\n\n#### Used by\n**Authorization**\nRequired field.\n\n#### PIN Debit\nRequests for PIN debit reversals need to use the same merchant reference number that was used in the transaction that is being\nreversed.\n\nRequired field for all PIN Debit requests (purchase, credit, and reversal).\n\n#### FDC Nashville Global\nCertain circumstances can cause the processor to truncate this value to 15 or 17 characters for Level II and Level III processing, which can cause a discrepancy between the value you submit and the value included in some processor reports.\n", + "type": "string", + "maxLength": 50 + } + } + }, "reactivationInformation": { "type": "object", "properties": { - "skippedPaymentsCount": { + "missedPaymentsCount": { "type": "string", "maxLength": 10, "description": "Number of payments that should have occurred while the subscription was in a suspended status.\n" }, - "skippedPaymentsTotalAmount": { + "missedPaymentsTotalAmount": { "type": "string", "maxLength": 19, - "description": "Total amount that will be charged upon reactivation if `processSkippedPayments` is set to `true`.\n" + "description": "Total amount that will be charged upon reactivation if `processMissedPayments` is set to `true`.\n" } } } @@ -104616,41 +109080,9 @@ "type": "object", "properties": { "code": { - "description": "> Deprecated: This field is ignored.\n\nMerchant-generated order reference or tracking number. It is recommended that you send a unique value for each\ntransaction so that you can perform meaningful searches for the transaction.\n\n#### Used by\n**Authorization**\nRequired field.\n\n#### PIN Debit\nRequests for PIN debit reversals need to use the same merchant reference number that was used in the transaction that is being\nreversed.\n\nRequired field for all PIN Debit requests (purchase, credit, and reversal).\n\n#### FDC Nashville Global\nCertain circumstances can cause the processor to truncate this value to 15 or 17 characters for Level II and Level III processing, which can cause a discrepancy between the value you submit and the value included in some processor reports.\n", + "description": "\nMerchant-generated order reference or tracking number. It is recommended that you send a unique value for each\ntransaction so that you can perform meaningful searches for the transaction.\n\n#### Used by\n**Authorization**\nRequired field.\n\n#### PIN Debit\nRequests for PIN debit reversals need to use the same merchant reference number that was used in the transaction that is being\nreversed.\n\nRequired field for all PIN Debit requests (purchase, credit, and reversal).\n\n#### FDC Nashville Global\nCertain circumstances can cause the processor to truncate this value to 15 or 17 characters for Level II and Level III processing, which can cause a discrepancy between the value you submit and the value included in some processor reports.\n", "type": "string", "maxLength": 50 - }, - "comments": { - "description": "> Deprecated: This field is ignored.\n\nBrief description of the order or any comment you wish to add to the order.\n", - "type": "string", - "maxLength": 255 - }, - "partner": { - "type": "object", - "properties": { - "developerId": { - "description": "> This field is ignored when you provide the `subscriptionInformation.originalTransactionId` or update the subscription.\n\nIdentifier for the developer that helped integrate a partner solution to CyberSource.\n\nSend this value in all requests that are sent through the partner solutions built by that developer.\nCyberSource assigns the ID to the developer.\n\n**Note** When you see a developer ID of 999 in reports, the developer ID that was submitted is incorrect.\n", - "type": "string", - "maxLength": 8 - }, - "solutionId": { - "description": "> This field is ignored when you provide the `subscriptionInformation.originalTransactionId` or update the subscription.\n\nIdentifier for the partner that is integrated to CyberSource.\n\nSend this value in all requests that are sent through the partner solution. CyberSource assigns the ID to the partner.\n\n**Note** When you see a solutionId of 999 in reports, the solutionId that was submitted is incorrect.\n", - "type": "string", - "maxLength": 8 - } - } - }, - "applicationName": { - "description": "> Deprecated: This field is ignored.\n\nThe name of the Connection Method client (such as Virtual Terminal or SOAP Toolkit API) that the merchant uses to send a transaction request to CyberSource.\n", - "type": "string" - }, - "applicationVersion": { - "description": "> Deprecated: This field is ignored.\n\nVersion of the CyberSource application or integration used for a transaction.\n", - "type": "string" - }, - "applicationUser": { - "description": "> Deprecated: This field is ignored.\n\nThe entity that is responsible for running the transaction and submitting the processing request to CyberSource. This could be a person, a system, or a connection method.\n", - "type": "string" } } }, @@ -105109,7 +109541,7 @@ "/rbs/v1/subscriptions/{id}/suspend": { "post": { "summary": "Suspend a Subscription", - "description": "Suspend a Subscription", + "description": "Suspend a Subscription\n", "tags": [ "Subscriptions" ], @@ -105277,8 +109709,8 @@ }, "/rbs/v1/subscriptions/{id}/activate": { "post": { - "summary": "Activate a Subscription", - "description": "Activate a `SUSPENDED` Subscription\n", + "summary": "Reactivating a Suspended Subscription", + "description": "# Reactivating a Suspended Subscription\n\nYou can reactivate a suspended subscription for the next billing cycle. You cannot reactivate a canceled or completed subscription.\n\nYou can specify whether you want to process missed payments for the period during which the subscription was suspended using the `processMissedPayments` query parameter by setting it to true or false. \nIf no value is specified, the system will default to `true`.\n\n**Important:** The \"processMissedPayments\" query parameter is only effective when the Ask each time before reactivating option is selected in the reactivation settings. If any other option is chosen, the value provided in the request will be ignored by the system. For more information, see the [Recurring Billing User Guide](https://developer.cybersource.com/docs/cybs/en-us/recurring-billing/user/all/rest/recurring-billing-user/recurring-billing-user-about-guide.html).\n\nYou can check how many payments were missed and the total amount by retrieving the subscription details, where you will find the `reactivationInformation` object. See: [Retrieving a Subscription](https://developer.cybersource.com/docs/cybs/en-us/recurring-billing/developer/all/rest/recurring-billing-dev/recur-bill-subscriptions/recur-bill-getting-a-subscription.html).\n", "tags": [ "Subscriptions" ], @@ -105306,10 +109738,10 @@ "description": "Subscription Id" }, { - "name": "processSkippedPayments", + "name": "processMissedPayments", "in": "query", "type": "boolean", - "description": "Indicates if skipped payments should be processed from the period when the subscription was suspended. By default, this is set to true.", + "description": "Indicates if missed payments should be processed from the period when the subscription was suspended. By default, this is set to true.\nWhen any option other than \"Ask each time before reactivating\" is selected in the reactivation settings, the value that you enter will be ignored.\n", "required": false, "default": true } @@ -106073,41 +110505,9 @@ "type": "object", "properties": { "code": { - "description": "> Deprecated: This field is ignored.\n\nMerchant-generated order reference or tracking number. It is recommended that you send a unique value for each\ntransaction so that you can perform meaningful searches for the transaction.\n\n#### Used by\n**Authorization**\nRequired field.\n\n#### PIN Debit\nRequests for PIN debit reversals need to use the same merchant reference number that was used in the transaction that is being\nreversed.\n\nRequired field for all PIN Debit requests (purchase, credit, and reversal).\n\n#### FDC Nashville Global\nCertain circumstances can cause the processor to truncate this value to 15 or 17 characters for Level II and Level III processing, which can cause a discrepancy between the value you submit and the value included in some processor reports.\n", + "description": "\nMerchant-generated order reference or tracking number. It is recommended that you send a unique value for each\ntransaction so that you can perform meaningful searches for the transaction.\n\n#### Used by\n**Authorization**\nRequired field.\n\n#### PIN Debit\nRequests for PIN debit reversals need to use the same merchant reference number that was used in the transaction that is being\nreversed.\n\nRequired field for all PIN Debit requests (purchase, credit, and reversal).\n\n#### FDC Nashville Global\nCertain circumstances can cause the processor to truncate this value to 15 or 17 characters for Level II and Level III processing, which can cause a discrepancy between the value you submit and the value included in some processor reports.\n", "type": "string", "maxLength": 50 - }, - "comments": { - "description": "> Deprecated: This field is ignored.\n\nBrief description of the order or any comment you wish to add to the order.\n", - "type": "string", - "maxLength": 255 - }, - "partner": { - "type": "object", - "properties": { - "developerId": { - "description": "> This field is ignored when you provide the `subscriptionInformation.originalTransactionId` or update the subscription.\n\nIdentifier for the developer that helped integrate a partner solution to CyberSource.\n\nSend this value in all requests that are sent through the partner solutions built by that developer.\nCyberSource assigns the ID to the developer.\n\n**Note** When you see a developer ID of 999 in reports, the developer ID that was submitted is incorrect.\n", - "type": "string", - "maxLength": 8 - }, - "solutionId": { - "description": "> This field is ignored when you provide the `subscriptionInformation.originalTransactionId` or update the subscription.\n\nIdentifier for the partner that is integrated to CyberSource.\n\nSend this value in all requests that are sent through the partner solution. CyberSource assigns the ID to the partner.\n\n**Note** When you see a solutionId of 999 in reports, the solutionId that was submitted is incorrect.\n", - "type": "string", - "maxLength": 8 - } - } - }, - "applicationName": { - "description": "> Deprecated: This field is ignored.\n\nThe name of the Connection Method client (such as Virtual Terminal or SOAP Toolkit API) that the merchant uses to send a transaction request to CyberSource.\n", - "type": "string" - }, - "applicationVersion": { - "description": "> Deprecated: This field is ignored.\n\nVersion of the CyberSource application or integration used for a transaction.\n", - "type": "string" - }, - "applicationUser": { - "description": "> Deprecated: This field is ignored.\n\nThe entity that is responsible for running the transaction and submitting the processing request to CyberSource. This could be a person, a system, or a connection method.\n", - "type": "string" } } }, @@ -106230,13 +110630,7 @@ }, "example": { "clientReferenceInformation": { - "code": "FollowOn from 7216512479796378604957", - "partner": { - "developerId": "ABCD1234", - "solutionId": "GEF1234" - }, - "applicationName": "CYBS-SDK", - "applicationVersion": "v1" + "code": "FollowOn from 7216512479796378604957" }, "processingInformation": { "commerceIndicator": "recurring", @@ -106358,6 +110752,16 @@ "description": "Subscription Status:\n - `PENDING`\n - `ACTIVE`\n - `FAILED`\n" } } + }, + "clientReferenceInformation": { + "type": "object", + "properties": { + "code": { + "description": "\nMerchant-generated order reference or tracking number. It is recommended that you send a unique value for each\ntransaction so that you can perform meaningful searches for the transaction.\n\n#### Used by\n**Authorization**\nRequired field.\n\n#### PIN Debit\nRequests for PIN debit reversals need to use the same merchant reference number that was used in the transaction that is being\nreversed.\n\nRequired field for all PIN Debit requests (purchase, credit, and reversal).\n\n#### FDC Nashville Global\nCertain circumstances can cause the processor to truncate this value to 15 or 17 characters for Level II and Level III processing, which can cause a discrepancy between the value you submit and the value included in some processor reports.\n", + "type": "string", + "maxLength": 50 + } + } } }, "example": { @@ -106464,13 +110868,7 @@ "sample-name": "Create Follow-On Subscription", "value": { "clientReferenceInformation": { - "code": "FollowOn from 7216512479796378604957", - "partner": { - "developerId": "ABCD1234", - "solutionId": "GEF1234" - }, - "applicationName": "CYBS-SDK", - "applicationVersion": "v1" + "code": "FollowOn from 7216512479796378604957" }, "processingInformation": { "commerceIndicator": "recurring", @@ -134847,6 +139245,24 @@ } } } + }, + "batchUpload": { + "type": "object", + "properties": { + "subscriptionInformation": { + "type": "object", + "properties": { + "enabled": { + "type": "boolean" + }, + "selfServiceability": { + "type": "string", + "default": "NOT_SELF_SERVICEABLE", + "description": "Indicates if the organization can enable this product using self service. \nPossible values:\n- SELF_SERVICEABLE\n- NOT_SELF_SERVICEABLE\n- SELF_SERVICE_ONLY" + } + } + } + } } } }, @@ -136622,26 +141038,159 @@ "type": "string" } } - } - } - }, - "recurringBilling": { - "type": "object", - "properties": { - "subscriptionStatus": { + } + } + }, + "recurringBilling": { + "type": "object", + "properties": { + "subscriptionStatus": { + "type": "object", + "properties": { + "submitTimeUtc": { + "type": "string", + "description": "Time of request in UTC. `Format: YYYY-MM-DDThh:mm:ssZ`\n\nExample 2016-08-11T22:47:57Z equals August 11, 2016, at 22:47:57 (10:47:57 p.m.). The T separates the date and the\ntime. The Z indicates UTC.\n" + }, + "status": { + "type": "string", + "description": "Possible values:\n- SUCCESS\n- FAILURE\n- PARTIAL\n- PENDING" + }, + "reason": { + "type": "string", + "description": "Possible values:\n- DEPENDENT_PRODUCT_NOT_CONTRACTED\n- DEPENDENT_FEATURE_NOT_CHOSEN\n- MISSING_DATA\n- INVALID_DATA\n- DUPLICATE_FIELD" + }, + "details": { + "type": "array", + "items": { + "type": "object", + "properties": { + "field": { + "type": "string" + }, + "reason": { + "type": "string", + "description": "Possible values:\n- MISSING_DATA\n- INVALID_DATA\n- DUPLICATE_FIELD" + } + }, + "additionalProperties": { + "type": "string" + } + } + }, + "message": { + "type": "string" + } + } + }, + "configurationStatus": { + "type": "object", + "properties": { + "configurationId": { + "type": "string", + "description": "This is NOT for MVP" + }, + "version": { + "type": "string" + }, + "submitTimeUtc": { + "type": "string", + "description": "Time of request in UTC. `Format: YYYY-MM-DDThh:mm:ssZ`\n\nExample 2016-08-11T22:47:57Z equals August 11, 2016, at 22:47:57 (10:47:57 p.m.). The T separates the date and the\ntime. The Z indicates UTC.\n" + }, + "status": { + "type": "string", + "description": "Possible values:\n- SUCCESS\n- PARTIAL\n- PENDING\n- NOT_SETUP" + }, + "reason": { + "type": "string", + "description": "Possible values:\n- PENDING_PROVISIONING_PROCESS\n- MISSING_DATA\n- INVALID_DATA\n- DUPLICATE_FIELD\n- NOT_APPLICABLE" + }, + "details": { + "type": "array", + "items": { + "type": "object", + "properties": { + "field": { + "type": "string" + }, + "reason": { + "type": "string", + "description": "Possible values:\n- MISSING_DATA\n- INVALID_DATA\n- DUPLICATE_FIELD" + } + }, + "additionalProperties": { + "type": "string" + } + } + }, + "message": { + "type": "string" + } + } + } + } + }, + "cybsReadyTerminal": { + "type": "object", + "properties": { + "subscriptionStatus": { + "type": "object", + "properties": { + "submitTimeUtc": { + "type": "string", + "description": "Time of request in UTC. `Format: YYYY-MM-DDThh:mm:ssZ`\n\nExample 2016-08-11T22:47:57Z equals August 11, 2016, at 22:47:57 (10:47:57 p.m.). The T separates the date and the\ntime. The Z indicates UTC.\n" + }, + "status": { + "type": "string", + "description": "Possible values:\n- SUCCESS\n- FAILURE\n- PARTIAL\n- PENDING" + }, + "reason": { + "type": "string", + "description": "Possible values:\n- DEPENDENT_PRODUCT_NOT_CONTRACTED\n- DEPENDENT_FEATURE_NOT_CHOSEN\n- MISSING_DATA\n- INVALID_DATA\n- DUPLICATE_FIELD" + }, + "details": { + "type": "array", + "items": { + "type": "object", + "properties": { + "field": { + "type": "string" + }, + "reason": { + "type": "string", + "description": "Possible values:\n- MISSING_DATA\n- INVALID_DATA\n- DUPLICATE_FIELD" + } + }, + "additionalProperties": { + "type": "string" + } + } + }, + "message": { + "type": "string" + } + } + }, + "configurationStatus": { "type": "object", "properties": { + "configurationId": { + "type": "string", + "description": "This is NOT for MVP" + }, + "version": { + "type": "string" + }, "submitTimeUtc": { "type": "string", "description": "Time of request in UTC. `Format: YYYY-MM-DDThh:mm:ssZ`\n\nExample 2016-08-11T22:47:57Z equals August 11, 2016, at 22:47:57 (10:47:57 p.m.). The T separates the date and the\ntime. The Z indicates UTC.\n" }, "status": { "type": "string", - "description": "Possible values:\n- SUCCESS\n- FAILURE\n- PARTIAL\n- PENDING" + "description": "Possible values:\n- SUCCESS\n- PARTIAL\n- PENDING\n- NOT_SETUP" }, "reason": { "type": "string", - "description": "Possible values:\n- DEPENDENT_PRODUCT_NOT_CONTRACTED\n- DEPENDENT_FEATURE_NOT_CHOSEN\n- MISSING_DATA\n- INVALID_DATA\n- DUPLICATE_FIELD" + "description": "Possible values:\n- PENDING_PROVISIONING_PROCESS\n- MISSING_DATA\n- INVALID_DATA\n- DUPLICATE_FIELD\n- NOT_APPLICABLE" }, "details": { "type": "array", @@ -136665,28 +141214,26 @@ "type": "string" } } - }, - "configurationStatus": { + } + } + }, + "paymentOrchestration": { + "type": "object", + "properties": { + "subscriptionStatus": { "type": "object", "properties": { - "configurationId": { - "type": "string", - "description": "This is NOT for MVP" - }, - "version": { - "type": "string" - }, "submitTimeUtc": { "type": "string", "description": "Time of request in UTC. `Format: YYYY-MM-DDThh:mm:ssZ`\n\nExample 2016-08-11T22:47:57Z equals August 11, 2016, at 22:47:57 (10:47:57 p.m.). The T separates the date and the\ntime. The Z indicates UTC.\n" }, "status": { "type": "string", - "description": "Possible values:\n- SUCCESS\n- PARTIAL\n- PENDING\n- NOT_SETUP" + "description": "Possible values:\n- SUCCESS\n- FAILURE\n- PARTIAL\n- PENDING" }, "reason": { "type": "string", - "description": "Possible values:\n- PENDING_PROVISIONING_PROCESS\n- MISSING_DATA\n- INVALID_DATA\n- DUPLICATE_FIELD\n- NOT_APPLICABLE" + "description": "Possible values:\n- DEPENDENT_PRODUCT_NOT_CONTRACTED\n- DEPENDENT_FEATURE_NOT_CHOSEN\n- MISSING_DATA\n- INVALID_DATA\n- DUPLICATE_FIELD" }, "details": { "type": "array", @@ -136713,7 +141260,7 @@ } } }, - "cybsReadyTerminal": { + "payouts": { "type": "object", "properties": { "subscriptionStatus": { @@ -136801,7 +141348,7 @@ } } }, - "paymentOrchestration": { + "payByLink": { "type": "object", "properties": { "subscriptionStatus": { @@ -136844,7 +141391,7 @@ } } }, - "payouts": { + "unifiedCheckout": { "type": "object", "properties": { "subscriptionStatus": { @@ -136884,55 +141431,10 @@ "type": "string" } } - }, - "configurationStatus": { - "type": "object", - "properties": { - "configurationId": { - "type": "string", - "description": "This is NOT for MVP" - }, - "version": { - "type": "string" - }, - "submitTimeUtc": { - "type": "string", - "description": "Time of request in UTC. `Format: YYYY-MM-DDThh:mm:ssZ`\n\nExample 2016-08-11T22:47:57Z equals August 11, 2016, at 22:47:57 (10:47:57 p.m.). The T separates the date and the\ntime. The Z indicates UTC.\n" - }, - "status": { - "type": "string", - "description": "Possible values:\n- SUCCESS\n- PARTIAL\n- PENDING\n- NOT_SETUP" - }, - "reason": { - "type": "string", - "description": "Possible values:\n- PENDING_PROVISIONING_PROCESS\n- MISSING_DATA\n- INVALID_DATA\n- DUPLICATE_FIELD\n- NOT_APPLICABLE" - }, - "details": { - "type": "array", - "items": { - "type": "object", - "properties": { - "field": { - "type": "string" - }, - "reason": { - "type": "string", - "description": "Possible values:\n- MISSING_DATA\n- INVALID_DATA\n- DUPLICATE_FIELD" - } - }, - "additionalProperties": { - "type": "string" - } - } - }, - "message": { - "type": "string" - } - } } } }, - "payByLink": { + "receivablesManager": { "type": "object", "properties": { "subscriptionStatus": { @@ -136975,7 +141477,7 @@ } } }, - "unifiedCheckout": { + "serviceFee": { "type": "object", "properties": { "subscriptionStatus": { @@ -137015,26 +141517,28 @@ "type": "string" } } - } - } - }, - "receivablesManager": { - "type": "object", - "properties": { - "subscriptionStatus": { + }, + "configurationStatus": { "type": "object", "properties": { + "configurationId": { + "type": "string", + "description": "This is NOT for MVP" + }, + "version": { + "type": "string" + }, "submitTimeUtc": { "type": "string", "description": "Time of request in UTC. `Format: YYYY-MM-DDThh:mm:ssZ`\n\nExample 2016-08-11T22:47:57Z equals August 11, 2016, at 22:47:57 (10:47:57 p.m.). The T separates the date and the\ntime. The Z indicates UTC.\n" }, "status": { "type": "string", - "description": "Possible values:\n- SUCCESS\n- FAILURE\n- PARTIAL\n- PENDING" + "description": "Possible values:\n- SUCCESS\n- PARTIAL\n- PENDING\n- NOT_SETUP" }, "reason": { "type": "string", - "description": "Possible values:\n- DEPENDENT_PRODUCT_NOT_CONTRACTED\n- DEPENDENT_FEATURE_NOT_CHOSEN\n- MISSING_DATA\n- INVALID_DATA\n- DUPLICATE_FIELD" + "description": "Possible values:\n- PENDING_PROVISIONING_PROCESS\n- MISSING_DATA\n- INVALID_DATA\n- DUPLICATE_FIELD\n- NOT_APPLICABLE" }, "details": { "type": "array", @@ -137061,7 +141565,7 @@ } } }, - "serviceFee": { + "batchUpload": { "type": "object", "properties": { "subscriptionStatus": { @@ -137101,51 +141605,6 @@ "type": "string" } } - }, - "configurationStatus": { - "type": "object", - "properties": { - "configurationId": { - "type": "string", - "description": "This is NOT for MVP" - }, - "version": { - "type": "string" - }, - "submitTimeUtc": { - "type": "string", - "description": "Time of request in UTC. `Format: YYYY-MM-DDThh:mm:ssZ`\n\nExample 2016-08-11T22:47:57Z equals August 11, 2016, at 22:47:57 (10:47:57 p.m.). The T separates the date and the\ntime. The Z indicates UTC.\n" - }, - "status": { - "type": "string", - "description": "Possible values:\n- SUCCESS\n- PARTIAL\n- PENDING\n- NOT_SETUP" - }, - "reason": { - "type": "string", - "description": "Possible values:\n- PENDING_PROVISIONING_PROCESS\n- MISSING_DATA\n- INVALID_DATA\n- DUPLICATE_FIELD\n- NOT_APPLICABLE" - }, - "details": { - "type": "array", - "items": { - "type": "object", - "properties": { - "field": { - "type": "string" - }, - "reason": { - "type": "string", - "description": "Possible values:\n- MISSING_DATA\n- INVALID_DATA\n- DUPLICATE_FIELD" - } - }, - "additionalProperties": { - "type": "string" - } - } - }, - "message": { - "type": "string" - } - } } } } @@ -145273,6 +149732,24 @@ } } } + }, + "batchUpload": { + "type": "object", + "properties": { + "subscriptionInformation": { + "type": "object", + "properties": { + "enabled": { + "type": "boolean" + }, + "selfServiceability": { + "type": "string", + "default": "NOT_SELF_SERVICEABLE", + "description": "Indicates if the organization can enable this product using self service. \nPossible values:\n- SELF_SERVICEABLE\n- NOT_SELF_SERVICEABLE\n- SELF_SERVICE_ONLY" + } + } + } + } } } }, @@ -147440,6 +151917,49 @@ } } } + }, + "batchUpload": { + "type": "object", + "properties": { + "subscriptionStatus": { + "type": "object", + "properties": { + "submitTimeUtc": { + "type": "string", + "description": "Time of request in UTC. `Format: YYYY-MM-DDThh:mm:ssZ`\n\nExample 2016-08-11T22:47:57Z equals August 11, 2016, at 22:47:57 (10:47:57 p.m.). The T separates the date and the\ntime. The Z indicates UTC.\n" + }, + "status": { + "type": "string", + "description": "Possible values:\n- SUCCESS\n- FAILURE\n- PARTIAL\n- PENDING" + }, + "reason": { + "type": "string", + "description": "Possible values:\n- DEPENDENT_PRODUCT_NOT_CONTRACTED\n- DEPENDENT_FEATURE_NOT_CHOSEN\n- MISSING_DATA\n- INVALID_DATA\n- DUPLICATE_FIELD" + }, + "details": { + "type": "array", + "items": { + "type": "object", + "properties": { + "field": { + "type": "string" + }, + "reason": { + "type": "string", + "description": "Possible values:\n- MISSING_DATA\n- INVALID_DATA\n- DUPLICATE_FIELD" + } + }, + "additionalProperties": { + "type": "string" + } + } + }, + "message": { + "type": "string" + } + } + } + } } } }, @@ -151507,7 +156027,7 @@ "properties": { "clientVersion": { "type": "string", - "example": "0.25", + "example": "0.32", "maxLength": 60, "description": "Specify the version of Unified Checkout that you want to use." }, @@ -151536,7 +156056,7 @@ "items": { "type": "string" }, - "description": "The payment types that are allowed for the merchant. \n\nPossible values when launching Unified Checkout:\n - APPLEPAY\n - CHECK\n - CLICKTOPAY\n - GOOGLEPAY\n - PANENTRY \n - PAZE

\n\nUnified Checkout supports the following Buy Now, Pay Later (BNPL) payment methods:\n - AFTERPAY

\n\nUnified Checkout supports the following Online Bank Transfer payment methods:\n - Bancontact (BE)\n - DragonPay (PH)\n - iDEAL (NL)\n - Multibanco (PT)\n - MyBank (IT, BE, PT, ES)\n - Przelewy24|P24 (PL)\n - Tink Pay By Bank (GB)\n\nPossible values when launching Click To Pay Drop-In UI:\n- CLICKTOPAY

\n\n**Important:** \n - CLICKTOPAY only available for Visa, Mastercard and AMEX for saved cards.\n - Visa and Mastercard will look to tokenize using network tokenization for all Click to Pay requests. Click to Pay uses Click to Pay token requester IDs and not the merchant's existing token requester.\n - Apple Pay, Google Pay, Check, and Paze can be used independently without requiring PAN entry in the allowedPaymentTypes field.

\n\n**Managing Google Pay Authentication Types**\nWhen you enable Google Pay on Unified Checkout you can specify optional parameters that define the types of card authentication you receive from Google Pay.

\n\n**Managing Google Pay Authentication Types**\nWhere Click to Pay is the payment type selected by the customer and the customer manually enters their card, the option to enroll their card in Click to Pay will be auto-checked if this field is set to \"true\". \n\nThis is only available where the merchant and cardholder are based in the following countries and the billing type is set to \"FULL\" or \"PARTIAL\".\n - UAE\n - Argentina\n - Brazil\n - Chile\n - Colombia\n - Kuwait\n - Mexico\n - Peru\n - Qatar\n - Saudi Arabia\n - Ukraine\n - South Africa

\n\nIf false, this is not present or not supported in the market. Enrollment in Click to Pay is not checked for the customer when completing manual card entry.\n" + "description": "The payment types that are allowed for the merchant. \n\nPossible values when launching Unified Checkout:\n - APPLEPAY\n - CHECK\n - CLICKTOPAY\n - GOOGLEPAY\n - PANENTRY \n - PAZE

\n\nUnified Checkout supports the following Buy Now, Pay Later (BNPL) payment methods:\n - AFTERPAY

\n\nUnified Checkout supports the following Online Bank Transfer payment methods:\n - Bancontact (BE)\n - DragonPay (PH)\n - iDEAL (NL)\n - Multibanco (PT)\n - MyBank (IT, BE, PT, ES)\n - Przelewy24|P24 (PL)\n - Tink Pay By Bank (GB)

\n\n Unified Checkout supports the following Post-Pay Reference payment methods:\n - Konbini (JP)

\n\nPossible values when launching Click To Pay Drop-In UI:\n- CLICKTOPAY

\n\n**Important:** \n - CLICKTOPAY only available for Visa, Mastercard and AMEX for saved cards.\n - Visa and Mastercard will look to tokenize using network tokenization for all Click to Pay requests. Click to Pay uses Click to Pay token requester IDs and not the merchant's existing token requester.\n - Apple Pay, Google Pay, Check, and Paze can be used independently without requiring PAN entry in the allowedPaymentTypes field.

\n\n**Managing Google Pay Authentication Types**\nWhen you enable Google Pay on Unified Checkout you can specify optional parameters that define the types of card authentication you receive from Google Pay.

\n\n**Managing Google Pay Authentication Types**\nWhere Click to Pay is the payment type selected by the customer and the customer manually enters their card, the option to enroll their card in Click to Pay will be auto-checked if this field is set to \"true\". \n\nThis is only available where the merchant and cardholder are based in the following countries and the billing type is set to \"FULL\" or \"PARTIAL\".\n - UAE\n - Argentina\n - Brazil\n - Chile\n - Colombia\n - Kuwait\n - Mexico\n - Peru\n - Qatar\n - Saudi Arabia\n - Ukraine\n - South Africa

\n\nIf false, this is not present or not supported in the market. Enrollment in Click to Pay is not checked for the customer when completing manual card entry.\n" }, "country": { "type": "string", @@ -151549,6 +156069,11 @@ "example": "en_US", "description": "Localization of the User experience conforming to the ISO 639-1 language standards and two-character ISO Standard Country Code.\n\nPlease refer to list of [supported locales through Unified Checkout](https://developer.cybersource.com/docs/cybs/en-us/unified-checkout/developer/all/rest/unified-checkout/uc-appendix-languages.html)\n" }, + "buttonType": { + "type": "string", + "example": null, + "description": "Changes the label on the payment button within Unified Checkout .

\n\nPossible values:\n- ADD_CARD\n- CARD_PAYMENT\n- CHECKOUT\n- CHECKOUT_AND_CONTINUE\n- DEBIT_CREDIT\n- DONATE\n- PAY\n- PAY_WITH_CARD\n- SAVE_CARD\n- SUBSCRIBE_WITH_CARD

\n\nThis is an optional field,\n" + }, "captureMandate": { "type": "object", "properties": { @@ -151705,6 +156230,23 @@ "type": "string", "example": 10, "description": "This field defines the tax amount applicable to the order.\n" + }, + "taxDetails": { + "type": "object", + "properties": { + "taxId": { + "type": "string", + "example": 1234, + "maxLength": 20, + "description": "This field defines the tax identifier/registration number\n" + }, + "type": { + "type": "string", + "example": "N", + "maxLength": 1, + "description": "This field defines the Tax type code (N=National, S=State, L=Local etc)\n" + } + } } } }, @@ -151971,188 +156513,225 @@ "productCode": { "type": "string", "maxLength": 255, - "example": "electronics" + "example": "electronics", + "description": "Code identifying the product." }, "productName": { "type": "string", "maxLength": 255, - "example": "smartphone" + "example": "smartphone", + "description": "Name of the product." }, "productSku": { "type": "string", "maxLength": 255, - "example": "SKU12345" + "example": "SKU12345", + "description": "Stock Keeping Unit identifier" }, "quantity": { "type": "integer", "minimum": 1, "maximum": 999999999, "default": 1, - "example": 2 + "example": 2, + "description": "Quantity of the product" }, "unitPrice": { "type": "string", "maxLength": 15, - "example": "399.99" + "example": "399.99", + "description": "Price per unit" }, "unitOfMeasure": { "type": "string", "maxLength": 12, - "example": "EA" + "example": "EA", + "description": "Unit of measure (e.g. EA, KG, LB)" }, "totalAmount": { "type": "string", "maxLength": 13, - "example": "799.98" + "example": "799.98", + "description": "Total amount for the line item" }, "taxAmount": { "type": "string", "maxLength": 15, - "example": "64.00" + "example": "64.00", + "description": "Tax amount applied" }, "taxRate": { "type": "string", "maxLength": 7, - "example": "0.88" + "example": "0.88", + "description": "Tax rate applied" }, "taxAppliedAfterDiscount": { "type": "string", "maxLength": 1, - "example": "Y" + "example": "Y", + "description": "Indicates if tax applied after discount" }, "taxStatusIndicator": { "type": "string", "maxLength": 1, - "example": "N" + "example": "N", + "description": "Tax status indicator" }, "taxTypeCode": { "type": "string", "maxLength": 4, - "example": "VAT" + "example": "VAT", + "description": "Tax type code" }, "amountIncludesTax": { "type": "boolean", - "example": false + "example": false, + "description": "Indicates if amount includes tax" }, "typeOfSupply": { "type": "string", "maxLength": 2, - "example": "GS" + "example": "GS", + "description": "Type of supply" }, "commodityCode": { "type": "string", "maxLength": 15, - "example": "123456" + "example": "123456", + "description": "Commodity code" }, "discountAmount": { "type": "string", "maxLength": 13, - "example": "10.00" + "example": "10.00", + "description": "Discount amount applied" }, "discountApplied": { "type": "boolean", - "example": true + "example": true, + "description": "Indicates if discount applied" }, "discountRate": { "type": "string", "maxLength": 6, - "example": "0.05" + "example": "0.05", + "description": "Discount rate applied" }, "invoiceNumber": { "type": "string", "maxLength": 23, - "example": "INV-001" + "example": "INV-001", + "description": "Invoice number for the line item" }, "taxDetails": { "type": "object", "properties": { "type": { "type": "string", - "example": "VAT" + "example": "VAT", + "description": "Type of tax" }, "amount": { "type": "string", "maxLength": 13, - "example": 5.99 + "example": 5.99, + "description": "Tax amount" }, "rate": { "type": "string", "maxLength": 6, - "example": 20 + "example": 20, + "description": "Tax rate" }, "code": { "type": "string", "maxLength": 4, - "example": "VAT" + "example": "VAT", + "description": "Tax code" }, "taxId": { "type": "string", "maxLength": 15, - "example": "TAXID12345" + "example": "TAXID12345", + "description": "Tax Identifier" }, "applied": { "type": "boolean", - "example": true + "example": true, + "description": "Indicates if tax applied" }, "exemptionCode": { "type": "string", "maxLength": 1, - "example": "E" + "example": "E", + "description": "Tax exemption code" } } }, "fulfillmentType": { "type": "string", - "example": "Delivery" + "example": "Delivery", + "description": "Fulfillment type" }, "weight": { "type": "string", "maxLength": 9, - "example": "1.5" + "example": "1.5", + "description": "Weight of the product" }, "weightIdentifier": { "type": "string", "maxLength": 1, - "example": "N" + "example": "N", + "description": "Weight identifier" }, "weightUnit": { "type": "string", "maxLength": 2, - "example": "KG" + "example": "KG", + "description": "Unit of weight of the product" }, "referenceDataCode": { "type": "string", "maxLength": 150, - "example": "REFCODE" + "example": "REFCODE", + "description": "Reference data code" }, "referenceDataNumber": { "type": "string", "maxLength": 30, - "example": "REF123" + "example": "REF123", + "description": "Reference data number" }, "unitTaxAmount": { "type": "string", "maxLength": 15, - "example": "3.20" + "example": "3.20", + "description": "Unit tax amount" }, "productDescription": { "type": "string", "maxLength": 30, - "example": "Latest model smartphone" + "example": "Latest model smartphone", + "description": "Description of the product" }, "giftCardCurrency": { "type": "string", "maxLength": 3, - "example": "USD" + "example": "USD", + "description": "Gift card currency" }, "shippingDestinationTypes": { "type": "string", "maxLength": 50, - "example": "Residential" + "example": "Residential", + "description": "Shipping destination types" }, "gift": { "type": "boolean", - "example": false + "example": false, + "description": "Indicates if item is a gift" }, "passenger": { "type": "object", @@ -152160,46 +156739,71 @@ "type": { "type": "string", "maxLength": 50, - "example": "Residential" + "example": "Residential", + "description": "Passenger type" }, "status": { "type": "string", "maxLength": 32, - "example": "Gold" + "example": "Gold", + "description": "Passenger status" }, "phone": { "type": "string", "maxLength": 15, - "example": "123456789" + "example": "123456789", + "description": "Passenger phone number" }, "firstName": { "type": "string", "maxLength": 60, - "example": "John" + "example": "John", + "description": "Passenger first name" }, "lastName": { "type": "string", "maxLength": 60, - "example": "Doe" + "example": "Doe", + "description": "Passenger last name" }, "id": { "type": "string", "maxLength": 40, - "example": "AIR1234567" + "example": "AIR1234567", + "description": "Passenger ID" }, "email": { "type": "string", "maxLength": 50, - "example": "john.doe@example.com" + "example": "john.doe@example.com", + "description": "Passenger email" }, "nationality": { "type": "string", "maxLength": 2, - "example": "US" + "example": "US", + "description": "Passenger nationality" } } } } + }, + "invoiceDetails": { + "type": "object", + "properties": { + "invoiceNumber": { + "type": "string", + "maxLength": 255, + "example": "electronics", + "description": "Invoice number" + }, + "productDescription": { + "type": "string", + "maxLength": 255, + "example": "electronics", + "description": "Product description" + } + } } } }, @@ -152211,21 +156815,35 @@ "properties": { "cpf": { "type": "string", - "minLength": 11, "maxLength": 11, - "example": "12345678900" + "example": "12345678900", + "description": "CPF Number (Brazil). Must be 11 digits in length.\n" } } }, "merchantCustomerId": { "type": "string", "maxLength": 100, - "example": "M123456767" + "example": "M123456767", + "description": "The Merchant Customer ID\n" }, "companyTaxId": { "type": "string", "maxLength": 9, - "example": "" + "example": "", + "description": "The Company Tax ID\n" + }, + "dateOfBirth": { + "type": "string", + "maxLength": 10, + "example": "12/03/1976", + "description": "The date of birth\n" + }, + "language": { + "type": "string", + "maxLength": 10, + "example": "English", + "description": "The preferred language\n" } } }, @@ -152245,7 +156863,7 @@ "maxLength": 8, "example": "DEV12345" }, - "SolutionId": { + "solutionId": { "type": "string", "maxLength": 8, "example": "SOL1234" @@ -152260,12 +156878,20 @@ "challengeCode": { "type": "string", "maxLength": 2, - "example": "01" + "example": "01", + "description": "The challenge code\n" }, "messageCategory": { "type": "string", "maxLength": 2, - "example": "01" + "example": "01", + "description": "The message category\n" + }, + "acsWindowSize": { + "type": "string", + "maxLength": 2, + "example": "01", + "description": "The acs window size\n" } } }, @@ -152277,9 +156903,51 @@ "properties": { "name": { "type": "string", - "maxLength": 22, + "maxLength": 25, "example": "Euro Electronics", "description": "The name of the merchant" + }, + "alternateName": { + "type": "string", + "maxLength": 25, + "example": "Smyth Holdings PLC", + "description": "The alternate name of the merchant" + }, + "locality": { + "type": "string", + "maxLength": 50, + "example": "New York", + "description": "The locality of the merchant" + }, + "phone": { + "type": "string", + "maxLength": 15, + "example": "555-555-123", + "description": "The phone number of the merchant" + }, + "country": { + "type": "string", + "maxLength": 2, + "example": "US", + "description": "The country code of the merchant" + }, + "postalCode": { + "type": "string", + "maxLength": 10, + "example": "170056", + "description": "The postal code of the merchant" + }, + "administrativeArea": { + "type": "string", + "maxLength": 2, + "example": "NY", + "description": "The administrative area of the merchant" + }, + "address1": { + "type": "string", + "maxLength": 60, + "example": "123 47th Street", + "description": "The first line of the merchant's address" } } } @@ -152291,28 +156959,46 @@ "reconciliationId": { "type": "string", "maxLength": 60, - "example": "01234567" + "example": "01234567", + "description": "The reconciliation ID" }, "authorizationOptions": { "type": "object", "properties": { "aftIndicator": { "type": "boolean", - "example": true + "example": true, + "description": "The AFT indicator" + }, + "authIndicator": { + "type": "string", + "example": 1, + "description": "The authorization indicator" + }, + "ignoreCvResult": { + "type": "boolean", + "example": true, + "description": "Ignore the CV result" + }, + "ignoreAvsResult": { + "type": "boolean", + "example": true, + "description": "Ignore the AVS result" }, "initiator": { "type": "object", "properties": { "credentialStoredOnFile": { "type": "boolean", - "example": true + "example": true, + "description": "Store the credential on file" }, "merchantInitiatedTransaction": { "type": "object", "properties": { "reason": { "type": "string", - "maxLength": 1, + "maxLength": 2, "example": 1 } } @@ -152322,7 +157008,20 @@ "businessApplicationId": { "type": "string", "maxLength": 2, - "example": "AA" + "example": "AA", + "description": "The business application Id" + }, + "commerceIndicator": { + "type": "string", + "maxLength": 20, + "example": "INDICATOR", + "description": "The commerce indicator" + }, + "processingInstruction": { + "type": "string", + "maxLength": 50, + "example": "ORDER_SAVED_EXPLICITLY", + "description": "The processing instruction" } } } @@ -152361,14 +157060,26 @@ "administrativeArea": { "type": "string", "maxLength": 2, - "example": "Devon", + "example": "GB", "description": "The administrative area of the recipient" }, "accountType": { "type": "string", "maxLength": 2, - "example": "Checking", + "example": "01", "description": "The account type of the recipient" + }, + "dateOfBirth": { + "type": "string", + "maxLength": 8, + "example": "05111999", + "description": "The date of birth of the recipient" + }, + "postalCode": { + "type": "string", + "maxLength": 10, + "example": "170056", + "description": "The postal code of the recipient" } } }, @@ -152377,20 +157088,50 @@ "properties": { "key": { "type": "string", - "maxLength": 50, + "maxLength": 10, + "example": "1", "description": "The key or identifier for the merchant-defined data field" }, "value": { "type": "string", - "maxLength": 255, + "maxLength": 100, + "example": "123456", "description": "The value associated with the merchant-defined data field" } } + }, + "deviceInformation": { + "type": "object", + "properties": { + "ipAddress": { + "type": "string", + "maxLength": 45, + "example": "192.168.1.1", + "description": "The IP Address" + } + } + }, + "paymentInformation": { + "type": "object", + "properties": { + "card": { + "type": "object", + "properties": { + "typeSelectionIndicator": { + "type": "string", + "maxLength": 1, + "example": "0", + "description": "The card type selection indicator" + } + } + } + } } } }, "orderInformation": { "type": "object", + "description": "If you need to include any fields within the data object, you must use the orderInformation object that is nested inside the data object. This ensures proper structure and compliance with the Unified Checkout schema. This top-level orderInformation field is not intended for use when working with the data object.", "properties": { "amountDetails": { "type": "object", @@ -152674,7 +157415,7 @@ "example0": { "summary": "Generate Unified Checkout Capture Context", "value": { - "clientVersion": "0.31", + "clientVersion": "0.32", "targetOrigins": [ "https://yourCheckoutPage.com" ], @@ -152709,10 +157450,12 @@ "decisionManager": true, "consumerAuthentication": true }, - "orderInformation": { - "amountDetails": { - "totalAmount": "21.00", - "currency": "USD" + "data": { + "orderInformation": { + "amountDetails": { + "totalAmount": "21.00", + "currency": "USD" + } } } } @@ -152720,7 +157463,7 @@ "example1": { "summary": "Generate Unified Checkout Capture Context With Full List of Card Networks", "value": { - "clientVersion": "0.31", + "clientVersion": "0.32", "targetOrigins": [ "https://yourCheckoutPage.com" ], @@ -152784,7 +157527,7 @@ "example2": { "summary": "Generate Unified Checkout Capture Context With Custom Google Payment Options", "value": { - "clientVersion": "0.31", + "clientVersion": "0.32", "targetOrigins": [ "https://yourCheckoutPage.com" ], @@ -152840,7 +157583,7 @@ "example3": { "summary": "Generate Unified Checkout Capture Context With Autocheck Enrollment", "value": { - "clientVersion": "0.31", + "clientVersion": "0.32", "targetOrigins": [ "https://yourCheckoutPage.com" ], @@ -152890,7 +157633,7 @@ "example4": { "summary": "Generate Unified Checkout Capture Context (Opt-out of receiving card number prefix)", "value": { - "clientVersion": "0.31", + "clientVersion": "0.32", "targetOrigins": [ "https://yourCheckoutPage.com" ], @@ -152941,7 +157684,7 @@ "example5": { "summary": "Generate Unified Checkout Capture Context passing Billing & Shipping", "value": { - "clientVersion": "0.31", + "clientVersion": "0.32", "targetOrigins": [ "https://yourCheckoutPage.com" ], @@ -153036,7 +157779,7 @@ "example6": { "summary": "Generate Unified Checkout Capture Context For Click To Pay Drop-In UI", "value": { - "clientVersion": "0.31", + "clientVersion": "0.32", "targetOrigins": [ "https://yourCheckoutPage.com" ], @@ -153074,7 +157817,7 @@ "example7": { "summary": "Generate Unified Checkout Capture Context ($ Afterpay (US))", "value": { - "clientVersion": "0.31", + "clientVersion": "0.32", "targetOrigins": [ "https://yourCheckoutPage.com" ], @@ -153145,7 +157888,7 @@ "example8": { "summary": "Generate Unified Checkout Capture Context (Afterpay (CAN))", "value": { - "clientVersion": "0.31", + "clientVersion": "0.32", "targetOrigins": [ "https://yourCheckoutPage.com" ], @@ -153216,7 +157959,7 @@ "example9": { "summary": "Generate Unified Checkout Capture Context (Clearpay (GB))", "value": { - "clientVersion": "0.31", + "clientVersion": "0.32", "targetOrigins": [ "https://yourCheckoutPage.com" ], @@ -153289,7 +158032,7 @@ "example10": { "summary": "Generate Unified Checkout Capture Context (Afterpay (AU))", "value": { - "clientVersion": "0.31", + "clientVersion": "0.32", "targetOrigins": [ "https://yourCheckoutPage.com" ], @@ -153360,7 +158103,7 @@ "example11": { "summary": "Generate Unified Checkout Capture Context (Afterpay (NZ))", "value": { - "clientVersion": "0.31", + "clientVersion": "0.32", "targetOrigins": [ "https://yourCheckoutPage.com" ], @@ -153429,9 +158172,153 @@ "parentTag": "Unified Checkout with Alternate Payments (Buy Now, Pay Later)" }, "example12": { + "summary": "Generate Unified Checkout Capture Context (Bancontact (BE))", + "value": { + "clientVersion": "0.32", + "targetOrigins": [ + "https://yourCheckoutPage.com" + ], + "allowedCardNetworks": [ + "VISA", + "MASTERCARD", + "AMEX" + ], + "allowedPaymentTypes": [ + "APPLEPAY", + "CHECK", + "CLICKTOPAY", + "GOOGLEPAY", + "PANENTRY", + "PAZE", + "BANCONTACT" + ], + "country": "BE", + "locale": "fr_BE", + "captureMandate": { + "billingType": "FULL", + "requestEmail": true, + "requestPhone": true, + "requestShipping": true, + "shipToCountries": [ + "BE", + "NL", + "FR" + ], + "showAcceptedNetworkIcons": true + }, + "completeMandate": { + "type": "PREFER_AUTH", + "decisionManager": true, + "consumerAuthentication": true + }, + "data": { + "orderInformation": { + "amountDetails": { + "totalAmount": "21.00", + "currency": "EUR" + }, + "billTo": { + "email": "jean.dupont@example.com", + "firstName": "Jean", + "lastName": "Dupont", + "address1": "Avenue Louise 123", + "administrativeArea": "Brussels", + "buildingNumber": 123, + "country": "BE", + "locality": "Brussels", + "postalCode": "1050" + }, + "shipTo": { + "firstName": "Marie", + "lastName": "Dupont", + "address1": "Rue de la Loi 200", + "administrativeArea": "Brussels", + "buildingNumber": 200, + "country": "BE", + "locality": "Brussels", + "postalCode": "1040" + } + } + } + }, + "parentTag": "Unified Checkout with Alternate Payments (Online Bank Transfer)" + }, + "example13": { + "summary": "Generate Unified Checkout Capture Context (DragonPay (PH))", + "value": { + "clientVersion": "0.32", + "targetOrigins": [ + "https://yourCheckoutPage.com" + ], + "allowedCardNetworks": [ + "VISA", + "MASTERCARD", + "AMEX" + ], + "allowedPaymentTypes": [ + "APPLEPAY", + "CHECK", + "CLICKTOPAY", + "GOOGLEPAY", + "PANENTRY", + "PAZE", + "DRAGONPAY" + ], + "country": "PH", + "locale": "en-PH", + "captureMandate": { + "billingType": "FULL", + "requestEmail": true, + "requestPhone": true, + "requestShipping": true, + "shipToCountries": [ + "PH", + "SG", + "MY" + ], + "showAcceptedNetworkIcons": true + }, + "completeMandate": { + "type": "PREFER_AUTH", + "decisionManager": true, + "consumerAuthentication": true + }, + "data": { + "orderInformation": { + "amountDetails": { + "totalAmount": "121.00", + "currency": "PHP" + }, + "billTo": { + "email": "juan.dela.cruz@example.com", + "firstName": "Juan", + "lastName": "Dela Cruz", + "address1": "123 Ayala Avenue", + "administrativeArea": "NCR", + "buildingNumber": 123, + "country": "PH", + "locality": "Makati City", + "postalCode": "1226" + }, + "shipTo": { + "firstName": "Maria", + "lastName": "Dela Cruz", + "address1": "45 Ortigas Center", + "administrativeArea": "NCR", + "buildingNumber": 45, + "country": "PH", + "locality": "Pasig City", + "postalCode": "1605" + } + } + } + }, + "parentTag": "Unified Checkout with Alternate Payments (Online Bank Transfer)" + }, + "example14": { "summary": "Generate Unified Checkout Capture Context (iDEAL (NL))", "value": { - "clientVersion": "0.31", + "clientVersion": "0.32", "targetOrigins": [ "https://yourCheckoutPage.com" ], @@ -153499,10 +158386,10 @@ }, "parentTag": "Unified Checkout with Alternate Payments (Online Bank Transfer)" }, - "example13": { + "example15": { "summary": "Generate Unified Checkout Capture Context (Multibanco (PT))", "value": { - "clientVersion": "0.31", + "clientVersion": "0.32", "targetOrigins": [ "https://yourCheckoutPage.com" ], @@ -153571,10 +158458,83 @@ }, "parentTag": "Unified Checkout with Alternate Payments (Online Bank Transfer)" }, - "example14": { + "example16": { + "summary": "Generate Unified Checkout Capture Context (MyBank (IT))", + "value": { + "clientVersion": "0.32", + "targetOrigins": [ + "https://yourCheckoutPage.com" + ], + "allowedCardNetworks": [ + "VISA", + "MASTERCARD", + "AMEX" + ], + "allowedPaymentTypes": [ + "APPLEPAY", + "CHECK", + "CLICKTOPAY", + "GOOGLEPAY", + "PANENTRY", + "PAZE", + "MYBBT" + ], + "country": "IT", + "locale": "it-IT", + "captureMandate": { + "billingType": "FULL", + "requestEmail": true, + "requestPhone": true, + "requestShipping": true, + "shipToCountries": [ + "IT", + "ES", + "BE", + "PT" + ], + "showAcceptedNetworkIcons": true + }, + "completeMandate": { + "type": "PREFER_AUTH", + "decisionManager": true, + "consumerAuthentication": true + }, + "data": { + "orderInformation": { + "amountDetails": { + "totalAmount": "21.00", + "currency": "EUR" + }, + "billTo": { + "email": "mario.rossi@example.com", + "firstName": "Mario", + "lastName": "Rossi", + "address1": "Via Dante Alighieri 15", + "administrativeArea": "MI", + "buildingNumber": 15, + "country": "IT", + "locality": "Milano", + "postalCode": "20121" + }, + "shipTo": { + "firstName": "Lucia", + "lastName": "Rossi", + "address1": "Corso Vittorio Emanuele II 8", + "administrativeArea": "RM", + "buildingNumber": 8, + "country": "IT", + "locality": "Roma", + "postalCode": "00186" + } + } + } + }, + "parentTag": "Unified Checkout with Alternate Payments (Online Bank Transfer)" + }, + "example17": { "summary": "Generate Unified Checkout Capture Context (Przelewy24|P24 (PL))", "value": { - "clientVersion": "0.31", + "clientVersion": "0.32", "targetOrigins": [ "https://yourCheckoutPage.com" ], @@ -153643,10 +158603,10 @@ }, "parentTag": "Unified Checkout with Alternate Payments (Online Bank Transfer)" }, - "example15": { + "example18": { "summary": "Generate Unified Checkout Capture Context (Tink Pay By Bank (GB))", "value": { - "clientVersion": "0.31", + "clientVersion": "0.32", "targetOrigins": [ "https://yourCheckoutPage.com" ], @@ -153712,6 +158672,78 @@ } }, "parentTag": "Unified Checkout with Alternate Payments (Online Bank Transfer)" + }, + "example19": { + "summary": "Generate Unified Checkout Capture Context (Konbini (JP))", + "value": { + "clientVersion": "0.32", + "targetOrigins": [ + "https://yourCheckoutPage.com" + ], + "allowedCardNetworks": [ + "VISA", + "MASTERCARD", + "AMEX" + ], + "allowedPaymentTypes": [ + "APPLEPAY", + "CHECK", + "CLICKTOPAY", + "GOOGLEPAY", + "PANENTRY", + "PAZE", + "KONBINI" + ], + "country": "JP", + "locale": "ja-JP", + "captureMandate": { + "billingType": "FULL", + "requestEmail": true, + "requestPhone": true, + "requestShipping": true, + "shipToCountries": [ + "JP", + "US" + ], + "showAcceptedNetworkIcons": true + }, + "completeMandate": { + "type": "PREFER_AUTH", + "decisionManager": true, + "consumerAuthentication": true + }, + "data": { + "orderInformation": { + "amountDetails": { + "totalAmount": "21.00", + "currency": "JPY" + }, + "billTo": { + "email": "taro.suzuki@example.jp", + "firstName": "Taro", + "lastName": "Suzuki", + "address1": "1-9-1 Marunouchi", + "administrativeArea": "Tokyo", + "buildingNumber": 1, + "country": "JP", + "locality": "Chiyoda-ku", + "postalCode": "100-0005", + "phoneNumber": "0312345678" + }, + "shipTo": { + "firstName": "Hanako", + "lastName": "Suzuki", + "address1": "3-1-1 Umeda", + "administrativeArea": "Osaka", + "buildingNumber": 3, + "country": "JP", + "locality": "Kita-ku", + "postalCode": "530-0001" + } + } + } + }, + "parentTag": "Unified Checkout with Alternate Payments (Post-Pay Reference)" } }, "responses": { @@ -155215,7 +160247,7 @@ "authorizationType": [ "Json Web Token" ], - "overrideMerchantCredential": "echecktestdevcenter001", + "overrideMerchantCredential": "apiref_chase", "SDK_ONLY_AddDisclaimer": true }, "consumes": [ diff --git a/generator/cybersource-ruby-template/api.mustache b/generator/cybersource-ruby-template/api.mustache index 22cbcf90..6464087b 100644 --- a/generator/cybersource-ruby-template/api.mustache +++ b/generator/cybersource-ruby-template/api.mustache @@ -182,7 +182,11 @@ module {{moduleName}} {{/bodyParam}} inbound_mle_status = "{{#vendorExtensions.x-devcenter-metaData.mleForRequest}}{{vendorExtensions.x-devcenter-metaData.mleForRequest}}{{/vendorExtensions.x-devcenter-metaData.mleForRequest}}{{^vendorExtensions.x-devcenter-metaData.mleForRequest}}false{{/vendorExtensions.x-devcenter-metaData.mleForRequest}}" if MLEUtility.check_is_mle_for_API(@api_client.merchantconfig, inbound_mle_status, ["{{operationId}}","{{operationId}}_with_http_info"]) - post_body = MLEUtility.encrypt_request_payload(@api_client.merchantconfig, post_body) + begin + post_body = MLEUtility.encrypt_request_payload(@api_client.merchantconfig, post_body) + rescue + raise + end end auth_names = [{{#authMethods}}'{{name}}'{{#hasMore}}, {{/hasMore}}{{/authMethods}}] data, status_code, headers = @api_client.call_api(:{{httpMethod}}, local_var_path, diff --git a/lib/cybersource_rest_client.rb b/lib/cybersource_rest_client.rb index 1ec76e88..da172b2d 100644 --- a/lib/cybersource_rest_client.rb +++ b/lib/cybersource_rest_client.rb @@ -187,6 +187,7 @@ require 'cybersource_rest_client/models/get_all_plans_response_plan_information_billing_period' require 'cybersource_rest_client/models/get_all_plans_response_plans' require 'cybersource_rest_client/models/get_all_subscriptions_response' +require 'cybersource_rest_client/models/get_all_subscriptions_response_client_reference_information' require 'cybersource_rest_client/models/get_all_subscriptions_response__links' require 'cybersource_rest_client/models/get_all_subscriptions_response_order_information' require 'cybersource_rest_client/models/get_all_subscriptions_response_order_information_bill_to' @@ -213,45 +214,49 @@ require 'cybersource_rest_client/models/inline_response_200' require 'cybersource_rest_client/models/inline_response_200_1' require 'cybersource_rest_client/models/inline_response_200_10' -require 'cybersource_rest_client/models/inline_response_200_10__embedded' -require 'cybersource_rest_client/models/inline_response_200_10__embedded_batches' -require 'cybersource_rest_client/models/inline_response_200_10__embedded__links' -require 'cybersource_rest_client/models/inline_response_200_10__embedded__links_reports' -require 'cybersource_rest_client/models/inline_response_200_10__embedded_totals' -require 'cybersource_rest_client/models/inline_response_200_10__links' +require 'cybersource_rest_client/models/inline_response_200_10_devices' +require 'cybersource_rest_client/models/inline_response_200_10_payment_processor_to_terminal_map' require 'cybersource_rest_client/models/inline_response_200_11' -require 'cybersource_rest_client/models/inline_response_200_11_billing' +require 'cybersource_rest_client/models/inline_response_200_11__embedded' +require 'cybersource_rest_client/models/inline_response_200_11__embedded_batches' +require 'cybersource_rest_client/models/inline_response_200_11__embedded__links' +require 'cybersource_rest_client/models/inline_response_200_11__embedded__links_reports' +require 'cybersource_rest_client/models/inline_response_200_11__embedded_totals' require 'cybersource_rest_client/models/inline_response_200_11__links' -require 'cybersource_rest_client/models/inline_response_200_11__links_report' require 'cybersource_rest_client/models/inline_response_200_12' -require 'cybersource_rest_client/models/inline_response_200_12_records' -require 'cybersource_rest_client/models/inline_response_200_12_response_record' -require 'cybersource_rest_client/models/inline_response_200_12_response_record_additional_updates' -require 'cybersource_rest_client/models/inline_response_200_12_source_record' +require 'cybersource_rest_client/models/inline_response_200_12_billing' +require 'cybersource_rest_client/models/inline_response_200_12__links' +require 'cybersource_rest_client/models/inline_response_200_12__links_report' require 'cybersource_rest_client/models/inline_response_200_13' +require 'cybersource_rest_client/models/inline_response_200_13_records' +require 'cybersource_rest_client/models/inline_response_200_13_response_record' +require 'cybersource_rest_client/models/inline_response_200_13_response_record_additional_updates' +require 'cybersource_rest_client/models/inline_response_200_13_source_record' require 'cybersource_rest_client/models/inline_response_200_14' -require 'cybersource_rest_client/models/inline_response_200_14_client_reference_information' -require 'cybersource_rest_client/models/inline_response_200_1__embedded' -require 'cybersource_rest_client/models/inline_response_200_1__embedded_capture' -require 'cybersource_rest_client/models/inline_response_200_1__embedded_capture__links' -require 'cybersource_rest_client/models/inline_response_200_1__embedded_capture__links_self' -require 'cybersource_rest_client/models/inline_response_200_1__embedded_reversal' -require 'cybersource_rest_client/models/inline_response_200_1__embedded_reversal__links' -require 'cybersource_rest_client/models/inline_response_200_1__embedded_reversal__links_self' +require 'cybersource_rest_client/models/inline_response_200_15' +require 'cybersource_rest_client/models/inline_response_200_15_client_reference_information' +require 'cybersource_rest_client/models/inline_response_200_1_content' require 'cybersource_rest_client/models/inline_response_200_2' +require 'cybersource_rest_client/models/inline_response_200_2__embedded' +require 'cybersource_rest_client/models/inline_response_200_2__embedded_capture' +require 'cybersource_rest_client/models/inline_response_200_2__embedded_capture__links' +require 'cybersource_rest_client/models/inline_response_200_2__embedded_capture__links_self' +require 'cybersource_rest_client/models/inline_response_200_2__embedded_reversal' +require 'cybersource_rest_client/models/inline_response_200_2__embedded_reversal__links' +require 'cybersource_rest_client/models/inline_response_200_2__embedded_reversal__links_self' require 'cybersource_rest_client/models/inline_response_200_3' -require 'cybersource_rest_client/models/inline_response_200_3_integration_information' -require 'cybersource_rest_client/models/inline_response_200_3_integration_information_tenant_configurations' require 'cybersource_rest_client/models/inline_response_200_4' +require 'cybersource_rest_client/models/inline_response_200_4_integration_information' +require 'cybersource_rest_client/models/inline_response_200_4_integration_information_tenant_configurations' require 'cybersource_rest_client/models/inline_response_200_5' require 'cybersource_rest_client/models/inline_response_200_6' require 'cybersource_rest_client/models/inline_response_200_7' -require 'cybersource_rest_client/models/inline_response_200_7_devices' require 'cybersource_rest_client/models/inline_response_200_8' +require 'cybersource_rest_client/models/inline_response_200_8_devices' require 'cybersource_rest_client/models/inline_response_200_9' -require 'cybersource_rest_client/models/inline_response_200_9_devices' -require 'cybersource_rest_client/models/inline_response_200_9_payment_processor_to_terminal_map' -require 'cybersource_rest_client/models/inline_response_200_content' +require 'cybersource_rest_client/models/inline_response_200_details' +require 'cybersource_rest_client/models/inline_response_200_errors' +require 'cybersource_rest_client/models/inline_response_200_responses' require 'cybersource_rest_client/models/inline_response_201' require 'cybersource_rest_client/models/inline_response_201_1' require 'cybersource_rest_client/models/inline_response_201_2' @@ -543,9 +548,11 @@ require 'cybersource_rest_client/models/post_device_search_request_v3' require 'cybersource_rest_client/models/post_instrument_identifier_enrollment_request' require 'cybersource_rest_client/models/post_instrument_identifier_request' +require 'cybersource_rest_client/models/post_issuer_life_cycle_simulation_request' require 'cybersource_rest_client/models/post_payment_credentials_request' require 'cybersource_rest_client/models/post_payment_instrument_request' require 'cybersource_rest_client/models/post_registration_body' +require 'cybersource_rest_client/models/post_tokenize_request' require 'cybersource_rest_client/models/predefined_subscription_request_bean' require 'cybersource_rest_client/models/pts_v1_transaction_batches_get200_response' require 'cybersource_rest_client/models/pts_v1_transaction_batches_get200_response__links' @@ -1100,7 +1107,6 @@ require 'cybersource_rest_client/models/push_funds404_response' require 'cybersource_rest_client/models/push_funds502_response' require 'cybersource_rest_client/models/push_funds_request' -require 'cybersource_rest_client/models/rbsv1plans_client_reference_information' require 'cybersource_rest_client/models/rbsv1plans_order_information' require 'cybersource_rest_client/models/rbsv1plans_order_information_amount_details' require 'cybersource_rest_client/models/rbsv1plans_plan_information' @@ -1108,8 +1114,6 @@ require 'cybersource_rest_client/models/rbsv1plansid_plan_information' require 'cybersource_rest_client/models/rbsv1plansid_processing_information' require 'cybersource_rest_client/models/rbsv1plansid_processing_information_subscription_billing_options' -require 'cybersource_rest_client/models/rbsv1subscriptions_client_reference_information' -require 'cybersource_rest_client/models/rbsv1subscriptions_client_reference_information_partner' require 'cybersource_rest_client/models/rbsv1subscriptions_payment_information' require 'cybersource_rest_client/models/rbsv1subscriptions_payment_information_customer' require 'cybersource_rest_client/models/rbsv1subscriptions_plan_information' @@ -1350,6 +1354,8 @@ require 'cybersource_rest_client/models/tms_embedded_instrument_identifier_point_of_sale_information' require 'cybersource_rest_client/models/tms_embedded_instrument_identifier_point_of_sale_information_emv_tags' require 'cybersource_rest_client/models/tms_embedded_instrument_identifier_processing_information' +require 'cybersource_rest_client/models/tms_merchant_information' +require 'cybersource_rest_client/models/tms_merchant_information_merchant_descriptor' require 'cybersource_rest_client/models/tms_network_token_services' require 'cybersource_rest_client/models/tms_network_token_services_american_express_token_service' require 'cybersource_rest_client/models/tms_network_token_services_mastercard_digital_enablement_service' @@ -1370,39 +1376,44 @@ require 'cybersource_rest_client/models/tmsv2_tokenized_card_metadata' require 'cybersource_rest_client/models/tmsv2_tokenized_card_metadata_issuer' require 'cybersource_rest_client/models/tmsv2_tokenized_card_passcode' -require 'cybersource_rest_client/models/tmsv2customers_buyer_information' -require 'cybersource_rest_client/models/tmsv2customers_client_reference_information' -require 'cybersource_rest_client/models/tmsv2customers_default_payment_instrument' -require 'cybersource_rest_client/models/tmsv2customers_default_shipping_address' -require 'cybersource_rest_client/models/tmsv2customers__embedded' -require 'cybersource_rest_client/models/tmsv2customers__embedded_default_payment_instrument' -require 'cybersource_rest_client/models/tmsv2customers__embedded_default_payment_instrument_bank_account' -require 'cybersource_rest_client/models/tmsv2customers__embedded_default_payment_instrument_bill_to' -require 'cybersource_rest_client/models/tmsv2customers__embedded_default_payment_instrument_buyer_information' -require 'cybersource_rest_client/models/tmsv2customers__embedded_default_payment_instrument_buyer_information_issued_by' -require 'cybersource_rest_client/models/tmsv2customers__embedded_default_payment_instrument_buyer_information_personal_identification' -require 'cybersource_rest_client/models/tmsv2customers__embedded_default_payment_instrument_card' -require 'cybersource_rest_client/models/tmsv2customers__embedded_default_payment_instrument_card_tokenized_information' -require 'cybersource_rest_client/models/tmsv2customers__embedded_default_payment_instrument__embedded' -require 'cybersource_rest_client/models/tmsv2customers__embedded_default_payment_instrument_instrument_identifier' -require 'cybersource_rest_client/models/tmsv2customers__embedded_default_payment_instrument__links' -require 'cybersource_rest_client/models/tmsv2customers__embedded_default_payment_instrument__links_self' -require 'cybersource_rest_client/models/tmsv2customers__embedded_default_payment_instrument_merchant_information' -require 'cybersource_rest_client/models/tmsv2customers__embedded_default_payment_instrument_merchant_information_merchant_descriptor' -require 'cybersource_rest_client/models/tmsv2customers__embedded_default_payment_instrument_metadata' -require 'cybersource_rest_client/models/tmsv2customers__embedded_default_shipping_address' -require 'cybersource_rest_client/models/tmsv2customers__embedded_default_shipping_address__links' -require 'cybersource_rest_client/models/tmsv2customers__embedded_default_shipping_address__links_customer' -require 'cybersource_rest_client/models/tmsv2customers__embedded_default_shipping_address__links_self' -require 'cybersource_rest_client/models/tmsv2customers__embedded_default_shipping_address_metadata' -require 'cybersource_rest_client/models/tmsv2customers__embedded_default_shipping_address_ship_to' -require 'cybersource_rest_client/models/tmsv2customers__links' -require 'cybersource_rest_client/models/tmsv2customers__links_payment_instruments' -require 'cybersource_rest_client/models/tmsv2customers__links_self' -require 'cybersource_rest_client/models/tmsv2customers__links_shipping_address' -require 'cybersource_rest_client/models/tmsv2customers_merchant_defined_information' -require 'cybersource_rest_client/models/tmsv2customers_metadata' -require 'cybersource_rest_client/models/tmsv2customers_object_information' +require 'cybersource_rest_client/models/tmsv2tokenize_processing_information' +require 'cybersource_rest_client/models/tmsv2tokenize_token_information' +require 'cybersource_rest_client/models/tmsv2tokenize_token_information_customer' +require 'cybersource_rest_client/models/tmsv2tokenize_token_information_customer_buyer_information' +require 'cybersource_rest_client/models/tmsv2tokenize_token_information_customer_client_reference_information' +require 'cybersource_rest_client/models/tmsv2tokenize_token_information_customer_default_payment_instrument' +require 'cybersource_rest_client/models/tmsv2tokenize_token_information_customer_default_shipping_address' +require 'cybersource_rest_client/models/tmsv2tokenize_token_information_customer__embedded' +require 'cybersource_rest_client/models/tmsv2tokenize_token_information_customer__embedded_default_payment_instrument' +require 'cybersource_rest_client/models/tmsv2tokenize_token_information_customer__embedded_default_payment_instrument_bank_account' +require 'cybersource_rest_client/models/tmsv2tokenize_token_information_customer__embedded_default_payment_instrument_bill_to' +require 'cybersource_rest_client/models/tmsv2tokenize_token_information_customer__embedded_default_payment_instrument_buyer_information' +require 'cybersource_rest_client/models/tmsv2tokenize_token_information_customer__embedded_default_payment_instrument_buyer_information_issued_by' +require 'cybersource_rest_client/models/tmsv2tokenize_token_information_customer__embedded_default_payment_instrument_buyer_information_personal_identification' +require 'cybersource_rest_client/models/tmsv2tokenize_token_information_customer__embedded_default_payment_instrument_card' +require 'cybersource_rest_client/models/tmsv2tokenize_token_information_customer__embedded_default_payment_instrument_card_tokenized_information' +require 'cybersource_rest_client/models/tmsv2tokenize_token_information_customer__embedded_default_payment_instrument__embedded' +require 'cybersource_rest_client/models/tmsv2tokenize_token_information_customer__embedded_default_payment_instrument_instrument_identifier' +require 'cybersource_rest_client/models/tmsv2tokenize_token_information_customer__embedded_default_payment_instrument__links' +require 'cybersource_rest_client/models/tmsv2tokenize_token_information_customer__embedded_default_payment_instrument__links_self' +require 'cybersource_rest_client/models/tmsv2tokenize_token_information_customer__embedded_default_payment_instrument_metadata' +require 'cybersource_rest_client/models/tmsv2tokenize_token_information_customer__embedded_default_shipping_address' +require 'cybersource_rest_client/models/tmsv2tokenize_token_information_customer__embedded_default_shipping_address__links' +require 'cybersource_rest_client/models/tmsv2tokenize_token_information_customer__embedded_default_shipping_address__links_customer' +require 'cybersource_rest_client/models/tmsv2tokenize_token_information_customer__embedded_default_shipping_address__links_self' +require 'cybersource_rest_client/models/tmsv2tokenize_token_information_customer__embedded_default_shipping_address_metadata' +require 'cybersource_rest_client/models/tmsv2tokenize_token_information_customer__embedded_default_shipping_address_ship_to' +require 'cybersource_rest_client/models/tmsv2tokenize_token_information_customer__links' +require 'cybersource_rest_client/models/tmsv2tokenize_token_information_customer__links_payment_instruments' +require 'cybersource_rest_client/models/tmsv2tokenize_token_information_customer__links_self' +require 'cybersource_rest_client/models/tmsv2tokenize_token_information_customer__links_shipping_address' +require 'cybersource_rest_client/models/tmsv2tokenize_token_information_customer_merchant_defined_information' +require 'cybersource_rest_client/models/tmsv2tokenize_token_information_customer_metadata' +require 'cybersource_rest_client/models/tmsv2tokenize_token_information_customer_object_information' +require 'cybersource_rest_client/models/tmsv2tokenizedcardstokenized_card_idissuerlifecycleeventsimulations_card' +require 'cybersource_rest_client/models/tmsv2tokenizedcardstokenized_card_idissuerlifecycleeventsimulations_metadata' +require 'cybersource_rest_client/models/tmsv2tokenizedcardstokenized_card_idissuerlifecycleeventsimulations_metadata_card_art' +require 'cybersource_rest_client/models/tms_issuerlifecycleeventsimulations_metadata_card_art_combined_asset' require 'cybersource_rest_client/models/tmsv2tokenstoken_idpaymentcredentials_authenticated_identities' require 'cybersource_rest_client/models/tmsv2tokenstoken_idpaymentcredentials_device_information' require 'cybersource_rest_client/models/tmsv2tokenstoken_idpaymentcredentials_merchant_information' @@ -1547,18 +1558,23 @@ require 'cybersource_rest_client/models/upv1capturecontexts_data_client_reference_information' require 'cybersource_rest_client/models/upv1capturecontexts_data_client_reference_information_partner' require 'cybersource_rest_client/models/upv1capturecontexts_data_consumer_authentication_information' +require 'cybersource_rest_client/models/upv1capturecontexts_data_device_information' require 'cybersource_rest_client/models/upv1capturecontexts_data_merchant_defined_information' require 'cybersource_rest_client/models/upv1capturecontexts_data_merchant_information' require 'cybersource_rest_client/models/upv1capturecontexts_data_merchant_information_merchant_descriptor' require 'cybersource_rest_client/models/upv1capturecontexts_data_order_information' require 'cybersource_rest_client/models/upv1capturecontexts_data_order_information_amount_details' require 'cybersource_rest_client/models/upv1capturecontexts_data_order_information_amount_details_surcharge' +require 'cybersource_rest_client/models/upv1capturecontexts_data_order_information_amount_details_tax_details' require 'cybersource_rest_client/models/upv1capturecontexts_data_order_information_bill_to' require 'cybersource_rest_client/models/upv1capturecontexts_data_order_information_bill_to_company' +require 'cybersource_rest_client/models/upv1capturecontexts_data_order_information_invoice_details' require 'cybersource_rest_client/models/upv1capturecontexts_data_order_information_line_items' require 'cybersource_rest_client/models/upv1capturecontexts_data_order_information_line_items_passenger' require 'cybersource_rest_client/models/upv1capturecontexts_data_order_information_line_items_tax_details' require 'cybersource_rest_client/models/upv1capturecontexts_data_order_information_ship_to' +require 'cybersource_rest_client/models/upv1capturecontexts_data_payment_information' +require 'cybersource_rest_client/models/upv1capturecontexts_data_payment_information_card' require 'cybersource_rest_client/models/upv1capturecontexts_data_processing_information' require 'cybersource_rest_client/models/upv1capturecontexts_data_processing_information_authorization_options' require 'cybersource_rest_client/models/upv1capturecontexts_data_processing_information_authorization_options_initiator' @@ -1682,6 +1698,7 @@ require 'cybersource_rest_client/api/subscriptions_follow_ons_api' require 'cybersource_rest_client/api/taxes_api' require 'cybersource_rest_client/api/token_api' +require 'cybersource_rest_client/api/tokenize_api' require 'cybersource_rest_client/api/tokenized_card_api' require 'cybersource_rest_client/api/transaction_batches_api' require 'cybersource_rest_client/api/transaction_details_api' diff --git a/lib/cybersource_rest_client/api/bank_account_validation_api.rb b/lib/cybersource_rest_client/api/bank_account_validation_api.rb index c06b8aab..ecbaf2b2 100644 --- a/lib/cybersource_rest_client/api/bank_account_validation_api.rb +++ b/lib/cybersource_rest_client/api/bank_account_validation_api.rb @@ -24,7 +24,7 @@ def initialize(api_client = ApiClient.default, config) # # @param account_validations_request # @param [Hash] opts the optional parameters - # @return [InlineResponse20013] + # @return [InlineResponse20014] # # DISCLAIMER : Cybersource may allow Customer to access, use, and/or test a Cybersource product or service that may still be in development or has not been market-tested ("Beta Product") solely for the purpose of evaluating the functionality or marketability of the Beta Product (a "Beta Evaluation"). Notwithstanding any language to the contrary, the following terms shall apply with respect to Customer's participation in any Beta Evaluation (and the Beta Product(s)) accessed thereunder): The Parties will enter into a separate form agreement detailing the scope of the Beta Evaluation, requirements, pricing, the length of the beta evaluation period ("Beta Product Form"). Beta Products are not, and may not become, Transaction Services and have not yet been publicly released and are offered for the sole purpose of internal testing and non-commercial evaluation. Customer's use of the Beta Product shall be solely for the purpose of conducting the Beta Evaluation. Customer accepts all risks arising out of the access and use of the Beta Products. Cybersource may, in its sole discretion, at any time, terminate or discontinue the Beta Evaluation. Customer acknowledges and agrees that any Beta Product may still be in development and that Beta Product is provided "AS IS" and may not perform at the level of a commercially available service, may not operate as expected and may be modified prior to release. CYBERSOURCE SHALL NOT BE RESPONSIBLE OR LIABLE UNDER ANY CONTRACT, TORT (INCLUDING NEGLIGENCE), OR OTHERWISE RELATING TO A BETA PRODUCT OR THE BETA EVALUATION (A) FOR LOSS OR INACCURACY OF DATA OR COST OF PROCUREMENT OF SUBSTITUTE GOODS, SERVICES OR TECHNOLOGY, (B) ANY CLAIM, LOSSES, DAMAGES, OR CAUSE OF ACTION ARISING IN CONNECTION WITH THE BETA PRODUCT; OR (C) FOR ANY INDIRECT, INCIDENTAL OR CONSEQUENTIAL DAMAGES INCLUDING, BUT NOT LIMITED TO, LOSS OF REVENUES AND LOSS OF PROFITS. def bank_account_validation_request(account_validations_request, opts = {}) @@ -36,7 +36,7 @@ def bank_account_validation_request(account_validations_request, opts = {}) # The Visa Bank Account Validation Service is a new standalone product designed to validate customer's routing and bank account number combination for ACH transactions. Merchant's can use this standalone product to validate their customer's account prior to processing an ACH transaction against the customer's account to comply with Nacha's account validation mandate for Web-debit transactions. # @param account_validations_request # @param [Hash] opts the optional parameters - # @return [Array<(InlineResponse20013, Fixnum, Hash)>] InlineResponse20013 data, response status code and response headers + # @return [Array<(InlineResponse20014, Fixnum, Hash)>] InlineResponse20014 data, response status code and response headers def bank_account_validation_request_with_http_info(account_validations_request, opts = {}) if @api_client.config.debugging @@ -73,7 +73,11 @@ def bank_account_validation_request_with_http_info(account_validations_request, post_body = sdk_tracker.insert_developer_id_tracker(post_body, 'AccountValidationsRequest', @api_client.config.host, @api_client.merchantconfig.defaultDeveloperId) inbound_mle_status = "mandatory" if MLEUtility.check_is_mle_for_API(@api_client.merchantconfig, inbound_mle_status, ["bank_account_validation_request","bank_account_validation_request_with_http_info"]) - post_body = MLEUtility.encrypt_request_payload(@api_client.merchantconfig, post_body) + begin + post_body = MLEUtility.encrypt_request_payload(@api_client.merchantconfig, post_body) + rescue + raise + end end auth_names = [] data, status_code, headers = @api_client.call_api(:POST, local_var_path, @@ -82,7 +86,7 @@ def bank_account_validation_request_with_http_info(account_validations_request, :form_params => form_params, :body => post_body, :auth_names => auth_names, - :return_type => 'InlineResponse20013') + :return_type => 'InlineResponse20014') if @api_client.config.debugging begin raise diff --git a/lib/cybersource_rest_client/api/batches_api.rb b/lib/cybersource_rest_client/api/batches_api.rb index bab6672e..64a2f8b7 100644 --- a/lib/cybersource_rest_client/api/batches_api.rb +++ b/lib/cybersource_rest_client/api/batches_api.rb @@ -24,7 +24,7 @@ def initialize(api_client = ApiClient.default, config) # # @param batch_id Unique identification number assigned to the submitted request. # @param [Hash] opts the optional parameters - # @return [InlineResponse20012] + # @return [InlineResponse20013] # def get_batch_report(batch_id, opts = {}) data, status_code, headers = get_batch_report_with_http_info(batch_id, opts) @@ -35,7 +35,7 @@ def get_batch_report(batch_id, opts = {}) # **Get Batch Report**<br>This resource accepts a batch id and returns: - The batch status. - The total number of accepted, rejected, updated records. - The total number of card association responses. - The billable quantities of: - New Account Numbers (NAN) - New Expiry Dates (NED) - Account Closures (ACL) - Contact Card Holders (CCH) - Source record information including token ids, masked card number, expiration dates & card type. - Response record information including response code, reason, token ids, masked card number, expiration dates & card type. # @param batch_id Unique identification number assigned to the submitted request. # @param [Hash] opts the optional parameters - # @return [Array<(InlineResponse20012, Fixnum, Hash)>] InlineResponse20012 data, response status code and response headers + # @return [Array<(InlineResponse20013, Fixnum, Hash)>] InlineResponse20013 data, response status code and response headers def get_batch_report_with_http_info(batch_id, opts = {}) if @api_client.config.debugging @@ -78,7 +78,11 @@ def get_batch_report_with_http_info(batch_id, opts = {}) end inbound_mle_status = "false" if MLEUtility.check_is_mle_for_API(@api_client.merchantconfig, inbound_mle_status, ["get_batch_report","get_batch_report_with_http_info"]) - post_body = MLEUtility.encrypt_request_payload(@api_client.merchantconfig, post_body) + begin + post_body = MLEUtility.encrypt_request_payload(@api_client.merchantconfig, post_body) + rescue + raise + end end auth_names = [] data, status_code, headers = @api_client.call_api(:GET, local_var_path, @@ -87,7 +91,7 @@ def get_batch_report_with_http_info(batch_id, opts = {}) :form_params => form_params, :body => post_body, :auth_names => auth_names, - :return_type => 'InlineResponse20012') + :return_type => 'InlineResponse20013') if @api_client.config.debugging begin raise @@ -103,7 +107,7 @@ def get_batch_report_with_http_info(batch_id, opts = {}) # # @param batch_id Unique identification number assigned to the submitted request. # @param [Hash] opts the optional parameters - # @return [InlineResponse20011] + # @return [InlineResponse20012] # def get_batch_status(batch_id, opts = {}) data, status_code, headers = get_batch_status_with_http_info(batch_id, opts) @@ -114,7 +118,7 @@ def get_batch_status(batch_id, opts = {}) # **Get Batch Status**<br>This resource accepts a batch id and returns: - The batch status. - The total number of accepted, rejected, updated records. - The total number of card association responses. - The billable quantities of: - New Account Numbers (NAN) - New Expiry Dates (NED) - Account Closures (ACL) - Contact Card Holders (CCH) # @param batch_id Unique identification number assigned to the submitted request. # @param [Hash] opts the optional parameters - # @return [Array<(InlineResponse20011, Fixnum, Hash)>] InlineResponse20011 data, response status code and response headers + # @return [Array<(InlineResponse20012, Fixnum, Hash)>] InlineResponse20012 data, response status code and response headers def get_batch_status_with_http_info(batch_id, opts = {}) if @api_client.config.debugging @@ -157,7 +161,11 @@ def get_batch_status_with_http_info(batch_id, opts = {}) end inbound_mle_status = "false" if MLEUtility.check_is_mle_for_API(@api_client.merchantconfig, inbound_mle_status, ["get_batch_status","get_batch_status_with_http_info"]) - post_body = MLEUtility.encrypt_request_payload(@api_client.merchantconfig, post_body) + begin + post_body = MLEUtility.encrypt_request_payload(@api_client.merchantconfig, post_body) + rescue + raise + end end auth_names = [] data, status_code, headers = @api_client.call_api(:GET, local_var_path, @@ -166,7 +174,7 @@ def get_batch_status_with_http_info(batch_id, opts = {}) :form_params => form_params, :body => post_body, :auth_names => auth_names, - :return_type => 'InlineResponse20011') + :return_type => 'InlineResponse20012') if @api_client.config.debugging begin raise @@ -185,7 +193,7 @@ def get_batch_status_with_http_info(batch_id, opts = {}) # @option opts [Integer] :limit The maximum number that can be returned in the array starting from the offset record in zero-based dataset. (default to 20) # @option opts [String] :from_date ISO-8601 format: yyyyMMddTHHmmssZ # @option opts [String] :to_date ISO-8601 format: yyyyMMddTHHmmssZ - # @return [InlineResponse20010] + # @return [InlineResponse20011] # def get_batches_list(opts = {}) data, status_code, headers = get_batches_list_with_http_info(opts) @@ -199,7 +207,7 @@ def get_batches_list(opts = {}) # @option opts [Integer] :limit The maximum number that can be returned in the array starting from the offset record in zero-based dataset. # @option opts [String] :from_date ISO-8601 format: yyyyMMddTHHmmssZ # @option opts [String] :to_date ISO-8601 format: yyyyMMddTHHmmssZ - # @return [Array<(InlineResponse20010, Fixnum, Hash)>] InlineResponse20010 data, response status code and response headers + # @return [Array<(InlineResponse20011, Fixnum, Hash)>] InlineResponse20011 data, response status code and response headers def get_batches_list_with_http_info(opts = {}) if @api_client.config.debugging @@ -238,7 +246,11 @@ def get_batches_list_with_http_info(opts = {}) end inbound_mle_status = "false" if MLEUtility.check_is_mle_for_API(@api_client.merchantconfig, inbound_mle_status, ["get_batches_list","get_batches_list_with_http_info"]) - post_body = MLEUtility.encrypt_request_payload(@api_client.merchantconfig, post_body) + begin + post_body = MLEUtility.encrypt_request_payload(@api_client.merchantconfig, post_body) + rescue + raise + end end auth_names = [] data, status_code, headers = @api_client.call_api(:GET, local_var_path, @@ -247,7 +259,7 @@ def get_batches_list_with_http_info(opts = {}) :form_params => form_params, :body => post_body, :auth_names => auth_names, - :return_type => 'InlineResponse20010') + :return_type => 'InlineResponse20011') if @api_client.config.debugging begin raise @@ -311,7 +323,11 @@ def post_batch_with_http_info(body, opts = {}) post_body = sdk_tracker.insert_developer_id_tracker(post_body, 'Body', @api_client.config.host, @api_client.merchantconfig.defaultDeveloperId) inbound_mle_status = "false" if MLEUtility.check_is_mle_for_API(@api_client.merchantconfig, inbound_mle_status, ["post_batch","post_batch_with_http_info"]) - post_body = MLEUtility.encrypt_request_payload(@api_client.merchantconfig, post_body) + begin + post_body = MLEUtility.encrypt_request_payload(@api_client.merchantconfig, post_body) + rescue + raise + end end auth_names = [] data, status_code, headers = @api_client.call_api(:POST, local_var_path, diff --git a/lib/cybersource_rest_client/api/billing_agreements_api.rb b/lib/cybersource_rest_client/api/billing_agreements_api.rb index ec02ea31..46114730 100644 --- a/lib/cybersource_rest_client/api/billing_agreements_api.rb +++ b/lib/cybersource_rest_client/api/billing_agreements_api.rb @@ -78,7 +78,11 @@ def billing_agreements_de_registration_with_http_info(modify_billing_agreement, post_body = sdk_tracker.insert_developer_id_tracker(post_body, 'ModifyBillingAgreement', @api_client.config.host, @api_client.merchantconfig.defaultDeveloperId) inbound_mle_status = "optional" if MLEUtility.check_is_mle_for_API(@api_client.merchantconfig, inbound_mle_status, ["billing_agreements_de_registration","billing_agreements_de_registration_with_http_info"]) - post_body = MLEUtility.encrypt_request_payload(@api_client.merchantconfig, post_body) + begin + post_body = MLEUtility.encrypt_request_payload(@api_client.merchantconfig, post_body) + rescue + raise + end end auth_names = [] data, status_code, headers = @api_client.call_api(:PATCH, local_var_path, @@ -157,7 +161,11 @@ def billing_agreements_intimation_with_http_info(intimate_billing_agreement, id, post_body = sdk_tracker.insert_developer_id_tracker(post_body, 'IntimateBillingAgreement', @api_client.config.host, @api_client.merchantconfig.defaultDeveloperId) inbound_mle_status = "optional" if MLEUtility.check_is_mle_for_API(@api_client.merchantconfig, inbound_mle_status, ["billing_agreements_intimation","billing_agreements_intimation_with_http_info"]) - post_body = MLEUtility.encrypt_request_payload(@api_client.merchantconfig, post_body) + begin + post_body = MLEUtility.encrypt_request_payload(@api_client.merchantconfig, post_body) + rescue + raise + end end auth_names = [] data, status_code, headers = @api_client.call_api(:POST, local_var_path, @@ -230,7 +238,11 @@ def billing_agreements_registration_with_http_info(create_billing_agreement, opt post_body = sdk_tracker.insert_developer_id_tracker(post_body, 'CreateBillingAgreement', @api_client.config.host, @api_client.merchantconfig.defaultDeveloperId) inbound_mle_status = "optional" if MLEUtility.check_is_mle_for_API(@api_client.merchantconfig, inbound_mle_status, ["billing_agreements_registration","billing_agreements_registration_with_http_info"]) - post_body = MLEUtility.encrypt_request_payload(@api_client.merchantconfig, post_body) + begin + post_body = MLEUtility.encrypt_request_payload(@api_client.merchantconfig, post_body) + rescue + raise + end end auth_names = [] data, status_code, headers = @api_client.call_api(:POST, local_var_path, diff --git a/lib/cybersource_rest_client/api/bin_lookup_api.rb b/lib/cybersource_rest_client/api/bin_lookup_api.rb index e4b84b4e..f461594b 100644 --- a/lib/cybersource_rest_client/api/bin_lookup_api.rb +++ b/lib/cybersource_rest_client/api/bin_lookup_api.rb @@ -73,7 +73,11 @@ def get_account_info_with_http_info(create_bin_lookup_request, opts = {}) post_body = sdk_tracker.insert_developer_id_tracker(post_body, 'CreateBinLookupRequest', @api_client.config.host, @api_client.merchantconfig.defaultDeveloperId) inbound_mle_status = "false" if MLEUtility.check_is_mle_for_API(@api_client.merchantconfig, inbound_mle_status, ["get_account_info","get_account_info_with_http_info"]) - post_body = MLEUtility.encrypt_request_payload(@api_client.merchantconfig, post_body) + begin + post_body = MLEUtility.encrypt_request_payload(@api_client.merchantconfig, post_body) + rescue + raise + end end auth_names = [] data, status_code, headers = @api_client.call_api(:POST, local_var_path, diff --git a/lib/cybersource_rest_client/api/capture_api.rb b/lib/cybersource_rest_client/api/capture_api.rb index bbd37bfc..6801d62b 100644 --- a/lib/cybersource_rest_client/api/capture_api.rb +++ b/lib/cybersource_rest_client/api/capture_api.rb @@ -78,7 +78,11 @@ def capture_payment_with_http_info(capture_payment_request, id, opts = {}) post_body = sdk_tracker.insert_developer_id_tracker(post_body, 'CapturePaymentRequest', @api_client.config.host, @api_client.merchantconfig.defaultDeveloperId) inbound_mle_status = "optional" if MLEUtility.check_is_mle_for_API(@api_client.merchantconfig, inbound_mle_status, ["capture_payment","capture_payment_with_http_info"]) - post_body = MLEUtility.encrypt_request_payload(@api_client.merchantconfig, post_body) + begin + post_body = MLEUtility.encrypt_request_payload(@api_client.merchantconfig, post_body) + rescue + raise + end end auth_names = [] data, status_code, headers = @api_client.call_api(:POST, local_var_path, diff --git a/lib/cybersource_rest_client/api/chargeback_details_api.rb b/lib/cybersource_rest_client/api/chargeback_details_api.rb index 49fab4d2..76cb37b5 100644 --- a/lib/cybersource_rest_client/api/chargeback_details_api.rb +++ b/lib/cybersource_rest_client/api/chargeback_details_api.rb @@ -89,7 +89,11 @@ def get_chargeback_details_with_http_info(start_time, end_time, opts = {}) end inbound_mle_status = "false" if MLEUtility.check_is_mle_for_API(@api_client.merchantconfig, inbound_mle_status, ["get_chargeback_details","get_chargeback_details_with_http_info"]) - post_body = MLEUtility.encrypt_request_payload(@api_client.merchantconfig, post_body) + begin + post_body = MLEUtility.encrypt_request_payload(@api_client.merchantconfig, post_body) + rescue + raise + end end auth_names = [] data, status_code, headers = @api_client.call_api(:GET, local_var_path, diff --git a/lib/cybersource_rest_client/api/chargeback_summaries_api.rb b/lib/cybersource_rest_client/api/chargeback_summaries_api.rb index f075de35..fa3fb09d 100644 --- a/lib/cybersource_rest_client/api/chargeback_summaries_api.rb +++ b/lib/cybersource_rest_client/api/chargeback_summaries_api.rb @@ -89,7 +89,11 @@ def get_chargeback_summaries_with_http_info(start_time, end_time, opts = {}) end inbound_mle_status = "false" if MLEUtility.check_is_mle_for_API(@api_client.merchantconfig, inbound_mle_status, ["get_chargeback_summaries","get_chargeback_summaries_with_http_info"]) - post_body = MLEUtility.encrypt_request_payload(@api_client.merchantconfig, post_body) + begin + post_body = MLEUtility.encrypt_request_payload(@api_client.merchantconfig, post_body) + rescue + raise + end end auth_names = [] data, status_code, headers = @api_client.call_api(:GET, local_var_path, diff --git a/lib/cybersource_rest_client/api/conversion_details_api.rb b/lib/cybersource_rest_client/api/conversion_details_api.rb index d898152c..b89ae632 100644 --- a/lib/cybersource_rest_client/api/conversion_details_api.rb +++ b/lib/cybersource_rest_client/api/conversion_details_api.rb @@ -89,7 +89,11 @@ def get_conversion_detail_with_http_info(start_time, end_time, opts = {}) end inbound_mle_status = "false" if MLEUtility.check_is_mle_for_API(@api_client.merchantconfig, inbound_mle_status, ["get_conversion_detail","get_conversion_detail_with_http_info"]) - post_body = MLEUtility.encrypt_request_payload(@api_client.merchantconfig, post_body) + begin + post_body = MLEUtility.encrypt_request_payload(@api_client.merchantconfig, post_body) + rescue + raise + end end auth_names = [] data, status_code, headers = @api_client.call_api(:GET, local_var_path, diff --git a/lib/cybersource_rest_client/api/create_new_webhooks_api.rb b/lib/cybersource_rest_client/api/create_new_webhooks_api.rb index af57bcf3..aec04520 100644 --- a/lib/cybersource_rest_client/api/create_new_webhooks_api.rb +++ b/lib/cybersource_rest_client/api/create_new_webhooks_api.rb @@ -24,7 +24,7 @@ def initialize(api_client = ApiClient.default, config) # # @param organization_id The Organization Identifier. # @param [Hash] opts the optional parameters - # @return [Array] + # @return [Array] # def find_products_to_subscribe(organization_id, opts = {}) data, status_code, headers = find_products_to_subscribe_with_http_info(organization_id, opts) @@ -35,7 +35,7 @@ def find_products_to_subscribe(organization_id, opts = {}) # Retrieve a list of products and event types that your account is eligible for. These products and events are the ones that you may subscribe to in the next step of creating webhooks. # @param organization_id The Organization Identifier. # @param [Hash] opts the optional parameters - # @return [Array<(Array, Fixnum, Hash)>] Array data, response status code and response headers + # @return [Array<(Array, Fixnum, Hash)>] Array data, response status code and response headers def find_products_to_subscribe_with_http_info(organization_id, opts = {}) if @api_client.config.debugging @@ -74,7 +74,11 @@ def find_products_to_subscribe_with_http_info(organization_id, opts = {}) end inbound_mle_status = "false" if MLEUtility.check_is_mle_for_API(@api_client.merchantconfig, inbound_mle_status, ["find_products_to_subscribe","find_products_to_subscribe_with_http_info"]) - post_body = MLEUtility.encrypt_request_payload(@api_client.merchantconfig, post_body) + begin + post_body = MLEUtility.encrypt_request_payload(@api_client.merchantconfig, post_body) + rescue + raise + end end auth_names = [] data, status_code, headers = @api_client.call_api(:GET, local_var_path, @@ -83,7 +87,7 @@ def find_products_to_subscribe_with_http_info(organization_id, opts = {}) :form_params => form_params, :body => post_body, :auth_names => auth_names, - :return_type => 'Array') + :return_type => 'Array') if @api_client.config.debugging begin raise @@ -143,7 +147,11 @@ def notification_subscriptions_v2_webhooks_post_with_http_info(opts = {}) post_body = sdk_tracker.insert_developer_id_tracker(post_body, 'CreateWebhook', @api_client.config.host, @api_client.merchantconfig.defaultDeveloperId) inbound_mle_status = "false" if MLEUtility.check_is_mle_for_API(@api_client.merchantconfig, inbound_mle_status, ["notification_subscriptions_v2_webhooks_post","notification_subscriptions_v2_webhooks_post_with_http_info"]) - post_body = MLEUtility.encrypt_request_payload(@api_client.merchantconfig, post_body) + begin + post_body = MLEUtility.encrypt_request_payload(@api_client.merchantconfig, post_body) + rescue + raise + end end auth_names = [] data, status_code, headers = @api_client.call_api(:POST, local_var_path, @@ -237,7 +245,11 @@ def save_sym_egress_key_with_http_info(v_c_sender_organization_id, v_c_permissio post_body = sdk_tracker.insert_developer_id_tracker(post_body, 'SaveSymEgressKey', @api_client.config.host, @api_client.merchantconfig.defaultDeveloperId) inbound_mle_status = "false" if MLEUtility.check_is_mle_for_API(@api_client.merchantconfig, inbound_mle_status, ["save_sym_egress_key","save_sym_egress_key_with_http_info"]) - post_body = MLEUtility.encrypt_request_payload(@api_client.merchantconfig, post_body) + begin + post_body = MLEUtility.encrypt_request_payload(@api_client.merchantconfig, post_body) + rescue + raise + end end auth_names = [] data, status_code, headers = @api_client.call_api(:POST, local_var_path, diff --git a/lib/cybersource_rest_client/api/credit_api.rb b/lib/cybersource_rest_client/api/credit_api.rb index 18fff96a..30f3576f 100644 --- a/lib/cybersource_rest_client/api/credit_api.rb +++ b/lib/cybersource_rest_client/api/credit_api.rb @@ -72,7 +72,11 @@ def create_credit_with_http_info(create_credit_request, opts = {}) post_body = sdk_tracker.insert_developer_id_tracker(post_body, 'CreateCreditRequest', @api_client.config.host, @api_client.merchantconfig.defaultDeveloperId) inbound_mle_status = "optional" if MLEUtility.check_is_mle_for_API(@api_client.merchantconfig, inbound_mle_status, ["create_credit","create_credit_with_http_info"]) - post_body = MLEUtility.encrypt_request_payload(@api_client.merchantconfig, post_body) + begin + post_body = MLEUtility.encrypt_request_payload(@api_client.merchantconfig, post_body) + rescue + raise + end end auth_names = [] data, status_code, headers = @api_client.call_api(:POST, local_var_path, diff --git a/lib/cybersource_rest_client/api/customer_api.rb b/lib/cybersource_rest_client/api/customer_api.rb index 7821a6e4..1b367168 100644 --- a/lib/cybersource_rest_client/api/customer_api.rb +++ b/lib/cybersource_rest_client/api/customer_api.rb @@ -77,7 +77,11 @@ def delete_customer_with_http_info(customer_id, opts = {}) end inbound_mle_status = "false" if MLEUtility.check_is_mle_for_API(@api_client.merchantconfig, inbound_mle_status, ["delete_customer","delete_customer_with_http_info"]) - post_body = MLEUtility.encrypt_request_payload(@api_client.merchantconfig, post_body) + begin + post_body = MLEUtility.encrypt_request_payload(@api_client.merchantconfig, post_body) + rescue + raise + end end auth_names = [] data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, @@ -154,7 +158,11 @@ def get_customer_with_http_info(customer_id, opts = {}) end inbound_mle_status = "false" if MLEUtility.check_is_mle_for_API(@api_client.merchantconfig, inbound_mle_status, ["get_customer","get_customer_with_http_info"]) - post_body = MLEUtility.encrypt_request_payload(@api_client.merchantconfig, post_body) + begin + post_body = MLEUtility.encrypt_request_payload(@api_client.merchantconfig, post_body) + rescue + raise + end end auth_names = [] data, status_code, headers = @api_client.call_api(:GET, local_var_path, @@ -237,9 +245,13 @@ def patch_customer_with_http_info(customer_id, patch_customer_request, opts = {} post_body = @api_client.object_to_http_body(patch_customer_request) sdk_tracker = SdkTracker.new post_body = sdk_tracker.insert_developer_id_tracker(post_body, 'PatchCustomerRequest', @api_client.config.host, @api_client.merchantconfig.defaultDeveloperId) - inbound_mle_status = "false" + inbound_mle_status = "optional" if MLEUtility.check_is_mle_for_API(@api_client.merchantconfig, inbound_mle_status, ["patch_customer","patch_customer_with_http_info"]) - post_body = MLEUtility.encrypt_request_payload(@api_client.merchantconfig, post_body) + begin + post_body = MLEUtility.encrypt_request_payload(@api_client.merchantconfig, post_body) + rescue + raise + end end auth_names = [] data, status_code, headers = @api_client.call_api(:PATCH, local_var_path, @@ -313,9 +325,13 @@ def post_customer_with_http_info(post_customer_request, opts = {}) post_body = @api_client.object_to_http_body(post_customer_request) sdk_tracker = SdkTracker.new post_body = sdk_tracker.insert_developer_id_tracker(post_body, 'PostCustomerRequest', @api_client.config.host, @api_client.merchantconfig.defaultDeveloperId) - inbound_mle_status = "false" + inbound_mle_status = "optional" if MLEUtility.check_is_mle_for_API(@api_client.merchantconfig, inbound_mle_status, ["post_customer","post_customer_with_http_info"]) - post_body = MLEUtility.encrypt_request_payload(@api_client.merchantconfig, post_body) + begin + post_body = MLEUtility.encrypt_request_payload(@api_client.merchantconfig, post_body) + rescue + raise + end end auth_names = [] data, status_code, headers = @api_client.call_api(:POST, local_var_path, diff --git a/lib/cybersource_rest_client/api/customer_payment_instrument_api.rb b/lib/cybersource_rest_client/api/customer_payment_instrument_api.rb index cb2579d5..ac8df973 100644 --- a/lib/cybersource_rest_client/api/customer_payment_instrument_api.rb +++ b/lib/cybersource_rest_client/api/customer_payment_instrument_api.rb @@ -83,7 +83,11 @@ def delete_customer_payment_instrument_with_http_info(customer_id, payment_instr end inbound_mle_status = "false" if MLEUtility.check_is_mle_for_API(@api_client.merchantconfig, inbound_mle_status, ["delete_customer_payment_instrument","delete_customer_payment_instrument_with_http_info"]) - post_body = MLEUtility.encrypt_request_payload(@api_client.merchantconfig, post_body) + begin + post_body = MLEUtility.encrypt_request_payload(@api_client.merchantconfig, post_body) + rescue + raise + end end auth_names = [] data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, @@ -166,7 +170,11 @@ def get_customer_payment_instrument_with_http_info(customer_id, payment_instrume end inbound_mle_status = "false" if MLEUtility.check_is_mle_for_API(@api_client.merchantconfig, inbound_mle_status, ["get_customer_payment_instrument","get_customer_payment_instrument_with_http_info"]) - post_body = MLEUtility.encrypt_request_payload(@api_client.merchantconfig, post_body) + begin + post_body = MLEUtility.encrypt_request_payload(@api_client.merchantconfig, post_body) + rescue + raise + end end auth_names = [] data, status_code, headers = @api_client.call_api(:GET, local_var_path, @@ -250,7 +258,11 @@ def get_customer_payment_instruments_list_with_http_info(customer_id, opts = {}) end inbound_mle_status = "false" if MLEUtility.check_is_mle_for_API(@api_client.merchantconfig, inbound_mle_status, ["get_customer_payment_instruments_list","get_customer_payment_instruments_list_with_http_info"]) - post_body = MLEUtility.encrypt_request_payload(@api_client.merchantconfig, post_body) + begin + post_body = MLEUtility.encrypt_request_payload(@api_client.merchantconfig, post_body) + rescue + raise + end end auth_names = [] data, status_code, headers = @api_client.call_api(:GET, local_var_path, @@ -339,9 +351,13 @@ def patch_customers_payment_instrument_with_http_info(customer_id, payment_instr post_body = @api_client.object_to_http_body(patch_customer_payment_instrument_request) sdk_tracker = SdkTracker.new post_body = sdk_tracker.insert_developer_id_tracker(post_body, 'PatchCustomerPaymentInstrumentRequest', @api_client.config.host, @api_client.merchantconfig.defaultDeveloperId) - inbound_mle_status = "false" + inbound_mle_status = "optional" if MLEUtility.check_is_mle_for_API(@api_client.merchantconfig, inbound_mle_status, ["patch_customers_payment_instrument","patch_customers_payment_instrument_with_http_info"]) - post_body = MLEUtility.encrypt_request_payload(@api_client.merchantconfig, post_body) + begin + post_body = MLEUtility.encrypt_request_payload(@api_client.merchantconfig, post_body) + rescue + raise + end end auth_names = [] data, status_code, headers = @api_client.call_api(:PATCH, local_var_path, @@ -421,9 +437,13 @@ def post_customer_payment_instrument_with_http_info(customer_id, post_customer_p post_body = @api_client.object_to_http_body(post_customer_payment_instrument_request) sdk_tracker = SdkTracker.new post_body = sdk_tracker.insert_developer_id_tracker(post_body, 'PostCustomerPaymentInstrumentRequest', @api_client.config.host, @api_client.merchantconfig.defaultDeveloperId) - inbound_mle_status = "false" + inbound_mle_status = "optional" if MLEUtility.check_is_mle_for_API(@api_client.merchantconfig, inbound_mle_status, ["post_customer_payment_instrument","post_customer_payment_instrument_with_http_info"]) - post_body = MLEUtility.encrypt_request_payload(@api_client.merchantconfig, post_body) + begin + post_body = MLEUtility.encrypt_request_payload(@api_client.merchantconfig, post_body) + rescue + raise + end end auth_names = [] data, status_code, headers = @api_client.call_api(:POST, local_var_path, diff --git a/lib/cybersource_rest_client/api/customer_shipping_address_api.rb b/lib/cybersource_rest_client/api/customer_shipping_address_api.rb index 027a5cf6..471a6e54 100644 --- a/lib/cybersource_rest_client/api/customer_shipping_address_api.rb +++ b/lib/cybersource_rest_client/api/customer_shipping_address_api.rb @@ -83,7 +83,11 @@ def delete_customer_shipping_address_with_http_info(customer_id, shipping_addres end inbound_mle_status = "false" if MLEUtility.check_is_mle_for_API(@api_client.merchantconfig, inbound_mle_status, ["delete_customer_shipping_address","delete_customer_shipping_address_with_http_info"]) - post_body = MLEUtility.encrypt_request_payload(@api_client.merchantconfig, post_body) + begin + post_body = MLEUtility.encrypt_request_payload(@api_client.merchantconfig, post_body) + rescue + raise + end end auth_names = [] data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, @@ -166,7 +170,11 @@ def get_customer_shipping_address_with_http_info(customer_id, shipping_address_i end inbound_mle_status = "false" if MLEUtility.check_is_mle_for_API(@api_client.merchantconfig, inbound_mle_status, ["get_customer_shipping_address","get_customer_shipping_address_with_http_info"]) - post_body = MLEUtility.encrypt_request_payload(@api_client.merchantconfig, post_body) + begin + post_body = MLEUtility.encrypt_request_payload(@api_client.merchantconfig, post_body) + rescue + raise + end end auth_names = [] data, status_code, headers = @api_client.call_api(:GET, local_var_path, @@ -250,7 +258,11 @@ def get_customer_shipping_addresses_list_with_http_info(customer_id, opts = {}) end inbound_mle_status = "false" if MLEUtility.check_is_mle_for_API(@api_client.merchantconfig, inbound_mle_status, ["get_customer_shipping_addresses_list","get_customer_shipping_addresses_list_with_http_info"]) - post_body = MLEUtility.encrypt_request_payload(@api_client.merchantconfig, post_body) + begin + post_body = MLEUtility.encrypt_request_payload(@api_client.merchantconfig, post_body) + rescue + raise + end end auth_names = [] data, status_code, headers = @api_client.call_api(:GET, local_var_path, @@ -339,9 +351,13 @@ def patch_customers_shipping_address_with_http_info(customer_id, shipping_addres post_body = @api_client.object_to_http_body(patch_customer_shipping_address_request) sdk_tracker = SdkTracker.new post_body = sdk_tracker.insert_developer_id_tracker(post_body, 'PatchCustomerShippingAddressRequest', @api_client.config.host, @api_client.merchantconfig.defaultDeveloperId) - inbound_mle_status = "false" + inbound_mle_status = "optional" if MLEUtility.check_is_mle_for_API(@api_client.merchantconfig, inbound_mle_status, ["patch_customers_shipping_address","patch_customers_shipping_address_with_http_info"]) - post_body = MLEUtility.encrypt_request_payload(@api_client.merchantconfig, post_body) + begin + post_body = MLEUtility.encrypt_request_payload(@api_client.merchantconfig, post_body) + rescue + raise + end end auth_names = [] data, status_code, headers = @api_client.call_api(:PATCH, local_var_path, @@ -421,9 +437,13 @@ def post_customer_shipping_address_with_http_info(customer_id, post_customer_shi post_body = @api_client.object_to_http_body(post_customer_shipping_address_request) sdk_tracker = SdkTracker.new post_body = sdk_tracker.insert_developer_id_tracker(post_body, 'PostCustomerShippingAddressRequest', @api_client.config.host, @api_client.merchantconfig.defaultDeveloperId) - inbound_mle_status = "false" + inbound_mle_status = "optional" if MLEUtility.check_is_mle_for_API(@api_client.merchantconfig, inbound_mle_status, ["post_customer_shipping_address","post_customer_shipping_address_with_http_info"]) - post_body = MLEUtility.encrypt_request_payload(@api_client.merchantconfig, post_body) + begin + post_body = MLEUtility.encrypt_request_payload(@api_client.merchantconfig, post_body) + rescue + raise + end end auth_names = [] data, status_code, headers = @api_client.call_api(:POST, local_var_path, diff --git a/lib/cybersource_rest_client/api/decision_manager_api.rb b/lib/cybersource_rest_client/api/decision_manager_api.rb index 3813aa88..4b656e06 100644 --- a/lib/cybersource_rest_client/api/decision_manager_api.rb +++ b/lib/cybersource_rest_client/api/decision_manager_api.rb @@ -25,7 +25,7 @@ def initialize(api_client = ApiClient.default, config) # @param id An unique identification number generated by Cybersource to identify the submitted request. # @param case_management_actions_request # @param [Hash] opts the optional parameters - # @return [InlineResponse2001] + # @return [InlineResponse2002] # def action_decision_manager_case(id, case_management_actions_request, opts = {}) data, status_code, headers = action_decision_manager_case_with_http_info(id, case_management_actions_request, opts) @@ -37,7 +37,7 @@ def action_decision_manager_case(id, case_management_actions_request, opts = {}) # @param id An unique identification number generated by Cybersource to identify the submitted request. # @param case_management_actions_request # @param [Hash] opts the optional parameters - # @return [Array<(InlineResponse2001, Fixnum, Hash)>] InlineResponse2001 data, response status code and response headers + # @return [Array<(InlineResponse2002, Fixnum, Hash)>] InlineResponse2002 data, response status code and response headers def action_decision_manager_case_with_http_info(id, case_management_actions_request, opts = {}) if @api_client.config.debugging @@ -78,7 +78,11 @@ def action_decision_manager_case_with_http_info(id, case_management_actions_requ post_body = sdk_tracker.insert_developer_id_tracker(post_body, 'CaseManagementActionsRequest', @api_client.config.host, @api_client.merchantconfig.defaultDeveloperId) inbound_mle_status = "false" if MLEUtility.check_is_mle_for_API(@api_client.merchantconfig, inbound_mle_status, ["action_decision_manager_case","action_decision_manager_case_with_http_info"]) - post_body = MLEUtility.encrypt_request_payload(@api_client.merchantconfig, post_body) + begin + post_body = MLEUtility.encrypt_request_payload(@api_client.merchantconfig, post_body) + rescue + raise + end end auth_names = [] data, status_code, headers = @api_client.call_api(:POST, local_var_path, @@ -87,7 +91,7 @@ def action_decision_manager_case_with_http_info(id, case_management_actions_requ :form_params => form_params, :body => post_body, :auth_names => auth_names, - :return_type => 'InlineResponse2001') + :return_type => 'InlineResponse2002') if @api_client.config.debugging begin raise @@ -157,7 +161,11 @@ def add_negative_with_http_info(type, add_negative_list_request, opts = {}) post_body = sdk_tracker.insert_developer_id_tracker(post_body, 'AddNegativeListRequest', @api_client.config.host, @api_client.merchantconfig.defaultDeveloperId) inbound_mle_status = "false" if MLEUtility.check_is_mle_for_API(@api_client.merchantconfig, inbound_mle_status, ["add_negative","add_negative_with_http_info"]) - post_body = MLEUtility.encrypt_request_payload(@api_client.merchantconfig, post_body) + begin + post_body = MLEUtility.encrypt_request_payload(@api_client.merchantconfig, post_body) + rescue + raise + end end auth_names = [] data, status_code, headers = @api_client.call_api(:POST, local_var_path, @@ -236,7 +244,11 @@ def comment_decision_manager_case_with_http_info(id, case_management_comments_re post_body = sdk_tracker.insert_developer_id_tracker(post_body, 'CaseManagementCommentsRequest', @api_client.config.host, @api_client.merchantconfig.defaultDeveloperId) inbound_mle_status = "false" if MLEUtility.check_is_mle_for_API(@api_client.merchantconfig, inbound_mle_status, ["comment_decision_manager_case","comment_decision_manager_case_with_http_info"]) - post_body = MLEUtility.encrypt_request_payload(@api_client.merchantconfig, post_body) + begin + post_body = MLEUtility.encrypt_request_payload(@api_client.merchantconfig, post_body) + rescue + raise + end end auth_names = [] data, status_code, headers = @api_client.call_api(:POST, local_var_path, @@ -309,7 +321,11 @@ def create_bundled_decision_manager_case_with_http_info(create_bundled_decision_ post_body = sdk_tracker.insert_developer_id_tracker(post_body, 'CreateBundledDecisionManagerCaseRequest', @api_client.config.host, @api_client.merchantconfig.defaultDeveloperId) inbound_mle_status = "false" if MLEUtility.check_is_mle_for_API(@api_client.merchantconfig, inbound_mle_status, ["create_bundled_decision_manager_case","create_bundled_decision_manager_case_with_http_info"]) - post_body = MLEUtility.encrypt_request_payload(@api_client.merchantconfig, post_body) + begin + post_body = MLEUtility.encrypt_request_payload(@api_client.merchantconfig, post_body) + rescue + raise + end end auth_names = [] data, status_code, headers = @api_client.call_api(:POST, local_var_path, @@ -388,7 +404,11 @@ def fraud_update_with_http_info(id, fraud_marking_action_request, opts = {}) post_body = sdk_tracker.insert_developer_id_tracker(post_body, 'FraudMarkingActionRequest', @api_client.config.host, @api_client.merchantconfig.defaultDeveloperId) inbound_mle_status = "false" if MLEUtility.check_is_mle_for_API(@api_client.merchantconfig, inbound_mle_status, ["fraud_update","fraud_update_with_http_info"]) - post_body = MLEUtility.encrypt_request_payload(@api_client.merchantconfig, post_body) + begin + post_body = MLEUtility.encrypt_request_payload(@api_client.merchantconfig, post_body) + rescue + raise + end end auth_names = [] data, status_code, headers = @api_client.call_api(:POST, local_var_path, diff --git a/lib/cybersource_rest_client/api/device_de_association_api.rb b/lib/cybersource_rest_client/api/device_de_association_api.rb index c0624c38..21cd2288 100644 --- a/lib/cybersource_rest_client/api/device_de_association_api.rb +++ b/lib/cybersource_rest_client/api/device_de_association_api.rb @@ -72,7 +72,11 @@ def delete_terminal_association_with_http_info(de_association_request_body, opts post_body = sdk_tracker.insert_developer_id_tracker(post_body, 'DeAssociationRequestBody', @api_client.config.host, @api_client.merchantconfig.defaultDeveloperId) inbound_mle_status = "false" if MLEUtility.check_is_mle_for_API(@api_client.merchantconfig, inbound_mle_status, ["delete_terminal_association","delete_terminal_association_with_http_info"]) - post_body = MLEUtility.encrypt_request_payload(@api_client.merchantconfig, post_body) + begin + post_body = MLEUtility.encrypt_request_payload(@api_client.merchantconfig, post_body) + rescue + raise + end end auth_names = [] data, status_code, headers = @api_client.call_api(:PATCH, local_var_path, @@ -96,7 +100,7 @@ def delete_terminal_association_with_http_info(de_association_request_body, opts # # @param device_de_associate_v3_request deviceId that has to be de-associated to the destination organizationId. # @param [Hash] opts the optional parameters - # @return [Array] + # @return [Array] # def post_de_associate_v3_terminal(device_de_associate_v3_request, opts = {}) data, status_code, headers = post_de_associate_v3_terminal_with_http_info(device_de_associate_v3_request, opts) @@ -107,7 +111,7 @@ def post_de_associate_v3_terminal(device_de_associate_v3_request, opts = {}) # A device will be de-associated from its current organization and moved up in the hierarchy. The device's new position will be determined by a specified destination, either an account or a portfolio. If no destination is provided, the device will default to the currently logged-in user. # @param device_de_associate_v3_request deviceId that has to be de-associated to the destination organizationId. # @param [Hash] opts the optional parameters - # @return [Array<(Array, Fixnum, Hash)>] Array data, response status code and response headers + # @return [Array<(Array, Fixnum, Hash)>] Array data, response status code and response headers def post_de_associate_v3_terminal_with_http_info(device_de_associate_v3_request, opts = {}) if @api_client.config.debugging @@ -144,7 +148,11 @@ def post_de_associate_v3_terminal_with_http_info(device_de_associate_v3_request, post_body = sdk_tracker.insert_developer_id_tracker(post_body, 'Array<DeviceDeAssociateV3Request>', @api_client.config.host, @api_client.merchantconfig.defaultDeveloperId) inbound_mle_status = "false" if MLEUtility.check_is_mle_for_API(@api_client.merchantconfig, inbound_mle_status, ["post_de_associate_v3_terminal","post_de_associate_v3_terminal_with_http_info"]) - post_body = MLEUtility.encrypt_request_payload(@api_client.merchantconfig, post_body) + begin + post_body = MLEUtility.encrypt_request_payload(@api_client.merchantconfig, post_body) + rescue + raise + end end auth_names = [] data, status_code, headers = @api_client.call_api(:POST, local_var_path, @@ -153,7 +161,7 @@ def post_de_associate_v3_terminal_with_http_info(device_de_associate_v3_request, :form_params => form_params, :body => post_body, :auth_names => auth_names, - :return_type => 'Array') + :return_type => 'Array') if @api_client.config.debugging begin raise diff --git a/lib/cybersource_rest_client/api/device_search_api.rb b/lib/cybersource_rest_client/api/device_search_api.rb index dc45be9d..9dc7f5d3 100644 --- a/lib/cybersource_rest_client/api/device_search_api.rb +++ b/lib/cybersource_rest_client/api/device_search_api.rb @@ -24,7 +24,7 @@ def initialize(api_client = ApiClient.default, config) # # @param post_device_search_request # @param [Hash] opts the optional parameters - # @return [InlineResponse2007] + # @return [InlineResponse2008] # def post_search_query(post_device_search_request, opts = {}) data, status_code, headers = post_search_query_with_http_info(post_device_search_request, opts) @@ -35,7 +35,7 @@ def post_search_query(post_device_search_request, opts = {}) # Retrieves list of terminals in paginated format. # @param post_device_search_request # @param [Hash] opts the optional parameters - # @return [Array<(InlineResponse2007, Fixnum, Hash)>] InlineResponse2007 data, response status code and response headers + # @return [Array<(InlineResponse2008, Fixnum, Hash)>] InlineResponse2008 data, response status code and response headers def post_search_query_with_http_info(post_device_search_request, opts = {}) if @api_client.config.debugging @@ -72,7 +72,11 @@ def post_search_query_with_http_info(post_device_search_request, opts = {}) post_body = sdk_tracker.insert_developer_id_tracker(post_body, 'PostDeviceSearchRequest', @api_client.config.host, @api_client.merchantconfig.defaultDeveloperId) inbound_mle_status = "false" if MLEUtility.check_is_mle_for_API(@api_client.merchantconfig, inbound_mle_status, ["post_search_query","post_search_query_with_http_info"]) - post_body = MLEUtility.encrypt_request_payload(@api_client.merchantconfig, post_body) + begin + post_body = MLEUtility.encrypt_request_payload(@api_client.merchantconfig, post_body) + rescue + raise + end end auth_names = [] data, status_code, headers = @api_client.call_api(:POST, local_var_path, @@ -81,7 +85,7 @@ def post_search_query_with_http_info(post_device_search_request, opts = {}) :form_params => form_params, :body => post_body, :auth_names => auth_names, - :return_type => 'InlineResponse2007') + :return_type => 'InlineResponse2008') if @api_client.config.debugging begin raise @@ -97,7 +101,7 @@ def post_search_query_with_http_info(post_device_search_request, opts = {}) # # @param post_device_search_request_v3 # @param [Hash] opts the optional parameters - # @return [InlineResponse2009] + # @return [InlineResponse20010] # def post_search_query_v3(post_device_search_request_v3, opts = {}) data, status_code, headers = post_search_query_v3_with_http_info(post_device_search_request_v3, opts) @@ -108,7 +112,7 @@ def post_search_query_v3(post_device_search_request_v3, opts = {}) # Search for devices matching a given search query. The search query supports serialNumber, readerId, terminalId, status, statusChangeReason or organizationId Matching results are paginated. # @param post_device_search_request_v3 # @param [Hash] opts the optional parameters - # @return [Array<(InlineResponse2009, Fixnum, Hash)>] InlineResponse2009 data, response status code and response headers + # @return [Array<(InlineResponse20010, Fixnum, Hash)>] InlineResponse20010 data, response status code and response headers def post_search_query_v3_with_http_info(post_device_search_request_v3, opts = {}) if @api_client.config.debugging @@ -145,7 +149,11 @@ def post_search_query_v3_with_http_info(post_device_search_request_v3, opts = {} post_body = sdk_tracker.insert_developer_id_tracker(post_body, 'PostDeviceSearchRequestV3', @api_client.config.host, @api_client.merchantconfig.defaultDeveloperId) inbound_mle_status = "false" if MLEUtility.check_is_mle_for_API(@api_client.merchantconfig, inbound_mle_status, ["post_search_query_v3","post_search_query_v3_with_http_info"]) - post_body = MLEUtility.encrypt_request_payload(@api_client.merchantconfig, post_body) + begin + post_body = MLEUtility.encrypt_request_payload(@api_client.merchantconfig, post_body) + rescue + raise + end end auth_names = [] data, status_code, headers = @api_client.call_api(:POST, local_var_path, @@ -154,7 +162,7 @@ def post_search_query_v3_with_http_info(post_device_search_request_v3, opts = {} :form_params => form_params, :body => post_body, :auth_names => auth_names, - :return_type => 'InlineResponse2009') + :return_type => 'InlineResponse20010') if @api_client.config.debugging begin raise diff --git a/lib/cybersource_rest_client/api/download_dtd_api.rb b/lib/cybersource_rest_client/api/download_dtd_api.rb index aee5d7c8..611a5d07 100644 --- a/lib/cybersource_rest_client/api/download_dtd_api.rb +++ b/lib/cybersource_rest_client/api/download_dtd_api.rb @@ -74,7 +74,11 @@ def get_dtdv2_with_http_info(report_definition_name_version, opts = {}) end inbound_mle_status = "false" if MLEUtility.check_is_mle_for_API(@api_client.merchantconfig, inbound_mle_status, ["get_dtdv2","get_dtdv2_with_http_info"]) - post_body = MLEUtility.encrypt_request_payload(@api_client.merchantconfig, post_body) + begin + post_body = MLEUtility.encrypt_request_payload(@api_client.merchantconfig, post_body) + rescue + raise + end end auth_names = [] data, status_code, headers = @api_client.call_api(:GET, local_var_path, diff --git a/lib/cybersource_rest_client/api/download_xsd_api.rb b/lib/cybersource_rest_client/api/download_xsd_api.rb index 26fd592a..7b8c90f9 100644 --- a/lib/cybersource_rest_client/api/download_xsd_api.rb +++ b/lib/cybersource_rest_client/api/download_xsd_api.rb @@ -74,7 +74,11 @@ def get_xsdv2_with_http_info(report_definition_name_version, opts = {}) end inbound_mle_status = "false" if MLEUtility.check_is_mle_for_API(@api_client.merchantconfig, inbound_mle_status, ["get_xsdv2","get_xsdv2_with_http_info"]) - post_body = MLEUtility.encrypt_request_payload(@api_client.merchantconfig, post_body) + begin + post_body = MLEUtility.encrypt_request_payload(@api_client.merchantconfig, post_body) + rescue + raise + end end auth_names = [] data, status_code, headers = @api_client.call_api(:GET, local_var_path, diff --git a/lib/cybersource_rest_client/api/emv_tag_details_api.rb b/lib/cybersource_rest_client/api/emv_tag_details_api.rb index cd6a71b0..91608a8a 100644 --- a/lib/cybersource_rest_client/api/emv_tag_details_api.rb +++ b/lib/cybersource_rest_client/api/emv_tag_details_api.rb @@ -68,7 +68,11 @@ def get_emv_tags_with_http_info(opts = {}) end inbound_mle_status = "false" if MLEUtility.check_is_mle_for_API(@api_client.merchantconfig, inbound_mle_status, ["get_emv_tags","get_emv_tags_with_http_info"]) - post_body = MLEUtility.encrypt_request_payload(@api_client.merchantconfig, post_body) + begin + post_body = MLEUtility.encrypt_request_payload(@api_client.merchantconfig, post_body) + rescue + raise + end end auth_names = [] data, status_code, headers = @api_client.call_api(:GET, local_var_path, @@ -141,7 +145,11 @@ def parse_emv_tags_with_http_info(body, opts = {}) post_body = sdk_tracker.insert_developer_id_tracker(post_body, 'Body', @api_client.config.host, @api_client.merchantconfig.defaultDeveloperId) inbound_mle_status = "false" if MLEUtility.check_is_mle_for_API(@api_client.merchantconfig, inbound_mle_status, ["parse_emv_tags","parse_emv_tags_with_http_info"]) - post_body = MLEUtility.encrypt_request_payload(@api_client.merchantconfig, post_body) + begin + post_body = MLEUtility.encrypt_request_payload(@api_client.merchantconfig, post_body) + rescue + raise + end end auth_names = [] data, status_code, headers = @api_client.call_api(:POST, local_var_path, diff --git a/lib/cybersource_rest_client/api/flex_api_api.rb b/lib/cybersource_rest_client/api/flex_api_api.rb index 989ca674..313015c2 100644 --- a/lib/cybersource_rest_client/api/flex_api_api.rb +++ b/lib/cybersource_rest_client/api/flex_api_api.rb @@ -72,7 +72,11 @@ def generate_flex_api_capture_context_with_http_info(generate_flex_api_capture_c post_body = sdk_tracker.insert_developer_id_tracker(post_body, 'GenerateFlexAPICaptureContextRequest', @api_client.config.host, @api_client.merchantconfig.defaultDeveloperId) inbound_mle_status = "false" if MLEUtility.check_is_mle_for_API(@api_client.merchantconfig, inbound_mle_status, ["generate_flex_api_capture_context","generate_flex_api_capture_context_with_http_info"]) - post_body = MLEUtility.encrypt_request_payload(@api_client.merchantconfig, post_body) + begin + post_body = MLEUtility.encrypt_request_payload(@api_client.merchantconfig, post_body) + rescue + raise + end end auth_names = [] data, status_code, headers = @api_client.call_api(:POST, local_var_path, diff --git a/lib/cybersource_rest_client/api/instrument_identifier_api.rb b/lib/cybersource_rest_client/api/instrument_identifier_api.rb index 761ba03c..94dfb350 100644 --- a/lib/cybersource_rest_client/api/instrument_identifier_api.rb +++ b/lib/cybersource_rest_client/api/instrument_identifier_api.rb @@ -77,7 +77,11 @@ def delete_instrument_identifier_with_http_info(instrument_identifier_id, opts = end inbound_mle_status = "false" if MLEUtility.check_is_mle_for_API(@api_client.merchantconfig, inbound_mle_status, ["delete_instrument_identifier","delete_instrument_identifier_with_http_info"]) - post_body = MLEUtility.encrypt_request_payload(@api_client.merchantconfig, post_body) + begin + post_body = MLEUtility.encrypt_request_payload(@api_client.merchantconfig, post_body) + rescue + raise + end end auth_names = [] data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, @@ -157,7 +161,11 @@ def get_instrument_identifier_with_http_info(instrument_identifier_id, opts = {} end inbound_mle_status = "false" if MLEUtility.check_is_mle_for_API(@api_client.merchantconfig, inbound_mle_status, ["get_instrument_identifier","get_instrument_identifier_with_http_info"]) - post_body = MLEUtility.encrypt_request_payload(@api_client.merchantconfig, post_body) + begin + post_body = MLEUtility.encrypt_request_payload(@api_client.merchantconfig, post_body) + rescue + raise + end end auth_names = [] data, status_code, headers = @api_client.call_api(:GET, local_var_path, @@ -244,7 +252,11 @@ def get_instrument_identifier_payment_instruments_list_with_http_info(instrument end inbound_mle_status = "false" if MLEUtility.check_is_mle_for_API(@api_client.merchantconfig, inbound_mle_status, ["get_instrument_identifier_payment_instruments_list","get_instrument_identifier_payment_instruments_list_with_http_info"]) - post_body = MLEUtility.encrypt_request_payload(@api_client.merchantconfig, post_body) + begin + post_body = MLEUtility.encrypt_request_payload(@api_client.merchantconfig, post_body) + rescue + raise + end end auth_names = [] data, status_code, headers = @api_client.call_api(:GET, local_var_path, @@ -330,9 +342,13 @@ def patch_instrument_identifier_with_http_info(instrument_identifier_id, patch_i post_body = @api_client.object_to_http_body(patch_instrument_identifier_request) sdk_tracker = SdkTracker.new post_body = sdk_tracker.insert_developer_id_tracker(post_body, 'PatchInstrumentIdentifierRequest', @api_client.config.host, @api_client.merchantconfig.defaultDeveloperId) - inbound_mle_status = "false" + inbound_mle_status = "optional" if MLEUtility.check_is_mle_for_API(@api_client.merchantconfig, inbound_mle_status, ["patch_instrument_identifier","patch_instrument_identifier_with_http_info"]) - post_body = MLEUtility.encrypt_request_payload(@api_client.merchantconfig, post_body) + begin + post_body = MLEUtility.encrypt_request_payload(@api_client.merchantconfig, post_body) + rescue + raise + end end auth_names = [] data, status_code, headers = @api_client.call_api(:PATCH, local_var_path, @@ -409,9 +425,13 @@ def post_instrument_identifier_with_http_info(post_instrument_identifier_request post_body = @api_client.object_to_http_body(post_instrument_identifier_request) sdk_tracker = SdkTracker.new post_body = sdk_tracker.insert_developer_id_tracker(post_body, 'PostInstrumentIdentifierRequest', @api_client.config.host, @api_client.merchantconfig.defaultDeveloperId) - inbound_mle_status = "false" + inbound_mle_status = "optional" if MLEUtility.check_is_mle_for_API(@api_client.merchantconfig, inbound_mle_status, ["post_instrument_identifier","post_instrument_identifier_with_http_info"]) - post_body = MLEUtility.encrypt_request_payload(@api_client.merchantconfig, post_body) + begin + post_body = MLEUtility.encrypt_request_payload(@api_client.merchantconfig, post_body) + rescue + raise + end end auth_names = [] data, status_code, headers = @api_client.call_api(:POST, local_var_path, @@ -491,9 +511,13 @@ def post_instrument_identifier_enrollment_with_http_info(instrument_identifier_i post_body = @api_client.object_to_http_body(post_instrument_identifier_enrollment_request) sdk_tracker = SdkTracker.new post_body = sdk_tracker.insert_developer_id_tracker(post_body, 'PostInstrumentIdentifierEnrollmentRequest', @api_client.config.host, @api_client.merchantconfig.defaultDeveloperId) - inbound_mle_status = "false" + inbound_mle_status = "optional" if MLEUtility.check_is_mle_for_API(@api_client.merchantconfig, inbound_mle_status, ["post_instrument_identifier_enrollment","post_instrument_identifier_enrollment_with_http_info"]) - post_body = MLEUtility.encrypt_request_payload(@api_client.merchantconfig, post_body) + begin + post_body = MLEUtility.encrypt_request_payload(@api_client.merchantconfig, post_body) + rescue + raise + end end auth_names = [] data, status_code, headers = @api_client.call_api(:POST, local_var_path, diff --git a/lib/cybersource_rest_client/api/interchange_clearing_level_details_api.rb b/lib/cybersource_rest_client/api/interchange_clearing_level_details_api.rb index df9d0634..d3a0a026 100644 --- a/lib/cybersource_rest_client/api/interchange_clearing_level_details_api.rb +++ b/lib/cybersource_rest_client/api/interchange_clearing_level_details_api.rb @@ -89,7 +89,11 @@ def get_interchange_clearing_level_details_with_http_info(start_time, end_time, end inbound_mle_status = "false" if MLEUtility.check_is_mle_for_API(@api_client.merchantconfig, inbound_mle_status, ["get_interchange_clearing_level_details","get_interchange_clearing_level_details_with_http_info"]) - post_body = MLEUtility.encrypt_request_payload(@api_client.merchantconfig, post_body) + begin + post_body = MLEUtility.encrypt_request_payload(@api_client.merchantconfig, post_body) + rescue + raise + end end auth_names = [] data, status_code, headers = @api_client.call_api(:GET, local_var_path, diff --git a/lib/cybersource_rest_client/api/invoice_settings_api.rb b/lib/cybersource_rest_client/api/invoice_settings_api.rb index ead73502..cbc12dc2 100644 --- a/lib/cybersource_rest_client/api/invoice_settings_api.rb +++ b/lib/cybersource_rest_client/api/invoice_settings_api.rb @@ -68,7 +68,11 @@ def get_invoice_settings_with_http_info(opts = {}) end inbound_mle_status = "false" if MLEUtility.check_is_mle_for_API(@api_client.merchantconfig, inbound_mle_status, ["get_invoice_settings","get_invoice_settings_with_http_info"]) - post_body = MLEUtility.encrypt_request_payload(@api_client.merchantconfig, post_body) + begin + post_body = MLEUtility.encrypt_request_payload(@api_client.merchantconfig, post_body) + rescue + raise + end end auth_names = [] data, status_code, headers = @api_client.call_api(:GET, local_var_path, @@ -141,7 +145,11 @@ def update_invoice_settings_with_http_info(invoice_settings_request, opts = {}) post_body = sdk_tracker.insert_developer_id_tracker(post_body, 'InvoiceSettingsRequest', @api_client.config.host, @api_client.merchantconfig.defaultDeveloperId) inbound_mle_status = "false" if MLEUtility.check_is_mle_for_API(@api_client.merchantconfig, inbound_mle_status, ["update_invoice_settings","update_invoice_settings_with_http_info"]) - post_body = MLEUtility.encrypt_request_payload(@api_client.merchantconfig, post_body) + begin + post_body = MLEUtility.encrypt_request_payload(@api_client.merchantconfig, post_body) + rescue + raise + end end auth_names = [] data, status_code, headers = @api_client.call_api(:PUT, local_var_path, diff --git a/lib/cybersource_rest_client/api/invoices_api.rb b/lib/cybersource_rest_client/api/invoices_api.rb index 916e7656..18b1374d 100644 --- a/lib/cybersource_rest_client/api/invoices_api.rb +++ b/lib/cybersource_rest_client/api/invoices_api.rb @@ -72,7 +72,11 @@ def create_invoice_with_http_info(create_invoice_request, opts = {}) post_body = sdk_tracker.insert_developer_id_tracker(post_body, 'CreateInvoiceRequest', @api_client.config.host, @api_client.merchantconfig.defaultDeveloperId) inbound_mle_status = "false" if MLEUtility.check_is_mle_for_API(@api_client.merchantconfig, inbound_mle_status, ["create_invoice","create_invoice_with_http_info"]) - post_body = MLEUtility.encrypt_request_payload(@api_client.merchantconfig, post_body) + begin + post_body = MLEUtility.encrypt_request_payload(@api_client.merchantconfig, post_body) + rescue + raise + end end auth_names = [] data, status_code, headers = @api_client.call_api(:POST, local_var_path, @@ -158,7 +162,11 @@ def get_all_invoices_with_http_info(offset, limit, opts = {}) end inbound_mle_status = "false" if MLEUtility.check_is_mle_for_API(@api_client.merchantconfig, inbound_mle_status, ["get_all_invoices","get_all_invoices_with_http_info"]) - post_body = MLEUtility.encrypt_request_payload(@api_client.merchantconfig, post_body) + begin + post_body = MLEUtility.encrypt_request_payload(@api_client.merchantconfig, post_body) + rescue + raise + end end auth_names = [] data, status_code, headers = @api_client.call_api(:GET, local_var_path, @@ -233,7 +241,11 @@ def get_invoice_with_http_info(id, opts = {}) end inbound_mle_status = "false" if MLEUtility.check_is_mle_for_API(@api_client.merchantconfig, inbound_mle_status, ["get_invoice","get_invoice_with_http_info"]) - post_body = MLEUtility.encrypt_request_payload(@api_client.merchantconfig, post_body) + begin + post_body = MLEUtility.encrypt_request_payload(@api_client.merchantconfig, post_body) + rescue + raise + end end auth_names = [] data, status_code, headers = @api_client.call_api(:GET, local_var_path, @@ -308,7 +320,11 @@ def perform_cancel_action_with_http_info(id, opts = {}) end inbound_mle_status = "false" if MLEUtility.check_is_mle_for_API(@api_client.merchantconfig, inbound_mle_status, ["perform_cancel_action","perform_cancel_action_with_http_info"]) - post_body = MLEUtility.encrypt_request_payload(@api_client.merchantconfig, post_body) + begin + post_body = MLEUtility.encrypt_request_payload(@api_client.merchantconfig, post_body) + rescue + raise + end end auth_names = [] data, status_code, headers = @api_client.call_api(:POST, local_var_path, @@ -383,7 +399,11 @@ def perform_publish_action_with_http_info(id, opts = {}) end inbound_mle_status = "false" if MLEUtility.check_is_mle_for_API(@api_client.merchantconfig, inbound_mle_status, ["perform_publish_action","perform_publish_action_with_http_info"]) - post_body = MLEUtility.encrypt_request_payload(@api_client.merchantconfig, post_body) + begin + post_body = MLEUtility.encrypt_request_payload(@api_client.merchantconfig, post_body) + rescue + raise + end end auth_names = [] data, status_code, headers = @api_client.call_api(:POST, local_var_path, @@ -458,7 +478,11 @@ def perform_send_action_with_http_info(id, opts = {}) end inbound_mle_status = "false" if MLEUtility.check_is_mle_for_API(@api_client.merchantconfig, inbound_mle_status, ["perform_send_action","perform_send_action_with_http_info"]) - post_body = MLEUtility.encrypt_request_payload(@api_client.merchantconfig, post_body) + begin + post_body = MLEUtility.encrypt_request_payload(@api_client.merchantconfig, post_body) + rescue + raise + end end auth_names = [] data, status_code, headers = @api_client.call_api(:POST, local_var_path, @@ -537,7 +561,11 @@ def update_invoice_with_http_info(id, update_invoice_request, opts = {}) post_body = sdk_tracker.insert_developer_id_tracker(post_body, 'UpdateInvoiceRequest', @api_client.config.host, @api_client.merchantconfig.defaultDeveloperId) inbound_mle_status = "false" if MLEUtility.check_is_mle_for_API(@api_client.merchantconfig, inbound_mle_status, ["update_invoice","update_invoice_with_http_info"]) - post_body = MLEUtility.encrypt_request_payload(@api_client.merchantconfig, post_body) + begin + post_body = MLEUtility.encrypt_request_payload(@api_client.merchantconfig, post_body) + rescue + raise + end end auth_names = [] data, status_code, headers = @api_client.call_api(:PUT, local_var_path, diff --git a/lib/cybersource_rest_client/api/manage_webhooks_api.rb b/lib/cybersource_rest_client/api/manage_webhooks_api.rb index 06d082d3..3043403d 100644 --- a/lib/cybersource_rest_client/api/manage_webhooks_api.rb +++ b/lib/cybersource_rest_client/api/manage_webhooks_api.rb @@ -74,7 +74,11 @@ def delete_webhook_subscription_with_http_info(webhook_id, opts = {}) end inbound_mle_status = "false" if MLEUtility.check_is_mle_for_API(@api_client.merchantconfig, inbound_mle_status, ["delete_webhook_subscription","delete_webhook_subscription_with_http_info"]) - post_body = MLEUtility.encrypt_request_payload(@api_client.merchantconfig, post_body) + begin + post_body = MLEUtility.encrypt_request_payload(@api_client.merchantconfig, post_body) + rescue + raise + end end auth_names = [] data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, @@ -148,7 +152,11 @@ def get_webhook_subscription_by_id_with_http_info(webhook_id, opts = {}) end inbound_mle_status = "false" if MLEUtility.check_is_mle_for_API(@api_client.merchantconfig, inbound_mle_status, ["get_webhook_subscription_by_id","get_webhook_subscription_by_id_with_http_info"]) - post_body = MLEUtility.encrypt_request_payload(@api_client.merchantconfig, post_body) + begin + post_body = MLEUtility.encrypt_request_payload(@api_client.merchantconfig, post_body) + rescue + raise + end end auth_names = [] data, status_code, headers = @api_client.call_api(:GET, local_var_path, @@ -175,7 +183,7 @@ def get_webhook_subscription_by_id_with_http_info(webhook_id, opts = {}) # @param [Hash] opts the optional parameters # @option opts [String] :product_id The Product Identifier. # @option opts [String] :event_type The Event Type. - # @return [Array] + # @return [Array] # def get_webhook_subscriptions_by_org(organization_id, opts = {}) data, status_code, headers = get_webhook_subscriptions_by_org_with_http_info(organization_id, opts) @@ -188,7 +196,7 @@ def get_webhook_subscriptions_by_org(organization_id, opts = {}) # @param [Hash] opts the optional parameters # @option opts [String] :product_id The Product Identifier. # @option opts [String] :event_type The Event Type. - # @return [Array<(Array, Fixnum, Hash)>] Array data, response status code and response headers + # @return [Array<(Array, Fixnum, Hash)>] Array data, response status code and response headers def get_webhook_subscriptions_by_org_with_http_info(organization_id, opts = {}) if @api_client.config.debugging @@ -230,7 +238,11 @@ def get_webhook_subscriptions_by_org_with_http_info(organization_id, opts = {}) end inbound_mle_status = "false" if MLEUtility.check_is_mle_for_API(@api_client.merchantconfig, inbound_mle_status, ["get_webhook_subscriptions_by_org","get_webhook_subscriptions_by_org_with_http_info"]) - post_body = MLEUtility.encrypt_request_payload(@api_client.merchantconfig, post_body) + begin + post_body = MLEUtility.encrypt_request_payload(@api_client.merchantconfig, post_body) + rescue + raise + end end auth_names = [] data, status_code, headers = @api_client.call_api(:GET, local_var_path, @@ -239,7 +251,7 @@ def get_webhook_subscriptions_by_org_with_http_info(organization_id, opts = {}) :form_params => form_params, :body => post_body, :auth_names => auth_names, - :return_type => 'Array') + :return_type => 'Array') if @api_client.config.debugging begin raise @@ -305,7 +317,11 @@ def notification_subscriptions_v1_webhooks_webhook_id_post_with_http_info(webhoo end inbound_mle_status = "false" if MLEUtility.check_is_mle_for_API(@api_client.merchantconfig, inbound_mle_status, ["notification_subscriptions_v1_webhooks_webhook_id_post","notification_subscriptions_v1_webhooks_webhook_id_post_with_http_info"]) - post_body = MLEUtility.encrypt_request_payload(@api_client.merchantconfig, post_body) + begin + post_body = MLEUtility.encrypt_request_payload(@api_client.merchantconfig, post_body) + rescue + raise + end end auth_names = [] data, status_code, headers = @api_client.call_api(:POST, local_var_path, @@ -331,7 +347,7 @@ def notification_subscriptions_v1_webhooks_webhook_id_post_with_http_info(webhoo # @param webhook_id The Webhook Identifier. # @param [Hash] opts the optional parameters # @option opts [UpdateWebhook] :update_webhook The webhook payload or changes to apply. - # @return [InlineResponse2006] + # @return [InlineResponse2007] # def notification_subscriptions_v2_webhooks_webhook_id_patch(webhook_id, opts = {}) data, status_code, headers = notification_subscriptions_v2_webhooks_webhook_id_patch_with_http_info(webhook_id, opts) @@ -343,7 +359,7 @@ def notification_subscriptions_v2_webhooks_webhook_id_patch(webhook_id, opts = { # @param webhook_id The Webhook Identifier. # @param [Hash] opts the optional parameters # @option opts [UpdateWebhook] :update_webhook The webhook payload or changes to apply. - # @return [Array<(InlineResponse2006, Fixnum, Hash)>] InlineResponse2006 data, response status code and response headers + # @return [Array<(InlineResponse2007, Fixnum, Hash)>] InlineResponse2007 data, response status code and response headers def notification_subscriptions_v2_webhooks_webhook_id_patch_with_http_info(webhook_id, opts = {}) if @api_client.config.debugging @@ -380,7 +396,11 @@ def notification_subscriptions_v2_webhooks_webhook_id_patch_with_http_info(webho post_body = sdk_tracker.insert_developer_id_tracker(post_body, 'UpdateWebhook', @api_client.config.host, @api_client.merchantconfig.defaultDeveloperId) inbound_mle_status = "false" if MLEUtility.check_is_mle_for_API(@api_client.merchantconfig, inbound_mle_status, ["notification_subscriptions_v2_webhooks_webhook_id_patch","notification_subscriptions_v2_webhooks_webhook_id_patch_with_http_info"]) - post_body = MLEUtility.encrypt_request_payload(@api_client.merchantconfig, post_body) + begin + post_body = MLEUtility.encrypt_request_payload(@api_client.merchantconfig, post_body) + rescue + raise + end end auth_names = [] data, status_code, headers = @api_client.call_api(:PATCH, local_var_path, @@ -389,7 +409,7 @@ def notification_subscriptions_v2_webhooks_webhook_id_patch_with_http_info(webho :form_params => form_params, :body => post_body, :auth_names => auth_names, - :return_type => 'InlineResponse2006') + :return_type => 'InlineResponse2007') if @api_client.config.debugging begin raise @@ -455,7 +475,11 @@ def notification_subscriptions_v2_webhooks_webhook_id_status_put_with_http_info( post_body = sdk_tracker.insert_developer_id_tracker(post_body, 'UpdateStatus', @api_client.config.host, @api_client.merchantconfig.defaultDeveloperId) inbound_mle_status = "false" if MLEUtility.check_is_mle_for_API(@api_client.merchantconfig, inbound_mle_status, ["notification_subscriptions_v2_webhooks_webhook_id_status_put","notification_subscriptions_v2_webhooks_webhook_id_status_put_with_http_info"]) - post_body = MLEUtility.encrypt_request_payload(@api_client.merchantconfig, post_body) + begin + post_body = MLEUtility.encrypt_request_payload(@api_client.merchantconfig, post_body) + rescue + raise + end end auth_names = [] data, status_code, headers = @api_client.call_api(:PUT, local_var_path, @@ -552,7 +576,11 @@ def save_asym_egress_key_with_http_info(v_c_sender_organization_id, v_c_permissi post_body = sdk_tracker.insert_developer_id_tracker(post_body, 'SaveAsymEgressKey', @api_client.config.host, @api_client.merchantconfig.defaultDeveloperId) inbound_mle_status = "false" if MLEUtility.check_is_mle_for_API(@api_client.merchantconfig, inbound_mle_status, ["save_asym_egress_key","save_asym_egress_key_with_http_info"]) - post_body = MLEUtility.encrypt_request_payload(@api_client.merchantconfig, post_body) + begin + post_body = MLEUtility.encrypt_request_payload(@api_client.merchantconfig, post_body) + rescue + raise + end end auth_names = [] data, status_code, headers = @api_client.call_api(:POST, local_var_path, diff --git a/lib/cybersource_rest_client/api/merchant_boarding_api.rb b/lib/cybersource_rest_client/api/merchant_boarding_api.rb index 2c2187bb..6b6ce4e5 100644 --- a/lib/cybersource_rest_client/api/merchant_boarding_api.rb +++ b/lib/cybersource_rest_client/api/merchant_boarding_api.rb @@ -24,7 +24,7 @@ def initialize(api_client = ApiClient.default, config) # # @param registration_id Identifies the boarding registration to be updated # @param [Hash] opts the optional parameters - # @return [InlineResponse2003] + # @return [InlineResponse2004] # def get_registration(registration_id, opts = {}) data, status_code, headers = get_registration_with_http_info(registration_id, opts) @@ -35,7 +35,7 @@ def get_registration(registration_id, opts = {}) # This end point will get all information of a boarding registration # @param registration_id Identifies the boarding registration to be updated # @param [Hash] opts the optional parameters - # @return [Array<(InlineResponse2003, Fixnum, Hash)>] InlineResponse2003 data, response status code and response headers + # @return [Array<(InlineResponse2004, Fixnum, Hash)>] InlineResponse2004 data, response status code and response headers def get_registration_with_http_info(registration_id, opts = {}) if @api_client.config.debugging @@ -74,7 +74,11 @@ def get_registration_with_http_info(registration_id, opts = {}) end inbound_mle_status = "false" if MLEUtility.check_is_mle_for_API(@api_client.merchantconfig, inbound_mle_status, ["get_registration","get_registration_with_http_info"]) - post_body = MLEUtility.encrypt_request_payload(@api_client.merchantconfig, post_body) + begin + post_body = MLEUtility.encrypt_request_payload(@api_client.merchantconfig, post_body) + rescue + raise + end end auth_names = [] data, status_code, headers = @api_client.call_api(:GET, local_var_path, @@ -83,7 +87,7 @@ def get_registration_with_http_info(registration_id, opts = {}) :form_params => form_params, :body => post_body, :auth_names => auth_names, - :return_type => 'InlineResponse2003') + :return_type => 'InlineResponse2004') if @api_client.config.debugging begin raise @@ -150,7 +154,11 @@ def post_registration_with_http_info(post_registration_body, opts = {}) post_body = sdk_tracker.insert_developer_id_tracker(post_body, 'PostRegistrationBody', @api_client.config.host, @api_client.merchantconfig.defaultDeveloperId) inbound_mle_status = "false" if MLEUtility.check_is_mle_for_API(@api_client.merchantconfig, inbound_mle_status, ["post_registration","post_registration_with_http_info"]) - post_body = MLEUtility.encrypt_request_payload(@api_client.merchantconfig, post_body) + begin + post_body = MLEUtility.encrypt_request_payload(@api_client.merchantconfig, post_body) + rescue + raise + end end auth_names = [] data, status_code, headers = @api_client.call_api(:POST, local_var_path, diff --git a/lib/cybersource_rest_client/api/merchant_defined_fields_api.rb b/lib/cybersource_rest_client/api/merchant_defined_fields_api.rb index 3a1d9358..3172e454 100644 --- a/lib/cybersource_rest_client/api/merchant_defined_fields_api.rb +++ b/lib/cybersource_rest_client/api/merchant_defined_fields_api.rb @@ -24,7 +24,7 @@ def initialize(api_client = ApiClient.default, config) # @param reference_type The reference type for which merchant defined fields are to be fetched. Available values are Invoice, Purchase, Donation # @param merchant_defined_field_definition_request # @param [Hash] opts the optional parameters - # @return [Array] + # @return [Array] # def create_merchant_defined_field_definition(reference_type, merchant_defined_field_definition_request, opts = {}) data, status_code, headers = create_merchant_defined_field_definition_with_http_info(reference_type, merchant_defined_field_definition_request, opts) @@ -35,7 +35,7 @@ def create_merchant_defined_field_definition(reference_type, merchant_defined_fi # @param reference_type The reference type for which merchant defined fields are to be fetched. Available values are Invoice, Purchase, Donation # @param merchant_defined_field_definition_request # @param [Hash] opts the optional parameters - # @return [Array<(Array, Fixnum, Hash)>] Array data, response status code and response headers + # @return [Array<(Array, Fixnum, Hash)>] Array data, response status code and response headers def create_merchant_defined_field_definition_with_http_info(reference_type, merchant_defined_field_definition_request, opts = {}) if @api_client.config.debugging @@ -80,7 +80,11 @@ def create_merchant_defined_field_definition_with_http_info(reference_type, merc post_body = sdk_tracker.insert_developer_id_tracker(post_body, 'MerchantDefinedFieldDefinitionRequest', @api_client.config.host, @api_client.merchantconfig.defaultDeveloperId) inbound_mle_status = "false" if MLEUtility.check_is_mle_for_API(@api_client.merchantconfig, inbound_mle_status, ["create_merchant_defined_field_definition","create_merchant_defined_field_definition_with_http_info"]) - post_body = MLEUtility.encrypt_request_payload(@api_client.merchantconfig, post_body) + begin + post_body = MLEUtility.encrypt_request_payload(@api_client.merchantconfig, post_body) + rescue + raise + end end auth_names = [] data, status_code, headers = @api_client.call_api(:POST, local_var_path, @@ -89,7 +93,7 @@ def create_merchant_defined_field_definition_with_http_info(reference_type, merc :form_params => form_params, :body => post_body, :auth_names => auth_names, - :return_type => 'Array') + :return_type => 'Array') if @api_client.config.debugging begin raise @@ -163,7 +167,11 @@ def delete_merchant_defined_fields_definitions_with_http_info(reference_type, id end inbound_mle_status = "false" if MLEUtility.check_is_mle_for_API(@api_client.merchantconfig, inbound_mle_status, ["delete_merchant_defined_fields_definitions","delete_merchant_defined_fields_definitions_with_http_info"]) - post_body = MLEUtility.encrypt_request_payload(@api_client.merchantconfig, post_body) + begin + post_body = MLEUtility.encrypt_request_payload(@api_client.merchantconfig, post_body) + rescue + raise + end end auth_names = [] data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, @@ -186,7 +194,7 @@ def delete_merchant_defined_fields_definitions_with_http_info(reference_type, id # # @param reference_type The reference type for which merchant defined fields are to be fetched. Available values are Invoice, Purchase, Donation # @param [Hash] opts the optional parameters - # @return [Array] + # @return [Array] # def get_merchant_defined_fields_definitions(reference_type, opts = {}) data, status_code, headers = get_merchant_defined_fields_definitions_with_http_info(reference_type, opts) @@ -196,7 +204,7 @@ def get_merchant_defined_fields_definitions(reference_type, opts = {}) # Get all merchant defined fields for a given reference type # @param reference_type The reference type for which merchant defined fields are to be fetched. Available values are Invoice, Purchase, Donation # @param [Hash] opts the optional parameters - # @return [Array<(Array, Fixnum, Hash)>] Array data, response status code and response headers + # @return [Array<(Array, Fixnum, Hash)>] Array data, response status code and response headers def get_merchant_defined_fields_definitions_with_http_info(reference_type, opts = {}) if @api_client.config.debugging @@ -239,7 +247,11 @@ def get_merchant_defined_fields_definitions_with_http_info(reference_type, opts end inbound_mle_status = "false" if MLEUtility.check_is_mle_for_API(@api_client.merchantconfig, inbound_mle_status, ["get_merchant_defined_fields_definitions","get_merchant_defined_fields_definitions_with_http_info"]) - post_body = MLEUtility.encrypt_request_payload(@api_client.merchantconfig, post_body) + begin + post_body = MLEUtility.encrypt_request_payload(@api_client.merchantconfig, post_body) + rescue + raise + end end auth_names = [] data, status_code, headers = @api_client.call_api(:GET, local_var_path, @@ -248,7 +260,7 @@ def get_merchant_defined_fields_definitions_with_http_info(reference_type, opts :form_params => form_params, :body => post_body, :auth_names => auth_names, - :return_type => 'Array') + :return_type => 'Array') if @api_client.config.debugging begin raise @@ -265,7 +277,7 @@ def get_merchant_defined_fields_definitions_with_http_info(reference_type, opts # @param id # @param merchant_defined_field_core # @param [Hash] opts the optional parameters - # @return [Array] + # @return [Array] # def put_merchant_defined_fields_definitions(reference_type, id, merchant_defined_field_core, opts = {}) data, status_code, headers = put_merchant_defined_fields_definitions_with_http_info(reference_type, id, merchant_defined_field_core, opts) @@ -277,7 +289,7 @@ def put_merchant_defined_fields_definitions(reference_type, id, merchant_defined # @param id # @param merchant_defined_field_core # @param [Hash] opts the optional parameters - # @return [Array<(Array, Fixnum, Hash)>] Array data, response status code and response headers + # @return [Array<(Array, Fixnum, Hash)>] Array data, response status code and response headers def put_merchant_defined_fields_definitions_with_http_info(reference_type, id, merchant_defined_field_core, opts = {}) if @api_client.config.debugging @@ -326,7 +338,11 @@ def put_merchant_defined_fields_definitions_with_http_info(reference_type, id, m post_body = sdk_tracker.insert_developer_id_tracker(post_body, 'MerchantDefinedFieldCore', @api_client.config.host, @api_client.merchantconfig.defaultDeveloperId) inbound_mle_status = "false" if MLEUtility.check_is_mle_for_API(@api_client.merchantconfig, inbound_mle_status, ["put_merchant_defined_fields_definitions","put_merchant_defined_fields_definitions_with_http_info"]) - post_body = MLEUtility.encrypt_request_payload(@api_client.merchantconfig, post_body) + begin + post_body = MLEUtility.encrypt_request_payload(@api_client.merchantconfig, post_body) + rescue + raise + end end auth_names = [] data, status_code, headers = @api_client.call_api(:PUT, local_var_path, @@ -335,7 +351,7 @@ def put_merchant_defined_fields_definitions_with_http_info(reference_type, id, m :form_params => form_params, :body => post_body, :auth_names => auth_names, - :return_type => 'Array') + :return_type => 'Array') if @api_client.config.debugging begin raise diff --git a/lib/cybersource_rest_client/api/microform_integration_api.rb b/lib/cybersource_rest_client/api/microform_integration_api.rb index fa64d0a7..52fc7697 100644 --- a/lib/cybersource_rest_client/api/microform_integration_api.rb +++ b/lib/cybersource_rest_client/api/microform_integration_api.rb @@ -72,7 +72,11 @@ def generate_capture_context_with_http_info(generate_capture_context_request, op post_body = sdk_tracker.insert_developer_id_tracker(post_body, 'GenerateCaptureContextRequest', @api_client.config.host, @api_client.merchantconfig.defaultDeveloperId) inbound_mle_status = "false" if MLEUtility.check_is_mle_for_API(@api_client.merchantconfig, inbound_mle_status, ["generate_capture_context","generate_capture_context_with_http_info"]) - post_body = MLEUtility.encrypt_request_payload(@api_client.merchantconfig, post_body) + begin + post_body = MLEUtility.encrypt_request_payload(@api_client.merchantconfig, post_body) + rescue + raise + end end auth_names = [] data, status_code, headers = @api_client.call_api(:POST, local_var_path, diff --git a/lib/cybersource_rest_client/api/net_fundings_api.rb b/lib/cybersource_rest_client/api/net_fundings_api.rb index afad54df..705f37da 100644 --- a/lib/cybersource_rest_client/api/net_fundings_api.rb +++ b/lib/cybersource_rest_client/api/net_fundings_api.rb @@ -92,7 +92,11 @@ def get_net_funding_details_with_http_info(start_time, end_time, opts = {}) end inbound_mle_status = "false" if MLEUtility.check_is_mle_for_API(@api_client.merchantconfig, inbound_mle_status, ["get_net_funding_details","get_net_funding_details_with_http_info"]) - post_body = MLEUtility.encrypt_request_payload(@api_client.merchantconfig, post_body) + begin + post_body = MLEUtility.encrypt_request_payload(@api_client.merchantconfig, post_body) + rescue + raise + end end auth_names = [] data, status_code, headers = @api_client.call_api(:GET, local_var_path, diff --git a/lib/cybersource_rest_client/api/notification_of_changes_api.rb b/lib/cybersource_rest_client/api/notification_of_changes_api.rb index 873478a4..ac0e26cf 100644 --- a/lib/cybersource_rest_client/api/notification_of_changes_api.rb +++ b/lib/cybersource_rest_client/api/notification_of_changes_api.rb @@ -82,7 +82,11 @@ def get_notification_of_change_report_with_http_info(start_time, end_time, opts end inbound_mle_status = "false" if MLEUtility.check_is_mle_for_API(@api_client.merchantconfig, inbound_mle_status, ["get_notification_of_change_report","get_notification_of_change_report_with_http_info"]) - post_body = MLEUtility.encrypt_request_payload(@api_client.merchantconfig, post_body) + begin + post_body = MLEUtility.encrypt_request_payload(@api_client.merchantconfig, post_body) + rescue + raise + end end auth_names = [] data, status_code, headers = @api_client.call_api(:GET, local_var_path, diff --git a/lib/cybersource_rest_client/api/offers_api.rb b/lib/cybersource_rest_client/api/offers_api.rb index 8e822dd1..13cdf0a6 100644 --- a/lib/cybersource_rest_client/api/offers_api.rb +++ b/lib/cybersource_rest_client/api/offers_api.rb @@ -107,7 +107,11 @@ def create_offer_with_http_info(content_type, x_requestid, v_c_merchant_id, v_c_ post_body = sdk_tracker.insert_developer_id_tracker(post_body, 'OfferRequest', @api_client.config.host, @api_client.merchantconfig.defaultDeveloperId) inbound_mle_status = "false" if MLEUtility.check_is_mle_for_API(@api_client.merchantconfig, inbound_mle_status, ["create_offer","create_offer_with_http_info"]) - post_body = MLEUtility.encrypt_request_payload(@api_client.merchantconfig, post_body) + begin + post_body = MLEUtility.encrypt_request_payload(@api_client.merchantconfig, post_body) + rescue + raise + end end auth_names = [] data, status_code, headers = @api_client.call_api(:POST, local_var_path, @@ -137,7 +141,7 @@ def create_offer_with_http_info(content_type, x_requestid, v_c_merchant_id, v_c_ # @param v_c_organization_id # @param id Request ID generated by Cybersource. This was sent in the header on the request. Echo value from v-c-request-id # @param [Hash] opts the optional parameters - # @return [InlineResponse20014] + # @return [InlineResponse20015] # def get_offer(content_type, x_requestid, v_c_merchant_id, v_c_correlation_id, v_c_organization_id, id, opts = {}) data, status_code, headers = get_offer_with_http_info(content_type, x_requestid, v_c_merchant_id, v_c_correlation_id, v_c_organization_id, id, opts) @@ -153,7 +157,7 @@ def get_offer(content_type, x_requestid, v_c_merchant_id, v_c_correlation_id, v_ # @param v_c_organization_id # @param id Request ID generated by Cybersource. This was sent in the header on the request. Echo value from v-c-request-id # @param [Hash] opts the optional parameters - # @return [Array<(InlineResponse20014, Fixnum, Hash)>] InlineResponse20014 data, response status code and response headers + # @return [Array<(InlineResponse20015, Fixnum, Hash)>] InlineResponse20015 data, response status code and response headers def get_offer_with_http_info(content_type, x_requestid, v_c_merchant_id, v_c_correlation_id, v_c_organization_id, id, opts = {}) if @api_client.config.debugging @@ -217,7 +221,11 @@ def get_offer_with_http_info(content_type, x_requestid, v_c_merchant_id, v_c_cor end inbound_mle_status = "false" if MLEUtility.check_is_mle_for_API(@api_client.merchantconfig, inbound_mle_status, ["get_offer","get_offer_with_http_info"]) - post_body = MLEUtility.encrypt_request_payload(@api_client.merchantconfig, post_body) + begin + post_body = MLEUtility.encrypt_request_payload(@api_client.merchantconfig, post_body) + rescue + raise + end end auth_names = [] data, status_code, headers = @api_client.call_api(:GET, local_var_path, @@ -226,7 +234,7 @@ def get_offer_with_http_info(content_type, x_requestid, v_c_merchant_id, v_c_cor :form_params => form_params, :body => post_body, :auth_names => auth_names, - :return_type => 'InlineResponse20014') + :return_type => 'InlineResponse20015') if @api_client.config.debugging begin raise diff --git a/lib/cybersource_rest_client/api/orders_api.rb b/lib/cybersource_rest_client/api/orders_api.rb index eb36728c..57c4e937 100644 --- a/lib/cybersource_rest_client/api/orders_api.rb +++ b/lib/cybersource_rest_client/api/orders_api.rb @@ -72,7 +72,11 @@ def create_order_with_http_info(create_order_request, opts = {}) post_body = sdk_tracker.insert_developer_id_tracker(post_body, 'CreateOrderRequest', @api_client.config.host, @api_client.merchantconfig.defaultDeveloperId) inbound_mle_status = "false" if MLEUtility.check_is_mle_for_API(@api_client.merchantconfig, inbound_mle_status, ["create_order","create_order_with_http_info"]) - post_body = MLEUtility.encrypt_request_payload(@api_client.merchantconfig, post_body) + begin + post_body = MLEUtility.encrypt_request_payload(@api_client.merchantconfig, post_body) + rescue + raise + end end auth_names = [] data, status_code, headers = @api_client.call_api(:POST, local_var_path, @@ -151,7 +155,11 @@ def update_order_with_http_info(id, update_order_request, opts = {}) post_body = sdk_tracker.insert_developer_id_tracker(post_body, 'UpdateOrderRequest', @api_client.config.host, @api_client.merchantconfig.defaultDeveloperId) inbound_mle_status = "false" if MLEUtility.check_is_mle_for_API(@api_client.merchantconfig, inbound_mle_status, ["update_order","update_order_with_http_info"]) - post_body = MLEUtility.encrypt_request_payload(@api_client.merchantconfig, post_body) + begin + post_body = MLEUtility.encrypt_request_payload(@api_client.merchantconfig, post_body) + rescue + raise + end end auth_names = [] data, status_code, headers = @api_client.call_api(:PATCH, local_var_path, diff --git a/lib/cybersource_rest_client/api/payer_authentication_api.rb b/lib/cybersource_rest_client/api/payer_authentication_api.rb index bb8545a4..691d0b1f 100644 --- a/lib/cybersource_rest_client/api/payer_authentication_api.rb +++ b/lib/cybersource_rest_client/api/payer_authentication_api.rb @@ -72,7 +72,11 @@ def check_payer_auth_enrollment_with_http_info(check_payer_auth_enrollment_reque post_body = sdk_tracker.insert_developer_id_tracker(post_body, 'CheckPayerAuthEnrollmentRequest', @api_client.config.host, @api_client.merchantconfig.defaultDeveloperId) inbound_mle_status = "optional" if MLEUtility.check_is_mle_for_API(@api_client.merchantconfig, inbound_mle_status, ["check_payer_auth_enrollment","check_payer_auth_enrollment_with_http_info"]) - post_body = MLEUtility.encrypt_request_payload(@api_client.merchantconfig, post_body) + begin + post_body = MLEUtility.encrypt_request_payload(@api_client.merchantconfig, post_body) + rescue + raise + end end auth_names = [] data, status_code, headers = @api_client.call_api(:POST, local_var_path, @@ -145,7 +149,11 @@ def payer_auth_setup_with_http_info(payer_auth_setup_request, opts = {}) post_body = sdk_tracker.insert_developer_id_tracker(post_body, 'PayerAuthSetupRequest', @api_client.config.host, @api_client.merchantconfig.defaultDeveloperId) inbound_mle_status = "optional" if MLEUtility.check_is_mle_for_API(@api_client.merchantconfig, inbound_mle_status, ["payer_auth_setup","payer_auth_setup_with_http_info"]) - post_body = MLEUtility.encrypt_request_payload(@api_client.merchantconfig, post_body) + begin + post_body = MLEUtility.encrypt_request_payload(@api_client.merchantconfig, post_body) + rescue + raise + end end auth_names = [] data, status_code, headers = @api_client.call_api(:POST, local_var_path, @@ -218,7 +226,11 @@ def validate_authentication_results_with_http_info(validate_request, opts = {}) post_body = sdk_tracker.insert_developer_id_tracker(post_body, 'ValidateRequest', @api_client.config.host, @api_client.merchantconfig.defaultDeveloperId) inbound_mle_status = "optional" if MLEUtility.check_is_mle_for_API(@api_client.merchantconfig, inbound_mle_status, ["validate_authentication_results","validate_authentication_results_with_http_info"]) - post_body = MLEUtility.encrypt_request_payload(@api_client.merchantconfig, post_body) + begin + post_body = MLEUtility.encrypt_request_payload(@api_client.merchantconfig, post_body) + rescue + raise + end end auth_names = [] data, status_code, headers = @api_client.call_api(:POST, local_var_path, diff --git a/lib/cybersource_rest_client/api/payment_batch_summaries_api.rb b/lib/cybersource_rest_client/api/payment_batch_summaries_api.rb index 1f41f1c6..9febccaa 100644 --- a/lib/cybersource_rest_client/api/payment_batch_summaries_api.rb +++ b/lib/cybersource_rest_client/api/payment_batch_summaries_api.rb @@ -98,7 +98,11 @@ def get_payment_batch_summary_with_http_info(start_time, end_time, opts = {}) end inbound_mle_status = "false" if MLEUtility.check_is_mle_for_API(@api_client.merchantconfig, inbound_mle_status, ["get_payment_batch_summary","get_payment_batch_summary_with_http_info"]) - post_body = MLEUtility.encrypt_request_payload(@api_client.merchantconfig, post_body) + begin + post_body = MLEUtility.encrypt_request_payload(@api_client.merchantconfig, post_body) + rescue + raise + end end auth_names = [] data, status_code, headers = @api_client.call_api(:GET, local_var_path, diff --git a/lib/cybersource_rest_client/api/payment_instrument_api.rb b/lib/cybersource_rest_client/api/payment_instrument_api.rb index 1ae84d3c..0159e7c0 100644 --- a/lib/cybersource_rest_client/api/payment_instrument_api.rb +++ b/lib/cybersource_rest_client/api/payment_instrument_api.rb @@ -77,7 +77,11 @@ def delete_payment_instrument_with_http_info(payment_instrument_id, opts = {}) end inbound_mle_status = "false" if MLEUtility.check_is_mle_for_API(@api_client.merchantconfig, inbound_mle_status, ["delete_payment_instrument","delete_payment_instrument_with_http_info"]) - post_body = MLEUtility.encrypt_request_payload(@api_client.merchantconfig, post_body) + begin + post_body = MLEUtility.encrypt_request_payload(@api_client.merchantconfig, post_body) + rescue + raise + end end auth_names = [] data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, @@ -157,7 +161,11 @@ def get_payment_instrument_with_http_info(payment_instrument_id, opts = {}) end inbound_mle_status = "false" if MLEUtility.check_is_mle_for_API(@api_client.merchantconfig, inbound_mle_status, ["get_payment_instrument","get_payment_instrument_with_http_info"]) - post_body = MLEUtility.encrypt_request_payload(@api_client.merchantconfig, post_body) + begin + post_body = MLEUtility.encrypt_request_payload(@api_client.merchantconfig, post_body) + rescue + raise + end end auth_names = [] data, status_code, headers = @api_client.call_api(:GET, local_var_path, @@ -243,9 +251,13 @@ def patch_payment_instrument_with_http_info(payment_instrument_id, patch_payment post_body = @api_client.object_to_http_body(patch_payment_instrument_request) sdk_tracker = SdkTracker.new post_body = sdk_tracker.insert_developer_id_tracker(post_body, 'PatchPaymentInstrumentRequest', @api_client.config.host, @api_client.merchantconfig.defaultDeveloperId) - inbound_mle_status = "false" + inbound_mle_status = "optional" if MLEUtility.check_is_mle_for_API(@api_client.merchantconfig, inbound_mle_status, ["patch_payment_instrument","patch_payment_instrument_with_http_info"]) - post_body = MLEUtility.encrypt_request_payload(@api_client.merchantconfig, post_body) + begin + post_body = MLEUtility.encrypt_request_payload(@api_client.merchantconfig, post_body) + rescue + raise + end end auth_names = [] data, status_code, headers = @api_client.call_api(:PATCH, local_var_path, @@ -322,9 +334,13 @@ def post_payment_instrument_with_http_info(post_payment_instrument_request, opts post_body = @api_client.object_to_http_body(post_payment_instrument_request) sdk_tracker = SdkTracker.new post_body = sdk_tracker.insert_developer_id_tracker(post_body, 'PostPaymentInstrumentRequest', @api_client.config.host, @api_client.merchantconfig.defaultDeveloperId) - inbound_mle_status = "false" + inbound_mle_status = "optional" if MLEUtility.check_is_mle_for_API(@api_client.merchantconfig, inbound_mle_status, ["post_payment_instrument","post_payment_instrument_with_http_info"]) - post_body = MLEUtility.encrypt_request_payload(@api_client.merchantconfig, post_body) + begin + post_body = MLEUtility.encrypt_request_payload(@api_client.merchantconfig, post_body) + rescue + raise + end end auth_names = [] data, status_code, headers = @api_client.call_api(:POST, local_var_path, diff --git a/lib/cybersource_rest_client/api/payment_links_api.rb b/lib/cybersource_rest_client/api/payment_links_api.rb index 12dfac13..e4feaa78 100644 --- a/lib/cybersource_rest_client/api/payment_links_api.rb +++ b/lib/cybersource_rest_client/api/payment_links_api.rb @@ -72,7 +72,11 @@ def create_payment_link_with_http_info(create_payment_link_request, opts = {}) post_body = sdk_tracker.insert_developer_id_tracker(post_body, 'CreatePaymentLinkRequest', @api_client.config.host, @api_client.merchantconfig.defaultDeveloperId) inbound_mle_status = "false" if MLEUtility.check_is_mle_for_API(@api_client.merchantconfig, inbound_mle_status, ["create_payment_link","create_payment_link_with_http_info"]) - post_body = MLEUtility.encrypt_request_payload(@api_client.merchantconfig, post_body) + begin + post_body = MLEUtility.encrypt_request_payload(@api_client.merchantconfig, post_body) + rescue + raise + end end auth_names = [] data, status_code, headers = @api_client.call_api(:POST, local_var_path, @@ -158,7 +162,11 @@ def get_all_payment_links_with_http_info(offset, limit, opts = {}) end inbound_mle_status = "false" if MLEUtility.check_is_mle_for_API(@api_client.merchantconfig, inbound_mle_status, ["get_all_payment_links","get_all_payment_links_with_http_info"]) - post_body = MLEUtility.encrypt_request_payload(@api_client.merchantconfig, post_body) + begin + post_body = MLEUtility.encrypt_request_payload(@api_client.merchantconfig, post_body) + rescue + raise + end end auth_names = [] data, status_code, headers = @api_client.call_api(:GET, local_var_path, @@ -233,7 +241,11 @@ def get_payment_link_with_http_info(id, opts = {}) end inbound_mle_status = "false" if MLEUtility.check_is_mle_for_API(@api_client.merchantconfig, inbound_mle_status, ["get_payment_link","get_payment_link_with_http_info"]) - post_body = MLEUtility.encrypt_request_payload(@api_client.merchantconfig, post_body) + begin + post_body = MLEUtility.encrypt_request_payload(@api_client.merchantconfig, post_body) + rescue + raise + end end auth_names = [] data, status_code, headers = @api_client.call_api(:GET, local_var_path, @@ -312,7 +324,11 @@ def update_payment_link_with_http_info(id, update_payment_link_request, opts = { post_body = sdk_tracker.insert_developer_id_tracker(post_body, 'UpdatePaymentLinkRequest', @api_client.config.host, @api_client.merchantconfig.defaultDeveloperId) inbound_mle_status = "false" if MLEUtility.check_is_mle_for_API(@api_client.merchantconfig, inbound_mle_status, ["update_payment_link","update_payment_link_with_http_info"]) - post_body = MLEUtility.encrypt_request_payload(@api_client.merchantconfig, post_body) + begin + post_body = MLEUtility.encrypt_request_payload(@api_client.merchantconfig, post_body) + rescue + raise + end end auth_names = [] data, status_code, headers = @api_client.call_api(:PATCH, local_var_path, diff --git a/lib/cybersource_rest_client/api/payment_tokens_api.rb b/lib/cybersource_rest_client/api/payment_tokens_api.rb index 926d3784..4483c4a2 100644 --- a/lib/cybersource_rest_client/api/payment_tokens_api.rb +++ b/lib/cybersource_rest_client/api/payment_tokens_api.rb @@ -72,7 +72,11 @@ def retrieve_or_delete_payment_token_with_http_info(request, opts = {}) post_body = sdk_tracker.insert_developer_id_tracker(post_body, 'Request', @api_client.config.host, @api_client.merchantconfig.defaultDeveloperId) inbound_mle_status = "false" if MLEUtility.check_is_mle_for_API(@api_client.merchantconfig, inbound_mle_status, ["retrieve_or_delete_payment_token","retrieve_or_delete_payment_token_with_http_info"]) - post_body = MLEUtility.encrypt_request_payload(@api_client.merchantconfig, post_body) + begin + post_body = MLEUtility.encrypt_request_payload(@api_client.merchantconfig, post_body) + rescue + raise + end end auth_names = [] data, status_code, headers = @api_client.call_api(:POST, local_var_path, diff --git a/lib/cybersource_rest_client/api/payments_api.rb b/lib/cybersource_rest_client/api/payments_api.rb index eae9b035..453d4bf3 100644 --- a/lib/cybersource_rest_client/api/payments_api.rb +++ b/lib/cybersource_rest_client/api/payments_api.rb @@ -78,7 +78,11 @@ def create_order_request_with_http_info(order_payment_request, id, opts = {}) post_body = sdk_tracker.insert_developer_id_tracker(post_body, 'OrderPaymentRequest', @api_client.config.host, @api_client.merchantconfig.defaultDeveloperId) inbound_mle_status = "optional" if MLEUtility.check_is_mle_for_API(@api_client.merchantconfig, inbound_mle_status, ["create_order_request","create_order_request_with_http_info"]) - post_body = MLEUtility.encrypt_request_payload(@api_client.merchantconfig, post_body) + begin + post_body = MLEUtility.encrypt_request_payload(@api_client.merchantconfig, post_body) + rescue + raise + end end auth_names = [] data, status_code, headers = @api_client.call_api(:POST, local_var_path, @@ -151,7 +155,11 @@ def create_payment_with_http_info(create_payment_request, opts = {}) post_body = sdk_tracker.insert_developer_id_tracker(post_body, 'CreatePaymentRequest', @api_client.config.host, @api_client.merchantconfig.defaultDeveloperId) inbound_mle_status = "optional" if MLEUtility.check_is_mle_for_API(@api_client.merchantconfig, inbound_mle_status, ["create_payment","create_payment_with_http_info"]) - post_body = MLEUtility.encrypt_request_payload(@api_client.merchantconfig, post_body) + begin + post_body = MLEUtility.encrypt_request_payload(@api_client.merchantconfig, post_body) + rescue + raise + end end auth_names = [] data, status_code, headers = @api_client.call_api(:POST, local_var_path, @@ -224,7 +232,11 @@ def create_session_request_with_http_info(create_session_req, opts = {}) post_body = sdk_tracker.insert_developer_id_tracker(post_body, 'CreateSessionReq', @api_client.config.host, @api_client.merchantconfig.defaultDeveloperId) inbound_mle_status = "optional" if MLEUtility.check_is_mle_for_API(@api_client.merchantconfig, inbound_mle_status, ["create_session_request","create_session_request_with_http_info"]) - post_body = MLEUtility.encrypt_request_payload(@api_client.merchantconfig, post_body) + begin + post_body = MLEUtility.encrypt_request_payload(@api_client.merchantconfig, post_body) + rescue + raise + end end auth_names = [] data, status_code, headers = @api_client.call_api(:POST, local_var_path, @@ -303,7 +315,11 @@ def increment_auth_with_http_info(id, increment_auth_request, opts = {}) post_body = sdk_tracker.insert_developer_id_tracker(post_body, 'IncrementAuthRequest', @api_client.config.host, @api_client.merchantconfig.defaultDeveloperId) inbound_mle_status = "optional" if MLEUtility.check_is_mle_for_API(@api_client.merchantconfig, inbound_mle_status, ["increment_auth","increment_auth_with_http_info"]) - post_body = MLEUtility.encrypt_request_payload(@api_client.merchantconfig, post_body) + begin + post_body = MLEUtility.encrypt_request_payload(@api_client.merchantconfig, post_body) + rescue + raise + end end auth_names = [] data, status_code, headers = @api_client.call_api(:PATCH, local_var_path, @@ -382,7 +398,11 @@ def refresh_payment_status_with_http_info(id, refresh_payment_status_request, op post_body = sdk_tracker.insert_developer_id_tracker(post_body, 'RefreshPaymentStatusRequest', @api_client.config.host, @api_client.merchantconfig.defaultDeveloperId) inbound_mle_status = "optional" if MLEUtility.check_is_mle_for_API(@api_client.merchantconfig, inbound_mle_status, ["refresh_payment_status","refresh_payment_status_with_http_info"]) - post_body = MLEUtility.encrypt_request_payload(@api_client.merchantconfig, post_body) + begin + post_body = MLEUtility.encrypt_request_payload(@api_client.merchantconfig, post_body) + rescue + raise + end end auth_names = [] data, status_code, headers = @api_client.call_api(:POST, local_var_path, @@ -461,7 +481,11 @@ def update_session_req_with_http_info(create_session_request, id, opts = {}) post_body = sdk_tracker.insert_developer_id_tracker(post_body, 'CreateSessionRequest', @api_client.config.host, @api_client.merchantconfig.defaultDeveloperId) inbound_mle_status = "optional" if MLEUtility.check_is_mle_for_API(@api_client.merchantconfig, inbound_mle_status, ["update_session_req","update_session_req_with_http_info"]) - post_body = MLEUtility.encrypt_request_payload(@api_client.merchantconfig, post_body) + begin + post_body = MLEUtility.encrypt_request_payload(@api_client.merchantconfig, post_body) + rescue + raise + end end auth_names = [] data, status_code, headers = @api_client.call_api(:PATCH, local_var_path, diff --git a/lib/cybersource_rest_client/api/payouts_api.rb b/lib/cybersource_rest_client/api/payouts_api.rb index a7f29949..ae1809fa 100644 --- a/lib/cybersource_rest_client/api/payouts_api.rb +++ b/lib/cybersource_rest_client/api/payouts_api.rb @@ -72,7 +72,11 @@ def oct_create_payment_with_http_info(oct_create_payment_request, opts = {}) post_body = sdk_tracker.insert_developer_id_tracker(post_body, 'OctCreatePaymentRequest', @api_client.config.host, @api_client.merchantconfig.defaultDeveloperId) inbound_mle_status = "optional" if MLEUtility.check_is_mle_for_API(@api_client.merchantconfig, inbound_mle_status, ["oct_create_payment","oct_create_payment_with_http_info"]) - post_body = MLEUtility.encrypt_request_payload(@api_client.merchantconfig, post_body) + begin + post_body = MLEUtility.encrypt_request_payload(@api_client.merchantconfig, post_body) + rescue + raise + end end auth_names = [] data, status_code, headers = @api_client.call_api(:POST, local_var_path, diff --git a/lib/cybersource_rest_client/api/plans_api.rb b/lib/cybersource_rest_client/api/plans_api.rb index 9a5883d8..80add34a 100644 --- a/lib/cybersource_rest_client/api/plans_api.rb +++ b/lib/cybersource_rest_client/api/plans_api.rb @@ -74,7 +74,11 @@ def activate_plan_with_http_info(id, opts = {}) end inbound_mle_status = "false" if MLEUtility.check_is_mle_for_API(@api_client.merchantconfig, inbound_mle_status, ["activate_plan","activate_plan_with_http_info"]) - post_body = MLEUtility.encrypt_request_payload(@api_client.merchantconfig, post_body) + begin + post_body = MLEUtility.encrypt_request_payload(@api_client.merchantconfig, post_body) + rescue + raise + end end auth_names = [] data, status_code, headers = @api_client.call_api(:POST, local_var_path, @@ -147,7 +151,11 @@ def create_plan_with_http_info(create_plan_request, opts = {}) post_body = sdk_tracker.insert_developer_id_tracker(post_body, 'CreatePlanRequest', @api_client.config.host, @api_client.merchantconfig.defaultDeveloperId) inbound_mle_status = "false" if MLEUtility.check_is_mle_for_API(@api_client.merchantconfig, inbound_mle_status, ["create_plan","create_plan_with_http_info"]) - post_body = MLEUtility.encrypt_request_payload(@api_client.merchantconfig, post_body) + begin + post_body = MLEUtility.encrypt_request_payload(@api_client.merchantconfig, post_body) + rescue + raise + end end auth_names = [] data, status_code, headers = @api_client.call_api(:POST, local_var_path, @@ -222,7 +230,11 @@ def deactivate_plan_with_http_info(id, opts = {}) end inbound_mle_status = "false" if MLEUtility.check_is_mle_for_API(@api_client.merchantconfig, inbound_mle_status, ["deactivate_plan","deactivate_plan_with_http_info"]) - post_body = MLEUtility.encrypt_request_payload(@api_client.merchantconfig, post_body) + begin + post_body = MLEUtility.encrypt_request_payload(@api_client.merchantconfig, post_body) + rescue + raise + end end auth_names = [] data, status_code, headers = @api_client.call_api(:POST, local_var_path, @@ -297,7 +309,11 @@ def delete_plan_with_http_info(id, opts = {}) end inbound_mle_status = "false" if MLEUtility.check_is_mle_for_API(@api_client.merchantconfig, inbound_mle_status, ["delete_plan","delete_plan_with_http_info"]) - post_body = MLEUtility.encrypt_request_payload(@api_client.merchantconfig, post_body) + begin + post_body = MLEUtility.encrypt_request_payload(@api_client.merchantconfig, post_body) + rescue + raise + end end auth_names = [] data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, @@ -372,7 +388,11 @@ def get_plan_with_http_info(id, opts = {}) end inbound_mle_status = "false" if MLEUtility.check_is_mle_for_API(@api_client.merchantconfig, inbound_mle_status, ["get_plan","get_plan_with_http_info"]) - post_body = MLEUtility.encrypt_request_payload(@api_client.merchantconfig, post_body) + begin + post_body = MLEUtility.encrypt_request_payload(@api_client.merchantconfig, post_body) + rescue + raise + end end auth_names = [] data, status_code, headers = @api_client.call_api(:GET, local_var_path, @@ -441,7 +461,11 @@ def get_plan_code_with_http_info(opts = {}) end inbound_mle_status = "false" if MLEUtility.check_is_mle_for_API(@api_client.merchantconfig, inbound_mle_status, ["get_plan_code","get_plan_code_with_http_info"]) - post_body = MLEUtility.encrypt_request_payload(@api_client.merchantconfig, post_body) + begin + post_body = MLEUtility.encrypt_request_payload(@api_client.merchantconfig, post_body) + rescue + raise + end end auth_names = [] data, status_code, headers = @api_client.call_api(:GET, local_var_path, @@ -525,7 +549,11 @@ def get_plans_with_http_info(opts = {}) end inbound_mle_status = "false" if MLEUtility.check_is_mle_for_API(@api_client.merchantconfig, inbound_mle_status, ["get_plans","get_plans_with_http_info"]) - post_body = MLEUtility.encrypt_request_payload(@api_client.merchantconfig, post_body) + begin + post_body = MLEUtility.encrypt_request_payload(@api_client.merchantconfig, post_body) + rescue + raise + end end auth_names = [] data, status_code, headers = @api_client.call_api(:GET, local_var_path, @@ -604,7 +632,11 @@ def update_plan_with_http_info(id, update_plan_request, opts = {}) post_body = sdk_tracker.insert_developer_id_tracker(post_body, 'UpdatePlanRequest', @api_client.config.host, @api_client.merchantconfig.defaultDeveloperId) inbound_mle_status = "false" if MLEUtility.check_is_mle_for_API(@api_client.merchantconfig, inbound_mle_status, ["update_plan","update_plan_with_http_info"]) - post_body = MLEUtility.encrypt_request_payload(@api_client.merchantconfig, post_body) + begin + post_body = MLEUtility.encrypt_request_payload(@api_client.merchantconfig, post_body) + rescue + raise + end end auth_names = [] data, status_code, headers = @api_client.call_api(:PATCH, local_var_path, diff --git a/lib/cybersource_rest_client/api/purchase_and_refund_details_api.rb b/lib/cybersource_rest_client/api/purchase_and_refund_details_api.rb index a7f58604..40abebeb 100644 --- a/lib/cybersource_rest_client/api/purchase_and_refund_details_api.rb +++ b/lib/cybersource_rest_client/api/purchase_and_refund_details_api.rb @@ -104,7 +104,11 @@ def get_purchase_and_refund_details_with_http_info(start_time, end_time, opts = end inbound_mle_status = "false" if MLEUtility.check_is_mle_for_API(@api_client.merchantconfig, inbound_mle_status, ["get_purchase_and_refund_details","get_purchase_and_refund_details_with_http_info"]) - post_body = MLEUtility.encrypt_request_payload(@api_client.merchantconfig, post_body) + begin + post_body = MLEUtility.encrypt_request_payload(@api_client.merchantconfig, post_body) + rescue + raise + end end auth_names = [] data, status_code, headers = @api_client.call_api(:GET, local_var_path, diff --git a/lib/cybersource_rest_client/api/push_funds_api.rb b/lib/cybersource_rest_client/api/push_funds_api.rb index d49a7b5d..ff63e95c 100644 --- a/lib/cybersource_rest_client/api/push_funds_api.rb +++ b/lib/cybersource_rest_client/api/push_funds_api.rb @@ -114,7 +114,11 @@ def create_push_funds_transfer_with_http_info(push_funds_request, content_type, post_body = sdk_tracker.insert_developer_id_tracker(post_body, 'PushFundsRequest', @api_client.config.host, @api_client.merchantconfig.defaultDeveloperId) inbound_mle_status = "optional" if MLEUtility.check_is_mle_for_API(@api_client.merchantconfig, inbound_mle_status, ["create_push_funds_transfer","create_push_funds_transfer_with_http_info"]) - post_body = MLEUtility.encrypt_request_payload(@api_client.merchantconfig, post_body) + begin + post_body = MLEUtility.encrypt_request_payload(@api_client.merchantconfig, post_body) + rescue + raise + end end auth_names = [] data, status_code, headers = @api_client.call_api(:POST, local_var_path, diff --git a/lib/cybersource_rest_client/api/refund_api.rb b/lib/cybersource_rest_client/api/refund_api.rb index b49d8e3a..6342daa0 100644 --- a/lib/cybersource_rest_client/api/refund_api.rb +++ b/lib/cybersource_rest_client/api/refund_api.rb @@ -78,7 +78,11 @@ def refund_capture_with_http_info(refund_capture_request, id, opts = {}) post_body = sdk_tracker.insert_developer_id_tracker(post_body, 'RefundCaptureRequest', @api_client.config.host, @api_client.merchantconfig.defaultDeveloperId) inbound_mle_status = "optional" if MLEUtility.check_is_mle_for_API(@api_client.merchantconfig, inbound_mle_status, ["refund_capture","refund_capture_with_http_info"]) - post_body = MLEUtility.encrypt_request_payload(@api_client.merchantconfig, post_body) + begin + post_body = MLEUtility.encrypt_request_payload(@api_client.merchantconfig, post_body) + rescue + raise + end end auth_names = [] data, status_code, headers = @api_client.call_api(:POST, local_var_path, @@ -157,7 +161,11 @@ def refund_payment_with_http_info(refund_payment_request, id, opts = {}) post_body = sdk_tracker.insert_developer_id_tracker(post_body, 'RefundPaymentRequest', @api_client.config.host, @api_client.merchantconfig.defaultDeveloperId) inbound_mle_status = "optional" if MLEUtility.check_is_mle_for_API(@api_client.merchantconfig, inbound_mle_status, ["refund_payment","refund_payment_with_http_info"]) - post_body = MLEUtility.encrypt_request_payload(@api_client.merchantconfig, post_body) + begin + post_body = MLEUtility.encrypt_request_payload(@api_client.merchantconfig, post_body) + rescue + raise + end end auth_names = [] data, status_code, headers = @api_client.call_api(:POST, local_var_path, diff --git a/lib/cybersource_rest_client/api/report_definitions_api.rb b/lib/cybersource_rest_client/api/report_definitions_api.rb index ae0e00c8..b7d73443 100644 --- a/lib/cybersource_rest_client/api/report_definitions_api.rb +++ b/lib/cybersource_rest_client/api/report_definitions_api.rb @@ -87,7 +87,11 @@ def get_resource_info_by_report_definition_with_http_info(report_definition_name end inbound_mle_status = "false" if MLEUtility.check_is_mle_for_API(@api_client.merchantconfig, inbound_mle_status, ["get_resource_info_by_report_definition","get_resource_info_by_report_definition_with_http_info"]) - post_body = MLEUtility.encrypt_request_payload(@api_client.merchantconfig, post_body) + begin + post_body = MLEUtility.encrypt_request_payload(@api_client.merchantconfig, post_body) + rescue + raise + end end auth_names = [] data, status_code, headers = @api_client.call_api(:GET, local_var_path, @@ -166,7 +170,11 @@ def get_resource_v2_info_with_http_info(opts = {}) end inbound_mle_status = "false" if MLEUtility.check_is_mle_for_API(@api_client.merchantconfig, inbound_mle_status, ["get_resource_v2_info","get_resource_v2_info_with_http_info"]) - post_body = MLEUtility.encrypt_request_payload(@api_client.merchantconfig, post_body) + begin + post_body = MLEUtility.encrypt_request_payload(@api_client.merchantconfig, post_body) + rescue + raise + end end auth_names = [] data, status_code, headers = @api_client.call_api(:GET, local_var_path, diff --git a/lib/cybersource_rest_client/api/report_downloads_api.rb b/lib/cybersource_rest_client/api/report_downloads_api.rb index ffe21fa8..cf2966d1 100644 --- a/lib/cybersource_rest_client/api/report_downloads_api.rb +++ b/lib/cybersource_rest_client/api/report_downloads_api.rb @@ -89,7 +89,11 @@ def download_report_with_http_info(report_date, report_name, opts = {}) end inbound_mle_status = "false" if MLEUtility.check_is_mle_for_API(@api_client.merchantconfig, inbound_mle_status, ["download_report","download_report_with_http_info"]) - post_body = MLEUtility.encrypt_request_payload(@api_client.merchantconfig, post_body) + begin + post_body = MLEUtility.encrypt_request_payload(@api_client.merchantconfig, post_body) + rescue + raise + end end auth_names = [] data, status_code, headers = @api_client.call_api(:GET, local_var_path, diff --git a/lib/cybersource_rest_client/api/report_subscriptions_api.rb b/lib/cybersource_rest_client/api/report_subscriptions_api.rb index 612349d0..e6c3654a 100644 --- a/lib/cybersource_rest_client/api/report_subscriptions_api.rb +++ b/lib/cybersource_rest_client/api/report_subscriptions_api.rb @@ -79,7 +79,11 @@ def create_standard_or_classic_subscription_with_http_info(predefined_subscripti post_body = sdk_tracker.insert_developer_id_tracker(post_body, 'PredefinedSubscriptionRequestBean', @api_client.config.host, @api_client.merchantconfig.defaultDeveloperId) inbound_mle_status = "false" if MLEUtility.check_is_mle_for_API(@api_client.merchantconfig, inbound_mle_status, ["create_standard_or_classic_subscription","create_standard_or_classic_subscription_with_http_info"]) - post_body = MLEUtility.encrypt_request_payload(@api_client.merchantconfig, post_body) + begin + post_body = MLEUtility.encrypt_request_payload(@api_client.merchantconfig, post_body) + rescue + raise + end end auth_names = [] data, status_code, headers = @api_client.call_api(:PUT, local_var_path, @@ -158,7 +162,11 @@ def create_subscription_with_http_info(create_report_subscription_request, opts post_body = sdk_tracker.insert_developer_id_tracker(post_body, 'CreateReportSubscriptionRequest', @api_client.config.host, @api_client.merchantconfig.defaultDeveloperId) inbound_mle_status = "false" if MLEUtility.check_is_mle_for_API(@api_client.merchantconfig, inbound_mle_status, ["create_subscription","create_subscription_with_http_info"]) - post_body = MLEUtility.encrypt_request_payload(@api_client.merchantconfig, post_body) + begin + post_body = MLEUtility.encrypt_request_payload(@api_client.merchantconfig, post_body) + rescue + raise + end end auth_names = [] data, status_code, headers = @api_client.call_api(:PUT, local_var_path, @@ -243,7 +251,11 @@ def delete_subscription_with_http_info(report_name, opts = {}) end inbound_mle_status = "false" if MLEUtility.check_is_mle_for_API(@api_client.merchantconfig, inbound_mle_status, ["delete_subscription","delete_subscription_with_http_info"]) - post_body = MLEUtility.encrypt_request_payload(@api_client.merchantconfig, post_body) + begin + post_body = MLEUtility.encrypt_request_payload(@api_client.merchantconfig, post_body) + rescue + raise + end end auth_names = [] data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, @@ -318,7 +330,11 @@ def get_all_subscriptions_with_http_info(opts = {}) end inbound_mle_status = "false" if MLEUtility.check_is_mle_for_API(@api_client.merchantconfig, inbound_mle_status, ["get_all_subscriptions","get_all_subscriptions_with_http_info"]) - post_body = MLEUtility.encrypt_request_payload(@api_client.merchantconfig, post_body) + begin + post_body = MLEUtility.encrypt_request_payload(@api_client.merchantconfig, post_body) + rescue + raise + end end auth_names = [] data, status_code, headers = @api_client.call_api(:GET, local_var_path, @@ -404,7 +420,11 @@ def get_subscription_with_http_info(report_name, opts = {}) end inbound_mle_status = "false" if MLEUtility.check_is_mle_for_API(@api_client.merchantconfig, inbound_mle_status, ["get_subscription","get_subscription_with_http_info"]) - post_body = MLEUtility.encrypt_request_payload(@api_client.merchantconfig, post_body) + begin + post_body = MLEUtility.encrypt_request_payload(@api_client.merchantconfig, post_body) + rescue + raise + end end auth_names = [] data, status_code, headers = @api_client.call_api(:GET, local_var_path, diff --git a/lib/cybersource_rest_client/api/reports_api.rb b/lib/cybersource_rest_client/api/reports_api.rb index e7a263c3..92d4f254 100644 --- a/lib/cybersource_rest_client/api/reports_api.rb +++ b/lib/cybersource_rest_client/api/reports_api.rb @@ -79,7 +79,11 @@ def create_report_with_http_info(create_adhoc_report_request, opts = {}) post_body = sdk_tracker.insert_developer_id_tracker(post_body, 'CreateAdhocReportRequest', @api_client.config.host, @api_client.merchantconfig.defaultDeveloperId) inbound_mle_status = "false" if MLEUtility.check_is_mle_for_API(@api_client.merchantconfig, inbound_mle_status, ["create_report","create_report_with_http_info"]) - post_body = MLEUtility.encrypt_request_payload(@api_client.merchantconfig, post_body) + begin + post_body = MLEUtility.encrypt_request_payload(@api_client.merchantconfig, post_body) + rescue + raise + end end auth_names = [] data, status_code, headers = @api_client.call_api(:POST, local_var_path, @@ -160,7 +164,11 @@ def get_report_by_report_id_with_http_info(report_id, opts = {}) end inbound_mle_status = "false" if MLEUtility.check_is_mle_for_API(@api_client.merchantconfig, inbound_mle_status, ["get_report_by_report_id","get_report_by_report_id_with_http_info"]) - post_body = MLEUtility.encrypt_request_payload(@api_client.merchantconfig, post_body) + begin + post_body = MLEUtility.encrypt_request_payload(@api_client.merchantconfig, post_body) + rescue + raise + end end auth_names = [] data, status_code, headers = @api_client.call_api(:GET, local_var_path, @@ -272,7 +280,11 @@ def search_reports_with_http_info(start_time, end_time, time_query_type, opts = end inbound_mle_status = "false" if MLEUtility.check_is_mle_for_API(@api_client.merchantconfig, inbound_mle_status, ["search_reports","search_reports_with_http_info"]) - post_body = MLEUtility.encrypt_request_payload(@api_client.merchantconfig, post_body) + begin + post_body = MLEUtility.encrypt_request_payload(@api_client.merchantconfig, post_body) + rescue + raise + end end auth_names = [] data, status_code, headers = @api_client.call_api(:GET, local_var_path, diff --git a/lib/cybersource_rest_client/api/retrieval_details_api.rb b/lib/cybersource_rest_client/api/retrieval_details_api.rb index 952605d6..f8d24267 100644 --- a/lib/cybersource_rest_client/api/retrieval_details_api.rb +++ b/lib/cybersource_rest_client/api/retrieval_details_api.rb @@ -89,7 +89,11 @@ def get_retrieval_details_with_http_info(start_time, end_time, opts = {}) end inbound_mle_status = "false" if MLEUtility.check_is_mle_for_API(@api_client.merchantconfig, inbound_mle_status, ["get_retrieval_details","get_retrieval_details_with_http_info"]) - post_body = MLEUtility.encrypt_request_payload(@api_client.merchantconfig, post_body) + begin + post_body = MLEUtility.encrypt_request_payload(@api_client.merchantconfig, post_body) + rescue + raise + end end auth_names = [] data, status_code, headers = @api_client.call_api(:GET, local_var_path, diff --git a/lib/cybersource_rest_client/api/retrieval_summaries_api.rb b/lib/cybersource_rest_client/api/retrieval_summaries_api.rb index 94822a42..701c7de8 100644 --- a/lib/cybersource_rest_client/api/retrieval_summaries_api.rb +++ b/lib/cybersource_rest_client/api/retrieval_summaries_api.rb @@ -89,7 +89,11 @@ def get_retrieval_summary_with_http_info(start_time, end_time, opts = {}) end inbound_mle_status = "false" if MLEUtility.check_is_mle_for_API(@api_client.merchantconfig, inbound_mle_status, ["get_retrieval_summary","get_retrieval_summary_with_http_info"]) - post_body = MLEUtility.encrypt_request_payload(@api_client.merchantconfig, post_body) + begin + post_body = MLEUtility.encrypt_request_payload(@api_client.merchantconfig, post_body) + rescue + raise + end end auth_names = [] data, status_code, headers = @api_client.call_api(:GET, local_var_path, diff --git a/lib/cybersource_rest_client/api/reversal_api.rb b/lib/cybersource_rest_client/api/reversal_api.rb index 9e763174..97cd3d32 100644 --- a/lib/cybersource_rest_client/api/reversal_api.rb +++ b/lib/cybersource_rest_client/api/reversal_api.rb @@ -78,7 +78,11 @@ def auth_reversal_with_http_info(id, auth_reversal_request, opts = {}) post_body = sdk_tracker.insert_developer_id_tracker(post_body, 'AuthReversalRequest', @api_client.config.host, @api_client.merchantconfig.defaultDeveloperId) inbound_mle_status = "optional" if MLEUtility.check_is_mle_for_API(@api_client.merchantconfig, inbound_mle_status, ["auth_reversal","auth_reversal_with_http_info"]) - post_body = MLEUtility.encrypt_request_payload(@api_client.merchantconfig, post_body) + begin + post_body = MLEUtility.encrypt_request_payload(@api_client.merchantconfig, post_body) + rescue + raise + end end auth_names = [] data, status_code, headers = @api_client.call_api(:POST, local_var_path, @@ -151,7 +155,11 @@ def mit_reversal_with_http_info(mit_reversal_request, opts = {}) post_body = sdk_tracker.insert_developer_id_tracker(post_body, 'MitReversalRequest', @api_client.config.host, @api_client.merchantconfig.defaultDeveloperId) inbound_mle_status = "optional" if MLEUtility.check_is_mle_for_API(@api_client.merchantconfig, inbound_mle_status, ["mit_reversal","mit_reversal_with_http_info"]) - post_body = MLEUtility.encrypt_request_payload(@api_client.merchantconfig, post_body) + begin + post_body = MLEUtility.encrypt_request_payload(@api_client.merchantconfig, post_body) + rescue + raise + end end auth_names = [] data, status_code, headers = @api_client.call_api(:POST, local_var_path, diff --git a/lib/cybersource_rest_client/api/search_transactions_api.rb b/lib/cybersource_rest_client/api/search_transactions_api.rb index 19e2e0bf..8f5744ac 100644 --- a/lib/cybersource_rest_client/api/search_transactions_api.rb +++ b/lib/cybersource_rest_client/api/search_transactions_api.rb @@ -72,7 +72,11 @@ def create_search_with_http_info(create_search_request, opts = {}) post_body = sdk_tracker.insert_developer_id_tracker(post_body, 'CreateSearchRequest', @api_client.config.host, @api_client.merchantconfig.defaultDeveloperId) inbound_mle_status = "false" if MLEUtility.check_is_mle_for_API(@api_client.merchantconfig, inbound_mle_status, ["create_search","create_search_with_http_info"]) - post_body = MLEUtility.encrypt_request_payload(@api_client.merchantconfig, post_body) + begin + post_body = MLEUtility.encrypt_request_payload(@api_client.merchantconfig, post_body) + rescue + raise + end end auth_names = [] data, status_code, headers = @api_client.call_api(:POST, local_var_path, @@ -147,7 +151,11 @@ def get_search_with_http_info(search_id, opts = {}) end inbound_mle_status = "false" if MLEUtility.check_is_mle_for_API(@api_client.merchantconfig, inbound_mle_status, ["get_search","get_search_with_http_info"]) - post_body = MLEUtility.encrypt_request_payload(@api_client.merchantconfig, post_body) + begin + post_body = MLEUtility.encrypt_request_payload(@api_client.merchantconfig, post_body) + rescue + raise + end end auth_names = [] data, status_code, headers = @api_client.call_api(:GET, local_var_path, diff --git a/lib/cybersource_rest_client/api/secure_file_share_api.rb b/lib/cybersource_rest_client/api/secure_file_share_api.rb index 8bbc07dc..20b3a47a 100644 --- a/lib/cybersource_rest_client/api/secure_file_share_api.rb +++ b/lib/cybersource_rest_client/api/secure_file_share_api.rb @@ -81,7 +81,11 @@ def get_file_with_http_info(file_id, opts = {}) end inbound_mle_status = "false" if MLEUtility.check_is_mle_for_API(@api_client.merchantconfig, inbound_mle_status, ["get_file","get_file_with_http_info"]) - post_body = MLEUtility.encrypt_request_payload(@api_client.merchantconfig, post_body) + begin + post_body = MLEUtility.encrypt_request_payload(@api_client.merchantconfig, post_body) + rescue + raise + end end auth_names = [] data, status_code, headers = @api_client.call_api(:GET, local_var_path, @@ -177,7 +181,11 @@ def get_file_detail_with_http_info(start_date, end_date, opts = {}) end inbound_mle_status = "false" if MLEUtility.check_is_mle_for_API(@api_client.merchantconfig, inbound_mle_status, ["get_file_detail","get_file_detail_with_http_info"]) - post_body = MLEUtility.encrypt_request_payload(@api_client.merchantconfig, post_body) + begin + post_body = MLEUtility.encrypt_request_payload(@api_client.merchantconfig, post_body) + rescue + raise + end end auth_names = [] data, status_code, headers = @api_client.call_api(:GET, local_var_path, diff --git a/lib/cybersource_rest_client/api/subscriptions_api.rb b/lib/cybersource_rest_client/api/subscriptions_api.rb index d80d88dd..ccae69bc 100644 --- a/lib/cybersource_rest_client/api/subscriptions_api.rb +++ b/lib/cybersource_rest_client/api/subscriptions_api.rb @@ -19,12 +19,12 @@ def initialize(api_client = ApiClient.default, config) @api_client = api_client @api_client.set_configuration(config) end - # Activate a Subscription - # Activate a `SUSPENDED` Subscription + # Reactivating a Suspended Subscription + # # Reactivating a Suspended Subscription You can reactivate a suspended subscription for the next billing cycle. You cannot reactivate a canceled or completed subscription. You can specify whether you want to process missed payments for the period during which the subscription was suspended using the `processMissedPayments` query parameter by setting it to true or false. If no value is specified, the system will default to `true`. **Important:** The \"processMissedPayments\" query parameter is only effective when the Ask each time before reactivating option is selected in the reactivation settings. If any other option is chosen, the value provided in the request will be ignored by the system. For more information, see the [Recurring Billing User Guide](https://developer.cybersource.com/docs/cybs/en-us/recurring-billing/user/all/rest/recurring-billing-user/recurring-billing-user-about-guide.html). You can check how many payments were missed and the total amount by retrieving the subscription details, where you will find the `reactivationInformation` object. See: [Retrieving a Subscription](https://developer.cybersource.com/docs/cybs/en-us/recurring-billing/developer/all/rest/recurring-billing-dev/recur-bill-subscriptions/recur-bill-getting-a-subscription.html). # # @param id Subscription Id # @param [Hash] opts the optional parameters - # @option opts [BOOLEAN] :process_skipped_payments Indicates if skipped payments should be processed from the period when the subscription was suspended. By default, this is set to true. (default to true) + # @option opts [BOOLEAN] :process_missed_payments Indicates if missed payments should be processed from the period when the subscription was suspended. By default, this is set to true. When any option other than \"Ask each time before reactivating\" is selected in the reactivation settings, the value that you enter will be ignored. (default to true) # @return [ActivateSubscriptionResponse] # def activate_subscription(id, opts = {}) @@ -32,11 +32,11 @@ def activate_subscription(id, opts = {}) return data, status_code, headers end - # Activate a Subscription - # Activate a `SUSPENDED` Subscription + # Reactivating a Suspended Subscription + # # Reactivating a Suspended Subscription You can reactivate a suspended subscription for the next billing cycle. You cannot reactivate a canceled or completed subscription. You can specify whether you want to process missed payments for the period during which the subscription was suspended using the `processMissedPayments` query parameter by setting it to true or false. If no value is specified, the system will default to `true`. **Important:** The \"processMissedPayments\" query parameter is only effective when the Ask each time before reactivating option is selected in the reactivation settings. If any other option is chosen, the value provided in the request will be ignored by the system. For more information, see the [Recurring Billing User Guide](https://developer.cybersource.com/docs/cybs/en-us/recurring-billing/user/all/rest/recurring-billing-user/recurring-billing-user-about-guide.html). You can check how many payments were missed and the total amount by retrieving the subscription details, where you will find the `reactivationInformation` object. See: [Retrieving a Subscription](https://developer.cybersource.com/docs/cybs/en-us/recurring-billing/developer/all/rest/recurring-billing-dev/recur-bill-subscriptions/recur-bill-getting-a-subscription.html). # @param id Subscription Id # @param [Hash] opts the optional parameters - # @option opts [BOOLEAN] :process_skipped_payments Indicates if skipped payments should be processed from the period when the subscription was suspended. By default, this is set to true. + # @option opts [BOOLEAN] :process_missed_payments Indicates if missed payments should be processed from the period when the subscription was suspended. By default, this is set to true. When any option other than \"Ask each time before reactivating\" is selected in the reactivation settings, the value that you enter will be ignored. # @return [Array<(ActivateSubscriptionResponse, Fixnum, Hash)>] ActivateSubscriptionResponse data, response status code and response headers def activate_subscription_with_http_info(id, opts = {}) @@ -57,7 +57,7 @@ def activate_subscription_with_http_info(id, opts = {}) # query parameters query_params = {} - query_params[:'processSkippedPayments'] = opts[:'process_skipped_payments'] if !opts[:'process_skipped_payments'].nil? + query_params[:'processMissedPayments'] = opts[:'process_missed_payments'] if !opts[:'process_missed_payments'].nil? # header parameters header_params = {} @@ -77,7 +77,11 @@ def activate_subscription_with_http_info(id, opts = {}) end inbound_mle_status = "false" if MLEUtility.check_is_mle_for_API(@api_client.merchantconfig, inbound_mle_status, ["activate_subscription","activate_subscription_with_http_info"]) - post_body = MLEUtility.encrypt_request_payload(@api_client.merchantconfig, post_body) + begin + post_body = MLEUtility.encrypt_request_payload(@api_client.merchantconfig, post_body) + rescue + raise + end end auth_names = [] data, status_code, headers = @api_client.call_api(:POST, local_var_path, @@ -152,7 +156,11 @@ def cancel_subscription_with_http_info(id, opts = {}) end inbound_mle_status = "false" if MLEUtility.check_is_mle_for_API(@api_client.merchantconfig, inbound_mle_status, ["cancel_subscription","cancel_subscription_with_http_info"]) - post_body = MLEUtility.encrypt_request_payload(@api_client.merchantconfig, post_body) + begin + post_body = MLEUtility.encrypt_request_payload(@api_client.merchantconfig, post_body) + rescue + raise + end end auth_names = [] data, status_code, headers = @api_client.call_api(:POST, local_var_path, @@ -225,7 +233,11 @@ def create_subscription_with_http_info(create_subscription_request, opts = {}) post_body = sdk_tracker.insert_developer_id_tracker(post_body, 'CreateSubscriptionRequest', @api_client.config.host, @api_client.merchantconfig.defaultDeveloperId) inbound_mle_status = "false" if MLEUtility.check_is_mle_for_API(@api_client.merchantconfig, inbound_mle_status, ["create_subscription","create_subscription_with_http_info"]) - post_body = MLEUtility.encrypt_request_payload(@api_client.merchantconfig, post_body) + begin + post_body = MLEUtility.encrypt_request_payload(@api_client.merchantconfig, post_body) + rescue + raise + end end auth_names = [] data, status_code, headers = @api_client.call_api(:POST, local_var_path, @@ -306,7 +318,11 @@ def get_all_subscriptions_with_http_info(opts = {}) end inbound_mle_status = "false" if MLEUtility.check_is_mle_for_API(@api_client.merchantconfig, inbound_mle_status, ["get_all_subscriptions","get_all_subscriptions_with_http_info"]) - post_body = MLEUtility.encrypt_request_payload(@api_client.merchantconfig, post_body) + begin + post_body = MLEUtility.encrypt_request_payload(@api_client.merchantconfig, post_body) + rescue + raise + end end auth_names = [] data, status_code, headers = @api_client.call_api(:GET, local_var_path, @@ -381,7 +397,11 @@ def get_subscription_with_http_info(id, opts = {}) end inbound_mle_status = "false" if MLEUtility.check_is_mle_for_API(@api_client.merchantconfig, inbound_mle_status, ["get_subscription","get_subscription_with_http_info"]) - post_body = MLEUtility.encrypt_request_payload(@api_client.merchantconfig, post_body) + begin + post_body = MLEUtility.encrypt_request_payload(@api_client.merchantconfig, post_body) + rescue + raise + end end auth_names = [] data, status_code, headers = @api_client.call_api(:GET, local_var_path, @@ -450,7 +470,11 @@ def get_subscription_code_with_http_info(opts = {}) end inbound_mle_status = "false" if MLEUtility.check_is_mle_for_API(@api_client.merchantconfig, inbound_mle_status, ["get_subscription_code","get_subscription_code_with_http_info"]) - post_body = MLEUtility.encrypt_request_payload(@api_client.merchantconfig, post_body) + begin + post_body = MLEUtility.encrypt_request_payload(@api_client.merchantconfig, post_body) + rescue + raise + end end auth_names = [] data, status_code, headers = @api_client.call_api(:GET, local_var_path, @@ -471,7 +495,7 @@ def get_subscription_code_with_http_info(opts = {}) return data, status_code, headers end # Suspend a Subscription - # Suspend a Subscription + # Suspend a Subscription # # @param id Subscription Id # @param [Hash] opts the optional parameters @@ -483,7 +507,7 @@ def suspend_subscription(id, opts = {}) end # Suspend a Subscription - # Suspend a Subscription + # Suspend a Subscription # @param id Subscription Id # @param [Hash] opts the optional parameters # @return [Array<(SuspendSubscriptionResponse, Fixnum, Hash)>] SuspendSubscriptionResponse data, response status code and response headers @@ -525,7 +549,11 @@ def suspend_subscription_with_http_info(id, opts = {}) end inbound_mle_status = "false" if MLEUtility.check_is_mle_for_API(@api_client.merchantconfig, inbound_mle_status, ["suspend_subscription","suspend_subscription_with_http_info"]) - post_body = MLEUtility.encrypt_request_payload(@api_client.merchantconfig, post_body) + begin + post_body = MLEUtility.encrypt_request_payload(@api_client.merchantconfig, post_body) + rescue + raise + end end auth_names = [] data, status_code, headers = @api_client.call_api(:POST, local_var_path, @@ -604,7 +632,11 @@ def update_subscription_with_http_info(id, update_subscription, opts = {}) post_body = sdk_tracker.insert_developer_id_tracker(post_body, 'UpdateSubscription', @api_client.config.host, @api_client.merchantconfig.defaultDeveloperId) inbound_mle_status = "false" if MLEUtility.check_is_mle_for_API(@api_client.merchantconfig, inbound_mle_status, ["update_subscription","update_subscription_with_http_info"]) - post_body = MLEUtility.encrypt_request_payload(@api_client.merchantconfig, post_body) + begin + post_body = MLEUtility.encrypt_request_payload(@api_client.merchantconfig, post_body) + rescue + raise + end end auth_names = [] data, status_code, headers = @api_client.call_api(:PATCH, local_var_path, diff --git a/lib/cybersource_rest_client/api/subscriptions_follow_ons_api.rb b/lib/cybersource_rest_client/api/subscriptions_follow_ons_api.rb index 8a3175ce..53ccc578 100644 --- a/lib/cybersource_rest_client/api/subscriptions_follow_ons_api.rb +++ b/lib/cybersource_rest_client/api/subscriptions_follow_ons_api.rb @@ -78,7 +78,11 @@ def create_follow_on_subscription_with_http_info(request_id, create_subscription post_body = sdk_tracker.insert_developer_id_tracker(post_body, 'CreateSubscriptionRequest1', @api_client.config.host, @api_client.merchantconfig.defaultDeveloperId) inbound_mle_status = "false" if MLEUtility.check_is_mle_for_API(@api_client.merchantconfig, inbound_mle_status, ["create_follow_on_subscription","create_follow_on_subscription_with_http_info"]) - post_body = MLEUtility.encrypt_request_payload(@api_client.merchantconfig, post_body) + begin + post_body = MLEUtility.encrypt_request_payload(@api_client.merchantconfig, post_body) + rescue + raise + end end auth_names = [] data, status_code, headers = @api_client.call_api(:POST, local_var_path, @@ -153,7 +157,11 @@ def get_follow_on_subscription_with_http_info(request_id, opts = {}) end inbound_mle_status = "false" if MLEUtility.check_is_mle_for_API(@api_client.merchantconfig, inbound_mle_status, ["get_follow_on_subscription","get_follow_on_subscription_with_http_info"]) - post_body = MLEUtility.encrypt_request_payload(@api_client.merchantconfig, post_body) + begin + post_body = MLEUtility.encrypt_request_payload(@api_client.merchantconfig, post_body) + rescue + raise + end end auth_names = [] data, status_code, headers = @api_client.call_api(:GET, local_var_path, diff --git a/lib/cybersource_rest_client/api/taxes_api.rb b/lib/cybersource_rest_client/api/taxes_api.rb index e1b05ef6..f1d21c22 100644 --- a/lib/cybersource_rest_client/api/taxes_api.rb +++ b/lib/cybersource_rest_client/api/taxes_api.rb @@ -72,7 +72,11 @@ def calculate_tax_with_http_info(tax_request, opts = {}) post_body = sdk_tracker.insert_developer_id_tracker(post_body, 'TaxRequest', @api_client.config.host, @api_client.merchantconfig.defaultDeveloperId) inbound_mle_status = "false" if MLEUtility.check_is_mle_for_API(@api_client.merchantconfig, inbound_mle_status, ["calculate_tax","calculate_tax_with_http_info"]) - post_body = MLEUtility.encrypt_request_payload(@api_client.merchantconfig, post_body) + begin + post_body = MLEUtility.encrypt_request_payload(@api_client.merchantconfig, post_body) + rescue + raise + end end auth_names = [] data, status_code, headers = @api_client.call_api(:POST, local_var_path, @@ -151,7 +155,11 @@ def void_tax_with_http_info(void_tax_request, id, opts = {}) post_body = sdk_tracker.insert_developer_id_tracker(post_body, 'VoidTaxRequest', @api_client.config.host, @api_client.merchantconfig.defaultDeveloperId) inbound_mle_status = "false" if MLEUtility.check_is_mle_for_API(@api_client.merchantconfig, inbound_mle_status, ["void_tax","void_tax_with_http_info"]) - post_body = MLEUtility.encrypt_request_payload(@api_client.merchantconfig, post_body) + begin + post_body = MLEUtility.encrypt_request_payload(@api_client.merchantconfig, post_body) + rescue + raise + end end auth_names = [] data, status_code, headers = @api_client.call_api(:PATCH, local_var_path, diff --git a/lib/cybersource_rest_client/api/token_api.rb b/lib/cybersource_rest_client/api/token_api.rb index 49e4b175..0828436c 100644 --- a/lib/cybersource_rest_client/api/token_api.rb +++ b/lib/cybersource_rest_client/api/token_api.rb @@ -26,7 +26,7 @@ def initialize(api_client = ApiClient.default, config) # @param token_provider The token provider. # @param asset_type The type of asset. # @param [Hash] opts the optional parameters - # @return [InlineResponse200] + # @return [InlineResponse2001] # def get_card_art_asset(instrument_identifier_id, token_provider, asset_type, opts = {}) data, status_code, headers = get_card_art_asset_with_http_info(instrument_identifier_id, token_provider, asset_type, opts) @@ -39,7 +39,7 @@ def get_card_art_asset(instrument_identifier_id, token_provider, asset_type, opt # @param token_provider The token provider. # @param asset_type The type of asset. # @param [Hash] opts the optional parameters - # @return [Array<(InlineResponse200, Fixnum, Hash)>] InlineResponse200 data, response status code and response headers + # @return [Array<(InlineResponse2001, Fixnum, Hash)>] InlineResponse2001 data, response status code and response headers def get_card_art_asset_with_http_info(instrument_identifier_id, token_provider, asset_type, opts = {}) if @api_client.config.debugging @@ -94,7 +94,11 @@ def get_card_art_asset_with_http_info(instrument_identifier_id, token_provider, end inbound_mle_status = "false" if MLEUtility.check_is_mle_for_API(@api_client.merchantconfig, inbound_mle_status, ["get_card_art_asset","get_card_art_asset_with_http_info"]) - post_body = MLEUtility.encrypt_request_payload(@api_client.merchantconfig, post_body) + begin + post_body = MLEUtility.encrypt_request_payload(@api_client.merchantconfig, post_body) + rescue + raise + end end auth_names = [] data, status_code, headers = @api_client.call_api(:GET, local_var_path, @@ -103,7 +107,7 @@ def get_card_art_asset_with_http_info(instrument_identifier_id, token_provider, :form_params => form_params, :body => post_body, :auth_names => auth_names, - :return_type => 'InlineResponse200') + :return_type => 'InlineResponse2001') if @api_client.config.debugging begin raise @@ -174,9 +178,13 @@ def post_token_payment_credentials_with_http_info(token_id, post_payment_credent post_body = @api_client.object_to_http_body(post_payment_credentials_request) sdk_tracker = SdkTracker.new post_body = sdk_tracker.insert_developer_id_tracker(post_body, 'PostPaymentCredentialsRequest', @api_client.config.host, @api_client.merchantconfig.defaultDeveloperId) - inbound_mle_status = "false" + inbound_mle_status = "optional" if MLEUtility.check_is_mle_for_API(@api_client.merchantconfig, inbound_mle_status, ["post_token_payment_credentials","post_token_payment_credentials_with_http_info"]) - post_body = MLEUtility.encrypt_request_payload(@api_client.merchantconfig, post_body) + begin + post_body = MLEUtility.encrypt_request_payload(@api_client.merchantconfig, post_body) + rescue + raise + end end auth_names = [] data, status_code, headers = @api_client.call_api(:POST, local_var_path, diff --git a/lib/cybersource_rest_client/api/tokenize_api.rb b/lib/cybersource_rest_client/api/tokenize_api.rb new file mode 100644 index 00000000..d05c567a --- /dev/null +++ b/lib/cybersource_rest_client/api/tokenize_api.rb @@ -0,0 +1,103 @@ +=begin +#CyberSource Merged Spec + +#All CyberSource API specs merged together. These are available at https://developer.cybersource.com/api/reference/api-reference.html + +OpenAPI spec version: 0.0.1 + +Generated by: https://github.com/swagger-api/swagger-codegen.git +Swagger Codegen version: 2.4.38 +=end + +require 'uri' +require 'AuthenticationSDK/util/MLEUtility' +module CyberSource + class TokenizeApi + attr_accessor :api_client + + def initialize(api_client = ApiClient.default, config) + @api_client = api_client + @api_client.set_configuration(config) + end + # Tokenize + # | | | | | --- | --- | --- | |The **Tokenize API** endpoint facilitates the creation of various TMS tokens such as Customers, Payment Instruments, Shipping Addresses, and Instrument Identifiers in a single operation. The request includes a processingInformation object, which specifies **\"TOKEN_CREATE\"** and the types of tokens to be created. The **tokenInformation** section of the request includes detailed information relevant to each token type. This includes attributes for Customers, Payment Instruments, Shipping Addresses, Instrument Identifiers and Transient Token data. The payload is flexible, allowing for different combinations of tokens to be created in a single request.|      |The **API response** includes a responses array, which details the outcome of the tokenization process for each requested resource type, such as Customer, Payment Instrument, Shipping Address, and Instrument Identifier. Each entry in this array provides an HTTP status code such as **201/200 for successful creations**, and a unique identifier for the newly created token.
In cases where token creation encounters issues, the response includes a **non-2XX** status code and an errors array for the affected resource. Each error object in the array details the **error type and a descriptive message** providing insight into why a particular token creation was not attempted or failed. + # + # @param post_tokenize_request + # @param [Hash] opts the optional parameters + # @option opts [String] :profile_id The Id of a profile containing user specific TMS configuration. + # @return [InlineResponse200] + # + def tokenize(post_tokenize_request, opts = {}) + data, status_code, headers = tokenize_with_http_info(post_tokenize_request, opts) + return data, status_code, headers + end + + # Tokenize + # | | | | | --- | --- | --- | |The **Tokenize API** endpoint facilitates the creation of various TMS tokens such as Customers, Payment Instruments, Shipping Addresses, and Instrument Identifiers in a single operation. The request includes a processingInformation object, which specifies **\"TOKEN_CREATE\"** and the types of tokens to be created. The **tokenInformation** section of the request includes detailed information relevant to each token type. This includes attributes for Customers, Payment Instruments, Shipping Addresses, Instrument Identifiers and Transient Token data. The payload is flexible, allowing for different combinations of tokens to be created in a single request.|&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;|The **API response** includes a responses array, which details the outcome of the tokenization process for each requested resource type, such as Customer, Payment Instrument, Shipping Address, and Instrument Identifier. Each entry in this array provides an HTTP status code such as **201/200 for successful creations**, and a unique identifier for the newly created token.<br>In cases where token creation encounters issues, the response includes a **non-2XX** status code and an errors array for the affected resource. Each error object in the array details the **error type and a descriptive message** providing insight into why a particular token creation was not attempted or failed. + # @param post_tokenize_request + # @param [Hash] opts the optional parameters + # @option opts [String] :profile_id The Id of a profile containing user specific TMS configuration. + # @return [Array<(InlineResponse200, Fixnum, Hash)>] InlineResponse200 data, response status code and response headers + def tokenize_with_http_info(post_tokenize_request, opts = {}) + + if @api_client.config.debugging + begin + raise + @api_client.config.logger.debug 'Calling API: TokenizeApi.tokenize ...' + rescue + puts 'Cannot write to log' + end + end + # verify the required parameter 'post_tokenize_request' is set + if @api_client.config.client_side_validation && post_tokenize_request.nil? + fail ArgumentError, "Missing the required parameter 'post_tokenize_request' when calling TokenizeApi.tokenize" + end + # resource path + local_var_path = 'tms/v2/tokenize' + + # query parameters + query_params = {} + + # header parameters + header_params = {} + # HTTP header 'Accept' (if needed) + header_params['Accept'] = @api_client.select_header_accept(['application/json;charset=utf-8']) + # HTTP header 'Content-Type' + header_params['Content-Type'] = @api_client.select_header_content_type(['application/json;charset=utf-8']) + header_params[:'profile-id'] = opts[:'profile_id'] if !opts[:'profile_id'].nil? + + # form parameters + form_params = {} + + # http body (model) + post_body = @api_client.object_to_http_body(post_tokenize_request) + sdk_tracker = SdkTracker.new + post_body = sdk_tracker.insert_developer_id_tracker(post_body, 'PostTokenizeRequest', @api_client.config.host, @api_client.merchantconfig.defaultDeveloperId) + inbound_mle_status = "mandatory" + if MLEUtility.check_is_mle_for_API(@api_client.merchantconfig, inbound_mle_status, ["tokenize","tokenize_with_http_info"]) + begin + post_body = MLEUtility.encrypt_request_payload(@api_client.merchantconfig, post_body) + rescue + raise + end + end + auth_names = [] + data, status_code, headers = @api_client.call_api(:POST, local_var_path, + :header_params => header_params, + :query_params => query_params, + :form_params => form_params, + :body => post_body, + :auth_names => auth_names, + :return_type => 'InlineResponse200') + if @api_client.config.debugging + begin + raise + @api_client.config.logger.debug "API called: TokenizeApi#tokenize\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" + rescue + puts 'Cannot write to log' + end + end + return data, status_code, headers + end + end +end diff --git a/lib/cybersource_rest_client/api/tokenized_card_api.rb b/lib/cybersource_rest_client/api/tokenized_card_api.rb index 74996d55..1be00c2e 100644 --- a/lib/cybersource_rest_client/api/tokenized_card_api.rb +++ b/lib/cybersource_rest_client/api/tokenized_card_api.rb @@ -77,7 +77,11 @@ def delete_tokenized_card_with_http_info(tokenized_card_id, opts = {}) end inbound_mle_status = "false" if MLEUtility.check_is_mle_for_API(@api_client.merchantconfig, inbound_mle_status, ["delete_tokenized_card","delete_tokenized_card_with_http_info"]) - post_body = MLEUtility.encrypt_request_payload(@api_client.merchantconfig, post_body) + begin + post_body = MLEUtility.encrypt_request_payload(@api_client.merchantconfig, post_body) + rescue + raise + end end auth_names = [] data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, @@ -154,7 +158,11 @@ def get_tokenized_card_with_http_info(tokenized_card_id, opts = {}) end inbound_mle_status = "false" if MLEUtility.check_is_mle_for_API(@api_client.merchantconfig, inbound_mle_status, ["get_tokenized_card","get_tokenized_card_with_http_info"]) - post_body = MLEUtility.encrypt_request_payload(@api_client.merchantconfig, post_body) + begin + post_body = MLEUtility.encrypt_request_payload(@api_client.merchantconfig, post_body) + rescue + raise + end end auth_names = [] data, status_code, headers = @api_client.call_api(:GET, local_var_path, @@ -174,6 +182,95 @@ def get_tokenized_card_with_http_info(tokenized_card_id, opts = {}) end return data, status_code, headers end + # Simulate Issuer Life Cycle Management Events + # **Lifecycle Management Events**
Simulates an issuer life cycle manegement event for updates on the tokenized card. The events that can be simulated are: - Token status changes (e.g. active, suspended, deleted) - Updates to the underlying card, including card art changes, expiration date changes, and card number suffix. **Note:** This is only available in CAS environment. + # + # @param profile_id The Id of a profile containing user specific TMS configuration. + # @param tokenized_card_id The Id of a tokenized card. + # @param post_issuer_life_cycle_simulation_request + # @param [Hash] opts the optional parameters + # @return [nil] + # + def post_issuer_life_cycle_simulation(profile_id, tokenized_card_id, post_issuer_life_cycle_simulation_request, opts = {}) + data, status_code, headers = post_issuer_life_cycle_simulation_with_http_info(profile_id, tokenized_card_id, post_issuer_life_cycle_simulation_request, opts) + return data, status_code, headers + end + + # Simulate Issuer Life Cycle Management Events + # **Lifecycle Management Events**<br>Simulates an issuer life cycle manegement event for updates on the tokenized card. The events that can be simulated are: - Token status changes (e.g. active, suspended, deleted) - Updates to the underlying card, including card art changes, expiration date changes, and card number suffix. **Note:** This is only available in CAS environment. + # @param profile_id The Id of a profile containing user specific TMS configuration. + # @param tokenized_card_id The Id of a tokenized card. + # @param post_issuer_life_cycle_simulation_request + # @param [Hash] opts the optional parameters + # @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers + def post_issuer_life_cycle_simulation_with_http_info(profile_id, tokenized_card_id, post_issuer_life_cycle_simulation_request, opts = {}) + + if @api_client.config.debugging + begin + raise + @api_client.config.logger.debug 'Calling API: TokenizedCardApi.post_issuer_life_cycle_simulation ...' + rescue + puts 'Cannot write to log' + end + end + # verify the required parameter 'profile_id' is set + if @api_client.config.client_side_validation && profile_id.nil? + fail ArgumentError, "Missing the required parameter 'profile_id' when calling TokenizedCardApi.post_issuer_life_cycle_simulation" + end + # verify the required parameter 'tokenized_card_id' is set + if @api_client.config.client_side_validation && tokenized_card_id.nil? + fail ArgumentError, "Missing the required parameter 'tokenized_card_id' when calling TokenizedCardApi.post_issuer_life_cycle_simulation" + end + # verify the required parameter 'post_issuer_life_cycle_simulation_request' is set + if @api_client.config.client_side_validation && post_issuer_life_cycle_simulation_request.nil? + fail ArgumentError, "Missing the required parameter 'post_issuer_life_cycle_simulation_request' when calling TokenizedCardApi.post_issuer_life_cycle_simulation" + end + # resource path + local_var_path = 'tms/v2/tokenized-cards/{tokenizedCardId}/issuer-life-cycle-event-simulations'.sub('{' + 'tokenizedCardId' + '}', tokenized_card_id.to_s) + + # query parameters + query_params = {} + + # header parameters + header_params = {} + # HTTP header 'Accept' (if needed) + header_params['Accept'] = @api_client.select_header_accept(['application/json;charset=utf-8']) + # HTTP header 'Content-Type' + header_params['Content-Type'] = @api_client.select_header_content_type(['application/json;charset=utf-8']) + header_params[:'profile-id'] = profile_id + + # form parameters + form_params = {} + + # http body (model) + post_body = @api_client.object_to_http_body(post_issuer_life_cycle_simulation_request) + sdk_tracker = SdkTracker.new + post_body = sdk_tracker.insert_developer_id_tracker(post_body, 'PostIssuerLifeCycleSimulationRequest', @api_client.config.host, @api_client.merchantconfig.defaultDeveloperId) + inbound_mle_status = "false" + if MLEUtility.check_is_mle_for_API(@api_client.merchantconfig, inbound_mle_status, ["post_issuer_life_cycle_simulation","post_issuer_life_cycle_simulation_with_http_info"]) + begin + post_body = MLEUtility.encrypt_request_payload(@api_client.merchantconfig, post_body) + rescue + raise + end + end + auth_names = [] + data, status_code, headers = @api_client.call_api(:POST, local_var_path, + :header_params => header_params, + :query_params => query_params, + :form_params => form_params, + :body => post_body, + :auth_names => auth_names) + if @api_client.config.debugging + begin + raise + @api_client.config.logger.debug "API called: TokenizedCardApi#post_issuer_life_cycle_simulation\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" + rescue + puts 'Cannot write to log' + end + end + return data, status_code, headers + end # Create a Tokenized Card # | | | | | --- | --- | --- | |**Tokenized cards**
A Tokenized card represents a network token. Network tokens perform better than regular card numbers and they are not necessarily invalidated when a cardholder loses their card, or it expires. # @@ -228,9 +325,13 @@ def post_tokenized_card_with_http_info(tokenizedcard_request, opts = {}) post_body = @api_client.object_to_http_body(tokenizedcard_request) sdk_tracker = SdkTracker.new post_body = sdk_tracker.insert_developer_id_tracker(post_body, 'TokenizedcardRequest', @api_client.config.host, @api_client.merchantconfig.defaultDeveloperId) - inbound_mle_status = "false" + inbound_mle_status = "optional" if MLEUtility.check_is_mle_for_API(@api_client.merchantconfig, inbound_mle_status, ["post_tokenized_card","post_tokenized_card_with_http_info"]) - post_body = MLEUtility.encrypt_request_payload(@api_client.merchantconfig, post_body) + begin + post_body = MLEUtility.encrypt_request_payload(@api_client.merchantconfig, post_body) + rescue + raise + end end auth_names = [] data, status_code, headers = @api_client.call_api(:POST, local_var_path, diff --git a/lib/cybersource_rest_client/api/transaction_batches_api.rb b/lib/cybersource_rest_client/api/transaction_batches_api.rb index bf167e58..d971325b 100644 --- a/lib/cybersource_rest_client/api/transaction_batches_api.rb +++ b/lib/cybersource_rest_client/api/transaction_batches_api.rb @@ -80,7 +80,11 @@ def get_transaction_batch_details_with_http_info(id, opts = {}) end inbound_mle_status = "false" if MLEUtility.check_is_mle_for_API(@api_client.merchantconfig, inbound_mle_status, ["get_transaction_batch_details","get_transaction_batch_details_with_http_info"]) - post_body = MLEUtility.encrypt_request_payload(@api_client.merchantconfig, post_body) + begin + post_body = MLEUtility.encrypt_request_payload(@api_client.merchantconfig, post_body) + rescue + raise + end end auth_names = [] data, status_code, headers = @api_client.call_api(:GET, local_var_path, @@ -154,7 +158,11 @@ def get_transaction_batch_id_with_http_info(id, opts = {}) end inbound_mle_status = "false" if MLEUtility.check_is_mle_for_API(@api_client.merchantconfig, inbound_mle_status, ["get_transaction_batch_id","get_transaction_batch_id_with_http_info"]) - post_body = MLEUtility.encrypt_request_payload(@api_client.merchantconfig, post_body) + begin + post_body = MLEUtility.encrypt_request_payload(@api_client.merchantconfig, post_body) + rescue + raise + end end auth_names = [] data, status_code, headers = @api_client.call_api(:GET, local_var_path, @@ -237,7 +245,11 @@ def get_transaction_batches_with_http_info(start_time, end_time, opts = {}) end inbound_mle_status = "false" if MLEUtility.check_is_mle_for_API(@api_client.merchantconfig, inbound_mle_status, ["get_transaction_batches","get_transaction_batches_with_http_info"]) - post_body = MLEUtility.encrypt_request_payload(@api_client.merchantconfig, post_body) + begin + post_body = MLEUtility.encrypt_request_payload(@api_client.merchantconfig, post_body) + rescue + raise + end end auth_names = [] data, status_code, headers = @api_client.call_api(:GET, local_var_path, @@ -318,7 +330,11 @@ def upload_transaction_batch_with_http_info(file, opts = {}) end inbound_mle_status = "false" if MLEUtility.check_is_mle_for_API(@api_client.merchantconfig, inbound_mle_status, ["upload_transaction_batch","upload_transaction_batch_with_http_info"]) - post_body = MLEUtility.encrypt_request_payload(@api_client.merchantconfig, post_body) + begin + post_body = MLEUtility.encrypt_request_payload(@api_client.merchantconfig, post_body) + rescue + raise + end end auth_names = [] data, status_code, headers = @api_client.call_api(:POST, local_var_path, diff --git a/lib/cybersource_rest_client/api/transaction_details_api.rb b/lib/cybersource_rest_client/api/transaction_details_api.rb index 416af94b..2c72c69e 100644 --- a/lib/cybersource_rest_client/api/transaction_details_api.rb +++ b/lib/cybersource_rest_client/api/transaction_details_api.rb @@ -74,7 +74,11 @@ def get_transaction_with_http_info(id, opts = {}) end inbound_mle_status = "false" if MLEUtility.check_is_mle_for_API(@api_client.merchantconfig, inbound_mle_status, ["get_transaction","get_transaction_with_http_info"]) - post_body = MLEUtility.encrypt_request_payload(@api_client.merchantconfig, post_body) + begin + post_body = MLEUtility.encrypt_request_payload(@api_client.merchantconfig, post_body) + rescue + raise + end end auth_names = [] data, status_code, headers = @api_client.call_api(:GET, local_var_path, diff --git a/lib/cybersource_rest_client/api/transient_token_data_api.rb b/lib/cybersource_rest_client/api/transient_token_data_api.rb index 3cf4068e..101ec1eb 100644 --- a/lib/cybersource_rest_client/api/transient_token_data_api.rb +++ b/lib/cybersource_rest_client/api/transient_token_data_api.rb @@ -74,7 +74,11 @@ def get_payment_credentials_for_transient_token_with_http_info(payment_credentia end inbound_mle_status = "false" if MLEUtility.check_is_mle_for_API(@api_client.merchantconfig, inbound_mle_status, ["get_payment_credentials_for_transient_token","get_payment_credentials_for_transient_token_with_http_info"]) - post_body = MLEUtility.encrypt_request_payload(@api_client.merchantconfig, post_body) + begin + post_body = MLEUtility.encrypt_request_payload(@api_client.merchantconfig, post_body) + rescue + raise + end end auth_names = [] data, status_code, headers = @api_client.call_api(:GET, local_var_path, @@ -149,7 +153,11 @@ def get_transaction_for_transient_token_with_http_info(transient_token, opts = { end inbound_mle_status = "false" if MLEUtility.check_is_mle_for_API(@api_client.merchantconfig, inbound_mle_status, ["get_transaction_for_transient_token","get_transaction_for_transient_token_with_http_info"]) - post_body = MLEUtility.encrypt_request_payload(@api_client.merchantconfig, post_body) + begin + post_body = MLEUtility.encrypt_request_payload(@api_client.merchantconfig, post_body) + rescue + raise + end end auth_names = [] data, status_code, headers = @api_client.call_api(:GET, local_var_path, diff --git a/lib/cybersource_rest_client/api/unified_checkout_capture_context_api.rb b/lib/cybersource_rest_client/api/unified_checkout_capture_context_api.rb index 485eaf0d..a0dfedac 100644 --- a/lib/cybersource_rest_client/api/unified_checkout_capture_context_api.rb +++ b/lib/cybersource_rest_client/api/unified_checkout_capture_context_api.rb @@ -72,7 +72,11 @@ def generate_unified_checkout_capture_context_with_http_info(generate_unified_ch post_body = sdk_tracker.insert_developer_id_tracker(post_body, 'GenerateUnifiedCheckoutCaptureContextRequest', @api_client.config.host, @api_client.merchantconfig.defaultDeveloperId) inbound_mle_status = "false" if MLEUtility.check_is_mle_for_API(@api_client.merchantconfig, inbound_mle_status, ["generate_unified_checkout_capture_context","generate_unified_checkout_capture_context_with_http_info"]) - post_body = MLEUtility.encrypt_request_payload(@api_client.merchantconfig, post_body) + begin + post_body = MLEUtility.encrypt_request_payload(@api_client.merchantconfig, post_body) + rescue + raise + end end auth_names = [] data, status_code, headers = @api_client.call_api(:POST, local_var_path, diff --git a/lib/cybersource_rest_client/api/user_management_api.rb b/lib/cybersource_rest_client/api/user_management_api.rb index c0390bf2..1eb6b84e 100644 --- a/lib/cybersource_rest_client/api/user_management_api.rb +++ b/lib/cybersource_rest_client/api/user_management_api.rb @@ -80,7 +80,11 @@ def get_users_with_http_info(opts = {}) end inbound_mle_status = "false" if MLEUtility.check_is_mle_for_API(@api_client.merchantconfig, inbound_mle_status, ["get_users","get_users_with_http_info"]) - post_body = MLEUtility.encrypt_request_payload(@api_client.merchantconfig, post_body) + begin + post_body = MLEUtility.encrypt_request_payload(@api_client.merchantconfig, post_body) + rescue + raise + end end auth_names = [] data, status_code, headers = @api_client.call_api(:GET, local_var_path, diff --git a/lib/cybersource_rest_client/api/user_management_search_api.rb b/lib/cybersource_rest_client/api/user_management_search_api.rb index d417fe6f..13c4b8bb 100644 --- a/lib/cybersource_rest_client/api/user_management_search_api.rb +++ b/lib/cybersource_rest_client/api/user_management_search_api.rb @@ -72,7 +72,11 @@ def search_users_with_http_info(search_request, opts = {}) post_body = sdk_tracker.insert_developer_id_tracker(post_body, 'SearchRequest', @api_client.config.host, @api_client.merchantconfig.defaultDeveloperId) inbound_mle_status = "false" if MLEUtility.check_is_mle_for_API(@api_client.merchantconfig, inbound_mle_status, ["search_users","search_users_with_http_info"]) - post_body = MLEUtility.encrypt_request_payload(@api_client.merchantconfig, post_body) + begin + post_body = MLEUtility.encrypt_request_payload(@api_client.merchantconfig, post_body) + rescue + raise + end end auth_names = [] data, status_code, headers = @api_client.call_api(:POST, local_var_path, diff --git a/lib/cybersource_rest_client/api/verification_api.rb b/lib/cybersource_rest_client/api/verification_api.rb index 169e6cf4..42279735 100644 --- a/lib/cybersource_rest_client/api/verification_api.rb +++ b/lib/cybersource_rest_client/api/verification_api.rb @@ -72,7 +72,11 @@ def validate_export_compliance_with_http_info(validate_export_compliance_request post_body = sdk_tracker.insert_developer_id_tracker(post_body, 'ValidateExportComplianceRequest', @api_client.config.host, @api_client.merchantconfig.defaultDeveloperId) inbound_mle_status = "false" if MLEUtility.check_is_mle_for_API(@api_client.merchantconfig, inbound_mle_status, ["validate_export_compliance","validate_export_compliance_with_http_info"]) - post_body = MLEUtility.encrypt_request_payload(@api_client.merchantconfig, post_body) + begin + post_body = MLEUtility.encrypt_request_payload(@api_client.merchantconfig, post_body) + rescue + raise + end end auth_names = [] data, status_code, headers = @api_client.call_api(:POST, local_var_path, @@ -145,7 +149,11 @@ def verify_customer_address_with_http_info(verify_customer_address_request, opts post_body = sdk_tracker.insert_developer_id_tracker(post_body, 'VerifyCustomerAddressRequest', @api_client.config.host, @api_client.merchantconfig.defaultDeveloperId) inbound_mle_status = "false" if MLEUtility.check_is_mle_for_API(@api_client.merchantconfig, inbound_mle_status, ["verify_customer_address","verify_customer_address_with_http_info"]) - post_body = MLEUtility.encrypt_request_payload(@api_client.merchantconfig, post_body) + begin + post_body = MLEUtility.encrypt_request_payload(@api_client.merchantconfig, post_body) + rescue + raise + end end auth_names = [] data, status_code, headers = @api_client.call_api(:POST, local_var_path, diff --git a/lib/cybersource_rest_client/api/void_api.rb b/lib/cybersource_rest_client/api/void_api.rb index c33426bd..5dced995 100644 --- a/lib/cybersource_rest_client/api/void_api.rb +++ b/lib/cybersource_rest_client/api/void_api.rb @@ -72,7 +72,11 @@ def mit_void_with_http_info(mit_void_request, opts = {}) post_body = sdk_tracker.insert_developer_id_tracker(post_body, 'MitVoidRequest', @api_client.config.host, @api_client.merchantconfig.defaultDeveloperId) inbound_mle_status = "optional" if MLEUtility.check_is_mle_for_API(@api_client.merchantconfig, inbound_mle_status, ["mit_void","mit_void_with_http_info"]) - post_body = MLEUtility.encrypt_request_payload(@api_client.merchantconfig, post_body) + begin + post_body = MLEUtility.encrypt_request_payload(@api_client.merchantconfig, post_body) + rescue + raise + end end auth_names = [] data, status_code, headers = @api_client.call_api(:POST, local_var_path, @@ -151,7 +155,11 @@ def void_capture_with_http_info(void_capture_request, id, opts = {}) post_body = sdk_tracker.insert_developer_id_tracker(post_body, 'VoidCaptureRequest', @api_client.config.host, @api_client.merchantconfig.defaultDeveloperId) inbound_mle_status = "optional" if MLEUtility.check_is_mle_for_API(@api_client.merchantconfig, inbound_mle_status, ["void_capture","void_capture_with_http_info"]) - post_body = MLEUtility.encrypt_request_payload(@api_client.merchantconfig, post_body) + begin + post_body = MLEUtility.encrypt_request_payload(@api_client.merchantconfig, post_body) + rescue + raise + end end auth_names = [] data, status_code, headers = @api_client.call_api(:POST, local_var_path, @@ -230,7 +238,11 @@ def void_credit_with_http_info(void_credit_request, id, opts = {}) post_body = sdk_tracker.insert_developer_id_tracker(post_body, 'VoidCreditRequest', @api_client.config.host, @api_client.merchantconfig.defaultDeveloperId) inbound_mle_status = "optional" if MLEUtility.check_is_mle_for_API(@api_client.merchantconfig, inbound_mle_status, ["void_credit","void_credit_with_http_info"]) - post_body = MLEUtility.encrypt_request_payload(@api_client.merchantconfig, post_body) + begin + post_body = MLEUtility.encrypt_request_payload(@api_client.merchantconfig, post_body) + rescue + raise + end end auth_names = [] data, status_code, headers = @api_client.call_api(:POST, local_var_path, @@ -309,7 +321,11 @@ def void_payment_with_http_info(void_payment_request, id, opts = {}) post_body = sdk_tracker.insert_developer_id_tracker(post_body, 'VoidPaymentRequest', @api_client.config.host, @api_client.merchantconfig.defaultDeveloperId) inbound_mle_status = "optional" if MLEUtility.check_is_mle_for_API(@api_client.merchantconfig, inbound_mle_status, ["void_payment","void_payment_with_http_info"]) - post_body = MLEUtility.encrypt_request_payload(@api_client.merchantconfig, post_body) + begin + post_body = MLEUtility.encrypt_request_payload(@api_client.merchantconfig, post_body) + rescue + raise + end end auth_names = [] data, status_code, headers = @api_client.call_api(:POST, local_var_path, @@ -388,7 +404,11 @@ def void_refund_with_http_info(void_refund_request, id, opts = {}) post_body = sdk_tracker.insert_developer_id_tracker(post_body, 'VoidRefundRequest', @api_client.config.host, @api_client.merchantconfig.defaultDeveloperId) inbound_mle_status = "optional" if MLEUtility.check_is_mle_for_API(@api_client.merchantconfig, inbound_mle_status, ["void_refund","void_refund_with_http_info"]) - post_body = MLEUtility.encrypt_request_payload(@api_client.merchantconfig, post_body) + begin + post_body = MLEUtility.encrypt_request_payload(@api_client.merchantconfig, post_body) + rescue + raise + end end auth_names = [] data, status_code, headers = @api_client.call_api(:POST, local_var_path, diff --git a/lib/cybersource_rest_client/models/create_plan_request.rb b/lib/cybersource_rest_client/models/create_plan_request.rb index bd9c59d0..83ffa01a 100644 --- a/lib/cybersource_rest_client/models/create_plan_request.rb +++ b/lib/cybersource_rest_client/models/create_plan_request.rb @@ -13,8 +13,6 @@ module CyberSource class CreatePlanRequest - attr_accessor :client_reference_information - attr_accessor :plan_information attr_accessor :order_information @@ -22,7 +20,6 @@ class CreatePlanRequest # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { - :'client_reference_information' => :'clientReferenceInformation', :'plan_information' => :'planInformation', :'order_information' => :'orderInformation' } @@ -31,7 +28,6 @@ def self.attribute_map # Attribute mapping from JSON key to ruby-style variable name. def self.json_map { - :'client_reference_information' => :'client_reference_information', :'plan_information' => :'plan_information', :'order_information' => :'order_information' } @@ -40,7 +36,6 @@ def self.json_map # Attribute type mapping. def self.swagger_types { - :'client_reference_information' => :'Rbsv1plansClientReferenceInformation', :'plan_information' => :'Rbsv1plansPlanInformation', :'order_information' => :'Rbsv1plansOrderInformation' } @@ -54,10 +49,6 @@ def initialize(attributes = {}) # convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v } - if attributes.has_key?(:'clientReferenceInformation') - self.client_reference_information = attributes[:'clientReferenceInformation'] - end - if attributes.has_key?(:'planInformation') self.plan_information = attributes[:'planInformation'] end @@ -85,7 +76,6 @@ def valid? def ==(o) return true if self.equal?(o) self.class == o.class && - client_reference_information == o.client_reference_information && plan_information == o.plan_information && order_information == o.order_information end @@ -99,7 +89,7 @@ def eql?(o) # Calculates hash code according to all attributes. # @return [Fixnum] Hash code def hash - [client_reference_information, plan_information, order_information].hash + [plan_information, order_information].hash end # Builds the object from hash diff --git a/lib/cybersource_rest_client/models/create_subscription_request.rb b/lib/cybersource_rest_client/models/create_subscription_request.rb index 42b831ea..31a63ced 100644 --- a/lib/cybersource_rest_client/models/create_subscription_request.rb +++ b/lib/cybersource_rest_client/models/create_subscription_request.rb @@ -52,7 +52,7 @@ def self.json_map # Attribute type mapping. def self.swagger_types { - :'client_reference_information' => :'Rbsv1subscriptionsClientReferenceInformation', + :'client_reference_information' => :'GetAllSubscriptionsResponseClientReferenceInformation', :'processing_information' => :'Rbsv1subscriptionsProcessingInformation', :'plan_information' => :'Rbsv1subscriptionsPlanInformation', :'subscription_information' => :'Rbsv1subscriptionsSubscriptionInformation', diff --git a/lib/cybersource_rest_client/models/create_subscription_request_1.rb b/lib/cybersource_rest_client/models/create_subscription_request_1.rb index 2eec2805..601da8c1 100644 --- a/lib/cybersource_rest_client/models/create_subscription_request_1.rb +++ b/lib/cybersource_rest_client/models/create_subscription_request_1.rb @@ -48,7 +48,7 @@ def self.json_map # Attribute type mapping. def self.swagger_types { - :'client_reference_information' => :'Rbsv1subscriptionsClientReferenceInformation', + :'client_reference_information' => :'GetAllSubscriptionsResponseClientReferenceInformation', :'processing_information' => :'Rbsv1subscriptionsProcessingInformation', :'plan_information' => :'Rbsv1subscriptionsPlanInformation', :'subscription_information' => :'Rbsv1subscriptionsSubscriptionInformation', diff --git a/lib/cybersource_rest_client/models/create_subscription_response.rb b/lib/cybersource_rest_client/models/create_subscription_response.rb index 165f5520..337c3255 100644 --- a/lib/cybersource_rest_client/models/create_subscription_response.rb +++ b/lib/cybersource_rest_client/models/create_subscription_response.rb @@ -26,6 +26,8 @@ class CreateSubscriptionResponse attr_accessor :subscription_information + attr_accessor :client_reference_information + # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { @@ -33,7 +35,8 @@ def self.attribute_map :'id' => :'id', :'submit_time_utc' => :'submitTimeUtc', :'status' => :'status', - :'subscription_information' => :'subscriptionInformation' + :'subscription_information' => :'subscriptionInformation', + :'client_reference_information' => :'clientReferenceInformation' } end @@ -44,7 +47,8 @@ def self.json_map :'id' => :'id', :'submit_time_utc' => :'submit_time_utc', :'status' => :'status', - :'subscription_information' => :'subscription_information' + :'subscription_information' => :'subscription_information', + :'client_reference_information' => :'client_reference_information' } end @@ -55,7 +59,8 @@ def self.swagger_types :'id' => :'String', :'submit_time_utc' => :'String', :'status' => :'String', - :'subscription_information' => :'CreateSubscriptionResponseSubscriptionInformation' + :'subscription_information' => :'CreateSubscriptionResponseSubscriptionInformation', + :'client_reference_information' => :'GetAllSubscriptionsResponseClientReferenceInformation' } end @@ -86,6 +91,10 @@ def initialize(attributes = {}) if attributes.has_key?(:'subscriptionInformation') self.subscription_information = attributes[:'subscriptionInformation'] end + + if attributes.has_key?(:'clientReferenceInformation') + self.client_reference_information = attributes[:'clientReferenceInformation'] + end end # Show invalid properties with the reasons. Usually used together with valid? @@ -116,7 +125,8 @@ def ==(o) id == o.id && submit_time_utc == o.submit_time_utc && status == o.status && - subscription_information == o.subscription_information + subscription_information == o.subscription_information && + client_reference_information == o.client_reference_information end # @see the `==` method @@ -128,7 +138,7 @@ def eql?(o) # Calculates hash code according to all attributes. # @return [Fixnum] Hash code def hash - [_links, id, submit_time_utc, status, subscription_information].hash + [_links, id, submit_time_utc, status, subscription_information, client_reference_information].hash end # Builds the object from hash diff --git a/lib/cybersource_rest_client/models/generate_unified_checkout_capture_context_request.rb b/lib/cybersource_rest_client/models/generate_unified_checkout_capture_context_request.rb index 17b1756c..81d754da 100644 --- a/lib/cybersource_rest_client/models/generate_unified_checkout_capture_context_request.rb +++ b/lib/cybersource_rest_client/models/generate_unified_checkout_capture_context_request.rb @@ -22,7 +22,7 @@ class GenerateUnifiedCheckoutCaptureContextRequest # The list of card networks you want to use for this Unified Checkout transaction. Unified Checkout currently supports the following card networks: - VISA - MASTERCARD - AMEX - CARNET - CARTESBANCAIRES - CUP - DINERSCLUB - DISCOVER - EFTPOS - ELO - JAYWAN - JCB - JCREW - KCP - MADA - MAESTRO - MEEZA - PAYPAK - UATP attr_accessor :allowed_card_networks - # The payment types that are allowed for the merchant. Possible values when launching Unified Checkout: - APPLEPAY - CHECK - CLICKTOPAY - GOOGLEPAY - PANENTRY - PAZE

Unified Checkout supports the following Buy Now, Pay Later (BNPL) payment methods: - AFTERPAY

Unified Checkout supports the following Online Bank Transfer payment methods: - Bancontact (BE) - DragonPay (PH) - iDEAL (NL) - Multibanco (PT) - MyBank (IT, BE, PT, ES) - Przelewy24|P24 (PL) - Tink Pay By Bank (GB) Possible values when launching Click To Pay Drop-In UI: - CLICKTOPAY

**Important:** - CLICKTOPAY only available for Visa, Mastercard and AMEX for saved cards. - Visa and Mastercard will look to tokenize using network tokenization for all Click to Pay requests. Click to Pay uses Click to Pay token requester IDs and not the merchant's existing token requester. - Apple Pay, Google Pay, Check, and Paze can be used independently without requiring PAN entry in the allowedPaymentTypes field.

**Managing Google Pay Authentication Types** When you enable Google Pay on Unified Checkout you can specify optional parameters that define the types of card authentication you receive from Google Pay.

**Managing Google Pay Authentication Types** Where Click to Pay is the payment type selected by the customer and the customer manually enters their card, the option to enroll their card in Click to Pay will be auto-checked if this field is set to \"true\". This is only available where the merchant and cardholder are based in the following countries and the billing type is set to \"FULL\" or \"PARTIAL\". - UAE - Argentina - Brazil - Chile - Colombia - Kuwait - Mexico - Peru - Qatar - Saudi Arabia - Ukraine - South Africa

If false, this is not present or not supported in the market. Enrollment in Click to Pay is not checked for the customer when completing manual card entry. + # The payment types that are allowed for the merchant. Possible values when launching Unified Checkout: - APPLEPAY - CHECK - CLICKTOPAY - GOOGLEPAY - PANENTRY - PAZE

Unified Checkout supports the following Buy Now, Pay Later (BNPL) payment methods: - AFTERPAY

Unified Checkout supports the following Online Bank Transfer payment methods: - Bancontact (BE) - DragonPay (PH) - iDEAL (NL) - Multibanco (PT) - MyBank (IT, BE, PT, ES) - Przelewy24|P24 (PL) - Tink Pay By Bank (GB)

Unified Checkout supports the following Post-Pay Reference payment methods: - Konbini (JP)

Possible values when launching Click To Pay Drop-In UI: - CLICKTOPAY

**Important:** - CLICKTOPAY only available for Visa, Mastercard and AMEX for saved cards. - Visa and Mastercard will look to tokenize using network tokenization for all Click to Pay requests. Click to Pay uses Click to Pay token requester IDs and not the merchant's existing token requester. - Apple Pay, Google Pay, Check, and Paze can be used independently without requiring PAN entry in the allowedPaymentTypes field.

**Managing Google Pay Authentication Types** When you enable Google Pay on Unified Checkout you can specify optional parameters that define the types of card authentication you receive from Google Pay.

**Managing Google Pay Authentication Types** Where Click to Pay is the payment type selected by the customer and the customer manually enters their card, the option to enroll their card in Click to Pay will be auto-checked if this field is set to \"true\". This is only available where the merchant and cardholder are based in the following countries and the billing type is set to \"FULL\" or \"PARTIAL\". - UAE - Argentina - Brazil - Chile - Colombia - Kuwait - Mexico - Peru - Qatar - Saudi Arabia - Ukraine - South Africa

If false, this is not present or not supported in the market. Enrollment in Click to Pay is not checked for the customer when completing manual card entry. attr_accessor :allowed_payment_types # Country the purchase is originating from (e.g. country of the merchant). Use the two-character ISO Standard @@ -31,6 +31,9 @@ class GenerateUnifiedCheckoutCaptureContextRequest # Localization of the User experience conforming to the ISO 639-1 language standards and two-character ISO Standard Country Code. Please refer to list of [supported locales through Unified Checkout](https://developer.cybersource.com/docs/cybs/en-us/unified-checkout/developer/all/rest/unified-checkout/uc-appendix-languages.html) attr_accessor :locale + # Changes the label on the payment button within Unified Checkout .

Possible values: - ADD_CARD - CARD_PAYMENT - CHECKOUT - CHECKOUT_AND_CONTINUE - DEBIT_CREDIT - DONATE - PAY - PAY_WITH_CARD - SAVE_CARD - SUBSCRIBE_WITH_CARD

This is an optional field, + attr_accessor :button_type + attr_accessor :capture_mandate attr_accessor :complete_mandate @@ -50,6 +53,7 @@ def self.attribute_map :'allowed_payment_types' => :'allowedPaymentTypes', :'country' => :'country', :'locale' => :'locale', + :'button_type' => :'buttonType', :'capture_mandate' => :'captureMandate', :'complete_mandate' => :'completeMandate', :'transient_token_response_options' => :'transientTokenResponseOptions', @@ -67,6 +71,7 @@ def self.json_map :'allowed_payment_types' => :'allowed_payment_types', :'country' => :'country', :'locale' => :'locale', + :'button_type' => :'button_type', :'capture_mandate' => :'capture_mandate', :'complete_mandate' => :'complete_mandate', :'transient_token_response_options' => :'transient_token_response_options', @@ -84,6 +89,7 @@ def self.swagger_types :'allowed_payment_types' => :'Array', :'country' => :'String', :'locale' => :'String', + :'button_type' => :'String', :'capture_mandate' => :'Upv1capturecontextsCaptureMandate', :'complete_mandate' => :'Upv1capturecontextsCompleteMandate', :'transient_token_response_options' => :'Microformv2sessionsTransientTokenResponseOptions', @@ -130,6 +136,10 @@ def initialize(attributes = {}) self.locale = attributes[:'locale'] end + if attributes.has_key?(:'buttonType') + self.button_type = attributes[:'buttonType'] + end + if attributes.has_key?(:'captureMandate') self.capture_mandate = attributes[:'captureMandate'] end @@ -187,6 +197,7 @@ def ==(o) allowed_payment_types == o.allowed_payment_types && country == o.country && locale == o.locale && + button_type == o.button_type && capture_mandate == o.capture_mandate && complete_mandate == o.complete_mandate && transient_token_response_options == o.transient_token_response_options && @@ -203,7 +214,7 @@ def eql?(o) # Calculates hash code according to all attributes. # @return [Fixnum] Hash code def hash - [client_version, target_origins, allowed_card_networks, allowed_payment_types, country, locale, capture_mandate, complete_mandate, transient_token_response_options, data, order_information].hash + [client_version, target_origins, allowed_card_networks, allowed_payment_types, country, locale, button_type, capture_mandate, complete_mandate, transient_token_response_options, data, order_information].hash end # Builds the object from hash diff --git a/lib/cybersource_rest_client/models/get_all_subscriptions_response_client_reference_information.rb b/lib/cybersource_rest_client/models/get_all_subscriptions_response_client_reference_information.rb new file mode 100644 index 00000000..fa43583f --- /dev/null +++ b/lib/cybersource_rest_client/models/get_all_subscriptions_response_client_reference_information.rb @@ -0,0 +1,196 @@ +=begin +#CyberSource Merged Spec + +#All CyberSource API specs merged together. These are available at https://developer.cybersource.com/api/reference/api-reference.html + +OpenAPI spec version: 0.0.1 + +Generated by: https://github.com/swagger-api/swagger-codegen.git +Swagger Codegen version: 2.4.38 +=end + +require 'date' + +module CyberSource + class GetAllSubscriptionsResponseClientReferenceInformation + # Merchant-generated order reference or tracking number. It is recommended that you send a unique value for each transaction so that you can perform meaningful searches for the transaction. #### Used by **Authorization** Required field. #### PIN Debit Requests for PIN debit reversals need to use the same merchant reference number that was used in the transaction that is being reversed. Required field for all PIN Debit requests (purchase, credit, and reversal). #### FDC Nashville Global Certain circumstances can cause the processor to truncate this value to 15 or 17 characters for Level II and Level III processing, which can cause a discrepancy between the value you submit and the value included in some processor reports. + attr_accessor :code + + # Attribute mapping from ruby-style variable name to JSON key. + def self.attribute_map + { + :'code' => :'code' + } + end + + # Attribute mapping from JSON key to ruby-style variable name. + def self.json_map + { + :'code' => :'code' + } + end + + # Attribute type mapping. + def self.swagger_types + { + :'code' => :'String' + } + end + + # Initializes the object + # @param [Hash] attributes Model attributes in the form of hash + def initialize(attributes = {}) + return unless attributes.is_a?(Hash) + + # convert string to symbol for hash key + attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v } + + if attributes.has_key?(:'code') + self.code = attributes[:'code'] + end + end + + # Show invalid properties with the reasons. Usually used together with valid? + # @return Array for valid properties with the reasons + def list_invalid_properties + invalid_properties = Array.new + invalid_properties + end + + # Check to see if the all the properties in the model are valid + # @return true if the model is valid + def valid? + true + end + + # Custom attribute writer method with validation + # @param [Object] code Value to be assigned + def code=(code) + @code = code + end + + # Checks equality by comparing each attribute. + # @param [Object] Object to be compared + def ==(o) + return true if self.equal?(o) + self.class == o.class && + code == o.code + end + + # @see the `==` method + # @param [Object] Object to be compared + def eql?(o) + self == o + end + + # Calculates hash code according to all attributes. + # @return [Fixnum] Hash code + def hash + [code].hash + end + + # Builds the object from hash + # @param [Hash] attributes Model attributes in the form of hash + # @return [Object] Returns the model itself + def build_from_hash(attributes) + return nil unless attributes.is_a?(Hash) + self.class.swagger_types.each_pair do |key, type| + if type =~ /\AArray<(.*)>/i + # check to ensure the input is an array given that the the attribute + # is documented as an array but the input is not + if attributes[self.class.attribute_map[key]].is_a?(Array) + self.send("#{self.class.json_map[key]}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) + end + elsif !attributes[self.class.attribute_map[key]].nil? + self.send("#{self.class.json_map[key]}=", _deserialize(type, attributes[self.class.attribute_map[key]])) + end # or else data not found in attributes(hash), not an issue as the data can be optional + end + + self + end + + # Deserializes the data based on type + # @param string type Data type + # @param string value Value to be deserialized + # @return [Object] Deserialized data + def _deserialize(type, value) + case type.to_sym + when :DateTime + DateTime.parse(value) + when :Date + Date.parse(value) + when :String + value.to_s + when :Integer + value.to_i + when :Float + value.to_f + when :BOOLEAN + if value.to_s =~ /\A(true|t|yes|y|1)\z/i + true + else + false + end + when :Object + # generic object (usually a Hash), return directly + value + when /\AArray<(?.+)>\z/ + inner_type = Regexp.last_match[:inner_type] + value.map { |v| _deserialize(inner_type, v) } + when /\AHash<(?.+?), (?.+)>\z/ + k_type = Regexp.last_match[:k_type] + v_type = Regexp.last_match[:v_type] + {}.tap do |hash| + value.each do |k, v| + hash[_deserialize(k_type, k)] = _deserialize(v_type, v) + end + end + else # model + temp_model = CyberSource.const_get(type).new + temp_model.build_from_hash(value) + end + end + + # Returns the string representation of the object + # @return [String] String presentation of the object + def to_s + to_hash.to_s + end + + # to_body is an alias to to_hash (backward compatibility) + # @return [Hash] Returns the object in the form of hash + def to_body + to_hash + end + + # Returns the object in the form of hash + # @return [Hash] Returns the object in the form of hash + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + next if value.nil? + hash[param] = _to_hash(value) + end + hash + end + + # Outputs non-array value in the form of hash + # For object, use to_hash. Otherwise, just return the value + # @param [Object] value Any valid value + # @return [Hash] Returns the value in the form of hash + def _to_hash(value) + if value.is_a?(Array) + value.compact.map { |v| _to_hash(v) } + elsif value.is_a?(Hash) + {}.tap do |hash| + value.each { |k, v| hash[k] = _to_hash(v) } + end + elsif value.respond_to? :to_hash + value.to_hash + else + value + end + end + end +end diff --git a/lib/cybersource_rest_client/models/get_all_subscriptions_response_subscriptions.rb b/lib/cybersource_rest_client/models/get_all_subscriptions_response_subscriptions.rb index 910c4ed2..207d2b33 100644 --- a/lib/cybersource_rest_client/models/get_all_subscriptions_response_subscriptions.rb +++ b/lib/cybersource_rest_client/models/get_all_subscriptions_response_subscriptions.rb @@ -23,6 +23,8 @@ class GetAllSubscriptionsResponseSubscriptions attr_accessor :subscription_information + attr_accessor :client_reference_information + attr_accessor :payment_information attr_accessor :order_information @@ -34,6 +36,7 @@ def self.attribute_map :'id' => :'id', :'plan_information' => :'planInformation', :'subscription_information' => :'subscriptionInformation', + :'client_reference_information' => :'clientReferenceInformation', :'payment_information' => :'paymentInformation', :'order_information' => :'orderInformation' } @@ -46,6 +49,7 @@ def self.json_map :'id' => :'id', :'plan_information' => :'plan_information', :'subscription_information' => :'subscription_information', + :'client_reference_information' => :'client_reference_information', :'payment_information' => :'payment_information', :'order_information' => :'order_information' } @@ -58,6 +62,7 @@ def self.swagger_types :'id' => :'String', :'plan_information' => :'GetAllSubscriptionsResponsePlanInformation', :'subscription_information' => :'GetAllSubscriptionsResponseSubscriptionInformation', + :'client_reference_information' => :'GetAllSubscriptionsResponseClientReferenceInformation', :'payment_information' => :'GetAllSubscriptionsResponsePaymentInformation', :'order_information' => :'GetAllSubscriptionsResponseOrderInformation' } @@ -87,6 +92,10 @@ def initialize(attributes = {}) self.subscription_information = attributes[:'subscriptionInformation'] end + if attributes.has_key?(:'clientReferenceInformation') + self.client_reference_information = attributes[:'clientReferenceInformation'] + end + if attributes.has_key?(:'paymentInformation') self.payment_information = attributes[:'paymentInformation'] end @@ -124,6 +133,7 @@ def ==(o) id == o.id && plan_information == o.plan_information && subscription_information == o.subscription_information && + client_reference_information == o.client_reference_information && payment_information == o.payment_information && order_information == o.order_information end @@ -137,7 +147,7 @@ def eql?(o) # Calculates hash code according to all attributes. # @return [Fixnum] Hash code def hash - [_links, id, plan_information, subscription_information, payment_information, order_information].hash + [_links, id, plan_information, subscription_information, client_reference_information, payment_information, order_information].hash end # Builds the object from hash diff --git a/lib/cybersource_rest_client/models/get_subscription_response.rb b/lib/cybersource_rest_client/models/get_subscription_response.rb index 0dec61c5..0cbb773f 100644 --- a/lib/cybersource_rest_client/models/get_subscription_response.rb +++ b/lib/cybersource_rest_client/models/get_subscription_response.rb @@ -29,6 +29,8 @@ class GetSubscriptionResponse attr_accessor :order_information + attr_accessor :client_reference_information + attr_accessor :reactivation_information # Attribute mapping from ruby-style variable name to JSON key. @@ -41,6 +43,7 @@ def self.attribute_map :'subscription_information' => :'subscriptionInformation', :'payment_information' => :'paymentInformation', :'order_information' => :'orderInformation', + :'client_reference_information' => :'clientReferenceInformation', :'reactivation_information' => :'reactivationInformation' } end @@ -55,6 +58,7 @@ def self.json_map :'subscription_information' => :'subscription_information', :'payment_information' => :'payment_information', :'order_information' => :'order_information', + :'client_reference_information' => :'client_reference_information', :'reactivation_information' => :'reactivation_information' } end @@ -69,6 +73,7 @@ def self.swagger_types :'subscription_information' => :'GetAllSubscriptionsResponseSubscriptionInformation', :'payment_information' => :'GetAllSubscriptionsResponsePaymentInformation', :'order_information' => :'GetAllSubscriptionsResponseOrderInformation', + :'client_reference_information' => :'GetAllSubscriptionsResponseClientReferenceInformation', :'reactivation_information' => :'GetSubscriptionResponseReactivationInformation' } end @@ -109,6 +114,10 @@ def initialize(attributes = {}) self.order_information = attributes[:'orderInformation'] end + if attributes.has_key?(:'clientReferenceInformation') + self.client_reference_information = attributes[:'clientReferenceInformation'] + end + if attributes.has_key?(:'reactivationInformation') self.reactivation_information = attributes[:'reactivationInformation'] end @@ -145,6 +154,7 @@ def ==(o) subscription_information == o.subscription_information && payment_information == o.payment_information && order_information == o.order_information && + client_reference_information == o.client_reference_information && reactivation_information == o.reactivation_information end @@ -157,7 +167,7 @@ def eql?(o) # Calculates hash code according to all attributes. # @return [Fixnum] Hash code def hash - [_links, id, submit_time_utc, plan_information, subscription_information, payment_information, order_information, reactivation_information].hash + [_links, id, submit_time_utc, plan_information, subscription_information, payment_information, order_information, client_reference_information, reactivation_information].hash end # Builds the object from hash diff --git a/lib/cybersource_rest_client/models/get_subscription_response_1_payment_instrument.rb b/lib/cybersource_rest_client/models/get_subscription_response_1_payment_instrument.rb index 2ffa786a..818b308f 100644 --- a/lib/cybersource_rest_client/models/get_subscription_response_1_payment_instrument.rb +++ b/lib/cybersource_rest_client/models/get_subscription_response_1_payment_instrument.rb @@ -53,7 +53,7 @@ def self.swagger_types :'id' => :'String', :'bank_account' => :'GetSubscriptionResponse1PaymentInstrumentBankAccount', :'card' => :'GetSubscriptionResponse1PaymentInstrumentCard', - :'bill_to' => :'Tmsv2customersEmbeddedDefaultPaymentInstrumentBillTo', + :'bill_to' => :'Tmsv2tokenizeTokenInformationCustomerEmbeddedDefaultPaymentInstrumentBillTo', :'buyer_information' => :'GetSubscriptionResponse1PaymentInstrumentBuyerInformation' } end diff --git a/lib/cybersource_rest_client/models/get_subscription_response_1_payment_instrument_buyer_information.rb b/lib/cybersource_rest_client/models/get_subscription_response_1_payment_instrument_buyer_information.rb index 4e484970..7fb4c408 100644 --- a/lib/cybersource_rest_client/models/get_subscription_response_1_payment_instrument_buyer_information.rb +++ b/lib/cybersource_rest_client/models/get_subscription_response_1_payment_instrument_buyer_information.rb @@ -50,7 +50,7 @@ def self.swagger_types :'company_tax_id' => :'String', :'currency' => :'String', :'date_of_birth' => :'Date', - :'personal_identification' => :'Array' + :'personal_identification' => :'Array' } end diff --git a/lib/cybersource_rest_client/models/get_subscription_response_1_shipping_address.rb b/lib/cybersource_rest_client/models/get_subscription_response_1_shipping_address.rb index 4b4b5e87..1589c7f5 100644 --- a/lib/cybersource_rest_client/models/get_subscription_response_1_shipping_address.rb +++ b/lib/cybersource_rest_client/models/get_subscription_response_1_shipping_address.rb @@ -39,7 +39,7 @@ def self.json_map def self.swagger_types { :'id' => :'String', - :'ship_to' => :'Tmsv2customersEmbeddedDefaultShippingAddressShipTo' + :'ship_to' => :'Tmsv2tokenizeTokenInformationCustomerEmbeddedDefaultShippingAddressShipTo' } end diff --git a/lib/cybersource_rest_client/models/get_subscription_response_reactivation_information.rb b/lib/cybersource_rest_client/models/get_subscription_response_reactivation_information.rb index 9a47100c..f80ae1d1 100644 --- a/lib/cybersource_rest_client/models/get_subscription_response_reactivation_information.rb +++ b/lib/cybersource_rest_client/models/get_subscription_response_reactivation_information.rb @@ -14,32 +14,32 @@ module CyberSource class GetSubscriptionResponseReactivationInformation # Number of payments that should have occurred while the subscription was in a suspended status. - attr_accessor :skipped_payments_count + attr_accessor :missed_payments_count - # Total amount that will be charged upon reactivation if `processSkippedPayments` is set to `true`. - attr_accessor :skipped_payments_total_amount + # Total amount that will be charged upon reactivation if `processMissedPayments` is set to `true`. + attr_accessor :missed_payments_total_amount # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { - :'skipped_payments_count' => :'skippedPaymentsCount', - :'skipped_payments_total_amount' => :'skippedPaymentsTotalAmount' + :'missed_payments_count' => :'missedPaymentsCount', + :'missed_payments_total_amount' => :'missedPaymentsTotalAmount' } end # Attribute mapping from JSON key to ruby-style variable name. def self.json_map { - :'skipped_payments_count' => :'skipped_payments_count', - :'skipped_payments_total_amount' => :'skipped_payments_total_amount' + :'missed_payments_count' => :'missed_payments_count', + :'missed_payments_total_amount' => :'missed_payments_total_amount' } end # Attribute type mapping. def self.swagger_types { - :'skipped_payments_count' => :'String', - :'skipped_payments_total_amount' => :'String' + :'missed_payments_count' => :'String', + :'missed_payments_total_amount' => :'String' } end @@ -51,12 +51,12 @@ def initialize(attributes = {}) # convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v } - if attributes.has_key?(:'skippedPaymentsCount') - self.skipped_payments_count = attributes[:'skippedPaymentsCount'] + if attributes.has_key?(:'missedPaymentsCount') + self.missed_payments_count = attributes[:'missedPaymentsCount'] end - if attributes.has_key?(:'skippedPaymentsTotalAmount') - self.skipped_payments_total_amount = attributes[:'skippedPaymentsTotalAmount'] + if attributes.has_key?(:'missedPaymentsTotalAmount') + self.missed_payments_total_amount = attributes[:'missedPaymentsTotalAmount'] end end @@ -74,15 +74,15 @@ def valid? end # Custom attribute writer method with validation - # @param [Object] skipped_payments_count Value to be assigned - def skipped_payments_count=(skipped_payments_count) - @skipped_payments_count = skipped_payments_count + # @param [Object] missed_payments_count Value to be assigned + def missed_payments_count=(missed_payments_count) + @missed_payments_count = missed_payments_count end # Custom attribute writer method with validation - # @param [Object] skipped_payments_total_amount Value to be assigned - def skipped_payments_total_amount=(skipped_payments_total_amount) - @skipped_payments_total_amount = skipped_payments_total_amount + # @param [Object] missed_payments_total_amount Value to be assigned + def missed_payments_total_amount=(missed_payments_total_amount) + @missed_payments_total_amount = missed_payments_total_amount end # Checks equality by comparing each attribute. @@ -90,8 +90,8 @@ def skipped_payments_total_amount=(skipped_payments_total_amount) def ==(o) return true if self.equal?(o) self.class == o.class && - skipped_payments_count == o.skipped_payments_count && - skipped_payments_total_amount == o.skipped_payments_total_amount + missed_payments_count == o.missed_payments_count && + missed_payments_total_amount == o.missed_payments_total_amount end # @see the `==` method @@ -103,7 +103,7 @@ def eql?(o) # Calculates hash code according to all attributes. # @return [Fixnum] Hash code def hash - [skipped_payments_count, skipped_payments_total_amount].hash + [missed_payments_count, missed_payments_total_amount].hash end # Builds the object from hash diff --git a/lib/cybersource_rest_client/models/inline_response_200.rb b/lib/cybersource_rest_client/models/inline_response_200.rb index ac15f22b..2dff582e 100644 --- a/lib/cybersource_rest_client/models/inline_response_200.rb +++ b/lib/cybersource_rest_client/models/inline_response_200.rb @@ -12,47 +12,27 @@ require 'date' module CyberSource - # Represents the Card Art Asset associated to the Network Token. class InlineResponse200 - # Unique identifier for the Card Art Asset. - attr_accessor :id - - # The type of Card Art Asset. - attr_accessor :type - - # The provider of the Card Art Asset. - attr_accessor :provider - - # Array of content objects representing the Card Art Asset. - attr_accessor :content + attr_accessor :responses # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { - :'id' => :'id', - :'type' => :'type', - :'provider' => :'provider', - :'content' => :'content' + :'responses' => :'responses' } end # Attribute mapping from JSON key to ruby-style variable name. def self.json_map { - :'id' => :'id', - :'type' => :'type', - :'provider' => :'provider', - :'content' => :'content' + :'responses' => :'responses' } end # Attribute type mapping. def self.swagger_types { - :'id' => :'String', - :'type' => :'String', - :'provider' => :'String', - :'content' => :'Array' + :'responses' => :'Array' } end @@ -64,21 +44,9 @@ def initialize(attributes = {}) # convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v } - if attributes.has_key?(:'id') - self.id = attributes[:'id'] - end - - if attributes.has_key?(:'type') - self.type = attributes[:'type'] - end - - if attributes.has_key?(:'provider') - self.provider = attributes[:'provider'] - end - - if attributes.has_key?(:'content') - if (value = attributes[:'content']).is_a?(Array) - self.content = value + if attributes.has_key?(:'responses') + if (value = attributes[:'responses']).is_a?(Array) + self.responses = value end end end @@ -101,10 +69,7 @@ def valid? def ==(o) return true if self.equal?(o) self.class == o.class && - id == o.id && - type == o.type && - provider == o.provider && - content == o.content + responses == o.responses end # @see the `==` method @@ -116,7 +81,7 @@ def eql?(o) # Calculates hash code according to all attributes. # @return [Fixnum] Hash code def hash - [id, type, provider, content].hash + [responses].hash end # Builds the object from hash diff --git a/lib/cybersource_rest_client/models/inline_response_200_1.rb b/lib/cybersource_rest_client/models/inline_response_200_1.rb index 86ba927f..f6a84dda 100644 --- a/lib/cybersource_rest_client/models/inline_response_200_1.rb +++ b/lib/cybersource_rest_client/models/inline_response_200_1.rb @@ -12,25 +12,27 @@ require 'date' module CyberSource + # Represents the Card Art Asset associated to the Network Token. class InlineResponse2001 - # UUID uniquely generated for this comments. + # Unique identifier for the Card Art Asset. attr_accessor :id - # Time of request in UTC. Format: `YYYY-MM-DDThh:mm:ssZ` **Example** `2016-08-11T22:47:57Z` equals August 11, 2016, at 22:47:57 (10:47:57 p.m.). The `T` separates the date and the time. The `Z` indicates UTC. Returned by Cybersource for all services. - attr_accessor :submit_time_utc + # The type of Card Art Asset. + attr_accessor :type - # The status of the submitted transaction. Possible values are: - `ACCEPTED` - `REJECTED` - attr_accessor :status + # The provider of the Card Art Asset. + attr_accessor :provider - attr_accessor :_embedded + # Array of content objects representing the Card Art Asset. + attr_accessor :content # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { :'id' => :'id', - :'submit_time_utc' => :'submitTimeUtc', - :'status' => :'status', - :'_embedded' => :'_embedded' + :'type' => :'type', + :'provider' => :'provider', + :'content' => :'content' } end @@ -38,9 +40,9 @@ def self.attribute_map def self.json_map { :'id' => :'id', - :'submit_time_utc' => :'submit_time_utc', - :'status' => :'status', - :'_embedded' => :'_embedded' + :'type' => :'type', + :'provider' => :'provider', + :'content' => :'content' } end @@ -48,9 +50,9 @@ def self.json_map def self.swagger_types { :'id' => :'String', - :'submit_time_utc' => :'String', - :'status' => :'String', - :'_embedded' => :'InlineResponse2001Embedded' + :'type' => :'String', + :'provider' => :'String', + :'content' => :'Array' } end @@ -66,16 +68,18 @@ def initialize(attributes = {}) self.id = attributes[:'id'] end - if attributes.has_key?(:'submitTimeUtc') - self.submit_time_utc = attributes[:'submitTimeUtc'] + if attributes.has_key?(:'type') + self.type = attributes[:'type'] end - if attributes.has_key?(:'status') - self.status = attributes[:'status'] + if attributes.has_key?(:'provider') + self.provider = attributes[:'provider'] end - if attributes.has_key?(:'_embedded') - self._embedded = attributes[:'_embedded'] + if attributes.has_key?(:'content') + if (value = attributes[:'content']).is_a?(Array) + self.content = value + end end end @@ -92,21 +96,15 @@ def valid? true end - # Custom attribute writer method with validation - # @param [Object] id Value to be assigned - def id=(id) - @id = id - end - # Checks equality by comparing each attribute. # @param [Object] Object to be compared def ==(o) return true if self.equal?(o) self.class == o.class && id == o.id && - submit_time_utc == o.submit_time_utc && - status == o.status && - _embedded == o._embedded + type == o.type && + provider == o.provider && + content == o.content end # @see the `==` method @@ -118,7 +116,7 @@ def eql?(o) # Calculates hash code according to all attributes. # @return [Fixnum] Hash code def hash - [id, submit_time_utc, status, _embedded].hash + [id, type, provider, content].hash end # Builds the object from hash diff --git a/lib/cybersource_rest_client/models/inline_response_200_10.rb b/lib/cybersource_rest_client/models/inline_response_200_10.rb index eff7a4ad..1200c8f0 100644 --- a/lib/cybersource_rest_client/models/inline_response_200_10.rb +++ b/lib/cybersource_rest_client/models/inline_response_200_10.rb @@ -13,56 +13,57 @@ module CyberSource class InlineResponse20010 - attr_accessor :_links - - attr_accessor :object + # Total number of results. + attr_accessor :total_count + # Controls the starting point within the collection of results, which defaults to 0. The first item in the collection is retrieved by setting a zero offset. For example, if you have a collection of 15 items to be retrieved from a resource and you specify limit=5, you can retrieve the entire set of results in 3 successive requests by varying the offset value like this: `offset=0` `offset=5` `offset=10` **Note:** If an offset larger than the number of results is provided, this will result in no embedded object being returned. attr_accessor :offset + # Controls the maximum number of items that may be returned for a single request. The default is 20, the maximum is 2500. attr_accessor :limit - attr_accessor :count + # A comma separated list of the following form: `terminalCreationDate:desc or serialNumber or terminalUpdationDate` + attr_accessor :sort - attr_accessor :total + # Results for this page, this could be below the limit. + attr_accessor :count - attr_accessor :_embedded + # A collection of devices + attr_accessor :devices # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { - :'_links' => :'_links', - :'object' => :'object', + :'total_count' => :'totalCount', :'offset' => :'offset', :'limit' => :'limit', + :'sort' => :'sort', :'count' => :'count', - :'total' => :'total', - :'_embedded' => :'_embedded' + :'devices' => :'devices' } end # Attribute mapping from JSON key to ruby-style variable name. def self.json_map { - :'_links' => :'_links', - :'object' => :'object', + :'total_count' => :'total_count', :'offset' => :'offset', :'limit' => :'limit', + :'sort' => :'sort', :'count' => :'count', - :'total' => :'total', - :'_embedded' => :'_embedded' + :'devices' => :'devices' } end # Attribute type mapping. def self.swagger_types { - :'_links' => :'Array', - :'object' => :'String', + :'total_count' => :'Integer', :'offset' => :'Integer', :'limit' => :'Integer', + :'sort' => :'String', :'count' => :'Integer', - :'total' => :'Integer', - :'_embedded' => :'InlineResponse20010Embedded' + :'devices' => :'Array' } end @@ -74,14 +75,8 @@ def initialize(attributes = {}) # convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v } - if attributes.has_key?(:'_links') - if (value = attributes[:'_links']).is_a?(Array) - self._links = value - end - end - - if attributes.has_key?(:'object') - self.object = attributes[:'object'] + if attributes.has_key?(:'totalCount') + self.total_count = attributes[:'totalCount'] end if attributes.has_key?(:'offset') @@ -92,16 +87,18 @@ def initialize(attributes = {}) self.limit = attributes[:'limit'] end - if attributes.has_key?(:'count') - self.count = attributes[:'count'] + if attributes.has_key?(:'sort') + self.sort = attributes[:'sort'] end - if attributes.has_key?(:'total') - self.total = attributes[:'total'] + if attributes.has_key?(:'count') + self.count = attributes[:'count'] end - if attributes.has_key?(:'_embedded') - self._embedded = attributes[:'_embedded'] + if attributes.has_key?(:'devices') + if (value = attributes[:'devices']).is_a?(Array) + self.devices = value + end end end @@ -123,13 +120,12 @@ def valid? def ==(o) return true if self.equal?(o) self.class == o.class && - _links == o._links && - object == o.object && + total_count == o.total_count && offset == o.offset && limit == o.limit && + sort == o.sort && count == o.count && - total == o.total && - _embedded == o._embedded + devices == o.devices end # @see the `==` method @@ -141,7 +137,7 @@ def eql?(o) # Calculates hash code according to all attributes. # @return [Fixnum] Hash code def hash - [_links, object, offset, limit, count, total, _embedded].hash + [total_count, offset, limit, sort, count, devices].hash end # Builds the object from hash diff --git a/lib/cybersource_rest_client/models/inline_response_200_9_devices.rb b/lib/cybersource_rest_client/models/inline_response_200_10_devices.rb similarity index 99% rename from lib/cybersource_rest_client/models/inline_response_200_9_devices.rb rename to lib/cybersource_rest_client/models/inline_response_200_10_devices.rb index 320d121c..e7248bf2 100644 --- a/lib/cybersource_rest_client/models/inline_response_200_9_devices.rb +++ b/lib/cybersource_rest_client/models/inline_response_200_10_devices.rb @@ -12,7 +12,7 @@ require 'date' module CyberSource - class InlineResponse2009Devices + class InlineResponse20010Devices attr_accessor :reader_id attr_accessor :serial_number @@ -93,7 +93,7 @@ def self.swagger_types :'account_id' => :'String', :'terminal_creation_date' => :'DateTime', :'terminal_updation_date' => :'DateTime', - :'payment_processor_to_terminal_map' => :'InlineResponse2009PaymentProcessorToTerminalMap' + :'payment_processor_to_terminal_map' => :'InlineResponse20010PaymentProcessorToTerminalMap' } end diff --git a/lib/cybersource_rest_client/models/inline_response_200_9_payment_processor_to_terminal_map.rb b/lib/cybersource_rest_client/models/inline_response_200_10_payment_processor_to_terminal_map.rb similarity index 99% rename from lib/cybersource_rest_client/models/inline_response_200_9_payment_processor_to_terminal_map.rb rename to lib/cybersource_rest_client/models/inline_response_200_10_payment_processor_to_terminal_map.rb index 39acbacf..6b0eb7f5 100644 --- a/lib/cybersource_rest_client/models/inline_response_200_9_payment_processor_to_terminal_map.rb +++ b/lib/cybersource_rest_client/models/inline_response_200_10_payment_processor_to_terminal_map.rb @@ -13,7 +13,7 @@ module CyberSource # Mapping between processor and Terminal. - class InlineResponse2009PaymentProcessorToTerminalMap + class InlineResponse20010PaymentProcessorToTerminalMap attr_accessor :processor attr_accessor :terminal_id diff --git a/lib/cybersource_rest_client/models/inline_response_200_11.rb b/lib/cybersource_rest_client/models/inline_response_200_11.rb index 9ef011e3..2d189bc0 100644 --- a/lib/cybersource_rest_client/models/inline_response_200_11.rb +++ b/lib/cybersource_rest_client/models/inline_response_200_11.rb @@ -15,42 +15,28 @@ module CyberSource class InlineResponse20011 attr_accessor :_links - # Unique identification number assigned to the submitted request. - attr_accessor :batch_id + attr_accessor :object - # ISO-8601 format: yyyy-MM-ddTHH:mm:ssZ - attr_accessor :batch_created_date + attr_accessor :offset - # Valid Values: * SCHEDULER * TOKEN_API * CREDIT_CARD_FILE_UPLOAD * AMEX_REGSITRY * AMEX_REGISTRY_API * AMEX_MAINTENANCE - attr_accessor :batch_source + attr_accessor :limit - # Reference used by merchant to identify batch. - attr_accessor :merchant_reference + attr_accessor :count - attr_accessor :batch_ca_endpoints + attr_accessor :total - # Valid Values: * REJECTED * RECEIVED * VALIDATED * DECLINED * PROCESSING * COMPLETED - attr_accessor :status - - attr_accessor :totals - - attr_accessor :billing - - attr_accessor :description + attr_accessor :_embedded # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { :'_links' => :'_links', - :'batch_id' => :'batchId', - :'batch_created_date' => :'batchCreatedDate', - :'batch_source' => :'batchSource', - :'merchant_reference' => :'merchantReference', - :'batch_ca_endpoints' => :'batchCaEndpoints', - :'status' => :'status', - :'totals' => :'totals', - :'billing' => :'billing', - :'description' => :'description' + :'object' => :'object', + :'offset' => :'offset', + :'limit' => :'limit', + :'count' => :'count', + :'total' => :'total', + :'_embedded' => :'_embedded' } end @@ -58,31 +44,25 @@ def self.attribute_map def self.json_map { :'_links' => :'_links', - :'batch_id' => :'batch_id', - :'batch_created_date' => :'batch_created_date', - :'batch_source' => :'batch_source', - :'merchant_reference' => :'merchant_reference', - :'batch_ca_endpoints' => :'batch_ca_endpoints', - :'status' => :'status', - :'totals' => :'totals', - :'billing' => :'billing', - :'description' => :'description' + :'object' => :'object', + :'offset' => :'offset', + :'limit' => :'limit', + :'count' => :'count', + :'total' => :'total', + :'_embedded' => :'_embedded' } end # Attribute type mapping. def self.swagger_types { - :'_links' => :'InlineResponse20011Links', - :'batch_id' => :'String', - :'batch_created_date' => :'String', - :'batch_source' => :'String', - :'merchant_reference' => :'String', - :'batch_ca_endpoints' => :'String', - :'status' => :'String', - :'totals' => :'InlineResponse20010EmbeddedTotals', - :'billing' => :'InlineResponse20011Billing', - :'description' => :'String' + :'_links' => :'Array', + :'object' => :'String', + :'offset' => :'Integer', + :'limit' => :'Integer', + :'count' => :'Integer', + :'total' => :'Integer', + :'_embedded' => :'InlineResponse20011Embedded' } end @@ -95,43 +75,33 @@ def initialize(attributes = {}) attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v } if attributes.has_key?(:'_links') - self._links = attributes[:'_links'] - end - - if attributes.has_key?(:'batchId') - self.batch_id = attributes[:'batchId'] - end - - if attributes.has_key?(:'batchCreatedDate') - self.batch_created_date = attributes[:'batchCreatedDate'] - end - - if attributes.has_key?(:'batchSource') - self.batch_source = attributes[:'batchSource'] + if (value = attributes[:'_links']).is_a?(Array) + self._links = value + end end - if attributes.has_key?(:'merchantReference') - self.merchant_reference = attributes[:'merchantReference'] + if attributes.has_key?(:'object') + self.object = attributes[:'object'] end - if attributes.has_key?(:'batchCaEndpoints') - self.batch_ca_endpoints = attributes[:'batchCaEndpoints'] + if attributes.has_key?(:'offset') + self.offset = attributes[:'offset'] end - if attributes.has_key?(:'status') - self.status = attributes[:'status'] + if attributes.has_key?(:'limit') + self.limit = attributes[:'limit'] end - if attributes.has_key?(:'totals') - self.totals = attributes[:'totals'] + if attributes.has_key?(:'count') + self.count = attributes[:'count'] end - if attributes.has_key?(:'billing') - self.billing = attributes[:'billing'] + if attributes.has_key?(:'total') + self.total = attributes[:'total'] end - if attributes.has_key?(:'description') - self.description = attributes[:'description'] + if attributes.has_key?(:'_embedded') + self._embedded = attributes[:'_embedded'] end end @@ -148,27 +118,18 @@ def valid? true end - # Custom attribute writer method with validation - # @param [Object] merchant_reference Value to be assigned - def merchant_reference=(merchant_reference) - @merchant_reference = merchant_reference - end - # Checks equality by comparing each attribute. # @param [Object] Object to be compared def ==(o) return true if self.equal?(o) self.class == o.class && _links == o._links && - batch_id == o.batch_id && - batch_created_date == o.batch_created_date && - batch_source == o.batch_source && - merchant_reference == o.merchant_reference && - batch_ca_endpoints == o.batch_ca_endpoints && - status == o.status && - totals == o.totals && - billing == o.billing && - description == o.description + object == o.object && + offset == o.offset && + limit == o.limit && + count == o.count && + total == o.total && + _embedded == o._embedded end # @see the `==` method @@ -180,7 +141,7 @@ def eql?(o) # Calculates hash code according to all attributes. # @return [Fixnum] Hash code def hash - [_links, batch_id, batch_created_date, batch_source, merchant_reference, batch_ca_endpoints, status, totals, billing, description].hash + [_links, object, offset, limit, count, total, _embedded].hash end # Builds the object from hash diff --git a/lib/cybersource_rest_client/models/inline_response_200_10__embedded.rb b/lib/cybersource_rest_client/models/inline_response_200_11__embedded.rb similarity index 98% rename from lib/cybersource_rest_client/models/inline_response_200_10__embedded.rb rename to lib/cybersource_rest_client/models/inline_response_200_11__embedded.rb index 12f6a8cb..a8988d5a 100644 --- a/lib/cybersource_rest_client/models/inline_response_200_10__embedded.rb +++ b/lib/cybersource_rest_client/models/inline_response_200_11__embedded.rb @@ -12,7 +12,7 @@ require 'date' module CyberSource - class InlineResponse20010Embedded + class InlineResponse20011Embedded attr_accessor :batches # Attribute mapping from ruby-style variable name to JSON key. @@ -32,7 +32,7 @@ def self.json_map # Attribute type mapping. def self.swagger_types { - :'batches' => :'Array' + :'batches' => :'Array' } end diff --git a/lib/cybersource_rest_client/models/inline_response_200_10__embedded__links.rb b/lib/cybersource_rest_client/models/inline_response_200_11__embedded__links.rb similarity index 98% rename from lib/cybersource_rest_client/models/inline_response_200_10__embedded__links.rb rename to lib/cybersource_rest_client/models/inline_response_200_11__embedded__links.rb index f9845310..d85946a5 100644 --- a/lib/cybersource_rest_client/models/inline_response_200_10__embedded__links.rb +++ b/lib/cybersource_rest_client/models/inline_response_200_11__embedded__links.rb @@ -12,7 +12,7 @@ require 'date' module CyberSource - class InlineResponse20010EmbeddedLinks + class InlineResponse20011EmbeddedLinks attr_accessor :reports # Attribute mapping from ruby-style variable name to JSON key. @@ -32,7 +32,7 @@ def self.json_map # Attribute type mapping. def self.swagger_types { - :'reports' => :'Array' + :'reports' => :'Array' } end diff --git a/lib/cybersource_rest_client/models/inline_response_200_10__embedded__links_reports.rb b/lib/cybersource_rest_client/models/inline_response_200_11__embedded__links_reports.rb similarity index 99% rename from lib/cybersource_rest_client/models/inline_response_200_10__embedded__links_reports.rb rename to lib/cybersource_rest_client/models/inline_response_200_11__embedded__links_reports.rb index c43612d3..95cd6e51 100644 --- a/lib/cybersource_rest_client/models/inline_response_200_10__embedded__links_reports.rb +++ b/lib/cybersource_rest_client/models/inline_response_200_11__embedded__links_reports.rb @@ -13,7 +13,7 @@ module CyberSource # Retrieve the generated report of a batch when available. - class InlineResponse20010EmbeddedLinksReports + class InlineResponse20011EmbeddedLinksReports attr_accessor :href # Attribute mapping from ruby-style variable name to JSON key. diff --git a/lib/cybersource_rest_client/models/inline_response_200_10__embedded_batches.rb b/lib/cybersource_rest_client/models/inline_response_200_11__embedded_batches.rb similarity index 98% rename from lib/cybersource_rest_client/models/inline_response_200_10__embedded_batches.rb rename to lib/cybersource_rest_client/models/inline_response_200_11__embedded_batches.rb index 572a9d8f..74029662 100644 --- a/lib/cybersource_rest_client/models/inline_response_200_10__embedded_batches.rb +++ b/lib/cybersource_rest_client/models/inline_response_200_11__embedded_batches.rb @@ -12,7 +12,7 @@ require 'date' module CyberSource - class InlineResponse20010EmbeddedBatches + class InlineResponse20011EmbeddedBatches attr_accessor :_links # Unique identification number assigned to the submitted request. @@ -76,7 +76,7 @@ def self.json_map # Attribute type mapping. def self.swagger_types { - :'_links' => :'InlineResponse20010EmbeddedLinks', + :'_links' => :'InlineResponse20011EmbeddedLinks', :'batch_id' => :'String', :'batch_created_date' => :'String', :'batch_modified_date' => :'String', @@ -85,7 +85,7 @@ def self.swagger_types :'merchant_reference' => :'String', :'batch_ca_endpoints' => :'Array', :'status' => :'String', - :'totals' => :'InlineResponse20010EmbeddedTotals' + :'totals' => :'InlineResponse20011EmbeddedTotals' } end diff --git a/lib/cybersource_rest_client/models/inline_response_200_10__embedded_totals.rb b/lib/cybersource_rest_client/models/inline_response_200_11__embedded_totals.rb similarity index 99% rename from lib/cybersource_rest_client/models/inline_response_200_10__embedded_totals.rb rename to lib/cybersource_rest_client/models/inline_response_200_11__embedded_totals.rb index c196eb9e..f5c7c2e7 100644 --- a/lib/cybersource_rest_client/models/inline_response_200_10__embedded_totals.rb +++ b/lib/cybersource_rest_client/models/inline_response_200_11__embedded_totals.rb @@ -12,7 +12,7 @@ require 'date' module CyberSource - class InlineResponse20010EmbeddedTotals + class InlineResponse20011EmbeddedTotals attr_accessor :accepted_records attr_accessor :rejected_records diff --git a/lib/cybersource_rest_client/models/inline_response_200_11__links.rb b/lib/cybersource_rest_client/models/inline_response_200_11__links.rb index 5ea2f82d..217cc6d9 100644 --- a/lib/cybersource_rest_client/models/inline_response_200_11__links.rb +++ b/lib/cybersource_rest_client/models/inline_response_200_11__links.rb @@ -13,31 +13,32 @@ module CyberSource class InlineResponse20011Links - attr_accessor :_self + # Valid Values: * self * first * last * prev * next + attr_accessor :rel - attr_accessor :report + attr_accessor :href # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { - :'_self' => :'self', - :'report' => :'report' + :'rel' => :'rel', + :'href' => :'href' } end # Attribute mapping from JSON key to ruby-style variable name. def self.json_map { - :'_self' => :'_self', - :'report' => :'report' + :'rel' => :'rel', + :'href' => :'href' } end # Attribute type mapping. def self.swagger_types { - :'_self' => :'InlineResponse202LinksStatus', - :'report' => :'Array' + :'rel' => :'String', + :'href' => :'String' } end @@ -49,14 +50,12 @@ def initialize(attributes = {}) # convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v } - if attributes.has_key?(:'self') - self._self = attributes[:'self'] + if attributes.has_key?(:'rel') + self.rel = attributes[:'rel'] end - if attributes.has_key?(:'report') - if (value = attributes[:'report']).is_a?(Array) - self.report = value - end + if attributes.has_key?(:'href') + self.href = attributes[:'href'] end end @@ -78,8 +77,8 @@ def valid? def ==(o) return true if self.equal?(o) self.class == o.class && - _self == o._self && - report == o.report + rel == o.rel && + href == o.href end # @see the `==` method @@ -91,7 +90,7 @@ def eql?(o) # Calculates hash code according to all attributes. # @return [Fixnum] Hash code def hash - [_self, report].hash + [rel, href].hash end # Builds the object from hash diff --git a/lib/cybersource_rest_client/models/inline_response_200_12.rb b/lib/cybersource_rest_client/models/inline_response_200_12.rb index a41199ac..b3472f77 100644 --- a/lib/cybersource_rest_client/models/inline_response_200_12.rb +++ b/lib/cybersource_rest_client/models/inline_response_200_12.rb @@ -13,76 +13,76 @@ module CyberSource class InlineResponse20012 - attr_accessor :version - - # ISO-8601 format: yyyy-MM-ddTHH:mm:ssZ - attr_accessor :report_created_date + attr_accessor :_links # Unique identification number assigned to the submitted request. attr_accessor :batch_id - # Valid Values: * SCHEDULER * TOKEN_API * CREDIT_CARD_FILE_UPLOAD * AMEX_REGSITRY * AMEX_REGISTRY_API * AMEX_MAINTENANCE - attr_accessor :batch_source - - attr_accessor :batch_ca_endpoints - # ISO-8601 format: yyyy-MM-ddTHH:mm:ssZ attr_accessor :batch_created_date + # Valid Values: * SCHEDULER * TOKEN_API * CREDIT_CARD_FILE_UPLOAD * AMEX_REGSITRY * AMEX_REGISTRY_API * AMEX_MAINTENANCE + attr_accessor :batch_source + # Reference used by merchant to identify batch. attr_accessor :merchant_reference + attr_accessor :batch_ca_endpoints + + # Valid Values: * REJECTED * RECEIVED * VALIDATED * DECLINED * PROCESSING * COMPLETED + attr_accessor :status + attr_accessor :totals attr_accessor :billing - attr_accessor :records + attr_accessor :description # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { - :'version' => :'version', - :'report_created_date' => :'reportCreatedDate', + :'_links' => :'_links', :'batch_id' => :'batchId', - :'batch_source' => :'batchSource', - :'batch_ca_endpoints' => :'batchCaEndpoints', :'batch_created_date' => :'batchCreatedDate', + :'batch_source' => :'batchSource', :'merchant_reference' => :'merchantReference', + :'batch_ca_endpoints' => :'batchCaEndpoints', + :'status' => :'status', :'totals' => :'totals', :'billing' => :'billing', - :'records' => :'records' + :'description' => :'description' } end # Attribute mapping from JSON key to ruby-style variable name. def self.json_map { - :'version' => :'version', - :'report_created_date' => :'report_created_date', + :'_links' => :'_links', :'batch_id' => :'batch_id', - :'batch_source' => :'batch_source', - :'batch_ca_endpoints' => :'batch_ca_endpoints', :'batch_created_date' => :'batch_created_date', + :'batch_source' => :'batch_source', :'merchant_reference' => :'merchant_reference', + :'batch_ca_endpoints' => :'batch_ca_endpoints', + :'status' => :'status', :'totals' => :'totals', :'billing' => :'billing', - :'records' => :'records' + :'description' => :'description' } end # Attribute type mapping. def self.swagger_types { - :'version' => :'String', - :'report_created_date' => :'String', + :'_links' => :'InlineResponse20012Links', :'batch_id' => :'String', - :'batch_source' => :'String', - :'batch_ca_endpoints' => :'String', :'batch_created_date' => :'String', + :'batch_source' => :'String', :'merchant_reference' => :'String', - :'totals' => :'InlineResponse20010EmbeddedTotals', - :'billing' => :'InlineResponse20011Billing', - :'records' => :'Array' + :'batch_ca_endpoints' => :'String', + :'status' => :'String', + :'totals' => :'InlineResponse20011EmbeddedTotals', + :'billing' => :'InlineResponse20012Billing', + :'description' => :'String' } end @@ -94,32 +94,32 @@ def initialize(attributes = {}) # convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v } - if attributes.has_key?(:'version') - self.version = attributes[:'version'] - end - - if attributes.has_key?(:'reportCreatedDate') - self.report_created_date = attributes[:'reportCreatedDate'] + if attributes.has_key?(:'_links') + self._links = attributes[:'_links'] end if attributes.has_key?(:'batchId') self.batch_id = attributes[:'batchId'] end + if attributes.has_key?(:'batchCreatedDate') + self.batch_created_date = attributes[:'batchCreatedDate'] + end + if attributes.has_key?(:'batchSource') self.batch_source = attributes[:'batchSource'] end - if attributes.has_key?(:'batchCaEndpoints') - self.batch_ca_endpoints = attributes[:'batchCaEndpoints'] + if attributes.has_key?(:'merchantReference') + self.merchant_reference = attributes[:'merchantReference'] end - if attributes.has_key?(:'batchCreatedDate') - self.batch_created_date = attributes[:'batchCreatedDate'] + if attributes.has_key?(:'batchCaEndpoints') + self.batch_ca_endpoints = attributes[:'batchCaEndpoints'] end - if attributes.has_key?(:'merchantReference') - self.merchant_reference = attributes[:'merchantReference'] + if attributes.has_key?(:'status') + self.status = attributes[:'status'] end if attributes.has_key?(:'totals') @@ -130,10 +130,8 @@ def initialize(attributes = {}) self.billing = attributes[:'billing'] end - if attributes.has_key?(:'records') - if (value = attributes[:'records']).is_a?(Array) - self.records = value - end + if attributes.has_key?(:'description') + self.description = attributes[:'description'] end end @@ -161,16 +159,16 @@ def merchant_reference=(merchant_reference) def ==(o) return true if self.equal?(o) self.class == o.class && - version == o.version && - report_created_date == o.report_created_date && + _links == o._links && batch_id == o.batch_id && - batch_source == o.batch_source && - batch_ca_endpoints == o.batch_ca_endpoints && batch_created_date == o.batch_created_date && + batch_source == o.batch_source && merchant_reference == o.merchant_reference && + batch_ca_endpoints == o.batch_ca_endpoints && + status == o.status && totals == o.totals && billing == o.billing && - records == o.records + description == o.description end # @see the `==` method @@ -182,7 +180,7 @@ def eql?(o) # Calculates hash code according to all attributes. # @return [Fixnum] Hash code def hash - [version, report_created_date, batch_id, batch_source, batch_ca_endpoints, batch_created_date, merchant_reference, totals, billing, records].hash + [_links, batch_id, batch_created_date, batch_source, merchant_reference, batch_ca_endpoints, status, totals, billing, description].hash end # Builds the object from hash diff --git a/lib/cybersource_rest_client/models/inline_response_200_12__links.rb b/lib/cybersource_rest_client/models/inline_response_200_12__links.rb new file mode 100644 index 00000000..66af5606 --- /dev/null +++ b/lib/cybersource_rest_client/models/inline_response_200_12__links.rb @@ -0,0 +1,201 @@ +=begin +#CyberSource Merged Spec + +#All CyberSource API specs merged together. These are available at https://developer.cybersource.com/api/reference/api-reference.html + +OpenAPI spec version: 0.0.1 + +Generated by: https://github.com/swagger-api/swagger-codegen.git +Swagger Codegen version: 2.4.38 +=end + +require 'date' + +module CyberSource + class InlineResponse20012Links + attr_accessor :_self + + attr_accessor :report + + # Attribute mapping from ruby-style variable name to JSON key. + def self.attribute_map + { + :'_self' => :'self', + :'report' => :'report' + } + end + + # Attribute mapping from JSON key to ruby-style variable name. + def self.json_map + { + :'_self' => :'_self', + :'report' => :'report' + } + end + + # Attribute type mapping. + def self.swagger_types + { + :'_self' => :'InlineResponse202LinksStatus', + :'report' => :'Array' + } + end + + # Initializes the object + # @param [Hash] attributes Model attributes in the form of hash + def initialize(attributes = {}) + return unless attributes.is_a?(Hash) + + # convert string to symbol for hash key + attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v } + + if attributes.has_key?(:'self') + self._self = attributes[:'self'] + end + + if attributes.has_key?(:'report') + if (value = attributes[:'report']).is_a?(Array) + self.report = value + end + end + end + + # Show invalid properties with the reasons. Usually used together with valid? + # @return Array for valid properties with the reasons + def list_invalid_properties + invalid_properties = Array.new + invalid_properties + end + + # Check to see if the all the properties in the model are valid + # @return true if the model is valid + def valid? + true + end + + # Checks equality by comparing each attribute. + # @param [Object] Object to be compared + def ==(o) + return true if self.equal?(o) + self.class == o.class && + _self == o._self && + report == o.report + end + + # @see the `==` method + # @param [Object] Object to be compared + def eql?(o) + self == o + end + + # Calculates hash code according to all attributes. + # @return [Fixnum] Hash code + def hash + [_self, report].hash + end + + # Builds the object from hash + # @param [Hash] attributes Model attributes in the form of hash + # @return [Object] Returns the model itself + def build_from_hash(attributes) + return nil unless attributes.is_a?(Hash) + self.class.swagger_types.each_pair do |key, type| + if type =~ /\AArray<(.*)>/i + # check to ensure the input is an array given that the the attribute + # is documented as an array but the input is not + if attributes[self.class.attribute_map[key]].is_a?(Array) + self.send("#{self.class.json_map[key]}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) + end + elsif !attributes[self.class.attribute_map[key]].nil? + self.send("#{self.class.json_map[key]}=", _deserialize(type, attributes[self.class.attribute_map[key]])) + end # or else data not found in attributes(hash), not an issue as the data can be optional + end + + self + end + + # Deserializes the data based on type + # @param string type Data type + # @param string value Value to be deserialized + # @return [Object] Deserialized data + def _deserialize(type, value) + case type.to_sym + when :DateTime + DateTime.parse(value) + when :Date + Date.parse(value) + when :String + value.to_s + when :Integer + value.to_i + when :Float + value.to_f + when :BOOLEAN + if value.to_s =~ /\A(true|t|yes|y|1)\z/i + true + else + false + end + when :Object + # generic object (usually a Hash), return directly + value + when /\AArray<(?.+)>\z/ + inner_type = Regexp.last_match[:inner_type] + value.map { |v| _deserialize(inner_type, v) } + when /\AHash<(?.+?), (?.+)>\z/ + k_type = Regexp.last_match[:k_type] + v_type = Regexp.last_match[:v_type] + {}.tap do |hash| + value.each do |k, v| + hash[_deserialize(k_type, k)] = _deserialize(v_type, v) + end + end + else # model + temp_model = CyberSource.const_get(type).new + temp_model.build_from_hash(value) + end + end + + # Returns the string representation of the object + # @return [String] String presentation of the object + def to_s + to_hash.to_s + end + + # to_body is an alias to to_hash (backward compatibility) + # @return [Hash] Returns the object in the form of hash + def to_body + to_hash + end + + # Returns the object in the form of hash + # @return [Hash] Returns the object in the form of hash + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + next if value.nil? + hash[param] = _to_hash(value) + end + hash + end + + # Outputs non-array value in the form of hash + # For object, use to_hash. Otherwise, just return the value + # @param [Object] value Any valid value + # @return [Hash] Returns the value in the form of hash + def _to_hash(value) + if value.is_a?(Array) + value.compact.map { |v| _to_hash(v) } + elsif value.is_a?(Hash) + {}.tap do |hash| + value.each { |k, v| hash[k] = _to_hash(v) } + end + elsif value.respond_to? :to_hash + value.to_hash + else + value + end + end + end +end diff --git a/lib/cybersource_rest_client/models/inline_response_200_11__links_report.rb b/lib/cybersource_rest_client/models/inline_response_200_12__links_report.rb similarity index 99% rename from lib/cybersource_rest_client/models/inline_response_200_11__links_report.rb rename to lib/cybersource_rest_client/models/inline_response_200_12__links_report.rb index 8cd7885e..60374580 100644 --- a/lib/cybersource_rest_client/models/inline_response_200_11__links_report.rb +++ b/lib/cybersource_rest_client/models/inline_response_200_12__links_report.rb @@ -12,7 +12,7 @@ require 'date' module CyberSource - class InlineResponse20011LinksReport + class InlineResponse20012LinksReport attr_accessor :href # Attribute mapping from ruby-style variable name to JSON key. diff --git a/lib/cybersource_rest_client/models/inline_response_200_11_billing.rb b/lib/cybersource_rest_client/models/inline_response_200_12_billing.rb similarity index 99% rename from lib/cybersource_rest_client/models/inline_response_200_11_billing.rb rename to lib/cybersource_rest_client/models/inline_response_200_12_billing.rb index e4a78505..543c21fa 100644 --- a/lib/cybersource_rest_client/models/inline_response_200_11_billing.rb +++ b/lib/cybersource_rest_client/models/inline_response_200_12_billing.rb @@ -12,7 +12,7 @@ require 'date' module CyberSource - class InlineResponse20011Billing + class InlineResponse20012Billing attr_accessor :nan attr_accessor :ned diff --git a/lib/cybersource_rest_client/models/inline_response_200_13.rb b/lib/cybersource_rest_client/models/inline_response_200_13.rb index 2f52bcea..c376f39f 100644 --- a/lib/cybersource_rest_client/models/inline_response_200_13.rb +++ b/lib/cybersource_rest_client/models/inline_response_200_13.rb @@ -13,43 +13,76 @@ module CyberSource class InlineResponse20013 - attr_accessor :client_reference_information + attr_accessor :version - # Request Id sent as part of the request. - attr_accessor :request_id + # ISO-8601 format: yyyy-MM-ddTHH:mm:ssZ + attr_accessor :report_created_date - # Time of request in UTC. Format: `YYYY-MM-DDThhmmssZ`, where: - `T`: Separates the date and the time - `Z`: Indicates Coordinated Universal Time (UTC), also known as Greenwich Mean Time (GMT) Example: `2020-01-11T224757Z` equals January 11, 2020, at 22:47:57 (10:47:57 p.m.) - attr_accessor :submit_time_utc + # Unique identification number assigned to the submitted request. + attr_accessor :batch_id - attr_accessor :bank_account_validation + # Valid Values: * SCHEDULER * TOKEN_API * CREDIT_CARD_FILE_UPLOAD * AMEX_REGSITRY * AMEX_REGISTRY_API * AMEX_MAINTENANCE + attr_accessor :batch_source + + attr_accessor :batch_ca_endpoints + + # ISO-8601 format: yyyy-MM-ddTHH:mm:ssZ + attr_accessor :batch_created_date + + # Reference used by merchant to identify batch. + attr_accessor :merchant_reference + + attr_accessor :totals + + attr_accessor :billing + + attr_accessor :records # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { - :'client_reference_information' => :'clientReferenceInformation', - :'request_id' => :'requestId', - :'submit_time_utc' => :'submitTimeUtc', - :'bank_account_validation' => :'bankAccountValidation' + :'version' => :'version', + :'report_created_date' => :'reportCreatedDate', + :'batch_id' => :'batchId', + :'batch_source' => :'batchSource', + :'batch_ca_endpoints' => :'batchCaEndpoints', + :'batch_created_date' => :'batchCreatedDate', + :'merchant_reference' => :'merchantReference', + :'totals' => :'totals', + :'billing' => :'billing', + :'records' => :'records' } end # Attribute mapping from JSON key to ruby-style variable name. def self.json_map { - :'client_reference_information' => :'client_reference_information', - :'request_id' => :'request_id', - :'submit_time_utc' => :'submit_time_utc', - :'bank_account_validation' => :'bank_account_validation' + :'version' => :'version', + :'report_created_date' => :'report_created_date', + :'batch_id' => :'batch_id', + :'batch_source' => :'batch_source', + :'batch_ca_endpoints' => :'batch_ca_endpoints', + :'batch_created_date' => :'batch_created_date', + :'merchant_reference' => :'merchant_reference', + :'totals' => :'totals', + :'billing' => :'billing', + :'records' => :'records' } end # Attribute type mapping. def self.swagger_types { - :'client_reference_information' => :'Bavsv1accountvalidationsClientReferenceInformation', - :'request_id' => :'String', - :'submit_time_utc' => :'String', - :'bank_account_validation' => :'TssV2TransactionsGet200ResponseBankAccountValidation' + :'version' => :'String', + :'report_created_date' => :'String', + :'batch_id' => :'String', + :'batch_source' => :'String', + :'batch_ca_endpoints' => :'String', + :'batch_created_date' => :'String', + :'merchant_reference' => :'String', + :'totals' => :'InlineResponse20011EmbeddedTotals', + :'billing' => :'InlineResponse20012Billing', + :'records' => :'Array' } end @@ -61,20 +94,46 @@ def initialize(attributes = {}) # convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v } - if attributes.has_key?(:'clientReferenceInformation') - self.client_reference_information = attributes[:'clientReferenceInformation'] + if attributes.has_key?(:'version') + self.version = attributes[:'version'] end - if attributes.has_key?(:'requestId') - self.request_id = attributes[:'requestId'] + if attributes.has_key?(:'reportCreatedDate') + self.report_created_date = attributes[:'reportCreatedDate'] end - if attributes.has_key?(:'submitTimeUtc') - self.submit_time_utc = attributes[:'submitTimeUtc'] + if attributes.has_key?(:'batchId') + self.batch_id = attributes[:'batchId'] end - if attributes.has_key?(:'bankAccountValidation') - self.bank_account_validation = attributes[:'bankAccountValidation'] + if attributes.has_key?(:'batchSource') + self.batch_source = attributes[:'batchSource'] + end + + if attributes.has_key?(:'batchCaEndpoints') + self.batch_ca_endpoints = attributes[:'batchCaEndpoints'] + end + + if attributes.has_key?(:'batchCreatedDate') + self.batch_created_date = attributes[:'batchCreatedDate'] + end + + if attributes.has_key?(:'merchantReference') + self.merchant_reference = attributes[:'merchantReference'] + end + + if attributes.has_key?(:'totals') + self.totals = attributes[:'totals'] + end + + if attributes.has_key?(:'billing') + self.billing = attributes[:'billing'] + end + + if attributes.has_key?(:'records') + if (value = attributes[:'records']).is_a?(Array) + self.records = value + end end end @@ -91,15 +150,27 @@ def valid? true end + # Custom attribute writer method with validation + # @param [Object] merchant_reference Value to be assigned + def merchant_reference=(merchant_reference) + @merchant_reference = merchant_reference + end + # Checks equality by comparing each attribute. # @param [Object] Object to be compared def ==(o) return true if self.equal?(o) self.class == o.class && - client_reference_information == o.client_reference_information && - request_id == o.request_id && - submit_time_utc == o.submit_time_utc && - bank_account_validation == o.bank_account_validation + version == o.version && + report_created_date == o.report_created_date && + batch_id == o.batch_id && + batch_source == o.batch_source && + batch_ca_endpoints == o.batch_ca_endpoints && + batch_created_date == o.batch_created_date && + merchant_reference == o.merchant_reference && + totals == o.totals && + billing == o.billing && + records == o.records end # @see the `==` method @@ -111,7 +182,7 @@ def eql?(o) # Calculates hash code according to all attributes. # @return [Fixnum] Hash code def hash - [client_reference_information, request_id, submit_time_utc, bank_account_validation].hash + [version, report_created_date, batch_id, batch_source, batch_ca_endpoints, batch_created_date, merchant_reference, totals, billing, records].hash end # Builds the object from hash diff --git a/lib/cybersource_rest_client/models/inline_response_200_12_records.rb b/lib/cybersource_rest_client/models/inline_response_200_13_records.rb similarity index 97% rename from lib/cybersource_rest_client/models/inline_response_200_12_records.rb rename to lib/cybersource_rest_client/models/inline_response_200_13_records.rb index 7b4f8337..9c4c7ac9 100644 --- a/lib/cybersource_rest_client/models/inline_response_200_12_records.rb +++ b/lib/cybersource_rest_client/models/inline_response_200_13_records.rb @@ -12,7 +12,7 @@ require 'date' module CyberSource - class InlineResponse20012Records + class InlineResponse20013Records attr_accessor :id attr_accessor :source_record @@ -41,8 +41,8 @@ def self.json_map def self.swagger_types { :'id' => :'String', - :'source_record' => :'InlineResponse20012SourceRecord', - :'response_record' => :'InlineResponse20012ResponseRecord' + :'source_record' => :'InlineResponse20013SourceRecord', + :'response_record' => :'InlineResponse20013ResponseRecord' } end diff --git a/lib/cybersource_rest_client/models/inline_response_200_12_response_record.rb b/lib/cybersource_rest_client/models/inline_response_200_13_response_record.rb similarity index 98% rename from lib/cybersource_rest_client/models/inline_response_200_12_response_record.rb rename to lib/cybersource_rest_client/models/inline_response_200_13_response_record.rb index 467b8005..0627ba09 100644 --- a/lib/cybersource_rest_client/models/inline_response_200_12_response_record.rb +++ b/lib/cybersource_rest_client/models/inline_response_200_13_response_record.rb @@ -12,7 +12,7 @@ require 'date' module CyberSource - class InlineResponse20012ResponseRecord + class InlineResponse20013ResponseRecord # Valid Values: * NAN * NED * ACL * CCH * CUR * NUP * UNA * ERR * DEC attr_accessor :response @@ -79,7 +79,7 @@ def self.swagger_types :'card_expiry_month' => :'String', :'card_expiry_year' => :'String', :'card_type' => :'String', - :'additional_updates' => :'Array' + :'additional_updates' => :'Array' } end diff --git a/lib/cybersource_rest_client/models/inline_response_200_12_response_record_additional_updates.rb b/lib/cybersource_rest_client/models/inline_response_200_13_response_record_additional_updates.rb similarity index 99% rename from lib/cybersource_rest_client/models/inline_response_200_12_response_record_additional_updates.rb rename to lib/cybersource_rest_client/models/inline_response_200_13_response_record_additional_updates.rb index a25758ee..ca708d9c 100644 --- a/lib/cybersource_rest_client/models/inline_response_200_12_response_record_additional_updates.rb +++ b/lib/cybersource_rest_client/models/inline_response_200_13_response_record_additional_updates.rb @@ -12,7 +12,7 @@ require 'date' module CyberSource - class InlineResponse20012ResponseRecordAdditionalUpdates + class InlineResponse20013ResponseRecordAdditionalUpdates attr_accessor :customer_id attr_accessor :payment_instrument_id diff --git a/lib/cybersource_rest_client/models/inline_response_200_12_source_record.rb b/lib/cybersource_rest_client/models/inline_response_200_13_source_record.rb similarity index 99% rename from lib/cybersource_rest_client/models/inline_response_200_12_source_record.rb rename to lib/cybersource_rest_client/models/inline_response_200_13_source_record.rb index 144eb6e4..9dc0410f 100644 --- a/lib/cybersource_rest_client/models/inline_response_200_12_source_record.rb +++ b/lib/cybersource_rest_client/models/inline_response_200_13_source_record.rb @@ -12,7 +12,7 @@ require 'date' module CyberSource - class InlineResponse20012SourceRecord + class InlineResponse20013SourceRecord attr_accessor :token attr_accessor :customer_id diff --git a/lib/cybersource_rest_client/models/inline_response_200_14.rb b/lib/cybersource_rest_client/models/inline_response_200_14.rb index e4ac7c21..1d376e31 100644 --- a/lib/cybersource_rest_client/models/inline_response_200_14.rb +++ b/lib/cybersource_rest_client/models/inline_response_200_14.rb @@ -15,28 +15,21 @@ module CyberSource class InlineResponse20014 attr_accessor :client_reference_information - # Request ID generated by Cybersource. This was sent in the header on the request. Echo value from x-requestid - attr_accessor :id + # Request Id sent as part of the request. + attr_accessor :request_id - # Time of request in UTC. Format: `YYYY-MM-DDThh:mm:ssZ` **Example** `2023-05-17T22:47:57Z` equals May 17, 2023, at 22:47:57 (10:47:57 PM). The `T` separates the date and the time. The `Z` indicates UTC. + # Time of request in UTC. Format: `YYYY-MM-DDThhmmssZ`, where: - `T`: Separates the date and the time - `Z`: Indicates Coordinated Universal Time (UTC), also known as Greenwich Mean Time (GMT) Example: `2020-01-11T224757Z` equals January 11, 2020, at 22:47:57 (10:47:57 p.m.) attr_accessor :submit_time_utc - # Message describing the status of the currency conversion request. Values: - `PENDING` - `DECLINED` - `INVALID_REQUEST` - `SERVER_ERROR` - `OFFER_DECLINED` - `AUTHORIZED` - `AUTHORIZATION_DECLINED` - `AUTHORIZATION_FAILURE` - `REVERSED` - `CAPTURED` - `REFUNDED` - `CANCELLED` - attr_accessor :status - - attr_accessor :error_information - - attr_accessor :order_information + attr_accessor :bank_account_validation # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { :'client_reference_information' => :'clientReferenceInformation', - :'id' => :'id', + :'request_id' => :'requestId', :'submit_time_utc' => :'submitTimeUtc', - :'status' => :'status', - :'error_information' => :'errorInformation', - :'order_information' => :'orderInformation' + :'bank_account_validation' => :'bankAccountValidation' } end @@ -44,23 +37,19 @@ def self.attribute_map def self.json_map { :'client_reference_information' => :'client_reference_information', - :'id' => :'id', + :'request_id' => :'request_id', :'submit_time_utc' => :'submit_time_utc', - :'status' => :'status', - :'error_information' => :'error_information', - :'order_information' => :'order_information' + :'bank_account_validation' => :'bank_account_validation' } end # Attribute type mapping. def self.swagger_types { - :'client_reference_information' => :'InlineResponse20014ClientReferenceInformation', - :'id' => :'String', + :'client_reference_information' => :'Bavsv1accountvalidationsClientReferenceInformation', + :'request_id' => :'String', :'submit_time_utc' => :'String', - :'status' => :'String', - :'error_information' => :'InlineResponse2018ErrorInformation', - :'order_information' => :'InlineResponse2018OrderInformation' + :'bank_account_validation' => :'TssV2TransactionsGet200ResponseBankAccountValidation' } end @@ -76,24 +65,16 @@ def initialize(attributes = {}) self.client_reference_information = attributes[:'clientReferenceInformation'] end - if attributes.has_key?(:'id') - self.id = attributes[:'id'] + if attributes.has_key?(:'requestId') + self.request_id = attributes[:'requestId'] end if attributes.has_key?(:'submitTimeUtc') self.submit_time_utc = attributes[:'submitTimeUtc'] end - if attributes.has_key?(:'status') - self.status = attributes[:'status'] - end - - if attributes.has_key?(:'errorInformation') - self.error_information = attributes[:'errorInformation'] - end - - if attributes.has_key?(:'orderInformation') - self.order_information = attributes[:'orderInformation'] + if attributes.has_key?(:'bankAccountValidation') + self.bank_account_validation = attributes[:'bankAccountValidation'] end end @@ -101,71 +82,24 @@ def initialize(attributes = {}) # @return Array for valid properties with the reasons def list_invalid_properties invalid_properties = Array.new - if @id.nil? - invalid_properties.push('invalid value for "id", id cannot be nil.') - end - - if @submit_time_utc.nil? - invalid_properties.push('invalid value for "submit_time_utc", submit_time_utc cannot be nil.') - end - - if @status.nil? - invalid_properties.push('invalid value for "status", status cannot be nil.') - end - invalid_properties end # Check to see if the all the properties in the model are valid # @return true if the model is valid def valid? - return false if @id.nil? - return false if @submit_time_utc.nil? - return false if @status.nil? true end - # Custom attribute writer method with validation - # @param [Object] id Value to be assigned - def id=(id) - #if id.nil? - #fail ArgumentError, 'id cannot be nil' - #end - - @id = id - end - - # Custom attribute writer method with validation - # @param [Object] submit_time_utc Value to be assigned - def submit_time_utc=(submit_time_utc) - #if submit_time_utc.nil? - #fail ArgumentError, 'submit_time_utc cannot be nil' - #end - - @submit_time_utc = submit_time_utc - end - - # Custom attribute writer method with validation - # @param [Object] status Value to be assigned - def status=(status) - #if status.nil? - #fail ArgumentError, 'status cannot be nil' - #end - - @status = status - end - # Checks equality by comparing each attribute. # @param [Object] Object to be compared def ==(o) return true if self.equal?(o) self.class == o.class && client_reference_information == o.client_reference_information && - id == o.id && + request_id == o.request_id && submit_time_utc == o.submit_time_utc && - status == o.status && - error_information == o.error_information && - order_information == o.order_information + bank_account_validation == o.bank_account_validation end # @see the `==` method @@ -177,7 +111,7 @@ def eql?(o) # Calculates hash code according to all attributes. # @return [Fixnum] Hash code def hash - [client_reference_information, id, submit_time_utc, status, error_information, order_information].hash + [client_reference_information, request_id, submit_time_utc, bank_account_validation].hash end # Builds the object from hash diff --git a/lib/cybersource_rest_client/models/inline_response_200_15.rb b/lib/cybersource_rest_client/models/inline_response_200_15.rb new file mode 100644 index 00000000..0823a1ee --- /dev/null +++ b/lib/cybersource_rest_client/models/inline_response_200_15.rb @@ -0,0 +1,287 @@ +=begin +#CyberSource Merged Spec + +#All CyberSource API specs merged together. These are available at https://developer.cybersource.com/api/reference/api-reference.html + +OpenAPI spec version: 0.0.1 + +Generated by: https://github.com/swagger-api/swagger-codegen.git +Swagger Codegen version: 2.4.38 +=end + +require 'date' + +module CyberSource + class InlineResponse20015 + attr_accessor :client_reference_information + + # Request ID generated by Cybersource. This was sent in the header on the request. Echo value from x-requestid + attr_accessor :id + + # Time of request in UTC. Format: `YYYY-MM-DDThh:mm:ssZ` **Example** `2023-05-17T22:47:57Z` equals May 17, 2023, at 22:47:57 (10:47:57 PM). The `T` separates the date and the time. The `Z` indicates UTC. + attr_accessor :submit_time_utc + + # Message describing the status of the currency conversion request. Values: - `PENDING` - `DECLINED` - `INVALID_REQUEST` - `SERVER_ERROR` - `OFFER_DECLINED` - `AUTHORIZED` - `AUTHORIZATION_DECLINED` - `AUTHORIZATION_FAILURE` - `REVERSED` - `CAPTURED` - `REFUNDED` - `CANCELLED` + attr_accessor :status + + attr_accessor :error_information + + attr_accessor :order_information + + # Attribute mapping from ruby-style variable name to JSON key. + def self.attribute_map + { + :'client_reference_information' => :'clientReferenceInformation', + :'id' => :'id', + :'submit_time_utc' => :'submitTimeUtc', + :'status' => :'status', + :'error_information' => :'errorInformation', + :'order_information' => :'orderInformation' + } + end + + # Attribute mapping from JSON key to ruby-style variable name. + def self.json_map + { + :'client_reference_information' => :'client_reference_information', + :'id' => :'id', + :'submit_time_utc' => :'submit_time_utc', + :'status' => :'status', + :'error_information' => :'error_information', + :'order_information' => :'order_information' + } + end + + # Attribute type mapping. + def self.swagger_types + { + :'client_reference_information' => :'InlineResponse20015ClientReferenceInformation', + :'id' => :'String', + :'submit_time_utc' => :'String', + :'status' => :'String', + :'error_information' => :'InlineResponse2018ErrorInformation', + :'order_information' => :'InlineResponse2018OrderInformation' + } + end + + # Initializes the object + # @param [Hash] attributes Model attributes in the form of hash + def initialize(attributes = {}) + return unless attributes.is_a?(Hash) + + # convert string to symbol for hash key + attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v } + + if attributes.has_key?(:'clientReferenceInformation') + self.client_reference_information = attributes[:'clientReferenceInformation'] + end + + if attributes.has_key?(:'id') + self.id = attributes[:'id'] + end + + if attributes.has_key?(:'submitTimeUtc') + self.submit_time_utc = attributes[:'submitTimeUtc'] + end + + if attributes.has_key?(:'status') + self.status = attributes[:'status'] + end + + if attributes.has_key?(:'errorInformation') + self.error_information = attributes[:'errorInformation'] + end + + if attributes.has_key?(:'orderInformation') + self.order_information = attributes[:'orderInformation'] + end + end + + # Show invalid properties with the reasons. Usually used together with valid? + # @return Array for valid properties with the reasons + def list_invalid_properties + invalid_properties = Array.new + if @id.nil? + invalid_properties.push('invalid value for "id", id cannot be nil.') + end + + if @submit_time_utc.nil? + invalid_properties.push('invalid value for "submit_time_utc", submit_time_utc cannot be nil.') + end + + if @status.nil? + invalid_properties.push('invalid value for "status", status cannot be nil.') + end + + invalid_properties + end + + # Check to see if the all the properties in the model are valid + # @return true if the model is valid + def valid? + return false if @id.nil? + return false if @submit_time_utc.nil? + return false if @status.nil? + true + end + + # Custom attribute writer method with validation + # @param [Object] id Value to be assigned + def id=(id) + #if id.nil? + #fail ArgumentError, 'id cannot be nil' + #end + + @id = id + end + + # Custom attribute writer method with validation + # @param [Object] submit_time_utc Value to be assigned + def submit_time_utc=(submit_time_utc) + #if submit_time_utc.nil? + #fail ArgumentError, 'submit_time_utc cannot be nil' + #end + + @submit_time_utc = submit_time_utc + end + + # Custom attribute writer method with validation + # @param [Object] status Value to be assigned + def status=(status) + #if status.nil? + #fail ArgumentError, 'status cannot be nil' + #end + + @status = status + end + + # Checks equality by comparing each attribute. + # @param [Object] Object to be compared + def ==(o) + return true if self.equal?(o) + self.class == o.class && + client_reference_information == o.client_reference_information && + id == o.id && + submit_time_utc == o.submit_time_utc && + status == o.status && + error_information == o.error_information && + order_information == o.order_information + end + + # @see the `==` method + # @param [Object] Object to be compared + def eql?(o) + self == o + end + + # Calculates hash code according to all attributes. + # @return [Fixnum] Hash code + def hash + [client_reference_information, id, submit_time_utc, status, error_information, order_information].hash + end + + # Builds the object from hash + # @param [Hash] attributes Model attributes in the form of hash + # @return [Object] Returns the model itself + def build_from_hash(attributes) + return nil unless attributes.is_a?(Hash) + self.class.swagger_types.each_pair do |key, type| + if type =~ /\AArray<(.*)>/i + # check to ensure the input is an array given that the the attribute + # is documented as an array but the input is not + if attributes[self.class.attribute_map[key]].is_a?(Array) + self.send("#{self.class.json_map[key]}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) + end + elsif !attributes[self.class.attribute_map[key]].nil? + self.send("#{self.class.json_map[key]}=", _deserialize(type, attributes[self.class.attribute_map[key]])) + end # or else data not found in attributes(hash), not an issue as the data can be optional + end + + self + end + + # Deserializes the data based on type + # @param string type Data type + # @param string value Value to be deserialized + # @return [Object] Deserialized data + def _deserialize(type, value) + case type.to_sym + when :DateTime + DateTime.parse(value) + when :Date + Date.parse(value) + when :String + value.to_s + when :Integer + value.to_i + when :Float + value.to_f + when :BOOLEAN + if value.to_s =~ /\A(true|t|yes|y|1)\z/i + true + else + false + end + when :Object + # generic object (usually a Hash), return directly + value + when /\AArray<(?.+)>\z/ + inner_type = Regexp.last_match[:inner_type] + value.map { |v| _deserialize(inner_type, v) } + when /\AHash<(?.+?), (?.+)>\z/ + k_type = Regexp.last_match[:k_type] + v_type = Regexp.last_match[:v_type] + {}.tap do |hash| + value.each do |k, v| + hash[_deserialize(k_type, k)] = _deserialize(v_type, v) + end + end + else # model + temp_model = CyberSource.const_get(type).new + temp_model.build_from_hash(value) + end + end + + # Returns the string representation of the object + # @return [String] String presentation of the object + def to_s + to_hash.to_s + end + + # to_body is an alias to to_hash (backward compatibility) + # @return [Hash] Returns the object in the form of hash + def to_body + to_hash + end + + # Returns the object in the form of hash + # @return [Hash] Returns the object in the form of hash + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + next if value.nil? + hash[param] = _to_hash(value) + end + hash + end + + # Outputs non-array value in the form of hash + # For object, use to_hash. Otherwise, just return the value + # @param [Object] value Any valid value + # @return [Hash] Returns the value in the form of hash + def _to_hash(value) + if value.is_a?(Array) + value.compact.map { |v| _to_hash(v) } + elsif value.is_a?(Hash) + {}.tap do |hash| + value.each { |k, v| hash[k] = _to_hash(v) } + end + elsif value.respond_to? :to_hash + value.to_hash + else + value + end + end + end +end diff --git a/lib/cybersource_rest_client/models/inline_response_200_14_client_reference_information.rb b/lib/cybersource_rest_client/models/inline_response_200_15_client_reference_information.rb similarity index 99% rename from lib/cybersource_rest_client/models/inline_response_200_14_client_reference_information.rb rename to lib/cybersource_rest_client/models/inline_response_200_15_client_reference_information.rb index 6414c1c8..14a3970b 100644 --- a/lib/cybersource_rest_client/models/inline_response_200_14_client_reference_information.rb +++ b/lib/cybersource_rest_client/models/inline_response_200_15_client_reference_information.rb @@ -12,7 +12,7 @@ require 'date' module CyberSource - class InlineResponse20014ClientReferenceInformation + class InlineResponse20015ClientReferenceInformation # Merchant-generated order reference or tracking number. It is recommended that you send a unique value for each transaction so that you can perform meaningful searches for the transaction. attr_accessor :code diff --git a/lib/cybersource_rest_client/models/inline_response_200_content.rb b/lib/cybersource_rest_client/models/inline_response_200_1_content.rb similarity index 99% rename from lib/cybersource_rest_client/models/inline_response_200_content.rb rename to lib/cybersource_rest_client/models/inline_response_200_1_content.rb index a7b137e4..441e1af0 100644 --- a/lib/cybersource_rest_client/models/inline_response_200_content.rb +++ b/lib/cybersource_rest_client/models/inline_response_200_1_content.rb @@ -12,7 +12,7 @@ require 'date' module CyberSource - class InlineResponse200Content + class InlineResponse2001Content # The MIME type of the Asset. attr_accessor :type diff --git a/lib/cybersource_rest_client/models/inline_response_200_2.rb b/lib/cybersource_rest_client/models/inline_response_200_2.rb index 0fa54360..7b6ee678 100644 --- a/lib/cybersource_rest_client/models/inline_response_200_2.rb +++ b/lib/cybersource_rest_client/models/inline_response_200_2.rb @@ -13,45 +13,24 @@ module CyberSource class InlineResponse2002 + # UUID uniquely generated for this comments. attr_accessor :id - attr_accessor :field_type + # Time of request in UTC. Format: `YYYY-MM-DDThh:mm:ssZ` **Example** `2016-08-11T22:47:57Z` equals August 11, 2016, at 22:47:57 (10:47:57 p.m.). The `T` separates the date and the time. The `Z` indicates UTC. Returned by Cybersource for all services. + attr_accessor :submit_time_utc - attr_accessor :label + # The status of the submitted transaction. Possible values are: - `ACCEPTED` - `REJECTED` + attr_accessor :status - attr_accessor :customer_visible - - attr_accessor :text_min_length - - attr_accessor :text_max_length - - attr_accessor :possible_values - - attr_accessor :text_default_value - - attr_accessor :merchant_id - - attr_accessor :reference_type - - attr_accessor :read_only - - attr_accessor :merchant_defined_data_index + attr_accessor :_embedded # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { :'id' => :'id', - :'field_type' => :'fieldType', - :'label' => :'label', - :'customer_visible' => :'customerVisible', - :'text_min_length' => :'textMinLength', - :'text_max_length' => :'textMaxLength', - :'possible_values' => :'possibleValues', - :'text_default_value' => :'textDefaultValue', - :'merchant_id' => :'merchantId', - :'reference_type' => :'referenceType', - :'read_only' => :'readOnly', - :'merchant_defined_data_index' => :'merchantDefinedDataIndex' + :'submit_time_utc' => :'submitTimeUtc', + :'status' => :'status', + :'_embedded' => :'_embedded' } end @@ -59,35 +38,19 @@ def self.attribute_map def self.json_map { :'id' => :'id', - :'field_type' => :'field_type', - :'label' => :'label', - :'customer_visible' => :'customer_visible', - :'text_min_length' => :'text_min_length', - :'text_max_length' => :'text_max_length', - :'possible_values' => :'possible_values', - :'text_default_value' => :'text_default_value', - :'merchant_id' => :'merchant_id', - :'reference_type' => :'reference_type', - :'read_only' => :'read_only', - :'merchant_defined_data_index' => :'merchant_defined_data_index' + :'submit_time_utc' => :'submit_time_utc', + :'status' => :'status', + :'_embedded' => :'_embedded' } end # Attribute type mapping. def self.swagger_types { - :'id' => :'Integer', - :'field_type' => :'String', - :'label' => :'String', - :'customer_visible' => :'BOOLEAN', - :'text_min_length' => :'Integer', - :'text_max_length' => :'Integer', - :'possible_values' => :'String', - :'text_default_value' => :'String', - :'merchant_id' => :'String', - :'reference_type' => :'String', - :'read_only' => :'BOOLEAN', - :'merchant_defined_data_index' => :'Integer' + :'id' => :'String', + :'submit_time_utc' => :'String', + :'status' => :'String', + :'_embedded' => :'InlineResponse2002Embedded' } end @@ -103,48 +66,16 @@ def initialize(attributes = {}) self.id = attributes[:'id'] end - if attributes.has_key?(:'fieldType') - self.field_type = attributes[:'fieldType'] - end - - if attributes.has_key?(:'label') - self.label = attributes[:'label'] - end - - if attributes.has_key?(:'customerVisible') - self.customer_visible = attributes[:'customerVisible'] - end - - if attributes.has_key?(:'textMinLength') - self.text_min_length = attributes[:'textMinLength'] - end - - if attributes.has_key?(:'textMaxLength') - self.text_max_length = attributes[:'textMaxLength'] - end - - if attributes.has_key?(:'possibleValues') - self.possible_values = attributes[:'possibleValues'] - end - - if attributes.has_key?(:'textDefaultValue') - self.text_default_value = attributes[:'textDefaultValue'] + if attributes.has_key?(:'submitTimeUtc') + self.submit_time_utc = attributes[:'submitTimeUtc'] end - if attributes.has_key?(:'merchantId') - self.merchant_id = attributes[:'merchantId'] + if attributes.has_key?(:'status') + self.status = attributes[:'status'] end - if attributes.has_key?(:'referenceType') - self.reference_type = attributes[:'referenceType'] - end - - if attributes.has_key?(:'readOnly') - self.read_only = attributes[:'readOnly'] - end - - if attributes.has_key?(:'merchantDefinedDataIndex') - self.merchant_defined_data_index = attributes[:'merchantDefinedDataIndex'] + if attributes.has_key?(:'_embedded') + self._embedded = attributes[:'_embedded'] end end @@ -161,23 +92,21 @@ def valid? true end + # Custom attribute writer method with validation + # @param [Object] id Value to be assigned + def id=(id) + @id = id + end + # Checks equality by comparing each attribute. # @param [Object] Object to be compared def ==(o) return true if self.equal?(o) self.class == o.class && id == o.id && - field_type == o.field_type && - label == o.label && - customer_visible == o.customer_visible && - text_min_length == o.text_min_length && - text_max_length == o.text_max_length && - possible_values == o.possible_values && - text_default_value == o.text_default_value && - merchant_id == o.merchant_id && - reference_type == o.reference_type && - read_only == o.read_only && - merchant_defined_data_index == o.merchant_defined_data_index + submit_time_utc == o.submit_time_utc && + status == o.status && + _embedded == o._embedded end # @see the `==` method @@ -189,7 +118,7 @@ def eql?(o) # Calculates hash code according to all attributes. # @return [Fixnum] Hash code def hash - [id, field_type, label, customer_visible, text_min_length, text_max_length, possible_values, text_default_value, merchant_id, reference_type, read_only, merchant_defined_data_index].hash + [id, submit_time_utc, status, _embedded].hash end # Builds the object from hash diff --git a/lib/cybersource_rest_client/models/inline_response_200_1__embedded.rb b/lib/cybersource_rest_client/models/inline_response_200_2__embedded.rb similarity index 97% rename from lib/cybersource_rest_client/models/inline_response_200_1__embedded.rb rename to lib/cybersource_rest_client/models/inline_response_200_2__embedded.rb index 7351a410..5be1a418 100644 --- a/lib/cybersource_rest_client/models/inline_response_200_1__embedded.rb +++ b/lib/cybersource_rest_client/models/inline_response_200_2__embedded.rb @@ -13,7 +13,7 @@ module CyberSource # This object includes either a capture or reversal object. They each has the status of the action and link to the GET method to the following-on capture transaction or reversal transaction. - class InlineResponse2001Embedded + class InlineResponse2002Embedded attr_accessor :capture attr_accessor :reversal @@ -37,8 +37,8 @@ def self.json_map # Attribute type mapping. def self.swagger_types { - :'capture' => :'InlineResponse2001EmbeddedCapture', - :'reversal' => :'InlineResponse2001EmbeddedReversal' + :'capture' => :'InlineResponse2002EmbeddedCapture', + :'reversal' => :'InlineResponse2002EmbeddedReversal' } end diff --git a/lib/cybersource_rest_client/models/inline_response_200_1__embedded_capture.rb b/lib/cybersource_rest_client/models/inline_response_200_2__embedded_capture.rb similarity index 98% rename from lib/cybersource_rest_client/models/inline_response_200_1__embedded_capture.rb rename to lib/cybersource_rest_client/models/inline_response_200_2__embedded_capture.rb index 21df5d90..e99d29db 100644 --- a/lib/cybersource_rest_client/models/inline_response_200_1__embedded_capture.rb +++ b/lib/cybersource_rest_client/models/inline_response_200_2__embedded_capture.rb @@ -13,7 +13,7 @@ module CyberSource # This object includes the status of the action and link to the GET method to the following-on capture transaction. - class InlineResponse2001EmbeddedCapture + class InlineResponse2002EmbeddedCapture # The status of the capture if the capture is called. attr_accessor :status @@ -39,7 +39,7 @@ def self.json_map def self.swagger_types { :'status' => :'String', - :'_links' => :'InlineResponse2001EmbeddedCaptureLinks' + :'_links' => :'InlineResponse2002EmbeddedCaptureLinks' } end diff --git a/lib/cybersource_rest_client/models/inline_response_200_1__embedded_capture__links.rb b/lib/cybersource_rest_client/models/inline_response_200_2__embedded_capture__links.rb similarity index 98% rename from lib/cybersource_rest_client/models/inline_response_200_1__embedded_capture__links.rb rename to lib/cybersource_rest_client/models/inline_response_200_2__embedded_capture__links.rb index dbfd778a..f4d697af 100644 --- a/lib/cybersource_rest_client/models/inline_response_200_1__embedded_capture__links.rb +++ b/lib/cybersource_rest_client/models/inline_response_200_2__embedded_capture__links.rb @@ -13,7 +13,7 @@ module CyberSource # The link to the GET method to the capture transaction if the capture is called. - class InlineResponse2001EmbeddedCaptureLinks + class InlineResponse2002EmbeddedCaptureLinks attr_accessor :_self # Attribute mapping from ruby-style variable name to JSON key. @@ -33,7 +33,7 @@ def self.json_map # Attribute type mapping. def self.swagger_types { - :'_self' => :'InlineResponse2001EmbeddedCaptureLinksSelf' + :'_self' => :'InlineResponse2002EmbeddedCaptureLinksSelf' } end diff --git a/lib/cybersource_rest_client/models/inline_response_200_1__embedded_capture__links_self.rb b/lib/cybersource_rest_client/models/inline_response_200_2__embedded_capture__links_self.rb similarity index 99% rename from lib/cybersource_rest_client/models/inline_response_200_1__embedded_capture__links_self.rb rename to lib/cybersource_rest_client/models/inline_response_200_2__embedded_capture__links_self.rb index 79a23f97..e9573a53 100644 --- a/lib/cybersource_rest_client/models/inline_response_200_1__embedded_capture__links_self.rb +++ b/lib/cybersource_rest_client/models/inline_response_200_2__embedded_capture__links_self.rb @@ -13,7 +13,7 @@ module CyberSource # The object holds http method and endpoint if the capture is called. - class InlineResponse2001EmbeddedCaptureLinksSelf + class InlineResponse2002EmbeddedCaptureLinksSelf # This is the endpoint of the resource that was created by the successful request. attr_accessor :href diff --git a/lib/cybersource_rest_client/models/inline_response_200_1__embedded_reversal.rb b/lib/cybersource_rest_client/models/inline_response_200_2__embedded_reversal.rb similarity index 98% rename from lib/cybersource_rest_client/models/inline_response_200_1__embedded_reversal.rb rename to lib/cybersource_rest_client/models/inline_response_200_2__embedded_reversal.rb index f7a04e01..cf4bb253 100644 --- a/lib/cybersource_rest_client/models/inline_response_200_1__embedded_reversal.rb +++ b/lib/cybersource_rest_client/models/inline_response_200_2__embedded_reversal.rb @@ -13,7 +13,7 @@ module CyberSource # This object includes the status of the action and link to the GET method to the following-on reversal transaction. - class InlineResponse2001EmbeddedReversal + class InlineResponse2002EmbeddedReversal # The status of the reversal if the auth reversal is called. attr_accessor :status @@ -39,7 +39,7 @@ def self.json_map def self.swagger_types { :'status' => :'String', - :'_links' => :'InlineResponse2001EmbeddedReversalLinks' + :'_links' => :'InlineResponse2002EmbeddedReversalLinks' } end diff --git a/lib/cybersource_rest_client/models/inline_response_200_1__embedded_reversal__links.rb b/lib/cybersource_rest_client/models/inline_response_200_2__embedded_reversal__links.rb similarity index 97% rename from lib/cybersource_rest_client/models/inline_response_200_1__embedded_reversal__links.rb rename to lib/cybersource_rest_client/models/inline_response_200_2__embedded_reversal__links.rb index 3c23d602..8f2ace76 100644 --- a/lib/cybersource_rest_client/models/inline_response_200_1__embedded_reversal__links.rb +++ b/lib/cybersource_rest_client/models/inline_response_200_2__embedded_reversal__links.rb @@ -13,7 +13,7 @@ module CyberSource # The link to the GET method to the reversal transaction if the auth reversal is called. - class InlineResponse2001EmbeddedReversalLinks + class InlineResponse2002EmbeddedReversalLinks attr_accessor :_self # Attribute mapping from ruby-style variable name to JSON key. @@ -33,7 +33,7 @@ def self.json_map # Attribute type mapping. def self.swagger_types { - :'_self' => :'InlineResponse2001EmbeddedReversalLinksSelf' + :'_self' => :'InlineResponse2002EmbeddedReversalLinksSelf' } end diff --git a/lib/cybersource_rest_client/models/inline_response_200_1__embedded_reversal__links_self.rb b/lib/cybersource_rest_client/models/inline_response_200_2__embedded_reversal__links_self.rb similarity index 99% rename from lib/cybersource_rest_client/models/inline_response_200_1__embedded_reversal__links_self.rb rename to lib/cybersource_rest_client/models/inline_response_200_2__embedded_reversal__links_self.rb index fca7f1de..5fc55ee5 100644 --- a/lib/cybersource_rest_client/models/inline_response_200_1__embedded_reversal__links_self.rb +++ b/lib/cybersource_rest_client/models/inline_response_200_2__embedded_reversal__links_self.rb @@ -13,7 +13,7 @@ module CyberSource # The object holds http method and endpoint if the reversal is called. - class InlineResponse2001EmbeddedReversalLinksSelf + class InlineResponse2002EmbeddedReversalLinksSelf # This is the endpoint of the resource that was created by the successful request. attr_accessor :href diff --git a/lib/cybersource_rest_client/models/inline_response_200_3.rb b/lib/cybersource_rest_client/models/inline_response_200_3.rb index 8ad5c23b..13b92e46 100644 --- a/lib/cybersource_rest_client/models/inline_response_200_3.rb +++ b/lib/cybersource_rest_client/models/inline_response_200_3.rb @@ -13,56 +13,81 @@ module CyberSource class InlineResponse2003 - attr_accessor :registration_information + attr_accessor :id - attr_accessor :integration_information + attr_accessor :field_type - attr_accessor :organization_information + attr_accessor :label - attr_accessor :product_information + attr_accessor :customer_visible - attr_accessor :product_information_setups + attr_accessor :text_min_length - attr_accessor :document_information + attr_accessor :text_max_length - attr_accessor :details + attr_accessor :possible_values + + attr_accessor :text_default_value + + attr_accessor :merchant_id + + attr_accessor :reference_type + + attr_accessor :read_only + + attr_accessor :merchant_defined_data_index # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { - :'registration_information' => :'registrationInformation', - :'integration_information' => :'integrationInformation', - :'organization_information' => :'organizationInformation', - :'product_information' => :'productInformation', - :'product_information_setups' => :'productInformationSetups', - :'document_information' => :'documentInformation', - :'details' => :'details' + :'id' => :'id', + :'field_type' => :'fieldType', + :'label' => :'label', + :'customer_visible' => :'customerVisible', + :'text_min_length' => :'textMinLength', + :'text_max_length' => :'textMaxLength', + :'possible_values' => :'possibleValues', + :'text_default_value' => :'textDefaultValue', + :'merchant_id' => :'merchantId', + :'reference_type' => :'referenceType', + :'read_only' => :'readOnly', + :'merchant_defined_data_index' => :'merchantDefinedDataIndex' } end # Attribute mapping from JSON key to ruby-style variable name. def self.json_map { - :'registration_information' => :'registration_information', - :'integration_information' => :'integration_information', - :'organization_information' => :'organization_information', - :'product_information' => :'product_information', - :'product_information_setups' => :'product_information_setups', - :'document_information' => :'document_information', - :'details' => :'details' + :'id' => :'id', + :'field_type' => :'field_type', + :'label' => :'label', + :'customer_visible' => :'customer_visible', + :'text_min_length' => :'text_min_length', + :'text_max_length' => :'text_max_length', + :'possible_values' => :'possible_values', + :'text_default_value' => :'text_default_value', + :'merchant_id' => :'merchant_id', + :'reference_type' => :'reference_type', + :'read_only' => :'read_only', + :'merchant_defined_data_index' => :'merchant_defined_data_index' } end # Attribute type mapping. def self.swagger_types { - :'registration_information' => :'Boardingv1registrationsRegistrationInformation', - :'integration_information' => :'InlineResponse2003IntegrationInformation', - :'organization_information' => :'Boardingv1registrationsOrganizationInformation', - :'product_information' => :'Boardingv1registrationsProductInformation', - :'product_information_setups' => :'Array', - :'document_information' => :'Boardingv1registrationsDocumentInformation', - :'details' => :'Hash>' + :'id' => :'Integer', + :'field_type' => :'String', + :'label' => :'String', + :'customer_visible' => :'BOOLEAN', + :'text_min_length' => :'Integer', + :'text_max_length' => :'Integer', + :'possible_values' => :'String', + :'text_default_value' => :'String', + :'merchant_id' => :'String', + :'reference_type' => :'String', + :'read_only' => :'BOOLEAN', + :'merchant_defined_data_index' => :'Integer' } end @@ -74,36 +99,52 @@ def initialize(attributes = {}) # convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v } - if attributes.has_key?(:'registrationInformation') - self.registration_information = attributes[:'registrationInformation'] + if attributes.has_key?(:'id') + self.id = attributes[:'id'] end - if attributes.has_key?(:'integrationInformation') - self.integration_information = attributes[:'integrationInformation'] + if attributes.has_key?(:'fieldType') + self.field_type = attributes[:'fieldType'] end - if attributes.has_key?(:'organizationInformation') - self.organization_information = attributes[:'organizationInformation'] + if attributes.has_key?(:'label') + self.label = attributes[:'label'] end - if attributes.has_key?(:'productInformation') - self.product_information = attributes[:'productInformation'] + if attributes.has_key?(:'customerVisible') + self.customer_visible = attributes[:'customerVisible'] end - if attributes.has_key?(:'productInformationSetups') - if (value = attributes[:'productInformationSetups']).is_a?(Array) - self.product_information_setups = value - end + if attributes.has_key?(:'textMinLength') + self.text_min_length = attributes[:'textMinLength'] end - if attributes.has_key?(:'documentInformation') - self.document_information = attributes[:'documentInformation'] + if attributes.has_key?(:'textMaxLength') + self.text_max_length = attributes[:'textMaxLength'] end - if attributes.has_key?(:'details') - if (value = attributes[:'details']).is_a?(Hash) - self.details = value - end + if attributes.has_key?(:'possibleValues') + self.possible_values = attributes[:'possibleValues'] + end + + if attributes.has_key?(:'textDefaultValue') + self.text_default_value = attributes[:'textDefaultValue'] + end + + if attributes.has_key?(:'merchantId') + self.merchant_id = attributes[:'merchantId'] + end + + if attributes.has_key?(:'referenceType') + self.reference_type = attributes[:'referenceType'] + end + + if attributes.has_key?(:'readOnly') + self.read_only = attributes[:'readOnly'] + end + + if attributes.has_key?(:'merchantDefinedDataIndex') + self.merchant_defined_data_index = attributes[:'merchantDefinedDataIndex'] end end @@ -125,13 +166,18 @@ def valid? def ==(o) return true if self.equal?(o) self.class == o.class && - registration_information == o.registration_information && - integration_information == o.integration_information && - organization_information == o.organization_information && - product_information == o.product_information && - product_information_setups == o.product_information_setups && - document_information == o.document_information && - details == o.details + id == o.id && + field_type == o.field_type && + label == o.label && + customer_visible == o.customer_visible && + text_min_length == o.text_min_length && + text_max_length == o.text_max_length && + possible_values == o.possible_values && + text_default_value == o.text_default_value && + merchant_id == o.merchant_id && + reference_type == o.reference_type && + read_only == o.read_only && + merchant_defined_data_index == o.merchant_defined_data_index end # @see the `==` method @@ -143,7 +189,7 @@ def eql?(o) # Calculates hash code according to all attributes. # @return [Fixnum] Hash code def hash - [registration_information, integration_information, organization_information, product_information, product_information_setups, document_information, details].hash + [id, field_type, label, customer_visible, text_min_length, text_max_length, possible_values, text_default_value, merchant_id, reference_type, read_only, merchant_defined_data_index].hash end # Builds the object from hash diff --git a/lib/cybersource_rest_client/models/inline_response_200_4.rb b/lib/cybersource_rest_client/models/inline_response_200_4.rb index c96d9aae..149997f8 100644 --- a/lib/cybersource_rest_client/models/inline_response_200_4.rb +++ b/lib/cybersource_rest_client/models/inline_response_200_4.rb @@ -13,38 +13,56 @@ module CyberSource class InlineResponse2004 - # Product ID. - attr_accessor :product_id + attr_accessor :registration_information - # Product Name. - attr_accessor :product_name + attr_accessor :integration_information - attr_accessor :event_types + attr_accessor :organization_information + + attr_accessor :product_information + + attr_accessor :product_information_setups + + attr_accessor :document_information + + attr_accessor :details # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { - :'product_id' => :'productId', - :'product_name' => :'productName', - :'event_types' => :'eventTypes' + :'registration_information' => :'registrationInformation', + :'integration_information' => :'integrationInformation', + :'organization_information' => :'organizationInformation', + :'product_information' => :'productInformation', + :'product_information_setups' => :'productInformationSetups', + :'document_information' => :'documentInformation', + :'details' => :'details' } end # Attribute mapping from JSON key to ruby-style variable name. def self.json_map { - :'product_id' => :'product_id', - :'product_name' => :'product_name', - :'event_types' => :'event_types' + :'registration_information' => :'registration_information', + :'integration_information' => :'integration_information', + :'organization_information' => :'organization_information', + :'product_information' => :'product_information', + :'product_information_setups' => :'product_information_setups', + :'document_information' => :'document_information', + :'details' => :'details' } end # Attribute type mapping. def self.swagger_types { - :'product_id' => :'String', - :'product_name' => :'String', - :'event_types' => :'Array' + :'registration_information' => :'Boardingv1registrationsRegistrationInformation', + :'integration_information' => :'InlineResponse2004IntegrationInformation', + :'organization_information' => :'Boardingv1registrationsOrganizationInformation', + :'product_information' => :'Boardingv1registrationsProductInformation', + :'product_information_setups' => :'Array', + :'document_information' => :'Boardingv1registrationsDocumentInformation', + :'details' => :'Hash>' } end @@ -56,17 +74,35 @@ def initialize(attributes = {}) # convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v } - if attributes.has_key?(:'productId') - self.product_id = attributes[:'productId'] + if attributes.has_key?(:'registrationInformation') + self.registration_information = attributes[:'registrationInformation'] + end + + if attributes.has_key?(:'integrationInformation') + self.integration_information = attributes[:'integrationInformation'] + end + + if attributes.has_key?(:'organizationInformation') + self.organization_information = attributes[:'organizationInformation'] + end + + if attributes.has_key?(:'productInformation') + self.product_information = attributes[:'productInformation'] + end + + if attributes.has_key?(:'productInformationSetups') + if (value = attributes[:'productInformationSetups']).is_a?(Array) + self.product_information_setups = value + end end - if attributes.has_key?(:'productName') - self.product_name = attributes[:'productName'] + if attributes.has_key?(:'documentInformation') + self.document_information = attributes[:'documentInformation'] end - if attributes.has_key?(:'eventTypes') - if (value = attributes[:'eventTypes']).is_a?(Array) - self.event_types = value + if attributes.has_key?(:'details') + if (value = attributes[:'details']).is_a?(Hash) + self.details = value end end end @@ -89,9 +125,13 @@ def valid? def ==(o) return true if self.equal?(o) self.class == o.class && - product_id == o.product_id && - product_name == o.product_name && - event_types == o.event_types + registration_information == o.registration_information && + integration_information == o.integration_information && + organization_information == o.organization_information && + product_information == o.product_information && + product_information_setups == o.product_information_setups && + document_information == o.document_information && + details == o.details end # @see the `==` method @@ -103,7 +143,7 @@ def eql?(o) # Calculates hash code according to all attributes. # @return [Fixnum] Hash code def hash - [product_id, product_name, event_types].hash + [registration_information, integration_information, organization_information, product_information, product_information_setups, document_information, details].hash end # Builds the object from hash diff --git a/lib/cybersource_rest_client/models/inline_response_200_3_integration_information.rb b/lib/cybersource_rest_client/models/inline_response_200_4_integration_information.rb similarity index 98% rename from lib/cybersource_rest_client/models/inline_response_200_3_integration_information.rb rename to lib/cybersource_rest_client/models/inline_response_200_4_integration_information.rb index 1b5fc470..730ee07e 100644 --- a/lib/cybersource_rest_client/models/inline_response_200_3_integration_information.rb +++ b/lib/cybersource_rest_client/models/inline_response_200_4_integration_information.rb @@ -12,7 +12,7 @@ require 'date' module CyberSource - class InlineResponse2003IntegrationInformation + class InlineResponse2004IntegrationInformation attr_accessor :oauth2 # tenantConfigurations is an array of objects that includes the tenant information this merchant is associated with. @@ -38,7 +38,7 @@ def self.json_map def self.swagger_types { :'oauth2' => :'Array', - :'tenant_configurations' => :'Array' + :'tenant_configurations' => :'Array' } end diff --git a/lib/cybersource_rest_client/models/inline_response_200_3_integration_information_tenant_configurations.rb b/lib/cybersource_rest_client/models/inline_response_200_4_integration_information_tenant_configurations.rb similarity index 99% rename from lib/cybersource_rest_client/models/inline_response_200_3_integration_information_tenant_configurations.rb rename to lib/cybersource_rest_client/models/inline_response_200_4_integration_information_tenant_configurations.rb index 6e408dd1..cc181d51 100644 --- a/lib/cybersource_rest_client/models/inline_response_200_3_integration_information_tenant_configurations.rb +++ b/lib/cybersource_rest_client/models/inline_response_200_4_integration_information_tenant_configurations.rb @@ -12,7 +12,7 @@ require 'date' module CyberSource - class InlineResponse2003IntegrationInformationTenantConfigurations + class InlineResponse2004IntegrationInformationTenantConfigurations # The solutionId is the unique identifier for this system resource. Partner can use it to reference the specific solution through out the system. attr_accessor :solution_id diff --git a/lib/cybersource_rest_client/models/inline_response_200_5.rb b/lib/cybersource_rest_client/models/inline_response_200_5.rb index a8ec4bb4..ef3a9707 100644 --- a/lib/cybersource_rest_client/models/inline_response_200_5.rb +++ b/lib/cybersource_rest_client/models/inline_response_200_5.rb @@ -13,90 +13,38 @@ module CyberSource class InlineResponse2005 - # Webhook Id. This is generated by the server. - attr_accessor :webhook_id + # Product ID. + attr_accessor :product_id - # Organization ID. - attr_accessor :organization_id + # Product Name. + attr_accessor :product_name - attr_accessor :products - - # The client's endpoint (URL) to receive webhooks. - attr_accessor :webhook_url - - # The client's health check endpoint (URL). - attr_accessor :health_check_url - - # Webhook status. - attr_accessor :status - - # Client friendly webhook name. - attr_accessor :name - - # Client friendly webhook description. - attr_accessor :description - - attr_accessor :retry_policy - - attr_accessor :security_policy - - # Date on which webhook was created/registered. - attr_accessor :created_on - - # The webhook scope. 1. SELF The Webhook is used to deliver webhooks for only this Organization (or Merchant). 2. DESCENDANTS The Webhook is used to deliver webhooks for this Organization and its children. This field is optional. Possible values: - SELF - DESCENDANTS - attr_accessor :notification_scope + attr_accessor :event_types # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { - :'webhook_id' => :'webhookId', - :'organization_id' => :'organizationId', - :'products' => :'products', - :'webhook_url' => :'webhookUrl', - :'health_check_url' => :'healthCheckUrl', - :'status' => :'status', - :'name' => :'name', - :'description' => :'description', - :'retry_policy' => :'retryPolicy', - :'security_policy' => :'securityPolicy', - :'created_on' => :'createdOn', - :'notification_scope' => :'notificationScope' + :'product_id' => :'productId', + :'product_name' => :'productName', + :'event_types' => :'eventTypes' } end # Attribute mapping from JSON key to ruby-style variable name. def self.json_map { - :'webhook_id' => :'webhook_id', - :'organization_id' => :'organization_id', - :'products' => :'products', - :'webhook_url' => :'webhook_url', - :'health_check_url' => :'health_check_url', - :'status' => :'status', - :'name' => :'name', - :'description' => :'description', - :'retry_policy' => :'retry_policy', - :'security_policy' => :'security_policy', - :'created_on' => :'created_on', - :'notification_scope' => :'notification_scope' + :'product_id' => :'product_id', + :'product_name' => :'product_name', + :'event_types' => :'event_types' } end # Attribute type mapping. def self.swagger_types { - :'webhook_id' => :'String', - :'organization_id' => :'String', - :'products' => :'Array', - :'webhook_url' => :'String', - :'health_check_url' => :'String', - :'status' => :'String', - :'name' => :'String', - :'description' => :'String', - :'retry_policy' => :'Notificationsubscriptionsv2webhooksRetryPolicy', - :'security_policy' => :'Notificationsubscriptionsv2webhooksSecurityPolicy', - :'created_on' => :'String', - :'notification_scope' => :'String' + :'product_id' => :'String', + :'product_name' => :'String', + :'event_types' => :'Array' } end @@ -108,59 +56,19 @@ def initialize(attributes = {}) # convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v } - if attributes.has_key?(:'webhookId') - self.webhook_id = attributes[:'webhookId'] + if attributes.has_key?(:'productId') + self.product_id = attributes[:'productId'] end - if attributes.has_key?(:'organizationId') - self.organization_id = attributes[:'organizationId'] + if attributes.has_key?(:'productName') + self.product_name = attributes[:'productName'] end - if attributes.has_key?(:'products') - if (value = attributes[:'products']).is_a?(Array) - self.products = value + if attributes.has_key?(:'eventTypes') + if (value = attributes[:'eventTypes']).is_a?(Array) + self.event_types = value end end - - if attributes.has_key?(:'webhookUrl') - self.webhook_url = attributes[:'webhookUrl'] - end - - if attributes.has_key?(:'healthCheckUrl') - self.health_check_url = attributes[:'healthCheckUrl'] - end - - if attributes.has_key?(:'status') - self.status = attributes[:'status'] - else - self.status = 'INACTIVE' - end - - if attributes.has_key?(:'name') - self.name = attributes[:'name'] - end - - if attributes.has_key?(:'description') - self.description = attributes[:'description'] - end - - if attributes.has_key?(:'retryPolicy') - self.retry_policy = attributes[:'retryPolicy'] - end - - if attributes.has_key?(:'securityPolicy') - self.security_policy = attributes[:'securityPolicy'] - end - - if attributes.has_key?(:'createdOn') - self.created_on = attributes[:'createdOn'] - end - - if attributes.has_key?(:'notificationScope') - self.notification_scope = attributes[:'notificationScope'] - else - self.notification_scope = 'DESCENDANTS' - end end # Show invalid properties with the reasons. Usually used together with valid? @@ -181,18 +89,9 @@ def valid? def ==(o) return true if self.equal?(o) self.class == o.class && - webhook_id == o.webhook_id && - organization_id == o.organization_id && - products == o.products && - webhook_url == o.webhook_url && - health_check_url == o.health_check_url && - status == o.status && - name == o.name && - description == o.description && - retry_policy == o.retry_policy && - security_policy == o.security_policy && - created_on == o.created_on && - notification_scope == o.notification_scope + product_id == o.product_id && + product_name == o.product_name && + event_types == o.event_types end # @see the `==` method @@ -204,7 +103,7 @@ def eql?(o) # Calculates hash code according to all attributes. # @return [Fixnum] Hash code def hash - [webhook_id, organization_id, products, webhook_url, health_check_url, status, name, description, retry_policy, security_policy, created_on, notification_scope].hash + [product_id, product_name, event_types].hash end # Builds the object from hash diff --git a/lib/cybersource_rest_client/models/inline_response_200_6.rb b/lib/cybersource_rest_client/models/inline_response_200_6.rb index d8090860..bd242fe8 100644 --- a/lib/cybersource_rest_client/models/inline_response_200_6.rb +++ b/lib/cybersource_rest_client/models/inline_response_200_6.rb @@ -43,9 +43,6 @@ class InlineResponse2006 # Date on which webhook was created/registered. attr_accessor :created_on - # Date on which webhook was most recently updated. - attr_accessor :updated_on - # The webhook scope. 1. SELF The Webhook is used to deliver webhooks for only this Organization (or Merchant). 2. DESCENDANTS The Webhook is used to deliver webhooks for this Organization and its children. This field is optional. Possible values: - SELF - DESCENDANTS attr_accessor :notification_scope @@ -63,7 +60,6 @@ def self.attribute_map :'retry_policy' => :'retryPolicy', :'security_policy' => :'securityPolicy', :'created_on' => :'createdOn', - :'updated_on' => :'updatedOn', :'notification_scope' => :'notificationScope' } end @@ -82,7 +78,6 @@ def self.json_map :'retry_policy' => :'retry_policy', :'security_policy' => :'security_policy', :'created_on' => :'created_on', - :'updated_on' => :'updated_on', :'notification_scope' => :'notification_scope' } end @@ -101,7 +96,6 @@ def self.swagger_types :'retry_policy' => :'Notificationsubscriptionsv2webhooksRetryPolicy', :'security_policy' => :'Notificationsubscriptionsv2webhooksSecurityPolicy', :'created_on' => :'String', - :'updated_on' => :'String', :'notification_scope' => :'String' } end @@ -162,10 +156,6 @@ def initialize(attributes = {}) self.created_on = attributes[:'createdOn'] end - if attributes.has_key?(:'updatedOn') - self.updated_on = attributes[:'updatedOn'] - end - if attributes.has_key?(:'notificationScope') self.notification_scope = attributes[:'notificationScope'] else @@ -202,7 +192,6 @@ def ==(o) retry_policy == o.retry_policy && security_policy == o.security_policy && created_on == o.created_on && - updated_on == o.updated_on && notification_scope == o.notification_scope end @@ -215,7 +204,7 @@ def eql?(o) # Calculates hash code according to all attributes. # @return [Fixnum] Hash code def hash - [webhook_id, organization_id, products, webhook_url, health_check_url, status, name, description, retry_policy, security_policy, created_on, updated_on, notification_scope].hash + [webhook_id, organization_id, products, webhook_url, health_check_url, status, name, description, retry_policy, security_policy, created_on, notification_scope].hash end # Builds the object from hash diff --git a/lib/cybersource_rest_client/models/inline_response_200_7.rb b/lib/cybersource_rest_client/models/inline_response_200_7.rb index 2d3da7ee..b5d6a4ee 100644 --- a/lib/cybersource_rest_client/models/inline_response_200_7.rb +++ b/lib/cybersource_rest_client/models/inline_response_200_7.rb @@ -13,57 +13,96 @@ module CyberSource class InlineResponse2007 - # Total number of results. - attr_accessor :total_count + # Webhook Id. This is generated by the server. + attr_accessor :webhook_id - # Controls the starting point within the collection of results, which defaults to 0. The first item in the collection is retrieved by setting a zero offset. For example, if you have a collection of 15 items to be retrieved from a resource and you specify limit=5, you can retrieve the entire set of results in 3 successive requests by varying the offset value like this: `offset=0` `offset=5` `offset=10` **Note:** If an offset larger than the number of results is provided, this will result in no embedded object being returned. - attr_accessor :offset + # Organization ID. + attr_accessor :organization_id - # Controls the maximum number of items that may be returned for a single request. The default is 20, the maximum is 2500. - attr_accessor :limit + attr_accessor :products - # A comma separated list of the following form: `submitTimeUtc:desc` - attr_accessor :sort + # The client's endpoint (URL) to receive webhooks. + attr_accessor :webhook_url - # Results for this page, this could be below the limit. - attr_accessor :count + # The client's health check endpoint (URL). + attr_accessor :health_check_url - # A collection of devices - attr_accessor :devices + # Webhook status. + attr_accessor :status + + # Client friendly webhook name. + attr_accessor :name + + # Client friendly webhook description. + attr_accessor :description + + attr_accessor :retry_policy + + attr_accessor :security_policy + + # Date on which webhook was created/registered. + attr_accessor :created_on + + # Date on which webhook was most recently updated. + attr_accessor :updated_on + + # The webhook scope. 1. SELF The Webhook is used to deliver webhooks for only this Organization (or Merchant). 2. DESCENDANTS The Webhook is used to deliver webhooks for this Organization and its children. This field is optional. Possible values: - SELF - DESCENDANTS + attr_accessor :notification_scope # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { - :'total_count' => :'totalCount', - :'offset' => :'offset', - :'limit' => :'limit', - :'sort' => :'sort', - :'count' => :'count', - :'devices' => :'devices' + :'webhook_id' => :'webhookId', + :'organization_id' => :'organizationId', + :'products' => :'products', + :'webhook_url' => :'webhookUrl', + :'health_check_url' => :'healthCheckUrl', + :'status' => :'status', + :'name' => :'name', + :'description' => :'description', + :'retry_policy' => :'retryPolicy', + :'security_policy' => :'securityPolicy', + :'created_on' => :'createdOn', + :'updated_on' => :'updatedOn', + :'notification_scope' => :'notificationScope' } end # Attribute mapping from JSON key to ruby-style variable name. def self.json_map { - :'total_count' => :'total_count', - :'offset' => :'offset', - :'limit' => :'limit', - :'sort' => :'sort', - :'count' => :'count', - :'devices' => :'devices' + :'webhook_id' => :'webhook_id', + :'organization_id' => :'organization_id', + :'products' => :'products', + :'webhook_url' => :'webhook_url', + :'health_check_url' => :'health_check_url', + :'status' => :'status', + :'name' => :'name', + :'description' => :'description', + :'retry_policy' => :'retry_policy', + :'security_policy' => :'security_policy', + :'created_on' => :'created_on', + :'updated_on' => :'updated_on', + :'notification_scope' => :'notification_scope' } end # Attribute type mapping. def self.swagger_types { - :'total_count' => :'Integer', - :'offset' => :'Integer', - :'limit' => :'Integer', - :'sort' => :'String', - :'count' => :'Integer', - :'devices' => :'Array' + :'webhook_id' => :'String', + :'organization_id' => :'String', + :'products' => :'Array', + :'webhook_url' => :'String', + :'health_check_url' => :'String', + :'status' => :'String', + :'name' => :'String', + :'description' => :'String', + :'retry_policy' => :'Notificationsubscriptionsv2webhooksRetryPolicy', + :'security_policy' => :'Notificationsubscriptionsv2webhooksSecurityPolicy', + :'created_on' => :'String', + :'updated_on' => :'String', + :'notification_scope' => :'String' } end @@ -75,30 +114,62 @@ def initialize(attributes = {}) # convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v } - if attributes.has_key?(:'totalCount') - self.total_count = attributes[:'totalCount'] + if attributes.has_key?(:'webhookId') + self.webhook_id = attributes[:'webhookId'] end - if attributes.has_key?(:'offset') - self.offset = attributes[:'offset'] + if attributes.has_key?(:'organizationId') + self.organization_id = attributes[:'organizationId'] end - if attributes.has_key?(:'limit') - self.limit = attributes[:'limit'] + if attributes.has_key?(:'products') + if (value = attributes[:'products']).is_a?(Array) + self.products = value + end end - if attributes.has_key?(:'sort') - self.sort = attributes[:'sort'] + if attributes.has_key?(:'webhookUrl') + self.webhook_url = attributes[:'webhookUrl'] end - if attributes.has_key?(:'count') - self.count = attributes[:'count'] + if attributes.has_key?(:'healthCheckUrl') + self.health_check_url = attributes[:'healthCheckUrl'] end - if attributes.has_key?(:'devices') - if (value = attributes[:'devices']).is_a?(Array) - self.devices = value - end + if attributes.has_key?(:'status') + self.status = attributes[:'status'] + else + self.status = 'INACTIVE' + end + + if attributes.has_key?(:'name') + self.name = attributes[:'name'] + end + + if attributes.has_key?(:'description') + self.description = attributes[:'description'] + end + + if attributes.has_key?(:'retryPolicy') + self.retry_policy = attributes[:'retryPolicy'] + end + + if attributes.has_key?(:'securityPolicy') + self.security_policy = attributes[:'securityPolicy'] + end + + if attributes.has_key?(:'createdOn') + self.created_on = attributes[:'createdOn'] + end + + if attributes.has_key?(:'updatedOn') + self.updated_on = attributes[:'updatedOn'] + end + + if attributes.has_key?(:'notificationScope') + self.notification_scope = attributes[:'notificationScope'] + else + self.notification_scope = 'DESCENDANTS' end end @@ -120,12 +191,19 @@ def valid? def ==(o) return true if self.equal?(o) self.class == o.class && - total_count == o.total_count && - offset == o.offset && - limit == o.limit && - sort == o.sort && - count == o.count && - devices == o.devices + webhook_id == o.webhook_id && + organization_id == o.organization_id && + products == o.products && + webhook_url == o.webhook_url && + health_check_url == o.health_check_url && + status == o.status && + name == o.name && + description == o.description && + retry_policy == o.retry_policy && + security_policy == o.security_policy && + created_on == o.created_on && + updated_on == o.updated_on && + notification_scope == o.notification_scope end # @see the `==` method @@ -137,7 +215,7 @@ def eql?(o) # Calculates hash code according to all attributes. # @return [Fixnum] Hash code def hash - [total_count, offset, limit, sort, count, devices].hash + [webhook_id, organization_id, products, webhook_url, health_check_url, status, name, description, retry_policy, security_policy, created_on, updated_on, notification_scope].hash end # Builds the object from hash diff --git a/lib/cybersource_rest_client/models/inline_response_200_8.rb b/lib/cybersource_rest_client/models/inline_response_200_8.rb index da94efee..96f30ea7 100644 --- a/lib/cybersource_rest_client/models/inline_response_200_8.rb +++ b/lib/cybersource_rest_client/models/inline_response_200_8.rb @@ -13,15 +13,32 @@ module CyberSource class InlineResponse2008 - # Possible values: - OK - attr_accessor :status + # Total number of results. + attr_accessor :total_count + # Controls the starting point within the collection of results, which defaults to 0. The first item in the collection is retrieved by setting a zero offset. For example, if you have a collection of 15 items to be retrieved from a resource and you specify limit=5, you can retrieve the entire set of results in 3 successive requests by varying the offset value like this: `offset=0` `offset=5` `offset=10` **Note:** If an offset larger than the number of results is provided, this will result in no embedded object being returned. + attr_accessor :offset + + # Controls the maximum number of items that may be returned for a single request. The default is 20, the maximum is 2500. + attr_accessor :limit + + # A comma separated list of the following form: `submitTimeUtc:desc` + attr_accessor :sort + + # Results for this page, this could be below the limit. + attr_accessor :count + + # A collection of devices attr_accessor :devices # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { - :'status' => :'status', + :'total_count' => :'totalCount', + :'offset' => :'offset', + :'limit' => :'limit', + :'sort' => :'sort', + :'count' => :'count', :'devices' => :'devices' } end @@ -29,7 +46,11 @@ def self.attribute_map # Attribute mapping from JSON key to ruby-style variable name. def self.json_map { - :'status' => :'status', + :'total_count' => :'total_count', + :'offset' => :'offset', + :'limit' => :'limit', + :'sort' => :'sort', + :'count' => :'count', :'devices' => :'devices' } end @@ -37,8 +58,12 @@ def self.json_map # Attribute type mapping. def self.swagger_types { - :'status' => :'String', - :'devices' => :'Array' + :'total_count' => :'Integer', + :'offset' => :'Integer', + :'limit' => :'Integer', + :'sort' => :'String', + :'count' => :'Integer', + :'devices' => :'Array' } end @@ -50,8 +75,24 @@ def initialize(attributes = {}) # convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v } - if attributes.has_key?(:'status') - self.status = attributes[:'status'] + if attributes.has_key?(:'totalCount') + self.total_count = attributes[:'totalCount'] + end + + if attributes.has_key?(:'offset') + self.offset = attributes[:'offset'] + end + + if attributes.has_key?(:'limit') + self.limit = attributes[:'limit'] + end + + if attributes.has_key?(:'sort') + self.sort = attributes[:'sort'] + end + + if attributes.has_key?(:'count') + self.count = attributes[:'count'] end if attributes.has_key?(:'devices') @@ -79,7 +120,11 @@ def valid? def ==(o) return true if self.equal?(o) self.class == o.class && - status == o.status && + total_count == o.total_count && + offset == o.offset && + limit == o.limit && + sort == o.sort && + count == o.count && devices == o.devices end @@ -92,7 +137,7 @@ def eql?(o) # Calculates hash code according to all attributes. # @return [Fixnum] Hash code def hash - [status, devices].hash + [total_count, offset, limit, sort, count, devices].hash end # Builds the object from hash diff --git a/lib/cybersource_rest_client/models/inline_response_200_7_devices.rb b/lib/cybersource_rest_client/models/inline_response_200_8_devices.rb similarity index 99% rename from lib/cybersource_rest_client/models/inline_response_200_7_devices.rb rename to lib/cybersource_rest_client/models/inline_response_200_8_devices.rb index 411e9743..45077f78 100644 --- a/lib/cybersource_rest_client/models/inline_response_200_7_devices.rb +++ b/lib/cybersource_rest_client/models/inline_response_200_8_devices.rb @@ -12,7 +12,7 @@ require 'date' module CyberSource - class InlineResponse2007Devices + class InlineResponse2008Devices attr_accessor :reader_id attr_accessor :terminal_serial_number diff --git a/lib/cybersource_rest_client/models/inline_response_200_9.rb b/lib/cybersource_rest_client/models/inline_response_200_9.rb index 843ed165..05570511 100644 --- a/lib/cybersource_rest_client/models/inline_response_200_9.rb +++ b/lib/cybersource_rest_client/models/inline_response_200_9.rb @@ -13,32 +13,15 @@ module CyberSource class InlineResponse2009 - # Total number of results. - attr_accessor :total_count + # Possible values: - OK + attr_accessor :status - # Controls the starting point within the collection of results, which defaults to 0. The first item in the collection is retrieved by setting a zero offset. For example, if you have a collection of 15 items to be retrieved from a resource and you specify limit=5, you can retrieve the entire set of results in 3 successive requests by varying the offset value like this: `offset=0` `offset=5` `offset=10` **Note:** If an offset larger than the number of results is provided, this will result in no embedded object being returned. - attr_accessor :offset - - # Controls the maximum number of items that may be returned for a single request. The default is 20, the maximum is 2500. - attr_accessor :limit - - # A comma separated list of the following form: `terminalCreationDate:desc or serialNumber or terminalUpdationDate` - attr_accessor :sort - - # Results for this page, this could be below the limit. - attr_accessor :count - - # A collection of devices attr_accessor :devices # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { - :'total_count' => :'totalCount', - :'offset' => :'offset', - :'limit' => :'limit', - :'sort' => :'sort', - :'count' => :'count', + :'status' => :'status', :'devices' => :'devices' } end @@ -46,11 +29,7 @@ def self.attribute_map # Attribute mapping from JSON key to ruby-style variable name. def self.json_map { - :'total_count' => :'total_count', - :'offset' => :'offset', - :'limit' => :'limit', - :'sort' => :'sort', - :'count' => :'count', + :'status' => :'status', :'devices' => :'devices' } end @@ -58,12 +37,8 @@ def self.json_map # Attribute type mapping. def self.swagger_types { - :'total_count' => :'Integer', - :'offset' => :'Integer', - :'limit' => :'Integer', - :'sort' => :'String', - :'count' => :'Integer', - :'devices' => :'Array' + :'status' => :'String', + :'devices' => :'Array' } end @@ -75,24 +50,8 @@ def initialize(attributes = {}) # convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v } - if attributes.has_key?(:'totalCount') - self.total_count = attributes[:'totalCount'] - end - - if attributes.has_key?(:'offset') - self.offset = attributes[:'offset'] - end - - if attributes.has_key?(:'limit') - self.limit = attributes[:'limit'] - end - - if attributes.has_key?(:'sort') - self.sort = attributes[:'sort'] - end - - if attributes.has_key?(:'count') - self.count = attributes[:'count'] + if attributes.has_key?(:'status') + self.status = attributes[:'status'] end if attributes.has_key?(:'devices') @@ -120,11 +79,7 @@ def valid? def ==(o) return true if self.equal?(o) self.class == o.class && - total_count == o.total_count && - offset == o.offset && - limit == o.limit && - sort == o.sort && - count == o.count && + status == o.status && devices == o.devices end @@ -137,7 +92,7 @@ def eql?(o) # Calculates hash code according to all attributes. # @return [Fixnum] Hash code def hash - [total_count, offset, limit, sort, count, devices].hash + [status, devices].hash end # Builds the object from hash diff --git a/lib/cybersource_rest_client/models/inline_response_200_10__links.rb b/lib/cybersource_rest_client/models/inline_response_200_details.rb similarity index 89% rename from lib/cybersource_rest_client/models/inline_response_200_10__links.rb rename to lib/cybersource_rest_client/models/inline_response_200_details.rb index 495b458b..2eae99b0 100644 --- a/lib/cybersource_rest_client/models/inline_response_200_10__links.rb +++ b/lib/cybersource_rest_client/models/inline_response_200_details.rb @@ -12,33 +12,34 @@ require 'date' module CyberSource - class InlineResponse20010Links - # Valid Values: * self * first * last * prev * next - attr_accessor :rel + class InlineResponse200Details + # The name of the field that caused the error. + attr_accessor :name - attr_accessor :href + # The location of the field that caused the error. + attr_accessor :location # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { - :'rel' => :'rel', - :'href' => :'href' + :'name' => :'name', + :'location' => :'location' } end # Attribute mapping from JSON key to ruby-style variable name. def self.json_map { - :'rel' => :'rel', - :'href' => :'href' + :'name' => :'name', + :'location' => :'location' } end # Attribute type mapping. def self.swagger_types { - :'rel' => :'String', - :'href' => :'String' + :'name' => :'String', + :'location' => :'String' } end @@ -50,12 +51,12 @@ def initialize(attributes = {}) # convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v } - if attributes.has_key?(:'rel') - self.rel = attributes[:'rel'] + if attributes.has_key?(:'name') + self.name = attributes[:'name'] end - if attributes.has_key?(:'href') - self.href = attributes[:'href'] + if attributes.has_key?(:'location') + self.location = attributes[:'location'] end end @@ -77,8 +78,8 @@ def valid? def ==(o) return true if self.equal?(o) self.class == o.class && - rel == o.rel && - href == o.href + name == o.name && + location == o.location end # @see the `==` method @@ -90,7 +91,7 @@ def eql?(o) # Calculates hash code according to all attributes. # @return [Fixnum] Hash code def hash - [rel, href].hash + [name, location].hash end # Builds the object from hash diff --git a/lib/cybersource_rest_client/models/inline_response_200_errors.rb b/lib/cybersource_rest_client/models/inline_response_200_errors.rb new file mode 100644 index 00000000..bf356b2b --- /dev/null +++ b/lib/cybersource_rest_client/models/inline_response_200_errors.rb @@ -0,0 +1,213 @@ +=begin +#CyberSource Merged Spec + +#All CyberSource API specs merged together. These are available at https://developer.cybersource.com/api/reference/api-reference.html + +OpenAPI spec version: 0.0.1 + +Generated by: https://github.com/swagger-api/swagger-codegen.git +Swagger Codegen version: 2.4.38 +=end + +require 'date' + +module CyberSource + class InlineResponse200Errors + # The type of error. Possible Values: - invalidHeaders - missingHeaders - invalidFields - missingFields - unsupportedPaymentMethodModification - invalidCombination - forbidden - notFound - instrumentIdentifierDeletionError - tokenIdConflict - conflict - notAvailable - serverError - notAttempted A \"notAttempted\" error type is returned when the request cannot be processed because it depends on the existence of another token that does not exist. For example, creating a shipping address token is not attempted if the required customer token is missing. + attr_accessor :type + + # The detailed message related to the type. + attr_accessor :message + + attr_accessor :details + + # Attribute mapping from ruby-style variable name to JSON key. + def self.attribute_map + { + :'type' => :'type', + :'message' => :'message', + :'details' => :'details' + } + end + + # Attribute mapping from JSON key to ruby-style variable name. + def self.json_map + { + :'type' => :'type', + :'message' => :'message', + :'details' => :'details' + } + end + + # Attribute type mapping. + def self.swagger_types + { + :'type' => :'String', + :'message' => :'String', + :'details' => :'Array' + } + end + + # Initializes the object + # @param [Hash] attributes Model attributes in the form of hash + def initialize(attributes = {}) + return unless attributes.is_a?(Hash) + + # convert string to symbol for hash key + attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v } + + if attributes.has_key?(:'type') + self.type = attributes[:'type'] + end + + if attributes.has_key?(:'message') + self.message = attributes[:'message'] + end + + if attributes.has_key?(:'details') + if (value = attributes[:'details']).is_a?(Array) + self.details = value + end + end + end + + # Show invalid properties with the reasons. Usually used together with valid? + # @return Array for valid properties with the reasons + def list_invalid_properties + invalid_properties = Array.new + invalid_properties + end + + # Check to see if the all the properties in the model are valid + # @return true if the model is valid + def valid? + true + end + + # Checks equality by comparing each attribute. + # @param [Object] Object to be compared + def ==(o) + return true if self.equal?(o) + self.class == o.class && + type == o.type && + message == o.message && + details == o.details + end + + # @see the `==` method + # @param [Object] Object to be compared + def eql?(o) + self == o + end + + # Calculates hash code according to all attributes. + # @return [Fixnum] Hash code + def hash + [type, message, details].hash + end + + # Builds the object from hash + # @param [Hash] attributes Model attributes in the form of hash + # @return [Object] Returns the model itself + def build_from_hash(attributes) + return nil unless attributes.is_a?(Hash) + self.class.swagger_types.each_pair do |key, type| + if type =~ /\AArray<(.*)>/i + # check to ensure the input is an array given that the the attribute + # is documented as an array but the input is not + if attributes[self.class.attribute_map[key]].is_a?(Array) + self.send("#{self.class.json_map[key]}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) + end + elsif !attributes[self.class.attribute_map[key]].nil? + self.send("#{self.class.json_map[key]}=", _deserialize(type, attributes[self.class.attribute_map[key]])) + end # or else data not found in attributes(hash), not an issue as the data can be optional + end + + self + end + + # Deserializes the data based on type + # @param string type Data type + # @param string value Value to be deserialized + # @return [Object] Deserialized data + def _deserialize(type, value) + case type.to_sym + when :DateTime + DateTime.parse(value) + when :Date + Date.parse(value) + when :String + value.to_s + when :Integer + value.to_i + when :Float + value.to_f + when :BOOLEAN + if value.to_s =~ /\A(true|t|yes|y|1)\z/i + true + else + false + end + when :Object + # generic object (usually a Hash), return directly + value + when /\AArray<(?.+)>\z/ + inner_type = Regexp.last_match[:inner_type] + value.map { |v| _deserialize(inner_type, v) } + when /\AHash<(?.+?), (?.+)>\z/ + k_type = Regexp.last_match[:k_type] + v_type = Regexp.last_match[:v_type] + {}.tap do |hash| + value.each do |k, v| + hash[_deserialize(k_type, k)] = _deserialize(v_type, v) + end + end + else # model + temp_model = CyberSource.const_get(type).new + temp_model.build_from_hash(value) + end + end + + # Returns the string representation of the object + # @return [String] String presentation of the object + def to_s + to_hash.to_s + end + + # to_body is an alias to to_hash (backward compatibility) + # @return [Hash] Returns the object in the form of hash + def to_body + to_hash + end + + # Returns the object in the form of hash + # @return [Hash] Returns the object in the form of hash + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + next if value.nil? + hash[param] = _to_hash(value) + end + hash + end + + # Outputs non-array value in the form of hash + # For object, use to_hash. Otherwise, just return the value + # @param [Object] value Any valid value + # @return [Hash] Returns the value in the form of hash + def _to_hash(value) + if value.is_a?(Array) + value.compact.map { |v| _to_hash(v) } + elsif value.is_a?(Hash) + {}.tap do |hash| + value.each { |k, v| hash[k] = _to_hash(v) } + end + elsif value.respond_to? :to_hash + value.to_hash + else + value + end + end + end +end diff --git a/lib/cybersource_rest_client/models/inline_response_200_responses.rb b/lib/cybersource_rest_client/models/inline_response_200_responses.rb new file mode 100644 index 00000000..5487dbb9 --- /dev/null +++ b/lib/cybersource_rest_client/models/inline_response_200_responses.rb @@ -0,0 +1,224 @@ +=begin +#CyberSource Merged Spec + +#All CyberSource API specs merged together. These are available at https://developer.cybersource.com/api/reference/api-reference.html + +OpenAPI spec version: 0.0.1 + +Generated by: https://github.com/swagger-api/swagger-codegen.git +Swagger Codegen version: 2.4.38 +=end + +require 'date' + +module CyberSource + class InlineResponse200Responses + # TMS token type associated with the response. Possible Values: - customer - paymentInstrument - instrumentIdentifier - shippingAddress - tokenizedCard + attr_accessor :resource + + # Http status associated with the response. + attr_accessor :http_status + + # TMS token id associated with the response. + attr_accessor :id + + attr_accessor :errors + + # Attribute mapping from ruby-style variable name to JSON key. + def self.attribute_map + { + :'resource' => :'resource', + :'http_status' => :'httpStatus', + :'id' => :'id', + :'errors' => :'errors' + } + end + + # Attribute mapping from JSON key to ruby-style variable name. + def self.json_map + { + :'resource' => :'resource', + :'http_status' => :'http_status', + :'id' => :'id', + :'errors' => :'errors' + } + end + + # Attribute type mapping. + def self.swagger_types + { + :'resource' => :'String', + :'http_status' => :'Integer', + :'id' => :'String', + :'errors' => :'Array' + } + end + + # Initializes the object + # @param [Hash] attributes Model attributes in the form of hash + def initialize(attributes = {}) + return unless attributes.is_a?(Hash) + + # convert string to symbol for hash key + attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v } + + if attributes.has_key?(:'resource') + self.resource = attributes[:'resource'] + end + + if attributes.has_key?(:'httpStatus') + self.http_status = attributes[:'httpStatus'] + end + + if attributes.has_key?(:'id') + self.id = attributes[:'id'] + end + + if attributes.has_key?(:'errors') + if (value = attributes[:'errors']).is_a?(Array) + self.errors = value + end + end + end + + # Show invalid properties with the reasons. Usually used together with valid? + # @return Array for valid properties with the reasons + def list_invalid_properties + invalid_properties = Array.new + invalid_properties + end + + # Check to see if the all the properties in the model are valid + # @return true if the model is valid + def valid? + true + end + + # Checks equality by comparing each attribute. + # @param [Object] Object to be compared + def ==(o) + return true if self.equal?(o) + self.class == o.class && + resource == o.resource && + http_status == o.http_status && + id == o.id && + errors == o.errors + end + + # @see the `==` method + # @param [Object] Object to be compared + def eql?(o) + self == o + end + + # Calculates hash code according to all attributes. + # @return [Fixnum] Hash code + def hash + [resource, http_status, id, errors].hash + end + + # Builds the object from hash + # @param [Hash] attributes Model attributes in the form of hash + # @return [Object] Returns the model itself + def build_from_hash(attributes) + return nil unless attributes.is_a?(Hash) + self.class.swagger_types.each_pair do |key, type| + if type =~ /\AArray<(.*)>/i + # check to ensure the input is an array given that the the attribute + # is documented as an array but the input is not + if attributes[self.class.attribute_map[key]].is_a?(Array) + self.send("#{self.class.json_map[key]}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) + end + elsif !attributes[self.class.attribute_map[key]].nil? + self.send("#{self.class.json_map[key]}=", _deserialize(type, attributes[self.class.attribute_map[key]])) + end # or else data not found in attributes(hash), not an issue as the data can be optional + end + + self + end + + # Deserializes the data based on type + # @param string type Data type + # @param string value Value to be deserialized + # @return [Object] Deserialized data + def _deserialize(type, value) + case type.to_sym + when :DateTime + DateTime.parse(value) + when :Date + Date.parse(value) + when :String + value.to_s + when :Integer + value.to_i + when :Float + value.to_f + when :BOOLEAN + if value.to_s =~ /\A(true|t|yes|y|1)\z/i + true + else + false + end + when :Object + # generic object (usually a Hash), return directly + value + when /\AArray<(?.+)>\z/ + inner_type = Regexp.last_match[:inner_type] + value.map { |v| _deserialize(inner_type, v) } + when /\AHash<(?.+?), (?.+)>\z/ + k_type = Regexp.last_match[:k_type] + v_type = Regexp.last_match[:v_type] + {}.tap do |hash| + value.each do |k, v| + hash[_deserialize(k_type, k)] = _deserialize(v_type, v) + end + end + else # model + temp_model = CyberSource.const_get(type).new + temp_model.build_from_hash(value) + end + end + + # Returns the string representation of the object + # @return [String] String presentation of the object + def to_s + to_hash.to_s + end + + # to_body is an alias to to_hash (backward compatibility) + # @return [Hash] Returns the object in the form of hash + def to_body + to_hash + end + + # Returns the object in the form of hash + # @return [Hash] Returns the object in the form of hash + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + next if value.nil? + hash[param] = _to_hash(value) + end + hash + end + + # Outputs non-array value in the form of hash + # For object, use to_hash. Otherwise, just return the value + # @param [Object] value Any valid value + # @return [Hash] Returns the value in the form of hash + def _to_hash(value) + if value.is_a?(Array) + value.compact.map { |v| _to_hash(v) } + elsif value.is_a?(Hash) + {}.tap do |hash| + value.each { |k, v| hash[k] = _to_hash(v) } + end + elsif value.respond_to? :to_hash + value.to_hash + else + value + end + end + end +end diff --git a/lib/cybersource_rest_client/models/inline_response_201_3_setups_payments.rb b/lib/cybersource_rest_client/models/inline_response_201_3_setups_payments.rb index 23249bd6..ada1acb6 100644 --- a/lib/cybersource_rest_client/models/inline_response_201_3_setups_payments.rb +++ b/lib/cybersource_rest_client/models/inline_response_201_3_setups_payments.rb @@ -51,6 +51,8 @@ class InlineResponse2013SetupsPayments attr_accessor :service_fee + attr_accessor :batch_upload + # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { @@ -72,7 +74,8 @@ def self.attribute_map :'pay_by_link' => :'payByLink', :'unified_checkout' => :'unifiedCheckout', :'receivables_manager' => :'receivablesManager', - :'service_fee' => :'serviceFee' + :'service_fee' => :'serviceFee', + :'batch_upload' => :'batchUpload' } end @@ -97,7 +100,8 @@ def self.json_map :'pay_by_link' => :'pay_by_link', :'unified_checkout' => :'unified_checkout', :'receivables_manager' => :'receivables_manager', - :'service_fee' => :'service_fee' + :'service_fee' => :'service_fee', + :'batch_upload' => :'batch_upload' } end @@ -122,7 +126,8 @@ def self.swagger_types :'pay_by_link' => :'InlineResponse2013SetupsPaymentsDigitalPayments', :'unified_checkout' => :'InlineResponse2013SetupsPaymentsDigitalPayments', :'receivables_manager' => :'InlineResponse2013SetupsPaymentsDigitalPayments', - :'service_fee' => :'InlineResponse2013SetupsPaymentsCardProcessing' + :'service_fee' => :'InlineResponse2013SetupsPaymentsCardProcessing', + :'batch_upload' => :'InlineResponse2013SetupsPaymentsDigitalPayments' } end @@ -209,6 +214,10 @@ def initialize(attributes = {}) if attributes.has_key?(:'serviceFee') self.service_fee = attributes[:'serviceFee'] end + + if attributes.has_key?(:'batchUpload') + self.batch_upload = attributes[:'batchUpload'] + end end # Show invalid properties with the reasons. Usually used together with valid? @@ -247,7 +256,8 @@ def ==(o) pay_by_link == o.pay_by_link && unified_checkout == o.unified_checkout && receivables_manager == o.receivables_manager && - service_fee == o.service_fee + service_fee == o.service_fee && + batch_upload == o.batch_upload end # @see the `==` method @@ -259,7 +269,7 @@ def eql?(o) # Calculates hash code according to all attributes. # @return [Fixnum] Hash code def hash - [card_processing, alternative_payment_methods, card_present_connect, e_check, payer_authentication, digital_payments, secure_acceptance, virtual_terminal, currency_conversion, tax, customer_invoicing, recurring_billing, cybs_ready_terminal, payment_orchestration, payouts, pay_by_link, unified_checkout, receivables_manager, service_fee].hash + [card_processing, alternative_payment_methods, card_present_connect, e_check, payer_authentication, digital_payments, secure_acceptance, virtual_terminal, currency_conversion, tax, customer_invoicing, recurring_billing, cybs_ready_terminal, payment_orchestration, payouts, pay_by_link, unified_checkout, receivables_manager, service_fee, batch_upload].hash end # Builds the object from hash diff --git a/lib/cybersource_rest_client/models/patch_customer_payment_instrument_request.rb b/lib/cybersource_rest_client/models/patch_customer_payment_instrument_request.rb index cadd305d..70efba4f 100644 --- a/lib/cybersource_rest_client/models/patch_customer_payment_instrument_request.rb +++ b/lib/cybersource_rest_client/models/patch_customer_payment_instrument_request.rb @@ -93,21 +93,21 @@ def self.json_map # Attribute type mapping. def self.swagger_types { - :'_links' => :'Tmsv2customersEmbeddedDefaultPaymentInstrumentLinks', + :'_links' => :'Tmsv2tokenizeTokenInformationCustomerEmbeddedDefaultPaymentInstrumentLinks', :'id' => :'String', :'object' => :'String', :'default' => :'BOOLEAN', :'state' => :'String', :'type' => :'String', - :'bank_account' => :'Tmsv2customersEmbeddedDefaultPaymentInstrumentBankAccount', - :'card' => :'Tmsv2customersEmbeddedDefaultPaymentInstrumentCard', - :'buyer_information' => :'Tmsv2customersEmbeddedDefaultPaymentInstrumentBuyerInformation', - :'bill_to' => :'Tmsv2customersEmbeddedDefaultPaymentInstrumentBillTo', + :'bank_account' => :'Tmsv2tokenizeTokenInformationCustomerEmbeddedDefaultPaymentInstrumentBankAccount', + :'card' => :'Tmsv2tokenizeTokenInformationCustomerEmbeddedDefaultPaymentInstrumentCard', + :'buyer_information' => :'Tmsv2tokenizeTokenInformationCustomerEmbeddedDefaultPaymentInstrumentBuyerInformation', + :'bill_to' => :'Tmsv2tokenizeTokenInformationCustomerEmbeddedDefaultPaymentInstrumentBillTo', :'processing_information' => :'TmsPaymentInstrumentProcessingInfo', - :'merchant_information' => :'Tmsv2customersEmbeddedDefaultPaymentInstrumentMerchantInformation', - :'instrument_identifier' => :'Tmsv2customersEmbeddedDefaultPaymentInstrumentInstrumentIdentifier', - :'metadata' => :'Tmsv2customersEmbeddedDefaultPaymentInstrumentMetadata', - :'_embedded' => :'Tmsv2customersEmbeddedDefaultPaymentInstrumentEmbedded' + :'merchant_information' => :'TmsMerchantInformation', + :'instrument_identifier' => :'Tmsv2tokenizeTokenInformationCustomerEmbeddedDefaultPaymentInstrumentInstrumentIdentifier', + :'metadata' => :'Tmsv2tokenizeTokenInformationCustomerEmbeddedDefaultPaymentInstrumentMetadata', + :'_embedded' => :'Tmsv2tokenizeTokenInformationCustomerEmbeddedDefaultPaymentInstrumentEmbedded' } end diff --git a/lib/cybersource_rest_client/models/patch_customer_request.rb b/lib/cybersource_rest_client/models/patch_customer_request.rb index 2d8b7119..f9524ab6 100644 --- a/lib/cybersource_rest_client/models/patch_customer_request.rb +++ b/lib/cybersource_rest_client/models/patch_customer_request.rb @@ -70,16 +70,16 @@ def self.json_map # Attribute type mapping. def self.swagger_types { - :'_links' => :'Tmsv2customersLinks', + :'_links' => :'Tmsv2tokenizeTokenInformationCustomerLinks', :'id' => :'String', - :'object_information' => :'Tmsv2customersObjectInformation', - :'buyer_information' => :'Tmsv2customersBuyerInformation', - :'client_reference_information' => :'Tmsv2customersClientReferenceInformation', - :'merchant_defined_information' => :'Array', - :'default_payment_instrument' => :'Tmsv2customersDefaultPaymentInstrument', - :'default_shipping_address' => :'Tmsv2customersDefaultShippingAddress', - :'metadata' => :'Tmsv2customersMetadata', - :'_embedded' => :'Tmsv2customersEmbedded' + :'object_information' => :'Tmsv2tokenizeTokenInformationCustomerObjectInformation', + :'buyer_information' => :'Tmsv2tokenizeTokenInformationCustomerBuyerInformation', + :'client_reference_information' => :'Tmsv2tokenizeTokenInformationCustomerClientReferenceInformation', + :'merchant_defined_information' => :'Array', + :'default_payment_instrument' => :'Tmsv2tokenizeTokenInformationCustomerDefaultPaymentInstrument', + :'default_shipping_address' => :'Tmsv2tokenizeTokenInformationCustomerDefaultShippingAddress', + :'metadata' => :'Tmsv2tokenizeTokenInformationCustomerMetadata', + :'_embedded' => :'Tmsv2tokenizeTokenInformationCustomerEmbedded' } end diff --git a/lib/cybersource_rest_client/models/patch_customer_shipping_address_request.rb b/lib/cybersource_rest_client/models/patch_customer_shipping_address_request.rb index 50e12917..536b14d4 100644 --- a/lib/cybersource_rest_client/models/patch_customer_shipping_address_request.rb +++ b/lib/cybersource_rest_client/models/patch_customer_shipping_address_request.rb @@ -50,11 +50,11 @@ def self.json_map # Attribute type mapping. def self.swagger_types { - :'_links' => :'Tmsv2customersEmbeddedDefaultShippingAddressLinks', + :'_links' => :'Tmsv2tokenizeTokenInformationCustomerEmbeddedDefaultShippingAddressLinks', :'id' => :'String', :'default' => :'BOOLEAN', - :'ship_to' => :'Tmsv2customersEmbeddedDefaultShippingAddressShipTo', - :'metadata' => :'Tmsv2customersEmbeddedDefaultShippingAddressMetadata' + :'ship_to' => :'Tmsv2tokenizeTokenInformationCustomerEmbeddedDefaultShippingAddressShipTo', + :'metadata' => :'Tmsv2tokenizeTokenInformationCustomerEmbeddedDefaultShippingAddressMetadata' } end diff --git a/lib/cybersource_rest_client/models/patch_payment_instrument_request.rb b/lib/cybersource_rest_client/models/patch_payment_instrument_request.rb index 96e23e2c..e91967b6 100644 --- a/lib/cybersource_rest_client/models/patch_payment_instrument_request.rb +++ b/lib/cybersource_rest_client/models/patch_payment_instrument_request.rb @@ -93,21 +93,21 @@ def self.json_map # Attribute type mapping. def self.swagger_types { - :'_links' => :'Tmsv2customersEmbeddedDefaultPaymentInstrumentLinks', + :'_links' => :'Tmsv2tokenizeTokenInformationCustomerEmbeddedDefaultPaymentInstrumentLinks', :'id' => :'String', :'object' => :'String', :'default' => :'BOOLEAN', :'state' => :'String', :'type' => :'String', - :'bank_account' => :'Tmsv2customersEmbeddedDefaultPaymentInstrumentBankAccount', - :'card' => :'Tmsv2customersEmbeddedDefaultPaymentInstrumentCard', - :'buyer_information' => :'Tmsv2customersEmbeddedDefaultPaymentInstrumentBuyerInformation', - :'bill_to' => :'Tmsv2customersEmbeddedDefaultPaymentInstrumentBillTo', + :'bank_account' => :'Tmsv2tokenizeTokenInformationCustomerEmbeddedDefaultPaymentInstrumentBankAccount', + :'card' => :'Tmsv2tokenizeTokenInformationCustomerEmbeddedDefaultPaymentInstrumentCard', + :'buyer_information' => :'Tmsv2tokenizeTokenInformationCustomerEmbeddedDefaultPaymentInstrumentBuyerInformation', + :'bill_to' => :'Tmsv2tokenizeTokenInformationCustomerEmbeddedDefaultPaymentInstrumentBillTo', :'processing_information' => :'TmsPaymentInstrumentProcessingInfo', - :'merchant_information' => :'Tmsv2customersEmbeddedDefaultPaymentInstrumentMerchantInformation', - :'instrument_identifier' => :'Tmsv2customersEmbeddedDefaultPaymentInstrumentInstrumentIdentifier', - :'metadata' => :'Tmsv2customersEmbeddedDefaultPaymentInstrumentMetadata', - :'_embedded' => :'Tmsv2customersEmbeddedDefaultPaymentInstrumentEmbedded' + :'merchant_information' => :'TmsMerchantInformation', + :'instrument_identifier' => :'Tmsv2tokenizeTokenInformationCustomerEmbeddedDefaultPaymentInstrumentInstrumentIdentifier', + :'metadata' => :'Tmsv2tokenizeTokenInformationCustomerEmbeddedDefaultPaymentInstrumentMetadata', + :'_embedded' => :'Tmsv2tokenizeTokenInformationCustomerEmbeddedDefaultPaymentInstrumentEmbedded' } end diff --git a/lib/cybersource_rest_client/models/payment_instrument_list_1__embedded_payment_instruments.rb b/lib/cybersource_rest_client/models/payment_instrument_list_1__embedded_payment_instruments.rb index 896b3107..caa7d56b 100644 --- a/lib/cybersource_rest_client/models/payment_instrument_list_1__embedded_payment_instruments.rb +++ b/lib/cybersource_rest_client/models/payment_instrument_list_1__embedded_payment_instruments.rb @@ -93,20 +93,20 @@ def self.json_map # Attribute type mapping. def self.swagger_types { - :'_links' => :'Tmsv2customersEmbeddedDefaultPaymentInstrumentLinks', + :'_links' => :'Tmsv2tokenizeTokenInformationCustomerEmbeddedDefaultPaymentInstrumentLinks', :'id' => :'String', :'object' => :'String', :'default' => :'BOOLEAN', :'state' => :'String', :'type' => :'String', - :'bank_account' => :'Tmsv2customersEmbeddedDefaultPaymentInstrumentBankAccount', - :'card' => :'Tmsv2customersEmbeddedDefaultPaymentInstrumentCard', - :'buyer_information' => :'Tmsv2customersEmbeddedDefaultPaymentInstrumentBuyerInformation', - :'bill_to' => :'Tmsv2customersEmbeddedDefaultPaymentInstrumentBillTo', + :'bank_account' => :'Tmsv2tokenizeTokenInformationCustomerEmbeddedDefaultPaymentInstrumentBankAccount', + :'card' => :'Tmsv2tokenizeTokenInformationCustomerEmbeddedDefaultPaymentInstrumentCard', + :'buyer_information' => :'Tmsv2tokenizeTokenInformationCustomerEmbeddedDefaultPaymentInstrumentBuyerInformation', + :'bill_to' => :'Tmsv2tokenizeTokenInformationCustomerEmbeddedDefaultPaymentInstrumentBillTo', :'processing_information' => :'TmsPaymentInstrumentProcessingInfo', - :'merchant_information' => :'Tmsv2customersEmbeddedDefaultPaymentInstrumentMerchantInformation', - :'instrument_identifier' => :'Tmsv2customersEmbeddedDefaultPaymentInstrumentInstrumentIdentifier', - :'metadata' => :'Tmsv2customersEmbeddedDefaultPaymentInstrumentMetadata', + :'merchant_information' => :'TmsMerchantInformation', + :'instrument_identifier' => :'Tmsv2tokenizeTokenInformationCustomerEmbeddedDefaultPaymentInstrumentInstrumentIdentifier', + :'metadata' => :'Tmsv2tokenizeTokenInformationCustomerEmbeddedDefaultPaymentInstrumentMetadata', :'_embedded' => :'PaymentInstrumentList1EmbeddedEmbedded' } end diff --git a/lib/cybersource_rest_client/models/payment_instrument_list__embedded.rb b/lib/cybersource_rest_client/models/payment_instrument_list__embedded.rb index d6b82dc2..ef983ee2 100644 --- a/lib/cybersource_rest_client/models/payment_instrument_list__embedded.rb +++ b/lib/cybersource_rest_client/models/payment_instrument_list__embedded.rb @@ -33,7 +33,7 @@ def self.json_map # Attribute type mapping. def self.swagger_types { - :'payment_instruments' => :'Array' + :'payment_instruments' => :'Array' } end diff --git a/lib/cybersource_rest_client/models/payments_products.rb b/lib/cybersource_rest_client/models/payments_products.rb index 715e0883..c22319b7 100644 --- a/lib/cybersource_rest_client/models/payments_products.rb +++ b/lib/cybersource_rest_client/models/payments_products.rb @@ -53,6 +53,8 @@ class PaymentsProducts attr_accessor :service_fee + attr_accessor :batch_upload + # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { @@ -75,7 +77,8 @@ def self.attribute_map :'pay_by_link' => :'payByLink', :'unified_checkout' => :'unifiedCheckout', :'receivables_manager' => :'receivablesManager', - :'service_fee' => :'serviceFee' + :'service_fee' => :'serviceFee', + :'batch_upload' => :'batchUpload' } end @@ -101,7 +104,8 @@ def self.json_map :'pay_by_link' => :'pay_by_link', :'unified_checkout' => :'unified_checkout', :'receivables_manager' => :'receivables_manager', - :'service_fee' => :'service_fee' + :'service_fee' => :'service_fee', + :'batch_upload' => :'batch_upload' } end @@ -127,7 +131,8 @@ def self.swagger_types :'pay_by_link' => :'PaymentsProductsTax', :'unified_checkout' => :'PaymentsProductsUnifiedCheckout', :'receivables_manager' => :'PaymentsProductsTax', - :'service_fee' => :'PaymentsProductsServiceFee' + :'service_fee' => :'PaymentsProductsServiceFee', + :'batch_upload' => :'PaymentsProductsTax' } end @@ -218,6 +223,10 @@ def initialize(attributes = {}) if attributes.has_key?(:'serviceFee') self.service_fee = attributes[:'serviceFee'] end + + if attributes.has_key?(:'batchUpload') + self.batch_upload = attributes[:'batchUpload'] + end end # Show invalid properties with the reasons. Usually used together with valid? @@ -257,7 +266,8 @@ def ==(o) pay_by_link == o.pay_by_link && unified_checkout == o.unified_checkout && receivables_manager == o.receivables_manager && - service_fee == o.service_fee + service_fee == o.service_fee && + batch_upload == o.batch_upload end # @see the `==` method @@ -269,7 +279,7 @@ def eql?(o) # Calculates hash code according to all attributes. # @return [Fixnum] Hash code def hash - [card_processing, alternative_payment_methods, card_present_connect, cybs_ready_terminal, e_check, payer_authentication, digital_payments, secure_acceptance, virtual_terminal, currency_conversion, tax, customer_invoicing, recurring_billing, payment_orchestration, payouts, differential_fee, pay_by_link, unified_checkout, receivables_manager, service_fee].hash + [card_processing, alternative_payment_methods, card_present_connect, cybs_ready_terminal, e_check, payer_authentication, digital_payments, secure_acceptance, virtual_terminal, currency_conversion, tax, customer_invoicing, recurring_billing, payment_orchestration, payouts, differential_fee, pay_by_link, unified_checkout, receivables_manager, service_fee, batch_upload].hash end # Builds the object from hash diff --git a/lib/cybersource_rest_client/models/post_customer_payment_instrument_request.rb b/lib/cybersource_rest_client/models/post_customer_payment_instrument_request.rb index 54aa2c88..26cddfb1 100644 --- a/lib/cybersource_rest_client/models/post_customer_payment_instrument_request.rb +++ b/lib/cybersource_rest_client/models/post_customer_payment_instrument_request.rb @@ -93,21 +93,21 @@ def self.json_map # Attribute type mapping. def self.swagger_types { - :'_links' => :'Tmsv2customersEmbeddedDefaultPaymentInstrumentLinks', + :'_links' => :'Tmsv2tokenizeTokenInformationCustomerEmbeddedDefaultPaymentInstrumentLinks', :'id' => :'String', :'object' => :'String', :'default' => :'BOOLEAN', :'state' => :'String', :'type' => :'String', - :'bank_account' => :'Tmsv2customersEmbeddedDefaultPaymentInstrumentBankAccount', - :'card' => :'Tmsv2customersEmbeddedDefaultPaymentInstrumentCard', - :'buyer_information' => :'Tmsv2customersEmbeddedDefaultPaymentInstrumentBuyerInformation', - :'bill_to' => :'Tmsv2customersEmbeddedDefaultPaymentInstrumentBillTo', + :'bank_account' => :'Tmsv2tokenizeTokenInformationCustomerEmbeddedDefaultPaymentInstrumentBankAccount', + :'card' => :'Tmsv2tokenizeTokenInformationCustomerEmbeddedDefaultPaymentInstrumentCard', + :'buyer_information' => :'Tmsv2tokenizeTokenInformationCustomerEmbeddedDefaultPaymentInstrumentBuyerInformation', + :'bill_to' => :'Tmsv2tokenizeTokenInformationCustomerEmbeddedDefaultPaymentInstrumentBillTo', :'processing_information' => :'TmsPaymentInstrumentProcessingInfo', - :'merchant_information' => :'Tmsv2customersEmbeddedDefaultPaymentInstrumentMerchantInformation', - :'instrument_identifier' => :'Tmsv2customersEmbeddedDefaultPaymentInstrumentInstrumentIdentifier', - :'metadata' => :'Tmsv2customersEmbeddedDefaultPaymentInstrumentMetadata', - :'_embedded' => :'Tmsv2customersEmbeddedDefaultPaymentInstrumentEmbedded' + :'merchant_information' => :'TmsMerchantInformation', + :'instrument_identifier' => :'Tmsv2tokenizeTokenInformationCustomerEmbeddedDefaultPaymentInstrumentInstrumentIdentifier', + :'metadata' => :'Tmsv2tokenizeTokenInformationCustomerEmbeddedDefaultPaymentInstrumentMetadata', + :'_embedded' => :'Tmsv2tokenizeTokenInformationCustomerEmbeddedDefaultPaymentInstrumentEmbedded' } end diff --git a/lib/cybersource_rest_client/models/post_customer_request.rb b/lib/cybersource_rest_client/models/post_customer_request.rb index ffcbb961..0e052b0f 100644 --- a/lib/cybersource_rest_client/models/post_customer_request.rb +++ b/lib/cybersource_rest_client/models/post_customer_request.rb @@ -70,16 +70,16 @@ def self.json_map # Attribute type mapping. def self.swagger_types { - :'_links' => :'Tmsv2customersLinks', + :'_links' => :'Tmsv2tokenizeTokenInformationCustomerLinks', :'id' => :'String', - :'object_information' => :'Tmsv2customersObjectInformation', - :'buyer_information' => :'Tmsv2customersBuyerInformation', - :'client_reference_information' => :'Tmsv2customersClientReferenceInformation', - :'merchant_defined_information' => :'Array', - :'default_payment_instrument' => :'Tmsv2customersDefaultPaymentInstrument', - :'default_shipping_address' => :'Tmsv2customersDefaultShippingAddress', - :'metadata' => :'Tmsv2customersMetadata', - :'_embedded' => :'Tmsv2customersEmbedded' + :'object_information' => :'Tmsv2tokenizeTokenInformationCustomerObjectInformation', + :'buyer_information' => :'Tmsv2tokenizeTokenInformationCustomerBuyerInformation', + :'client_reference_information' => :'Tmsv2tokenizeTokenInformationCustomerClientReferenceInformation', + :'merchant_defined_information' => :'Array', + :'default_payment_instrument' => :'Tmsv2tokenizeTokenInformationCustomerDefaultPaymentInstrument', + :'default_shipping_address' => :'Tmsv2tokenizeTokenInformationCustomerDefaultShippingAddress', + :'metadata' => :'Tmsv2tokenizeTokenInformationCustomerMetadata', + :'_embedded' => :'Tmsv2tokenizeTokenInformationCustomerEmbedded' } end diff --git a/lib/cybersource_rest_client/models/post_customer_shipping_address_request.rb b/lib/cybersource_rest_client/models/post_customer_shipping_address_request.rb index a6a817c1..c4383d23 100644 --- a/lib/cybersource_rest_client/models/post_customer_shipping_address_request.rb +++ b/lib/cybersource_rest_client/models/post_customer_shipping_address_request.rb @@ -50,11 +50,11 @@ def self.json_map # Attribute type mapping. def self.swagger_types { - :'_links' => :'Tmsv2customersEmbeddedDefaultShippingAddressLinks', + :'_links' => :'Tmsv2tokenizeTokenInformationCustomerEmbeddedDefaultShippingAddressLinks', :'id' => :'String', :'default' => :'BOOLEAN', - :'ship_to' => :'Tmsv2customersEmbeddedDefaultShippingAddressShipTo', - :'metadata' => :'Tmsv2customersEmbeddedDefaultShippingAddressMetadata' + :'ship_to' => :'Tmsv2tokenizeTokenInformationCustomerEmbeddedDefaultShippingAddressShipTo', + :'metadata' => :'Tmsv2tokenizeTokenInformationCustomerEmbeddedDefaultShippingAddressMetadata' } end diff --git a/lib/cybersource_rest_client/models/post_issuer_life_cycle_simulation_request.rb b/lib/cybersource_rest_client/models/post_issuer_life_cycle_simulation_request.rb new file mode 100644 index 00000000..12c2f654 --- /dev/null +++ b/lib/cybersource_rest_client/models/post_issuer_life_cycle_simulation_request.rb @@ -0,0 +1,211 @@ +=begin +#CyberSource Merged Spec + +#All CyberSource API specs merged together. These are available at https://developer.cybersource.com/api/reference/api-reference.html + +OpenAPI spec version: 0.0.1 + +Generated by: https://github.com/swagger-api/swagger-codegen.git +Swagger Codegen version: 2.4.38 +=end + +require 'date' + +module CyberSource + # Represents the Issuer LifeCycle Event Simulation for a Tokenized Card. + class PostIssuerLifeCycleSimulationRequest + # The new state of the Tokenized Card. Possible Values: - ACTIVE - SUSPENDED - DELETED + attr_accessor :state + + attr_accessor :card + + attr_accessor :metadata + + # Attribute mapping from ruby-style variable name to JSON key. + def self.attribute_map + { + :'state' => :'state', + :'card' => :'card', + :'metadata' => :'metadata' + } + end + + # Attribute mapping from JSON key to ruby-style variable name. + def self.json_map + { + :'state' => :'state', + :'card' => :'card', + :'metadata' => :'metadata' + } + end + + # Attribute type mapping. + def self.swagger_types + { + :'state' => :'String', + :'card' => :'Tmsv2tokenizedcardstokenizedCardIdissuerlifecycleeventsimulationsCard', + :'metadata' => :'Tmsv2tokenizedcardstokenizedCardIdissuerlifecycleeventsimulationsMetadata' + } + end + + # Initializes the object + # @param [Hash] attributes Model attributes in the form of hash + def initialize(attributes = {}) + return unless attributes.is_a?(Hash) + + # convert string to symbol for hash key + attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v } + + if attributes.has_key?(:'state') + self.state = attributes[:'state'] + end + + if attributes.has_key?(:'card') + self.card = attributes[:'card'] + end + + if attributes.has_key?(:'metadata') + self.metadata = attributes[:'metadata'] + end + end + + # Show invalid properties with the reasons. Usually used together with valid? + # @return Array for valid properties with the reasons + def list_invalid_properties + invalid_properties = Array.new + invalid_properties + end + + # Check to see if the all the properties in the model are valid + # @return true if the model is valid + def valid? + true + end + + # Checks equality by comparing each attribute. + # @param [Object] Object to be compared + def ==(o) + return true if self.equal?(o) + self.class == o.class && + state == o.state && + card == o.card && + metadata == o.metadata + end + + # @see the `==` method + # @param [Object] Object to be compared + def eql?(o) + self == o + end + + # Calculates hash code according to all attributes. + # @return [Fixnum] Hash code + def hash + [state, card, metadata].hash + end + + # Builds the object from hash + # @param [Hash] attributes Model attributes in the form of hash + # @return [Object] Returns the model itself + def build_from_hash(attributes) + return nil unless attributes.is_a?(Hash) + self.class.swagger_types.each_pair do |key, type| + if type =~ /\AArray<(.*)>/i + # check to ensure the input is an array given that the the attribute + # is documented as an array but the input is not + if attributes[self.class.attribute_map[key]].is_a?(Array) + self.send("#{self.class.json_map[key]}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) + end + elsif !attributes[self.class.attribute_map[key]].nil? + self.send("#{self.class.json_map[key]}=", _deserialize(type, attributes[self.class.attribute_map[key]])) + end # or else data not found in attributes(hash), not an issue as the data can be optional + end + + self + end + + # Deserializes the data based on type + # @param string type Data type + # @param string value Value to be deserialized + # @return [Object] Deserialized data + def _deserialize(type, value) + case type.to_sym + when :DateTime + DateTime.parse(value) + when :Date + Date.parse(value) + when :String + value.to_s + when :Integer + value.to_i + when :Float + value.to_f + when :BOOLEAN + if value.to_s =~ /\A(true|t|yes|y|1)\z/i + true + else + false + end + when :Object + # generic object (usually a Hash), return directly + value + when /\AArray<(?.+)>\z/ + inner_type = Regexp.last_match[:inner_type] + value.map { |v| _deserialize(inner_type, v) } + when /\AHash<(?.+?), (?.+)>\z/ + k_type = Regexp.last_match[:k_type] + v_type = Regexp.last_match[:v_type] + {}.tap do |hash| + value.each do |k, v| + hash[_deserialize(k_type, k)] = _deserialize(v_type, v) + end + end + else # model + temp_model = CyberSource.const_get(type).new + temp_model.build_from_hash(value) + end + end + + # Returns the string representation of the object + # @return [String] String presentation of the object + def to_s + to_hash.to_s + end + + # to_body is an alias to to_hash (backward compatibility) + # @return [Hash] Returns the object in the form of hash + def to_body + to_hash + end + + # Returns the object in the form of hash + # @return [Hash] Returns the object in the form of hash + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + next if value.nil? + hash[param] = _to_hash(value) + end + hash + end + + # Outputs non-array value in the form of hash + # For object, use to_hash. Otherwise, just return the value + # @param [Object] value Any valid value + # @return [Hash] Returns the value in the form of hash + def _to_hash(value) + if value.is_a?(Array) + value.compact.map { |v| _to_hash(v) } + elsif value.is_a?(Hash) + {}.tap do |hash| + value.each { |k, v| hash[k] = _to_hash(v) } + end + elsif value.respond_to? :to_hash + value.to_hash + else + value + end + end + end +end diff --git a/lib/cybersource_rest_client/models/post_payment_instrument_request.rb b/lib/cybersource_rest_client/models/post_payment_instrument_request.rb index 00a82204..2049a482 100644 --- a/lib/cybersource_rest_client/models/post_payment_instrument_request.rb +++ b/lib/cybersource_rest_client/models/post_payment_instrument_request.rb @@ -93,21 +93,21 @@ def self.json_map # Attribute type mapping. def self.swagger_types { - :'_links' => :'Tmsv2customersEmbeddedDefaultPaymentInstrumentLinks', + :'_links' => :'Tmsv2tokenizeTokenInformationCustomerEmbeddedDefaultPaymentInstrumentLinks', :'id' => :'String', :'object' => :'String', :'default' => :'BOOLEAN', :'state' => :'String', :'type' => :'String', - :'bank_account' => :'Tmsv2customersEmbeddedDefaultPaymentInstrumentBankAccount', - :'card' => :'Tmsv2customersEmbeddedDefaultPaymentInstrumentCard', - :'buyer_information' => :'Tmsv2customersEmbeddedDefaultPaymentInstrumentBuyerInformation', - :'bill_to' => :'Tmsv2customersEmbeddedDefaultPaymentInstrumentBillTo', + :'bank_account' => :'Tmsv2tokenizeTokenInformationCustomerEmbeddedDefaultPaymentInstrumentBankAccount', + :'card' => :'Tmsv2tokenizeTokenInformationCustomerEmbeddedDefaultPaymentInstrumentCard', + :'buyer_information' => :'Tmsv2tokenizeTokenInformationCustomerEmbeddedDefaultPaymentInstrumentBuyerInformation', + :'bill_to' => :'Tmsv2tokenizeTokenInformationCustomerEmbeddedDefaultPaymentInstrumentBillTo', :'processing_information' => :'TmsPaymentInstrumentProcessingInfo', - :'merchant_information' => :'Tmsv2customersEmbeddedDefaultPaymentInstrumentMerchantInformation', - :'instrument_identifier' => :'Tmsv2customersEmbeddedDefaultPaymentInstrumentInstrumentIdentifier', - :'metadata' => :'Tmsv2customersEmbeddedDefaultPaymentInstrumentMetadata', - :'_embedded' => :'Tmsv2customersEmbeddedDefaultPaymentInstrumentEmbedded' + :'merchant_information' => :'TmsMerchantInformation', + :'instrument_identifier' => :'Tmsv2tokenizeTokenInformationCustomerEmbeddedDefaultPaymentInstrumentInstrumentIdentifier', + :'metadata' => :'Tmsv2tokenizeTokenInformationCustomerEmbeddedDefaultPaymentInstrumentMetadata', + :'_embedded' => :'Tmsv2tokenizeTokenInformationCustomerEmbeddedDefaultPaymentInstrumentEmbedded' } end diff --git a/lib/cybersource_rest_client/models/post_tokenize_request.rb b/lib/cybersource_rest_client/models/post_tokenize_request.rb new file mode 100644 index 00000000..f5d072b4 --- /dev/null +++ b/lib/cybersource_rest_client/models/post_tokenize_request.rb @@ -0,0 +1,199 @@ +=begin +#CyberSource Merged Spec + +#All CyberSource API specs merged together. These are available at https://developer.cybersource.com/api/reference/api-reference.html + +OpenAPI spec version: 0.0.1 + +Generated by: https://github.com/swagger-api/swagger-codegen.git +Swagger Codegen version: 2.4.38 +=end + +require 'date' + +module CyberSource + class PostTokenizeRequest + attr_accessor :processing_information + + attr_accessor :token_information + + # Attribute mapping from ruby-style variable name to JSON key. + def self.attribute_map + { + :'processing_information' => :'processingInformation', + :'token_information' => :'tokenInformation' + } + end + + # Attribute mapping from JSON key to ruby-style variable name. + def self.json_map + { + :'processing_information' => :'processing_information', + :'token_information' => :'token_information' + } + end + + # Attribute type mapping. + def self.swagger_types + { + :'processing_information' => :'Tmsv2tokenizeProcessingInformation', + :'token_information' => :'Tmsv2tokenizeTokenInformation' + } + end + + # Initializes the object + # @param [Hash] attributes Model attributes in the form of hash + def initialize(attributes = {}) + return unless attributes.is_a?(Hash) + + # convert string to symbol for hash key + attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v } + + if attributes.has_key?(:'processingInformation') + self.processing_information = attributes[:'processingInformation'] + end + + if attributes.has_key?(:'tokenInformation') + self.token_information = attributes[:'tokenInformation'] + end + end + + # Show invalid properties with the reasons. Usually used together with valid? + # @return Array for valid properties with the reasons + def list_invalid_properties + invalid_properties = Array.new + invalid_properties + end + + # Check to see if the all the properties in the model are valid + # @return true if the model is valid + def valid? + true + end + + # Checks equality by comparing each attribute. + # @param [Object] Object to be compared + def ==(o) + return true if self.equal?(o) + self.class == o.class && + processing_information == o.processing_information && + token_information == o.token_information + end + + # @see the `==` method + # @param [Object] Object to be compared + def eql?(o) + self == o + end + + # Calculates hash code according to all attributes. + # @return [Fixnum] Hash code + def hash + [processing_information, token_information].hash + end + + # Builds the object from hash + # @param [Hash] attributes Model attributes in the form of hash + # @return [Object] Returns the model itself + def build_from_hash(attributes) + return nil unless attributes.is_a?(Hash) + self.class.swagger_types.each_pair do |key, type| + if type =~ /\AArray<(.*)>/i + # check to ensure the input is an array given that the the attribute + # is documented as an array but the input is not + if attributes[self.class.attribute_map[key]].is_a?(Array) + self.send("#{self.class.json_map[key]}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) + end + elsif !attributes[self.class.attribute_map[key]].nil? + self.send("#{self.class.json_map[key]}=", _deserialize(type, attributes[self.class.attribute_map[key]])) + end # or else data not found in attributes(hash), not an issue as the data can be optional + end + + self + end + + # Deserializes the data based on type + # @param string type Data type + # @param string value Value to be deserialized + # @return [Object] Deserialized data + def _deserialize(type, value) + case type.to_sym + when :DateTime + DateTime.parse(value) + when :Date + Date.parse(value) + when :String + value.to_s + when :Integer + value.to_i + when :Float + value.to_f + when :BOOLEAN + if value.to_s =~ /\A(true|t|yes|y|1)\z/i + true + else + false + end + when :Object + # generic object (usually a Hash), return directly + value + when /\AArray<(?.+)>\z/ + inner_type = Regexp.last_match[:inner_type] + value.map { |v| _deserialize(inner_type, v) } + when /\AHash<(?.+?), (?.+)>\z/ + k_type = Regexp.last_match[:k_type] + v_type = Regexp.last_match[:v_type] + {}.tap do |hash| + value.each do |k, v| + hash[_deserialize(k_type, k)] = _deserialize(v_type, v) + end + end + else # model + temp_model = CyberSource.const_get(type).new + temp_model.build_from_hash(value) + end + end + + # Returns the string representation of the object + # @return [String] String presentation of the object + def to_s + to_hash.to_s + end + + # to_body is an alias to to_hash (backward compatibility) + # @return [Hash] Returns the object in the form of hash + def to_body + to_hash + end + + # Returns the object in the form of hash + # @return [Hash] Returns the object in the form of hash + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + next if value.nil? + hash[param] = _to_hash(value) + end + hash + end + + # Outputs non-array value in the form of hash + # For object, use to_hash. Otherwise, just return the value + # @param [Object] value Any valid value + # @return [Hash] Returns the value in the form of hash + def _to_hash(value) + if value.is_a?(Array) + value.compact.map { |v| _to_hash(v) } + elsif value.is_a?(Hash) + {}.tap do |hash| + value.each { |k, v| hash[k] = _to_hash(v) } + end + elsif value.respond_to? :to_hash + value.to_hash + else + value + end + end + end +end diff --git a/lib/cybersource_rest_client/models/ptsv2payments_aggregator_information.rb b/lib/cybersource_rest_client/models/ptsv2payments_aggregator_information.rb index 3de38028..5f29727e 100644 --- a/lib/cybersource_rest_client/models/ptsv2payments_aggregator_information.rb +++ b/lib/cybersource_rest_client/models/ptsv2payments_aggregator_information.rb @@ -36,6 +36,9 @@ class Ptsv2paymentsAggregatorInformation # Acquirer country. attr_accessor :country + # Contains transfer service provider name. + attr_accessor :service_providername + # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { @@ -46,7 +49,8 @@ def self.attribute_map :'city' => :'city', :'state' => :'state', :'postal_code' => :'postalCode', - :'country' => :'country' + :'country' => :'country', + :'service_providername' => :'serviceProvidername' } end @@ -60,7 +64,8 @@ def self.json_map :'city' => :'city', :'state' => :'state', :'postal_code' => :'postal_code', - :'country' => :'country' + :'country' => :'country', + :'service_providername' => :'service_providername' } end @@ -74,7 +79,8 @@ def self.swagger_types :'city' => :'String', :'state' => :'String', :'postal_code' => :'String', - :'country' => :'String' + :'country' => :'String', + :'service_providername' => :'String' } end @@ -117,6 +123,10 @@ def initialize(attributes = {}) if attributes.has_key?(:'country') self.country = attributes[:'country'] end + + if attributes.has_key?(:'serviceProvidername') + self.service_providername = attributes[:'serviceProvidername'] + end end # Show invalid properties with the reasons. Usually used together with valid? @@ -174,6 +184,12 @@ def country=(country) @country = country end + # Custom attribute writer method with validation + # @param [Object] service_providername Value to be assigned + def service_providername=(service_providername) + @service_providername = service_providername + end + # Checks equality by comparing each attribute. # @param [Object] Object to be compared def ==(o) @@ -186,7 +202,8 @@ def ==(o) city == o.city && state == o.state && postal_code == o.postal_code && - country == o.country + country == o.country && + service_providername == o.service_providername end # @see the `==` method @@ -198,7 +215,7 @@ def eql?(o) # Calculates hash code according to all attributes. # @return [Fixnum] Hash code def hash - [aggregator_id, name, sub_merchant, street_address, city, state, postal_code, country].hash + [aggregator_id, name, sub_merchant, street_address, city, state, postal_code, country, service_providername].hash end # Builds the object from hash diff --git a/lib/cybersource_rest_client/models/rbsv1plans_client_reference_information.rb b/lib/cybersource_rest_client/models/rbsv1plans_client_reference_information.rb deleted file mode 100644 index 0111c57d..00000000 --- a/lib/cybersource_rest_client/models/rbsv1plans_client_reference_information.rb +++ /dev/null @@ -1,239 +0,0 @@ -=begin -#CyberSource Merged Spec - -#All CyberSource API specs merged together. These are available at https://developer.cybersource.com/api/reference/api-reference.html - -OpenAPI spec version: 0.0.1 - -Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.4.38 -=end - -require 'date' - -module CyberSource - class Rbsv1plansClientReferenceInformation - # Brief description of the order or any comment you wish to add to the order. - attr_accessor :comments - - attr_accessor :partner - - # The name of the Connection Method client (such as Virtual Terminal or SOAP Toolkit API) that the merchant uses to send a transaction request to CyberSource. - attr_accessor :application_name - - # Version of the CyberSource application or integration used for a transaction. - attr_accessor :application_version - - # The entity that is responsible for running the transaction and submitting the processing request to CyberSource. This could be a person, a system, or a connection method. - attr_accessor :application_user - - # Attribute mapping from ruby-style variable name to JSON key. - def self.attribute_map - { - :'comments' => :'comments', - :'partner' => :'partner', - :'application_name' => :'applicationName', - :'application_version' => :'applicationVersion', - :'application_user' => :'applicationUser' - } - end - - # Attribute mapping from JSON key to ruby-style variable name. - def self.json_map - { - :'comments' => :'comments', - :'partner' => :'partner', - :'application_name' => :'application_name', - :'application_version' => :'application_version', - :'application_user' => :'application_user' - } - end - - # Attribute type mapping. - def self.swagger_types - { - :'comments' => :'String', - :'partner' => :'Riskv1decisionsClientReferenceInformationPartner', - :'application_name' => :'String', - :'application_version' => :'String', - :'application_user' => :'String' - } - end - - # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash - def initialize(attributes = {}) - return unless attributes.is_a?(Hash) - - # convert string to symbol for hash key - attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v } - - if attributes.has_key?(:'comments') - self.comments = attributes[:'comments'] - end - - if attributes.has_key?(:'partner') - self.partner = attributes[:'partner'] - end - - if attributes.has_key?(:'applicationName') - self.application_name = attributes[:'applicationName'] - end - - if attributes.has_key?(:'applicationVersion') - self.application_version = attributes[:'applicationVersion'] - end - - if attributes.has_key?(:'applicationUser') - self.application_user = attributes[:'applicationUser'] - end - end - - # Show invalid properties with the reasons. Usually used together with valid? - # @return Array for valid properties with the reasons - def list_invalid_properties - invalid_properties = Array.new - invalid_properties - end - - # Check to see if the all the properties in the model are valid - # @return true if the model is valid - def valid? - true - end - - # Custom attribute writer method with validation - # @param [Object] comments Value to be assigned - def comments=(comments) - @comments = comments - end - - # Checks equality by comparing each attribute. - # @param [Object] Object to be compared - def ==(o) - return true if self.equal?(o) - self.class == o.class && - comments == o.comments && - partner == o.partner && - application_name == o.application_name && - application_version == o.application_version && - application_user == o.application_user - end - - # @see the `==` method - # @param [Object] Object to be compared - def eql?(o) - self == o - end - - # Calculates hash code according to all attributes. - # @return [Fixnum] Hash code - def hash - [comments, partner, application_name, application_version, application_user].hash - end - - # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash - # @return [Object] Returns the model itself - def build_from_hash(attributes) - return nil unless attributes.is_a?(Hash) - self.class.swagger_types.each_pair do |key, type| - if type =~ /\AArray<(.*)>/i - # check to ensure the input is an array given that the the attribute - # is documented as an array but the input is not - if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{self.class.json_map[key]}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) - end - elsif !attributes[self.class.attribute_map[key]].nil? - self.send("#{self.class.json_map[key]}=", _deserialize(type, attributes[self.class.attribute_map[key]])) - end # or else data not found in attributes(hash), not an issue as the data can be optional - end - - self - end - - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def _deserialize(type, value) - case type.to_sym - when :DateTime - DateTime.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :BOOLEAN - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - temp_model = CyberSource.const_get(type).new - temp_model.build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - - # Returns the object in the form of hash - # @return [Hash] Returns the object in the form of hash - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - next if value.nil? - hash[param] = _to_hash(value) - end - hash - end - - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end -end diff --git a/lib/cybersource_rest_client/models/rbsv1subscriptions_client_reference_information.rb b/lib/cybersource_rest_client/models/rbsv1subscriptions_client_reference_information.rb deleted file mode 100644 index 5acee206..00000000 --- a/lib/cybersource_rest_client/models/rbsv1subscriptions_client_reference_information.rb +++ /dev/null @@ -1,256 +0,0 @@ -=begin -#CyberSource Merged Spec - -#All CyberSource API specs merged together. These are available at https://developer.cybersource.com/api/reference/api-reference.html - -OpenAPI spec version: 0.0.1 - -Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.4.38 -=end - -require 'date' - -module CyberSource - class Rbsv1subscriptionsClientReferenceInformation - # > Deprecated: This field is ignored. Merchant-generated order reference or tracking number. It is recommended that you send a unique value for each transaction so that you can perform meaningful searches for the transaction. #### Used by **Authorization** Required field. #### PIN Debit Requests for PIN debit reversals need to use the same merchant reference number that was used in the transaction that is being reversed. Required field for all PIN Debit requests (purchase, credit, and reversal). #### FDC Nashville Global Certain circumstances can cause the processor to truncate this value to 15 or 17 characters for Level II and Level III processing, which can cause a discrepancy between the value you submit and the value included in some processor reports. - attr_accessor :code - - # > Deprecated: This field is ignored. Brief description of the order or any comment you wish to add to the order. - attr_accessor :comments - - attr_accessor :partner - - # > Deprecated: This field is ignored. The name of the Connection Method client (such as Virtual Terminal or SOAP Toolkit API) that the merchant uses to send a transaction request to CyberSource. - attr_accessor :application_name - - # > Deprecated: This field is ignored. Version of the CyberSource application or integration used for a transaction. - attr_accessor :application_version - - # > Deprecated: This field is ignored. The entity that is responsible for running the transaction and submitting the processing request to CyberSource. This could be a person, a system, or a connection method. - attr_accessor :application_user - - # Attribute mapping from ruby-style variable name to JSON key. - def self.attribute_map - { - :'code' => :'code', - :'comments' => :'comments', - :'partner' => :'partner', - :'application_name' => :'applicationName', - :'application_version' => :'applicationVersion', - :'application_user' => :'applicationUser' - } - end - - # Attribute mapping from JSON key to ruby-style variable name. - def self.json_map - { - :'code' => :'code', - :'comments' => :'comments', - :'partner' => :'partner', - :'application_name' => :'application_name', - :'application_version' => :'application_version', - :'application_user' => :'application_user' - } - end - - # Attribute type mapping. - def self.swagger_types - { - :'code' => :'String', - :'comments' => :'String', - :'partner' => :'Rbsv1subscriptionsClientReferenceInformationPartner', - :'application_name' => :'String', - :'application_version' => :'String', - :'application_user' => :'String' - } - end - - # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash - def initialize(attributes = {}) - return unless attributes.is_a?(Hash) - - # convert string to symbol for hash key - attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v } - - if attributes.has_key?(:'code') - self.code = attributes[:'code'] - end - - if attributes.has_key?(:'comments') - self.comments = attributes[:'comments'] - end - - if attributes.has_key?(:'partner') - self.partner = attributes[:'partner'] - end - - if attributes.has_key?(:'applicationName') - self.application_name = attributes[:'applicationName'] - end - - if attributes.has_key?(:'applicationVersion') - self.application_version = attributes[:'applicationVersion'] - end - - if attributes.has_key?(:'applicationUser') - self.application_user = attributes[:'applicationUser'] - end - end - - # Show invalid properties with the reasons. Usually used together with valid? - # @return Array for valid properties with the reasons - def list_invalid_properties - invalid_properties = Array.new - invalid_properties - end - - # Check to see if the all the properties in the model are valid - # @return true if the model is valid - def valid? - true - end - - # Custom attribute writer method with validation - # @param [Object] code Value to be assigned - def code=(code) - @code = code - end - - # Custom attribute writer method with validation - # @param [Object] comments Value to be assigned - def comments=(comments) - @comments = comments - end - - # Checks equality by comparing each attribute. - # @param [Object] Object to be compared - def ==(o) - return true if self.equal?(o) - self.class == o.class && - code == o.code && - comments == o.comments && - partner == o.partner && - application_name == o.application_name && - application_version == o.application_version && - application_user == o.application_user - end - - # @see the `==` method - # @param [Object] Object to be compared - def eql?(o) - self == o - end - - # Calculates hash code according to all attributes. - # @return [Fixnum] Hash code - def hash - [code, comments, partner, application_name, application_version, application_user].hash - end - - # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash - # @return [Object] Returns the model itself - def build_from_hash(attributes) - return nil unless attributes.is_a?(Hash) - self.class.swagger_types.each_pair do |key, type| - if type =~ /\AArray<(.*)>/i - # check to ensure the input is an array given that the the attribute - # is documented as an array but the input is not - if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{self.class.json_map[key]}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) - end - elsif !attributes[self.class.attribute_map[key]].nil? - self.send("#{self.class.json_map[key]}=", _deserialize(type, attributes[self.class.attribute_map[key]])) - end # or else data not found in attributes(hash), not an issue as the data can be optional - end - - self - end - - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def _deserialize(type, value) - case type.to_sym - when :DateTime - DateTime.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :BOOLEAN - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - temp_model = CyberSource.const_get(type).new - temp_model.build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - - # Returns the object in the form of hash - # @return [Hash] Returns the object in the form of hash - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - next if value.nil? - hash[param] = _to_hash(value) - end - hash - end - - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end -end diff --git a/lib/cybersource_rest_client/models/shipping_address_list_for_customer__embedded.rb b/lib/cybersource_rest_client/models/shipping_address_list_for_customer__embedded.rb index 294418a5..a83ed0f1 100644 --- a/lib/cybersource_rest_client/models/shipping_address_list_for_customer__embedded.rb +++ b/lib/cybersource_rest_client/models/shipping_address_list_for_customer__embedded.rb @@ -33,7 +33,7 @@ def self.json_map # Attribute type mapping. def self.swagger_types { - :'shipping_addresses' => :'Array' + :'shipping_addresses' => :'Array' } end diff --git a/lib/cybersource_rest_client/models/tms_issuerlifecycleeventsimulations_metadata_card_art_combined_asset.rb b/lib/cybersource_rest_client/models/tms_issuerlifecycleeventsimulations_metadata_card_art_combined_asset.rb new file mode 100644 index 00000000..299d1a7d --- /dev/null +++ b/lib/cybersource_rest_client/models/tms_issuerlifecycleeventsimulations_metadata_card_art_combined_asset.rb @@ -0,0 +1,190 @@ +=begin +#CyberSource Merged Spec + +#All CyberSource API specs merged together. These are available at https://developer.cybersource.com/api/reference/api-reference.html + +OpenAPI spec version: 0.0.1 + +Generated by: https://github.com/swagger-api/swagger-codegen.git +Swagger Codegen version: 2.4.38 +=end + +require 'date' + +module CyberSource + class Tmsv2tokenizedcardstokenizedCardIdissuerlifecycleeventsimulationsMetadataCardArtCombinedAsset + # Set to \"true\" to simulate an update to the combined card art asset associated with the Tokenized Card. + attr_accessor :update + + # Attribute mapping from ruby-style variable name to JSON key. + def self.attribute_map + { + :'update' => :'update' + } + end + + # Attribute mapping from JSON key to ruby-style variable name. + def self.json_map + { + :'update' => :'update' + } + end + + # Attribute type mapping. + def self.swagger_types + { + :'update' => :'String' + } + end + + # Initializes the object + # @param [Hash] attributes Model attributes in the form of hash + def initialize(attributes = {}) + return unless attributes.is_a?(Hash) + + # convert string to symbol for hash key + attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v } + + if attributes.has_key?(:'update') + self.update = attributes[:'update'] + end + end + + # Show invalid properties with the reasons. Usually used together with valid? + # @return Array for valid properties with the reasons + def list_invalid_properties + invalid_properties = Array.new + invalid_properties + end + + # Check to see if the all the properties in the model are valid + # @return true if the model is valid + def valid? + true + end + + # Checks equality by comparing each attribute. + # @param [Object] Object to be compared + def ==(o) + return true if self.equal?(o) + self.class == o.class && + update == o.update + end + + # @see the `==` method + # @param [Object] Object to be compared + def eql?(o) + self == o + end + + # Calculates hash code according to all attributes. + # @return [Fixnum] Hash code + def hash + [update].hash + end + + # Builds the object from hash + # @param [Hash] attributes Model attributes in the form of hash + # @return [Object] Returns the model itself + def build_from_hash(attributes) + return nil unless attributes.is_a?(Hash) + self.class.swagger_types.each_pair do |key, type| + if type =~ /\AArray<(.*)>/i + # check to ensure the input is an array given that the the attribute + # is documented as an array but the input is not + if attributes[self.class.attribute_map[key]].is_a?(Array) + self.send("#{self.class.json_map[key]}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) + end + elsif !attributes[self.class.attribute_map[key]].nil? + self.send("#{self.class.json_map[key]}=", _deserialize(type, attributes[self.class.attribute_map[key]])) + end # or else data not found in attributes(hash), not an issue as the data can be optional + end + + self + end + + # Deserializes the data based on type + # @param string type Data type + # @param string value Value to be deserialized + # @return [Object] Deserialized data + def _deserialize(type, value) + case type.to_sym + when :DateTime + DateTime.parse(value) + when :Date + Date.parse(value) + when :String + value.to_s + when :Integer + value.to_i + when :Float + value.to_f + when :BOOLEAN + if value.to_s =~ /\A(true|t|yes|y|1)\z/i + true + else + false + end + when :Object + # generic object (usually a Hash), return directly + value + when /\AArray<(?.+)>\z/ + inner_type = Regexp.last_match[:inner_type] + value.map { |v| _deserialize(inner_type, v) } + when /\AHash<(?.+?), (?.+)>\z/ + k_type = Regexp.last_match[:k_type] + v_type = Regexp.last_match[:v_type] + {}.tap do |hash| + value.each do |k, v| + hash[_deserialize(k_type, k)] = _deserialize(v_type, v) + end + end + else # model + temp_model = CyberSource.const_get(type).new + temp_model.build_from_hash(value) + end + end + + # Returns the string representation of the object + # @return [String] String presentation of the object + def to_s + to_hash.to_s + end + + # to_body is an alias to to_hash (backward compatibility) + # @return [Hash] Returns the object in the form of hash + def to_body + to_hash + end + + # Returns the object in the form of hash + # @return [Hash] Returns the object in the form of hash + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + next if value.nil? + hash[param] = _to_hash(value) + end + hash + end + + # Outputs non-array value in the form of hash + # For object, use to_hash. Otherwise, just return the value + # @param [Object] value Any valid value + # @return [Hash] Returns the value in the form of hash + def _to_hash(value) + if value.is_a?(Array) + value.compact.map { |v| _to_hash(v) } + elsif value.is_a?(Hash) + {}.tap do |hash| + value.each { |k, v| hash[k] = _to_hash(v) } + end + elsif value.respond_to? :to_hash + value.to_hash + else + value + end + end + end +end diff --git a/lib/cybersource_rest_client/models/tmsv2customers__embedded_default_payment_instrument_merchant_information.rb b/lib/cybersource_rest_client/models/tms_merchant_information.rb similarity index 96% rename from lib/cybersource_rest_client/models/tmsv2customers__embedded_default_payment_instrument_merchant_information.rb rename to lib/cybersource_rest_client/models/tms_merchant_information.rb index 3bc3b3e4..e0bb63f3 100644 --- a/lib/cybersource_rest_client/models/tmsv2customers__embedded_default_payment_instrument_merchant_information.rb +++ b/lib/cybersource_rest_client/models/tms_merchant_information.rb @@ -12,7 +12,7 @@ require 'date' module CyberSource - class Tmsv2customersEmbeddedDefaultPaymentInstrumentMerchantInformation + class TmsMerchantInformation attr_accessor :merchant_descriptor # Attribute mapping from ruby-style variable name to JSON key. @@ -32,7 +32,7 @@ def self.json_map # Attribute type mapping. def self.swagger_types { - :'merchant_descriptor' => :'Tmsv2customersEmbeddedDefaultPaymentInstrumentMerchantInformationMerchantDescriptor' + :'merchant_descriptor' => :'TmsMerchantInformationMerchantDescriptor' } end diff --git a/lib/cybersource_rest_client/models/tmsv2customers__embedded_default_payment_instrument_merchant_information_merchant_descriptor.rb b/lib/cybersource_rest_client/models/tms_merchant_information_merchant_descriptor.rb similarity index 98% rename from lib/cybersource_rest_client/models/tmsv2customers__embedded_default_payment_instrument_merchant_information_merchant_descriptor.rb rename to lib/cybersource_rest_client/models/tms_merchant_information_merchant_descriptor.rb index 10711953..4a2a1652 100644 --- a/lib/cybersource_rest_client/models/tmsv2customers__embedded_default_payment_instrument_merchant_information_merchant_descriptor.rb +++ b/lib/cybersource_rest_client/models/tms_merchant_information_merchant_descriptor.rb @@ -12,7 +12,7 @@ require 'date' module CyberSource - class Tmsv2customersEmbeddedDefaultPaymentInstrumentMerchantInformationMerchantDescriptor + class TmsMerchantInformationMerchantDescriptor # Alternate contact information for your business,such as an email address or URL. This value might be displayed on the cardholder's statement. When you do not include this value in your capture or credit request, the merchant URL from your CyberSource account is used. Important This value must consist of English characters attr_accessor :alternate_name diff --git a/lib/cybersource_rest_client/models/tmsv2tokenize_processing_information.rb b/lib/cybersource_rest_client/models/tmsv2tokenize_processing_information.rb new file mode 100644 index 00000000..f60d0f8f --- /dev/null +++ b/lib/cybersource_rest_client/models/tmsv2tokenize_processing_information.rb @@ -0,0 +1,205 @@ +=begin +#CyberSource Merged Spec + +#All CyberSource API specs merged together. These are available at https://developer.cybersource.com/api/reference/api-reference.html + +OpenAPI spec version: 0.0.1 + +Generated by: https://github.com/swagger-api/swagger-codegen.git +Swagger Codegen version: 2.4.38 +=end + +require 'date' + +module CyberSource + class Tmsv2tokenizeProcessingInformation + # Array of actions (one or more) to be included in the tokenize request. Possible Values: - `TOKEN_CREATE`: Use this when you want to create a token from the card/bank data in your tokenize request. + attr_accessor :action_list + + # TMS tokens types you want to perform the action on. Possible Values: - customer - paymentInstrument - instrumentIdentifier - shippingAddress - tokenizedCard + attr_accessor :action_token_types + + # Attribute mapping from ruby-style variable name to JSON key. + def self.attribute_map + { + :'action_list' => :'actionList', + :'action_token_types' => :'actionTokenTypes' + } + end + + # Attribute mapping from JSON key to ruby-style variable name. + def self.json_map + { + :'action_list' => :'action_list', + :'action_token_types' => :'action_token_types' + } + end + + # Attribute type mapping. + def self.swagger_types + { + :'action_list' => :'Array', + :'action_token_types' => :'Array' + } + end + + # Initializes the object + # @param [Hash] attributes Model attributes in the form of hash + def initialize(attributes = {}) + return unless attributes.is_a?(Hash) + + # convert string to symbol for hash key + attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v } + + if attributes.has_key?(:'actionList') + if (value = attributes[:'actionList']).is_a?(Array) + self.action_list = value + end + end + + if attributes.has_key?(:'actionTokenTypes') + if (value = attributes[:'actionTokenTypes']).is_a?(Array) + self.action_token_types = value + end + end + end + + # Show invalid properties with the reasons. Usually used together with valid? + # @return Array for valid properties with the reasons + def list_invalid_properties + invalid_properties = Array.new + invalid_properties + end + + # Check to see if the all the properties in the model are valid + # @return true if the model is valid + def valid? + true + end + + # Checks equality by comparing each attribute. + # @param [Object] Object to be compared + def ==(o) + return true if self.equal?(o) + self.class == o.class && + action_list == o.action_list && + action_token_types == o.action_token_types + end + + # @see the `==` method + # @param [Object] Object to be compared + def eql?(o) + self == o + end + + # Calculates hash code according to all attributes. + # @return [Fixnum] Hash code + def hash + [action_list, action_token_types].hash + end + + # Builds the object from hash + # @param [Hash] attributes Model attributes in the form of hash + # @return [Object] Returns the model itself + def build_from_hash(attributes) + return nil unless attributes.is_a?(Hash) + self.class.swagger_types.each_pair do |key, type| + if type =~ /\AArray<(.*)>/i + # check to ensure the input is an array given that the the attribute + # is documented as an array but the input is not + if attributes[self.class.attribute_map[key]].is_a?(Array) + self.send("#{self.class.json_map[key]}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) + end + elsif !attributes[self.class.attribute_map[key]].nil? + self.send("#{self.class.json_map[key]}=", _deserialize(type, attributes[self.class.attribute_map[key]])) + end # or else data not found in attributes(hash), not an issue as the data can be optional + end + + self + end + + # Deserializes the data based on type + # @param string type Data type + # @param string value Value to be deserialized + # @return [Object] Deserialized data + def _deserialize(type, value) + case type.to_sym + when :DateTime + DateTime.parse(value) + when :Date + Date.parse(value) + when :String + value.to_s + when :Integer + value.to_i + when :Float + value.to_f + when :BOOLEAN + if value.to_s =~ /\A(true|t|yes|y|1)\z/i + true + else + false + end + when :Object + # generic object (usually a Hash), return directly + value + when /\AArray<(?.+)>\z/ + inner_type = Regexp.last_match[:inner_type] + value.map { |v| _deserialize(inner_type, v) } + when /\AHash<(?.+?), (?.+)>\z/ + k_type = Regexp.last_match[:k_type] + v_type = Regexp.last_match[:v_type] + {}.tap do |hash| + value.each do |k, v| + hash[_deserialize(k_type, k)] = _deserialize(v_type, v) + end + end + else # model + temp_model = CyberSource.const_get(type).new + temp_model.build_from_hash(value) + end + end + + # Returns the string representation of the object + # @return [String] String presentation of the object + def to_s + to_hash.to_s + end + + # to_body is an alias to to_hash (backward compatibility) + # @return [Hash] Returns the object in the form of hash + def to_body + to_hash + end + + # Returns the object in the form of hash + # @return [Hash] Returns the object in the form of hash + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + next if value.nil? + hash[param] = _to_hash(value) + end + hash + end + + # Outputs non-array value in the form of hash + # For object, use to_hash. Otherwise, just return the value + # @param [Object] value Any valid value + # @return [Hash] Returns the value in the form of hash + def _to_hash(value) + if value.is_a?(Array) + value.compact.map { |v| _to_hash(v) } + elsif value.is_a?(Hash) + {}.tap do |hash| + value.each { |k, v| hash[k] = _to_hash(v) } + end + elsif value.respond_to? :to_hash + value.to_hash + else + value + end + end + end +end diff --git a/lib/cybersource_rest_client/models/tmsv2tokenize_token_information.rb b/lib/cybersource_rest_client/models/tmsv2tokenize_token_information.rb new file mode 100644 index 00000000..a8155d1d --- /dev/null +++ b/lib/cybersource_rest_client/models/tmsv2tokenize_token_information.rb @@ -0,0 +1,247 @@ +=begin +#CyberSource Merged Spec + +#All CyberSource API specs merged together. These are available at https://developer.cybersource.com/api/reference/api-reference.html + +OpenAPI spec version: 0.0.1 + +Generated by: https://github.com/swagger-api/swagger-codegen.git +Swagger Codegen version: 2.4.38 +=end + +require 'date' + +module CyberSource + class Tmsv2tokenizeTokenInformation + # TMS Transient Token, 64 hexadecimal id value representing captured payment credentials (including Sensitive Authentication Data, e.g. CVV). + attr_accessor :jti + + # Flex API Transient Token encoded as JWT (JSON Web Token), e.g. Flex microform or Unified Payment checkout result. + attr_accessor :transient_token_jwt + + attr_accessor :customer + + attr_accessor :shipping_address + + attr_accessor :payment_instrument + + attr_accessor :instrument_identifier + + # Attribute mapping from ruby-style variable name to JSON key. + def self.attribute_map + { + :'jti' => :'jti', + :'transient_token_jwt' => :'transientTokenJwt', + :'customer' => :'customer', + :'shipping_address' => :'shippingAddress', + :'payment_instrument' => :'paymentInstrument', + :'instrument_identifier' => :'instrumentIdentifier' + } + end + + # Attribute mapping from JSON key to ruby-style variable name. + def self.json_map + { + :'jti' => :'jti', + :'transient_token_jwt' => :'transient_token_jwt', + :'customer' => :'customer', + :'shipping_address' => :'shipping_address', + :'payment_instrument' => :'payment_instrument', + :'instrument_identifier' => :'instrument_identifier' + } + end + + # Attribute type mapping. + def self.swagger_types + { + :'jti' => :'String', + :'transient_token_jwt' => :'String', + :'customer' => :'Tmsv2tokenizeTokenInformationCustomer', + :'shipping_address' => :'Tmsv2tokenizeTokenInformationCustomerEmbeddedDefaultShippingAddress', + :'payment_instrument' => :'Tmsv2tokenizeTokenInformationCustomerEmbeddedDefaultPaymentInstrument', + :'instrument_identifier' => :'TmsEmbeddedInstrumentIdentifier' + } + end + + # Initializes the object + # @param [Hash] attributes Model attributes in the form of hash + def initialize(attributes = {}) + return unless attributes.is_a?(Hash) + + # convert string to symbol for hash key + attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v } + + if attributes.has_key?(:'jti') + self.jti = attributes[:'jti'] + end + + if attributes.has_key?(:'transientTokenJwt') + self.transient_token_jwt = attributes[:'transientTokenJwt'] + end + + if attributes.has_key?(:'customer') + self.customer = attributes[:'customer'] + end + + if attributes.has_key?(:'shippingAddress') + self.shipping_address = attributes[:'shippingAddress'] + end + + if attributes.has_key?(:'paymentInstrument') + self.payment_instrument = attributes[:'paymentInstrument'] + end + + if attributes.has_key?(:'instrumentIdentifier') + self.instrument_identifier = attributes[:'instrumentIdentifier'] + end + end + + # Show invalid properties with the reasons. Usually used together with valid? + # @return Array for valid properties with the reasons + def list_invalid_properties + invalid_properties = Array.new + invalid_properties + end + + # Check to see if the all the properties in the model are valid + # @return true if the model is valid + def valid? + true + end + + # Custom attribute writer method with validation + # @param [Object] jti Value to be assigned + def jti=(jti) + @jti = jti + end + + # Checks equality by comparing each attribute. + # @param [Object] Object to be compared + def ==(o) + return true if self.equal?(o) + self.class == o.class && + jti == o.jti && + transient_token_jwt == o.transient_token_jwt && + customer == o.customer && + shipping_address == o.shipping_address && + payment_instrument == o.payment_instrument && + instrument_identifier == o.instrument_identifier + end + + # @see the `==` method + # @param [Object] Object to be compared + def eql?(o) + self == o + end + + # Calculates hash code according to all attributes. + # @return [Fixnum] Hash code + def hash + [jti, transient_token_jwt, customer, shipping_address, payment_instrument, instrument_identifier].hash + end + + # Builds the object from hash + # @param [Hash] attributes Model attributes in the form of hash + # @return [Object] Returns the model itself + def build_from_hash(attributes) + return nil unless attributes.is_a?(Hash) + self.class.swagger_types.each_pair do |key, type| + if type =~ /\AArray<(.*)>/i + # check to ensure the input is an array given that the the attribute + # is documented as an array but the input is not + if attributes[self.class.attribute_map[key]].is_a?(Array) + self.send("#{self.class.json_map[key]}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) + end + elsif !attributes[self.class.attribute_map[key]].nil? + self.send("#{self.class.json_map[key]}=", _deserialize(type, attributes[self.class.attribute_map[key]])) + end # or else data not found in attributes(hash), not an issue as the data can be optional + end + + self + end + + # Deserializes the data based on type + # @param string type Data type + # @param string value Value to be deserialized + # @return [Object] Deserialized data + def _deserialize(type, value) + case type.to_sym + when :DateTime + DateTime.parse(value) + when :Date + Date.parse(value) + when :String + value.to_s + when :Integer + value.to_i + when :Float + value.to_f + when :BOOLEAN + if value.to_s =~ /\A(true|t|yes|y|1)\z/i + true + else + false + end + when :Object + # generic object (usually a Hash), return directly + value + when /\AArray<(?.+)>\z/ + inner_type = Regexp.last_match[:inner_type] + value.map { |v| _deserialize(inner_type, v) } + when /\AHash<(?.+?), (?.+)>\z/ + k_type = Regexp.last_match[:k_type] + v_type = Regexp.last_match[:v_type] + {}.tap do |hash| + value.each do |k, v| + hash[_deserialize(k_type, k)] = _deserialize(v_type, v) + end + end + else # model + temp_model = CyberSource.const_get(type).new + temp_model.build_from_hash(value) + end + end + + # Returns the string representation of the object + # @return [String] String presentation of the object + def to_s + to_hash.to_s + end + + # to_body is an alias to to_hash (backward compatibility) + # @return [Hash] Returns the object in the form of hash + def to_body + to_hash + end + + # Returns the object in the form of hash + # @return [Hash] Returns the object in the form of hash + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + next if value.nil? + hash[param] = _to_hash(value) + end + hash + end + + # Outputs non-array value in the form of hash + # For object, use to_hash. Otherwise, just return the value + # @param [Object] value Any valid value + # @return [Hash] Returns the value in the form of hash + def _to_hash(value) + if value.is_a?(Array) + value.compact.map { |v| _to_hash(v) } + elsif value.is_a?(Hash) + {}.tap do |hash| + value.each { |k, v| hash[k] = _to_hash(v) } + end + elsif value.respond_to? :to_hash + value.to_hash + else + value + end + end + end +end diff --git a/lib/cybersource_rest_client/models/tmsv2tokenize_token_information_customer.rb b/lib/cybersource_rest_client/models/tmsv2tokenize_token_information_customer.rb new file mode 100644 index 00000000..00a54291 --- /dev/null +++ b/lib/cybersource_rest_client/models/tmsv2tokenize_token_information_customer.rb @@ -0,0 +1,289 @@ +=begin +#CyberSource Merged Spec + +#All CyberSource API specs merged together. These are available at https://developer.cybersource.com/api/reference/api-reference.html + +OpenAPI spec version: 0.0.1 + +Generated by: https://github.com/swagger-api/swagger-codegen.git +Swagger Codegen version: 2.4.38 +=end + +require 'date' + +module CyberSource + class Tmsv2tokenizeTokenInformationCustomer + attr_accessor :_links + + # The Id of the Customer Token. + attr_accessor :id + + attr_accessor :object_information + + attr_accessor :buyer_information + + attr_accessor :client_reference_information + + # Object containing the custom data that the merchant defines. + attr_accessor :merchant_defined_information + + attr_accessor :default_payment_instrument + + attr_accessor :default_shipping_address + + attr_accessor :metadata + + attr_accessor :_embedded + + # Attribute mapping from ruby-style variable name to JSON key. + def self.attribute_map + { + :'_links' => :'_links', + :'id' => :'id', + :'object_information' => :'objectInformation', + :'buyer_information' => :'buyerInformation', + :'client_reference_information' => :'clientReferenceInformation', + :'merchant_defined_information' => :'merchantDefinedInformation', + :'default_payment_instrument' => :'defaultPaymentInstrument', + :'default_shipping_address' => :'defaultShippingAddress', + :'metadata' => :'metadata', + :'_embedded' => :'_embedded' + } + end + + # Attribute mapping from JSON key to ruby-style variable name. + def self.json_map + { + :'_links' => :'_links', + :'id' => :'id', + :'object_information' => :'object_information', + :'buyer_information' => :'buyer_information', + :'client_reference_information' => :'client_reference_information', + :'merchant_defined_information' => :'merchant_defined_information', + :'default_payment_instrument' => :'default_payment_instrument', + :'default_shipping_address' => :'default_shipping_address', + :'metadata' => :'metadata', + :'_embedded' => :'_embedded' + } + end + + # Attribute type mapping. + def self.swagger_types + { + :'_links' => :'Tmsv2tokenizeTokenInformationCustomerLinks', + :'id' => :'String', + :'object_information' => :'Tmsv2tokenizeTokenInformationCustomerObjectInformation', + :'buyer_information' => :'Tmsv2tokenizeTokenInformationCustomerBuyerInformation', + :'client_reference_information' => :'Tmsv2tokenizeTokenInformationCustomerClientReferenceInformation', + :'merchant_defined_information' => :'Array', + :'default_payment_instrument' => :'Tmsv2tokenizeTokenInformationCustomerDefaultPaymentInstrument', + :'default_shipping_address' => :'Tmsv2tokenizeTokenInformationCustomerDefaultShippingAddress', + :'metadata' => :'Tmsv2tokenizeTokenInformationCustomerMetadata', + :'_embedded' => :'Tmsv2tokenizeTokenInformationCustomerEmbedded' + } + end + + # Initializes the object + # @param [Hash] attributes Model attributes in the form of hash + def initialize(attributes = {}) + return unless attributes.is_a?(Hash) + + # convert string to symbol for hash key + attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v } + + if attributes.has_key?(:'_links') + self._links = attributes[:'_links'] + end + + if attributes.has_key?(:'id') + self.id = attributes[:'id'] + end + + if attributes.has_key?(:'objectInformation') + self.object_information = attributes[:'objectInformation'] + end + + if attributes.has_key?(:'buyerInformation') + self.buyer_information = attributes[:'buyerInformation'] + end + + if attributes.has_key?(:'clientReferenceInformation') + self.client_reference_information = attributes[:'clientReferenceInformation'] + end + + if attributes.has_key?(:'merchantDefinedInformation') + if (value = attributes[:'merchantDefinedInformation']).is_a?(Array) + self.merchant_defined_information = value + end + end + + if attributes.has_key?(:'defaultPaymentInstrument') + self.default_payment_instrument = attributes[:'defaultPaymentInstrument'] + end + + if attributes.has_key?(:'defaultShippingAddress') + self.default_shipping_address = attributes[:'defaultShippingAddress'] + end + + if attributes.has_key?(:'metadata') + self.metadata = attributes[:'metadata'] + end + + if attributes.has_key?(:'_embedded') + self._embedded = attributes[:'_embedded'] + end + end + + # Show invalid properties with the reasons. Usually used together with valid? + # @return Array for valid properties with the reasons + def list_invalid_properties + invalid_properties = Array.new + invalid_properties + end + + # Check to see if the all the properties in the model are valid + # @return true if the model is valid + def valid? + true + end + + # Custom attribute writer method with validation + # @param [Object] id Value to be assigned + def id=(id) + @id = id + end + + # Checks equality by comparing each attribute. + # @param [Object] Object to be compared + def ==(o) + return true if self.equal?(o) + self.class == o.class && + _links == o._links && + id == o.id && + object_information == o.object_information && + buyer_information == o.buyer_information && + client_reference_information == o.client_reference_information && + merchant_defined_information == o.merchant_defined_information && + default_payment_instrument == o.default_payment_instrument && + default_shipping_address == o.default_shipping_address && + metadata == o.metadata && + _embedded == o._embedded + end + + # @see the `==` method + # @param [Object] Object to be compared + def eql?(o) + self == o + end + + # Calculates hash code according to all attributes. + # @return [Fixnum] Hash code + def hash + [_links, id, object_information, buyer_information, client_reference_information, merchant_defined_information, default_payment_instrument, default_shipping_address, metadata, _embedded].hash + end + + # Builds the object from hash + # @param [Hash] attributes Model attributes in the form of hash + # @return [Object] Returns the model itself + def build_from_hash(attributes) + return nil unless attributes.is_a?(Hash) + self.class.swagger_types.each_pair do |key, type| + if type =~ /\AArray<(.*)>/i + # check to ensure the input is an array given that the the attribute + # is documented as an array but the input is not + if attributes[self.class.attribute_map[key]].is_a?(Array) + self.send("#{self.class.json_map[key]}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) + end + elsif !attributes[self.class.attribute_map[key]].nil? + self.send("#{self.class.json_map[key]}=", _deserialize(type, attributes[self.class.attribute_map[key]])) + end # or else data not found in attributes(hash), not an issue as the data can be optional + end + + self + end + + # Deserializes the data based on type + # @param string type Data type + # @param string value Value to be deserialized + # @return [Object] Deserialized data + def _deserialize(type, value) + case type.to_sym + when :DateTime + DateTime.parse(value) + when :Date + Date.parse(value) + when :String + value.to_s + when :Integer + value.to_i + when :Float + value.to_f + when :BOOLEAN + if value.to_s =~ /\A(true|t|yes|y|1)\z/i + true + else + false + end + when :Object + # generic object (usually a Hash), return directly + value + when /\AArray<(?.+)>\z/ + inner_type = Regexp.last_match[:inner_type] + value.map { |v| _deserialize(inner_type, v) } + when /\AHash<(?.+?), (?.+)>\z/ + k_type = Regexp.last_match[:k_type] + v_type = Regexp.last_match[:v_type] + {}.tap do |hash| + value.each do |k, v| + hash[_deserialize(k_type, k)] = _deserialize(v_type, v) + end + end + else # model + temp_model = CyberSource.const_get(type).new + temp_model.build_from_hash(value) + end + end + + # Returns the string representation of the object + # @return [String] String presentation of the object + def to_s + to_hash.to_s + end + + # to_body is an alias to to_hash (backward compatibility) + # @return [Hash] Returns the object in the form of hash + def to_body + to_hash + end + + # Returns the object in the form of hash + # @return [Hash] Returns the object in the form of hash + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + next if value.nil? + hash[param] = _to_hash(value) + end + hash + end + + # Outputs non-array value in the form of hash + # For object, use to_hash. Otherwise, just return the value + # @param [Object] value Any valid value + # @return [Hash] Returns the value in the form of hash + def _to_hash(value) + if value.is_a?(Array) + value.compact.map { |v| _to_hash(v) } + elsif value.is_a?(Hash) + {}.tap do |hash| + value.each { |k, v| hash[k] = _to_hash(v) } + end + elsif value.respond_to? :to_hash + value.to_hash + else + value + end + end + end +end diff --git a/lib/cybersource_rest_client/models/tmsv2customers__embedded.rb b/lib/cybersource_rest_client/models/tmsv2tokenize_token_information_customer__embedded.rb similarity index 95% rename from lib/cybersource_rest_client/models/tmsv2customers__embedded.rb rename to lib/cybersource_rest_client/models/tmsv2tokenize_token_information_customer__embedded.rb index f69367bf..15803ef4 100644 --- a/lib/cybersource_rest_client/models/tmsv2customers__embedded.rb +++ b/lib/cybersource_rest_client/models/tmsv2tokenize_token_information_customer__embedded.rb @@ -13,7 +13,7 @@ module CyberSource # Additional resources for the Customer. - class Tmsv2customersEmbedded + class Tmsv2tokenizeTokenInformationCustomerEmbedded attr_accessor :default_payment_instrument attr_accessor :default_shipping_address @@ -37,8 +37,8 @@ def self.json_map # Attribute type mapping. def self.swagger_types { - :'default_payment_instrument' => :'Tmsv2customersEmbeddedDefaultPaymentInstrument', - :'default_shipping_address' => :'Tmsv2customersEmbeddedDefaultShippingAddress' + :'default_payment_instrument' => :'Tmsv2tokenizeTokenInformationCustomerEmbeddedDefaultPaymentInstrument', + :'default_shipping_address' => :'Tmsv2tokenizeTokenInformationCustomerEmbeddedDefaultShippingAddress' } end diff --git a/lib/cybersource_rest_client/models/tmsv2customers__embedded_default_payment_instrument.rb b/lib/cybersource_rest_client/models/tmsv2tokenize_token_information_customer__embedded_default_payment_instrument.rb similarity index 90% rename from lib/cybersource_rest_client/models/tmsv2customers__embedded_default_payment_instrument.rb rename to lib/cybersource_rest_client/models/tmsv2tokenize_token_information_customer__embedded_default_payment_instrument.rb index e50bb378..a8cddeda 100644 --- a/lib/cybersource_rest_client/models/tmsv2customers__embedded_default_payment_instrument.rb +++ b/lib/cybersource_rest_client/models/tmsv2tokenize_token_information_customer__embedded_default_payment_instrument.rb @@ -12,7 +12,7 @@ require 'date' module CyberSource - class Tmsv2customersEmbeddedDefaultPaymentInstrument + class Tmsv2tokenizeTokenInformationCustomerEmbeddedDefaultPaymentInstrument attr_accessor :_links # The Id of the Payment Instrument Token. @@ -93,21 +93,21 @@ def self.json_map # Attribute type mapping. def self.swagger_types { - :'_links' => :'Tmsv2customersEmbeddedDefaultPaymentInstrumentLinks', + :'_links' => :'Tmsv2tokenizeTokenInformationCustomerEmbeddedDefaultPaymentInstrumentLinks', :'id' => :'String', :'object' => :'String', :'default' => :'BOOLEAN', :'state' => :'String', :'type' => :'String', - :'bank_account' => :'Tmsv2customersEmbeddedDefaultPaymentInstrumentBankAccount', - :'card' => :'Tmsv2customersEmbeddedDefaultPaymentInstrumentCard', - :'buyer_information' => :'Tmsv2customersEmbeddedDefaultPaymentInstrumentBuyerInformation', - :'bill_to' => :'Tmsv2customersEmbeddedDefaultPaymentInstrumentBillTo', + :'bank_account' => :'Tmsv2tokenizeTokenInformationCustomerEmbeddedDefaultPaymentInstrumentBankAccount', + :'card' => :'Tmsv2tokenizeTokenInformationCustomerEmbeddedDefaultPaymentInstrumentCard', + :'buyer_information' => :'Tmsv2tokenizeTokenInformationCustomerEmbeddedDefaultPaymentInstrumentBuyerInformation', + :'bill_to' => :'Tmsv2tokenizeTokenInformationCustomerEmbeddedDefaultPaymentInstrumentBillTo', :'processing_information' => :'TmsPaymentInstrumentProcessingInfo', - :'merchant_information' => :'Tmsv2customersEmbeddedDefaultPaymentInstrumentMerchantInformation', - :'instrument_identifier' => :'Tmsv2customersEmbeddedDefaultPaymentInstrumentInstrumentIdentifier', - :'metadata' => :'Tmsv2customersEmbeddedDefaultPaymentInstrumentMetadata', - :'_embedded' => :'Tmsv2customersEmbeddedDefaultPaymentInstrumentEmbedded' + :'merchant_information' => :'TmsMerchantInformation', + :'instrument_identifier' => :'Tmsv2tokenizeTokenInformationCustomerEmbeddedDefaultPaymentInstrumentInstrumentIdentifier', + :'metadata' => :'Tmsv2tokenizeTokenInformationCustomerEmbeddedDefaultPaymentInstrumentMetadata', + :'_embedded' => :'Tmsv2tokenizeTokenInformationCustomerEmbeddedDefaultPaymentInstrumentEmbedded' } end diff --git a/lib/cybersource_rest_client/models/tmsv2customers__embedded_default_payment_instrument__embedded.rb b/lib/cybersource_rest_client/models/tmsv2tokenize_token_information_customer__embedded_default_payment_instrument__embedded.rb similarity index 98% rename from lib/cybersource_rest_client/models/tmsv2customers__embedded_default_payment_instrument__embedded.rb rename to lib/cybersource_rest_client/models/tmsv2tokenize_token_information_customer__embedded_default_payment_instrument__embedded.rb index 9d277b4e..da0c7d1d 100644 --- a/lib/cybersource_rest_client/models/tmsv2customers__embedded_default_payment_instrument__embedded.rb +++ b/lib/cybersource_rest_client/models/tmsv2tokenize_token_information_customer__embedded_default_payment_instrument__embedded.rb @@ -13,7 +13,7 @@ module CyberSource # Additional resources for the Payment Instrument. - class Tmsv2customersEmbeddedDefaultPaymentInstrumentEmbedded + class Tmsv2tokenizeTokenInformationCustomerEmbeddedDefaultPaymentInstrumentEmbedded attr_accessor :instrument_identifier # Attribute mapping from ruby-style variable name to JSON key. diff --git a/lib/cybersource_rest_client/models/tmsv2customers__embedded_default_payment_instrument__links.rb b/lib/cybersource_rest_client/models/tmsv2tokenize_token_information_customer__embedded_default_payment_instrument__links.rb similarity index 95% rename from lib/cybersource_rest_client/models/tmsv2customers__embedded_default_payment_instrument__links.rb rename to lib/cybersource_rest_client/models/tmsv2tokenize_token_information_customer__embedded_default_payment_instrument__links.rb index 5ca48d6c..933f97ac 100644 --- a/lib/cybersource_rest_client/models/tmsv2customers__embedded_default_payment_instrument__links.rb +++ b/lib/cybersource_rest_client/models/tmsv2tokenize_token_information_customer__embedded_default_payment_instrument__links.rb @@ -12,7 +12,7 @@ require 'date' module CyberSource - class Tmsv2customersEmbeddedDefaultPaymentInstrumentLinks + class Tmsv2tokenizeTokenInformationCustomerEmbeddedDefaultPaymentInstrumentLinks attr_accessor :_self attr_accessor :customer @@ -36,8 +36,8 @@ def self.json_map # Attribute type mapping. def self.swagger_types { - :'_self' => :'Tmsv2customersEmbeddedDefaultPaymentInstrumentLinksSelf', - :'customer' => :'Tmsv2customersLinksSelf' + :'_self' => :'Tmsv2tokenizeTokenInformationCustomerEmbeddedDefaultPaymentInstrumentLinksSelf', + :'customer' => :'Tmsv2tokenizeTokenInformationCustomerLinksSelf' } end diff --git a/lib/cybersource_rest_client/models/tmsv2customers__embedded_default_payment_instrument__links_self.rb b/lib/cybersource_rest_client/models/tmsv2tokenize_token_information_customer__embedded_default_payment_instrument__links_self.rb similarity index 98% rename from lib/cybersource_rest_client/models/tmsv2customers__embedded_default_payment_instrument__links_self.rb rename to lib/cybersource_rest_client/models/tmsv2tokenize_token_information_customer__embedded_default_payment_instrument__links_self.rb index f9a7e78f..9e33a170 100644 --- a/lib/cybersource_rest_client/models/tmsv2customers__embedded_default_payment_instrument__links_self.rb +++ b/lib/cybersource_rest_client/models/tmsv2tokenize_token_information_customer__embedded_default_payment_instrument__links_self.rb @@ -12,7 +12,7 @@ require 'date' module CyberSource - class Tmsv2customersEmbeddedDefaultPaymentInstrumentLinksSelf + class Tmsv2tokenizeTokenInformationCustomerEmbeddedDefaultPaymentInstrumentLinksSelf # Link to the Payment Instrument. attr_accessor :href diff --git a/lib/cybersource_rest_client/models/tmsv2customers__embedded_default_payment_instrument_bank_account.rb b/lib/cybersource_rest_client/models/tmsv2tokenize_token_information_customer__embedded_default_payment_instrument_bank_account.rb similarity index 98% rename from lib/cybersource_rest_client/models/tmsv2customers__embedded_default_payment_instrument_bank_account.rb rename to lib/cybersource_rest_client/models/tmsv2tokenize_token_information_customer__embedded_default_payment_instrument_bank_account.rb index aa9a575d..e2a9f7ad 100644 --- a/lib/cybersource_rest_client/models/tmsv2customers__embedded_default_payment_instrument_bank_account.rb +++ b/lib/cybersource_rest_client/models/tmsv2tokenize_token_information_customer__embedded_default_payment_instrument_bank_account.rb @@ -12,7 +12,7 @@ require 'date' module CyberSource - class Tmsv2customersEmbeddedDefaultPaymentInstrumentBankAccount + class Tmsv2tokenizeTokenInformationCustomerEmbeddedDefaultPaymentInstrumentBankAccount # Account type. Possible Values: - checking : C - general ledger : G This value is supported only on Wells Fargo ACH - savings : S (U.S. dollars only) - corporate checking : X (U.S. dollars only) attr_accessor :type diff --git a/lib/cybersource_rest_client/models/tmsv2customers__embedded_default_payment_instrument_bill_to.rb b/lib/cybersource_rest_client/models/tmsv2tokenize_token_information_customer__embedded_default_payment_instrument_bill_to.rb similarity index 99% rename from lib/cybersource_rest_client/models/tmsv2customers__embedded_default_payment_instrument_bill_to.rb rename to lib/cybersource_rest_client/models/tmsv2tokenize_token_information_customer__embedded_default_payment_instrument_bill_to.rb index 64da2aaf..55546c1a 100644 --- a/lib/cybersource_rest_client/models/tmsv2customers__embedded_default_payment_instrument_bill_to.rb +++ b/lib/cybersource_rest_client/models/tmsv2tokenize_token_information_customer__embedded_default_payment_instrument_bill_to.rb @@ -12,7 +12,7 @@ require 'date' module CyberSource - class Tmsv2customersEmbeddedDefaultPaymentInstrumentBillTo + class Tmsv2tokenizeTokenInformationCustomerEmbeddedDefaultPaymentInstrumentBillTo # Customer's first name. This name must be the same as the name on the card. attr_accessor :first_name diff --git a/lib/cybersource_rest_client/models/tmsv2customers__embedded_default_payment_instrument_buyer_information.rb b/lib/cybersource_rest_client/models/tmsv2tokenize_token_information_customer__embedded_default_payment_instrument_buyer_information.rb similarity index 96% rename from lib/cybersource_rest_client/models/tmsv2customers__embedded_default_payment_instrument_buyer_information.rb rename to lib/cybersource_rest_client/models/tmsv2tokenize_token_information_customer__embedded_default_payment_instrument_buyer_information.rb index a26aae2d..ad0def2f 100644 --- a/lib/cybersource_rest_client/models/tmsv2customers__embedded_default_payment_instrument_buyer_information.rb +++ b/lib/cybersource_rest_client/models/tmsv2tokenize_token_information_customer__embedded_default_payment_instrument_buyer_information.rb @@ -12,7 +12,7 @@ require 'date' module CyberSource - class Tmsv2customersEmbeddedDefaultPaymentInstrumentBuyerInformation + class Tmsv2tokenizeTokenInformationCustomerEmbeddedDefaultPaymentInstrumentBuyerInformation # Company's tax identifier. This is only used for eCheck service. attr_accessor :company_tax_id @@ -50,7 +50,7 @@ def self.swagger_types :'company_tax_id' => :'String', :'currency' => :'String', :'date_of_birth' => :'Date', - :'personal_identification' => :'Array' + :'personal_identification' => :'Array' } end diff --git a/lib/cybersource_rest_client/models/tmsv2customers__embedded_default_payment_instrument_buyer_information_issued_by.rb b/lib/cybersource_rest_client/models/tmsv2tokenize_token_information_customer__embedded_default_payment_instrument_buyer_information_issued_by.rb similarity index 98% rename from lib/cybersource_rest_client/models/tmsv2customers__embedded_default_payment_instrument_buyer_information_issued_by.rb rename to lib/cybersource_rest_client/models/tmsv2tokenize_token_information_customer__embedded_default_payment_instrument_buyer_information_issued_by.rb index fbbbf0ba..1da594fe 100644 --- a/lib/cybersource_rest_client/models/tmsv2customers__embedded_default_payment_instrument_buyer_information_issued_by.rb +++ b/lib/cybersource_rest_client/models/tmsv2tokenize_token_information_customer__embedded_default_payment_instrument_buyer_information_issued_by.rb @@ -12,7 +12,7 @@ require 'date' module CyberSource - class Tmsv2customersEmbeddedDefaultPaymentInstrumentBuyerInformationIssuedBy + class Tmsv2tokenizeTokenInformationCustomerEmbeddedDefaultPaymentInstrumentBuyerInformationIssuedBy # The State or province where the customer's driver's license was issued. Use the two-character State, Province, and Territory Codes for the United States and Canada. attr_accessor :administrative_area diff --git a/lib/cybersource_rest_client/models/tmsv2customers__embedded_default_payment_instrument_buyer_information_personal_identification.rb b/lib/cybersource_rest_client/models/tmsv2tokenize_token_information_customer__embedded_default_payment_instrument_buyer_information_personal_identification.rb similarity index 96% rename from lib/cybersource_rest_client/models/tmsv2customers__embedded_default_payment_instrument_buyer_information_personal_identification.rb rename to lib/cybersource_rest_client/models/tmsv2tokenize_token_information_customer__embedded_default_payment_instrument_buyer_information_personal_identification.rb index d6f825e7..fde52feb 100644 --- a/lib/cybersource_rest_client/models/tmsv2customers__embedded_default_payment_instrument_buyer_information_personal_identification.rb +++ b/lib/cybersource_rest_client/models/tmsv2tokenize_token_information_customer__embedded_default_payment_instrument_buyer_information_personal_identification.rb @@ -12,7 +12,7 @@ require 'date' module CyberSource - class Tmsv2customersEmbeddedDefaultPaymentInstrumentBuyerInformationPersonalIdentification + class Tmsv2tokenizeTokenInformationCustomerEmbeddedDefaultPaymentInstrumentBuyerInformationPersonalIdentification # The value of the identification type. attr_accessor :id @@ -44,7 +44,7 @@ def self.swagger_types { :'id' => :'String', :'type' => :'String', - :'issued_by' => :'Tmsv2customersEmbeddedDefaultPaymentInstrumentBuyerInformationIssuedBy' + :'issued_by' => :'Tmsv2tokenizeTokenInformationCustomerEmbeddedDefaultPaymentInstrumentBuyerInformationIssuedBy' } end diff --git a/lib/cybersource_rest_client/models/tmsv2customers__embedded_default_payment_instrument_card.rb b/lib/cybersource_rest_client/models/tmsv2tokenize_token_information_customer__embedded_default_payment_instrument_card.rb similarity index 98% rename from lib/cybersource_rest_client/models/tmsv2customers__embedded_default_payment_instrument_card.rb rename to lib/cybersource_rest_client/models/tmsv2tokenize_token_information_customer__embedded_default_payment_instrument_card.rb index 35cd6d25..0fd2a0e5 100644 --- a/lib/cybersource_rest_client/models/tmsv2customers__embedded_default_payment_instrument_card.rb +++ b/lib/cybersource_rest_client/models/tmsv2tokenize_token_information_customer__embedded_default_payment_instrument_card.rb @@ -12,7 +12,7 @@ require 'date' module CyberSource - class Tmsv2customersEmbeddedDefaultPaymentInstrumentCard + class Tmsv2tokenizeTokenInformationCustomerEmbeddedDefaultPaymentInstrumentCard # Two-digit month in which the payment card expires. Format: `MM`. Possible Values: `01` through `12`. attr_accessor :expiration_month @@ -81,7 +81,7 @@ def self.swagger_types :'start_year' => :'String', :'use_as' => :'String', :'sdk_hash_value' => :'String', - :'tokenized_information' => :'Tmsv2customersEmbeddedDefaultPaymentInstrumentCardTokenizedInformation' + :'tokenized_information' => :'Tmsv2tokenizeTokenInformationCustomerEmbeddedDefaultPaymentInstrumentCardTokenizedInformation' } end diff --git a/lib/cybersource_rest_client/models/tmsv2customers__embedded_default_payment_instrument_card_tokenized_information.rb b/lib/cybersource_rest_client/models/tmsv2tokenize_token_information_customer__embedded_default_payment_instrument_card_tokenized_information.rb similarity index 98% rename from lib/cybersource_rest_client/models/tmsv2customers__embedded_default_payment_instrument_card_tokenized_information.rb rename to lib/cybersource_rest_client/models/tmsv2tokenize_token_information_customer__embedded_default_payment_instrument_card_tokenized_information.rb index ec2c6e28..154284a3 100644 --- a/lib/cybersource_rest_client/models/tmsv2customers__embedded_default_payment_instrument_card_tokenized_information.rb +++ b/lib/cybersource_rest_client/models/tmsv2tokenize_token_information_customer__embedded_default_payment_instrument_card_tokenized_information.rb @@ -12,7 +12,7 @@ require 'date' module CyberSource - class Tmsv2customersEmbeddedDefaultPaymentInstrumentCardTokenizedInformation + class Tmsv2tokenizeTokenInformationCustomerEmbeddedDefaultPaymentInstrumentCardTokenizedInformation # Value that identifies your business and indicates that the cardholder's account number is tokenized. This value is assigned by the token service provider and is unique within the token service provider's database. **Note** This field is supported only through **VisaNet** and **FDC Nashville Global**. attr_accessor :requestor_id diff --git a/lib/cybersource_rest_client/models/tmsv2customers__embedded_default_payment_instrument_instrument_identifier.rb b/lib/cybersource_rest_client/models/tmsv2tokenize_token_information_customer__embedded_default_payment_instrument_instrument_identifier.rb similarity index 98% rename from lib/cybersource_rest_client/models/tmsv2customers__embedded_default_payment_instrument_instrument_identifier.rb rename to lib/cybersource_rest_client/models/tmsv2tokenize_token_information_customer__embedded_default_payment_instrument_instrument_identifier.rb index 41b5c447..0d1ba0d6 100644 --- a/lib/cybersource_rest_client/models/tmsv2customers__embedded_default_payment_instrument_instrument_identifier.rb +++ b/lib/cybersource_rest_client/models/tmsv2tokenize_token_information_customer__embedded_default_payment_instrument_instrument_identifier.rb @@ -12,7 +12,7 @@ require 'date' module CyberSource - class Tmsv2customersEmbeddedDefaultPaymentInstrumentInstrumentIdentifier + class Tmsv2tokenizeTokenInformationCustomerEmbeddedDefaultPaymentInstrumentInstrumentIdentifier # The Id of the Instrument Identifier linked to the Payment Instrument. attr_accessor :id diff --git a/lib/cybersource_rest_client/models/tmsv2customers__embedded_default_payment_instrument_metadata.rb b/lib/cybersource_rest_client/models/tmsv2tokenize_token_information_customer__embedded_default_payment_instrument_metadata.rb similarity index 98% rename from lib/cybersource_rest_client/models/tmsv2customers__embedded_default_payment_instrument_metadata.rb rename to lib/cybersource_rest_client/models/tmsv2tokenize_token_information_customer__embedded_default_payment_instrument_metadata.rb index b85cec2c..344414b1 100644 --- a/lib/cybersource_rest_client/models/tmsv2customers__embedded_default_payment_instrument_metadata.rb +++ b/lib/cybersource_rest_client/models/tmsv2tokenize_token_information_customer__embedded_default_payment_instrument_metadata.rb @@ -12,7 +12,7 @@ require 'date' module CyberSource - class Tmsv2customersEmbeddedDefaultPaymentInstrumentMetadata + class Tmsv2tokenizeTokenInformationCustomerEmbeddedDefaultPaymentInstrumentMetadata # The creator of the Payment Instrument. attr_accessor :creator diff --git a/lib/cybersource_rest_client/models/tmsv2customers__embedded_default_shipping_address.rb b/lib/cybersource_rest_client/models/tmsv2tokenize_token_information_customer__embedded_default_shipping_address.rb similarity index 94% rename from lib/cybersource_rest_client/models/tmsv2customers__embedded_default_shipping_address.rb rename to lib/cybersource_rest_client/models/tmsv2tokenize_token_information_customer__embedded_default_shipping_address.rb index 24a7293f..211c50d7 100644 --- a/lib/cybersource_rest_client/models/tmsv2customers__embedded_default_shipping_address.rb +++ b/lib/cybersource_rest_client/models/tmsv2tokenize_token_information_customer__embedded_default_shipping_address.rb @@ -12,7 +12,7 @@ require 'date' module CyberSource - class Tmsv2customersEmbeddedDefaultShippingAddress + class Tmsv2tokenizeTokenInformationCustomerEmbeddedDefaultShippingAddress attr_accessor :_links # The Id of the Shipping Address Token. @@ -50,11 +50,11 @@ def self.json_map # Attribute type mapping. def self.swagger_types { - :'_links' => :'Tmsv2customersEmbeddedDefaultShippingAddressLinks', + :'_links' => :'Tmsv2tokenizeTokenInformationCustomerEmbeddedDefaultShippingAddressLinks', :'id' => :'String', :'default' => :'BOOLEAN', - :'ship_to' => :'Tmsv2customersEmbeddedDefaultShippingAddressShipTo', - :'metadata' => :'Tmsv2customersEmbeddedDefaultShippingAddressMetadata' + :'ship_to' => :'Tmsv2tokenizeTokenInformationCustomerEmbeddedDefaultShippingAddressShipTo', + :'metadata' => :'Tmsv2tokenizeTokenInformationCustomerEmbeddedDefaultShippingAddressMetadata' } end diff --git a/lib/cybersource_rest_client/models/tmsv2customers__embedded_default_shipping_address__links.rb b/lib/cybersource_rest_client/models/tmsv2tokenize_token_information_customer__embedded_default_shipping_address__links.rb similarity index 95% rename from lib/cybersource_rest_client/models/tmsv2customers__embedded_default_shipping_address__links.rb rename to lib/cybersource_rest_client/models/tmsv2tokenize_token_information_customer__embedded_default_shipping_address__links.rb index 7fae2527..98067fff 100644 --- a/lib/cybersource_rest_client/models/tmsv2customers__embedded_default_shipping_address__links.rb +++ b/lib/cybersource_rest_client/models/tmsv2tokenize_token_information_customer__embedded_default_shipping_address__links.rb @@ -12,7 +12,7 @@ require 'date' module CyberSource - class Tmsv2customersEmbeddedDefaultShippingAddressLinks + class Tmsv2tokenizeTokenInformationCustomerEmbeddedDefaultShippingAddressLinks attr_accessor :_self attr_accessor :customer @@ -36,8 +36,8 @@ def self.json_map # Attribute type mapping. def self.swagger_types { - :'_self' => :'Tmsv2customersEmbeddedDefaultShippingAddressLinksSelf', - :'customer' => :'Tmsv2customersEmbeddedDefaultShippingAddressLinksCustomer' + :'_self' => :'Tmsv2tokenizeTokenInformationCustomerEmbeddedDefaultShippingAddressLinksSelf', + :'customer' => :'Tmsv2tokenizeTokenInformationCustomerEmbeddedDefaultShippingAddressLinksCustomer' } end diff --git a/lib/cybersource_rest_client/models/tmsv2customers__embedded_default_shipping_address__links_customer.rb b/lib/cybersource_rest_client/models/tmsv2tokenize_token_information_customer__embedded_default_shipping_address__links_customer.rb similarity index 98% rename from lib/cybersource_rest_client/models/tmsv2customers__embedded_default_shipping_address__links_customer.rb rename to lib/cybersource_rest_client/models/tmsv2tokenize_token_information_customer__embedded_default_shipping_address__links_customer.rb index 305cba7d..b90cb021 100644 --- a/lib/cybersource_rest_client/models/tmsv2customers__embedded_default_shipping_address__links_customer.rb +++ b/lib/cybersource_rest_client/models/tmsv2tokenize_token_information_customer__embedded_default_shipping_address__links_customer.rb @@ -12,7 +12,7 @@ require 'date' module CyberSource - class Tmsv2customersEmbeddedDefaultShippingAddressLinksCustomer + class Tmsv2tokenizeTokenInformationCustomerEmbeddedDefaultShippingAddressLinksCustomer # Link to the Customer attr_accessor :href diff --git a/lib/cybersource_rest_client/models/tmsv2customers__embedded_default_shipping_address__links_self.rb b/lib/cybersource_rest_client/models/tmsv2tokenize_token_information_customer__embedded_default_shipping_address__links_self.rb similarity index 98% rename from lib/cybersource_rest_client/models/tmsv2customers__embedded_default_shipping_address__links_self.rb rename to lib/cybersource_rest_client/models/tmsv2tokenize_token_information_customer__embedded_default_shipping_address__links_self.rb index d8b9db79..2d5cd3ad 100644 --- a/lib/cybersource_rest_client/models/tmsv2customers__embedded_default_shipping_address__links_self.rb +++ b/lib/cybersource_rest_client/models/tmsv2tokenize_token_information_customer__embedded_default_shipping_address__links_self.rb @@ -12,7 +12,7 @@ require 'date' module CyberSource - class Tmsv2customersEmbeddedDefaultShippingAddressLinksSelf + class Tmsv2tokenizeTokenInformationCustomerEmbeddedDefaultShippingAddressLinksSelf # Link to the Customers Shipping Address attr_accessor :href diff --git a/lib/cybersource_rest_client/models/tmsv2customers__embedded_default_shipping_address_metadata.rb b/lib/cybersource_rest_client/models/tmsv2tokenize_token_information_customer__embedded_default_shipping_address_metadata.rb similarity index 98% rename from lib/cybersource_rest_client/models/tmsv2customers__embedded_default_shipping_address_metadata.rb rename to lib/cybersource_rest_client/models/tmsv2tokenize_token_information_customer__embedded_default_shipping_address_metadata.rb index 59067b46..c50dbfe8 100644 --- a/lib/cybersource_rest_client/models/tmsv2customers__embedded_default_shipping_address_metadata.rb +++ b/lib/cybersource_rest_client/models/tmsv2tokenize_token_information_customer__embedded_default_shipping_address_metadata.rb @@ -12,7 +12,7 @@ require 'date' module CyberSource - class Tmsv2customersEmbeddedDefaultShippingAddressMetadata + class Tmsv2tokenizeTokenInformationCustomerEmbeddedDefaultShippingAddressMetadata # The creator of the Shipping Address. attr_accessor :creator diff --git a/lib/cybersource_rest_client/models/tmsv2customers__embedded_default_shipping_address_ship_to.rb b/lib/cybersource_rest_client/models/tmsv2tokenize_token_information_customer__embedded_default_shipping_address_ship_to.rb similarity index 99% rename from lib/cybersource_rest_client/models/tmsv2customers__embedded_default_shipping_address_ship_to.rb rename to lib/cybersource_rest_client/models/tmsv2tokenize_token_information_customer__embedded_default_shipping_address_ship_to.rb index 5eeba4b4..65f304bf 100644 --- a/lib/cybersource_rest_client/models/tmsv2customers__embedded_default_shipping_address_ship_to.rb +++ b/lib/cybersource_rest_client/models/tmsv2tokenize_token_information_customer__embedded_default_shipping_address_ship_to.rb @@ -12,7 +12,7 @@ require 'date' module CyberSource - class Tmsv2customersEmbeddedDefaultShippingAddressShipTo + class Tmsv2tokenizeTokenInformationCustomerEmbeddedDefaultShippingAddressShipTo # First name of the recipient. attr_accessor :first_name diff --git a/lib/cybersource_rest_client/models/tmsv2customers__links.rb b/lib/cybersource_rest_client/models/tmsv2tokenize_token_information_customer__links.rb similarity index 95% rename from lib/cybersource_rest_client/models/tmsv2customers__links.rb rename to lib/cybersource_rest_client/models/tmsv2tokenize_token_information_customer__links.rb index 82038952..f36e1048 100644 --- a/lib/cybersource_rest_client/models/tmsv2customers__links.rb +++ b/lib/cybersource_rest_client/models/tmsv2tokenize_token_information_customer__links.rb @@ -12,7 +12,7 @@ require 'date' module CyberSource - class Tmsv2customersLinks + class Tmsv2tokenizeTokenInformationCustomerLinks attr_accessor :_self attr_accessor :payment_instruments @@ -40,9 +40,9 @@ def self.json_map # Attribute type mapping. def self.swagger_types { - :'_self' => :'Tmsv2customersLinksSelf', - :'payment_instruments' => :'Tmsv2customersLinksPaymentInstruments', - :'shipping_address' => :'Tmsv2customersLinksShippingAddress' + :'_self' => :'Tmsv2tokenizeTokenInformationCustomerLinksSelf', + :'payment_instruments' => :'Tmsv2tokenizeTokenInformationCustomerLinksPaymentInstruments', + :'shipping_address' => :'Tmsv2tokenizeTokenInformationCustomerLinksShippingAddress' } end diff --git a/lib/cybersource_rest_client/models/tmsv2customers__links_payment_instruments.rb b/lib/cybersource_rest_client/models/tmsv2tokenize_token_information_customer__links_payment_instruments.rb similarity index 98% rename from lib/cybersource_rest_client/models/tmsv2customers__links_payment_instruments.rb rename to lib/cybersource_rest_client/models/tmsv2tokenize_token_information_customer__links_payment_instruments.rb index 93363f66..9e8a0ba0 100644 --- a/lib/cybersource_rest_client/models/tmsv2customers__links_payment_instruments.rb +++ b/lib/cybersource_rest_client/models/tmsv2tokenize_token_information_customer__links_payment_instruments.rb @@ -12,7 +12,7 @@ require 'date' module CyberSource - class Tmsv2customersLinksPaymentInstruments + class Tmsv2tokenizeTokenInformationCustomerLinksPaymentInstruments # Link to the Customers Payment Instruments. attr_accessor :href diff --git a/lib/cybersource_rest_client/models/tmsv2customers__links_self.rb b/lib/cybersource_rest_client/models/tmsv2tokenize_token_information_customer__links_self.rb similarity index 98% rename from lib/cybersource_rest_client/models/tmsv2customers__links_self.rb rename to lib/cybersource_rest_client/models/tmsv2tokenize_token_information_customer__links_self.rb index e2e4a338..68831c41 100644 --- a/lib/cybersource_rest_client/models/tmsv2customers__links_self.rb +++ b/lib/cybersource_rest_client/models/tmsv2tokenize_token_information_customer__links_self.rb @@ -12,7 +12,7 @@ require 'date' module CyberSource - class Tmsv2customersLinksSelf + class Tmsv2tokenizeTokenInformationCustomerLinksSelf # Link to the Customer. attr_accessor :href diff --git a/lib/cybersource_rest_client/models/tmsv2customers__links_shipping_address.rb b/lib/cybersource_rest_client/models/tmsv2tokenize_token_information_customer__links_shipping_address.rb similarity index 98% rename from lib/cybersource_rest_client/models/tmsv2customers__links_shipping_address.rb rename to lib/cybersource_rest_client/models/tmsv2tokenize_token_information_customer__links_shipping_address.rb index a3eaea74..90c31388 100644 --- a/lib/cybersource_rest_client/models/tmsv2customers__links_shipping_address.rb +++ b/lib/cybersource_rest_client/models/tmsv2tokenize_token_information_customer__links_shipping_address.rb @@ -12,7 +12,7 @@ require 'date' module CyberSource - class Tmsv2customersLinksShippingAddress + class Tmsv2tokenizeTokenInformationCustomerLinksShippingAddress # Link to the Customers Shipping Addresses. attr_accessor :href diff --git a/lib/cybersource_rest_client/models/tmsv2customers_buyer_information.rb b/lib/cybersource_rest_client/models/tmsv2tokenize_token_information_customer_buyer_information.rb similarity index 99% rename from lib/cybersource_rest_client/models/tmsv2customers_buyer_information.rb rename to lib/cybersource_rest_client/models/tmsv2tokenize_token_information_customer_buyer_information.rb index f0d89b2a..ac2708f3 100644 --- a/lib/cybersource_rest_client/models/tmsv2customers_buyer_information.rb +++ b/lib/cybersource_rest_client/models/tmsv2tokenize_token_information_customer_buyer_information.rb @@ -12,7 +12,7 @@ require 'date' module CyberSource - class Tmsv2customersBuyerInformation + class Tmsv2tokenizeTokenInformationCustomerBuyerInformation # Your identifier for the customer. attr_accessor :merchant_customer_id diff --git a/lib/cybersource_rest_client/models/tmsv2customers_client_reference_information.rb b/lib/cybersource_rest_client/models/tmsv2tokenize_token_information_customer_client_reference_information.rb similarity index 98% rename from lib/cybersource_rest_client/models/tmsv2customers_client_reference_information.rb rename to lib/cybersource_rest_client/models/tmsv2tokenize_token_information_customer_client_reference_information.rb index febdb54b..d3cd6693 100644 --- a/lib/cybersource_rest_client/models/tmsv2customers_client_reference_information.rb +++ b/lib/cybersource_rest_client/models/tmsv2tokenize_token_information_customer_client_reference_information.rb @@ -12,7 +12,7 @@ require 'date' module CyberSource - class Tmsv2customersClientReferenceInformation + class Tmsv2tokenizeTokenInformationCustomerClientReferenceInformation # Client-generated order reference or tracking number. attr_accessor :code diff --git a/lib/cybersource_rest_client/models/tmsv2customers_default_payment_instrument.rb b/lib/cybersource_rest_client/models/tmsv2tokenize_token_information_customer_default_payment_instrument.rb similarity index 98% rename from lib/cybersource_rest_client/models/tmsv2customers_default_payment_instrument.rb rename to lib/cybersource_rest_client/models/tmsv2tokenize_token_information_customer_default_payment_instrument.rb index 9233432c..542886e1 100644 --- a/lib/cybersource_rest_client/models/tmsv2customers_default_payment_instrument.rb +++ b/lib/cybersource_rest_client/models/tmsv2tokenize_token_information_customer_default_payment_instrument.rb @@ -12,7 +12,7 @@ require 'date' module CyberSource - class Tmsv2customersDefaultPaymentInstrument + class Tmsv2tokenizeTokenInformationCustomerDefaultPaymentInstrument # The Id of the Customers default Payment Instrument attr_accessor :id diff --git a/lib/cybersource_rest_client/models/tmsv2customers_default_shipping_address.rb b/lib/cybersource_rest_client/models/tmsv2tokenize_token_information_customer_default_shipping_address.rb similarity index 98% rename from lib/cybersource_rest_client/models/tmsv2customers_default_shipping_address.rb rename to lib/cybersource_rest_client/models/tmsv2tokenize_token_information_customer_default_shipping_address.rb index d6b8a2da..bde16f9c 100644 --- a/lib/cybersource_rest_client/models/tmsv2customers_default_shipping_address.rb +++ b/lib/cybersource_rest_client/models/tmsv2tokenize_token_information_customer_default_shipping_address.rb @@ -12,7 +12,7 @@ require 'date' module CyberSource - class Tmsv2customersDefaultShippingAddress + class Tmsv2tokenizeTokenInformationCustomerDefaultShippingAddress # The Id of the Customers default Shipping Address attr_accessor :id diff --git a/lib/cybersource_rest_client/models/tmsv2customers_merchant_defined_information.rb b/lib/cybersource_rest_client/models/tmsv2tokenize_token_information_customer_merchant_defined_information.rb similarity index 99% rename from lib/cybersource_rest_client/models/tmsv2customers_merchant_defined_information.rb rename to lib/cybersource_rest_client/models/tmsv2tokenize_token_information_customer_merchant_defined_information.rb index cf460720..eaf6852d 100644 --- a/lib/cybersource_rest_client/models/tmsv2customers_merchant_defined_information.rb +++ b/lib/cybersource_rest_client/models/tmsv2tokenize_token_information_customer_merchant_defined_information.rb @@ -12,7 +12,7 @@ require 'date' module CyberSource - class Tmsv2customersMerchantDefinedInformation + class Tmsv2tokenizeTokenInformationCustomerMerchantDefinedInformation # The number you assign as the name for your merchant-defined data or secure field. Possible Values are data1 to data4 and sensitive1 to sensitive4 For example, to set the name for merchant-defined data 2 field, you would reference merchantDefinedInformation[x].name as data2 Possible Values: - data1 - data2 - data3 - data4 - sensitive1 - sensitive2 - sensitive3 - sensitive4 attr_accessor :name diff --git a/lib/cybersource_rest_client/models/tmsv2customers_metadata.rb b/lib/cybersource_rest_client/models/tmsv2tokenize_token_information_customer_metadata.rb similarity index 99% rename from lib/cybersource_rest_client/models/tmsv2customers_metadata.rb rename to lib/cybersource_rest_client/models/tmsv2tokenize_token_information_customer_metadata.rb index e4c5f71f..446d84a7 100644 --- a/lib/cybersource_rest_client/models/tmsv2customers_metadata.rb +++ b/lib/cybersource_rest_client/models/tmsv2tokenize_token_information_customer_metadata.rb @@ -12,7 +12,7 @@ require 'date' module CyberSource - class Tmsv2customersMetadata + class Tmsv2tokenizeTokenInformationCustomerMetadata # The creator of the Customer. attr_accessor :creator diff --git a/lib/cybersource_rest_client/models/tmsv2customers_object_information.rb b/lib/cybersource_rest_client/models/tmsv2tokenize_token_information_customer_object_information.rb similarity index 98% rename from lib/cybersource_rest_client/models/tmsv2customers_object_information.rb rename to lib/cybersource_rest_client/models/tmsv2tokenize_token_information_customer_object_information.rb index 7fe85927..1a26d0a4 100644 --- a/lib/cybersource_rest_client/models/tmsv2customers_object_information.rb +++ b/lib/cybersource_rest_client/models/tmsv2tokenize_token_information_customer_object_information.rb @@ -12,7 +12,7 @@ require 'date' module CyberSource - class Tmsv2customersObjectInformation + class Tmsv2tokenizeTokenInformationCustomerObjectInformation # Name or title of the customer. attr_accessor :title diff --git a/lib/cybersource_rest_client/models/rbsv1subscriptions_client_reference_information_partner.rb b/lib/cybersource_rest_client/models/tmsv2tokenizedcardstokenized_card_idissuerlifecycleeventsimulations_card.rb similarity index 74% rename from lib/cybersource_rest_client/models/rbsv1subscriptions_client_reference_information_partner.rb rename to lib/cybersource_rest_client/models/tmsv2tokenizedcardstokenized_card_idissuerlifecycleeventsimulations_card.rb index 77bda6cf..c5906a4a 100644 --- a/lib/cybersource_rest_client/models/rbsv1subscriptions_client_reference_information_partner.rb +++ b/lib/cybersource_rest_client/models/tmsv2tokenizedcardstokenized_card_idissuerlifecycleeventsimulations_card.rb @@ -12,34 +12,40 @@ require 'date' module CyberSource - class Rbsv1subscriptionsClientReferenceInformationPartner - # > This field is ignored when you provide the `subscriptionInformation.originalTransactionId` or update the subscription. Identifier for the developer that helped integrate a partner solution to CyberSource. Send this value in all requests that are sent through the partner solutions built by that developer. CyberSource assigns the ID to the developer. **Note** When you see a developer ID of 999 in reports, the developer ID that was submitted is incorrect. - attr_accessor :developer_id + class Tmsv2tokenizedcardstokenizedCardIdissuerlifecycleeventsimulationsCard + # The new last 4 digits of the card number associated to the Tokenized Card. + attr_accessor :last4 - # > This field is ignored when you provide the `subscriptionInformation.originalTransactionId` or update the subscription. Identifier for the partner that is integrated to CyberSource. Send this value in all requests that are sent through the partner solution. CyberSource assigns the ID to the partner. **Note** When you see a solutionId of 999 in reports, the solutionId that was submitted is incorrect. - attr_accessor :solution_id + # The new two-digit month of the card associated to the Tokenized Card. Format: `MM`. Possible Values: `01` through `12`. + attr_accessor :expiration_month + + # The new four-digit year of the card associated to the Tokenized Card. Format: `YYYY`. + attr_accessor :expiration_year # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { - :'developer_id' => :'developerId', - :'solution_id' => :'solutionId' + :'last4' => :'last4', + :'expiration_month' => :'expirationMonth', + :'expiration_year' => :'expirationYear' } end # Attribute mapping from JSON key to ruby-style variable name. def self.json_map { - :'developer_id' => :'developer_id', - :'solution_id' => :'solution_id' + :'last4' => :'last4', + :'expiration_month' => :'expiration_month', + :'expiration_year' => :'expiration_year' } end # Attribute type mapping. def self.swagger_types { - :'developer_id' => :'String', - :'solution_id' => :'String' + :'last4' => :'String', + :'expiration_month' => :'String', + :'expiration_year' => :'String' } end @@ -51,12 +57,16 @@ def initialize(attributes = {}) # convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v } - if attributes.has_key?(:'developerId') - self.developer_id = attributes[:'developerId'] + if attributes.has_key?(:'last4') + self.last4 = attributes[:'last4'] + end + + if attributes.has_key?(:'expirationMonth') + self.expiration_month = attributes[:'expirationMonth'] end - if attributes.has_key?(:'solutionId') - self.solution_id = attributes[:'solutionId'] + if attributes.has_key?(:'expirationYear') + self.expiration_year = attributes[:'expirationYear'] end end @@ -74,15 +84,21 @@ def valid? end # Custom attribute writer method with validation - # @param [Object] developer_id Value to be assigned - def developer_id=(developer_id) - @developer_id = developer_id + # @param [Object] last4 Value to be assigned + def last4=(last4) + @last4 = last4 + end + + # Custom attribute writer method with validation + # @param [Object] expiration_month Value to be assigned + def expiration_month=(expiration_month) + @expiration_month = expiration_month end # Custom attribute writer method with validation - # @param [Object] solution_id Value to be assigned - def solution_id=(solution_id) - @solution_id = solution_id + # @param [Object] expiration_year Value to be assigned + def expiration_year=(expiration_year) + @expiration_year = expiration_year end # Checks equality by comparing each attribute. @@ -90,8 +106,9 @@ def solution_id=(solution_id) def ==(o) return true if self.equal?(o) self.class == o.class && - developer_id == o.developer_id && - solution_id == o.solution_id + last4 == o.last4 && + expiration_month == o.expiration_month && + expiration_year == o.expiration_year end # @see the `==` method @@ -103,7 +120,7 @@ def eql?(o) # Calculates hash code according to all attributes. # @return [Fixnum] Hash code def hash - [developer_id, solution_id].hash + [last4, expiration_month, expiration_year].hash end # Builds the object from hash diff --git a/lib/cybersource_rest_client/models/tmsv2tokenizedcardstokenized_card_idissuerlifecycleeventsimulations_metadata.rb b/lib/cybersource_rest_client/models/tmsv2tokenizedcardstokenized_card_idissuerlifecycleeventsimulations_metadata.rb new file mode 100644 index 00000000..7a40a57d --- /dev/null +++ b/lib/cybersource_rest_client/models/tmsv2tokenizedcardstokenized_card_idissuerlifecycleeventsimulations_metadata.rb @@ -0,0 +1,189 @@ +=begin +#CyberSource Merged Spec + +#All CyberSource API specs merged together. These are available at https://developer.cybersource.com/api/reference/api-reference.html + +OpenAPI spec version: 0.0.1 + +Generated by: https://github.com/swagger-api/swagger-codegen.git +Swagger Codegen version: 2.4.38 +=end + +require 'date' + +module CyberSource + class Tmsv2tokenizedcardstokenizedCardIdissuerlifecycleeventsimulationsMetadata + attr_accessor :card_art + + # Attribute mapping from ruby-style variable name to JSON key. + def self.attribute_map + { + :'card_art' => :'cardArt' + } + end + + # Attribute mapping from JSON key to ruby-style variable name. + def self.json_map + { + :'card_art' => :'card_art' + } + end + + # Attribute type mapping. + def self.swagger_types + { + :'card_art' => :'Tmsv2tokenizedcardstokenizedCardIdissuerlifecycleeventsimulationsMetadataCardArt' + } + end + + # Initializes the object + # @param [Hash] attributes Model attributes in the form of hash + def initialize(attributes = {}) + return unless attributes.is_a?(Hash) + + # convert string to symbol for hash key + attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v } + + if attributes.has_key?(:'cardArt') + self.card_art = attributes[:'cardArt'] + end + end + + # Show invalid properties with the reasons. Usually used together with valid? + # @return Array for valid properties with the reasons + def list_invalid_properties + invalid_properties = Array.new + invalid_properties + end + + # Check to see if the all the properties in the model are valid + # @return true if the model is valid + def valid? + true + end + + # Checks equality by comparing each attribute. + # @param [Object] Object to be compared + def ==(o) + return true if self.equal?(o) + self.class == o.class && + card_art == o.card_art + end + + # @see the `==` method + # @param [Object] Object to be compared + def eql?(o) + self == o + end + + # Calculates hash code according to all attributes. + # @return [Fixnum] Hash code + def hash + [card_art].hash + end + + # Builds the object from hash + # @param [Hash] attributes Model attributes in the form of hash + # @return [Object] Returns the model itself + def build_from_hash(attributes) + return nil unless attributes.is_a?(Hash) + self.class.swagger_types.each_pair do |key, type| + if type =~ /\AArray<(.*)>/i + # check to ensure the input is an array given that the the attribute + # is documented as an array but the input is not + if attributes[self.class.attribute_map[key]].is_a?(Array) + self.send("#{self.class.json_map[key]}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) + end + elsif !attributes[self.class.attribute_map[key]].nil? + self.send("#{self.class.json_map[key]}=", _deserialize(type, attributes[self.class.attribute_map[key]])) + end # or else data not found in attributes(hash), not an issue as the data can be optional + end + + self + end + + # Deserializes the data based on type + # @param string type Data type + # @param string value Value to be deserialized + # @return [Object] Deserialized data + def _deserialize(type, value) + case type.to_sym + when :DateTime + DateTime.parse(value) + when :Date + Date.parse(value) + when :String + value.to_s + when :Integer + value.to_i + when :Float + value.to_f + when :BOOLEAN + if value.to_s =~ /\A(true|t|yes|y|1)\z/i + true + else + false + end + when :Object + # generic object (usually a Hash), return directly + value + when /\AArray<(?.+)>\z/ + inner_type = Regexp.last_match[:inner_type] + value.map { |v| _deserialize(inner_type, v) } + when /\AHash<(?.+?), (?.+)>\z/ + k_type = Regexp.last_match[:k_type] + v_type = Regexp.last_match[:v_type] + {}.tap do |hash| + value.each do |k, v| + hash[_deserialize(k_type, k)] = _deserialize(v_type, v) + end + end + else # model + temp_model = CyberSource.const_get(type).new + temp_model.build_from_hash(value) + end + end + + # Returns the string representation of the object + # @return [String] String presentation of the object + def to_s + to_hash.to_s + end + + # to_body is an alias to to_hash (backward compatibility) + # @return [Hash] Returns the object in the form of hash + def to_body + to_hash + end + + # Returns the object in the form of hash + # @return [Hash] Returns the object in the form of hash + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + next if value.nil? + hash[param] = _to_hash(value) + end + hash + end + + # Outputs non-array value in the form of hash + # For object, use to_hash. Otherwise, just return the value + # @param [Object] value Any valid value + # @return [Hash] Returns the value in the form of hash + def _to_hash(value) + if value.is_a?(Array) + value.compact.map { |v| _to_hash(v) } + elsif value.is_a?(Hash) + {}.tap do |hash| + value.each { |k, v| hash[k] = _to_hash(v) } + end + elsif value.respond_to? :to_hash + value.to_hash + else + value + end + end + end +end diff --git a/lib/cybersource_rest_client/models/tmsv2tokenizedcardstokenized_card_idissuerlifecycleeventsimulations_metadata_card_art.rb b/lib/cybersource_rest_client/models/tmsv2tokenizedcardstokenized_card_idissuerlifecycleeventsimulations_metadata_card_art.rb new file mode 100644 index 00000000..3f3c542f --- /dev/null +++ b/lib/cybersource_rest_client/models/tmsv2tokenizedcardstokenized_card_idissuerlifecycleeventsimulations_metadata_card_art.rb @@ -0,0 +1,189 @@ +=begin +#CyberSource Merged Spec + +#All CyberSource API specs merged together. These are available at https://developer.cybersource.com/api/reference/api-reference.html + +OpenAPI spec version: 0.0.1 + +Generated by: https://github.com/swagger-api/swagger-codegen.git +Swagger Codegen version: 2.4.38 +=end + +require 'date' + +module CyberSource + class Tmsv2tokenizedcardstokenizedCardIdissuerlifecycleeventsimulationsMetadataCardArt + attr_accessor :combined_asset + + # Attribute mapping from ruby-style variable name to JSON key. + def self.attribute_map + { + :'combined_asset' => :'combinedAsset' + } + end + + # Attribute mapping from JSON key to ruby-style variable name. + def self.json_map + { + :'combined_asset' => :'combined_asset' + } + end + + # Attribute type mapping. + def self.swagger_types + { + :'combined_asset' => :'Tmsv2tokenizedcardstokenizedCardIdissuerlifecycleeventsimulationsMetadataCardArtCombinedAsset' + } + end + + # Initializes the object + # @param [Hash] attributes Model attributes in the form of hash + def initialize(attributes = {}) + return unless attributes.is_a?(Hash) + + # convert string to symbol for hash key + attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v } + + if attributes.has_key?(:'combinedAsset') + self.combined_asset = attributes[:'combinedAsset'] + end + end + + # Show invalid properties with the reasons. Usually used together with valid? + # @return Array for valid properties with the reasons + def list_invalid_properties + invalid_properties = Array.new + invalid_properties + end + + # Check to see if the all the properties in the model are valid + # @return true if the model is valid + def valid? + true + end + + # Checks equality by comparing each attribute. + # @param [Object] Object to be compared + def ==(o) + return true if self.equal?(o) + self.class == o.class && + combined_asset == o.combined_asset + end + + # @see the `==` method + # @param [Object] Object to be compared + def eql?(o) + self == o + end + + # Calculates hash code according to all attributes. + # @return [Fixnum] Hash code + def hash + [combined_asset].hash + end + + # Builds the object from hash + # @param [Hash] attributes Model attributes in the form of hash + # @return [Object] Returns the model itself + def build_from_hash(attributes) + return nil unless attributes.is_a?(Hash) + self.class.swagger_types.each_pair do |key, type| + if type =~ /\AArray<(.*)>/i + # check to ensure the input is an array given that the the attribute + # is documented as an array but the input is not + if attributes[self.class.attribute_map[key]].is_a?(Array) + self.send("#{self.class.json_map[key]}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) + end + elsif !attributes[self.class.attribute_map[key]].nil? + self.send("#{self.class.json_map[key]}=", _deserialize(type, attributes[self.class.attribute_map[key]])) + end # or else data not found in attributes(hash), not an issue as the data can be optional + end + + self + end + + # Deserializes the data based on type + # @param string type Data type + # @param string value Value to be deserialized + # @return [Object] Deserialized data + def _deserialize(type, value) + case type.to_sym + when :DateTime + DateTime.parse(value) + when :Date + Date.parse(value) + when :String + value.to_s + when :Integer + value.to_i + when :Float + value.to_f + when :BOOLEAN + if value.to_s =~ /\A(true|t|yes|y|1)\z/i + true + else + false + end + when :Object + # generic object (usually a Hash), return directly + value + when /\AArray<(?.+)>\z/ + inner_type = Regexp.last_match[:inner_type] + value.map { |v| _deserialize(inner_type, v) } + when /\AHash<(?.+?), (?.+)>\z/ + k_type = Regexp.last_match[:k_type] + v_type = Regexp.last_match[:v_type] + {}.tap do |hash| + value.each do |k, v| + hash[_deserialize(k_type, k)] = _deserialize(v_type, v) + end + end + else # model + temp_model = CyberSource.const_get(type).new + temp_model.build_from_hash(value) + end + end + + # Returns the string representation of the object + # @return [String] String presentation of the object + def to_s + to_hash.to_s + end + + # to_body is an alias to to_hash (backward compatibility) + # @return [Hash] Returns the object in the form of hash + def to_body + to_hash + end + + # Returns the object in the form of hash + # @return [Hash] Returns the object in the form of hash + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + next if value.nil? + hash[param] = _to_hash(value) + end + hash + end + + # Outputs non-array value in the form of hash + # For object, use to_hash. Otherwise, just return the value + # @param [Object] value Any valid value + # @return [Hash] Returns the value in the form of hash + def _to_hash(value) + if value.is_a?(Array) + value.compact.map { |v| _to_hash(v) } + elsif value.is_a?(Hash) + {}.tap do |hash| + value.each { |k, v| hash[k] = _to_hash(v) } + end + elsif value.respond_to? :to_hash + value.to_hash + else + value + end + end + end +end diff --git a/lib/cybersource_rest_client/models/update_subscription.rb b/lib/cybersource_rest_client/models/update_subscription.rb index 901a89d2..eb475e00 100644 --- a/lib/cybersource_rest_client/models/update_subscription.rb +++ b/lib/cybersource_rest_client/models/update_subscription.rb @@ -48,7 +48,7 @@ def self.json_map # Attribute type mapping. def self.swagger_types { - :'client_reference_information' => :'Rbsv1subscriptionsClientReferenceInformation', + :'client_reference_information' => :'GetAllSubscriptionsResponseClientReferenceInformation', :'processing_information' => :'Rbsv1subscriptionsProcessingInformation', :'plan_information' => :'Rbsv1subscriptionsidPlanInformation', :'subscription_information' => :'Rbsv1subscriptionsidSubscriptionInformation', diff --git a/lib/cybersource_rest_client/models/upv1capturecontexts_data.rb b/lib/cybersource_rest_client/models/upv1capturecontexts_data.rb index 2fe73bd1..e96b963e 100644 --- a/lib/cybersource_rest_client/models/upv1capturecontexts_data.rb +++ b/lib/cybersource_rest_client/models/upv1capturecontexts_data.rb @@ -29,6 +29,10 @@ class Upv1capturecontextsData attr_accessor :merchant_defined_information + attr_accessor :device_information + + attr_accessor :payment_information + # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { @@ -39,7 +43,9 @@ def self.attribute_map :'merchant_information' => :'merchantInformation', :'processing_information' => :'processingInformation', :'recipient_information' => :'recipientInformation', - :'merchant_defined_information' => :'merchantDefinedInformation' + :'merchant_defined_information' => :'merchantDefinedInformation', + :'device_information' => :'deviceInformation', + :'payment_information' => :'paymentInformation' } end @@ -53,7 +59,9 @@ def self.json_map :'merchant_information' => :'merchant_information', :'processing_information' => :'processing_information', :'recipient_information' => :'recipient_information', - :'merchant_defined_information' => :'merchant_defined_information' + :'merchant_defined_information' => :'merchant_defined_information', + :'device_information' => :'device_information', + :'payment_information' => :'payment_information' } end @@ -67,7 +75,9 @@ def self.swagger_types :'merchant_information' => :'Upv1capturecontextsDataMerchantInformation', :'processing_information' => :'Upv1capturecontextsDataProcessingInformation', :'recipient_information' => :'Upv1capturecontextsDataRecipientInformation', - :'merchant_defined_information' => :'Upv1capturecontextsDataMerchantDefinedInformation' + :'merchant_defined_information' => :'Upv1capturecontextsDataMerchantDefinedInformation', + :'device_information' => :'Upv1capturecontextsDataDeviceInformation', + :'payment_information' => :'Upv1capturecontextsDataPaymentInformation' } end @@ -110,6 +120,14 @@ def initialize(attributes = {}) if attributes.has_key?(:'merchantDefinedInformation') self.merchant_defined_information = attributes[:'merchantDefinedInformation'] end + + if attributes.has_key?(:'deviceInformation') + self.device_information = attributes[:'deviceInformation'] + end + + if attributes.has_key?(:'paymentInformation') + self.payment_information = attributes[:'paymentInformation'] + end end # Show invalid properties with the reasons. Usually used together with valid? @@ -137,7 +155,9 @@ def ==(o) merchant_information == o.merchant_information && processing_information == o.processing_information && recipient_information == o.recipient_information && - merchant_defined_information == o.merchant_defined_information + merchant_defined_information == o.merchant_defined_information && + device_information == o.device_information && + payment_information == o.payment_information end # @see the `==` method @@ -149,7 +169,7 @@ def eql?(o) # Calculates hash code according to all attributes. # @return [Fixnum] Hash code def hash - [order_information, buyer_information, client_reference_information, consumer_authentication_information, merchant_information, processing_information, recipient_information, merchant_defined_information].hash + [order_information, buyer_information, client_reference_information, consumer_authentication_information, merchant_information, processing_information, recipient_information, merchant_defined_information, device_information, payment_information].hash end # Builds the object from hash diff --git a/lib/cybersource_rest_client/models/upv1capturecontexts_data_buyer_information.rb b/lib/cybersource_rest_client/models/upv1capturecontexts_data_buyer_information.rb index f7342bba..a90167a5 100644 --- a/lib/cybersource_rest_client/models/upv1capturecontexts_data_buyer_information.rb +++ b/lib/cybersource_rest_client/models/upv1capturecontexts_data_buyer_information.rb @@ -15,16 +15,26 @@ module CyberSource class Upv1capturecontextsDataBuyerInformation attr_accessor :personal_identification + # The Merchant Customer ID attr_accessor :merchant_customer_id + # The Company Tax ID attr_accessor :company_tax_id + # The date of birth + attr_accessor :date_of_birth + + # The preferred language + attr_accessor :language + # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { :'personal_identification' => :'personalIdentification', :'merchant_customer_id' => :'merchantCustomerId', - :'company_tax_id' => :'companyTaxId' + :'company_tax_id' => :'companyTaxId', + :'date_of_birth' => :'dateOfBirth', + :'language' => :'language' } end @@ -33,7 +43,9 @@ def self.json_map { :'personal_identification' => :'personal_identification', :'merchant_customer_id' => :'merchant_customer_id', - :'company_tax_id' => :'company_tax_id' + :'company_tax_id' => :'company_tax_id', + :'date_of_birth' => :'date_of_birth', + :'language' => :'language' } end @@ -42,7 +54,9 @@ def self.swagger_types { :'personal_identification' => :'Upv1capturecontextsDataBuyerInformationPersonalIdentification', :'merchant_customer_id' => :'String', - :'company_tax_id' => :'String' + :'company_tax_id' => :'String', + :'date_of_birth' => :'String', + :'language' => :'String' } end @@ -65,6 +79,14 @@ def initialize(attributes = {}) if attributes.has_key?(:'companyTaxId') self.company_tax_id = attributes[:'companyTaxId'] end + + if attributes.has_key?(:'dateOfBirth') + self.date_of_birth = attributes[:'dateOfBirth'] + end + + if attributes.has_key?(:'language') + self.language = attributes[:'language'] + end end # Show invalid properties with the reasons. Usually used together with valid? @@ -92,6 +114,18 @@ def company_tax_id=(company_tax_id) @company_tax_id = company_tax_id end + # Custom attribute writer method with validation + # @param [Object] date_of_birth Value to be assigned + def date_of_birth=(date_of_birth) + @date_of_birth = date_of_birth + end + + # Custom attribute writer method with validation + # @param [Object] language Value to be assigned + def language=(language) + @language = language + end + # Checks equality by comparing each attribute. # @param [Object] Object to be compared def ==(o) @@ -99,7 +133,9 @@ def ==(o) self.class == o.class && personal_identification == o.personal_identification && merchant_customer_id == o.merchant_customer_id && - company_tax_id == o.company_tax_id + company_tax_id == o.company_tax_id && + date_of_birth == o.date_of_birth && + language == o.language end # @see the `==` method @@ -111,7 +147,7 @@ def eql?(o) # Calculates hash code according to all attributes. # @return [Fixnum] Hash code def hash - [personal_identification, merchant_customer_id, company_tax_id].hash + [personal_identification, merchant_customer_id, company_tax_id, date_of_birth, language].hash end # Builds the object from hash diff --git a/lib/cybersource_rest_client/models/upv1capturecontexts_data_buyer_information_personal_identification.rb b/lib/cybersource_rest_client/models/upv1capturecontexts_data_buyer_information_personal_identification.rb index 2c14923d..0e18db4f 100644 --- a/lib/cybersource_rest_client/models/upv1capturecontexts_data_buyer_information_personal_identification.rb +++ b/lib/cybersource_rest_client/models/upv1capturecontexts_data_buyer_information_personal_identification.rb @@ -13,6 +13,7 @@ module CyberSource class Upv1capturecontextsDataBuyerInformationPersonalIdentification + # CPF Number (Brazil). Must be 11 digits in length. attr_accessor :cpf # Attribute mapping from ruby-style variable name to JSON key. diff --git a/lib/cybersource_rest_client/models/upv1capturecontexts_data_client_reference_information_partner.rb b/lib/cybersource_rest_client/models/upv1capturecontexts_data_client_reference_information_partner.rb index f02df711..71867f24 100644 --- a/lib/cybersource_rest_client/models/upv1capturecontexts_data_client_reference_information_partner.rb +++ b/lib/cybersource_rest_client/models/upv1capturecontexts_data_client_reference_information_partner.rb @@ -21,7 +21,7 @@ class Upv1capturecontextsDataClientReferenceInformationPartner def self.attribute_map { :'developer_id' => :'developerId', - :'solution_id' => :'SolutionId' + :'solution_id' => :'solutionId' } end @@ -53,8 +53,8 @@ def initialize(attributes = {}) self.developer_id = attributes[:'developerId'] end - if attributes.has_key?(:'SolutionId') - self.solution_id = attributes[:'SolutionId'] + if attributes.has_key?(:'solutionId') + self.solution_id = attributes[:'solutionId'] end end diff --git a/lib/cybersource_rest_client/models/upv1capturecontexts_data_consumer_authentication_information.rb b/lib/cybersource_rest_client/models/upv1capturecontexts_data_consumer_authentication_information.rb index b996fb0f..d2cbbf80 100644 --- a/lib/cybersource_rest_client/models/upv1capturecontexts_data_consumer_authentication_information.rb +++ b/lib/cybersource_rest_client/models/upv1capturecontexts_data_consumer_authentication_information.rb @@ -13,15 +13,21 @@ module CyberSource class Upv1capturecontextsDataConsumerAuthenticationInformation + # The challenge code attr_accessor :challenge_code + # The message category attr_accessor :message_category + # The acs window size + attr_accessor :acs_window_size + # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { :'challenge_code' => :'challengeCode', - :'message_category' => :'messageCategory' + :'message_category' => :'messageCategory', + :'acs_window_size' => :'acsWindowSize' } end @@ -29,7 +35,8 @@ def self.attribute_map def self.json_map { :'challenge_code' => :'challenge_code', - :'message_category' => :'message_category' + :'message_category' => :'message_category', + :'acs_window_size' => :'acs_window_size' } end @@ -37,7 +44,8 @@ def self.json_map def self.swagger_types { :'challenge_code' => :'String', - :'message_category' => :'String' + :'message_category' => :'String', + :'acs_window_size' => :'String' } end @@ -56,6 +64,10 @@ def initialize(attributes = {}) if attributes.has_key?(:'messageCategory') self.message_category = attributes[:'messageCategory'] end + + if attributes.has_key?(:'acsWindowSize') + self.acs_window_size = attributes[:'acsWindowSize'] + end end # Show invalid properties with the reasons. Usually used together with valid? @@ -83,13 +95,20 @@ def message_category=(message_category) @message_category = message_category end + # Custom attribute writer method with validation + # @param [Object] acs_window_size Value to be assigned + def acs_window_size=(acs_window_size) + @acs_window_size = acs_window_size + end + # Checks equality by comparing each attribute. # @param [Object] Object to be compared def ==(o) return true if self.equal?(o) self.class == o.class && challenge_code == o.challenge_code && - message_category == o.message_category + message_category == o.message_category && + acs_window_size == o.acs_window_size end # @see the `==` method @@ -101,7 +120,7 @@ def eql?(o) # Calculates hash code according to all attributes. # @return [Fixnum] Hash code def hash - [challenge_code, message_category].hash + [challenge_code, message_category, acs_window_size].hash end # Builds the object from hash diff --git a/lib/cybersource_rest_client/models/upv1capturecontexts_data_device_information.rb b/lib/cybersource_rest_client/models/upv1capturecontexts_data_device_information.rb new file mode 100644 index 00000000..c9154ec4 --- /dev/null +++ b/lib/cybersource_rest_client/models/upv1capturecontexts_data_device_information.rb @@ -0,0 +1,196 @@ +=begin +#CyberSource Merged Spec + +#All CyberSource API specs merged together. These are available at https://developer.cybersource.com/api/reference/api-reference.html + +OpenAPI spec version: 0.0.1 + +Generated by: https://github.com/swagger-api/swagger-codegen.git +Swagger Codegen version: 2.4.38 +=end + +require 'date' + +module CyberSource + class Upv1capturecontextsDataDeviceInformation + # The IP Address + attr_accessor :ip_address + + # Attribute mapping from ruby-style variable name to JSON key. + def self.attribute_map + { + :'ip_address' => :'ipAddress' + } + end + + # Attribute mapping from JSON key to ruby-style variable name. + def self.json_map + { + :'ip_address' => :'ip_address' + } + end + + # Attribute type mapping. + def self.swagger_types + { + :'ip_address' => :'String' + } + end + + # Initializes the object + # @param [Hash] attributes Model attributes in the form of hash + def initialize(attributes = {}) + return unless attributes.is_a?(Hash) + + # convert string to symbol for hash key + attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v } + + if attributes.has_key?(:'ipAddress') + self.ip_address = attributes[:'ipAddress'] + end + end + + # Show invalid properties with the reasons. Usually used together with valid? + # @return Array for valid properties with the reasons + def list_invalid_properties + invalid_properties = Array.new + invalid_properties + end + + # Check to see if the all the properties in the model are valid + # @return true if the model is valid + def valid? + true + end + + # Custom attribute writer method with validation + # @param [Object] ip_address Value to be assigned + def ip_address=(ip_address) + @ip_address = ip_address + end + + # Checks equality by comparing each attribute. + # @param [Object] Object to be compared + def ==(o) + return true if self.equal?(o) + self.class == o.class && + ip_address == o.ip_address + end + + # @see the `==` method + # @param [Object] Object to be compared + def eql?(o) + self == o + end + + # Calculates hash code according to all attributes. + # @return [Fixnum] Hash code + def hash + [ip_address].hash + end + + # Builds the object from hash + # @param [Hash] attributes Model attributes in the form of hash + # @return [Object] Returns the model itself + def build_from_hash(attributes) + return nil unless attributes.is_a?(Hash) + self.class.swagger_types.each_pair do |key, type| + if type =~ /\AArray<(.*)>/i + # check to ensure the input is an array given that the the attribute + # is documented as an array but the input is not + if attributes[self.class.attribute_map[key]].is_a?(Array) + self.send("#{self.class.json_map[key]}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) + end + elsif !attributes[self.class.attribute_map[key]].nil? + self.send("#{self.class.json_map[key]}=", _deserialize(type, attributes[self.class.attribute_map[key]])) + end # or else data not found in attributes(hash), not an issue as the data can be optional + end + + self + end + + # Deserializes the data based on type + # @param string type Data type + # @param string value Value to be deserialized + # @return [Object] Deserialized data + def _deserialize(type, value) + case type.to_sym + when :DateTime + DateTime.parse(value) + when :Date + Date.parse(value) + when :String + value.to_s + when :Integer + value.to_i + when :Float + value.to_f + when :BOOLEAN + if value.to_s =~ /\A(true|t|yes|y|1)\z/i + true + else + false + end + when :Object + # generic object (usually a Hash), return directly + value + when /\AArray<(?.+)>\z/ + inner_type = Regexp.last_match[:inner_type] + value.map { |v| _deserialize(inner_type, v) } + when /\AHash<(?.+?), (?.+)>\z/ + k_type = Regexp.last_match[:k_type] + v_type = Regexp.last_match[:v_type] + {}.tap do |hash| + value.each do |k, v| + hash[_deserialize(k_type, k)] = _deserialize(v_type, v) + end + end + else # model + temp_model = CyberSource.const_get(type).new + temp_model.build_from_hash(value) + end + end + + # Returns the string representation of the object + # @return [String] String presentation of the object + def to_s + to_hash.to_s + end + + # to_body is an alias to to_hash (backward compatibility) + # @return [Hash] Returns the object in the form of hash + def to_body + to_hash + end + + # Returns the object in the form of hash + # @return [Hash] Returns the object in the form of hash + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + next if value.nil? + hash[param] = _to_hash(value) + end + hash + end + + # Outputs non-array value in the form of hash + # For object, use to_hash. Otherwise, just return the value + # @param [Object] value Any valid value + # @return [Hash] Returns the value in the form of hash + def _to_hash(value) + if value.is_a?(Array) + value.compact.map { |v| _to_hash(v) } + elsif value.is_a?(Hash) + {}.tap do |hash| + value.each { |k, v| hash[k] = _to_hash(v) } + end + elsif value.respond_to? :to_hash + value.to_hash + else + value + end + end + end +end diff --git a/lib/cybersource_rest_client/models/upv1capturecontexts_data_merchant_information_merchant_descriptor.rb b/lib/cybersource_rest_client/models/upv1capturecontexts_data_merchant_information_merchant_descriptor.rb index 2caad717..904cd074 100644 --- a/lib/cybersource_rest_client/models/upv1capturecontexts_data_merchant_information_merchant_descriptor.rb +++ b/lib/cybersource_rest_client/models/upv1capturecontexts_data_merchant_information_merchant_descriptor.rb @@ -16,24 +16,66 @@ class Upv1capturecontextsDataMerchantInformationMerchantDescriptor # The name of the merchant attr_accessor :name + # The alternate name of the merchant + attr_accessor :alternate_name + + # The locality of the merchant + attr_accessor :locality + + # The phone number of the merchant + attr_accessor :phone + + # The country code of the merchant + attr_accessor :country + + # The postal code of the merchant + attr_accessor :postal_code + + # The administrative area of the merchant + attr_accessor :administrative_area + + # The first line of the merchant's address + attr_accessor :address1 + # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { - :'name' => :'name' + :'name' => :'name', + :'alternate_name' => :'alternateName', + :'locality' => :'locality', + :'phone' => :'phone', + :'country' => :'country', + :'postal_code' => :'postalCode', + :'administrative_area' => :'administrativeArea', + :'address1' => :'address1' } end # Attribute mapping from JSON key to ruby-style variable name. def self.json_map { - :'name' => :'name' + :'name' => :'name', + :'alternate_name' => :'alternate_name', + :'locality' => :'locality', + :'phone' => :'phone', + :'country' => :'country', + :'postal_code' => :'postal_code', + :'administrative_area' => :'administrative_area', + :'address1' => :'address1' } end # Attribute type mapping. def self.swagger_types { - :'name' => :'String' + :'name' => :'String', + :'alternate_name' => :'String', + :'locality' => :'String', + :'phone' => :'String', + :'country' => :'String', + :'postal_code' => :'String', + :'administrative_area' => :'String', + :'address1' => :'String' } end @@ -48,6 +90,34 @@ def initialize(attributes = {}) if attributes.has_key?(:'name') self.name = attributes[:'name'] end + + if attributes.has_key?(:'alternateName') + self.alternate_name = attributes[:'alternateName'] + end + + if attributes.has_key?(:'locality') + self.locality = attributes[:'locality'] + end + + if attributes.has_key?(:'phone') + self.phone = attributes[:'phone'] + end + + if attributes.has_key?(:'country') + self.country = attributes[:'country'] + end + + if attributes.has_key?(:'postalCode') + self.postal_code = attributes[:'postalCode'] + end + + if attributes.has_key?(:'administrativeArea') + self.administrative_area = attributes[:'administrativeArea'] + end + + if attributes.has_key?(:'address1') + self.address1 = attributes[:'address1'] + end end # Show invalid properties with the reasons. Usually used together with valid? @@ -69,12 +139,61 @@ def name=(name) @name = name end + # Custom attribute writer method with validation + # @param [Object] alternate_name Value to be assigned + def alternate_name=(alternate_name) + @alternate_name = alternate_name + end + + # Custom attribute writer method with validation + # @param [Object] locality Value to be assigned + def locality=(locality) + @locality = locality + end + + # Custom attribute writer method with validation + # @param [Object] phone Value to be assigned + def phone=(phone) + @phone = phone + end + + # Custom attribute writer method with validation + # @param [Object] country Value to be assigned + def country=(country) + @country = country + end + + # Custom attribute writer method with validation + # @param [Object] postal_code Value to be assigned + def postal_code=(postal_code) + @postal_code = postal_code + end + + # Custom attribute writer method with validation + # @param [Object] administrative_area Value to be assigned + def administrative_area=(administrative_area) + @administrative_area = administrative_area + end + + # Custom attribute writer method with validation + # @param [Object] address1 Value to be assigned + def address1=(address1) + @address1 = address1 + end + # Checks equality by comparing each attribute. # @param [Object] Object to be compared def ==(o) return true if self.equal?(o) self.class == o.class && - name == o.name + name == o.name && + alternate_name == o.alternate_name && + locality == o.locality && + phone == o.phone && + country == o.country && + postal_code == o.postal_code && + administrative_area == o.administrative_area && + address1 == o.address1 end # @see the `==` method @@ -86,7 +205,7 @@ def eql?(o) # Calculates hash code according to all attributes. # @return [Fixnum] Hash code def hash - [name].hash + [name, alternate_name, locality, phone, country, postal_code, administrative_area, address1].hash end # Builds the object from hash diff --git a/lib/cybersource_rest_client/models/upv1capturecontexts_data_order_information.rb b/lib/cybersource_rest_client/models/upv1capturecontexts_data_order_information.rb index 642709c2..7d195a49 100644 --- a/lib/cybersource_rest_client/models/upv1capturecontexts_data_order_information.rb +++ b/lib/cybersource_rest_client/models/upv1capturecontexts_data_order_information.rb @@ -21,13 +21,16 @@ class Upv1capturecontextsDataOrderInformation attr_accessor :line_items + attr_accessor :invoice_details + # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { :'amount_details' => :'amountDetails', :'bill_to' => :'billTo', :'ship_to' => :'shipTo', - :'line_items' => :'lineItems' + :'line_items' => :'lineItems', + :'invoice_details' => :'invoiceDetails' } end @@ -37,7 +40,8 @@ def self.json_map :'amount_details' => :'amount_details', :'bill_to' => :'bill_to', :'ship_to' => :'ship_to', - :'line_items' => :'line_items' + :'line_items' => :'line_items', + :'invoice_details' => :'invoice_details' } end @@ -47,7 +51,8 @@ def self.swagger_types :'amount_details' => :'Upv1capturecontextsDataOrderInformationAmountDetails', :'bill_to' => :'Upv1capturecontextsDataOrderInformationBillTo', :'ship_to' => :'Upv1capturecontextsDataOrderInformationShipTo', - :'line_items' => :'Upv1capturecontextsDataOrderInformationLineItems' + :'line_items' => :'Upv1capturecontextsDataOrderInformationLineItems', + :'invoice_details' => :'Upv1capturecontextsDataOrderInformationInvoiceDetails' } end @@ -74,6 +79,10 @@ def initialize(attributes = {}) if attributes.has_key?(:'lineItems') self.line_items = attributes[:'lineItems'] end + + if attributes.has_key?(:'invoiceDetails') + self.invoice_details = attributes[:'invoiceDetails'] + end end # Show invalid properties with the reasons. Usually used together with valid? @@ -97,7 +106,8 @@ def ==(o) amount_details == o.amount_details && bill_to == o.bill_to && ship_to == o.ship_to && - line_items == o.line_items + line_items == o.line_items && + invoice_details == o.invoice_details end # @see the `==` method @@ -109,7 +119,7 @@ def eql?(o) # Calculates hash code according to all attributes. # @return [Fixnum] Hash code def hash - [amount_details, bill_to, ship_to, line_items].hash + [amount_details, bill_to, ship_to, line_items, invoice_details].hash end # Builds the object from hash diff --git a/lib/cybersource_rest_client/models/upv1capturecontexts_data_order_information_amount_details.rb b/lib/cybersource_rest_client/models/upv1capturecontexts_data_order_information_amount_details.rb index 6cb0cc49..6ad5ffa3 100644 --- a/lib/cybersource_rest_client/models/upv1capturecontexts_data_order_information_amount_details.rb +++ b/lib/cybersource_rest_client/models/upv1capturecontexts_data_order_information_amount_details.rb @@ -33,6 +33,8 @@ class Upv1capturecontextsDataOrderInformationAmountDetails # This field defines the tax amount applicable to the order. attr_accessor :tax_amount + attr_accessor :tax_details + # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { @@ -42,7 +44,8 @@ def self.attribute_map :'discount_amount' => :'discountAmount', :'sub_total_amount' => :'subTotalAmount', :'service_fee_amount' => :'serviceFeeAmount', - :'tax_amount' => :'taxAmount' + :'tax_amount' => :'taxAmount', + :'tax_details' => :'taxDetails' } end @@ -55,7 +58,8 @@ def self.json_map :'discount_amount' => :'discount_amount', :'sub_total_amount' => :'sub_total_amount', :'service_fee_amount' => :'service_fee_amount', - :'tax_amount' => :'tax_amount' + :'tax_amount' => :'tax_amount', + :'tax_details' => :'tax_details' } end @@ -68,7 +72,8 @@ def self.swagger_types :'discount_amount' => :'String', :'sub_total_amount' => :'String', :'service_fee_amount' => :'String', - :'tax_amount' => :'String' + :'tax_amount' => :'String', + :'tax_details' => :'Upv1capturecontextsDataOrderInformationAmountDetailsTaxDetails' } end @@ -107,6 +112,10 @@ def initialize(attributes = {}) if attributes.has_key?(:'taxAmount') self.tax_amount = attributes[:'taxAmount'] end + + if attributes.has_key?(:'taxDetails') + self.tax_details = attributes[:'taxDetails'] + end end # Show invalid properties with the reasons. Usually used together with valid? @@ -133,7 +142,8 @@ def ==(o) discount_amount == o.discount_amount && sub_total_amount == o.sub_total_amount && service_fee_amount == o.service_fee_amount && - tax_amount == o.tax_amount + tax_amount == o.tax_amount && + tax_details == o.tax_details end # @see the `==` method @@ -145,7 +155,7 @@ def eql?(o) # Calculates hash code according to all attributes. # @return [Fixnum] Hash code def hash - [total_amount, currency, surcharge, discount_amount, sub_total_amount, service_fee_amount, tax_amount].hash + [total_amount, currency, surcharge, discount_amount, sub_total_amount, service_fee_amount, tax_amount, tax_details].hash end # Builds the object from hash diff --git a/lib/cybersource_rest_client/models/upv1capturecontexts_data_order_information_amount_details_tax_details.rb b/lib/cybersource_rest_client/models/upv1capturecontexts_data_order_information_amount_details_tax_details.rb new file mode 100644 index 00000000..8312f8a8 --- /dev/null +++ b/lib/cybersource_rest_client/models/upv1capturecontexts_data_order_information_amount_details_tax_details.rb @@ -0,0 +1,213 @@ +=begin +#CyberSource Merged Spec + +#All CyberSource API specs merged together. These are available at https://developer.cybersource.com/api/reference/api-reference.html + +OpenAPI spec version: 0.0.1 + +Generated by: https://github.com/swagger-api/swagger-codegen.git +Swagger Codegen version: 2.4.38 +=end + +require 'date' + +module CyberSource + class Upv1capturecontextsDataOrderInformationAmountDetailsTaxDetails + # This field defines the tax identifier/registration number + attr_accessor :tax_id + + # This field defines the Tax type code (N=National, S=State, L=Local etc) + attr_accessor :type + + # Attribute mapping from ruby-style variable name to JSON key. + def self.attribute_map + { + :'tax_id' => :'taxId', + :'type' => :'type' + } + end + + # Attribute mapping from JSON key to ruby-style variable name. + def self.json_map + { + :'tax_id' => :'tax_id', + :'type' => :'type' + } + end + + # Attribute type mapping. + def self.swagger_types + { + :'tax_id' => :'String', + :'type' => :'String' + } + end + + # Initializes the object + # @param [Hash] attributes Model attributes in the form of hash + def initialize(attributes = {}) + return unless attributes.is_a?(Hash) + + # convert string to symbol for hash key + attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v } + + if attributes.has_key?(:'taxId') + self.tax_id = attributes[:'taxId'] + end + + if attributes.has_key?(:'type') + self.type = attributes[:'type'] + end + end + + # Show invalid properties with the reasons. Usually used together with valid? + # @return Array for valid properties with the reasons + def list_invalid_properties + invalid_properties = Array.new + invalid_properties + end + + # Check to see if the all the properties in the model are valid + # @return true if the model is valid + def valid? + true + end + + # Custom attribute writer method with validation + # @param [Object] tax_id Value to be assigned + def tax_id=(tax_id) + @tax_id = tax_id + end + + # Custom attribute writer method with validation + # @param [Object] type Value to be assigned + def type=(type) + @type = type + end + + # Checks equality by comparing each attribute. + # @param [Object] Object to be compared + def ==(o) + return true if self.equal?(o) + self.class == o.class && + tax_id == o.tax_id && + type == o.type + end + + # @see the `==` method + # @param [Object] Object to be compared + def eql?(o) + self == o + end + + # Calculates hash code according to all attributes. + # @return [Fixnum] Hash code + def hash + [tax_id, type].hash + end + + # Builds the object from hash + # @param [Hash] attributes Model attributes in the form of hash + # @return [Object] Returns the model itself + def build_from_hash(attributes) + return nil unless attributes.is_a?(Hash) + self.class.swagger_types.each_pair do |key, type| + if type =~ /\AArray<(.*)>/i + # check to ensure the input is an array given that the the attribute + # is documented as an array but the input is not + if attributes[self.class.attribute_map[key]].is_a?(Array) + self.send("#{self.class.json_map[key]}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) + end + elsif !attributes[self.class.attribute_map[key]].nil? + self.send("#{self.class.json_map[key]}=", _deserialize(type, attributes[self.class.attribute_map[key]])) + end # or else data not found in attributes(hash), not an issue as the data can be optional + end + + self + end + + # Deserializes the data based on type + # @param string type Data type + # @param string value Value to be deserialized + # @return [Object] Deserialized data + def _deserialize(type, value) + case type.to_sym + when :DateTime + DateTime.parse(value) + when :Date + Date.parse(value) + when :String + value.to_s + when :Integer + value.to_i + when :Float + value.to_f + when :BOOLEAN + if value.to_s =~ /\A(true|t|yes|y|1)\z/i + true + else + false + end + when :Object + # generic object (usually a Hash), return directly + value + when /\AArray<(?.+)>\z/ + inner_type = Regexp.last_match[:inner_type] + value.map { |v| _deserialize(inner_type, v) } + when /\AHash<(?.+?), (?.+)>\z/ + k_type = Regexp.last_match[:k_type] + v_type = Regexp.last_match[:v_type] + {}.tap do |hash| + value.each do |k, v| + hash[_deserialize(k_type, k)] = _deserialize(v_type, v) + end + end + else # model + temp_model = CyberSource.const_get(type).new + temp_model.build_from_hash(value) + end + end + + # Returns the string representation of the object + # @return [String] String presentation of the object + def to_s + to_hash.to_s + end + + # to_body is an alias to to_hash (backward compatibility) + # @return [Hash] Returns the object in the form of hash + def to_body + to_hash + end + + # Returns the object in the form of hash + # @return [Hash] Returns the object in the form of hash + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + next if value.nil? + hash[param] = _to_hash(value) + end + hash + end + + # Outputs non-array value in the form of hash + # For object, use to_hash. Otherwise, just return the value + # @param [Object] value Any valid value + # @return [Hash] Returns the value in the form of hash + def _to_hash(value) + if value.is_a?(Array) + value.compact.map { |v| _to_hash(v) } + elsif value.is_a?(Hash) + {}.tap do |hash| + value.each { |k, v| hash[k] = _to_hash(v) } + end + elsif value.respond_to? :to_hash + value.to_hash + else + value + end + end + end +end diff --git a/lib/cybersource_rest_client/models/upv1capturecontexts_data_order_information_invoice_details.rb b/lib/cybersource_rest_client/models/upv1capturecontexts_data_order_information_invoice_details.rb new file mode 100644 index 00000000..96bbf6a9 --- /dev/null +++ b/lib/cybersource_rest_client/models/upv1capturecontexts_data_order_information_invoice_details.rb @@ -0,0 +1,213 @@ +=begin +#CyberSource Merged Spec + +#All CyberSource API specs merged together. These are available at https://developer.cybersource.com/api/reference/api-reference.html + +OpenAPI spec version: 0.0.1 + +Generated by: https://github.com/swagger-api/swagger-codegen.git +Swagger Codegen version: 2.4.38 +=end + +require 'date' + +module CyberSource + class Upv1capturecontextsDataOrderInformationInvoiceDetails + # Invoice number + attr_accessor :invoice_number + + # Product description + attr_accessor :product_description + + # Attribute mapping from ruby-style variable name to JSON key. + def self.attribute_map + { + :'invoice_number' => :'invoiceNumber', + :'product_description' => :'productDescription' + } + end + + # Attribute mapping from JSON key to ruby-style variable name. + def self.json_map + { + :'invoice_number' => :'invoice_number', + :'product_description' => :'product_description' + } + end + + # Attribute type mapping. + def self.swagger_types + { + :'invoice_number' => :'String', + :'product_description' => :'String' + } + end + + # Initializes the object + # @param [Hash] attributes Model attributes in the form of hash + def initialize(attributes = {}) + return unless attributes.is_a?(Hash) + + # convert string to symbol for hash key + attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v } + + if attributes.has_key?(:'invoiceNumber') + self.invoice_number = attributes[:'invoiceNumber'] + end + + if attributes.has_key?(:'productDescription') + self.product_description = attributes[:'productDescription'] + end + end + + # Show invalid properties with the reasons. Usually used together with valid? + # @return Array for valid properties with the reasons + def list_invalid_properties + invalid_properties = Array.new + invalid_properties + end + + # Check to see if the all the properties in the model are valid + # @return true if the model is valid + def valid? + true + end + + # Custom attribute writer method with validation + # @param [Object] invoice_number Value to be assigned + def invoice_number=(invoice_number) + @invoice_number = invoice_number + end + + # Custom attribute writer method with validation + # @param [Object] product_description Value to be assigned + def product_description=(product_description) + @product_description = product_description + end + + # Checks equality by comparing each attribute. + # @param [Object] Object to be compared + def ==(o) + return true if self.equal?(o) + self.class == o.class && + invoice_number == o.invoice_number && + product_description == o.product_description + end + + # @see the `==` method + # @param [Object] Object to be compared + def eql?(o) + self == o + end + + # Calculates hash code according to all attributes. + # @return [Fixnum] Hash code + def hash + [invoice_number, product_description].hash + end + + # Builds the object from hash + # @param [Hash] attributes Model attributes in the form of hash + # @return [Object] Returns the model itself + def build_from_hash(attributes) + return nil unless attributes.is_a?(Hash) + self.class.swagger_types.each_pair do |key, type| + if type =~ /\AArray<(.*)>/i + # check to ensure the input is an array given that the the attribute + # is documented as an array but the input is not + if attributes[self.class.attribute_map[key]].is_a?(Array) + self.send("#{self.class.json_map[key]}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) + end + elsif !attributes[self.class.attribute_map[key]].nil? + self.send("#{self.class.json_map[key]}=", _deserialize(type, attributes[self.class.attribute_map[key]])) + end # or else data not found in attributes(hash), not an issue as the data can be optional + end + + self + end + + # Deserializes the data based on type + # @param string type Data type + # @param string value Value to be deserialized + # @return [Object] Deserialized data + def _deserialize(type, value) + case type.to_sym + when :DateTime + DateTime.parse(value) + when :Date + Date.parse(value) + when :String + value.to_s + when :Integer + value.to_i + when :Float + value.to_f + when :BOOLEAN + if value.to_s =~ /\A(true|t|yes|y|1)\z/i + true + else + false + end + when :Object + # generic object (usually a Hash), return directly + value + when /\AArray<(?.+)>\z/ + inner_type = Regexp.last_match[:inner_type] + value.map { |v| _deserialize(inner_type, v) } + when /\AHash<(?.+?), (?.+)>\z/ + k_type = Regexp.last_match[:k_type] + v_type = Regexp.last_match[:v_type] + {}.tap do |hash| + value.each do |k, v| + hash[_deserialize(k_type, k)] = _deserialize(v_type, v) + end + end + else # model + temp_model = CyberSource.const_get(type).new + temp_model.build_from_hash(value) + end + end + + # Returns the string representation of the object + # @return [String] String presentation of the object + def to_s + to_hash.to_s + end + + # to_body is an alias to to_hash (backward compatibility) + # @return [Hash] Returns the object in the form of hash + def to_body + to_hash + end + + # Returns the object in the form of hash + # @return [Hash] Returns the object in the form of hash + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + next if value.nil? + hash[param] = _to_hash(value) + end + hash + end + + # Outputs non-array value in the form of hash + # For object, use to_hash. Otherwise, just return the value + # @param [Object] value Any valid value + # @return [Hash] Returns the value in the form of hash + def _to_hash(value) + if value.is_a?(Array) + value.compact.map { |v| _to_hash(v) } + elsif value.is_a?(Hash) + {}.tap do |hash| + value.each { |k, v| hash[k] = _to_hash(v) } + end + elsif value.respond_to? :to_hash + value.to_hash + else + value + end + end + end +end diff --git a/lib/cybersource_rest_client/models/upv1capturecontexts_data_order_information_line_items.rb b/lib/cybersource_rest_client/models/upv1capturecontexts_data_order_information_line_items.rb index c726daa9..744a1e37 100644 --- a/lib/cybersource_rest_client/models/upv1capturecontexts_data_order_information_line_items.rb +++ b/lib/cybersource_rest_client/models/upv1capturecontexts_data_order_information_line_items.rb @@ -13,66 +13,96 @@ module CyberSource class Upv1capturecontextsDataOrderInformationLineItems + # Code identifying the product. attr_accessor :product_code + # Name of the product. attr_accessor :product_name + # Stock Keeping Unit identifier attr_accessor :product_sku + # Quantity of the product attr_accessor :quantity + # Price per unit attr_accessor :unit_price + # Unit of measure (e.g. EA, KG, LB) attr_accessor :unit_of_measure + # Total amount for the line item attr_accessor :total_amount + # Tax amount applied attr_accessor :tax_amount + # Tax rate applied attr_accessor :tax_rate + # Indicates if tax applied after discount attr_accessor :tax_applied_after_discount + # Tax status indicator attr_accessor :tax_status_indicator + # Tax type code attr_accessor :tax_type_code + # Indicates if amount includes tax attr_accessor :amount_includes_tax + # Type of supply attr_accessor :type_of_supply + # Commodity code attr_accessor :commodity_code + # Discount amount applied attr_accessor :discount_amount + # Indicates if discount applied attr_accessor :discount_applied + # Discount rate applied attr_accessor :discount_rate + # Invoice number for the line item attr_accessor :invoice_number attr_accessor :tax_details + # Fulfillment type attr_accessor :fulfillment_type + # Weight of the product attr_accessor :weight + # Weight identifier attr_accessor :weight_identifier + # Unit of weight of the product attr_accessor :weight_unit + # Reference data code attr_accessor :reference_data_code + # Reference data number attr_accessor :reference_data_number + # Unit tax amount attr_accessor :unit_tax_amount + # Description of the product attr_accessor :product_description + # Gift card currency attr_accessor :gift_card_currency + # Shipping destination types attr_accessor :shipping_destination_types + # Indicates if item is a gift attr_accessor :gift attr_accessor :passenger diff --git a/lib/cybersource_rest_client/models/upv1capturecontexts_data_order_information_line_items_passenger.rb b/lib/cybersource_rest_client/models/upv1capturecontexts_data_order_information_line_items_passenger.rb index 4d5e6075..c7eeff74 100644 --- a/lib/cybersource_rest_client/models/upv1capturecontexts_data_order_information_line_items_passenger.rb +++ b/lib/cybersource_rest_client/models/upv1capturecontexts_data_order_information_line_items_passenger.rb @@ -13,20 +13,28 @@ module CyberSource class Upv1capturecontextsDataOrderInformationLineItemsPassenger + # Passenger type attr_accessor :type + # Passenger status attr_accessor :status + # Passenger phone number attr_accessor :phone + # Passenger first name attr_accessor :first_name + # Passenger last name attr_accessor :last_name + # Passenger ID attr_accessor :id + # Passenger email attr_accessor :email + # Passenger nationality attr_accessor :nationality # Attribute mapping from ruby-style variable name to JSON key. diff --git a/lib/cybersource_rest_client/models/upv1capturecontexts_data_order_information_line_items_tax_details.rb b/lib/cybersource_rest_client/models/upv1capturecontexts_data_order_information_line_items_tax_details.rb index b0fbd855..e9c1878a 100644 --- a/lib/cybersource_rest_client/models/upv1capturecontexts_data_order_information_line_items_tax_details.rb +++ b/lib/cybersource_rest_client/models/upv1capturecontexts_data_order_information_line_items_tax_details.rb @@ -13,18 +13,25 @@ module CyberSource class Upv1capturecontextsDataOrderInformationLineItemsTaxDetails + # Type of tax attr_accessor :type + # Tax amount attr_accessor :amount + # Tax rate attr_accessor :rate + # Tax code attr_accessor :code + # Tax Identifier attr_accessor :tax_id + # Indicates if tax applied attr_accessor :applied + # Tax exemption code attr_accessor :exemption_code # Attribute mapping from ruby-style variable name to JSON key. diff --git a/lib/cybersource_rest_client/models/upv1capturecontexts_data_payment_information.rb b/lib/cybersource_rest_client/models/upv1capturecontexts_data_payment_information.rb new file mode 100644 index 00000000..ed08550d --- /dev/null +++ b/lib/cybersource_rest_client/models/upv1capturecontexts_data_payment_information.rb @@ -0,0 +1,189 @@ +=begin +#CyberSource Merged Spec + +#All CyberSource API specs merged together. These are available at https://developer.cybersource.com/api/reference/api-reference.html + +OpenAPI spec version: 0.0.1 + +Generated by: https://github.com/swagger-api/swagger-codegen.git +Swagger Codegen version: 2.4.38 +=end + +require 'date' + +module CyberSource + class Upv1capturecontextsDataPaymentInformation + attr_accessor :card + + # Attribute mapping from ruby-style variable name to JSON key. + def self.attribute_map + { + :'card' => :'card' + } + end + + # Attribute mapping from JSON key to ruby-style variable name. + def self.json_map + { + :'card' => :'card' + } + end + + # Attribute type mapping. + def self.swagger_types + { + :'card' => :'Upv1capturecontextsDataPaymentInformationCard' + } + end + + # Initializes the object + # @param [Hash] attributes Model attributes in the form of hash + def initialize(attributes = {}) + return unless attributes.is_a?(Hash) + + # convert string to symbol for hash key + attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v } + + if attributes.has_key?(:'card') + self.card = attributes[:'card'] + end + end + + # Show invalid properties with the reasons. Usually used together with valid? + # @return Array for valid properties with the reasons + def list_invalid_properties + invalid_properties = Array.new + invalid_properties + end + + # Check to see if the all the properties in the model are valid + # @return true if the model is valid + def valid? + true + end + + # Checks equality by comparing each attribute. + # @param [Object] Object to be compared + def ==(o) + return true if self.equal?(o) + self.class == o.class && + card == o.card + end + + # @see the `==` method + # @param [Object] Object to be compared + def eql?(o) + self == o + end + + # Calculates hash code according to all attributes. + # @return [Fixnum] Hash code + def hash + [card].hash + end + + # Builds the object from hash + # @param [Hash] attributes Model attributes in the form of hash + # @return [Object] Returns the model itself + def build_from_hash(attributes) + return nil unless attributes.is_a?(Hash) + self.class.swagger_types.each_pair do |key, type| + if type =~ /\AArray<(.*)>/i + # check to ensure the input is an array given that the the attribute + # is documented as an array but the input is not + if attributes[self.class.attribute_map[key]].is_a?(Array) + self.send("#{self.class.json_map[key]}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) + end + elsif !attributes[self.class.attribute_map[key]].nil? + self.send("#{self.class.json_map[key]}=", _deserialize(type, attributes[self.class.attribute_map[key]])) + end # or else data not found in attributes(hash), not an issue as the data can be optional + end + + self + end + + # Deserializes the data based on type + # @param string type Data type + # @param string value Value to be deserialized + # @return [Object] Deserialized data + def _deserialize(type, value) + case type.to_sym + when :DateTime + DateTime.parse(value) + when :Date + Date.parse(value) + when :String + value.to_s + when :Integer + value.to_i + when :Float + value.to_f + when :BOOLEAN + if value.to_s =~ /\A(true|t|yes|y|1)\z/i + true + else + false + end + when :Object + # generic object (usually a Hash), return directly + value + when /\AArray<(?.+)>\z/ + inner_type = Regexp.last_match[:inner_type] + value.map { |v| _deserialize(inner_type, v) } + when /\AHash<(?.+?), (?.+)>\z/ + k_type = Regexp.last_match[:k_type] + v_type = Regexp.last_match[:v_type] + {}.tap do |hash| + value.each do |k, v| + hash[_deserialize(k_type, k)] = _deserialize(v_type, v) + end + end + else # model + temp_model = CyberSource.const_get(type).new + temp_model.build_from_hash(value) + end + end + + # Returns the string representation of the object + # @return [String] String presentation of the object + def to_s + to_hash.to_s + end + + # to_body is an alias to to_hash (backward compatibility) + # @return [Hash] Returns the object in the form of hash + def to_body + to_hash + end + + # Returns the object in the form of hash + # @return [Hash] Returns the object in the form of hash + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + next if value.nil? + hash[param] = _to_hash(value) + end + hash + end + + # Outputs non-array value in the form of hash + # For object, use to_hash. Otherwise, just return the value + # @param [Object] value Any valid value + # @return [Hash] Returns the value in the form of hash + def _to_hash(value) + if value.is_a?(Array) + value.compact.map { |v| _to_hash(v) } + elsif value.is_a?(Hash) + {}.tap do |hash| + value.each { |k, v| hash[k] = _to_hash(v) } + end + elsif value.respond_to? :to_hash + value.to_hash + else + value + end + end + end +end diff --git a/lib/cybersource_rest_client/models/upv1capturecontexts_data_payment_information_card.rb b/lib/cybersource_rest_client/models/upv1capturecontexts_data_payment_information_card.rb new file mode 100644 index 00000000..ad20998f --- /dev/null +++ b/lib/cybersource_rest_client/models/upv1capturecontexts_data_payment_information_card.rb @@ -0,0 +1,196 @@ +=begin +#CyberSource Merged Spec + +#All CyberSource API specs merged together. These are available at https://developer.cybersource.com/api/reference/api-reference.html + +OpenAPI spec version: 0.0.1 + +Generated by: https://github.com/swagger-api/swagger-codegen.git +Swagger Codegen version: 2.4.38 +=end + +require 'date' + +module CyberSource + class Upv1capturecontextsDataPaymentInformationCard + # The card type selection indicator + attr_accessor :type_selection_indicator + + # Attribute mapping from ruby-style variable name to JSON key. + def self.attribute_map + { + :'type_selection_indicator' => :'typeSelectionIndicator' + } + end + + # Attribute mapping from JSON key to ruby-style variable name. + def self.json_map + { + :'type_selection_indicator' => :'type_selection_indicator' + } + end + + # Attribute type mapping. + def self.swagger_types + { + :'type_selection_indicator' => :'String' + } + end + + # Initializes the object + # @param [Hash] attributes Model attributes in the form of hash + def initialize(attributes = {}) + return unless attributes.is_a?(Hash) + + # convert string to symbol for hash key + attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v } + + if attributes.has_key?(:'typeSelectionIndicator') + self.type_selection_indicator = attributes[:'typeSelectionIndicator'] + end + end + + # Show invalid properties with the reasons. Usually used together with valid? + # @return Array for valid properties with the reasons + def list_invalid_properties + invalid_properties = Array.new + invalid_properties + end + + # Check to see if the all the properties in the model are valid + # @return true if the model is valid + def valid? + true + end + + # Custom attribute writer method with validation + # @param [Object] type_selection_indicator Value to be assigned + def type_selection_indicator=(type_selection_indicator) + @type_selection_indicator = type_selection_indicator + end + + # Checks equality by comparing each attribute. + # @param [Object] Object to be compared + def ==(o) + return true if self.equal?(o) + self.class == o.class && + type_selection_indicator == o.type_selection_indicator + end + + # @see the `==` method + # @param [Object] Object to be compared + def eql?(o) + self == o + end + + # Calculates hash code according to all attributes. + # @return [Fixnum] Hash code + def hash + [type_selection_indicator].hash + end + + # Builds the object from hash + # @param [Hash] attributes Model attributes in the form of hash + # @return [Object] Returns the model itself + def build_from_hash(attributes) + return nil unless attributes.is_a?(Hash) + self.class.swagger_types.each_pair do |key, type| + if type =~ /\AArray<(.*)>/i + # check to ensure the input is an array given that the the attribute + # is documented as an array but the input is not + if attributes[self.class.attribute_map[key]].is_a?(Array) + self.send("#{self.class.json_map[key]}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) + end + elsif !attributes[self.class.attribute_map[key]].nil? + self.send("#{self.class.json_map[key]}=", _deserialize(type, attributes[self.class.attribute_map[key]])) + end # or else data not found in attributes(hash), not an issue as the data can be optional + end + + self + end + + # Deserializes the data based on type + # @param string type Data type + # @param string value Value to be deserialized + # @return [Object] Deserialized data + def _deserialize(type, value) + case type.to_sym + when :DateTime + DateTime.parse(value) + when :Date + Date.parse(value) + when :String + value.to_s + when :Integer + value.to_i + when :Float + value.to_f + when :BOOLEAN + if value.to_s =~ /\A(true|t|yes|y|1)\z/i + true + else + false + end + when :Object + # generic object (usually a Hash), return directly + value + when /\AArray<(?.+)>\z/ + inner_type = Regexp.last_match[:inner_type] + value.map { |v| _deserialize(inner_type, v) } + when /\AHash<(?.+?), (?.+)>\z/ + k_type = Regexp.last_match[:k_type] + v_type = Regexp.last_match[:v_type] + {}.tap do |hash| + value.each do |k, v| + hash[_deserialize(k_type, k)] = _deserialize(v_type, v) + end + end + else # model + temp_model = CyberSource.const_get(type).new + temp_model.build_from_hash(value) + end + end + + # Returns the string representation of the object + # @return [String] String presentation of the object + def to_s + to_hash.to_s + end + + # to_body is an alias to to_hash (backward compatibility) + # @return [Hash] Returns the object in the form of hash + def to_body + to_hash + end + + # Returns the object in the form of hash + # @return [Hash] Returns the object in the form of hash + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + next if value.nil? + hash[param] = _to_hash(value) + end + hash + end + + # Outputs non-array value in the form of hash + # For object, use to_hash. Otherwise, just return the value + # @param [Object] value Any valid value + # @return [Hash] Returns the value in the form of hash + def _to_hash(value) + if value.is_a?(Array) + value.compact.map { |v| _to_hash(v) } + elsif value.is_a?(Hash) + {}.tap do |hash| + value.each { |k, v| hash[k] = _to_hash(v) } + end + elsif value.respond_to? :to_hash + value.to_hash + else + value + end + end + end +end diff --git a/lib/cybersource_rest_client/models/upv1capturecontexts_data_processing_information.rb b/lib/cybersource_rest_client/models/upv1capturecontexts_data_processing_information.rb index c4cd74d2..98b5d1e8 100644 --- a/lib/cybersource_rest_client/models/upv1capturecontexts_data_processing_information.rb +++ b/lib/cybersource_rest_client/models/upv1capturecontexts_data_processing_information.rb @@ -13,6 +13,7 @@ module CyberSource class Upv1capturecontextsDataProcessingInformation + # The reconciliation ID attr_accessor :reconciliation_id attr_accessor :authorization_options diff --git a/lib/cybersource_rest_client/models/upv1capturecontexts_data_processing_information_authorization_options.rb b/lib/cybersource_rest_client/models/upv1capturecontexts_data_processing_information_authorization_options.rb index 526387fd..9aecb03e 100644 --- a/lib/cybersource_rest_client/models/upv1capturecontexts_data_processing_information_authorization_options.rb +++ b/lib/cybersource_rest_client/models/upv1capturecontexts_data_processing_information_authorization_options.rb @@ -13,18 +13,40 @@ module CyberSource class Upv1capturecontextsDataProcessingInformationAuthorizationOptions + # The AFT indicator attr_accessor :aft_indicator + # The authorization indicator + attr_accessor :auth_indicator + + # Ignore the CV result + attr_accessor :ignore_cv_result + + # Ignore the AVS result + attr_accessor :ignore_avs_result + attr_accessor :initiator + # The business application Id attr_accessor :business_application_id + # The commerce indicator + attr_accessor :commerce_indicator + + # The processing instruction + attr_accessor :processing_instruction + # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { :'aft_indicator' => :'aftIndicator', + :'auth_indicator' => :'authIndicator', + :'ignore_cv_result' => :'ignoreCvResult', + :'ignore_avs_result' => :'ignoreAvsResult', :'initiator' => :'initiator', - :'business_application_id' => :'businessApplicationId' + :'business_application_id' => :'businessApplicationId', + :'commerce_indicator' => :'commerceIndicator', + :'processing_instruction' => :'processingInstruction' } end @@ -32,8 +54,13 @@ def self.attribute_map def self.json_map { :'aft_indicator' => :'aft_indicator', + :'auth_indicator' => :'auth_indicator', + :'ignore_cv_result' => :'ignore_cv_result', + :'ignore_avs_result' => :'ignore_avs_result', :'initiator' => :'initiator', - :'business_application_id' => :'business_application_id' + :'business_application_id' => :'business_application_id', + :'commerce_indicator' => :'commerce_indicator', + :'processing_instruction' => :'processing_instruction' } end @@ -41,8 +68,13 @@ def self.json_map def self.swagger_types { :'aft_indicator' => :'BOOLEAN', + :'auth_indicator' => :'String', + :'ignore_cv_result' => :'BOOLEAN', + :'ignore_avs_result' => :'BOOLEAN', :'initiator' => :'Upv1capturecontextsDataProcessingInformationAuthorizationOptionsInitiator', - :'business_application_id' => :'String' + :'business_application_id' => :'String', + :'commerce_indicator' => :'String', + :'processing_instruction' => :'String' } end @@ -58,6 +90,18 @@ def initialize(attributes = {}) self.aft_indicator = attributes[:'aftIndicator'] end + if attributes.has_key?(:'authIndicator') + self.auth_indicator = attributes[:'authIndicator'] + end + + if attributes.has_key?(:'ignoreCvResult') + self.ignore_cv_result = attributes[:'ignoreCvResult'] + end + + if attributes.has_key?(:'ignoreAvsResult') + self.ignore_avs_result = attributes[:'ignoreAvsResult'] + end + if attributes.has_key?(:'initiator') self.initiator = attributes[:'initiator'] end @@ -65,6 +109,14 @@ def initialize(attributes = {}) if attributes.has_key?(:'businessApplicationId') self.business_application_id = attributes[:'businessApplicationId'] end + + if attributes.has_key?(:'commerceIndicator') + self.commerce_indicator = attributes[:'commerceIndicator'] + end + + if attributes.has_key?(:'processingInstruction') + self.processing_instruction = attributes[:'processingInstruction'] + end end # Show invalid properties with the reasons. Usually used together with valid? @@ -86,14 +138,31 @@ def business_application_id=(business_application_id) @business_application_id = business_application_id end + # Custom attribute writer method with validation + # @param [Object] commerce_indicator Value to be assigned + def commerce_indicator=(commerce_indicator) + @commerce_indicator = commerce_indicator + end + + # Custom attribute writer method with validation + # @param [Object] processing_instruction Value to be assigned + def processing_instruction=(processing_instruction) + @processing_instruction = processing_instruction + end + # Checks equality by comparing each attribute. # @param [Object] Object to be compared def ==(o) return true if self.equal?(o) self.class == o.class && aft_indicator == o.aft_indicator && + auth_indicator == o.auth_indicator && + ignore_cv_result == o.ignore_cv_result && + ignore_avs_result == o.ignore_avs_result && initiator == o.initiator && - business_application_id == o.business_application_id + business_application_id == o.business_application_id && + commerce_indicator == o.commerce_indicator && + processing_instruction == o.processing_instruction end # @see the `==` method @@ -105,7 +174,7 @@ def eql?(o) # Calculates hash code according to all attributes. # @return [Fixnum] Hash code def hash - [aft_indicator, initiator, business_application_id].hash + [aft_indicator, auth_indicator, ignore_cv_result, ignore_avs_result, initiator, business_application_id, commerce_indicator, processing_instruction].hash end # Builds the object from hash diff --git a/lib/cybersource_rest_client/models/upv1capturecontexts_data_processing_information_authorization_options_initiator.rb b/lib/cybersource_rest_client/models/upv1capturecontexts_data_processing_information_authorization_options_initiator.rb index 6843e5ee..f8fd06a2 100644 --- a/lib/cybersource_rest_client/models/upv1capturecontexts_data_processing_information_authorization_options_initiator.rb +++ b/lib/cybersource_rest_client/models/upv1capturecontexts_data_processing_information_authorization_options_initiator.rb @@ -13,6 +13,7 @@ module CyberSource class Upv1capturecontextsDataProcessingInformationAuthorizationOptionsInitiator + # Store the credential on file attr_accessor :credential_stored_on_file attr_accessor :merchant_initiated_transaction diff --git a/lib/cybersource_rest_client/models/upv1capturecontexts_data_recipient_information.rb b/lib/cybersource_rest_client/models/upv1capturecontexts_data_recipient_information.rb index d6f4fcc0..5507658f 100644 --- a/lib/cybersource_rest_client/models/upv1capturecontexts_data_recipient_information.rb +++ b/lib/cybersource_rest_client/models/upv1capturecontexts_data_recipient_information.rb @@ -31,6 +31,12 @@ class Upv1capturecontextsDataRecipientInformation # The account type of the recipient attr_accessor :account_type + # The date of birth of the recipient + attr_accessor :date_of_birth + + # The postal code of the recipient + attr_accessor :postal_code + # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { @@ -40,7 +46,9 @@ def self.attribute_map :'country' => :'country', :'account_id' => :'accountId', :'administrative_area' => :'administrativeArea', - :'account_type' => :'accountType' + :'account_type' => :'accountType', + :'date_of_birth' => :'dateOfBirth', + :'postal_code' => :'postalCode' } end @@ -53,7 +61,9 @@ def self.json_map :'country' => :'country', :'account_id' => :'account_id', :'administrative_area' => :'administrative_area', - :'account_type' => :'account_type' + :'account_type' => :'account_type', + :'date_of_birth' => :'date_of_birth', + :'postal_code' => :'postal_code' } end @@ -66,7 +76,9 @@ def self.swagger_types :'country' => :'String', :'account_id' => :'String', :'administrative_area' => :'String', - :'account_type' => :'String' + :'account_type' => :'String', + :'date_of_birth' => :'String', + :'postal_code' => :'String' } end @@ -105,6 +117,14 @@ def initialize(attributes = {}) if attributes.has_key?(:'accountType') self.account_type = attributes[:'accountType'] end + + if attributes.has_key?(:'dateOfBirth') + self.date_of_birth = attributes[:'dateOfBirth'] + end + + if attributes.has_key?(:'postalCode') + self.postal_code = attributes[:'postalCode'] + end end # Show invalid properties with the reasons. Usually used together with valid? @@ -162,6 +182,18 @@ def account_type=(account_type) @account_type = account_type end + # Custom attribute writer method with validation + # @param [Object] date_of_birth Value to be assigned + def date_of_birth=(date_of_birth) + @date_of_birth = date_of_birth + end + + # Custom attribute writer method with validation + # @param [Object] postal_code Value to be assigned + def postal_code=(postal_code) + @postal_code = postal_code + end + # Checks equality by comparing each attribute. # @param [Object] Object to be compared def ==(o) @@ -173,7 +205,9 @@ def ==(o) country == o.country && account_id == o.account_id && administrative_area == o.administrative_area && - account_type == o.account_type + account_type == o.account_type && + date_of_birth == o.date_of_birth && + postal_code == o.postal_code end # @see the `==` method @@ -185,7 +219,7 @@ def eql?(o) # Calculates hash code according to all attributes. # @return [Fixnum] Hash code def hash - [first_name, middle_name, last_name, country, account_id, administrative_area, account_type].hash + [first_name, middle_name, last_name, country, account_id, administrative_area, account_type, date_of_birth, postal_code].hash end # Builds the object from hash diff --git a/lib/cybersource_rest_client/models/upv1capturecontexts_order_information.rb b/lib/cybersource_rest_client/models/upv1capturecontexts_order_information.rb index fc7fcf16..c99db149 100644 --- a/lib/cybersource_rest_client/models/upv1capturecontexts_order_information.rb +++ b/lib/cybersource_rest_client/models/upv1capturecontexts_order_information.rb @@ -12,6 +12,7 @@ require 'date' module CyberSource + # If you need to include any fields within the data object, you must use the orderInformation object that is nested inside the data object. This ensures proper structure and compliance with the Unified Checkout schema. This top-level orderInformation field is not intended for use when working with the data object. class Upv1capturecontextsOrderInformation attr_accessor :amount_details diff --git a/spec/api/bank_account_validation_api_spec.rb b/spec/api/bank_account_validation_api_spec.rb index 7b8f4d19..1964f0af 100644 --- a/spec/api/bank_account_validation_api_spec.rb +++ b/spec/api/bank_account_validation_api_spec.rb @@ -36,7 +36,7 @@ # The Visa Bank Account Validation Service is a new standalone product designed to validate customer's routing and bank account number combination for ACH transactions. Merchant's can use this standalone product to validate their customer's account prior to processing an ACH transaction against the customer's account to comply with Nacha's account validation mandate for Web-debit transactions. # @param account_validations_request # @param [Hash] opts the optional parameters - # @return [InlineResponse20013] + # @return [InlineResponse20014] describe 'bank_account_validation_request test' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers diff --git a/spec/api/batches_api_spec.rb b/spec/api/batches_api_spec.rb index b7209d4f..d2d888fb 100644 --- a/spec/api/batches_api_spec.rb +++ b/spec/api/batches_api_spec.rb @@ -36,7 +36,7 @@ # **Get Batch Report**<br>This resource accepts a batch id and returns: - The batch status. - The total number of accepted, rejected, updated records. - The total number of card association responses. - The billable quantities of: - New Account Numbers (NAN) - New Expiry Dates (NED) - Account Closures (ACL) - Contact Card Holders (CCH) - Source record information including token ids, masked card number, expiration dates & card type. - Response record information including response code, reason, token ids, masked card number, expiration dates & card type. # @param batch_id Unique identification number assigned to the submitted request. # @param [Hash] opts the optional parameters - # @return [InlineResponse20012] + # @return [InlineResponse20013] describe 'get_batch_report test' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers @@ -48,7 +48,7 @@ # **Get Batch Status**<br>This resource accepts a batch id and returns: - The batch status. - The total number of accepted, rejected, updated records. - The total number of card association responses. - The billable quantities of: - New Account Numbers (NAN) - New Expiry Dates (NED) - Account Closures (ACL) - Contact Card Holders (CCH) # @param batch_id Unique identification number assigned to the submitted request. # @param [Hash] opts the optional parameters - # @return [InlineResponse20011] + # @return [InlineResponse20012] describe 'get_batch_status test' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers @@ -63,7 +63,7 @@ # @option opts [Integer] :limit The maximum number that can be returned in the array starting from the offset record in zero-based dataset. # @option opts [String] :from_date ISO-8601 format: yyyyMMddTHHmmssZ # @option opts [String] :to_date ISO-8601 format: yyyyMMddTHHmmssZ - # @return [InlineResponse20010] + # @return [InlineResponse20011] describe 'get_batches_list test' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers diff --git a/spec/api/create_new_webhooks_api_spec.rb b/spec/api/create_new_webhooks_api_spec.rb index cd9ed0a1..ac91ffde 100644 --- a/spec/api/create_new_webhooks_api_spec.rb +++ b/spec/api/create_new_webhooks_api_spec.rb @@ -36,7 +36,7 @@ # Retrieve a list of products and event types that your account is eligible for. These products and events are the ones that you may subscribe to in the next step of creating webhooks. # @param organization_id The Organization Identifier. # @param [Hash] opts the optional parameters - # @return [Array] + # @return [Array] describe 'find_products_to_subscribe test' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers diff --git a/spec/api/decision_manager_api_spec.rb b/spec/api/decision_manager_api_spec.rb index d6e2ce2d..bac71e02 100644 --- a/spec/api/decision_manager_api_spec.rb +++ b/spec/api/decision_manager_api_spec.rb @@ -37,7 +37,7 @@ # @param id An unique identification number generated by Cybersource to identify the submitted request. # @param case_management_actions_request # @param [Hash] opts the optional parameters - # @return [InlineResponse2001] + # @return [InlineResponse2002] describe 'action_decision_manager_case test' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers diff --git a/spec/api/device_de_association_api_spec.rb b/spec/api/device_de_association_api_spec.rb index 20b668ec..9c76f8e9 100644 --- a/spec/api/device_de_association_api_spec.rb +++ b/spec/api/device_de_association_api_spec.rb @@ -48,7 +48,7 @@ # A device will be de-associated from its current organization and moved up in the hierarchy. The device's new position will be determined by a specified destination, either an account or a portfolio. If no destination is provided, the device will default to the currently logged-in user. # @param device_de_associate_v3_request deviceId that has to be de-associated to the destination organizationId. # @param [Hash] opts the optional parameters - # @return [Array] + # @return [Array] describe 'post_de_associate_v3_terminal test' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers diff --git a/spec/api/device_search_api_spec.rb b/spec/api/device_search_api_spec.rb index ebf43a7d..b9e2528d 100644 --- a/spec/api/device_search_api_spec.rb +++ b/spec/api/device_search_api_spec.rb @@ -36,7 +36,7 @@ # Retrieves list of terminals in paginated format. # @param post_device_search_request # @param [Hash] opts the optional parameters - # @return [InlineResponse2007] + # @return [InlineResponse2008] describe 'post_search_query test' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers @@ -48,7 +48,7 @@ # Search for devices matching a given search query. The search query supports serialNumber, readerId, terminalId, status, statusChangeReason or organizationId Matching results are paginated. # @param post_device_search_request_v3 # @param [Hash] opts the optional parameters - # @return [InlineResponse2009] + # @return [InlineResponse20010] describe 'post_search_query_v3 test' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers diff --git a/spec/api/manage_webhooks_api_spec.rb b/spec/api/manage_webhooks_api_spec.rb index a1c350c6..8c40f5f5 100644 --- a/spec/api/manage_webhooks_api_spec.rb +++ b/spec/api/manage_webhooks_api_spec.rb @@ -62,7 +62,7 @@ # @param [Hash] opts the optional parameters # @option opts [String] :product_id The Product Identifier. # @option opts [String] :event_type The Event Type. - # @return [Array] + # @return [Array] describe 'get_webhook_subscriptions_by_org test' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers @@ -87,7 +87,7 @@ # @param webhook_id The Webhook Identifier. # @param [Hash] opts the optional parameters # @option opts [UpdateWebhook] :update_webhook The webhook payload or changes to apply. - # @return [InlineResponse2006] + # @return [InlineResponse2007] describe 'notification_subscriptions_v2_webhooks_webhook_id_patch test' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers diff --git a/spec/api/merchant_boarding_api_spec.rb b/spec/api/merchant_boarding_api_spec.rb index 4c653e10..142ed7e3 100644 --- a/spec/api/merchant_boarding_api_spec.rb +++ b/spec/api/merchant_boarding_api_spec.rb @@ -36,7 +36,7 @@ # This end point will get all information of a boarding registration # @param registration_id Identifies the boarding registration to be updated # @param [Hash] opts the optional parameters - # @return [InlineResponse2003] + # @return [InlineResponse2004] describe 'get_registration test' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers diff --git a/spec/api/merchant_defined_fields_api_spec.rb b/spec/api/merchant_defined_fields_api_spec.rb index 99f81200..36965267 100644 --- a/spec/api/merchant_defined_fields_api_spec.rb +++ b/spec/api/merchant_defined_fields_api_spec.rb @@ -36,7 +36,7 @@ # @param reference_type The reference type for which merchant defined fields are to be fetched. Available values are Invoice, Purchase, Donation # @param merchant_defined_field_definition_request # @param [Hash] opts the optional parameters - # @return [Array] + # @return [Array] describe 'create_merchant_defined_field_definition test' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers @@ -59,7 +59,7 @@ # Get all merchant defined fields for a given reference type # @param reference_type The reference type for which merchant defined fields are to be fetched. Available values are Invoice, Purchase, Donation # @param [Hash] opts the optional parameters - # @return [Array] + # @return [Array] describe 'get_merchant_defined_fields_definitions test' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers @@ -72,7 +72,7 @@ # @param id # @param merchant_defined_field_core # @param [Hash] opts the optional parameters - # @return [Array] + # @return [Array] describe 'put_merchant_defined_fields_definitions test' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers diff --git a/spec/api/offers_api_spec.rb b/spec/api/offers_api_spec.rb index 8edee275..5bf64d92 100644 --- a/spec/api/offers_api_spec.rb +++ b/spec/api/offers_api_spec.rb @@ -58,7 +58,7 @@ # @param v_c_organization_id # @param id Request ID generated by Cybersource. This was sent in the header on the request. Echo value from v-c-request-id # @param [Hash] opts the optional parameters - # @return [InlineResponse20014] + # @return [InlineResponse20015] describe 'get_offer test' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers diff --git a/spec/api/subscriptions_api_spec.rb b/spec/api/subscriptions_api_spec.rb index 1166e8b4..b3c5eea6 100644 --- a/spec/api/subscriptions_api_spec.rb +++ b/spec/api/subscriptions_api_spec.rb @@ -32,11 +32,11 @@ end # unit tests for activate_subscription - # Activate a Subscription - # Activate a `SUSPENDED` Subscription + # Reactivating a Suspended Subscription + # # Reactivating a Suspended Subscription You can reactivate a suspended subscription for the next billing cycle. You cannot reactivate a canceled or completed subscription. You can specify whether you want to process missed payments for the period during which the subscription was suspended using the `processMissedPayments` query parameter by setting it to true or false. If no value is specified, the system will default to `true`. **Important:** The \"processMissedPayments\" query parameter is only effective when the Ask each time before reactivating option is selected in the reactivation settings. If any other option is chosen, the value provided in the request will be ignored by the system. For more information, see the [Recurring Billing User Guide](https://developer.cybersource.com/docs/cybs/en-us/recurring-billing/user/all/rest/recurring-billing-user/recurring-billing-user-about-guide.html). You can check how many payments were missed and the total amount by retrieving the subscription details, where you will find the `reactivationInformation` object. See: [Retrieving a Subscription](https://developer.cybersource.com/docs/cybs/en-us/recurring-billing/developer/all/rest/recurring-billing-dev/recur-bill-subscriptions/recur-bill-getting-a-subscription.html). # @param id Subscription Id # @param [Hash] opts the optional parameters - # @option opts [BOOLEAN] :process_skipped_payments Indicates if skipped payments should be processed from the period when the subscription was suspended. By default, this is set to true. + # @option opts [BOOLEAN] :process_missed_payments Indicates if missed payments should be processed from the period when the subscription was suspended. By default, this is set to true. When any option other than \"Ask each time before reactivating\" is selected in the reactivation settings, the value that you enter will be ignored. # @return [ActivateSubscriptionResponse] describe 'activate_subscription test' do it 'should work' do @@ -108,7 +108,7 @@ # unit tests for suspend_subscription # Suspend a Subscription - # Suspend a Subscription + # Suspend a Subscription # @param id Subscription Id # @param [Hash] opts the optional parameters # @return [SuspendSubscriptionResponse] diff --git a/spec/api/token_api_spec.rb b/spec/api/token_api_spec.rb index 939ad1fd..2c14431c 100644 --- a/spec/api/token_api_spec.rb +++ b/spec/api/token_api_spec.rb @@ -38,7 +38,7 @@ # @param token_provider The token provider. # @param asset_type The type of asset. # @param [Hash] opts the optional parameters - # @return [InlineResponse200] + # @return [InlineResponse2001] describe 'get_card_art_asset test' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers diff --git a/spec/api/tokenize_api_spec.rb b/spec/api/tokenize_api_spec.rb new file mode 100644 index 00000000..57a8aa79 --- /dev/null +++ b/spec/api/tokenize_api_spec.rb @@ -0,0 +1,47 @@ +=begin +#CyberSource Merged Spec + +#All CyberSource API specs merged together. These are available at https://developer.cybersource.com/api/reference/api-reference.html + +OpenAPI spec version: 0.0.1 + +Generated by: https://github.com/swagger-api/swagger-codegen.git +Swagger Codegen version: 2.4.38 +=end + +require 'spec_helper' +require 'json' + +# Unit tests for CyberSource::TokenizeApi +# Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen) +# Please update as you see appropriate +describe 'TokenizeApi' do + before do + # run before each test + @instance = CyberSource::TokenizeApi.new + end + + after do + # run after each test + end + + describe 'test an instance of TokenizeApi' do + it 'should create an instance of TokenizeApi' do + expect(@instance).to be_instance_of(CyberSource::TokenizeApi) + end + end + + # unit tests for tokenize + # Tokenize + # | | | | | --- | --- | --- | |The **Tokenize API** endpoint facilitates the creation of various TMS tokens such as Customers, Payment Instruments, Shipping Addresses, and Instrument Identifiers in a single operation. The request includes a processingInformation object, which specifies **\"TOKEN_CREATE\"** and the types of tokens to be created. The **tokenInformation** section of the request includes detailed information relevant to each token type. This includes attributes for Customers, Payment Instruments, Shipping Addresses, Instrument Identifiers and Transient Token data. The payload is flexible, allowing for different combinations of tokens to be created in a single request.|&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;|The **API response** includes a responses array, which details the outcome of the tokenization process for each requested resource type, such as Customer, Payment Instrument, Shipping Address, and Instrument Identifier. Each entry in this array provides an HTTP status code such as **201/200 for successful creations**, and a unique identifier for the newly created token.<br>In cases where token creation encounters issues, the response includes a **non-2XX** status code and an errors array for the affected resource. Each error object in the array details the **error type and a descriptive message** providing insight into why a particular token creation was not attempted or failed. + # @param post_tokenize_request + # @param [Hash] opts the optional parameters + # @option opts [String] :profile_id The Id of a profile containing user specific TMS configuration. + # @return [InlineResponse200] + describe 'tokenize test' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + +end diff --git a/spec/api/tokenized_card_api_spec.rb b/spec/api/tokenized_card_api_spec.rb index de302d0f..e03452c6 100644 --- a/spec/api/tokenized_card_api_spec.rb +++ b/spec/api/tokenized_card_api_spec.rb @@ -57,6 +57,20 @@ end end + # unit tests for post_issuer_life_cycle_simulation + # Simulate Issuer Life Cycle Management Events + # **Lifecycle Management Events**<br>Simulates an issuer life cycle manegement event for updates on the tokenized card. The events that can be simulated are: - Token status changes (e.g. active, suspended, deleted) - Updates to the underlying card, including card art changes, expiration date changes, and card number suffix. **Note:** This is only available in CAS environment. + # @param profile_id The Id of a profile containing user specific TMS configuration. + # @param tokenized_card_id The Id of a tokenized card. + # @param post_issuer_life_cycle_simulation_request + # @param [Hash] opts the optional parameters + # @return [nil] + describe 'post_issuer_life_cycle_simulation test' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + # unit tests for post_tokenized_card # Create a Tokenized Card # | | | | | --- | --- | --- | |**Tokenized cards**<br>A Tokenized card represents a network token. Network tokens perform better than regular card numbers and they are not necessarily invalidated when a cardholder loses their card, or it expires. diff --git a/spec/models/create_plan_request_spec.rb b/spec/models/create_plan_request_spec.rb index 125b632c..fb55dca7 100644 --- a/spec/models/create_plan_request_spec.rb +++ b/spec/models/create_plan_request_spec.rb @@ -31,12 +31,6 @@ expect(@instance).to be_instance_of(CyberSource::CreatePlanRequest) end end - describe 'test attribute "client_reference_information"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - describe 'test attribute "plan_information"' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers diff --git a/spec/models/create_subscription_response_spec.rb b/spec/models/create_subscription_response_spec.rb index 88eeced6..9040e2e8 100644 --- a/spec/models/create_subscription_response_spec.rb +++ b/spec/models/create_subscription_response_spec.rb @@ -61,4 +61,10 @@ end end + describe 'test attribute "client_reference_information"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + end diff --git a/spec/models/generate_unified_checkout_capture_context_request_spec.rb b/spec/models/generate_unified_checkout_capture_context_request_spec.rb index 73a0ff86..441c1727 100644 --- a/spec/models/generate_unified_checkout_capture_context_request_spec.rb +++ b/spec/models/generate_unified_checkout_capture_context_request_spec.rb @@ -67,6 +67,12 @@ end end + describe 'test attribute "button_type"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + describe 'test attribute "capture_mandate"' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers diff --git a/spec/models/tmsv2customers__embedded_default_shipping_address__links_self_spec.rb b/spec/models/get_all_subscriptions_response_client_reference_information_spec.rb similarity index 56% rename from spec/models/tmsv2customers__embedded_default_shipping_address__links_self_spec.rb rename to spec/models/get_all_subscriptions_response_client_reference_information_spec.rb index 8b20fa59..e10ccaf6 100644 --- a/spec/models/tmsv2customers__embedded_default_shipping_address__links_self_spec.rb +++ b/spec/models/get_all_subscriptions_response_client_reference_information_spec.rb @@ -13,25 +13,25 @@ require 'json' require 'date' -# Unit tests for CyberSource::Tmsv2customersEmbeddedDefaultShippingAddressLinksSelf +# Unit tests for CyberSource::GetAllSubscriptionsResponseClientReferenceInformation # Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen) # Please update as you see appropriate -describe 'Tmsv2customersEmbeddedDefaultShippingAddressLinksSelf' do +describe 'GetAllSubscriptionsResponseClientReferenceInformation' do before do # run before each test - @instance = CyberSource::Tmsv2customersEmbeddedDefaultShippingAddressLinksSelf.new + @instance = CyberSource::GetAllSubscriptionsResponseClientReferenceInformation.new end after do # run after each test end - describe 'test an instance of Tmsv2customersEmbeddedDefaultShippingAddressLinksSelf' do - it 'should create an instance of Tmsv2customersEmbeddedDefaultShippingAddressLinksSelf' do - expect(@instance).to be_instance_of(CyberSource::Tmsv2customersEmbeddedDefaultShippingAddressLinksSelf) + describe 'test an instance of GetAllSubscriptionsResponseClientReferenceInformation' do + it 'should create an instance of GetAllSubscriptionsResponseClientReferenceInformation' do + expect(@instance).to be_instance_of(CyberSource::GetAllSubscriptionsResponseClientReferenceInformation) end end - describe 'test attribute "href"' do + describe 'test attribute "code"' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end diff --git a/spec/models/get_all_subscriptions_response_subscriptions_spec.rb b/spec/models/get_all_subscriptions_response_subscriptions_spec.rb index 59e5c3bc..a8e3dad1 100644 --- a/spec/models/get_all_subscriptions_response_subscriptions_spec.rb +++ b/spec/models/get_all_subscriptions_response_subscriptions_spec.rb @@ -55,6 +55,12 @@ end end + describe 'test attribute "client_reference_information"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + describe 'test attribute "payment_information"' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers diff --git a/spec/models/get_subscription_response_reactivation_information_spec.rb b/spec/models/get_subscription_response_reactivation_information_spec.rb index 905aef43..60f79294 100644 --- a/spec/models/get_subscription_response_reactivation_information_spec.rb +++ b/spec/models/get_subscription_response_reactivation_information_spec.rb @@ -31,13 +31,13 @@ expect(@instance).to be_instance_of(CyberSource::GetSubscriptionResponseReactivationInformation) end end - describe 'test attribute "skipped_payments_count"' do + describe 'test attribute "missed_payments_count"' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end - describe 'test attribute "skipped_payments_total_amount"' do + describe 'test attribute "missed_payments_total_amount"' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end diff --git a/spec/models/get_subscription_response_spec.rb b/spec/models/get_subscription_response_spec.rb index 590af858..311950d0 100644 --- a/spec/models/get_subscription_response_spec.rb +++ b/spec/models/get_subscription_response_spec.rb @@ -73,6 +73,12 @@ end end + describe 'test attribute "client_reference_information"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + describe 'test attribute "reactivation_information"' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers diff --git a/spec/models/inline_response_200_9_devices_spec.rb b/spec/models/inline_response_200_10_devices_spec.rb similarity index 90% rename from spec/models/inline_response_200_9_devices_spec.rb rename to spec/models/inline_response_200_10_devices_spec.rb index 23973db6..fb296b80 100644 --- a/spec/models/inline_response_200_9_devices_spec.rb +++ b/spec/models/inline_response_200_10_devices_spec.rb @@ -13,22 +13,22 @@ require 'json' require 'date' -# Unit tests for CyberSource::InlineResponse2009Devices +# Unit tests for CyberSource::InlineResponse20010Devices # Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen) # Please update as you see appropriate -describe 'InlineResponse2009Devices' do +describe 'InlineResponse20010Devices' do before do # run before each test - @instance = CyberSource::InlineResponse2009Devices.new + @instance = CyberSource::InlineResponse20010Devices.new end after do # run after each test end - describe 'test an instance of InlineResponse2009Devices' do - it 'should create an instance of InlineResponse2009Devices' do - expect(@instance).to be_instance_of(CyberSource::InlineResponse2009Devices) + describe 'test an instance of InlineResponse20010Devices' do + it 'should create an instance of InlineResponse20010Devices' do + expect(@instance).to be_instance_of(CyberSource::InlineResponse20010Devices) end end describe 'test attribute "reader_id"' do diff --git a/spec/models/inline_response_200_9_payment_processor_to_terminal_map_spec.rb b/spec/models/inline_response_200_10_payment_processor_to_terminal_map_spec.rb similarity index 69% rename from spec/models/inline_response_200_9_payment_processor_to_terminal_map_spec.rb rename to spec/models/inline_response_200_10_payment_processor_to_terminal_map_spec.rb index a4e28ca1..c2ab74d1 100644 --- a/spec/models/inline_response_200_9_payment_processor_to_terminal_map_spec.rb +++ b/spec/models/inline_response_200_10_payment_processor_to_terminal_map_spec.rb @@ -13,22 +13,22 @@ require 'json' require 'date' -# Unit tests for CyberSource::InlineResponse2009PaymentProcessorToTerminalMap +# Unit tests for CyberSource::InlineResponse20010PaymentProcessorToTerminalMap # Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen) # Please update as you see appropriate -describe 'InlineResponse2009PaymentProcessorToTerminalMap' do +describe 'InlineResponse20010PaymentProcessorToTerminalMap' do before do # run before each test - @instance = CyberSource::InlineResponse2009PaymentProcessorToTerminalMap.new + @instance = CyberSource::InlineResponse20010PaymentProcessorToTerminalMap.new end after do # run after each test end - describe 'test an instance of InlineResponse2009PaymentProcessorToTerminalMap' do - it 'should create an instance of InlineResponse2009PaymentProcessorToTerminalMap' do - expect(@instance).to be_instance_of(CyberSource::InlineResponse2009PaymentProcessorToTerminalMap) + describe 'test an instance of InlineResponse20010PaymentProcessorToTerminalMap' do + it 'should create an instance of InlineResponse20010PaymentProcessorToTerminalMap' do + expect(@instance).to be_instance_of(CyberSource::InlineResponse20010PaymentProcessorToTerminalMap) end end describe 'test attribute "processor"' do diff --git a/spec/models/inline_response_200_10_spec.rb b/spec/models/inline_response_200_10_spec.rb index 5fc26cd2..3f521e71 100644 --- a/spec/models/inline_response_200_10_spec.rb +++ b/spec/models/inline_response_200_10_spec.rb @@ -31,13 +31,7 @@ expect(@instance).to be_instance_of(CyberSource::InlineResponse20010) end end - describe 'test attribute "_links"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "object"' do + describe 'test attribute "total_count"' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end @@ -55,19 +49,19 @@ end end - describe 'test attribute "count"' do + describe 'test attribute "sort"' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end - describe 'test attribute "total"' do + describe 'test attribute "count"' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end - describe 'test attribute "_embedded"' do + describe 'test attribute "devices"' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end diff --git a/spec/models/inline_response_200_10__embedded__links_reports_spec.rb b/spec/models/inline_response_200_11__embedded__links_reports_spec.rb similarity index 71% rename from spec/models/inline_response_200_10__embedded__links_reports_spec.rb rename to spec/models/inline_response_200_11__embedded__links_reports_spec.rb index d4248103..c0a58f7d 100644 --- a/spec/models/inline_response_200_10__embedded__links_reports_spec.rb +++ b/spec/models/inline_response_200_11__embedded__links_reports_spec.rb @@ -13,22 +13,22 @@ require 'json' require 'date' -# Unit tests for CyberSource::InlineResponse20010EmbeddedLinksReports +# Unit tests for CyberSource::InlineResponse20011EmbeddedLinksReports # Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen) # Please update as you see appropriate -describe 'InlineResponse20010EmbeddedLinksReports' do +describe 'InlineResponse20011EmbeddedLinksReports' do before do # run before each test - @instance = CyberSource::InlineResponse20010EmbeddedLinksReports.new + @instance = CyberSource::InlineResponse20011EmbeddedLinksReports.new end after do # run after each test end - describe 'test an instance of InlineResponse20010EmbeddedLinksReports' do - it 'should create an instance of InlineResponse20010EmbeddedLinksReports' do - expect(@instance).to be_instance_of(CyberSource::InlineResponse20010EmbeddedLinksReports) + describe 'test an instance of InlineResponse20011EmbeddedLinksReports' do + it 'should create an instance of InlineResponse20011EmbeddedLinksReports' do + expect(@instance).to be_instance_of(CyberSource::InlineResponse20011EmbeddedLinksReports) end end describe 'test attribute "href"' do diff --git a/spec/models/inline_response_200_10__embedded__links_spec.rb b/spec/models/inline_response_200_11__embedded__links_spec.rb similarity index 72% rename from spec/models/inline_response_200_10__embedded__links_spec.rb rename to spec/models/inline_response_200_11__embedded__links_spec.rb index 885bcd80..95f08cc2 100644 --- a/spec/models/inline_response_200_10__embedded__links_spec.rb +++ b/spec/models/inline_response_200_11__embedded__links_spec.rb @@ -13,22 +13,22 @@ require 'json' require 'date' -# Unit tests for CyberSource::InlineResponse20010EmbeddedLinks +# Unit tests for CyberSource::InlineResponse20011EmbeddedLinks # Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen) # Please update as you see appropriate -describe 'InlineResponse20010EmbeddedLinks' do +describe 'InlineResponse20011EmbeddedLinks' do before do # run before each test - @instance = CyberSource::InlineResponse20010EmbeddedLinks.new + @instance = CyberSource::InlineResponse20011EmbeddedLinks.new end after do # run after each test end - describe 'test an instance of InlineResponse20010EmbeddedLinks' do - it 'should create an instance of InlineResponse20010EmbeddedLinks' do - expect(@instance).to be_instance_of(CyberSource::InlineResponse20010EmbeddedLinks) + describe 'test an instance of InlineResponse20011EmbeddedLinks' do + it 'should create an instance of InlineResponse20011EmbeddedLinks' do + expect(@instance).to be_instance_of(CyberSource::InlineResponse20011EmbeddedLinks) end end describe 'test attribute "reports"' do diff --git a/spec/models/inline_response_200_10__embedded_batches_spec.rb b/spec/models/inline_response_200_11__embedded_batches_spec.rb similarity index 88% rename from spec/models/inline_response_200_10__embedded_batches_spec.rb rename to spec/models/inline_response_200_11__embedded_batches_spec.rb index ec9cf51d..f63197cf 100644 --- a/spec/models/inline_response_200_10__embedded_batches_spec.rb +++ b/spec/models/inline_response_200_11__embedded_batches_spec.rb @@ -13,22 +13,22 @@ require 'json' require 'date' -# Unit tests for CyberSource::InlineResponse20010EmbeddedBatches +# Unit tests for CyberSource::InlineResponse20011EmbeddedBatches # Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen) # Please update as you see appropriate -describe 'InlineResponse20010EmbeddedBatches' do +describe 'InlineResponse20011EmbeddedBatches' do before do # run before each test - @instance = CyberSource::InlineResponse20010EmbeddedBatches.new + @instance = CyberSource::InlineResponse20011EmbeddedBatches.new end after do # run after each test end - describe 'test an instance of InlineResponse20010EmbeddedBatches' do - it 'should create an instance of InlineResponse20010EmbeddedBatches' do - expect(@instance).to be_instance_of(CyberSource::InlineResponse20010EmbeddedBatches) + describe 'test an instance of InlineResponse20011EmbeddedBatches' do + it 'should create an instance of InlineResponse20011EmbeddedBatches' do + expect(@instance).to be_instance_of(CyberSource::InlineResponse20011EmbeddedBatches) end end describe 'test attribute "_links"' do diff --git a/spec/models/inline_response_200_10__embedded_spec.rb b/spec/models/inline_response_200_11__embedded_spec.rb similarity index 73% rename from spec/models/inline_response_200_10__embedded_spec.rb rename to spec/models/inline_response_200_11__embedded_spec.rb index 3dde0c65..91212310 100644 --- a/spec/models/inline_response_200_10__embedded_spec.rb +++ b/spec/models/inline_response_200_11__embedded_spec.rb @@ -13,22 +13,22 @@ require 'json' require 'date' -# Unit tests for CyberSource::InlineResponse20010Embedded +# Unit tests for CyberSource::InlineResponse20011Embedded # Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen) # Please update as you see appropriate -describe 'InlineResponse20010Embedded' do +describe 'InlineResponse20011Embedded' do before do # run before each test - @instance = CyberSource::InlineResponse20010Embedded.new + @instance = CyberSource::InlineResponse20011Embedded.new end after do # run after each test end - describe 'test an instance of InlineResponse20010Embedded' do - it 'should create an instance of InlineResponse20010Embedded' do - expect(@instance).to be_instance_of(CyberSource::InlineResponse20010Embedded) + describe 'test an instance of InlineResponse20011Embedded' do + it 'should create an instance of InlineResponse20011Embedded' do + expect(@instance).to be_instance_of(CyberSource::InlineResponse20011Embedded) end end describe 'test attribute "batches"' do diff --git a/spec/models/inline_response_200_10__embedded_totals_spec.rb b/spec/models/inline_response_200_11__embedded_totals_spec.rb similarity index 83% rename from spec/models/inline_response_200_10__embedded_totals_spec.rb rename to spec/models/inline_response_200_11__embedded_totals_spec.rb index 06d484b9..9cf82fb0 100644 --- a/spec/models/inline_response_200_10__embedded_totals_spec.rb +++ b/spec/models/inline_response_200_11__embedded_totals_spec.rb @@ -13,22 +13,22 @@ require 'json' require 'date' -# Unit tests for CyberSource::InlineResponse20010EmbeddedTotals +# Unit tests for CyberSource::InlineResponse20011EmbeddedTotals # Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen) # Please update as you see appropriate -describe 'InlineResponse20010EmbeddedTotals' do +describe 'InlineResponse20011EmbeddedTotals' do before do # run before each test - @instance = CyberSource::InlineResponse20010EmbeddedTotals.new + @instance = CyberSource::InlineResponse20011EmbeddedTotals.new end after do # run after each test end - describe 'test an instance of InlineResponse20010EmbeddedTotals' do - it 'should create an instance of InlineResponse20010EmbeddedTotals' do - expect(@instance).to be_instance_of(CyberSource::InlineResponse20010EmbeddedTotals) + describe 'test an instance of InlineResponse20011EmbeddedTotals' do + it 'should create an instance of InlineResponse20011EmbeddedTotals' do + expect(@instance).to be_instance_of(CyberSource::InlineResponse20011EmbeddedTotals) end end describe 'test attribute "accepted_records"' do diff --git a/spec/models/inline_response_200_11__links_spec.rb b/spec/models/inline_response_200_11__links_spec.rb index 7727f88d..ccccf4c6 100644 --- a/spec/models/inline_response_200_11__links_spec.rb +++ b/spec/models/inline_response_200_11__links_spec.rb @@ -31,13 +31,13 @@ expect(@instance).to be_instance_of(CyberSource::InlineResponse20011Links) end end - describe 'test attribute "_self"' do + describe 'test attribute "rel"' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end - describe 'test attribute "report"' do + describe 'test attribute "href"' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end diff --git a/spec/models/inline_response_200_11_spec.rb b/spec/models/inline_response_200_11_spec.rb index 43d8d715..b1412692 100644 --- a/spec/models/inline_response_200_11_spec.rb +++ b/spec/models/inline_response_200_11_spec.rb @@ -37,55 +37,37 @@ end end - describe 'test attribute "batch_id"' do + describe 'test attribute "object"' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end - describe 'test attribute "batch_created_date"' do + describe 'test attribute "offset"' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end - describe 'test attribute "batch_source"' do + describe 'test attribute "limit"' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end - describe 'test attribute "merchant_reference"' do + describe 'test attribute "count"' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end - describe 'test attribute "batch_ca_endpoints"' do + describe 'test attribute "total"' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end - describe 'test attribute "status"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "totals"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "billing"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "description"' do + describe 'test attribute "_embedded"' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end diff --git a/spec/models/inline_response_200_11__links_report_spec.rb b/spec/models/inline_response_200_12__links_report_spec.rb similarity index 72% rename from spec/models/inline_response_200_11__links_report_spec.rb rename to spec/models/inline_response_200_12__links_report_spec.rb index 2eebd361..a26d4ebe 100644 --- a/spec/models/inline_response_200_11__links_report_spec.rb +++ b/spec/models/inline_response_200_12__links_report_spec.rb @@ -13,22 +13,22 @@ require 'json' require 'date' -# Unit tests for CyberSource::InlineResponse20011LinksReport +# Unit tests for CyberSource::InlineResponse20012LinksReport # Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen) # Please update as you see appropriate -describe 'InlineResponse20011LinksReport' do +describe 'InlineResponse20012LinksReport' do before do # run before each test - @instance = CyberSource::InlineResponse20011LinksReport.new + @instance = CyberSource::InlineResponse20012LinksReport.new end after do # run after each test end - describe 'test an instance of InlineResponse20011LinksReport' do - it 'should create an instance of InlineResponse20011LinksReport' do - expect(@instance).to be_instance_of(CyberSource::InlineResponse20011LinksReport) + describe 'test an instance of InlineResponse20012LinksReport' do + it 'should create an instance of InlineResponse20012LinksReport' do + expect(@instance).to be_instance_of(CyberSource::InlineResponse20012LinksReport) end end describe 'test attribute "href"' do diff --git a/spec/models/inline_response_200_10__links_spec.rb b/spec/models/inline_response_200_12__links_spec.rb similarity index 71% rename from spec/models/inline_response_200_10__links_spec.rb rename to spec/models/inline_response_200_12__links_spec.rb index c50da283..cefeb718 100644 --- a/spec/models/inline_response_200_10__links_spec.rb +++ b/spec/models/inline_response_200_12__links_spec.rb @@ -13,31 +13,31 @@ require 'json' require 'date' -# Unit tests for CyberSource::InlineResponse20010Links +# Unit tests for CyberSource::InlineResponse20012Links # Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen) # Please update as you see appropriate -describe 'InlineResponse20010Links' do +describe 'InlineResponse20012Links' do before do # run before each test - @instance = CyberSource::InlineResponse20010Links.new + @instance = CyberSource::InlineResponse20012Links.new end after do # run after each test end - describe 'test an instance of InlineResponse20010Links' do - it 'should create an instance of InlineResponse20010Links' do - expect(@instance).to be_instance_of(CyberSource::InlineResponse20010Links) + describe 'test an instance of InlineResponse20012Links' do + it 'should create an instance of InlineResponse20012Links' do + expect(@instance).to be_instance_of(CyberSource::InlineResponse20012Links) end end - describe 'test attribute "rel"' do + describe 'test attribute "_self"' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end - describe 'test attribute "href"' do + describe 'test attribute "report"' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end diff --git a/spec/models/inline_response_200_11_billing_spec.rb b/spec/models/inline_response_200_12_billing_spec.rb similarity index 81% rename from spec/models/inline_response_200_11_billing_spec.rb rename to spec/models/inline_response_200_12_billing_spec.rb index f0a42981..af0274dd 100644 --- a/spec/models/inline_response_200_11_billing_spec.rb +++ b/spec/models/inline_response_200_12_billing_spec.rb @@ -13,22 +13,22 @@ require 'json' require 'date' -# Unit tests for CyberSource::InlineResponse20011Billing +# Unit tests for CyberSource::InlineResponse20012Billing # Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen) # Please update as you see appropriate -describe 'InlineResponse20011Billing' do +describe 'InlineResponse20012Billing' do before do # run before each test - @instance = CyberSource::InlineResponse20011Billing.new + @instance = CyberSource::InlineResponse20012Billing.new end after do # run after each test end - describe 'test an instance of InlineResponse20011Billing' do - it 'should create an instance of InlineResponse20011Billing' do - expect(@instance).to be_instance_of(CyberSource::InlineResponse20011Billing) + describe 'test an instance of InlineResponse20012Billing' do + it 'should create an instance of InlineResponse20012Billing' do + expect(@instance).to be_instance_of(CyberSource::InlineResponse20012Billing) end end describe 'test attribute "nan"' do diff --git a/spec/models/inline_response_200_12_spec.rb b/spec/models/inline_response_200_12_spec.rb index bf8fb09c..78247f16 100644 --- a/spec/models/inline_response_200_12_spec.rb +++ b/spec/models/inline_response_200_12_spec.rb @@ -31,19 +31,19 @@ expect(@instance).to be_instance_of(CyberSource::InlineResponse20012) end end - describe 'test attribute "version"' do + describe 'test attribute "_links"' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end - describe 'test attribute "report_created_date"' do + describe 'test attribute "batch_id"' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end - describe 'test attribute "batch_id"' do + describe 'test attribute "batch_created_date"' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end @@ -55,19 +55,19 @@ end end - describe 'test attribute "batch_ca_endpoints"' do + describe 'test attribute "merchant_reference"' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end - describe 'test attribute "batch_created_date"' do + describe 'test attribute "batch_ca_endpoints"' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end - describe 'test attribute "merchant_reference"' do + describe 'test attribute "status"' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end @@ -85,7 +85,7 @@ end end - describe 'test attribute "records"' do + describe 'test attribute "description"' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end diff --git a/spec/models/inline_response_200_12_records_spec.rb b/spec/models/inline_response_200_13_records_spec.rb similarity index 79% rename from spec/models/inline_response_200_12_records_spec.rb rename to spec/models/inline_response_200_13_records_spec.rb index b7cbcce5..bebd85fb 100644 --- a/spec/models/inline_response_200_12_records_spec.rb +++ b/spec/models/inline_response_200_13_records_spec.rb @@ -13,22 +13,22 @@ require 'json' require 'date' -# Unit tests for CyberSource::InlineResponse20012Records +# Unit tests for CyberSource::InlineResponse20013Records # Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen) # Please update as you see appropriate -describe 'InlineResponse20012Records' do +describe 'InlineResponse20013Records' do before do # run before each test - @instance = CyberSource::InlineResponse20012Records.new + @instance = CyberSource::InlineResponse20013Records.new end after do # run after each test end - describe 'test an instance of InlineResponse20012Records' do - it 'should create an instance of InlineResponse20012Records' do - expect(@instance).to be_instance_of(CyberSource::InlineResponse20012Records) + describe 'test an instance of InlineResponse20013Records' do + it 'should create an instance of InlineResponse20013Records' do + expect(@instance).to be_instance_of(CyberSource::InlineResponse20013Records) end end describe 'test attribute "id"' do diff --git a/spec/models/inline_response_200_12_response_record_additional_updates_spec.rb b/spec/models/inline_response_200_13_response_record_additional_updates_spec.rb similarity index 82% rename from spec/models/inline_response_200_12_response_record_additional_updates_spec.rb rename to spec/models/inline_response_200_13_response_record_additional_updates_spec.rb index e5888e12..439544c1 100644 --- a/spec/models/inline_response_200_12_response_record_additional_updates_spec.rb +++ b/spec/models/inline_response_200_13_response_record_additional_updates_spec.rb @@ -13,22 +13,22 @@ require 'json' require 'date' -# Unit tests for CyberSource::InlineResponse20012ResponseRecordAdditionalUpdates +# Unit tests for CyberSource::InlineResponse20013ResponseRecordAdditionalUpdates # Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen) # Please update as you see appropriate -describe 'InlineResponse20012ResponseRecordAdditionalUpdates' do +describe 'InlineResponse20013ResponseRecordAdditionalUpdates' do before do # run before each test - @instance = CyberSource::InlineResponse20012ResponseRecordAdditionalUpdates.new + @instance = CyberSource::InlineResponse20013ResponseRecordAdditionalUpdates.new end after do # run after each test end - describe 'test an instance of InlineResponse20012ResponseRecordAdditionalUpdates' do - it 'should create an instance of InlineResponse20012ResponseRecordAdditionalUpdates' do - expect(@instance).to be_instance_of(CyberSource::InlineResponse20012ResponseRecordAdditionalUpdates) + describe 'test an instance of InlineResponse20013ResponseRecordAdditionalUpdates' do + it 'should create an instance of InlineResponse20013ResponseRecordAdditionalUpdates' do + expect(@instance).to be_instance_of(CyberSource::InlineResponse20013ResponseRecordAdditionalUpdates) end end describe 'test attribute "customer_id"' do diff --git a/spec/models/inline_response_200_12_response_record_spec.rb b/spec/models/inline_response_200_13_response_record_spec.rb similarity index 88% rename from spec/models/inline_response_200_12_response_record_spec.rb rename to spec/models/inline_response_200_13_response_record_spec.rb index b25c114f..fff6a63a 100644 --- a/spec/models/inline_response_200_12_response_record_spec.rb +++ b/spec/models/inline_response_200_13_response_record_spec.rb @@ -13,22 +13,22 @@ require 'json' require 'date' -# Unit tests for CyberSource::InlineResponse20012ResponseRecord +# Unit tests for CyberSource::InlineResponse20013ResponseRecord # Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen) # Please update as you see appropriate -describe 'InlineResponse20012ResponseRecord' do +describe 'InlineResponse20013ResponseRecord' do before do # run before each test - @instance = CyberSource::InlineResponse20012ResponseRecord.new + @instance = CyberSource::InlineResponse20013ResponseRecord.new end after do # run after each test end - describe 'test an instance of InlineResponse20012ResponseRecord' do - it 'should create an instance of InlineResponse20012ResponseRecord' do - expect(@instance).to be_instance_of(CyberSource::InlineResponse20012ResponseRecord) + describe 'test an instance of InlineResponse20013ResponseRecord' do + it 'should create an instance of InlineResponse20013ResponseRecord' do + expect(@instance).to be_instance_of(CyberSource::InlineResponse20013ResponseRecord) end end describe 'test attribute "response"' do diff --git a/spec/models/inline_response_200_12_source_record_spec.rb b/spec/models/inline_response_200_13_source_record_spec.rb similarity index 87% rename from spec/models/inline_response_200_12_source_record_spec.rb rename to spec/models/inline_response_200_13_source_record_spec.rb index 63c93291..0c026975 100644 --- a/spec/models/inline_response_200_12_source_record_spec.rb +++ b/spec/models/inline_response_200_13_source_record_spec.rb @@ -13,22 +13,22 @@ require 'json' require 'date' -# Unit tests for CyberSource::InlineResponse20012SourceRecord +# Unit tests for CyberSource::InlineResponse20013SourceRecord # Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen) # Please update as you see appropriate -describe 'InlineResponse20012SourceRecord' do +describe 'InlineResponse20013SourceRecord' do before do # run before each test - @instance = CyberSource::InlineResponse20012SourceRecord.new + @instance = CyberSource::InlineResponse20013SourceRecord.new end after do # run after each test end - describe 'test an instance of InlineResponse20012SourceRecord' do - it 'should create an instance of InlineResponse20012SourceRecord' do - expect(@instance).to be_instance_of(CyberSource::InlineResponse20012SourceRecord) + describe 'test an instance of InlineResponse20013SourceRecord' do + it 'should create an instance of InlineResponse20013SourceRecord' do + expect(@instance).to be_instance_of(CyberSource::InlineResponse20013SourceRecord) end end describe 'test attribute "token"' do diff --git a/spec/models/inline_response_200_13_spec.rb b/spec/models/inline_response_200_13_spec.rb index 6ced67b3..de5676ec 100644 --- a/spec/models/inline_response_200_13_spec.rb +++ b/spec/models/inline_response_200_13_spec.rb @@ -31,25 +31,61 @@ expect(@instance).to be_instance_of(CyberSource::InlineResponse20013) end end - describe 'test attribute "client_reference_information"' do + describe 'test attribute "version"' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end - describe 'test attribute "request_id"' do + describe 'test attribute "report_created_date"' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end - describe 'test attribute "submit_time_utc"' do + describe 'test attribute "batch_id"' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end - describe 'test attribute "bank_account_validation"' do + describe 'test attribute "batch_source"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + describe 'test attribute "batch_ca_endpoints"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + describe 'test attribute "batch_created_date"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + describe 'test attribute "merchant_reference"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + describe 'test attribute "totals"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + describe 'test attribute "billing"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + describe 'test attribute "records"' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end diff --git a/spec/models/inline_response_200_14_spec.rb b/spec/models/inline_response_200_14_spec.rb index 53120cb6..877546ee 100644 --- a/spec/models/inline_response_200_14_spec.rb +++ b/spec/models/inline_response_200_14_spec.rb @@ -37,7 +37,7 @@ end end - describe 'test attribute "id"' do + describe 'test attribute "request_id"' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end @@ -49,19 +49,7 @@ end end - describe 'test attribute "status"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "error_information"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "order_information"' do + describe 'test attribute "bank_account_validation"' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end diff --git a/spec/models/inline_response_200_14_client_reference_information_spec.rb b/spec/models/inline_response_200_15_client_reference_information_spec.rb similarity index 82% rename from spec/models/inline_response_200_14_client_reference_information_spec.rb rename to spec/models/inline_response_200_15_client_reference_information_spec.rb index 7b6d82be..e11c7b65 100644 --- a/spec/models/inline_response_200_14_client_reference_information_spec.rb +++ b/spec/models/inline_response_200_15_client_reference_information_spec.rb @@ -13,22 +13,22 @@ require 'json' require 'date' -# Unit tests for CyberSource::InlineResponse20014ClientReferenceInformation +# Unit tests for CyberSource::InlineResponse20015ClientReferenceInformation # Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen) # Please update as you see appropriate -describe 'InlineResponse20014ClientReferenceInformation' do +describe 'InlineResponse20015ClientReferenceInformation' do before do # run before each test - @instance = CyberSource::InlineResponse20014ClientReferenceInformation.new + @instance = CyberSource::InlineResponse20015ClientReferenceInformation.new end after do # run after each test end - describe 'test an instance of InlineResponse20014ClientReferenceInformation' do - it 'should create an instance of InlineResponse20014ClientReferenceInformation' do - expect(@instance).to be_instance_of(CyberSource::InlineResponse20014ClientReferenceInformation) + describe 'test an instance of InlineResponse20015ClientReferenceInformation' do + it 'should create an instance of InlineResponse20015ClientReferenceInformation' do + expect(@instance).to be_instance_of(CyberSource::InlineResponse20015ClientReferenceInformation) end end describe 'test attribute "code"' do diff --git a/spec/models/inline_response_200_15_spec.rb b/spec/models/inline_response_200_15_spec.rb new file mode 100644 index 00000000..a1d45ac4 --- /dev/null +++ b/spec/models/inline_response_200_15_spec.rb @@ -0,0 +1,70 @@ +=begin +#CyberSource Merged Spec + +#All CyberSource API specs merged together. These are available at https://developer.cybersource.com/api/reference/api-reference.html + +OpenAPI spec version: 0.0.1 + +Generated by: https://github.com/swagger-api/swagger-codegen.git +Swagger Codegen version: 2.4.38 +=end + +require 'spec_helper' +require 'json' +require 'date' + +# Unit tests for CyberSource::InlineResponse20015 +# Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen) +# Please update as you see appropriate +describe 'InlineResponse20015' do + before do + # run before each test + @instance = CyberSource::InlineResponse20015.new + end + + after do + # run after each test + end + + describe 'test an instance of InlineResponse20015' do + it 'should create an instance of InlineResponse20015' do + expect(@instance).to be_instance_of(CyberSource::InlineResponse20015) + end + end + describe 'test attribute "client_reference_information"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + describe 'test attribute "id"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + describe 'test attribute "submit_time_utc"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + describe 'test attribute "status"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + describe 'test attribute "error_information"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + describe 'test attribute "order_information"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + +end diff --git a/spec/models/inline_response_200_content_spec.rb b/spec/models/inline_response_200_1_content_spec.rb similarity index 81% rename from spec/models/inline_response_200_content_spec.rb rename to spec/models/inline_response_200_1_content_spec.rb index e02600dd..e456e352 100644 --- a/spec/models/inline_response_200_content_spec.rb +++ b/spec/models/inline_response_200_1_content_spec.rb @@ -13,22 +13,22 @@ require 'json' require 'date' -# Unit tests for CyberSource::InlineResponse200Content +# Unit tests for CyberSource::InlineResponse2001Content # Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen) # Please update as you see appropriate -describe 'InlineResponse200Content' do +describe 'InlineResponse2001Content' do before do # run before each test - @instance = CyberSource::InlineResponse200Content.new + @instance = CyberSource::InlineResponse2001Content.new end after do # run after each test end - describe 'test an instance of InlineResponse200Content' do - it 'should create an instance of InlineResponse200Content' do - expect(@instance).to be_instance_of(CyberSource::InlineResponse200Content) + describe 'test an instance of InlineResponse2001Content' do + it 'should create an instance of InlineResponse2001Content' do + expect(@instance).to be_instance_of(CyberSource::InlineResponse2001Content) end end describe 'test attribute "type"' do diff --git a/spec/models/inline_response_200_1_spec.rb b/spec/models/inline_response_200_1_spec.rb index 04e01a66..104c221d 100644 --- a/spec/models/inline_response_200_1_spec.rb +++ b/spec/models/inline_response_200_1_spec.rb @@ -37,19 +37,19 @@ end end - describe 'test attribute "submit_time_utc"' do + describe 'test attribute "type"' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end - describe 'test attribute "status"' do + describe 'test attribute "provider"' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end - describe 'test attribute "_embedded"' do + describe 'test attribute "content"' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end diff --git a/spec/models/inline_response_200_1__embedded_capture__links_self_spec.rb b/spec/models/inline_response_200_2__embedded_capture__links_self_spec.rb similarity index 75% rename from spec/models/inline_response_200_1__embedded_capture__links_self_spec.rb rename to spec/models/inline_response_200_2__embedded_capture__links_self_spec.rb index cb88b1eb..f9710581 100644 --- a/spec/models/inline_response_200_1__embedded_capture__links_self_spec.rb +++ b/spec/models/inline_response_200_2__embedded_capture__links_self_spec.rb @@ -13,22 +13,22 @@ require 'json' require 'date' -# Unit tests for CyberSource::InlineResponse2001EmbeddedCaptureLinksSelf +# Unit tests for CyberSource::InlineResponse2002EmbeddedCaptureLinksSelf # Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen) # Please update as you see appropriate -describe 'InlineResponse2001EmbeddedCaptureLinksSelf' do +describe 'InlineResponse2002EmbeddedCaptureLinksSelf' do before do # run before each test - @instance = CyberSource::InlineResponse2001EmbeddedCaptureLinksSelf.new + @instance = CyberSource::InlineResponse2002EmbeddedCaptureLinksSelf.new end after do # run after each test end - describe 'test an instance of InlineResponse2001EmbeddedCaptureLinksSelf' do - it 'should create an instance of InlineResponse2001EmbeddedCaptureLinksSelf' do - expect(@instance).to be_instance_of(CyberSource::InlineResponse2001EmbeddedCaptureLinksSelf) + describe 'test an instance of InlineResponse2002EmbeddedCaptureLinksSelf' do + it 'should create an instance of InlineResponse2002EmbeddedCaptureLinksSelf' do + expect(@instance).to be_instance_of(CyberSource::InlineResponse2002EmbeddedCaptureLinksSelf) end end describe 'test attribute "href"' do diff --git a/spec/models/inline_response_200_1__embedded_capture__links_spec.rb b/spec/models/inline_response_200_2__embedded_capture__links_spec.rb similarity index 71% rename from spec/models/inline_response_200_1__embedded_capture__links_spec.rb rename to spec/models/inline_response_200_2__embedded_capture__links_spec.rb index 826ce382..5c181a5c 100644 --- a/spec/models/inline_response_200_1__embedded_capture__links_spec.rb +++ b/spec/models/inline_response_200_2__embedded_capture__links_spec.rb @@ -13,22 +13,22 @@ require 'json' require 'date' -# Unit tests for CyberSource::InlineResponse2001EmbeddedCaptureLinks +# Unit tests for CyberSource::InlineResponse2002EmbeddedCaptureLinks # Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen) # Please update as you see appropriate -describe 'InlineResponse2001EmbeddedCaptureLinks' do +describe 'InlineResponse2002EmbeddedCaptureLinks' do before do # run before each test - @instance = CyberSource::InlineResponse2001EmbeddedCaptureLinks.new + @instance = CyberSource::InlineResponse2002EmbeddedCaptureLinks.new end after do # run after each test end - describe 'test an instance of InlineResponse2001EmbeddedCaptureLinks' do - it 'should create an instance of InlineResponse2001EmbeddedCaptureLinks' do - expect(@instance).to be_instance_of(CyberSource::InlineResponse2001EmbeddedCaptureLinks) + describe 'test an instance of InlineResponse2002EmbeddedCaptureLinks' do + it 'should create an instance of InlineResponse2002EmbeddedCaptureLinks' do + expect(@instance).to be_instance_of(CyberSource::InlineResponse2002EmbeddedCaptureLinks) end end describe 'test attribute "_self"' do diff --git a/spec/models/inline_response_200_1__embedded_capture_spec.rb b/spec/models/inline_response_200_2__embedded_capture_spec.rb similarity index 75% rename from spec/models/inline_response_200_1__embedded_capture_spec.rb rename to spec/models/inline_response_200_2__embedded_capture_spec.rb index f64295bb..283437b0 100644 --- a/spec/models/inline_response_200_1__embedded_capture_spec.rb +++ b/spec/models/inline_response_200_2__embedded_capture_spec.rb @@ -13,22 +13,22 @@ require 'json' require 'date' -# Unit tests for CyberSource::InlineResponse2001EmbeddedCapture +# Unit tests for CyberSource::InlineResponse2002EmbeddedCapture # Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen) # Please update as you see appropriate -describe 'InlineResponse2001EmbeddedCapture' do +describe 'InlineResponse2002EmbeddedCapture' do before do # run before each test - @instance = CyberSource::InlineResponse2001EmbeddedCapture.new + @instance = CyberSource::InlineResponse2002EmbeddedCapture.new end after do # run after each test end - describe 'test an instance of InlineResponse2001EmbeddedCapture' do - it 'should create an instance of InlineResponse2001EmbeddedCapture' do - expect(@instance).to be_instance_of(CyberSource::InlineResponse2001EmbeddedCapture) + describe 'test an instance of InlineResponse2002EmbeddedCapture' do + it 'should create an instance of InlineResponse2002EmbeddedCapture' do + expect(@instance).to be_instance_of(CyberSource::InlineResponse2002EmbeddedCapture) end end describe 'test attribute "status"' do diff --git a/spec/models/inline_response_200_1__embedded_reversal__links_self_spec.rb b/spec/models/inline_response_200_2__embedded_reversal__links_self_spec.rb similarity index 75% rename from spec/models/inline_response_200_1__embedded_reversal__links_self_spec.rb rename to spec/models/inline_response_200_2__embedded_reversal__links_self_spec.rb index c01ceae1..6ac24b84 100644 --- a/spec/models/inline_response_200_1__embedded_reversal__links_self_spec.rb +++ b/spec/models/inline_response_200_2__embedded_reversal__links_self_spec.rb @@ -13,22 +13,22 @@ require 'json' require 'date' -# Unit tests for CyberSource::InlineResponse2001EmbeddedReversalLinksSelf +# Unit tests for CyberSource::InlineResponse2002EmbeddedReversalLinksSelf # Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen) # Please update as you see appropriate -describe 'InlineResponse2001EmbeddedReversalLinksSelf' do +describe 'InlineResponse2002EmbeddedReversalLinksSelf' do before do # run before each test - @instance = CyberSource::InlineResponse2001EmbeddedReversalLinksSelf.new + @instance = CyberSource::InlineResponse2002EmbeddedReversalLinksSelf.new end after do # run after each test end - describe 'test an instance of InlineResponse2001EmbeddedReversalLinksSelf' do - it 'should create an instance of InlineResponse2001EmbeddedReversalLinksSelf' do - expect(@instance).to be_instance_of(CyberSource::InlineResponse2001EmbeddedReversalLinksSelf) + describe 'test an instance of InlineResponse2002EmbeddedReversalLinksSelf' do + it 'should create an instance of InlineResponse2002EmbeddedReversalLinksSelf' do + expect(@instance).to be_instance_of(CyberSource::InlineResponse2002EmbeddedReversalLinksSelf) end end describe 'test attribute "href"' do diff --git a/spec/models/inline_response_200_1__embedded_reversal__links_spec.rb b/spec/models/inline_response_200_2__embedded_reversal__links_spec.rb similarity index 71% rename from spec/models/inline_response_200_1__embedded_reversal__links_spec.rb rename to spec/models/inline_response_200_2__embedded_reversal__links_spec.rb index 79cbb5da..57b3e404 100644 --- a/spec/models/inline_response_200_1__embedded_reversal__links_spec.rb +++ b/spec/models/inline_response_200_2__embedded_reversal__links_spec.rb @@ -13,22 +13,22 @@ require 'json' require 'date' -# Unit tests for CyberSource::InlineResponse2001EmbeddedReversalLinks +# Unit tests for CyberSource::InlineResponse2002EmbeddedReversalLinks # Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen) # Please update as you see appropriate -describe 'InlineResponse2001EmbeddedReversalLinks' do +describe 'InlineResponse2002EmbeddedReversalLinks' do before do # run before each test - @instance = CyberSource::InlineResponse2001EmbeddedReversalLinks.new + @instance = CyberSource::InlineResponse2002EmbeddedReversalLinks.new end after do # run after each test end - describe 'test an instance of InlineResponse2001EmbeddedReversalLinks' do - it 'should create an instance of InlineResponse2001EmbeddedReversalLinks' do - expect(@instance).to be_instance_of(CyberSource::InlineResponse2001EmbeddedReversalLinks) + describe 'test an instance of InlineResponse2002EmbeddedReversalLinks' do + it 'should create an instance of InlineResponse2002EmbeddedReversalLinks' do + expect(@instance).to be_instance_of(CyberSource::InlineResponse2002EmbeddedReversalLinks) end end describe 'test attribute "_self"' do diff --git a/spec/models/inline_response_200_1__embedded_reversal_spec.rb b/spec/models/inline_response_200_2__embedded_reversal_spec.rb similarity index 75% rename from spec/models/inline_response_200_1__embedded_reversal_spec.rb rename to spec/models/inline_response_200_2__embedded_reversal_spec.rb index 3e8efb00..2f056469 100644 --- a/spec/models/inline_response_200_1__embedded_reversal_spec.rb +++ b/spec/models/inline_response_200_2__embedded_reversal_spec.rb @@ -13,22 +13,22 @@ require 'json' require 'date' -# Unit tests for CyberSource::InlineResponse2001EmbeddedReversal +# Unit tests for CyberSource::InlineResponse2002EmbeddedReversal # Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen) # Please update as you see appropriate -describe 'InlineResponse2001EmbeddedReversal' do +describe 'InlineResponse2002EmbeddedReversal' do before do # run before each test - @instance = CyberSource::InlineResponse2001EmbeddedReversal.new + @instance = CyberSource::InlineResponse2002EmbeddedReversal.new end after do # run after each test end - describe 'test an instance of InlineResponse2001EmbeddedReversal' do - it 'should create an instance of InlineResponse2001EmbeddedReversal' do - expect(@instance).to be_instance_of(CyberSource::InlineResponse2001EmbeddedReversal) + describe 'test an instance of InlineResponse2002EmbeddedReversal' do + it 'should create an instance of InlineResponse2002EmbeddedReversal' do + expect(@instance).to be_instance_of(CyberSource::InlineResponse2002EmbeddedReversal) end end describe 'test attribute "status"' do diff --git a/spec/models/inline_response_200_1__embedded_spec.rb b/spec/models/inline_response_200_2__embedded_spec.rb similarity index 77% rename from spec/models/inline_response_200_1__embedded_spec.rb rename to spec/models/inline_response_200_2__embedded_spec.rb index a28f0b24..4544f49a 100644 --- a/spec/models/inline_response_200_1__embedded_spec.rb +++ b/spec/models/inline_response_200_2__embedded_spec.rb @@ -13,22 +13,22 @@ require 'json' require 'date' -# Unit tests for CyberSource::InlineResponse2001Embedded +# Unit tests for CyberSource::InlineResponse2002Embedded # Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen) # Please update as you see appropriate -describe 'InlineResponse2001Embedded' do +describe 'InlineResponse2002Embedded' do before do # run before each test - @instance = CyberSource::InlineResponse2001Embedded.new + @instance = CyberSource::InlineResponse2002Embedded.new end after do # run after each test end - describe 'test an instance of InlineResponse2001Embedded' do - it 'should create an instance of InlineResponse2001Embedded' do - expect(@instance).to be_instance_of(CyberSource::InlineResponse2001Embedded) + describe 'test an instance of InlineResponse2002Embedded' do + it 'should create an instance of InlineResponse2002Embedded' do + expect(@instance).to be_instance_of(CyberSource::InlineResponse2002Embedded) end end describe 'test attribute "capture"' do diff --git a/spec/models/inline_response_200_2_spec.rb b/spec/models/inline_response_200_2_spec.rb index d76fa8c7..d63c6457 100644 --- a/spec/models/inline_response_200_2_spec.rb +++ b/spec/models/inline_response_200_2_spec.rb @@ -37,67 +37,19 @@ end end - describe 'test attribute "field_type"' do + describe 'test attribute "submit_time_utc"' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end - describe 'test attribute "label"' do + describe 'test attribute "status"' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end - describe 'test attribute "customer_visible"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "text_min_length"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "text_max_length"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "possible_values"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "text_default_value"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "merchant_id"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "reference_type"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "read_only"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "merchant_defined_data_index"' do + describe 'test attribute "_embedded"' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end diff --git a/spec/models/inline_response_200_3_spec.rb b/spec/models/inline_response_200_3_spec.rb index 18a990c0..aeb4a064 100644 --- a/spec/models/inline_response_200_3_spec.rb +++ b/spec/models/inline_response_200_3_spec.rb @@ -31,43 +31,73 @@ expect(@instance).to be_instance_of(CyberSource::InlineResponse2003) end end - describe 'test attribute "registration_information"' do + describe 'test attribute "id"' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end - describe 'test attribute "integration_information"' do + describe 'test attribute "field_type"' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end - describe 'test attribute "organization_information"' do + describe 'test attribute "label"' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end - describe 'test attribute "product_information"' do + describe 'test attribute "customer_visible"' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end - describe 'test attribute "product_information_setups"' do + describe 'test attribute "text_min_length"' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end - describe 'test attribute "document_information"' do + describe 'test attribute "text_max_length"' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end - describe 'test attribute "details"' do + describe 'test attribute "possible_values"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + describe 'test attribute "text_default_value"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + describe 'test attribute "merchant_id"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + describe 'test attribute "reference_type"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + describe 'test attribute "read_only"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + describe 'test attribute "merchant_defined_data_index"' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end diff --git a/spec/models/inline_response_200_3_integration_information_spec.rb b/spec/models/inline_response_200_4_integration_information_spec.rb similarity index 75% rename from spec/models/inline_response_200_3_integration_information_spec.rb rename to spec/models/inline_response_200_4_integration_information_spec.rb index 1c6b8da1..d6b2fa3c 100644 --- a/spec/models/inline_response_200_3_integration_information_spec.rb +++ b/spec/models/inline_response_200_4_integration_information_spec.rb @@ -13,22 +13,22 @@ require 'json' require 'date' -# Unit tests for CyberSource::InlineResponse2003IntegrationInformation +# Unit tests for CyberSource::InlineResponse2004IntegrationInformation # Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen) # Please update as you see appropriate -describe 'InlineResponse2003IntegrationInformation' do +describe 'InlineResponse2004IntegrationInformation' do before do # run before each test - @instance = CyberSource::InlineResponse2003IntegrationInformation.new + @instance = CyberSource::InlineResponse2004IntegrationInformation.new end after do # run after each test end - describe 'test an instance of InlineResponse2003IntegrationInformation' do - it 'should create an instance of InlineResponse2003IntegrationInformation' do - expect(@instance).to be_instance_of(CyberSource::InlineResponse2003IntegrationInformation) + describe 'test an instance of InlineResponse2004IntegrationInformation' do + it 'should create an instance of InlineResponse2004IntegrationInformation' do + expect(@instance).to be_instance_of(CyberSource::InlineResponse2004IntegrationInformation) end end describe 'test attribute "oauth2"' do diff --git a/spec/models/inline_response_200_3_integration_information_tenant_configurations_spec.rb b/spec/models/inline_response_200_4_integration_information_tenant_configurations_spec.rb similarity index 82% rename from spec/models/inline_response_200_3_integration_information_tenant_configurations_spec.rb rename to spec/models/inline_response_200_4_integration_information_tenant_configurations_spec.rb index 2348efa8..9f1913e8 100644 --- a/spec/models/inline_response_200_3_integration_information_tenant_configurations_spec.rb +++ b/spec/models/inline_response_200_4_integration_information_tenant_configurations_spec.rb @@ -13,22 +13,22 @@ require 'json' require 'date' -# Unit tests for CyberSource::InlineResponse2003IntegrationInformationTenantConfigurations +# Unit tests for CyberSource::InlineResponse2004IntegrationInformationTenantConfigurations # Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen) # Please update as you see appropriate -describe 'InlineResponse2003IntegrationInformationTenantConfigurations' do +describe 'InlineResponse2004IntegrationInformationTenantConfigurations' do before do # run before each test - @instance = CyberSource::InlineResponse2003IntegrationInformationTenantConfigurations.new + @instance = CyberSource::InlineResponse2004IntegrationInformationTenantConfigurations.new end after do # run after each test end - describe 'test an instance of InlineResponse2003IntegrationInformationTenantConfigurations' do - it 'should create an instance of InlineResponse2003IntegrationInformationTenantConfigurations' do - expect(@instance).to be_instance_of(CyberSource::InlineResponse2003IntegrationInformationTenantConfigurations) + describe 'test an instance of InlineResponse2004IntegrationInformationTenantConfigurations' do + it 'should create an instance of InlineResponse2004IntegrationInformationTenantConfigurations' do + expect(@instance).to be_instance_of(CyberSource::InlineResponse2004IntegrationInformationTenantConfigurations) end end describe 'test attribute "solution_id"' do diff --git a/spec/models/inline_response_200_4_spec.rb b/spec/models/inline_response_200_4_spec.rb index bda00598..257edff5 100644 --- a/spec/models/inline_response_200_4_spec.rb +++ b/spec/models/inline_response_200_4_spec.rb @@ -31,19 +31,43 @@ expect(@instance).to be_instance_of(CyberSource::InlineResponse2004) end end - describe 'test attribute "product_id"' do + describe 'test attribute "registration_information"' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end - describe 'test attribute "product_name"' do + describe 'test attribute "integration_information"' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end - describe 'test attribute "event_types"' do + describe 'test attribute "organization_information"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + describe 'test attribute "product_information"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + describe 'test attribute "product_information_setups"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + describe 'test attribute "document_information"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + describe 'test attribute "details"' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end diff --git a/spec/models/inline_response_200_5_spec.rb b/spec/models/inline_response_200_5_spec.rb index 4b4e84bb..9a7a66a1 100644 --- a/spec/models/inline_response_200_5_spec.rb +++ b/spec/models/inline_response_200_5_spec.rb @@ -31,73 +31,19 @@ expect(@instance).to be_instance_of(CyberSource::InlineResponse2005) end end - describe 'test attribute "webhook_id"' do + describe 'test attribute "product_id"' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end - describe 'test attribute "organization_id"' do + describe 'test attribute "product_name"' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end - describe 'test attribute "products"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "webhook_url"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "health_check_url"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "status"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "name"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "description"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "retry_policy"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "security_policy"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "created_on"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "notification_scope"' do + describe 'test attribute "event_types"' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end diff --git a/spec/models/inline_response_200_6_spec.rb b/spec/models/inline_response_200_6_spec.rb index 737ad6d6..45ba5105 100644 --- a/spec/models/inline_response_200_6_spec.rb +++ b/spec/models/inline_response_200_6_spec.rb @@ -97,12 +97,6 @@ end end - describe 'test attribute "updated_on"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - describe 'test attribute "notification_scope"' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers diff --git a/spec/models/inline_response_200_7_spec.rb b/spec/models/inline_response_200_7_spec.rb index 366f53d4..b18e7947 100644 --- a/spec/models/inline_response_200_7_spec.rb +++ b/spec/models/inline_response_200_7_spec.rb @@ -31,37 +31,79 @@ expect(@instance).to be_instance_of(CyberSource::InlineResponse2007) end end - describe 'test attribute "total_count"' do + describe 'test attribute "webhook_id"' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end - describe 'test attribute "offset"' do + describe 'test attribute "organization_id"' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end - describe 'test attribute "limit"' do + describe 'test attribute "products"' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end - describe 'test attribute "sort"' do + describe 'test attribute "webhook_url"' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end - describe 'test attribute "count"' do + describe 'test attribute "health_check_url"' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end - describe 'test attribute "devices"' do + describe 'test attribute "status"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + describe 'test attribute "name"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + describe 'test attribute "description"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + describe 'test attribute "retry_policy"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + describe 'test attribute "security_policy"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + describe 'test attribute "created_on"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + describe 'test attribute "updated_on"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + describe 'test attribute "notification_scope"' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end diff --git a/spec/models/inline_response_200_7_devices_spec.rb b/spec/models/inline_response_200_8_devices_spec.rb similarity index 88% rename from spec/models/inline_response_200_7_devices_spec.rb rename to spec/models/inline_response_200_8_devices_spec.rb index 8e13081f..99af1703 100644 --- a/spec/models/inline_response_200_7_devices_spec.rb +++ b/spec/models/inline_response_200_8_devices_spec.rb @@ -13,22 +13,22 @@ require 'json' require 'date' -# Unit tests for CyberSource::InlineResponse2007Devices +# Unit tests for CyberSource::InlineResponse2008Devices # Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen) # Please update as you see appropriate -describe 'InlineResponse2007Devices' do +describe 'InlineResponse2008Devices' do before do # run before each test - @instance = CyberSource::InlineResponse2007Devices.new + @instance = CyberSource::InlineResponse2008Devices.new end after do # run after each test end - describe 'test an instance of InlineResponse2007Devices' do - it 'should create an instance of InlineResponse2007Devices' do - expect(@instance).to be_instance_of(CyberSource::InlineResponse2007Devices) + describe 'test an instance of InlineResponse2008Devices' do + it 'should create an instance of InlineResponse2008Devices' do + expect(@instance).to be_instance_of(CyberSource::InlineResponse2008Devices) end end describe 'test attribute "reader_id"' do diff --git a/spec/models/inline_response_200_8_spec.rb b/spec/models/inline_response_200_8_spec.rb index d721b1b7..f10989d0 100644 --- a/spec/models/inline_response_200_8_spec.rb +++ b/spec/models/inline_response_200_8_spec.rb @@ -31,7 +31,31 @@ expect(@instance).to be_instance_of(CyberSource::InlineResponse2008) end end - describe 'test attribute "status"' do + describe 'test attribute "total_count"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + describe 'test attribute "offset"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + describe 'test attribute "limit"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + describe 'test attribute "sort"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + describe 'test attribute "count"' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end diff --git a/spec/models/inline_response_200_9_spec.rb b/spec/models/inline_response_200_9_spec.rb index 70d7ec3d..e3260ad4 100644 --- a/spec/models/inline_response_200_9_spec.rb +++ b/spec/models/inline_response_200_9_spec.rb @@ -31,31 +31,7 @@ expect(@instance).to be_instance_of(CyberSource::InlineResponse2009) end end - describe 'test attribute "total_count"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "offset"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "limit"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "sort"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "count"' do + describe 'test attribute "status"' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end diff --git a/spec/models/inline_response_200_details_spec.rb b/spec/models/inline_response_200_details_spec.rb new file mode 100644 index 00000000..909b9d88 --- /dev/null +++ b/spec/models/inline_response_200_details_spec.rb @@ -0,0 +1,46 @@ +=begin +#CyberSource Merged Spec + +#All CyberSource API specs merged together. These are available at https://developer.cybersource.com/api/reference/api-reference.html + +OpenAPI spec version: 0.0.1 + +Generated by: https://github.com/swagger-api/swagger-codegen.git +Swagger Codegen version: 2.4.38 +=end + +require 'spec_helper' +require 'json' +require 'date' + +# Unit tests for CyberSource::InlineResponse200Details +# Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen) +# Please update as you see appropriate +describe 'InlineResponse200Details' do + before do + # run before each test + @instance = CyberSource::InlineResponse200Details.new + end + + after do + # run after each test + end + + describe 'test an instance of InlineResponse200Details' do + it 'should create an instance of InlineResponse200Details' do + expect(@instance).to be_instance_of(CyberSource::InlineResponse200Details) + end + end + describe 'test attribute "name"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + describe 'test attribute "location"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + +end diff --git a/spec/models/inline_response_200_errors_spec.rb b/spec/models/inline_response_200_errors_spec.rb new file mode 100644 index 00000000..bf1b188e --- /dev/null +++ b/spec/models/inline_response_200_errors_spec.rb @@ -0,0 +1,52 @@ +=begin +#CyberSource Merged Spec + +#All CyberSource API specs merged together. These are available at https://developer.cybersource.com/api/reference/api-reference.html + +OpenAPI spec version: 0.0.1 + +Generated by: https://github.com/swagger-api/swagger-codegen.git +Swagger Codegen version: 2.4.38 +=end + +require 'spec_helper' +require 'json' +require 'date' + +# Unit tests for CyberSource::InlineResponse200Errors +# Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen) +# Please update as you see appropriate +describe 'InlineResponse200Errors' do + before do + # run before each test + @instance = CyberSource::InlineResponse200Errors.new + end + + after do + # run after each test + end + + describe 'test an instance of InlineResponse200Errors' do + it 'should create an instance of InlineResponse200Errors' do + expect(@instance).to be_instance_of(CyberSource::InlineResponse200Errors) + end + end + describe 'test attribute "type"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + describe 'test attribute "message"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + describe 'test attribute "details"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + +end diff --git a/spec/models/inline_response_200_responses_spec.rb b/spec/models/inline_response_200_responses_spec.rb new file mode 100644 index 00000000..07a29f57 --- /dev/null +++ b/spec/models/inline_response_200_responses_spec.rb @@ -0,0 +1,58 @@ +=begin +#CyberSource Merged Spec + +#All CyberSource API specs merged together. These are available at https://developer.cybersource.com/api/reference/api-reference.html + +OpenAPI spec version: 0.0.1 + +Generated by: https://github.com/swagger-api/swagger-codegen.git +Swagger Codegen version: 2.4.38 +=end + +require 'spec_helper' +require 'json' +require 'date' + +# Unit tests for CyberSource::InlineResponse200Responses +# Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen) +# Please update as you see appropriate +describe 'InlineResponse200Responses' do + before do + # run before each test + @instance = CyberSource::InlineResponse200Responses.new + end + + after do + # run after each test + end + + describe 'test an instance of InlineResponse200Responses' do + it 'should create an instance of InlineResponse200Responses' do + expect(@instance).to be_instance_of(CyberSource::InlineResponse200Responses) + end + end + describe 'test attribute "resource"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + describe 'test attribute "http_status"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + describe 'test attribute "id"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + describe 'test attribute "errors"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + +end diff --git a/spec/models/inline_response_200_spec.rb b/spec/models/inline_response_200_spec.rb index 41fbe7bc..9b2b9b12 100644 --- a/spec/models/inline_response_200_spec.rb +++ b/spec/models/inline_response_200_spec.rb @@ -31,25 +31,7 @@ expect(@instance).to be_instance_of(CyberSource::InlineResponse200) end end - describe 'test attribute "id"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "type"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "provider"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "content"' do + describe 'test attribute "responses"' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end diff --git a/spec/models/inline_response_201_3_setups_payments_spec.rb b/spec/models/inline_response_201_3_setups_payments_spec.rb index 2dc66a96..b555f2ec 100644 --- a/spec/models/inline_response_201_3_setups_payments_spec.rb +++ b/spec/models/inline_response_201_3_setups_payments_spec.rb @@ -145,4 +145,10 @@ end end + describe 'test attribute "batch_upload"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + end diff --git a/spec/models/payments_products_spec.rb b/spec/models/payments_products_spec.rb index fe35f4f5..68e3845e 100644 --- a/spec/models/payments_products_spec.rb +++ b/spec/models/payments_products_spec.rb @@ -151,4 +151,10 @@ end end + describe 'test attribute "batch_upload"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + end diff --git a/spec/models/post_issuer_life_cycle_simulation_request_spec.rb b/spec/models/post_issuer_life_cycle_simulation_request_spec.rb new file mode 100644 index 00000000..cc2e698f --- /dev/null +++ b/spec/models/post_issuer_life_cycle_simulation_request_spec.rb @@ -0,0 +1,52 @@ +=begin +#CyberSource Merged Spec + +#All CyberSource API specs merged together. These are available at https://developer.cybersource.com/api/reference/api-reference.html + +OpenAPI spec version: 0.0.1 + +Generated by: https://github.com/swagger-api/swagger-codegen.git +Swagger Codegen version: 2.4.38 +=end + +require 'spec_helper' +require 'json' +require 'date' + +# Unit tests for CyberSource::PostIssuerLifeCycleSimulationRequest +# Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen) +# Please update as you see appropriate +describe 'PostIssuerLifeCycleSimulationRequest' do + before do + # run before each test + @instance = CyberSource::PostIssuerLifeCycleSimulationRequest.new + end + + after do + # run after each test + end + + describe 'test an instance of PostIssuerLifeCycleSimulationRequest' do + it 'should create an instance of PostIssuerLifeCycleSimulationRequest' do + expect(@instance).to be_instance_of(CyberSource::PostIssuerLifeCycleSimulationRequest) + end + end + describe 'test attribute "state"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + describe 'test attribute "card"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + describe 'test attribute "metadata"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + +end diff --git a/spec/models/tmsv2customers_object_information_spec.rb b/spec/models/post_tokenize_request_spec.rb similarity index 64% rename from spec/models/tmsv2customers_object_information_spec.rb rename to spec/models/post_tokenize_request_spec.rb index b8cca2d8..83d7250d 100644 --- a/spec/models/tmsv2customers_object_information_spec.rb +++ b/spec/models/post_tokenize_request_spec.rb @@ -13,31 +13,31 @@ require 'json' require 'date' -# Unit tests for CyberSource::Tmsv2customersObjectInformation +# Unit tests for CyberSource::PostTokenizeRequest # Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen) # Please update as you see appropriate -describe 'Tmsv2customersObjectInformation' do +describe 'PostTokenizeRequest' do before do # run before each test - @instance = CyberSource::Tmsv2customersObjectInformation.new + @instance = CyberSource::PostTokenizeRequest.new end after do # run after each test end - describe 'test an instance of Tmsv2customersObjectInformation' do - it 'should create an instance of Tmsv2customersObjectInformation' do - expect(@instance).to be_instance_of(CyberSource::Tmsv2customersObjectInformation) + describe 'test an instance of PostTokenizeRequest' do + it 'should create an instance of PostTokenizeRequest' do + expect(@instance).to be_instance_of(CyberSource::PostTokenizeRequest) end end - describe 'test attribute "title"' do + describe 'test attribute "processing_information"' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end - describe 'test attribute "comment"' do + describe 'test attribute "token_information"' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end diff --git a/spec/models/ptsv2payments_aggregator_information_spec.rb b/spec/models/ptsv2payments_aggregator_information_spec.rb index e7f5acb8..4818fa49 100644 --- a/spec/models/ptsv2payments_aggregator_information_spec.rb +++ b/spec/models/ptsv2payments_aggregator_information_spec.rb @@ -79,4 +79,10 @@ end end + describe 'test attribute "service_providername"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + end diff --git a/spec/models/rbsv1plans_client_reference_information_spec.rb b/spec/models/rbsv1plans_client_reference_information_spec.rb deleted file mode 100644 index 976d3223..00000000 --- a/spec/models/rbsv1plans_client_reference_information_spec.rb +++ /dev/null @@ -1,64 +0,0 @@ -=begin -#CyberSource Merged Spec - -#All CyberSource API specs merged together. These are available at https://developer.cybersource.com/api/reference/api-reference.html - -OpenAPI spec version: 0.0.1 - -Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.4.38 -=end - -require 'spec_helper' -require 'json' -require 'date' - -# Unit tests for CyberSource::Rbsv1plansClientReferenceInformation -# Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen) -# Please update as you see appropriate -describe 'Rbsv1plansClientReferenceInformation' do - before do - # run before each test - @instance = CyberSource::Rbsv1plansClientReferenceInformation.new - end - - after do - # run after each test - end - - describe 'test an instance of Rbsv1plansClientReferenceInformation' do - it 'should create an instance of Rbsv1plansClientReferenceInformation' do - expect(@instance).to be_instance_of(CyberSource::Rbsv1plansClientReferenceInformation) - end - end - describe 'test attribute "comments"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "partner"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "application_name"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "application_version"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "application_user"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - -end diff --git a/spec/models/rbsv1subscriptions_client_reference_information_partner_spec.rb b/spec/models/rbsv1subscriptions_client_reference_information_partner_spec.rb deleted file mode 100644 index 0fbe39eb..00000000 --- a/spec/models/rbsv1subscriptions_client_reference_information_partner_spec.rb +++ /dev/null @@ -1,46 +0,0 @@ -=begin -#CyberSource Merged Spec - -#All CyberSource API specs merged together. These are available at https://developer.cybersource.com/api/reference/api-reference.html - -OpenAPI spec version: 0.0.1 - -Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.4.38 -=end - -require 'spec_helper' -require 'json' -require 'date' - -# Unit tests for CyberSource::Rbsv1subscriptionsClientReferenceInformationPartner -# Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen) -# Please update as you see appropriate -describe 'Rbsv1subscriptionsClientReferenceInformationPartner' do - before do - # run before each test - @instance = CyberSource::Rbsv1subscriptionsClientReferenceInformationPartner.new - end - - after do - # run after each test - end - - describe 'test an instance of Rbsv1subscriptionsClientReferenceInformationPartner' do - it 'should create an instance of Rbsv1subscriptionsClientReferenceInformationPartner' do - expect(@instance).to be_instance_of(CyberSource::Rbsv1subscriptionsClientReferenceInformationPartner) - end - end - describe 'test attribute "developer_id"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "solution_id"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - -end diff --git a/spec/models/tms_merchant_information_merchant_descriptor_spec.rb b/spec/models/tms_merchant_information_merchant_descriptor_spec.rb new file mode 100644 index 00000000..d7a88aae --- /dev/null +++ b/spec/models/tms_merchant_information_merchant_descriptor_spec.rb @@ -0,0 +1,40 @@ +=begin +#CyberSource Merged Spec + +#All CyberSource API specs merged together. These are available at https://developer.cybersource.com/api/reference/api-reference.html + +OpenAPI spec version: 0.0.1 + +Generated by: https://github.com/swagger-api/swagger-codegen.git +Swagger Codegen version: 2.4.38 +=end + +require 'spec_helper' +require 'json' +require 'date' + +# Unit tests for CyberSource::TmsMerchantInformationMerchantDescriptor +# Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen) +# Please update as you see appropriate +describe 'TmsMerchantInformationMerchantDescriptor' do + before do + # run before each test + @instance = CyberSource::TmsMerchantInformationMerchantDescriptor.new + end + + after do + # run after each test + end + + describe 'test an instance of TmsMerchantInformationMerchantDescriptor' do + it 'should create an instance of TmsMerchantInformationMerchantDescriptor' do + expect(@instance).to be_instance_of(CyberSource::TmsMerchantInformationMerchantDescriptor) + end + end + describe 'test attribute "alternate_name"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + +end diff --git a/spec/models/tmsv2customers__links_self_spec.rb b/spec/models/tms_merchant_information_spec.rb similarity index 64% rename from spec/models/tmsv2customers__links_self_spec.rb rename to spec/models/tms_merchant_information_spec.rb index 8374ac99..706ae7db 100644 --- a/spec/models/tmsv2customers__links_self_spec.rb +++ b/spec/models/tms_merchant_information_spec.rb @@ -13,25 +13,25 @@ require 'json' require 'date' -# Unit tests for CyberSource::Tmsv2customersLinksSelf +# Unit tests for CyberSource::TmsMerchantInformation # Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen) # Please update as you see appropriate -describe 'Tmsv2customersLinksSelf' do +describe 'TmsMerchantInformation' do before do # run before each test - @instance = CyberSource::Tmsv2customersLinksSelf.new + @instance = CyberSource::TmsMerchantInformation.new end after do # run after each test end - describe 'test an instance of Tmsv2customersLinksSelf' do - it 'should create an instance of Tmsv2customersLinksSelf' do - expect(@instance).to be_instance_of(CyberSource::Tmsv2customersLinksSelf) + describe 'test an instance of TmsMerchantInformation' do + it 'should create an instance of TmsMerchantInformation' do + expect(@instance).to be_instance_of(CyberSource::TmsMerchantInformation) end end - describe 'test attribute "href"' do + describe 'test attribute "merchant_descriptor"' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end diff --git a/spec/models/tmsv2customers__embedded_default_payment_instrument_merchant_information_merchant_descriptor_spec.rb b/spec/models/tmsv2customers__embedded_default_payment_instrument_merchant_information_merchant_descriptor_spec.rb deleted file mode 100644 index 472f50ed..00000000 --- a/spec/models/tmsv2customers__embedded_default_payment_instrument_merchant_information_merchant_descriptor_spec.rb +++ /dev/null @@ -1,40 +0,0 @@ -=begin -#CyberSource Merged Spec - -#All CyberSource API specs merged together. These are available at https://developer.cybersource.com/api/reference/api-reference.html - -OpenAPI spec version: 0.0.1 - -Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.4.38 -=end - -require 'spec_helper' -require 'json' -require 'date' - -# Unit tests for CyberSource::Tmsv2customersEmbeddedDefaultPaymentInstrumentMerchantInformationMerchantDescriptor -# Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen) -# Please update as you see appropriate -describe 'Tmsv2customersEmbeddedDefaultPaymentInstrumentMerchantInformationMerchantDescriptor' do - before do - # run before each test - @instance = CyberSource::Tmsv2customersEmbeddedDefaultPaymentInstrumentMerchantInformationMerchantDescriptor.new - end - - after do - # run after each test - end - - describe 'test an instance of Tmsv2customersEmbeddedDefaultPaymentInstrumentMerchantInformationMerchantDescriptor' do - it 'should create an instance of Tmsv2customersEmbeddedDefaultPaymentInstrumentMerchantInformationMerchantDescriptor' do - expect(@instance).to be_instance_of(CyberSource::Tmsv2customersEmbeddedDefaultPaymentInstrumentMerchantInformationMerchantDescriptor) - end - end - describe 'test attribute "alternate_name"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - -end diff --git a/spec/models/tmsv2customers__embedded_default_payment_instrument_merchant_information_spec.rb b/spec/models/tmsv2customers__embedded_default_payment_instrument_merchant_information_spec.rb deleted file mode 100644 index 5cbf7bf9..00000000 --- a/spec/models/tmsv2customers__embedded_default_payment_instrument_merchant_information_spec.rb +++ /dev/null @@ -1,40 +0,0 @@ -=begin -#CyberSource Merged Spec - -#All CyberSource API specs merged together. These are available at https://developer.cybersource.com/api/reference/api-reference.html - -OpenAPI spec version: 0.0.1 - -Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.4.38 -=end - -require 'spec_helper' -require 'json' -require 'date' - -# Unit tests for CyberSource::Tmsv2customersEmbeddedDefaultPaymentInstrumentMerchantInformation -# Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen) -# Please update as you see appropriate -describe 'Tmsv2customersEmbeddedDefaultPaymentInstrumentMerchantInformation' do - before do - # run before each test - @instance = CyberSource::Tmsv2customersEmbeddedDefaultPaymentInstrumentMerchantInformation.new - end - - after do - # run after each test - end - - describe 'test an instance of Tmsv2customersEmbeddedDefaultPaymentInstrumentMerchantInformation' do - it 'should create an instance of Tmsv2customersEmbeddedDefaultPaymentInstrumentMerchantInformation' do - expect(@instance).to be_instance_of(CyberSource::Tmsv2customersEmbeddedDefaultPaymentInstrumentMerchantInformation) - end - end - describe 'test attribute "merchant_descriptor"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - -end diff --git a/spec/models/tmsv2customers__embedded_default_shipping_address__links_customer_spec.rb b/spec/models/tmsv2customers__embedded_default_shipping_address__links_customer_spec.rb deleted file mode 100644 index d0765685..00000000 --- a/spec/models/tmsv2customers__embedded_default_shipping_address__links_customer_spec.rb +++ /dev/null @@ -1,40 +0,0 @@ -=begin -#CyberSource Merged Spec - -#All CyberSource API specs merged together. These are available at https://developer.cybersource.com/api/reference/api-reference.html - -OpenAPI spec version: 0.0.1 - -Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.4.38 -=end - -require 'spec_helper' -require 'json' -require 'date' - -# Unit tests for CyberSource::Tmsv2customersEmbeddedDefaultShippingAddressLinksCustomer -# Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen) -# Please update as you see appropriate -describe 'Tmsv2customersEmbeddedDefaultShippingAddressLinksCustomer' do - before do - # run before each test - @instance = CyberSource::Tmsv2customersEmbeddedDefaultShippingAddressLinksCustomer.new - end - - after do - # run after each test - end - - describe 'test an instance of Tmsv2customersEmbeddedDefaultShippingAddressLinksCustomer' do - it 'should create an instance of Tmsv2customersEmbeddedDefaultShippingAddressLinksCustomer' do - expect(@instance).to be_instance_of(CyberSource::Tmsv2customersEmbeddedDefaultShippingAddressLinksCustomer) - end - end - describe 'test attribute "href"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - -end diff --git a/spec/models/tmsv2customers__links_shipping_address_spec.rb b/spec/models/tmsv2customers__links_shipping_address_spec.rb deleted file mode 100644 index 12517dfc..00000000 --- a/spec/models/tmsv2customers__links_shipping_address_spec.rb +++ /dev/null @@ -1,40 +0,0 @@ -=begin -#CyberSource Merged Spec - -#All CyberSource API specs merged together. These are available at https://developer.cybersource.com/api/reference/api-reference.html - -OpenAPI spec version: 0.0.1 - -Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.4.38 -=end - -require 'spec_helper' -require 'json' -require 'date' - -# Unit tests for CyberSource::Tmsv2customersLinksShippingAddress -# Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen) -# Please update as you see appropriate -describe 'Tmsv2customersLinksShippingAddress' do - before do - # run before each test - @instance = CyberSource::Tmsv2customersLinksShippingAddress.new - end - - after do - # run after each test - end - - describe 'test an instance of Tmsv2customersLinksShippingAddress' do - it 'should create an instance of Tmsv2customersLinksShippingAddress' do - expect(@instance).to be_instance_of(CyberSource::Tmsv2customersLinksShippingAddress) - end - end - describe 'test attribute "href"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - -end diff --git a/spec/models/tmsv2tokenize_processing_information_spec.rb b/spec/models/tmsv2tokenize_processing_information_spec.rb new file mode 100644 index 00000000..3a11b116 --- /dev/null +++ b/spec/models/tmsv2tokenize_processing_information_spec.rb @@ -0,0 +1,46 @@ +=begin +#CyberSource Merged Spec + +#All CyberSource API specs merged together. These are available at https://developer.cybersource.com/api/reference/api-reference.html + +OpenAPI spec version: 0.0.1 + +Generated by: https://github.com/swagger-api/swagger-codegen.git +Swagger Codegen version: 2.4.38 +=end + +require 'spec_helper' +require 'json' +require 'date' + +# Unit tests for CyberSource::Tmsv2tokenizeProcessingInformation +# Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen) +# Please update as you see appropriate +describe 'Tmsv2tokenizeProcessingInformation' do + before do + # run before each test + @instance = CyberSource::Tmsv2tokenizeProcessingInformation.new + end + + after do + # run after each test + end + + describe 'test an instance of Tmsv2tokenizeProcessingInformation' do + it 'should create an instance of Tmsv2tokenizeProcessingInformation' do + expect(@instance).to be_instance_of(CyberSource::Tmsv2tokenizeProcessingInformation) + end + end + describe 'test attribute "action_list"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + describe 'test attribute "action_token_types"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + +end diff --git a/spec/models/tmsv2customers__embedded_default_payment_instrument__embedded_spec.rb b/spec/models/tmsv2tokenize_token_information_customer__embedded_default_payment_instrument__embedded_spec.rb similarity index 53% rename from spec/models/tmsv2customers__embedded_default_payment_instrument__embedded_spec.rb rename to spec/models/tmsv2tokenize_token_information_customer__embedded_default_payment_instrument__embedded_spec.rb index 16fafcde..89e65d3f 100644 --- a/spec/models/tmsv2customers__embedded_default_payment_instrument__embedded_spec.rb +++ b/spec/models/tmsv2tokenize_token_information_customer__embedded_default_payment_instrument__embedded_spec.rb @@ -13,22 +13,22 @@ require 'json' require 'date' -# Unit tests for CyberSource::Tmsv2customersEmbeddedDefaultPaymentInstrumentEmbedded +# Unit tests for CyberSource::Tmsv2tokenizeTokenInformationCustomerEmbeddedDefaultPaymentInstrumentEmbedded # Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen) # Please update as you see appropriate -describe 'Tmsv2customersEmbeddedDefaultPaymentInstrumentEmbedded' do +describe 'Tmsv2tokenizeTokenInformationCustomerEmbeddedDefaultPaymentInstrumentEmbedded' do before do # run before each test - @instance = CyberSource::Tmsv2customersEmbeddedDefaultPaymentInstrumentEmbedded.new + @instance = CyberSource::Tmsv2tokenizeTokenInformationCustomerEmbeddedDefaultPaymentInstrumentEmbedded.new end after do # run after each test end - describe 'test an instance of Tmsv2customersEmbeddedDefaultPaymentInstrumentEmbedded' do - it 'should create an instance of Tmsv2customersEmbeddedDefaultPaymentInstrumentEmbedded' do - expect(@instance).to be_instance_of(CyberSource::Tmsv2customersEmbeddedDefaultPaymentInstrumentEmbedded) + describe 'test an instance of Tmsv2tokenizeTokenInformationCustomerEmbeddedDefaultPaymentInstrumentEmbedded' do + it 'should create an instance of Tmsv2tokenizeTokenInformationCustomerEmbeddedDefaultPaymentInstrumentEmbedded' do + expect(@instance).to be_instance_of(CyberSource::Tmsv2tokenizeTokenInformationCustomerEmbeddedDefaultPaymentInstrumentEmbedded) end end describe 'test attribute "instrument_identifier"' do diff --git a/spec/models/tmsv2tokenize_token_information_customer__embedded_default_payment_instrument__links_self_spec.rb b/spec/models/tmsv2tokenize_token_information_customer__embedded_default_payment_instrument__links_self_spec.rb new file mode 100644 index 00000000..f321fb83 --- /dev/null +++ b/spec/models/tmsv2tokenize_token_information_customer__embedded_default_payment_instrument__links_self_spec.rb @@ -0,0 +1,40 @@ +=begin +#CyberSource Merged Spec + +#All CyberSource API specs merged together. These are available at https://developer.cybersource.com/api/reference/api-reference.html + +OpenAPI spec version: 0.0.1 + +Generated by: https://github.com/swagger-api/swagger-codegen.git +Swagger Codegen version: 2.4.38 +=end + +require 'spec_helper' +require 'json' +require 'date' + +# Unit tests for CyberSource::Tmsv2tokenizeTokenInformationCustomerEmbeddedDefaultPaymentInstrumentLinksSelf +# Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen) +# Please update as you see appropriate +describe 'Tmsv2tokenizeTokenInformationCustomerEmbeddedDefaultPaymentInstrumentLinksSelf' do + before do + # run before each test + @instance = CyberSource::Tmsv2tokenizeTokenInformationCustomerEmbeddedDefaultPaymentInstrumentLinksSelf.new + end + + after do + # run after each test + end + + describe 'test an instance of Tmsv2tokenizeTokenInformationCustomerEmbeddedDefaultPaymentInstrumentLinksSelf' do + it 'should create an instance of Tmsv2tokenizeTokenInformationCustomerEmbeddedDefaultPaymentInstrumentLinksSelf' do + expect(@instance).to be_instance_of(CyberSource::Tmsv2tokenizeTokenInformationCustomerEmbeddedDefaultPaymentInstrumentLinksSelf) + end + end + describe 'test attribute "href"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + +end diff --git a/spec/models/tmsv2customers__embedded_default_shipping_address__links_spec.rb b/spec/models/tmsv2tokenize_token_information_customer__embedded_default_payment_instrument__links_spec.rb similarity index 59% rename from spec/models/tmsv2customers__embedded_default_shipping_address__links_spec.rb rename to spec/models/tmsv2tokenize_token_information_customer__embedded_default_payment_instrument__links_spec.rb index f864f000..87c563f7 100644 --- a/spec/models/tmsv2customers__embedded_default_shipping_address__links_spec.rb +++ b/spec/models/tmsv2tokenize_token_information_customer__embedded_default_payment_instrument__links_spec.rb @@ -13,22 +13,22 @@ require 'json' require 'date' -# Unit tests for CyberSource::Tmsv2customersEmbeddedDefaultShippingAddressLinks +# Unit tests for CyberSource::Tmsv2tokenizeTokenInformationCustomerEmbeddedDefaultPaymentInstrumentLinks # Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen) # Please update as you see appropriate -describe 'Tmsv2customersEmbeddedDefaultShippingAddressLinks' do +describe 'Tmsv2tokenizeTokenInformationCustomerEmbeddedDefaultPaymentInstrumentLinks' do before do # run before each test - @instance = CyberSource::Tmsv2customersEmbeddedDefaultShippingAddressLinks.new + @instance = CyberSource::Tmsv2tokenizeTokenInformationCustomerEmbeddedDefaultPaymentInstrumentLinks.new end after do # run after each test end - describe 'test an instance of Tmsv2customersEmbeddedDefaultShippingAddressLinks' do - it 'should create an instance of Tmsv2customersEmbeddedDefaultShippingAddressLinks' do - expect(@instance).to be_instance_of(CyberSource::Tmsv2customersEmbeddedDefaultShippingAddressLinks) + describe 'test an instance of Tmsv2tokenizeTokenInformationCustomerEmbeddedDefaultPaymentInstrumentLinks' do + it 'should create an instance of Tmsv2tokenizeTokenInformationCustomerEmbeddedDefaultPaymentInstrumentLinks' do + expect(@instance).to be_instance_of(CyberSource::Tmsv2tokenizeTokenInformationCustomerEmbeddedDefaultPaymentInstrumentLinks) end end describe 'test attribute "_self"' do diff --git a/spec/models/tmsv2customers__embedded_default_payment_instrument_bank_account_spec.rb b/spec/models/tmsv2tokenize_token_information_customer__embedded_default_payment_instrument_bank_account_spec.rb similarity index 52% rename from spec/models/tmsv2customers__embedded_default_payment_instrument_bank_account_spec.rb rename to spec/models/tmsv2tokenize_token_information_customer__embedded_default_payment_instrument_bank_account_spec.rb index 0dc72bb5..9b898cee 100644 --- a/spec/models/tmsv2customers__embedded_default_payment_instrument_bank_account_spec.rb +++ b/spec/models/tmsv2tokenize_token_information_customer__embedded_default_payment_instrument_bank_account_spec.rb @@ -13,22 +13,22 @@ require 'json' require 'date' -# Unit tests for CyberSource::Tmsv2customersEmbeddedDefaultPaymentInstrumentBankAccount +# Unit tests for CyberSource::Tmsv2tokenizeTokenInformationCustomerEmbeddedDefaultPaymentInstrumentBankAccount # Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen) # Please update as you see appropriate -describe 'Tmsv2customersEmbeddedDefaultPaymentInstrumentBankAccount' do +describe 'Tmsv2tokenizeTokenInformationCustomerEmbeddedDefaultPaymentInstrumentBankAccount' do before do # run before each test - @instance = CyberSource::Tmsv2customersEmbeddedDefaultPaymentInstrumentBankAccount.new + @instance = CyberSource::Tmsv2tokenizeTokenInformationCustomerEmbeddedDefaultPaymentInstrumentBankAccount.new end after do # run after each test end - describe 'test an instance of Tmsv2customersEmbeddedDefaultPaymentInstrumentBankAccount' do - it 'should create an instance of Tmsv2customersEmbeddedDefaultPaymentInstrumentBankAccount' do - expect(@instance).to be_instance_of(CyberSource::Tmsv2customersEmbeddedDefaultPaymentInstrumentBankAccount) + describe 'test an instance of Tmsv2tokenizeTokenInformationCustomerEmbeddedDefaultPaymentInstrumentBankAccount' do + it 'should create an instance of Tmsv2tokenizeTokenInformationCustomerEmbeddedDefaultPaymentInstrumentBankAccount' do + expect(@instance).to be_instance_of(CyberSource::Tmsv2tokenizeTokenInformationCustomerEmbeddedDefaultPaymentInstrumentBankAccount) end end describe 'test attribute "type"' do diff --git a/spec/models/tmsv2customers__embedded_default_payment_instrument_bill_to_spec.rb b/spec/models/tmsv2tokenize_token_information_customer__embedded_default_payment_instrument_bill_to_spec.rb similarity index 79% rename from spec/models/tmsv2customers__embedded_default_payment_instrument_bill_to_spec.rb rename to spec/models/tmsv2tokenize_token_information_customer__embedded_default_payment_instrument_bill_to_spec.rb index 1c842843..ba57fce3 100644 --- a/spec/models/tmsv2customers__embedded_default_payment_instrument_bill_to_spec.rb +++ b/spec/models/tmsv2tokenize_token_information_customer__embedded_default_payment_instrument_bill_to_spec.rb @@ -13,22 +13,22 @@ require 'json' require 'date' -# Unit tests for CyberSource::Tmsv2customersEmbeddedDefaultPaymentInstrumentBillTo +# Unit tests for CyberSource::Tmsv2tokenizeTokenInformationCustomerEmbeddedDefaultPaymentInstrumentBillTo # Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen) # Please update as you see appropriate -describe 'Tmsv2customersEmbeddedDefaultPaymentInstrumentBillTo' do +describe 'Tmsv2tokenizeTokenInformationCustomerEmbeddedDefaultPaymentInstrumentBillTo' do before do # run before each test - @instance = CyberSource::Tmsv2customersEmbeddedDefaultPaymentInstrumentBillTo.new + @instance = CyberSource::Tmsv2tokenizeTokenInformationCustomerEmbeddedDefaultPaymentInstrumentBillTo.new end after do # run after each test end - describe 'test an instance of Tmsv2customersEmbeddedDefaultPaymentInstrumentBillTo' do - it 'should create an instance of Tmsv2customersEmbeddedDefaultPaymentInstrumentBillTo' do - expect(@instance).to be_instance_of(CyberSource::Tmsv2customersEmbeddedDefaultPaymentInstrumentBillTo) + describe 'test an instance of Tmsv2tokenizeTokenInformationCustomerEmbeddedDefaultPaymentInstrumentBillTo' do + it 'should create an instance of Tmsv2tokenizeTokenInformationCustomerEmbeddedDefaultPaymentInstrumentBillTo' do + expect(@instance).to be_instance_of(CyberSource::Tmsv2tokenizeTokenInformationCustomerEmbeddedDefaultPaymentInstrumentBillTo) end end describe 'test attribute "first_name"' do diff --git a/spec/models/tmsv2customers__embedded_default_payment_instrument_buyer_information_issued_by_spec.rb b/spec/models/tmsv2tokenize_token_information_customer__embedded_default_payment_instrument_buyer_information_issued_by_spec.rb similarity index 50% rename from spec/models/tmsv2customers__embedded_default_payment_instrument_buyer_information_issued_by_spec.rb rename to spec/models/tmsv2tokenize_token_information_customer__embedded_default_payment_instrument_buyer_information_issued_by_spec.rb index 59ea2a89..7db61940 100644 --- a/spec/models/tmsv2customers__embedded_default_payment_instrument_buyer_information_issued_by_spec.rb +++ b/spec/models/tmsv2tokenize_token_information_customer__embedded_default_payment_instrument_buyer_information_issued_by_spec.rb @@ -13,22 +13,22 @@ require 'json' require 'date' -# Unit tests for CyberSource::Tmsv2customersEmbeddedDefaultPaymentInstrumentBuyerInformationIssuedBy +# Unit tests for CyberSource::Tmsv2tokenizeTokenInformationCustomerEmbeddedDefaultPaymentInstrumentBuyerInformationIssuedBy # Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen) # Please update as you see appropriate -describe 'Tmsv2customersEmbeddedDefaultPaymentInstrumentBuyerInformationIssuedBy' do +describe 'Tmsv2tokenizeTokenInformationCustomerEmbeddedDefaultPaymentInstrumentBuyerInformationIssuedBy' do before do # run before each test - @instance = CyberSource::Tmsv2customersEmbeddedDefaultPaymentInstrumentBuyerInformationIssuedBy.new + @instance = CyberSource::Tmsv2tokenizeTokenInformationCustomerEmbeddedDefaultPaymentInstrumentBuyerInformationIssuedBy.new end after do # run after each test end - describe 'test an instance of Tmsv2customersEmbeddedDefaultPaymentInstrumentBuyerInformationIssuedBy' do - it 'should create an instance of Tmsv2customersEmbeddedDefaultPaymentInstrumentBuyerInformationIssuedBy' do - expect(@instance).to be_instance_of(CyberSource::Tmsv2customersEmbeddedDefaultPaymentInstrumentBuyerInformationIssuedBy) + describe 'test an instance of Tmsv2tokenizeTokenInformationCustomerEmbeddedDefaultPaymentInstrumentBuyerInformationIssuedBy' do + it 'should create an instance of Tmsv2tokenizeTokenInformationCustomerEmbeddedDefaultPaymentInstrumentBuyerInformationIssuedBy' do + expect(@instance).to be_instance_of(CyberSource::Tmsv2tokenizeTokenInformationCustomerEmbeddedDefaultPaymentInstrumentBuyerInformationIssuedBy) end end describe 'test attribute "administrative_area"' do diff --git a/spec/models/tmsv2customers__embedded_default_payment_instrument_buyer_information_personal_identification_spec.rb b/spec/models/tmsv2tokenize_token_information_customer__embedded_default_payment_instrument_buyer_information_personal_identification_spec.rb similarity index 56% rename from spec/models/tmsv2customers__embedded_default_payment_instrument_buyer_information_personal_identification_spec.rb rename to spec/models/tmsv2tokenize_token_information_customer__embedded_default_payment_instrument_buyer_information_personal_identification_spec.rb index 237c2dbd..a505acd0 100644 --- a/spec/models/tmsv2customers__embedded_default_payment_instrument_buyer_information_personal_identification_spec.rb +++ b/spec/models/tmsv2tokenize_token_information_customer__embedded_default_payment_instrument_buyer_information_personal_identification_spec.rb @@ -13,22 +13,22 @@ require 'json' require 'date' -# Unit tests for CyberSource::Tmsv2customersEmbeddedDefaultPaymentInstrumentBuyerInformationPersonalIdentification +# Unit tests for CyberSource::Tmsv2tokenizeTokenInformationCustomerEmbeddedDefaultPaymentInstrumentBuyerInformationPersonalIdentification # Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen) # Please update as you see appropriate -describe 'Tmsv2customersEmbeddedDefaultPaymentInstrumentBuyerInformationPersonalIdentification' do +describe 'Tmsv2tokenizeTokenInformationCustomerEmbeddedDefaultPaymentInstrumentBuyerInformationPersonalIdentification' do before do # run before each test - @instance = CyberSource::Tmsv2customersEmbeddedDefaultPaymentInstrumentBuyerInformationPersonalIdentification.new + @instance = CyberSource::Tmsv2tokenizeTokenInformationCustomerEmbeddedDefaultPaymentInstrumentBuyerInformationPersonalIdentification.new end after do # run after each test end - describe 'test an instance of Tmsv2customersEmbeddedDefaultPaymentInstrumentBuyerInformationPersonalIdentification' do - it 'should create an instance of Tmsv2customersEmbeddedDefaultPaymentInstrumentBuyerInformationPersonalIdentification' do - expect(@instance).to be_instance_of(CyberSource::Tmsv2customersEmbeddedDefaultPaymentInstrumentBuyerInformationPersonalIdentification) + describe 'test an instance of Tmsv2tokenizeTokenInformationCustomerEmbeddedDefaultPaymentInstrumentBuyerInformationPersonalIdentification' do + it 'should create an instance of Tmsv2tokenizeTokenInformationCustomerEmbeddedDefaultPaymentInstrumentBuyerInformationPersonalIdentification' do + expect(@instance).to be_instance_of(CyberSource::Tmsv2tokenizeTokenInformationCustomerEmbeddedDefaultPaymentInstrumentBuyerInformationPersonalIdentification) end end describe 'test attribute "id"' do diff --git a/spec/models/tmsv2customers__embedded_default_payment_instrument_buyer_information_spec.rb b/spec/models/tmsv2tokenize_token_information_customer__embedded_default_payment_instrument_buyer_information_spec.rb similarity index 64% rename from spec/models/tmsv2customers__embedded_default_payment_instrument_buyer_information_spec.rb rename to spec/models/tmsv2tokenize_token_information_customer__embedded_default_payment_instrument_buyer_information_spec.rb index 1b196339..859f9e99 100644 --- a/spec/models/tmsv2customers__embedded_default_payment_instrument_buyer_information_spec.rb +++ b/spec/models/tmsv2tokenize_token_information_customer__embedded_default_payment_instrument_buyer_information_spec.rb @@ -13,22 +13,22 @@ require 'json' require 'date' -# Unit tests for CyberSource::Tmsv2customersEmbeddedDefaultPaymentInstrumentBuyerInformation +# Unit tests for CyberSource::Tmsv2tokenizeTokenInformationCustomerEmbeddedDefaultPaymentInstrumentBuyerInformation # Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen) # Please update as you see appropriate -describe 'Tmsv2customersEmbeddedDefaultPaymentInstrumentBuyerInformation' do +describe 'Tmsv2tokenizeTokenInformationCustomerEmbeddedDefaultPaymentInstrumentBuyerInformation' do before do # run before each test - @instance = CyberSource::Tmsv2customersEmbeddedDefaultPaymentInstrumentBuyerInformation.new + @instance = CyberSource::Tmsv2tokenizeTokenInformationCustomerEmbeddedDefaultPaymentInstrumentBuyerInformation.new end after do # run after each test end - describe 'test an instance of Tmsv2customersEmbeddedDefaultPaymentInstrumentBuyerInformation' do - it 'should create an instance of Tmsv2customersEmbeddedDefaultPaymentInstrumentBuyerInformation' do - expect(@instance).to be_instance_of(CyberSource::Tmsv2customersEmbeddedDefaultPaymentInstrumentBuyerInformation) + describe 'test an instance of Tmsv2tokenizeTokenInformationCustomerEmbeddedDefaultPaymentInstrumentBuyerInformation' do + it 'should create an instance of Tmsv2tokenizeTokenInformationCustomerEmbeddedDefaultPaymentInstrumentBuyerInformation' do + expect(@instance).to be_instance_of(CyberSource::Tmsv2tokenizeTokenInformationCustomerEmbeddedDefaultPaymentInstrumentBuyerInformation) end end describe 'test attribute "company_tax_id"' do diff --git a/spec/models/tmsv2customers__embedded_default_payment_instrument_card_spec.rb b/spec/models/tmsv2tokenize_token_information_customer__embedded_default_payment_instrument_card_spec.rb similarity index 77% rename from spec/models/tmsv2customers__embedded_default_payment_instrument_card_spec.rb rename to spec/models/tmsv2tokenize_token_information_customer__embedded_default_payment_instrument_card_spec.rb index 48c20bbf..ad295b00 100644 --- a/spec/models/tmsv2customers__embedded_default_payment_instrument_card_spec.rb +++ b/spec/models/tmsv2tokenize_token_information_customer__embedded_default_payment_instrument_card_spec.rb @@ -13,22 +13,22 @@ require 'json' require 'date' -# Unit tests for CyberSource::Tmsv2customersEmbeddedDefaultPaymentInstrumentCard +# Unit tests for CyberSource::Tmsv2tokenizeTokenInformationCustomerEmbeddedDefaultPaymentInstrumentCard # Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen) # Please update as you see appropriate -describe 'Tmsv2customersEmbeddedDefaultPaymentInstrumentCard' do +describe 'Tmsv2tokenizeTokenInformationCustomerEmbeddedDefaultPaymentInstrumentCard' do before do # run before each test - @instance = CyberSource::Tmsv2customersEmbeddedDefaultPaymentInstrumentCard.new + @instance = CyberSource::Tmsv2tokenizeTokenInformationCustomerEmbeddedDefaultPaymentInstrumentCard.new end after do # run after each test end - describe 'test an instance of Tmsv2customersEmbeddedDefaultPaymentInstrumentCard' do - it 'should create an instance of Tmsv2customersEmbeddedDefaultPaymentInstrumentCard' do - expect(@instance).to be_instance_of(CyberSource::Tmsv2customersEmbeddedDefaultPaymentInstrumentCard) + describe 'test an instance of Tmsv2tokenizeTokenInformationCustomerEmbeddedDefaultPaymentInstrumentCard' do + it 'should create an instance of Tmsv2tokenizeTokenInformationCustomerEmbeddedDefaultPaymentInstrumentCard' do + expect(@instance).to be_instance_of(CyberSource::Tmsv2tokenizeTokenInformationCustomerEmbeddedDefaultPaymentInstrumentCard) end end describe 'test attribute "expiration_month"' do diff --git a/spec/models/tmsv2customers__embedded_default_payment_instrument_card_tokenized_information_spec.rb b/spec/models/tmsv2tokenize_token_information_customer__embedded_default_payment_instrument_card_tokenized_information_spec.rb similarity index 55% rename from spec/models/tmsv2customers__embedded_default_payment_instrument_card_tokenized_information_spec.rb rename to spec/models/tmsv2tokenize_token_information_customer__embedded_default_payment_instrument_card_tokenized_information_spec.rb index 5da5b7c7..3e05b90f 100644 --- a/spec/models/tmsv2customers__embedded_default_payment_instrument_card_tokenized_information_spec.rb +++ b/spec/models/tmsv2tokenize_token_information_customer__embedded_default_payment_instrument_card_tokenized_information_spec.rb @@ -13,22 +13,22 @@ require 'json' require 'date' -# Unit tests for CyberSource::Tmsv2customersEmbeddedDefaultPaymentInstrumentCardTokenizedInformation +# Unit tests for CyberSource::Tmsv2tokenizeTokenInformationCustomerEmbeddedDefaultPaymentInstrumentCardTokenizedInformation # Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen) # Please update as you see appropriate -describe 'Tmsv2customersEmbeddedDefaultPaymentInstrumentCardTokenizedInformation' do +describe 'Tmsv2tokenizeTokenInformationCustomerEmbeddedDefaultPaymentInstrumentCardTokenizedInformation' do before do # run before each test - @instance = CyberSource::Tmsv2customersEmbeddedDefaultPaymentInstrumentCardTokenizedInformation.new + @instance = CyberSource::Tmsv2tokenizeTokenInformationCustomerEmbeddedDefaultPaymentInstrumentCardTokenizedInformation.new end after do # run after each test end - describe 'test an instance of Tmsv2customersEmbeddedDefaultPaymentInstrumentCardTokenizedInformation' do - it 'should create an instance of Tmsv2customersEmbeddedDefaultPaymentInstrumentCardTokenizedInformation' do - expect(@instance).to be_instance_of(CyberSource::Tmsv2customersEmbeddedDefaultPaymentInstrumentCardTokenizedInformation) + describe 'test an instance of Tmsv2tokenizeTokenInformationCustomerEmbeddedDefaultPaymentInstrumentCardTokenizedInformation' do + it 'should create an instance of Tmsv2tokenizeTokenInformationCustomerEmbeddedDefaultPaymentInstrumentCardTokenizedInformation' do + expect(@instance).to be_instance_of(CyberSource::Tmsv2tokenizeTokenInformationCustomerEmbeddedDefaultPaymentInstrumentCardTokenizedInformation) end end describe 'test attribute "requestor_id"' do diff --git a/spec/models/tmsv2customers__embedded_default_payment_instrument_instrument_identifier_spec.rb b/spec/models/tmsv2tokenize_token_information_customer__embedded_default_payment_instrument_instrument_identifier_spec.rb similarity index 50% rename from spec/models/tmsv2customers__embedded_default_payment_instrument_instrument_identifier_spec.rb rename to spec/models/tmsv2tokenize_token_information_customer__embedded_default_payment_instrument_instrument_identifier_spec.rb index 7c7694d7..1c4e8c8c 100644 --- a/spec/models/tmsv2customers__embedded_default_payment_instrument_instrument_identifier_spec.rb +++ b/spec/models/tmsv2tokenize_token_information_customer__embedded_default_payment_instrument_instrument_identifier_spec.rb @@ -13,22 +13,22 @@ require 'json' require 'date' -# Unit tests for CyberSource::Tmsv2customersEmbeddedDefaultPaymentInstrumentInstrumentIdentifier +# Unit tests for CyberSource::Tmsv2tokenizeTokenInformationCustomerEmbeddedDefaultPaymentInstrumentInstrumentIdentifier # Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen) # Please update as you see appropriate -describe 'Tmsv2customersEmbeddedDefaultPaymentInstrumentInstrumentIdentifier' do +describe 'Tmsv2tokenizeTokenInformationCustomerEmbeddedDefaultPaymentInstrumentInstrumentIdentifier' do before do # run before each test - @instance = CyberSource::Tmsv2customersEmbeddedDefaultPaymentInstrumentInstrumentIdentifier.new + @instance = CyberSource::Tmsv2tokenizeTokenInformationCustomerEmbeddedDefaultPaymentInstrumentInstrumentIdentifier.new end after do # run after each test end - describe 'test an instance of Tmsv2customersEmbeddedDefaultPaymentInstrumentInstrumentIdentifier' do - it 'should create an instance of Tmsv2customersEmbeddedDefaultPaymentInstrumentInstrumentIdentifier' do - expect(@instance).to be_instance_of(CyberSource::Tmsv2customersEmbeddedDefaultPaymentInstrumentInstrumentIdentifier) + describe 'test an instance of Tmsv2tokenizeTokenInformationCustomerEmbeddedDefaultPaymentInstrumentInstrumentIdentifier' do + it 'should create an instance of Tmsv2tokenizeTokenInformationCustomerEmbeddedDefaultPaymentInstrumentInstrumentIdentifier' do + expect(@instance).to be_instance_of(CyberSource::Tmsv2tokenizeTokenInformationCustomerEmbeddedDefaultPaymentInstrumentInstrumentIdentifier) end end describe 'test attribute "id"' do diff --git a/spec/models/tmsv2customers__embedded_default_shipping_address_metadata_spec.rb b/spec/models/tmsv2tokenize_token_information_customer__embedded_default_payment_instrument_metadata_spec.rb similarity index 53% rename from spec/models/tmsv2customers__embedded_default_shipping_address_metadata_spec.rb rename to spec/models/tmsv2tokenize_token_information_customer__embedded_default_payment_instrument_metadata_spec.rb index e77ba4ae..75efd33e 100644 --- a/spec/models/tmsv2customers__embedded_default_shipping_address_metadata_spec.rb +++ b/spec/models/tmsv2tokenize_token_information_customer__embedded_default_payment_instrument_metadata_spec.rb @@ -13,22 +13,22 @@ require 'json' require 'date' -# Unit tests for CyberSource::Tmsv2customersEmbeddedDefaultShippingAddressMetadata +# Unit tests for CyberSource::Tmsv2tokenizeTokenInformationCustomerEmbeddedDefaultPaymentInstrumentMetadata # Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen) # Please update as you see appropriate -describe 'Tmsv2customersEmbeddedDefaultShippingAddressMetadata' do +describe 'Tmsv2tokenizeTokenInformationCustomerEmbeddedDefaultPaymentInstrumentMetadata' do before do # run before each test - @instance = CyberSource::Tmsv2customersEmbeddedDefaultShippingAddressMetadata.new + @instance = CyberSource::Tmsv2tokenizeTokenInformationCustomerEmbeddedDefaultPaymentInstrumentMetadata.new end after do # run after each test end - describe 'test an instance of Tmsv2customersEmbeddedDefaultShippingAddressMetadata' do - it 'should create an instance of Tmsv2customersEmbeddedDefaultShippingAddressMetadata' do - expect(@instance).to be_instance_of(CyberSource::Tmsv2customersEmbeddedDefaultShippingAddressMetadata) + describe 'test an instance of Tmsv2tokenizeTokenInformationCustomerEmbeddedDefaultPaymentInstrumentMetadata' do + it 'should create an instance of Tmsv2tokenizeTokenInformationCustomerEmbeddedDefaultPaymentInstrumentMetadata' do + expect(@instance).to be_instance_of(CyberSource::Tmsv2tokenizeTokenInformationCustomerEmbeddedDefaultPaymentInstrumentMetadata) end end describe 'test attribute "creator"' do diff --git a/spec/models/tmsv2customers__embedded_default_payment_instrument_spec.rb b/spec/models/tmsv2tokenize_token_information_customer__embedded_default_payment_instrument_spec.rb similarity index 84% rename from spec/models/tmsv2customers__embedded_default_payment_instrument_spec.rb rename to spec/models/tmsv2tokenize_token_information_customer__embedded_default_payment_instrument_spec.rb index b9b1523e..893c4a99 100644 --- a/spec/models/tmsv2customers__embedded_default_payment_instrument_spec.rb +++ b/spec/models/tmsv2tokenize_token_information_customer__embedded_default_payment_instrument_spec.rb @@ -13,22 +13,22 @@ require 'json' require 'date' -# Unit tests for CyberSource::Tmsv2customersEmbeddedDefaultPaymentInstrument +# Unit tests for CyberSource::Tmsv2tokenizeTokenInformationCustomerEmbeddedDefaultPaymentInstrument # Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen) # Please update as you see appropriate -describe 'Tmsv2customersEmbeddedDefaultPaymentInstrument' do +describe 'Tmsv2tokenizeTokenInformationCustomerEmbeddedDefaultPaymentInstrument' do before do # run before each test - @instance = CyberSource::Tmsv2customersEmbeddedDefaultPaymentInstrument.new + @instance = CyberSource::Tmsv2tokenizeTokenInformationCustomerEmbeddedDefaultPaymentInstrument.new end after do # run after each test end - describe 'test an instance of Tmsv2customersEmbeddedDefaultPaymentInstrument' do - it 'should create an instance of Tmsv2customersEmbeddedDefaultPaymentInstrument' do - expect(@instance).to be_instance_of(CyberSource::Tmsv2customersEmbeddedDefaultPaymentInstrument) + describe 'test an instance of Tmsv2tokenizeTokenInformationCustomerEmbeddedDefaultPaymentInstrument' do + it 'should create an instance of Tmsv2tokenizeTokenInformationCustomerEmbeddedDefaultPaymentInstrument' do + expect(@instance).to be_instance_of(CyberSource::Tmsv2tokenizeTokenInformationCustomerEmbeddedDefaultPaymentInstrument) end end describe 'test attribute "_links"' do diff --git a/spec/models/tmsv2tokenize_token_information_customer__embedded_default_shipping_address__links_customer_spec.rb b/spec/models/tmsv2tokenize_token_information_customer__embedded_default_shipping_address__links_customer_spec.rb new file mode 100644 index 00000000..5f0c528e --- /dev/null +++ b/spec/models/tmsv2tokenize_token_information_customer__embedded_default_shipping_address__links_customer_spec.rb @@ -0,0 +1,40 @@ +=begin +#CyberSource Merged Spec + +#All CyberSource API specs merged together. These are available at https://developer.cybersource.com/api/reference/api-reference.html + +OpenAPI spec version: 0.0.1 + +Generated by: https://github.com/swagger-api/swagger-codegen.git +Swagger Codegen version: 2.4.38 +=end + +require 'spec_helper' +require 'json' +require 'date' + +# Unit tests for CyberSource::Tmsv2tokenizeTokenInformationCustomerEmbeddedDefaultShippingAddressLinksCustomer +# Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen) +# Please update as you see appropriate +describe 'Tmsv2tokenizeTokenInformationCustomerEmbeddedDefaultShippingAddressLinksCustomer' do + before do + # run before each test + @instance = CyberSource::Tmsv2tokenizeTokenInformationCustomerEmbeddedDefaultShippingAddressLinksCustomer.new + end + + after do + # run after each test + end + + describe 'test an instance of Tmsv2tokenizeTokenInformationCustomerEmbeddedDefaultShippingAddressLinksCustomer' do + it 'should create an instance of Tmsv2tokenizeTokenInformationCustomerEmbeddedDefaultShippingAddressLinksCustomer' do + expect(@instance).to be_instance_of(CyberSource::Tmsv2tokenizeTokenInformationCustomerEmbeddedDefaultShippingAddressLinksCustomer) + end + end + describe 'test attribute "href"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + +end diff --git a/spec/models/tmsv2tokenize_token_information_customer__embedded_default_shipping_address__links_self_spec.rb b/spec/models/tmsv2tokenize_token_information_customer__embedded_default_shipping_address__links_self_spec.rb new file mode 100644 index 00000000..bedbf3be --- /dev/null +++ b/spec/models/tmsv2tokenize_token_information_customer__embedded_default_shipping_address__links_self_spec.rb @@ -0,0 +1,40 @@ +=begin +#CyberSource Merged Spec + +#All CyberSource API specs merged together. These are available at https://developer.cybersource.com/api/reference/api-reference.html + +OpenAPI spec version: 0.0.1 + +Generated by: https://github.com/swagger-api/swagger-codegen.git +Swagger Codegen version: 2.4.38 +=end + +require 'spec_helper' +require 'json' +require 'date' + +# Unit tests for CyberSource::Tmsv2tokenizeTokenInformationCustomerEmbeddedDefaultShippingAddressLinksSelf +# Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen) +# Please update as you see appropriate +describe 'Tmsv2tokenizeTokenInformationCustomerEmbeddedDefaultShippingAddressLinksSelf' do + before do + # run before each test + @instance = CyberSource::Tmsv2tokenizeTokenInformationCustomerEmbeddedDefaultShippingAddressLinksSelf.new + end + + after do + # run after each test + end + + describe 'test an instance of Tmsv2tokenizeTokenInformationCustomerEmbeddedDefaultShippingAddressLinksSelf' do + it 'should create an instance of Tmsv2tokenizeTokenInformationCustomerEmbeddedDefaultShippingAddressLinksSelf' do + expect(@instance).to be_instance_of(CyberSource::Tmsv2tokenizeTokenInformationCustomerEmbeddedDefaultShippingAddressLinksSelf) + end + end + describe 'test attribute "href"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + +end diff --git a/spec/models/tmsv2customers__embedded_default_payment_instrument__links_spec.rb b/spec/models/tmsv2tokenize_token_information_customer__embedded_default_shipping_address__links_spec.rb similarity index 59% rename from spec/models/tmsv2customers__embedded_default_payment_instrument__links_spec.rb rename to spec/models/tmsv2tokenize_token_information_customer__embedded_default_shipping_address__links_spec.rb index ebd1bd1e..4f2ed584 100644 --- a/spec/models/tmsv2customers__embedded_default_payment_instrument__links_spec.rb +++ b/spec/models/tmsv2tokenize_token_information_customer__embedded_default_shipping_address__links_spec.rb @@ -13,22 +13,22 @@ require 'json' require 'date' -# Unit tests for CyberSource::Tmsv2customersEmbeddedDefaultPaymentInstrumentLinks +# Unit tests for CyberSource::Tmsv2tokenizeTokenInformationCustomerEmbeddedDefaultShippingAddressLinks # Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen) # Please update as you see appropriate -describe 'Tmsv2customersEmbeddedDefaultPaymentInstrumentLinks' do +describe 'Tmsv2tokenizeTokenInformationCustomerEmbeddedDefaultShippingAddressLinks' do before do # run before each test - @instance = CyberSource::Tmsv2customersEmbeddedDefaultPaymentInstrumentLinks.new + @instance = CyberSource::Tmsv2tokenizeTokenInformationCustomerEmbeddedDefaultShippingAddressLinks.new end after do # run after each test end - describe 'test an instance of Tmsv2customersEmbeddedDefaultPaymentInstrumentLinks' do - it 'should create an instance of Tmsv2customersEmbeddedDefaultPaymentInstrumentLinks' do - expect(@instance).to be_instance_of(CyberSource::Tmsv2customersEmbeddedDefaultPaymentInstrumentLinks) + describe 'test an instance of Tmsv2tokenizeTokenInformationCustomerEmbeddedDefaultShippingAddressLinks' do + it 'should create an instance of Tmsv2tokenizeTokenInformationCustomerEmbeddedDefaultShippingAddressLinks' do + expect(@instance).to be_instance_of(CyberSource::Tmsv2tokenizeTokenInformationCustomerEmbeddedDefaultShippingAddressLinks) end end describe 'test attribute "_self"' do diff --git a/spec/models/tmsv2customers__embedded_default_payment_instrument_metadata_spec.rb b/spec/models/tmsv2tokenize_token_information_customer__embedded_default_shipping_address_metadata_spec.rb similarity index 53% rename from spec/models/tmsv2customers__embedded_default_payment_instrument_metadata_spec.rb rename to spec/models/tmsv2tokenize_token_information_customer__embedded_default_shipping_address_metadata_spec.rb index 5c87341d..594ce03b 100644 --- a/spec/models/tmsv2customers__embedded_default_payment_instrument_metadata_spec.rb +++ b/spec/models/tmsv2tokenize_token_information_customer__embedded_default_shipping_address_metadata_spec.rb @@ -13,22 +13,22 @@ require 'json' require 'date' -# Unit tests for CyberSource::Tmsv2customersEmbeddedDefaultPaymentInstrumentMetadata +# Unit tests for CyberSource::Tmsv2tokenizeTokenInformationCustomerEmbeddedDefaultShippingAddressMetadata # Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen) # Please update as you see appropriate -describe 'Tmsv2customersEmbeddedDefaultPaymentInstrumentMetadata' do +describe 'Tmsv2tokenizeTokenInformationCustomerEmbeddedDefaultShippingAddressMetadata' do before do # run before each test - @instance = CyberSource::Tmsv2customersEmbeddedDefaultPaymentInstrumentMetadata.new + @instance = CyberSource::Tmsv2tokenizeTokenInformationCustomerEmbeddedDefaultShippingAddressMetadata.new end after do # run after each test end - describe 'test an instance of Tmsv2customersEmbeddedDefaultPaymentInstrumentMetadata' do - it 'should create an instance of Tmsv2customersEmbeddedDefaultPaymentInstrumentMetadata' do - expect(@instance).to be_instance_of(CyberSource::Tmsv2customersEmbeddedDefaultPaymentInstrumentMetadata) + describe 'test an instance of Tmsv2tokenizeTokenInformationCustomerEmbeddedDefaultShippingAddressMetadata' do + it 'should create an instance of Tmsv2tokenizeTokenInformationCustomerEmbeddedDefaultShippingAddressMetadata' do + expect(@instance).to be_instance_of(CyberSource::Tmsv2tokenizeTokenInformationCustomerEmbeddedDefaultShippingAddressMetadata) end end describe 'test attribute "creator"' do diff --git a/spec/models/tmsv2customers__embedded_default_shipping_address_ship_to_spec.rb b/spec/models/tmsv2tokenize_token_information_customer__embedded_default_shipping_address_ship_to_spec.rb similarity index 80% rename from spec/models/tmsv2customers__embedded_default_shipping_address_ship_to_spec.rb rename to spec/models/tmsv2tokenize_token_information_customer__embedded_default_shipping_address_ship_to_spec.rb index d84b23e3..3212109c 100644 --- a/spec/models/tmsv2customers__embedded_default_shipping_address_ship_to_spec.rb +++ b/spec/models/tmsv2tokenize_token_information_customer__embedded_default_shipping_address_ship_to_spec.rb @@ -13,22 +13,22 @@ require 'json' require 'date' -# Unit tests for CyberSource::Tmsv2customersEmbeddedDefaultShippingAddressShipTo +# Unit tests for CyberSource::Tmsv2tokenizeTokenInformationCustomerEmbeddedDefaultShippingAddressShipTo # Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen) # Please update as you see appropriate -describe 'Tmsv2customersEmbeddedDefaultShippingAddressShipTo' do +describe 'Tmsv2tokenizeTokenInformationCustomerEmbeddedDefaultShippingAddressShipTo' do before do # run before each test - @instance = CyberSource::Tmsv2customersEmbeddedDefaultShippingAddressShipTo.new + @instance = CyberSource::Tmsv2tokenizeTokenInformationCustomerEmbeddedDefaultShippingAddressShipTo.new end after do # run after each test end - describe 'test an instance of Tmsv2customersEmbeddedDefaultShippingAddressShipTo' do - it 'should create an instance of Tmsv2customersEmbeddedDefaultShippingAddressShipTo' do - expect(@instance).to be_instance_of(CyberSource::Tmsv2customersEmbeddedDefaultShippingAddressShipTo) + describe 'test an instance of Tmsv2tokenizeTokenInformationCustomerEmbeddedDefaultShippingAddressShipTo' do + it 'should create an instance of Tmsv2tokenizeTokenInformationCustomerEmbeddedDefaultShippingAddressShipTo' do + expect(@instance).to be_instance_of(CyberSource::Tmsv2tokenizeTokenInformationCustomerEmbeddedDefaultShippingAddressShipTo) end end describe 'test attribute "first_name"' do diff --git a/spec/models/tmsv2customers__embedded_default_shipping_address_spec.rb b/spec/models/tmsv2tokenize_token_information_customer__embedded_default_shipping_address_spec.rb similarity index 70% rename from spec/models/tmsv2customers__embedded_default_shipping_address_spec.rb rename to spec/models/tmsv2tokenize_token_information_customer__embedded_default_shipping_address_spec.rb index c736ecb0..6f49b8e5 100644 --- a/spec/models/tmsv2customers__embedded_default_shipping_address_spec.rb +++ b/spec/models/tmsv2tokenize_token_information_customer__embedded_default_shipping_address_spec.rb @@ -13,22 +13,22 @@ require 'json' require 'date' -# Unit tests for CyberSource::Tmsv2customersEmbeddedDefaultShippingAddress +# Unit tests for CyberSource::Tmsv2tokenizeTokenInformationCustomerEmbeddedDefaultShippingAddress # Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen) # Please update as you see appropriate -describe 'Tmsv2customersEmbeddedDefaultShippingAddress' do +describe 'Tmsv2tokenizeTokenInformationCustomerEmbeddedDefaultShippingAddress' do before do # run before each test - @instance = CyberSource::Tmsv2customersEmbeddedDefaultShippingAddress.new + @instance = CyberSource::Tmsv2tokenizeTokenInformationCustomerEmbeddedDefaultShippingAddress.new end after do # run after each test end - describe 'test an instance of Tmsv2customersEmbeddedDefaultShippingAddress' do - it 'should create an instance of Tmsv2customersEmbeddedDefaultShippingAddress' do - expect(@instance).to be_instance_of(CyberSource::Tmsv2customersEmbeddedDefaultShippingAddress) + describe 'test an instance of Tmsv2tokenizeTokenInformationCustomerEmbeddedDefaultShippingAddress' do + it 'should create an instance of Tmsv2tokenizeTokenInformationCustomerEmbeddedDefaultShippingAddress' do + expect(@instance).to be_instance_of(CyberSource::Tmsv2tokenizeTokenInformationCustomerEmbeddedDefaultShippingAddress) end end describe 'test attribute "_links"' do diff --git a/spec/models/tmsv2customers__embedded_spec.rb b/spec/models/tmsv2tokenize_token_information_customer__embedded_spec.rb similarity index 67% rename from spec/models/tmsv2customers__embedded_spec.rb rename to spec/models/tmsv2tokenize_token_information_customer__embedded_spec.rb index fb05d042..6e54d6cd 100644 --- a/spec/models/tmsv2customers__embedded_spec.rb +++ b/spec/models/tmsv2tokenize_token_information_customer__embedded_spec.rb @@ -13,22 +13,22 @@ require 'json' require 'date' -# Unit tests for CyberSource::Tmsv2customersEmbedded +# Unit tests for CyberSource::Tmsv2tokenizeTokenInformationCustomerEmbedded # Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen) # Please update as you see appropriate -describe 'Tmsv2customersEmbedded' do +describe 'Tmsv2tokenizeTokenInformationCustomerEmbedded' do before do # run before each test - @instance = CyberSource::Tmsv2customersEmbedded.new + @instance = CyberSource::Tmsv2tokenizeTokenInformationCustomerEmbedded.new end after do # run after each test end - describe 'test an instance of Tmsv2customersEmbedded' do - it 'should create an instance of Tmsv2customersEmbedded' do - expect(@instance).to be_instance_of(CyberSource::Tmsv2customersEmbedded) + describe 'test an instance of Tmsv2tokenizeTokenInformationCustomerEmbedded' do + it 'should create an instance of Tmsv2tokenizeTokenInformationCustomerEmbedded' do + expect(@instance).to be_instance_of(CyberSource::Tmsv2tokenizeTokenInformationCustomerEmbedded) end end describe 'test attribute "default_payment_instrument"' do diff --git a/spec/models/tmsv2tokenize_token_information_customer__links_payment_instruments_spec.rb b/spec/models/tmsv2tokenize_token_information_customer__links_payment_instruments_spec.rb new file mode 100644 index 00000000..65146c95 --- /dev/null +++ b/spec/models/tmsv2tokenize_token_information_customer__links_payment_instruments_spec.rb @@ -0,0 +1,40 @@ +=begin +#CyberSource Merged Spec + +#All CyberSource API specs merged together. These are available at https://developer.cybersource.com/api/reference/api-reference.html + +OpenAPI spec version: 0.0.1 + +Generated by: https://github.com/swagger-api/swagger-codegen.git +Swagger Codegen version: 2.4.38 +=end + +require 'spec_helper' +require 'json' +require 'date' + +# Unit tests for CyberSource::Tmsv2tokenizeTokenInformationCustomerLinksPaymentInstruments +# Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen) +# Please update as you see appropriate +describe 'Tmsv2tokenizeTokenInformationCustomerLinksPaymentInstruments' do + before do + # run before each test + @instance = CyberSource::Tmsv2tokenizeTokenInformationCustomerLinksPaymentInstruments.new + end + + after do + # run after each test + end + + describe 'test an instance of Tmsv2tokenizeTokenInformationCustomerLinksPaymentInstruments' do + it 'should create an instance of Tmsv2tokenizeTokenInformationCustomerLinksPaymentInstruments' do + expect(@instance).to be_instance_of(CyberSource::Tmsv2tokenizeTokenInformationCustomerLinksPaymentInstruments) + end + end + describe 'test attribute "href"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + +end diff --git a/spec/models/tmsv2customers__links_payment_instruments_spec.rb b/spec/models/tmsv2tokenize_token_information_customer__links_self_spec.rb similarity index 60% rename from spec/models/tmsv2customers__links_payment_instruments_spec.rb rename to spec/models/tmsv2tokenize_token_information_customer__links_self_spec.rb index 11924f4a..b841bdca 100644 --- a/spec/models/tmsv2customers__links_payment_instruments_spec.rb +++ b/spec/models/tmsv2tokenize_token_information_customer__links_self_spec.rb @@ -13,22 +13,22 @@ require 'json' require 'date' -# Unit tests for CyberSource::Tmsv2customersLinksPaymentInstruments +# Unit tests for CyberSource::Tmsv2tokenizeTokenInformationCustomerLinksSelf # Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen) # Please update as you see appropriate -describe 'Tmsv2customersLinksPaymentInstruments' do +describe 'Tmsv2tokenizeTokenInformationCustomerLinksSelf' do before do # run before each test - @instance = CyberSource::Tmsv2customersLinksPaymentInstruments.new + @instance = CyberSource::Tmsv2tokenizeTokenInformationCustomerLinksSelf.new end after do # run after each test end - describe 'test an instance of Tmsv2customersLinksPaymentInstruments' do - it 'should create an instance of Tmsv2customersLinksPaymentInstruments' do - expect(@instance).to be_instance_of(CyberSource::Tmsv2customersLinksPaymentInstruments) + describe 'test an instance of Tmsv2tokenizeTokenInformationCustomerLinksSelf' do + it 'should create an instance of Tmsv2tokenizeTokenInformationCustomerLinksSelf' do + expect(@instance).to be_instance_of(CyberSource::Tmsv2tokenizeTokenInformationCustomerLinksSelf) end end describe 'test attribute "href"' do diff --git a/spec/models/tmsv2customers__embedded_default_payment_instrument__links_self_spec.rb b/spec/models/tmsv2tokenize_token_information_customer__links_shipping_address_spec.rb similarity index 57% rename from spec/models/tmsv2customers__embedded_default_payment_instrument__links_self_spec.rb rename to spec/models/tmsv2tokenize_token_information_customer__links_shipping_address_spec.rb index 441a0cd1..94aa7d0b 100644 --- a/spec/models/tmsv2customers__embedded_default_payment_instrument__links_self_spec.rb +++ b/spec/models/tmsv2tokenize_token_information_customer__links_shipping_address_spec.rb @@ -13,22 +13,22 @@ require 'json' require 'date' -# Unit tests for CyberSource::Tmsv2customersEmbeddedDefaultPaymentInstrumentLinksSelf +# Unit tests for CyberSource::Tmsv2tokenizeTokenInformationCustomerLinksShippingAddress # Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen) # Please update as you see appropriate -describe 'Tmsv2customersEmbeddedDefaultPaymentInstrumentLinksSelf' do +describe 'Tmsv2tokenizeTokenInformationCustomerLinksShippingAddress' do before do # run before each test - @instance = CyberSource::Tmsv2customersEmbeddedDefaultPaymentInstrumentLinksSelf.new + @instance = CyberSource::Tmsv2tokenizeTokenInformationCustomerLinksShippingAddress.new end after do # run after each test end - describe 'test an instance of Tmsv2customersEmbeddedDefaultPaymentInstrumentLinksSelf' do - it 'should create an instance of Tmsv2customersEmbeddedDefaultPaymentInstrumentLinksSelf' do - expect(@instance).to be_instance_of(CyberSource::Tmsv2customersEmbeddedDefaultPaymentInstrumentLinksSelf) + describe 'test an instance of Tmsv2tokenizeTokenInformationCustomerLinksShippingAddress' do + it 'should create an instance of Tmsv2tokenizeTokenInformationCustomerLinksShippingAddress' do + expect(@instance).to be_instance_of(CyberSource::Tmsv2tokenizeTokenInformationCustomerLinksShippingAddress) end end describe 'test attribute "href"' do diff --git a/spec/models/tmsv2customers__links_spec.rb b/spec/models/tmsv2tokenize_token_information_customer__links_spec.rb similarity index 71% rename from spec/models/tmsv2customers__links_spec.rb rename to spec/models/tmsv2tokenize_token_information_customer__links_spec.rb index c45edf10..127bf0f1 100644 --- a/spec/models/tmsv2customers__links_spec.rb +++ b/spec/models/tmsv2tokenize_token_information_customer__links_spec.rb @@ -13,22 +13,22 @@ require 'json' require 'date' -# Unit tests for CyberSource::Tmsv2customersLinks +# Unit tests for CyberSource::Tmsv2tokenizeTokenInformationCustomerLinks # Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen) # Please update as you see appropriate -describe 'Tmsv2customersLinks' do +describe 'Tmsv2tokenizeTokenInformationCustomerLinks' do before do # run before each test - @instance = CyberSource::Tmsv2customersLinks.new + @instance = CyberSource::Tmsv2tokenizeTokenInformationCustomerLinks.new end after do # run after each test end - describe 'test an instance of Tmsv2customersLinks' do - it 'should create an instance of Tmsv2customersLinks' do - expect(@instance).to be_instance_of(CyberSource::Tmsv2customersLinks) + describe 'test an instance of Tmsv2tokenizeTokenInformationCustomerLinks' do + it 'should create an instance of Tmsv2tokenizeTokenInformationCustomerLinks' do + expect(@instance).to be_instance_of(CyberSource::Tmsv2tokenizeTokenInformationCustomerLinks) end end describe 'test attribute "_self"' do diff --git a/spec/models/tmsv2customers_buyer_information_spec.rb b/spec/models/tmsv2tokenize_token_information_customer_buyer_information_spec.rb similarity index 64% rename from spec/models/tmsv2customers_buyer_information_spec.rb rename to spec/models/tmsv2tokenize_token_information_customer_buyer_information_spec.rb index e0cd4c38..fff3f129 100644 --- a/spec/models/tmsv2customers_buyer_information_spec.rb +++ b/spec/models/tmsv2tokenize_token_information_customer_buyer_information_spec.rb @@ -13,22 +13,22 @@ require 'json' require 'date' -# Unit tests for CyberSource::Tmsv2customersBuyerInformation +# Unit tests for CyberSource::Tmsv2tokenizeTokenInformationCustomerBuyerInformation # Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen) # Please update as you see appropriate -describe 'Tmsv2customersBuyerInformation' do +describe 'Tmsv2tokenizeTokenInformationCustomerBuyerInformation' do before do # run before each test - @instance = CyberSource::Tmsv2customersBuyerInformation.new + @instance = CyberSource::Tmsv2tokenizeTokenInformationCustomerBuyerInformation.new end after do # run after each test end - describe 'test an instance of Tmsv2customersBuyerInformation' do - it 'should create an instance of Tmsv2customersBuyerInformation' do - expect(@instance).to be_instance_of(CyberSource::Tmsv2customersBuyerInformation) + describe 'test an instance of Tmsv2tokenizeTokenInformationCustomerBuyerInformation' do + it 'should create an instance of Tmsv2tokenizeTokenInformationCustomerBuyerInformation' do + expect(@instance).to be_instance_of(CyberSource::Tmsv2tokenizeTokenInformationCustomerBuyerInformation) end end describe 'test attribute "merchant_customer_id"' do diff --git a/spec/models/tmsv2tokenize_token_information_customer_client_reference_information_spec.rb b/spec/models/tmsv2tokenize_token_information_customer_client_reference_information_spec.rb new file mode 100644 index 00000000..1c31a1d2 --- /dev/null +++ b/spec/models/tmsv2tokenize_token_information_customer_client_reference_information_spec.rb @@ -0,0 +1,40 @@ +=begin +#CyberSource Merged Spec + +#All CyberSource API specs merged together. These are available at https://developer.cybersource.com/api/reference/api-reference.html + +OpenAPI spec version: 0.0.1 + +Generated by: https://github.com/swagger-api/swagger-codegen.git +Swagger Codegen version: 2.4.38 +=end + +require 'spec_helper' +require 'json' +require 'date' + +# Unit tests for CyberSource::Tmsv2tokenizeTokenInformationCustomerClientReferenceInformation +# Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen) +# Please update as you see appropriate +describe 'Tmsv2tokenizeTokenInformationCustomerClientReferenceInformation' do + before do + # run before each test + @instance = CyberSource::Tmsv2tokenizeTokenInformationCustomerClientReferenceInformation.new + end + + after do + # run after each test + end + + describe 'test an instance of Tmsv2tokenizeTokenInformationCustomerClientReferenceInformation' do + it 'should create an instance of Tmsv2tokenizeTokenInformationCustomerClientReferenceInformation' do + expect(@instance).to be_instance_of(CyberSource::Tmsv2tokenizeTokenInformationCustomerClientReferenceInformation) + end + end + describe 'test attribute "code"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + +end diff --git a/spec/models/tmsv2customers_default_shipping_address_spec.rb b/spec/models/tmsv2tokenize_token_information_customer_default_payment_instrument_spec.rb similarity index 56% rename from spec/models/tmsv2customers_default_shipping_address_spec.rb rename to spec/models/tmsv2tokenize_token_information_customer_default_payment_instrument_spec.rb index 38967bec..f64c17f5 100644 --- a/spec/models/tmsv2customers_default_shipping_address_spec.rb +++ b/spec/models/tmsv2tokenize_token_information_customer_default_payment_instrument_spec.rb @@ -13,22 +13,22 @@ require 'json' require 'date' -# Unit tests for CyberSource::Tmsv2customersDefaultShippingAddress +# Unit tests for CyberSource::Tmsv2tokenizeTokenInformationCustomerDefaultPaymentInstrument # Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen) # Please update as you see appropriate -describe 'Tmsv2customersDefaultShippingAddress' do +describe 'Tmsv2tokenizeTokenInformationCustomerDefaultPaymentInstrument' do before do # run before each test - @instance = CyberSource::Tmsv2customersDefaultShippingAddress.new + @instance = CyberSource::Tmsv2tokenizeTokenInformationCustomerDefaultPaymentInstrument.new end after do # run after each test end - describe 'test an instance of Tmsv2customersDefaultShippingAddress' do - it 'should create an instance of Tmsv2customersDefaultShippingAddress' do - expect(@instance).to be_instance_of(CyberSource::Tmsv2customersDefaultShippingAddress) + describe 'test an instance of Tmsv2tokenizeTokenInformationCustomerDefaultPaymentInstrument' do + it 'should create an instance of Tmsv2tokenizeTokenInformationCustomerDefaultPaymentInstrument' do + expect(@instance).to be_instance_of(CyberSource::Tmsv2tokenizeTokenInformationCustomerDefaultPaymentInstrument) end end describe 'test attribute "id"' do diff --git a/spec/models/tmsv2customers_default_payment_instrument_spec.rb b/spec/models/tmsv2tokenize_token_information_customer_default_shipping_address_spec.rb similarity index 57% rename from spec/models/tmsv2customers_default_payment_instrument_spec.rb rename to spec/models/tmsv2tokenize_token_information_customer_default_shipping_address_spec.rb index a0b841d9..eb0e29f1 100644 --- a/spec/models/tmsv2customers_default_payment_instrument_spec.rb +++ b/spec/models/tmsv2tokenize_token_information_customer_default_shipping_address_spec.rb @@ -13,22 +13,22 @@ require 'json' require 'date' -# Unit tests for CyberSource::Tmsv2customersDefaultPaymentInstrument +# Unit tests for CyberSource::Tmsv2tokenizeTokenInformationCustomerDefaultShippingAddress # Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen) # Please update as you see appropriate -describe 'Tmsv2customersDefaultPaymentInstrument' do +describe 'Tmsv2tokenizeTokenInformationCustomerDefaultShippingAddress' do before do # run before each test - @instance = CyberSource::Tmsv2customersDefaultPaymentInstrument.new + @instance = CyberSource::Tmsv2tokenizeTokenInformationCustomerDefaultShippingAddress.new end after do # run after each test end - describe 'test an instance of Tmsv2customersDefaultPaymentInstrument' do - it 'should create an instance of Tmsv2customersDefaultPaymentInstrument' do - expect(@instance).to be_instance_of(CyberSource::Tmsv2customersDefaultPaymentInstrument) + describe 'test an instance of Tmsv2tokenizeTokenInformationCustomerDefaultShippingAddress' do + it 'should create an instance of Tmsv2tokenizeTokenInformationCustomerDefaultShippingAddress' do + expect(@instance).to be_instance_of(CyberSource::Tmsv2tokenizeTokenInformationCustomerDefaultShippingAddress) end end describe 'test attribute "id"' do diff --git a/spec/models/tmsv2customers_merchant_defined_information_spec.rb b/spec/models/tmsv2tokenize_token_information_customer_merchant_defined_information_spec.rb similarity index 61% rename from spec/models/tmsv2customers_merchant_defined_information_spec.rb rename to spec/models/tmsv2tokenize_token_information_customer_merchant_defined_information_spec.rb index 5e66d592..4051332a 100644 --- a/spec/models/tmsv2customers_merchant_defined_information_spec.rb +++ b/spec/models/tmsv2tokenize_token_information_customer_merchant_defined_information_spec.rb @@ -13,22 +13,22 @@ require 'json' require 'date' -# Unit tests for CyberSource::Tmsv2customersMerchantDefinedInformation +# Unit tests for CyberSource::Tmsv2tokenizeTokenInformationCustomerMerchantDefinedInformation # Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen) # Please update as you see appropriate -describe 'Tmsv2customersMerchantDefinedInformation' do +describe 'Tmsv2tokenizeTokenInformationCustomerMerchantDefinedInformation' do before do # run before each test - @instance = CyberSource::Tmsv2customersMerchantDefinedInformation.new + @instance = CyberSource::Tmsv2tokenizeTokenInformationCustomerMerchantDefinedInformation.new end after do # run after each test end - describe 'test an instance of Tmsv2customersMerchantDefinedInformation' do - it 'should create an instance of Tmsv2customersMerchantDefinedInformation' do - expect(@instance).to be_instance_of(CyberSource::Tmsv2customersMerchantDefinedInformation) + describe 'test an instance of Tmsv2tokenizeTokenInformationCustomerMerchantDefinedInformation' do + it 'should create an instance of Tmsv2tokenizeTokenInformationCustomerMerchantDefinedInformation' do + expect(@instance).to be_instance_of(CyberSource::Tmsv2tokenizeTokenInformationCustomerMerchantDefinedInformation) end end describe 'test attribute "name"' do diff --git a/spec/models/tmsv2customers_metadata_spec.rb b/spec/models/tmsv2tokenize_token_information_customer_metadata_spec.rb similarity index 61% rename from spec/models/tmsv2customers_metadata_spec.rb rename to spec/models/tmsv2tokenize_token_information_customer_metadata_spec.rb index 2be20069..622c9a69 100644 --- a/spec/models/tmsv2customers_metadata_spec.rb +++ b/spec/models/tmsv2tokenize_token_information_customer_metadata_spec.rb @@ -13,22 +13,22 @@ require 'json' require 'date' -# Unit tests for CyberSource::Tmsv2customersMetadata +# Unit tests for CyberSource::Tmsv2tokenizeTokenInformationCustomerMetadata # Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen) # Please update as you see appropriate -describe 'Tmsv2customersMetadata' do +describe 'Tmsv2tokenizeTokenInformationCustomerMetadata' do before do # run before each test - @instance = CyberSource::Tmsv2customersMetadata.new + @instance = CyberSource::Tmsv2tokenizeTokenInformationCustomerMetadata.new end after do # run after each test end - describe 'test an instance of Tmsv2customersMetadata' do - it 'should create an instance of Tmsv2customersMetadata' do - expect(@instance).to be_instance_of(CyberSource::Tmsv2customersMetadata) + describe 'test an instance of Tmsv2tokenizeTokenInformationCustomerMetadata' do + it 'should create an instance of Tmsv2tokenizeTokenInformationCustomerMetadata' do + expect(@instance).to be_instance_of(CyberSource::Tmsv2tokenizeTokenInformationCustomerMetadata) end end describe 'test attribute "creator"' do diff --git a/spec/models/tmsv2tokenize_token_information_customer_object_information_spec.rb b/spec/models/tmsv2tokenize_token_information_customer_object_information_spec.rb new file mode 100644 index 00000000..a3cef7dd --- /dev/null +++ b/spec/models/tmsv2tokenize_token_information_customer_object_information_spec.rb @@ -0,0 +1,46 @@ +=begin +#CyberSource Merged Spec + +#All CyberSource API specs merged together. These are available at https://developer.cybersource.com/api/reference/api-reference.html + +OpenAPI spec version: 0.0.1 + +Generated by: https://github.com/swagger-api/swagger-codegen.git +Swagger Codegen version: 2.4.38 +=end + +require 'spec_helper' +require 'json' +require 'date' + +# Unit tests for CyberSource::Tmsv2tokenizeTokenInformationCustomerObjectInformation +# Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen) +# Please update as you see appropriate +describe 'Tmsv2tokenizeTokenInformationCustomerObjectInformation' do + before do + # run before each test + @instance = CyberSource::Tmsv2tokenizeTokenInformationCustomerObjectInformation.new + end + + after do + # run after each test + end + + describe 'test an instance of Tmsv2tokenizeTokenInformationCustomerObjectInformation' do + it 'should create an instance of Tmsv2tokenizeTokenInformationCustomerObjectInformation' do + expect(@instance).to be_instance_of(CyberSource::Tmsv2tokenizeTokenInformationCustomerObjectInformation) + end + end + describe 'test attribute "title"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + describe 'test attribute "comment"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + +end diff --git a/spec/models/tmsv2tokenize_token_information_customer_spec.rb b/spec/models/tmsv2tokenize_token_information_customer_spec.rb new file mode 100644 index 00000000..4bb08b67 --- /dev/null +++ b/spec/models/tmsv2tokenize_token_information_customer_spec.rb @@ -0,0 +1,94 @@ +=begin +#CyberSource Merged Spec + +#All CyberSource API specs merged together. These are available at https://developer.cybersource.com/api/reference/api-reference.html + +OpenAPI spec version: 0.0.1 + +Generated by: https://github.com/swagger-api/swagger-codegen.git +Swagger Codegen version: 2.4.38 +=end + +require 'spec_helper' +require 'json' +require 'date' + +# Unit tests for CyberSource::Tmsv2tokenizeTokenInformationCustomer +# Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen) +# Please update as you see appropriate +describe 'Tmsv2tokenizeTokenInformationCustomer' do + before do + # run before each test + @instance = CyberSource::Tmsv2tokenizeTokenInformationCustomer.new + end + + after do + # run after each test + end + + describe 'test an instance of Tmsv2tokenizeTokenInformationCustomer' do + it 'should create an instance of Tmsv2tokenizeTokenInformationCustomer' do + expect(@instance).to be_instance_of(CyberSource::Tmsv2tokenizeTokenInformationCustomer) + end + end + describe 'test attribute "_links"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + describe 'test attribute "id"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + describe 'test attribute "object_information"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + describe 'test attribute "buyer_information"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + describe 'test attribute "client_reference_information"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + describe 'test attribute "merchant_defined_information"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + describe 'test attribute "default_payment_instrument"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + describe 'test attribute "default_shipping_address"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + describe 'test attribute "metadata"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + describe 'test attribute "_embedded"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + +end diff --git a/spec/models/rbsv1subscriptions_client_reference_information_spec.rb b/spec/models/tmsv2tokenize_token_information_spec.rb similarity index 65% rename from spec/models/rbsv1subscriptions_client_reference_information_spec.rb rename to spec/models/tmsv2tokenize_token_information_spec.rb index 90a32817..95b9a17e 100644 --- a/spec/models/rbsv1subscriptions_client_reference_information_spec.rb +++ b/spec/models/tmsv2tokenize_token_information_spec.rb @@ -13,55 +13,55 @@ require 'json' require 'date' -# Unit tests for CyberSource::Rbsv1subscriptionsClientReferenceInformation +# Unit tests for CyberSource::Tmsv2tokenizeTokenInformation # Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen) # Please update as you see appropriate -describe 'Rbsv1subscriptionsClientReferenceInformation' do +describe 'Tmsv2tokenizeTokenInformation' do before do # run before each test - @instance = CyberSource::Rbsv1subscriptionsClientReferenceInformation.new + @instance = CyberSource::Tmsv2tokenizeTokenInformation.new end after do # run after each test end - describe 'test an instance of Rbsv1subscriptionsClientReferenceInformation' do - it 'should create an instance of Rbsv1subscriptionsClientReferenceInformation' do - expect(@instance).to be_instance_of(CyberSource::Rbsv1subscriptionsClientReferenceInformation) + describe 'test an instance of Tmsv2tokenizeTokenInformation' do + it 'should create an instance of Tmsv2tokenizeTokenInformation' do + expect(@instance).to be_instance_of(CyberSource::Tmsv2tokenizeTokenInformation) end end - describe 'test attribute "code"' do + describe 'test attribute "jti"' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end - describe 'test attribute "comments"' do + describe 'test attribute "transient_token_jwt"' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end - describe 'test attribute "partner"' do + describe 'test attribute "customer"' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end - describe 'test attribute "application_name"' do + describe 'test attribute "shipping_address"' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end - describe 'test attribute "application_version"' do + describe 'test attribute "payment_instrument"' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end - describe 'test attribute "application_user"' do + describe 'test attribute "instrument_identifier"' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end diff --git a/spec/models/tmsv2tokenizedcardstokenized_card_idissuerlifecycleeventsimulations_card_spec.rb b/spec/models/tmsv2tokenizedcardstokenized_card_idissuerlifecycleeventsimulations_card_spec.rb new file mode 100644 index 00000000..b55f23e7 --- /dev/null +++ b/spec/models/tmsv2tokenizedcardstokenized_card_idissuerlifecycleeventsimulations_card_spec.rb @@ -0,0 +1,52 @@ +=begin +#CyberSource Merged Spec + +#All CyberSource API specs merged together. These are available at https://developer.cybersource.com/api/reference/api-reference.html + +OpenAPI spec version: 0.0.1 + +Generated by: https://github.com/swagger-api/swagger-codegen.git +Swagger Codegen version: 2.4.38 +=end + +require 'spec_helper' +require 'json' +require 'date' + +# Unit tests for CyberSource::Tmsv2tokenizedcardstokenizedCardIdissuerlifecycleeventsimulationsCard +# Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen) +# Please update as you see appropriate +describe 'Tmsv2tokenizedcardstokenizedCardIdissuerlifecycleeventsimulationsCard' do + before do + # run before each test + @instance = CyberSource::Tmsv2tokenizedcardstokenizedCardIdissuerlifecycleeventsimulationsCard.new + end + + after do + # run after each test + end + + describe 'test an instance of Tmsv2tokenizedcardstokenizedCardIdissuerlifecycleeventsimulationsCard' do + it 'should create an instance of Tmsv2tokenizedcardstokenizedCardIdissuerlifecycleeventsimulationsCard' do + expect(@instance).to be_instance_of(CyberSource::Tmsv2tokenizedcardstokenizedCardIdissuerlifecycleeventsimulationsCard) + end + end + describe 'test attribute "last4"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + describe 'test attribute "expiration_month"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + describe 'test attribute "expiration_year"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + +end diff --git a/spec/models/tmsv2tokenizedcardstokenized_card_idissuerlifecycleeventsimulations_metadata_card_art_combined_asset_spec.rb b/spec/models/tmsv2tokenizedcardstokenized_card_idissuerlifecycleeventsimulations_metadata_card_art_combined_asset_spec.rb new file mode 100644 index 00000000..189c46c4 --- /dev/null +++ b/spec/models/tmsv2tokenizedcardstokenized_card_idissuerlifecycleeventsimulations_metadata_card_art_combined_asset_spec.rb @@ -0,0 +1,40 @@ +=begin +#CyberSource Merged Spec + +#All CyberSource API specs merged together. These are available at https://developer.cybersource.com/api/reference/api-reference.html + +OpenAPI spec version: 0.0.1 + +Generated by: https://github.com/swagger-api/swagger-codegen.git +Swagger Codegen version: 2.4.38 +=end + +require 'spec_helper' +require 'json' +require 'date' + +# Unit tests for CyberSource::Tmsv2tokenizedcardstokenizedCardIdissuerlifecycleeventsimulationsMetadataCardArtCombinedAsset +# Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen) +# Please update as you see appropriate +describe 'Tmsv2tokenizedcardstokenizedCardIdissuerlifecycleeventsimulationsMetadataCardArtCombinedAsset' do + before do + # run before each test + @instance = CyberSource::Tmsv2tokenizedcardstokenizedCardIdissuerlifecycleeventsimulationsMetadataCardArtCombinedAsset.new + end + + after do + # run after each test + end + + describe 'test an instance of Tmsv2tokenizedcardstokenizedCardIdissuerlifecycleeventsimulationsMetadataCardArtCombinedAsset' do + it 'should create an instance of Tmsv2tokenizedcardstokenizedCardIdissuerlifecycleeventsimulationsMetadataCardArtCombinedAsset' do + expect(@instance).to be_instance_of(CyberSource::Tmsv2tokenizedcardstokenizedCardIdissuerlifecycleeventsimulationsMetadataCardArtCombinedAsset) + end + end + describe 'test attribute "update"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + +end diff --git a/spec/models/tmsv2tokenizedcardstokenized_card_idissuerlifecycleeventsimulations_metadata_card_art_spec.rb b/spec/models/tmsv2tokenizedcardstokenized_card_idissuerlifecycleeventsimulations_metadata_card_art_spec.rb new file mode 100644 index 00000000..431c12e3 --- /dev/null +++ b/spec/models/tmsv2tokenizedcardstokenized_card_idissuerlifecycleeventsimulations_metadata_card_art_spec.rb @@ -0,0 +1,40 @@ +=begin +#CyberSource Merged Spec + +#All CyberSource API specs merged together. These are available at https://developer.cybersource.com/api/reference/api-reference.html + +OpenAPI spec version: 0.0.1 + +Generated by: https://github.com/swagger-api/swagger-codegen.git +Swagger Codegen version: 2.4.38 +=end + +require 'spec_helper' +require 'json' +require 'date' + +# Unit tests for CyberSource::Tmsv2tokenizedcardstokenizedCardIdissuerlifecycleeventsimulationsMetadataCardArt +# Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen) +# Please update as you see appropriate +describe 'Tmsv2tokenizedcardstokenizedCardIdissuerlifecycleeventsimulationsMetadataCardArt' do + before do + # run before each test + @instance = CyberSource::Tmsv2tokenizedcardstokenizedCardIdissuerlifecycleeventsimulationsMetadataCardArt.new + end + + after do + # run after each test + end + + describe 'test an instance of Tmsv2tokenizedcardstokenizedCardIdissuerlifecycleeventsimulationsMetadataCardArt' do + it 'should create an instance of Tmsv2tokenizedcardstokenizedCardIdissuerlifecycleeventsimulationsMetadataCardArt' do + expect(@instance).to be_instance_of(CyberSource::Tmsv2tokenizedcardstokenizedCardIdissuerlifecycleeventsimulationsMetadataCardArt) + end + end + describe 'test attribute "combined_asset"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + +end diff --git a/spec/models/tmsv2tokenizedcardstokenized_card_idissuerlifecycleeventsimulations_metadata_spec.rb b/spec/models/tmsv2tokenizedcardstokenized_card_idissuerlifecycleeventsimulations_metadata_spec.rb new file mode 100644 index 00000000..99e799b4 --- /dev/null +++ b/spec/models/tmsv2tokenizedcardstokenized_card_idissuerlifecycleeventsimulations_metadata_spec.rb @@ -0,0 +1,40 @@ +=begin +#CyberSource Merged Spec + +#All CyberSource API specs merged together. These are available at https://developer.cybersource.com/api/reference/api-reference.html + +OpenAPI spec version: 0.0.1 + +Generated by: https://github.com/swagger-api/swagger-codegen.git +Swagger Codegen version: 2.4.38 +=end + +require 'spec_helper' +require 'json' +require 'date' + +# Unit tests for CyberSource::Tmsv2tokenizedcardstokenizedCardIdissuerlifecycleeventsimulationsMetadata +# Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen) +# Please update as you see appropriate +describe 'Tmsv2tokenizedcardstokenizedCardIdissuerlifecycleeventsimulationsMetadata' do + before do + # run before each test + @instance = CyberSource::Tmsv2tokenizedcardstokenizedCardIdissuerlifecycleeventsimulationsMetadata.new + end + + after do + # run after each test + end + + describe 'test an instance of Tmsv2tokenizedcardstokenizedCardIdissuerlifecycleeventsimulationsMetadata' do + it 'should create an instance of Tmsv2tokenizedcardstokenizedCardIdissuerlifecycleeventsimulationsMetadata' do + expect(@instance).to be_instance_of(CyberSource::Tmsv2tokenizedcardstokenizedCardIdissuerlifecycleeventsimulationsMetadata) + end + end + describe 'test attribute "card_art"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + +end diff --git a/spec/models/upv1capturecontexts_data_buyer_information_spec.rb b/spec/models/upv1capturecontexts_data_buyer_information_spec.rb index 6721b6f4..da69ca70 100644 --- a/spec/models/upv1capturecontexts_data_buyer_information_spec.rb +++ b/spec/models/upv1capturecontexts_data_buyer_information_spec.rb @@ -49,4 +49,16 @@ end end + describe 'test attribute "date_of_birth"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + describe 'test attribute "language"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + end diff --git a/spec/models/upv1capturecontexts_data_consumer_authentication_information_spec.rb b/spec/models/upv1capturecontexts_data_consumer_authentication_information_spec.rb index 08a55a07..49f92958 100644 --- a/spec/models/upv1capturecontexts_data_consumer_authentication_information_spec.rb +++ b/spec/models/upv1capturecontexts_data_consumer_authentication_information_spec.rb @@ -43,4 +43,10 @@ end end + describe 'test attribute "acs_window_size"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + end diff --git a/spec/models/tmsv2customers_client_reference_information_spec.rb b/spec/models/upv1capturecontexts_data_device_information_spec.rb similarity index 63% rename from spec/models/tmsv2customers_client_reference_information_spec.rb rename to spec/models/upv1capturecontexts_data_device_information_spec.rb index 697909e5..f5e4c7b9 100644 --- a/spec/models/tmsv2customers_client_reference_information_spec.rb +++ b/spec/models/upv1capturecontexts_data_device_information_spec.rb @@ -13,25 +13,25 @@ require 'json' require 'date' -# Unit tests for CyberSource::Tmsv2customersClientReferenceInformation +# Unit tests for CyberSource::Upv1capturecontextsDataDeviceInformation # Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen) # Please update as you see appropriate -describe 'Tmsv2customersClientReferenceInformation' do +describe 'Upv1capturecontextsDataDeviceInformation' do before do # run before each test - @instance = CyberSource::Tmsv2customersClientReferenceInformation.new + @instance = CyberSource::Upv1capturecontextsDataDeviceInformation.new end after do # run after each test end - describe 'test an instance of Tmsv2customersClientReferenceInformation' do - it 'should create an instance of Tmsv2customersClientReferenceInformation' do - expect(@instance).to be_instance_of(CyberSource::Tmsv2customersClientReferenceInformation) + describe 'test an instance of Upv1capturecontextsDataDeviceInformation' do + it 'should create an instance of Upv1capturecontextsDataDeviceInformation' do + expect(@instance).to be_instance_of(CyberSource::Upv1capturecontextsDataDeviceInformation) end end - describe 'test attribute "code"' do + describe 'test attribute "ip_address"' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end diff --git a/spec/models/upv1capturecontexts_data_merchant_information_merchant_descriptor_spec.rb b/spec/models/upv1capturecontexts_data_merchant_information_merchant_descriptor_spec.rb index f6f2beed..9f19799d 100644 --- a/spec/models/upv1capturecontexts_data_merchant_information_merchant_descriptor_spec.rb +++ b/spec/models/upv1capturecontexts_data_merchant_information_merchant_descriptor_spec.rb @@ -37,4 +37,46 @@ end end + describe 'test attribute "alternate_name"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + describe 'test attribute "locality"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + describe 'test attribute "phone"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + describe 'test attribute "country"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + describe 'test attribute "postal_code"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + describe 'test attribute "administrative_area"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + describe 'test attribute "address1"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + end diff --git a/spec/models/upv1capturecontexts_data_order_information_amount_details_spec.rb b/spec/models/upv1capturecontexts_data_order_information_amount_details_spec.rb index 5dfa398f..dc7bb939 100644 --- a/spec/models/upv1capturecontexts_data_order_information_amount_details_spec.rb +++ b/spec/models/upv1capturecontexts_data_order_information_amount_details_spec.rb @@ -73,4 +73,10 @@ end end + describe 'test attribute "tax_details"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + end diff --git a/spec/models/upv1capturecontexts_data_order_information_amount_details_tax_details_spec.rb b/spec/models/upv1capturecontexts_data_order_information_amount_details_tax_details_spec.rb new file mode 100644 index 00000000..083ce5f0 --- /dev/null +++ b/spec/models/upv1capturecontexts_data_order_information_amount_details_tax_details_spec.rb @@ -0,0 +1,46 @@ +=begin +#CyberSource Merged Spec + +#All CyberSource API specs merged together. These are available at https://developer.cybersource.com/api/reference/api-reference.html + +OpenAPI spec version: 0.0.1 + +Generated by: https://github.com/swagger-api/swagger-codegen.git +Swagger Codegen version: 2.4.38 +=end + +require 'spec_helper' +require 'json' +require 'date' + +# Unit tests for CyberSource::Upv1capturecontextsDataOrderInformationAmountDetailsTaxDetails +# Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen) +# Please update as you see appropriate +describe 'Upv1capturecontextsDataOrderInformationAmountDetailsTaxDetails' do + before do + # run before each test + @instance = CyberSource::Upv1capturecontextsDataOrderInformationAmountDetailsTaxDetails.new + end + + after do + # run after each test + end + + describe 'test an instance of Upv1capturecontextsDataOrderInformationAmountDetailsTaxDetails' do + it 'should create an instance of Upv1capturecontextsDataOrderInformationAmountDetailsTaxDetails' do + expect(@instance).to be_instance_of(CyberSource::Upv1capturecontextsDataOrderInformationAmountDetailsTaxDetails) + end + end + describe 'test attribute "tax_id"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + describe 'test attribute "type"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + +end diff --git a/spec/models/upv1capturecontexts_data_order_information_invoice_details_spec.rb b/spec/models/upv1capturecontexts_data_order_information_invoice_details_spec.rb new file mode 100644 index 00000000..2ece0e58 --- /dev/null +++ b/spec/models/upv1capturecontexts_data_order_information_invoice_details_spec.rb @@ -0,0 +1,46 @@ +=begin +#CyberSource Merged Spec + +#All CyberSource API specs merged together. These are available at https://developer.cybersource.com/api/reference/api-reference.html + +OpenAPI spec version: 0.0.1 + +Generated by: https://github.com/swagger-api/swagger-codegen.git +Swagger Codegen version: 2.4.38 +=end + +require 'spec_helper' +require 'json' +require 'date' + +# Unit tests for CyberSource::Upv1capturecontextsDataOrderInformationInvoiceDetails +# Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen) +# Please update as you see appropriate +describe 'Upv1capturecontextsDataOrderInformationInvoiceDetails' do + before do + # run before each test + @instance = CyberSource::Upv1capturecontextsDataOrderInformationInvoiceDetails.new + end + + after do + # run after each test + end + + describe 'test an instance of Upv1capturecontextsDataOrderInformationInvoiceDetails' do + it 'should create an instance of Upv1capturecontextsDataOrderInformationInvoiceDetails' do + expect(@instance).to be_instance_of(CyberSource::Upv1capturecontextsDataOrderInformationInvoiceDetails) + end + end + describe 'test attribute "invoice_number"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + describe 'test attribute "product_description"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + +end diff --git a/spec/models/upv1capturecontexts_data_order_information_spec.rb b/spec/models/upv1capturecontexts_data_order_information_spec.rb index 2ca1e3b8..85294114 100644 --- a/spec/models/upv1capturecontexts_data_order_information_spec.rb +++ b/spec/models/upv1capturecontexts_data_order_information_spec.rb @@ -55,4 +55,10 @@ end end + describe 'test attribute "invoice_details"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + end diff --git a/spec/models/upv1capturecontexts_data_payment_information_card_spec.rb b/spec/models/upv1capturecontexts_data_payment_information_card_spec.rb new file mode 100644 index 00000000..8fdea1e7 --- /dev/null +++ b/spec/models/upv1capturecontexts_data_payment_information_card_spec.rb @@ -0,0 +1,40 @@ +=begin +#CyberSource Merged Spec + +#All CyberSource API specs merged together. These are available at https://developer.cybersource.com/api/reference/api-reference.html + +OpenAPI spec version: 0.0.1 + +Generated by: https://github.com/swagger-api/swagger-codegen.git +Swagger Codegen version: 2.4.38 +=end + +require 'spec_helper' +require 'json' +require 'date' + +# Unit tests for CyberSource::Upv1capturecontextsDataPaymentInformationCard +# Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen) +# Please update as you see appropriate +describe 'Upv1capturecontextsDataPaymentInformationCard' do + before do + # run before each test + @instance = CyberSource::Upv1capturecontextsDataPaymentInformationCard.new + end + + after do + # run after each test + end + + describe 'test an instance of Upv1capturecontextsDataPaymentInformationCard' do + it 'should create an instance of Upv1capturecontextsDataPaymentInformationCard' do + expect(@instance).to be_instance_of(CyberSource::Upv1capturecontextsDataPaymentInformationCard) + end + end + describe 'test attribute "type_selection_indicator"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + +end diff --git a/spec/models/upv1capturecontexts_data_payment_information_spec.rb b/spec/models/upv1capturecontexts_data_payment_information_spec.rb new file mode 100644 index 00000000..a04087b1 --- /dev/null +++ b/spec/models/upv1capturecontexts_data_payment_information_spec.rb @@ -0,0 +1,40 @@ +=begin +#CyberSource Merged Spec + +#All CyberSource API specs merged together. These are available at https://developer.cybersource.com/api/reference/api-reference.html + +OpenAPI spec version: 0.0.1 + +Generated by: https://github.com/swagger-api/swagger-codegen.git +Swagger Codegen version: 2.4.38 +=end + +require 'spec_helper' +require 'json' +require 'date' + +# Unit tests for CyberSource::Upv1capturecontextsDataPaymentInformation +# Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen) +# Please update as you see appropriate +describe 'Upv1capturecontextsDataPaymentInformation' do + before do + # run before each test + @instance = CyberSource::Upv1capturecontextsDataPaymentInformation.new + end + + after do + # run after each test + end + + describe 'test an instance of Upv1capturecontextsDataPaymentInformation' do + it 'should create an instance of Upv1capturecontextsDataPaymentInformation' do + expect(@instance).to be_instance_of(CyberSource::Upv1capturecontextsDataPaymentInformation) + end + end + describe 'test attribute "card"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + +end diff --git a/spec/models/upv1capturecontexts_data_processing_information_authorization_options_spec.rb b/spec/models/upv1capturecontexts_data_processing_information_authorization_options_spec.rb index d5e5ea2d..1f4933d2 100644 --- a/spec/models/upv1capturecontexts_data_processing_information_authorization_options_spec.rb +++ b/spec/models/upv1capturecontexts_data_processing_information_authorization_options_spec.rb @@ -37,6 +37,24 @@ end end + describe 'test attribute "auth_indicator"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + describe 'test attribute "ignore_cv_result"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + describe 'test attribute "ignore_avs_result"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + describe 'test attribute "initiator"' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers @@ -49,4 +67,16 @@ end end + describe 'test attribute "commerce_indicator"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + describe 'test attribute "processing_instruction"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + end diff --git a/spec/models/upv1capturecontexts_data_recipient_information_spec.rb b/spec/models/upv1capturecontexts_data_recipient_information_spec.rb index 4d2bb6ef..8621449c 100644 --- a/spec/models/upv1capturecontexts_data_recipient_information_spec.rb +++ b/spec/models/upv1capturecontexts_data_recipient_information_spec.rb @@ -73,4 +73,16 @@ end end + describe 'test attribute "date_of_birth"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + describe 'test attribute "postal_code"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + end diff --git a/spec/models/upv1capturecontexts_data_spec.rb b/spec/models/upv1capturecontexts_data_spec.rb index 30e79e3b..6c1c4189 100644 --- a/spec/models/upv1capturecontexts_data_spec.rb +++ b/spec/models/upv1capturecontexts_data_spec.rb @@ -79,4 +79,16 @@ end end + describe 'test attribute "device_information"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + describe 'test attribute "payment_information"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + end From 65dd347ceac270493984749d5123b1004e453c60 Mon Sep 17 00:00:00 2001 From: "Goel, Aastvik" Date: Fri, 21 Nov 2025 16:41:59 +0530 Subject: [PATCH 6/8] version update for nov25 release --- cybersource_rest_client.gemspec | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cybersource_rest_client.gemspec b/cybersource_rest_client.gemspec index f5351721..73cf77a1 100644 --- a/cybersource_rest_client.gemspec +++ b/cybersource_rest_client.gemspec @@ -17,7 +17,7 @@ require "cybersource_rest_client/version" Gem::Specification.new do |s| s.name = "cybersource_rest_client" - s.version = "0.0.79" + s.version = "0.0.80" s.platform = Gem::Platform::RUBY s.authors = ["CyberSource"] s.email = ["cybersourcedev@gmail.com"] From c6fda28466dec968eea49ab977dcde7139469210 Mon Sep 17 00:00:00 2001 From: "Goel, Aastvik" Date: Fri, 21 Nov 2025 17:08:56 +0530 Subject: [PATCH 7/8] renamed file names with more than 100 chars --- generator/cybersource_ruby_SDK_gen.sh | 13 + lib/cybersource_rest_client.rb | 3470 ++++++++--------- ...ayment_instrument_buyer_info_issued_by.rb} | 0 ...ent_buyer_info_personal_identification.rb} | 0 ...payment_instrument_card_tokenized_info.rb} | 0 ...yment_instrument_instrument_identifier.rb} | 0 6 files changed, 1748 insertions(+), 1735 deletions(-) rename lib/cybersource_rest_client/models/{tmsv2tokenize_token_information_customer__embedded_default_payment_instrument_buyer_information_issued_by.rb => tmsv2tokenize_default_payment_instrument_buyer_info_issued_by.rb} (100%) rename lib/cybersource_rest_client/models/{tmsv2tokenize_token_information_customer__embedded_default_payment_instrument_buyer_information_personal_identification.rb => tmsv2tokenize_default_payment_instrument_buyer_info_personal_identification.rb} (100%) rename lib/cybersource_rest_client/models/{tmsv2tokenize_token_information_customer__embedded_default_payment_instrument_card_tokenized_information.rb => tmsv2tokenize_default_payment_instrument_card_tokenized_info.rb} (100%) rename lib/cybersource_rest_client/models/{tmsv2tokenize_token_information_customer__embedded_default_payment_instrument_instrument_identifier.rb => tmsv2tokenize_default_payment_instrument_instrument_identifier.rb} (100%) diff --git a/generator/cybersource_ruby_SDK_gen.sh b/generator/cybersource_ruby_SDK_gen.sh index 9a45280f..f7367e89 100644 --- a/generator/cybersource_ruby_SDK_gen.sh +++ b/generator/cybersource_ruby_SDK_gen.sh @@ -53,6 +53,19 @@ sed -i "s|cybersource_rest_client/models/underwriting_configuration_organization mv ../lib/cybersource_rest_client/models/upv1capturecontexts_data_processing_information_authorization_options_initiator_merchant_initiated_transaction.rb ../lib/cybersource_rest_client/models/upv1capturecontexts_data_processing_info_mit.rb sed -i "s|cybersource_rest_client/models/upv1capturecontexts_data_processing_information_authorization_options_initiator_merchant_initiated_transaction|cybersource_rest_client/models/upv1capturecontexts_data_processing_info_mit|g" ../lib/cybersource_rest_client.rb +mv ../lib/cybersource_rest_client/models/tmsv2tokenize_token_information_customer__embedded_default_payment_instrument_buyer_information_issued_by.rb ../lib/cybersource_rest_client/models/tmsv2tokenize_default_payment_instrument_buyer_info_issued_by.rb +sed -i "s|cybersource_rest_client/models/tmsv2tokenize_token_information_customer__embedded_default_payment_instrument_buyer_information_issued_by|cybersource_rest_client/models/tmsv2tokenize_default_payment_instrument_buyer_info_issued_by|g" ../lib/cybersource_rest_client.rb + +mv ../lib/cybersource_rest_client/models/tmsv2tokenize_token_information_customer__embedded_default_payment_instrument_buyer_information_personal_identification.rb ../lib/cybersource_rest_client/models/tmsv2tokenize_default_payment_instrument_buyer_info_personal_identification.rb +sed -i "s|cybersource_rest_client/models/tmsv2tokenize_token_information_customer__embedded_default_payment_instrument_buyer_information_personal_identification|cybersource_rest_client/models/tmsv2tokenize_default_payment_instrument_buyer_info_personal_identification|g" ../lib/cybersource_rest_client.rb + +mv ../lib/cybersource_rest_client/models/tmsv2tokenize_token_information_customer__embedded_default_payment_instrument_card_tokenized_information.rb ../lib/cybersource_rest_client/models/tmsv2tokenize_default_payment_instrument_card_tokenized_info.rb +sed -i "s|cybersource_rest_client/models/tmsv2tokenize_token_information_customer__embedded_default_payment_instrument_card_tokenized_information|cybersource_rest_client/models/tmsv2tokenize_default_payment_instrument_card_tokenized_info|g" ../lib/cybersource_rest_client.rb + + +mv ../lib/cybersource_rest_client/models/tmsv2tokenize_token_information_customer__embedded_default_payment_instrument_instrument_identifier.rb ../lib/cybersource_rest_client/models/tmsv2tokenize_default_payment_instrument_instrument_identifier.rb +sed -i "s|cybersource_rest_client/models/tmsv2tokenize_token_information_customer__embedded_default_payment_instrument_instrument_identifier|cybersource_rest_client/models/tmsv2tokenize_default_payment_instrument_instrument_identifier|g" ../lib/cybersource_rest_client.rb + sed -i 's/$/\r/' ../lib/cybersource_rest_client.rb #set +v vecho off diff --git a/lib/cybersource_rest_client.rb b/lib/cybersource_rest_client.rb index da172b2d..4f956ce6 100644 --- a/lib/cybersource_rest_client.rb +++ b/lib/cybersource_rest_client.rb @@ -1,1735 +1,1735 @@ -=begin -#CyberSource Merged Spec - -#All CyberSource API specs merged together. These are available at https://developer.cybersource.com/api/reference/api-reference.html - -OpenAPI spec version: 0.0.1 - -Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.4.38 -=end - -# Authentication SDK -require 'AuthenticationSDK/util/Utility.rb' -require 'AuthenticationSDK/util/PropertiesUtil.rb' -require 'AuthenticationSDK/util/Constants.rb' -require 'AuthenticationSDK/util/Cache.rb' -require 'AuthenticationSDK/util/ExceptionHandler.rb' -require 'AuthenticationSDK/logging/log_configuration.rb' -require 'AuthenticationSDK/logging/log_factory.rb' -require 'AuthenticationSDK/logging/sensitive_logging.rb' -require 'AuthenticationSDK/core/MerchantConfig.rb' -require 'AuthenticationSDK/core/ITokenGeneration.rb' -require 'AuthenticationSDK/core/Authorization.rb' -require 'AuthenticationSDK/authentication/payloadDigest/digest.rb' -require 'AuthenticationSDK/authentication/jwt/JwtToken.rb' -require 'AuthenticationSDK/authentication/http/HttpSignatureHeader.rb' -require 'AuthenticationSDK/authentication/http/GetSignatureParameter.rb' - -# Common files -require 'cybersource_rest_client/api_client' -require 'cybersource_rest_client/api_error' -require 'cybersource_rest_client/version' -require 'cybersource_rest_client/configuration' - -# Models -require 'cybersource_rest_client/models/resource_not_found_error' -require 'cybersource_rest_client/models/unauthorized_client_error' -require 'cybersource_rest_client/models/access_token_response' -require 'cybersource_rest_client/models/bad_request_error' -require 'cybersource_rest_client/models/create_access_token_request' -require 'cybersource_rest_client/models/account_validations_request' -require 'cybersource_rest_client/models/accountupdaterv1batches_included' -require 'cybersource_rest_client/models/accountupdaterv1batches_included_tokens' -require 'cybersource_rest_client/models/activate_deactivate_plan_response' -require 'cybersource_rest_client/models/activate_subscription_response' -require 'cybersource_rest_client/models/activate_subscription_response_subscription_information' -require 'cybersource_rest_client/models/add_negative_list_request' -require 'cybersource_rest_client/models/auth_reversal_request' -require 'cybersource_rest_client/models/bavsv1accountvalidations_client_reference_information' -require 'cybersource_rest_client/models/bavsv1accountvalidations_payment_information' -require 'cybersource_rest_client/models/bavsv1accountvalidations_payment_information_bank' -require 'cybersource_rest_client/models/bavsv1accountvalidations_payment_information_bank_account' -require 'cybersource_rest_client/models/bavsv1accountvalidations_processing_information' -require 'cybersource_rest_client/models/binv1binlookup_client_reference_information' -require 'cybersource_rest_client/models/binv1binlookup_payment_information' -require 'cybersource_rest_client/models/binv1binlookup_payment_information_card' -require 'cybersource_rest_client/models/binv1binlookup_processing_information' -require 'cybersource_rest_client/models/binv1binlookup_processing_information_payout_options' -require 'cybersource_rest_client/models/binv1binlookup_token_information' -require 'cybersource_rest_client/models/boardingv1registrations_document_information' -require 'cybersource_rest_client/models/boardingv1registrations_document_information_signed_documents' -require 'cybersource_rest_client/models/boardingv1registrations_integration_information' -require 'cybersource_rest_client/models/boardingv1registrations_integration_information_oauth2' -require 'cybersource_rest_client/models/boardingv1registrations_integration_information_tenant_configurations' -require 'cybersource_rest_client/models/boardingv1registrations_integration_information_tenant_information' -require 'cybersource_rest_client/models/boardingv1registrations_organization_information' -require 'cybersource_rest_client/models/boardingv1registrations_organization_information_business_information' -require 'cybersource_rest_client/models/boardingv1registrations_organization_information_business_information_address' -require 'cybersource_rest_client/models/boardingv1registrations_organization_information_business_information_business_contact' -require 'cybersource_rest_client/models/boardingv1registrations_organization_information_kyc' -require 'cybersource_rest_client/models/boardingv1registrations_organization_information_kyc_deposit_bank_account' -require 'cybersource_rest_client/models/boardingv1registrations_organization_information_owners' -require 'cybersource_rest_client/models/boardingv1registrations_product_information' -require 'cybersource_rest_client/models/boardingv1registrations_product_information_selected_products' -require 'cybersource_rest_client/models/boardingv1registrations_registration_information' -require 'cybersource_rest_client/models/body' -require 'cybersource_rest_client/models/cancel_subscription_response' -require 'cybersource_rest_client/models/cancel_subscription_response_subscription_information' -require 'cybersource_rest_client/models/capture_payment_request' -require 'cybersource_rest_client/models/card_processing_config' -require 'cybersource_rest_client/models/card_processing_config_common' -require 'cybersource_rest_client/models/card_processing_config_common_acquirer' -require 'cybersource_rest_client/models/card_processing_config_common_acquirers' -require 'cybersource_rest_client/models/card_processing_config_common_currencies' -require 'cybersource_rest_client/models/card_processing_config_common_currencies_1' -require 'cybersource_rest_client/models/card_processing_config_common_merchant_descriptor_information' -require 'cybersource_rest_client/models/card_processing_config_common_payment_types' -require 'cybersource_rest_client/models/card_processing_config_common_processors' -require 'cybersource_rest_client/models/card_processing_config_features' -require 'cybersource_rest_client/models/card_processing_config_features_card_not_present' -require 'cybersource_rest_client/models/card_processing_config_features_card_not_present_installment' -require 'cybersource_rest_client/models/card_processing_config_features_card_not_present_payouts' -require 'cybersource_rest_client/models/card_processing_config_features_card_not_present_payouts_currencies' -require 'cybersource_rest_client/models/card_processing_config_features_card_not_present_processors' -require 'cybersource_rest_client/models/card_processing_config_features_card_present' -require 'cybersource_rest_client/models/card_processing_config_features_card_present_processors' -require 'cybersource_rest_client/models/case_management_actions_request' -require 'cybersource_rest_client/models/case_management_comments_request' -require 'cybersource_rest_client/models/check_payer_auth_enrollment_request' -require 'cybersource_rest_client/models/commerce_solutions_products' -require 'cybersource_rest_client/models/commerce_solutions_products_account_updater' -require 'cybersource_rest_client/models/commerce_solutions_products_account_updater_configuration_information' -require 'cybersource_rest_client/models/commerce_solutions_products_account_updater_configuration_information_configurations' -require 'cybersource_rest_client/models/commerce_solutions_products_account_updater_configuration_information_configurations_amex' -require 'cybersource_rest_client/models/commerce_solutions_products_account_updater_configuration_information_configurations_master_card' -require 'cybersource_rest_client/models/commerce_solutions_products_account_updater_configuration_information_configurations_visa' -require 'cybersource_rest_client/models/commerce_solutions_products_bin_lookup' -require 'cybersource_rest_client/models/commerce_solutions_products_bin_lookup_configuration_information' -require 'cybersource_rest_client/models/commerce_solutions_products_bin_lookup_configuration_information_configurations' -require 'cybersource_rest_client/models/commerce_solutions_products_token_management' -require 'cybersource_rest_client/models/commerce_solutions_products_token_management_configuration_information' -require 'cybersource_rest_client/models/commerce_solutions_products_token_management_configuration_information_configurations' -require 'cybersource_rest_client/models/commerce_solutions_products_token_management_configuration_information_configurations_vault' -require 'cybersource_rest_client/models/create_adhoc_report_request' -require 'cybersource_rest_client/models/create_billing_agreement' -require 'cybersource_rest_client/models/create_bin_lookup_request' -require 'cybersource_rest_client/models/create_bundled_decision_manager_case_request' -require 'cybersource_rest_client/models/create_credit_request' -require 'cybersource_rest_client/models/create_invoice_request' -require 'cybersource_rest_client/models/create_order_request' -require 'cybersource_rest_client/models/create_payment_link_request' -require 'cybersource_rest_client/models/create_payment_request' -require 'cybersource_rest_client/models/create_plan_request' -require 'cybersource_rest_client/models/create_plan_response' -require 'cybersource_rest_client/models/create_plan_response_plan_information' -require 'cybersource_rest_client/models/create_report_subscription_request' -require 'cybersource_rest_client/models/create_search_request' -require 'cybersource_rest_client/models/create_session_req' -require 'cybersource_rest_client/models/create_session_request' -require 'cybersource_rest_client/models/create_subscription_request' -require 'cybersource_rest_client/models/create_subscription_request_1' -require 'cybersource_rest_client/models/create_subscription_response' -require 'cybersource_rest_client/models/create_subscription_response__links' -require 'cybersource_rest_client/models/create_subscription_response_subscription_information' -require 'cybersource_rest_client/models/create_webhook' -require 'cybersource_rest_client/models/de_association_request_body' -require 'cybersource_rest_client/models/delete_plan_response' -require 'cybersource_rest_client/models/device_de_associate_v3_request' -require 'cybersource_rest_client/models/dm_config' -require 'cybersource_rest_client/models/dm_config_organization' -require 'cybersource_rest_client/models/dm_config_portfolio_controls' -require 'cybersource_rest_client/models/dm_config_processing_options' -require 'cybersource_rest_client/models/dm_config_thirdparty' -require 'cybersource_rest_client/models/dm_config_thirdparty_provider' -require 'cybersource_rest_client/models/dm_config_thirdparty_provider_accurint' -require 'cybersource_rest_client/models/dm_config_thirdparty_provider_accurint_credentials' -require 'cybersource_rest_client/models/dm_config_thirdparty_provider_credilink' -require 'cybersource_rest_client/models/dm_config_thirdparty_provider_credilink_credentials' -require 'cybersource_rest_client/models/dm_config_thirdparty_provider_ekata' -require 'cybersource_rest_client/models/dm_config_thirdparty_provider_ekata_credentials' -require 'cybersource_rest_client/models/dm_config_thirdparty_provider_emailage' -require 'cybersource_rest_client/models/dm_config_thirdparty_provider_perseuss' -require 'cybersource_rest_client/models/dm_config_thirdparty_provider_signifyd' -require 'cybersource_rest_client/models/dm_config_thirdparty_provider_signifyd_credentials' -require 'cybersource_rest_client/models/dm_config_thirdparty_provider_targus' -require 'cybersource_rest_client/models/dm_config_thirdparty_provider_targus_credentials' -require 'cybersource_rest_client/models/dmsv3devicesdeassociate_devices' -require 'cybersource_rest_client/models/e_check_config' -require 'cybersource_rest_client/models/e_check_config_common' -require 'cybersource_rest_client/models/e_check_config_common_internal_only' -require 'cybersource_rest_client/models/e_check_config_common_internal_only_processors' -require 'cybersource_rest_client/models/e_check_config_common_processors' -require 'cybersource_rest_client/models/e_check_config_features' -require 'cybersource_rest_client/models/e_check_config_features_account_validation_service' -require 'cybersource_rest_client/models/e_check_config_features_account_validation_service_internal_only' -require 'cybersource_rest_client/models/e_check_config_features_account_validation_service_internal_only_processors' -require 'cybersource_rest_client/models/e_check_config_features_account_validation_service_processors' -require 'cybersource_rest_client/models/e_check_config_underwriting' -require 'cybersource_rest_client/models/flexv2sessions_fields' -require 'cybersource_rest_client/models/flexv2sessions_fields_order_information' -require 'cybersource_rest_client/models/flexv2sessions_fields_order_information_amount_details' -require 'cybersource_rest_client/models/flexv2sessions_fields_order_information_amount_details_total_amount' -require 'cybersource_rest_client/models/flexv2sessions_fields_order_information_bill_to' -require 'cybersource_rest_client/models/flexv2sessions_fields_order_information_ship_to' -require 'cybersource_rest_client/models/flexv2sessions_fields_payment_information' -require 'cybersource_rest_client/models/flexv2sessions_fields_payment_information_card' -require 'cybersource_rest_client/models/fraud_marking_action_request' -require 'cybersource_rest_client/models/generate_capture_context_request' -require 'cybersource_rest_client/models/generate_flex_api_capture_context_request' -require 'cybersource_rest_client/models/generate_unified_checkout_capture_context_request' -require 'cybersource_rest_client/models/get_all_plans_response' -require 'cybersource_rest_client/models/get_all_plans_response__links' -require 'cybersource_rest_client/models/get_all_plans_response_order_information' -require 'cybersource_rest_client/models/get_all_plans_response_order_information_amount_details' -require 'cybersource_rest_client/models/get_all_plans_response_plan_information' -require 'cybersource_rest_client/models/get_all_plans_response_plan_information_billing_cycles' -require 'cybersource_rest_client/models/get_all_plans_response_plan_information_billing_period' -require 'cybersource_rest_client/models/get_all_plans_response_plans' -require 'cybersource_rest_client/models/get_all_subscriptions_response' -require 'cybersource_rest_client/models/get_all_subscriptions_response_client_reference_information' -require 'cybersource_rest_client/models/get_all_subscriptions_response__links' -require 'cybersource_rest_client/models/get_all_subscriptions_response_order_information' -require 'cybersource_rest_client/models/get_all_subscriptions_response_order_information_bill_to' -require 'cybersource_rest_client/models/get_all_subscriptions_response_payment_information' -require 'cybersource_rest_client/models/get_all_subscriptions_response_payment_information_customer' -require 'cybersource_rest_client/models/get_all_subscriptions_response_plan_information' -require 'cybersource_rest_client/models/get_all_subscriptions_response_plan_information_billing_cycles' -require 'cybersource_rest_client/models/get_all_subscriptions_response_subscription_information' -require 'cybersource_rest_client/models/get_all_subscriptions_response_subscriptions' -require 'cybersource_rest_client/models/get_plan_code_response' -require 'cybersource_rest_client/models/get_plan_response' -require 'cybersource_rest_client/models/get_subscription_code_response' -require 'cybersource_rest_client/models/get_subscription_response' -require 'cybersource_rest_client/models/get_subscription_response_1' -require 'cybersource_rest_client/models/get_subscription_response_1_buyer_information' -require 'cybersource_rest_client/models/get_subscription_response_1__links' -require 'cybersource_rest_client/models/get_subscription_response_1_payment_instrument' -require 'cybersource_rest_client/models/get_subscription_response_1_payment_instrument_bank_account' -require 'cybersource_rest_client/models/get_subscription_response_1_payment_instrument_buyer_information' -require 'cybersource_rest_client/models/get_subscription_response_1_payment_instrument_card' -require 'cybersource_rest_client/models/get_subscription_response_1_shipping_address' -require 'cybersource_rest_client/models/get_subscription_response_reactivation_information' -require 'cybersource_rest_client/models/increment_auth_request' -require 'cybersource_rest_client/models/inline_response_200' -require 'cybersource_rest_client/models/inline_response_200_1' -require 'cybersource_rest_client/models/inline_response_200_10' -require 'cybersource_rest_client/models/inline_response_200_10_devices' -require 'cybersource_rest_client/models/inline_response_200_10_payment_processor_to_terminal_map' -require 'cybersource_rest_client/models/inline_response_200_11' -require 'cybersource_rest_client/models/inline_response_200_11__embedded' -require 'cybersource_rest_client/models/inline_response_200_11__embedded_batches' -require 'cybersource_rest_client/models/inline_response_200_11__embedded__links' -require 'cybersource_rest_client/models/inline_response_200_11__embedded__links_reports' -require 'cybersource_rest_client/models/inline_response_200_11__embedded_totals' -require 'cybersource_rest_client/models/inline_response_200_11__links' -require 'cybersource_rest_client/models/inline_response_200_12' -require 'cybersource_rest_client/models/inline_response_200_12_billing' -require 'cybersource_rest_client/models/inline_response_200_12__links' -require 'cybersource_rest_client/models/inline_response_200_12__links_report' -require 'cybersource_rest_client/models/inline_response_200_13' -require 'cybersource_rest_client/models/inline_response_200_13_records' -require 'cybersource_rest_client/models/inline_response_200_13_response_record' -require 'cybersource_rest_client/models/inline_response_200_13_response_record_additional_updates' -require 'cybersource_rest_client/models/inline_response_200_13_source_record' -require 'cybersource_rest_client/models/inline_response_200_14' -require 'cybersource_rest_client/models/inline_response_200_15' -require 'cybersource_rest_client/models/inline_response_200_15_client_reference_information' -require 'cybersource_rest_client/models/inline_response_200_1_content' -require 'cybersource_rest_client/models/inline_response_200_2' -require 'cybersource_rest_client/models/inline_response_200_2__embedded' -require 'cybersource_rest_client/models/inline_response_200_2__embedded_capture' -require 'cybersource_rest_client/models/inline_response_200_2__embedded_capture__links' -require 'cybersource_rest_client/models/inline_response_200_2__embedded_capture__links_self' -require 'cybersource_rest_client/models/inline_response_200_2__embedded_reversal' -require 'cybersource_rest_client/models/inline_response_200_2__embedded_reversal__links' -require 'cybersource_rest_client/models/inline_response_200_2__embedded_reversal__links_self' -require 'cybersource_rest_client/models/inline_response_200_3' -require 'cybersource_rest_client/models/inline_response_200_4' -require 'cybersource_rest_client/models/inline_response_200_4_integration_information' -require 'cybersource_rest_client/models/inline_response_200_4_integration_information_tenant_configurations' -require 'cybersource_rest_client/models/inline_response_200_5' -require 'cybersource_rest_client/models/inline_response_200_6' -require 'cybersource_rest_client/models/inline_response_200_7' -require 'cybersource_rest_client/models/inline_response_200_8' -require 'cybersource_rest_client/models/inline_response_200_8_devices' -require 'cybersource_rest_client/models/inline_response_200_9' -require 'cybersource_rest_client/models/inline_response_200_details' -require 'cybersource_rest_client/models/inline_response_200_errors' -require 'cybersource_rest_client/models/inline_response_200_responses' -require 'cybersource_rest_client/models/inline_response_201' -require 'cybersource_rest_client/models/inline_response_201_1' -require 'cybersource_rest_client/models/inline_response_201_2' -require 'cybersource_rest_client/models/inline_response_201_2_payout_information' -require 'cybersource_rest_client/models/inline_response_201_2_payout_information_pull_funds' -require 'cybersource_rest_client/models/inline_response_201_2_payout_information_push_funds' -require 'cybersource_rest_client/models/inline_response_201_3' -require 'cybersource_rest_client/models/inline_response_201_3_integration_information' -require 'cybersource_rest_client/models/inline_response_201_3_integration_information_tenant_configurations' -require 'cybersource_rest_client/models/inline_response_201_3_organization_information' -require 'cybersource_rest_client/models/inline_response_201_3_product_information_setups' -require 'cybersource_rest_client/models/inline_response_201_3_registration_information' -require 'cybersource_rest_client/models/inline_response_201_3_setups' -require 'cybersource_rest_client/models/inline_response_201_3_setups_commerce_solutions' -require 'cybersource_rest_client/models/inline_response_201_3_setups_payments' -require 'cybersource_rest_client/models/inline_response_201_3_setups_payments_alternative_payment_methods' -require 'cybersource_rest_client/models/inline_response_201_3_setups_payments_alternative_payment_methods_configuration_status' -require 'cybersource_rest_client/models/inline_response_201_3_setups_payments_card_processing' -require 'cybersource_rest_client/models/inline_response_201_3_setups_payments_card_processing_configuration_status' -require 'cybersource_rest_client/models/inline_response_201_3_setups_payments_card_processing_subscription_status' -require 'cybersource_rest_client/models/inline_response_201_3_setups_payments_digital_payments' -require 'cybersource_rest_client/models/inline_response_201_3_setups_risk' -require 'cybersource_rest_client/models/inline_response_201_3_setups_value_added_services' -require 'cybersource_rest_client/models/inline_response_201_4' -require 'cybersource_rest_client/models/inline_response_201_4_key_information' -require 'cybersource_rest_client/models/inline_response_201_4_key_information_error_information' -require 'cybersource_rest_client/models/inline_response_201_4_key_information_error_information_details' -require 'cybersource_rest_client/models/inline_response_201_5' -require 'cybersource_rest_client/models/inline_response_201_6' -require 'cybersource_rest_client/models/inline_response_201_6_payloads' -require 'cybersource_rest_client/models/inline_response_201_6_payloads_test_payload' -require 'cybersource_rest_client/models/inline_response_201_7' -require 'cybersource_rest_client/models/inline_response_201_8' -require 'cybersource_rest_client/models/inline_response_201_8_client_reference_information' -require 'cybersource_rest_client/models/inline_response_201_8_error_information' -require 'cybersource_rest_client/models/inline_response_201_8_order_information' -require 'cybersource_rest_client/models/inline_response_201_8_order_information_currency_conversion' -require 'cybersource_rest_client/models/inline_response_201_8_order_information_currency_conversion_offer' -require 'cybersource_rest_client/models/inline_response_201_8_processor_information' -require 'cybersource_rest_client/models/inline_response_201_order_information' -require 'cybersource_rest_client/models/inline_response_201_order_information_ship_to' -require 'cybersource_rest_client/models/inline_response_201_payment_information' -require 'cybersource_rest_client/models/inline_response_201_payment_information_e_wallet' -require 'cybersource_rest_client/models/inline_response_201_payment_information_tokenized_payment_method' -require 'cybersource_rest_client/models/inline_response_202' -require 'cybersource_rest_client/models/inline_response_202__links' -require 'cybersource_rest_client/models/inline_response_202__links_status' -require 'cybersource_rest_client/models/inline_response_206' -require 'cybersource_rest_client/models/inline_response_400' -require 'cybersource_rest_client/models/inline_response_400_1' -require 'cybersource_rest_client/models/inline_response_400_10' -require 'cybersource_rest_client/models/inline_response_400_1_details' -require 'cybersource_rest_client/models/inline_response_400_2' -require 'cybersource_rest_client/models/inline_response_400_3' -require 'cybersource_rest_client/models/inline_response_400_4' -require 'cybersource_rest_client/models/inline_response_400_5' -require 'cybersource_rest_client/models/inline_response_400_6' -require 'cybersource_rest_client/models/inline_response_400_6_fields' -require 'cybersource_rest_client/models/inline_response_400_7' -require 'cybersource_rest_client/models/inline_response_400_7_details' -require 'cybersource_rest_client/models/inline_response_400_8' -require 'cybersource_rest_client/models/inline_response_400_8_details' -require 'cybersource_rest_client/models/inline_response_400_9' -require 'cybersource_rest_client/models/inline_response_400_9_details' -require 'cybersource_rest_client/models/inline_response_400_details' -require 'cybersource_rest_client/models/inline_response_400_errors' -require 'cybersource_rest_client/models/inline_response_401' -require 'cybersource_rest_client/models/inline_response_401_1' -require 'cybersource_rest_client/models/inline_response_401_1_fields' -require 'cybersource_rest_client/models/inline_response_401_1__links' -require 'cybersource_rest_client/models/inline_response_401_1__links_self' -require 'cybersource_rest_client/models/inline_response_403' -require 'cybersource_rest_client/models/inline_response_403_1' -require 'cybersource_rest_client/models/inline_response_403_2' -require 'cybersource_rest_client/models/inline_response_403_3' -require 'cybersource_rest_client/models/inline_response_403_errors' -require 'cybersource_rest_client/models/inline_response_404' -require 'cybersource_rest_client/models/inline_response_404_1' -require 'cybersource_rest_client/models/inline_response_404_1_details' -require 'cybersource_rest_client/models/inline_response_404_2' -require 'cybersource_rest_client/models/inline_response_404_3' -require 'cybersource_rest_client/models/inline_response_404_3_details' -require 'cybersource_rest_client/models/inline_response_404_4' -require 'cybersource_rest_client/models/inline_response_404_5' -require 'cybersource_rest_client/models/inline_response_409' -require 'cybersource_rest_client/models/inline_response_409_errors' -require 'cybersource_rest_client/models/inline_response_410' -require 'cybersource_rest_client/models/inline_response_410_errors' -require 'cybersource_rest_client/models/inline_response_412' -require 'cybersource_rest_client/models/inline_response_412_errors' -require 'cybersource_rest_client/models/inline_response_422' -require 'cybersource_rest_client/models/inline_response_422_1' -require 'cybersource_rest_client/models/inline_response_422_2' -require 'cybersource_rest_client/models/inline_response_424' -require 'cybersource_rest_client/models/inline_response_424_errors' -require 'cybersource_rest_client/models/inline_response_500' -require 'cybersource_rest_client/models/inline_response_500_1' -require 'cybersource_rest_client/models/inline_response_500_2' -require 'cybersource_rest_client/models/inline_response_500_3' -require 'cybersource_rest_client/models/inline_response_500_errors' -require 'cybersource_rest_client/models/inline_response_502' -require 'cybersource_rest_client/models/inline_response_502_1' -require 'cybersource_rest_client/models/inline_response_502_2' -require 'cybersource_rest_client/models/inline_response_503' -require 'cybersource_rest_client/models/inline_response_default' -require 'cybersource_rest_client/models/inline_response_default__links' -require 'cybersource_rest_client/models/inline_response_default__links_next' -require 'cybersource_rest_client/models/inline_response_default_response_status' -require 'cybersource_rest_client/models/inline_response_default_response_status_details' -require 'cybersource_rest_client/models/intimate_billing_agreement' -require 'cybersource_rest_client/models/invoice_settings_request' -require 'cybersource_rest_client/models/invoicing_v2_invoice_settings_get200_response' -require 'cybersource_rest_client/models/invoicing_v2_invoice_settings_get200_response_invoice_settings_information' -require 'cybersource_rest_client/models/invoicing_v2_invoice_settings_get200_response_invoice_settings_information_header_style' -require 'cybersource_rest_client/models/invoicing_v2_invoice_settings_get200_response_merchant_information' -require 'cybersource_rest_client/models/invoicing_v2_invoice_settings_get200_response_merchant_information_address_details' -require 'cybersource_rest_client/models/invoicing_v2_invoices_all_get200_response' -require 'cybersource_rest_client/models/invoicing_v2_invoices_all_get200_response_customer_information' -require 'cybersource_rest_client/models/invoicing_v2_invoices_all_get200_response_invoice_information' -require 'cybersource_rest_client/models/invoicing_v2_invoices_all_get200_response_invoices' -require 'cybersource_rest_client/models/invoicing_v2_invoices_all_get200_response__links' -require 'cybersource_rest_client/models/invoicing_v2_invoices_all_get200_response_order_information' -require 'cybersource_rest_client/models/invoicing_v2_invoices_all_get200_response_order_information_amount_details' -require 'cybersource_rest_client/models/invoicing_v2_invoices_all_get400_response' -require 'cybersource_rest_client/models/invoicing_v2_invoices_all_get404_response' -require 'cybersource_rest_client/models/invoicing_v2_invoices_all_get502_response' -require 'cybersource_rest_client/models/invoicing_v2_invoices_cancel200_response' -require 'cybersource_rest_client/models/invoicing_v2_invoices_get200_response' -require 'cybersource_rest_client/models/invoicing_v2_invoices_get200_response_invoice_history' -require 'cybersource_rest_client/models/invoicing_v2_invoices_get200_response_transaction_details' -require 'cybersource_rest_client/models/invoicing_v2_invoices_post201_response' -require 'cybersource_rest_client/models/invoicing_v2_invoices_post201_response_invoice_information' -require 'cybersource_rest_client/models/invoicing_v2_invoices_post201_response_invoice_information_custom_labels' -require 'cybersource_rest_client/models/invoicing_v2_invoices_post201_response_merchant_defined_field_values_with_definition' -require 'cybersource_rest_client/models/invoicing_v2_invoices_post201_response_order_information' -require 'cybersource_rest_client/models/invoicing_v2_invoices_post201_response_order_information_amount_details' -require 'cybersource_rest_client/models/invoicing_v2_invoices_post202_response' -require 'cybersource_rest_client/models/invoicing_v2_invoices_publish200_response' -require 'cybersource_rest_client/models/invoicing_v2_invoices_put200_response' -require 'cybersource_rest_client/models/invoicing_v2_invoices_send200_response' -require 'cybersource_rest_client/models/invoicingv2invoice_settings_invoice_settings_information' -require 'cybersource_rest_client/models/invoicingv2invoices_client_reference_information' -require 'cybersource_rest_client/models/invoicingv2invoices_client_reference_information_partner' -require 'cybersource_rest_client/models/invoicingv2invoices_customer_information' -require 'cybersource_rest_client/models/invoicingv2invoices_customer_information_company' -require 'cybersource_rest_client/models/invoicingv2invoices_invoice_information' -require 'cybersource_rest_client/models/invoicingv2invoices_merchant_defined_field_values' -require 'cybersource_rest_client/models/invoicingv2invoices_order_information' -require 'cybersource_rest_client/models/invoicingv2invoices_order_information_amount_details' -require 'cybersource_rest_client/models/invoicingv2invoices_order_information_amount_details_freight' -require 'cybersource_rest_client/models/invoicingv2invoices_order_information_amount_details_tax_details' -require 'cybersource_rest_client/models/invoicingv2invoices_order_information_line_items' -require 'cybersource_rest_client/models/invoicingv2invoices_processing_information' -require 'cybersource_rest_client/models/invoicingv2invoicesid_invoice_information' -require 'cybersource_rest_client/models/iplv2paymentlinks_order_information' -require 'cybersource_rest_client/models/iplv2paymentlinks_order_information_amount_details' -require 'cybersource_rest_client/models/iplv2paymentlinks_order_information_line_items' -require 'cybersource_rest_client/models/iplv2paymentlinks_processing_information' -require 'cybersource_rest_client/models/iplv2paymentlinks_purchase_information' -require 'cybersource_rest_client/models/iplv2paymentlinksid_order_information' -require 'cybersource_rest_client/models/iplv2paymentlinksid_processing_information' -require 'cybersource_rest_client/models/iplv2paymentlinksid_purchase_information' -require 'cybersource_rest_client/models/kmsegressv2keysasym_client_reference_information' -require 'cybersource_rest_client/models/kmsegressv2keysasym_key_information' -require 'cybersource_rest_client/models/kmsegressv2keyssym_client_reference_information' -require 'cybersource_rest_client/models/kmsegressv2keyssym_key_information' -require 'cybersource_rest_client/models/merchant_defined_field_core' -require 'cybersource_rest_client/models/merchant_defined_field_definition_request' -require 'cybersource_rest_client/models/merchant_initiated_transaction_object' -require 'cybersource_rest_client/models/microformv2sessions_transient_token_response_options' -require 'cybersource_rest_client/models/mit_reversal_request' -require 'cybersource_rest_client/models/mit_void_request' -require 'cybersource_rest_client/models/model_400_upload_batch_file_response' -require 'cybersource_rest_client/models/modify_billing_agreement' -require 'cybersource_rest_client/models/network_token_enrollment' -require 'cybersource_rest_client/models/network_token_services_enablement' -require 'cybersource_rest_client/models/network_token_services_enablement_mastercard_digital_enablement_service' -require 'cybersource_rest_client/models/network_token_services_enablement_visa_token_service' -require 'cybersource_rest_client/models/notificationsubscriptionsv2productsorganization_id_event_types' -require 'cybersource_rest_client/models/notificationsubscriptionsv2webhooks_products' -require 'cybersource_rest_client/models/notificationsubscriptionsv2webhooks_products_1' -require 'cybersource_rest_client/models/notificationsubscriptionsv2webhooks_retry_policy' -require 'cybersource_rest_client/models/notificationsubscriptionsv2webhooks_security_policy' -require 'cybersource_rest_client/models/notificationsubscriptionsv2webhooks_security_policy_config' -require 'cybersource_rest_client/models/notificationsubscriptionsv2webhooks_security_policy_config_additional_config' -require 'cybersource_rest_client/models/oct_create_payment_request' -require 'cybersource_rest_client/models/offer_request' -require 'cybersource_rest_client/models/order_payment_request' -require 'cybersource_rest_client/models/patch_customer_payment_instrument_request' -require 'cybersource_rest_client/models/patch_customer_request' -require 'cybersource_rest_client/models/patch_customer_shipping_address_request' -require 'cybersource_rest_client/models/patch_instrument_identifier_request' -require 'cybersource_rest_client/models/patch_payment_instrument_request' -require 'cybersource_rest_client/models/payer_auth_config' -require 'cybersource_rest_client/models/payer_auth_config_card_types' -require 'cybersource_rest_client/models/payer_auth_config_card_types_cb' -require 'cybersource_rest_client/models/payer_auth_config_card_types_j_cbj_secure' -require 'cybersource_rest_client/models/payer_auth_config_card_types_verified_by_visa' -require 'cybersource_rest_client/models/payer_auth_config_card_types_verified_by_visa_currencies' -require 'cybersource_rest_client/models/payer_auth_setup_request' -require 'cybersource_rest_client/models/payment_instrument_list' -require 'cybersource_rest_client/models/payment_instrument_list_1' -require 'cybersource_rest_client/models/payment_instrument_list_1__embedded' -require 'cybersource_rest_client/models/payment_instrument_list_1__embedded__embedded' -require 'cybersource_rest_client/models/payment_instrument_list_1__embedded_payment_instruments' -require 'cybersource_rest_client/models/payment_instrument_list__embedded' -require 'cybersource_rest_client/models/payment_instrument_list__links' -require 'cybersource_rest_client/models/payment_instrument_list__links_first' -require 'cybersource_rest_client/models/payment_instrument_list__links_last' -require 'cybersource_rest_client/models/payment_instrument_list__links_next' -require 'cybersource_rest_client/models/payment_instrument_list__links_prev' -require 'cybersource_rest_client/models/payment_instrument_list__links_self' -require 'cybersource_rest_client/models/payments_products' -require 'cybersource_rest_client/models/payments_products_alternative_payment_methods' -require 'cybersource_rest_client/models/payments_products_alternative_payment_methods_configuration_information' -require 'cybersource_rest_client/models/payments_products_alternative_payment_methods_configuration_information_configurations' -require 'cybersource_rest_client/models/payments_products_alternative_payment_methods_additional_configurations' -require 'cybersource_rest_client/models/payments_products_alternative_payment_methods_configuration_payment_methods' -require 'cybersource_rest_client/models/payments_products_alternative_payment_methods_configuration_information_configurations_processors' -require 'cybersource_rest_client/models/payments_products_alternative_payment_methods_subscription_information' -require 'cybersource_rest_client/models/payments_products_card_present_connect' -require 'cybersource_rest_client/models/payments_products_card_present_connect_configuration_information' -require 'cybersource_rest_client/models/payments_products_card_present_connect_configuration_information_configurations' -require 'cybersource_rest_client/models/payments_products_card_present_connect_subscription_information' -require 'cybersource_rest_client/models/payments_products_card_processing' -require 'cybersource_rest_client/models/payments_products_card_processing_configuration_information' -require 'cybersource_rest_client/models/payments_products_card_processing_subscription_information' -require 'cybersource_rest_client/models/payments_products_card_processing_subscription_information_features' -require 'cybersource_rest_client/models/payments_products_currency_conversion' -require 'cybersource_rest_client/models/payments_products_currency_conversion_configuration_information' -require 'cybersource_rest_client/models/payments_products_currency_conversion_configuration_information_configurations' -require 'cybersource_rest_client/models/payments_products_currency_conversion_configuration_information_configurations_processors' -require 'cybersource_rest_client/models/payments_products_cybs_ready_terminal' -require 'cybersource_rest_client/models/payments_products_differential_fee' -require 'cybersource_rest_client/models/payments_products_differential_fee_subscription_information' -require 'cybersource_rest_client/models/payments_products_differential_fee_subscription_information_features' -require 'cybersource_rest_client/models/payments_products_digital_payments' -require 'cybersource_rest_client/models/payments_products_digital_payments_subscription_information' -require 'cybersource_rest_client/models/payments_products_digital_payments_subscription_information_features' -require 'cybersource_rest_client/models/payments_products_e_check' -require 'cybersource_rest_client/models/payments_products_e_check_configuration_information' -require 'cybersource_rest_client/models/payments_products_e_check_subscription_information' -require 'cybersource_rest_client/models/payments_products_payer_authentication' -require 'cybersource_rest_client/models/payments_products_payer_authentication_configuration_information' -require 'cybersource_rest_client/models/payments_products_payer_authentication_subscription_information' -require 'cybersource_rest_client/models/payments_products_payouts' -require 'cybersource_rest_client/models/payments_products_payouts_configuration_information' -require 'cybersource_rest_client/models/payments_products_payouts_configuration_information_configurations' -require 'cybersource_rest_client/models/payments_products_payouts_configuration_information_configurations_common' -require 'cybersource_rest_client/models/payments_products_payouts_configuration_information_configurations_common_aggregator' -require 'cybersource_rest_client/models/payments_products_secure_acceptance' -require 'cybersource_rest_client/models/payments_products_secure_acceptance_configuration_information' -require 'cybersource_rest_client/models/payments_products_service_fee' -require 'cybersource_rest_client/models/payments_products_service_fee_configuration_information' -require 'cybersource_rest_client/models/payments_products_service_fee_configuration_information_configurations' -require 'cybersource_rest_client/models/payments_products_service_fee_configuration_information_configurations_merchant_information' -require 'cybersource_rest_client/models/payments_products_service_fee_configuration_information_configurations_payment_information' -require 'cybersource_rest_client/models/payments_products_service_fee_configuration_information_configurations_products' -require 'cybersource_rest_client/models/payments_products_tax' -require 'cybersource_rest_client/models/payments_products_unified_checkout' -require 'cybersource_rest_client/models/payments_products_unified_checkout_configuration_information' -require 'cybersource_rest_client/models/payments_products_unified_checkout_configuration_information_configurations' -require 'cybersource_rest_client/models/payments_products_unified_checkout_configuration_information_configurations_features' -require 'cybersource_rest_client/models/payments_products_unified_checkout_configuration_information_configurations_features_paze' -require 'cybersource_rest_client/models/payments_products_unified_checkout_subscription_information' -require 'cybersource_rest_client/models/payments_products_unified_checkout_subscription_information_features' -require 'cybersource_rest_client/models/payments_products_unified_checkout_subscription_information_features_paze_for_unified_checkout' -require 'cybersource_rest_client/models/payments_products_virtual_terminal' -require 'cybersource_rest_client/models/payments_products_virtual_terminal_configuration_information' -require 'cybersource_rest_client/models/payments_strong_auth_issuer_information' -require 'cybersource_rest_client/models/pbl_payment_links_all_get200_response' -require 'cybersource_rest_client/models/pbl_payment_links_all_get200_response_links' -require 'cybersource_rest_client/models/pbl_payment_links_all_get200_response_order_information' -require 'cybersource_rest_client/models/pbl_payment_links_all_get200_response_order_information_amount_details' -require 'cybersource_rest_client/models/pbl_payment_links_all_get200_response_order_information_line_items' -require 'cybersource_rest_client/models/pbl_payment_links_all_get200_response_processing_information' -require 'cybersource_rest_client/models/pbl_payment_links_all_get200_response_purchase_information' -require 'cybersource_rest_client/models/pbl_payment_links_all_get400_response' -require 'cybersource_rest_client/models/pbl_payment_links_all_get404_response' -require 'cybersource_rest_client/models/pbl_payment_links_get200_response' -require 'cybersource_rest_client/models/pbl_payment_links_post201_response' -require 'cybersource_rest_client/models/pbl_payment_links_post201_response__links' -require 'cybersource_rest_client/models/pbl_payment_links_post201_response_order_information' -require 'cybersource_rest_client/models/pbl_payment_links_post201_response_purchase_information' -require 'cybersource_rest_client/models/post_customer_payment_instrument_request' -require 'cybersource_rest_client/models/post_customer_request' -require 'cybersource_rest_client/models/post_customer_shipping_address_request' -require 'cybersource_rest_client/models/post_device_search_request' -require 'cybersource_rest_client/models/post_device_search_request_v3' -require 'cybersource_rest_client/models/post_instrument_identifier_enrollment_request' -require 'cybersource_rest_client/models/post_instrument_identifier_request' -require 'cybersource_rest_client/models/post_issuer_life_cycle_simulation_request' -require 'cybersource_rest_client/models/post_payment_credentials_request' -require 'cybersource_rest_client/models/post_payment_instrument_request' -require 'cybersource_rest_client/models/post_registration_body' -require 'cybersource_rest_client/models/post_tokenize_request' -require 'cybersource_rest_client/models/predefined_subscription_request_bean' -require 'cybersource_rest_client/models/pts_v1_transaction_batches_get200_response' -require 'cybersource_rest_client/models/pts_v1_transaction_batches_get200_response__links' -require 'cybersource_rest_client/models/pts_v1_transaction_batches_get200_response__links_self' -require 'cybersource_rest_client/models/pts_v1_transaction_batches_get200_response_transaction_batches' -require 'cybersource_rest_client/models/pts_v1_transaction_batches_get400_response' -require 'cybersource_rest_client/models/pts_v1_transaction_batches_get400_response_error_information' -require 'cybersource_rest_client/models/pts_v1_transaction_batches_get400_response_error_information_details' -require 'cybersource_rest_client/models/pts_v1_transaction_batches_get500_response' -require 'cybersource_rest_client/models/pts_v1_transaction_batches_get500_response_error_information' -require 'cybersource_rest_client/models/pts_v1_transaction_batches_id_get200_response' -require 'cybersource_rest_client/models/pts_v1_transaction_batches_id_get200_response__links' -require 'cybersource_rest_client/models/pts_v1_transaction_batches_id_get200_response__links_transactions' -require 'cybersource_rest_client/models/pts_v2_create_billing_agreement_post201_response' -require 'cybersource_rest_client/models/pts_v2_create_billing_agreement_post201_response_agreement_information' -require 'cybersource_rest_client/models/pts_v2_create_billing_agreement_post201_response_client_reference_information' -require 'cybersource_rest_client/models/pts_v2_create_billing_agreement_post201_response_installment_information' -require 'cybersource_rest_client/models/pts_v2_create_billing_agreement_post201_response__links' -require 'cybersource_rest_client/models/pts_v2_create_billing_agreement_post201_response_processor_information' -require 'cybersource_rest_client/models/pts_v2_create_billing_agreement_post201_response_risk_information' -require 'cybersource_rest_client/models/pts_v2_create_billing_agreement_post201_response_risk_information_processor_results' -require 'cybersource_rest_client/models/pts_v2_create_billing_agreement_post400_response' -require 'cybersource_rest_client/models/pts_v2_create_billing_agreement_post502_response' -require 'cybersource_rest_client/models/pts_v2_create_order_post201_response' -require 'cybersource_rest_client/models/pts_v2_create_order_post201_response_buyer_information' -require 'cybersource_rest_client/models/pts_v2_create_order_post201_response_processor_information' -require 'cybersource_rest_client/models/pts_v2_create_order_post400_response' -require 'cybersource_rest_client/models/pts_v2_credits_post201_response' -require 'cybersource_rest_client/models/pts_v2_credits_post201_response_1' -require 'cybersource_rest_client/models/pts_v2_credits_post201_response_1_processor_information' -require 'cybersource_rest_client/models/pts_v2_credits_post201_response_credit_amount_details' -require 'cybersource_rest_client/models/pts_v2_credits_post201_response_payment_information' -require 'cybersource_rest_client/models/pts_v2_credits_post201_response_processing_information' -require 'cybersource_rest_client/models/pts_v2_credits_post201_response_processing_information_bank_transfer_options' -require 'cybersource_rest_client/models/pts_v2_incremental_authorization_patch201_response' -require 'cybersource_rest_client/models/pts_v2_incremental_authorization_patch201_response_client_reference_information' -require 'cybersource_rest_client/models/pts_v2_incremental_authorization_patch201_response_error_information' -require 'cybersource_rest_client/models/pts_v2_incremental_authorization_patch201_response__links' -require 'cybersource_rest_client/models/pts_v2_incremental_authorization_patch201_response_order_information' -require 'cybersource_rest_client/models/pts_v2_incremental_authorization_patch201_response_order_information_invoice_details' -require 'cybersource_rest_client/models/pts_v2_incremental_authorization_patch201_response_payment_information' -require 'cybersource_rest_client/models/pts_v2_incremental_authorization_patch201_response_payment_information_account_features' -require 'cybersource_rest_client/models/pts_v2_incremental_authorization_patch201_response_processor_information' -require 'cybersource_rest_client/models/pts_v2_incremental_authorization_patch400_response' -require 'cybersource_rest_client/models/pts_v2_modify_billing_agreement_post201_response' -require 'cybersource_rest_client/models/pts_v2_modify_billing_agreement_post201_response_agreement_information' -require 'cybersource_rest_client/models/pts_v2_modify_billing_agreement_post201_response__links' -require 'cybersource_rest_client/models/pts_v2_modify_billing_agreement_post201_response_order_information' -require 'cybersource_rest_client/models/pts_v2_modify_billing_agreement_post201_response_order_information_bill_to' -require 'cybersource_rest_client/models/pts_v2_modify_billing_agreement_post201_response_order_information_ship_to' -require 'cybersource_rest_client/models/pts_v2_modify_billing_agreement_post201_response_payment_information' -require 'cybersource_rest_client/models/pts_v2_modify_billing_agreement_post201_response_payment_information_bank' -require 'cybersource_rest_client/models/pts_v2_modify_billing_agreement_post201_response_payment_information_e_wallet' -require 'cybersource_rest_client/models/pts_v2_payments_captures_post201_response' -require 'cybersource_rest_client/models/pts_v2_payments_captures_post201_response_embedded_actions' -require 'cybersource_rest_client/models/pts_v2_payments_captures_post201_response_embedded_actions_ap_capture' -require 'cybersource_rest_client/models/pts_v2_payments_captures_post201_response__links' -require 'cybersource_rest_client/models/pts_v2_payments_captures_post201_response_order_information' -require 'cybersource_rest_client/models/pts_v2_payments_captures_post201_response_order_information_amount_details' -require 'cybersource_rest_client/models/pts_v2_payments_captures_post201_response_order_information_invoice_details' -require 'cybersource_rest_client/models/pts_v2_payments_captures_post201_response_point_of_sale_information' -require 'cybersource_rest_client/models/pts_v2_payments_captures_post201_response_processing_information' -require 'cybersource_rest_client/models/pts_v2_payments_captures_post201_response_processor_information' -require 'cybersource_rest_client/models/pts_v2_payments_captures_post400_response' -require 'cybersource_rest_client/models/pts_v2_payments_order_post201_response' -require 'cybersource_rest_client/models/pts_v2_payments_order_post201_response_buyer_information' -require 'cybersource_rest_client/models/pts_v2_payments_order_post201_response_buyer_information_personal_identification' -require 'cybersource_rest_client/models/pts_v2_payments_order_post201_response_order_information' -require 'cybersource_rest_client/models/pts_v2_payments_order_post201_response_order_information_amount_details' -require 'cybersource_rest_client/models/pts_v2_payments_order_post201_response_order_information_bill_to' -require 'cybersource_rest_client/models/pts_v2_payments_order_post201_response_order_information_ship_to' -require 'cybersource_rest_client/models/pts_v2_payments_order_post201_response_order_information_shipping_details' -require 'cybersource_rest_client/models/pts_v2_payments_order_post201_response_payment_information' -require 'cybersource_rest_client/models/pts_v2_payments_order_post201_response_payment_information_e_wallet' -require 'cybersource_rest_client/models/pts_v2_payments_order_post201_response_processing_information' -require 'cybersource_rest_client/models/pts_v2_payments_order_post201_response_processor_information' -require 'cybersource_rest_client/models/pts_v2_payments_order_post201_response_processor_information_seller_protection' -require 'cybersource_rest_client/models/pts_v2_payments_post201_response' -require 'cybersource_rest_client/models/pts_v2_payments_post201_response_1' -require 'cybersource_rest_client/models/pts_v2_payments_post201_response_1_error_information' -require 'cybersource_rest_client/models/pts_v2_payments_post201_response_1_error_information_details' -require 'cybersource_rest_client/models/pts_v2_payments_post201_response_1_issuer_information' -require 'cybersource_rest_client/models/pts_v2_payments_post201_response_1_order_information' -require 'cybersource_rest_client/models/pts_v2_payments_post201_response_1_order_information_amount_details' -require 'cybersource_rest_client/models/pts_v2_payments_post201_response_1_order_information_bill_to' -require 'cybersource_rest_client/models/pts_v2_payments_post201_response_1_order_information_ship_to' -require 'cybersource_rest_client/models/pts_v2_payments_post201_response_1_payment_information' -require 'cybersource_rest_client/models/pts_v2_payments_post201_response_1_payment_information_bank' -require 'cybersource_rest_client/models/pts_v2_payments_post201_response_1_payment_information_bank_account' -require 'cybersource_rest_client/models/pts_v2_payments_post201_response_1_payment_information_e_wallet' -require 'cybersource_rest_client/models/pts_v2_payments_post201_response_1_payment_information_payment_type' -require 'cybersource_rest_client/models/pts_v2_payments_post201_response_1_payment_information_payment_type_method' -require 'cybersource_rest_client/models/pts_v2_payments_post201_response_1_processor_information' -require 'cybersource_rest_client/models/pts_v2_payments_post201_response_1_processor_information_avs' -require 'cybersource_rest_client/models/pts_v2_payments_post201_response_2' -require 'cybersource_rest_client/models/pts_v2_payments_post201_response_2_order_information' -require 'cybersource_rest_client/models/pts_v2_payments_post201_response_2_order_information_amount_details' -require 'cybersource_rest_client/models/pts_v2_payments_post201_response_2_payment_information' -require 'cybersource_rest_client/models/pts_v2_payments_post201_response_2_payment_information_e_wallet' -require 'cybersource_rest_client/models/pts_v2_payments_post201_response_2_processor_information' -require 'cybersource_rest_client/models/pts_v2_payments_post201_response_buyer_information' -require 'cybersource_rest_client/models/pts_v2_payments_post201_response_client_reference_information' -require 'cybersource_rest_client/models/pts_v2_payments_post201_response_consumer_authentication_information' -require 'cybersource_rest_client/models/pts_v2_payments_post201_response_consumer_authentication_information_ivr' -require 'cybersource_rest_client/models/pts_v2_payments_post201_response_consumer_authentication_information_strong_authentication' -require 'cybersource_rest_client/models/pts_v2_payments_post201_response_embedded_actions' -require 'cybersource_rest_client/models/pts_v2_payments_post201_response_embedded_actions_capture' -require 'cybersource_rest_client/models/pts_v2_payments_post201_response_embedded_actions_consumer_authentication' -require 'cybersource_rest_client/models/pts_v2_payments_post201_response_embedded_actions_decision' -require 'cybersource_rest_client/models/pts_v2_payments_post201_response_embedded_actions_token_create' -require 'cybersource_rest_client/models/pts_v2_payments_post201_response_embedded_actions_token_update' -require 'cybersource_rest_client/models/pts_v2_payments_post201_response_embedded_actions_watchlist_screening' -require 'cybersource_rest_client/models/pts_v2_payments_post201_response_error_information' -require 'cybersource_rest_client/models/pts_v2_payments_post201_response_error_information_details' -require 'cybersource_rest_client/models/pts_v2_payments_post201_response_installment_information' -require 'cybersource_rest_client/models/pts_v2_payments_post201_response_issuer_information' -require 'cybersource_rest_client/models/pts_v2_payments_post201_response__links' -require 'cybersource_rest_client/models/pts_v2_payments_post201_response__links_self' -require 'cybersource_rest_client/models/pts_v2_payments_post201_response_merchant_information' -require 'cybersource_rest_client/models/pts_v2_payments_post201_response_merchant_information_merchant_descriptor' -require 'cybersource_rest_client/models/pts_v2_payments_post201_response_order_information' -require 'cybersource_rest_client/models/pts_v2_payments_post201_response_order_information_amount_details' -require 'cybersource_rest_client/models/pts_v2_payments_post201_response_order_information_bill_to' -require 'cybersource_rest_client/models/pts_v2_payments_post201_response_order_information_invoice_details' -require 'cybersource_rest_client/models/pts_v2_payments_post201_response_order_information_reward_points_details' -require 'cybersource_rest_client/models/pts_v2_payments_post201_response_order_information_ship_to' -require 'cybersource_rest_client/models/pts_v2_payments_post201_response_payment_account_information' -require 'cybersource_rest_client/models/pts_v2_payments_post201_response_payment_account_information_card' -require 'cybersource_rest_client/models/pts_v2_payments_post201_response_payment_information' -require 'cybersource_rest_client/models/pts_v2_payments_post201_response_payment_information_account_features' -require 'cybersource_rest_client/models/pts_v2_payments_post201_response_payment_information_account_features_balances' -require 'cybersource_rest_client/models/pts_v2_payments_post201_response_payment_information_bank' -require 'cybersource_rest_client/models/pts_v2_payments_post201_response_payment_information_bank_account' -require 'cybersource_rest_client/models/pts_v2_payments_post201_response_payment_information_e_wallet' -require 'cybersource_rest_client/models/pts_v2_payments_post201_response_payment_information_instrument_identifier' -require 'cybersource_rest_client/models/pts_v2_payments_post201_response_payment_information_tokenized_card' -require 'cybersource_rest_client/models/pts_v2_payments_post201_response_payment_information_tokenized_payment_method' -require 'cybersource_rest_client/models/pts_v2_payments_post201_response_payment_insights_information' -require 'cybersource_rest_client/models/pts_v2_payments_post201_response_payment_insights_information_orchestration' -require 'cybersource_rest_client/models/pts_v2_payments_post201_response_payment_insights_information_response_insights' -require 'cybersource_rest_client/models/pts_v2_payments_post201_response_point_of_sale_information' -require 'cybersource_rest_client/models/pts_v2_payments_post201_response_point_of_sale_information_emv' -require 'cybersource_rest_client/models/pts_v2_payments_post201_response_processing_information' -require 'cybersource_rest_client/models/pts_v2_payments_post201_response_processing_information_authorization_options' -require 'cybersource_rest_client/models/pts_v2_payments_post201_response_processing_information_bank_transfer_options' -require 'cybersource_rest_client/models/pts_v2_payments_post201_response_processing_information_capture_options' -require 'cybersource_rest_client/models/pts_v2_payments_post201_response_processing_information_purchase_options' -require 'cybersource_rest_client/models/pts_v2_payments_post201_response_processor_information' -require 'cybersource_rest_client/models/pts_v2_payments_post201_response_processor_information_ach_verification' -require 'cybersource_rest_client/models/pts_v2_payments_post201_response_processor_information_avs' -require 'cybersource_rest_client/models/pts_v2_payments_post201_response_processor_information_card_verification' -require 'cybersource_rest_client/models/pts_v2_payments_post201_response_processor_information_consumer_authentication_response' -require 'cybersource_rest_client/models/pts_v2_payments_post201_response_processor_information_customer' -require 'cybersource_rest_client/models/pts_v2_payments_post201_response_processor_information_electronic_verification_results' -require 'cybersource_rest_client/models/pts_v2_payments_post201_response_processor_information_merchant_advice' -require 'cybersource_rest_client/models/pts_v2_payments_post201_response_processor_information_routing' -require 'cybersource_rest_client/models/pts_v2_payments_post201_response_processor_information_seller_protection' -require 'cybersource_rest_client/models/pts_v2_payments_post201_response_risk_information' -require 'cybersource_rest_client/models/pts_v2_payments_post201_response_risk_information_info_codes' -require 'cybersource_rest_client/models/pts_v2_payments_post201_response_risk_information_ip_address' -require 'cybersource_rest_client/models/pts_v2_payments_post201_response_risk_information_processor_results' -require 'cybersource_rest_client/models/pts_v2_payments_post201_response_risk_information_profile' -require 'cybersource_rest_client/models/pts_v2_payments_post201_response_risk_information_rules' -require 'cybersource_rest_client/models/pts_v2_payments_post201_response_risk_information_score' -require 'cybersource_rest_client/models/pts_v2_payments_post201_response_risk_information_travel' -require 'cybersource_rest_client/models/pts_v2_payments_post201_response_risk_information_travel_actual_final_destination' -require 'cybersource_rest_client/models/pts_v2_payments_post201_response_risk_information_travel_first_departure' -require 'cybersource_rest_client/models/pts_v2_payments_post201_response_risk_information_travel_first_destination' -require 'cybersource_rest_client/models/pts_v2_payments_post201_response_risk_information_travel_last_destination' -require 'cybersource_rest_client/models/pts_v2_payments_post201_response_risk_information_velocity' -require 'cybersource_rest_client/models/pts_v2_payments_post201_response_risk_information_velocity_morphing' -require 'cybersource_rest_client/models/pts_v2_payments_post201_response_token_information' -require 'cybersource_rest_client/models/pts_v2_payments_post201_response_token_information_customer' -require 'cybersource_rest_client/models/pts_v2_payments_post201_response_token_information_instrument_identifier' -require 'cybersource_rest_client/models/pts_v2_payments_post201_response_token_information_payment_instrument' -require 'cybersource_rest_client/models/pts_v2_payments_post201_response_token_information_shipping_address' -require 'cybersource_rest_client/models/pts_v2_payments_post201_response_watchlist_screening_information' -require 'cybersource_rest_client/models/pts_v2_payments_post201_response_watchlist_screening_information_watch_list' -require 'cybersource_rest_client/models/pts_v2_payments_post201_response_watchlist_screening_information_watch_list_matches' -require 'cybersource_rest_client/models/pts_v2_payments_post400_response' -require 'cybersource_rest_client/models/pts_v2_payments_post502_response' -require 'cybersource_rest_client/models/pts_v2_payments_refund_post201_response' -require 'cybersource_rest_client/models/pts_v2_payments_refund_post201_response_client_reference_information' -require 'cybersource_rest_client/models/pts_v2_payments_refund_post201_response__links' -require 'cybersource_rest_client/models/pts_v2_payments_refund_post201_response_order_information' -require 'cybersource_rest_client/models/pts_v2_payments_refund_post201_response_order_information_amount_details' -require 'cybersource_rest_client/models/pts_v2_payments_refund_post201_response_processor_information' -require 'cybersource_rest_client/models/pts_v2_payments_refund_post201_response_processor_information_merchant_advice' -require 'cybersource_rest_client/models/pts_v2_payments_refund_post201_response_refund_amount_details' -require 'cybersource_rest_client/models/pts_v2_payments_refund_post400_response' -require 'cybersource_rest_client/models/pts_v2_payments_reversals_post201_response' -require 'cybersource_rest_client/models/pts_v2_payments_reversals_post201_response_authorization_information' -require 'cybersource_rest_client/models/pts_v2_payments_reversals_post201_response_issuer_information' -require 'cybersource_rest_client/models/pts_v2_payments_reversals_post201_response_processor_information' -require 'cybersource_rest_client/models/pts_v2_payments_reversals_post201_response_reversal_amount_details' -require 'cybersource_rest_client/models/pts_v2_payments_reversals_post400_response' -require 'cybersource_rest_client/models/pts_v2_payments_voids_post201_response' -require 'cybersource_rest_client/models/pts_v2_payments_voids_post201_response_processor_information' -require 'cybersource_rest_client/models/pts_v2_payments_voids_post201_response_void_amount_details' -require 'cybersource_rest_client/models/pts_v2_payments_voids_post400_response' -require 'cybersource_rest_client/models/pts_v2_payouts_post201_response' -require 'cybersource_rest_client/models/pts_v2_payouts_post201_response_error_information' -require 'cybersource_rest_client/models/pts_v2_payouts_post201_response_issuer_information' -require 'cybersource_rest_client/models/pts_v2_payouts_post201_response_merchant_information' -require 'cybersource_rest_client/models/pts_v2_payouts_post201_response_merchant_information_merchant_descriptor' -require 'cybersource_rest_client/models/pts_v2_payouts_post201_response_order_information' -require 'cybersource_rest_client/models/pts_v2_payouts_post201_response_order_information_amount_details' -require 'cybersource_rest_client/models/pts_v2_payouts_post201_response_processing_information' -require 'cybersource_rest_client/models/pts_v2_payouts_post201_response_processor_information' -require 'cybersource_rest_client/models/pts_v2_payouts_post201_response_recipient_information' -require 'cybersource_rest_client/models/pts_v2_payouts_post201_response_recipient_information_card' -require 'cybersource_rest_client/models/pts_v2_payouts_post400_response' -require 'cybersource_rest_client/models/pts_v2_retrieve_payment_token_get400_response' -require 'cybersource_rest_client/models/pts_v2_retrieve_payment_token_get502_response' -require 'cybersource_rest_client/models/pts_v2_update_order_patch201_response' -require 'cybersource_rest_client/models/ptsv1pushfundstransfer_client_reference_information' -require 'cybersource_rest_client/models/ptsv1pushfundstransfer_merchant_information' -require 'cybersource_rest_client/models/ptsv1pushfundstransfer_order_information' -require 'cybersource_rest_client/models/ptsv1pushfundstransfer_order_information_amount_details' -require 'cybersource_rest_client/models/ptsv1pushfundstransfer_point_of_service_information' -require 'cybersource_rest_client/models/ptsv1pushfundstransfer_point_of_service_information_emv' -require 'cybersource_rest_client/models/ptsv1pushfundstransfer_processing_information' -require 'cybersource_rest_client/models/ptsv1pushfundstransfer_processing_information_payouts_options' -require 'cybersource_rest_client/models/ptsv1pushfundstransfer_recipient_information' -require 'cybersource_rest_client/models/ptsv1pushfundstransfer_recipient_information_payment_information' -require 'cybersource_rest_client/models/ptsv1pushfundstransfer_recipient_information_payment_information_card' -require 'cybersource_rest_client/models/ptsv1pushfundstransfer_recipient_information_payment_information_card_customer' -require 'cybersource_rest_client/models/ptsv1pushfundstransfer_recipient_information_payment_information_card_instrument_identifier' -require 'cybersource_rest_client/models/ptsv1pushfundstransfer_recipient_information_payment_information_card_payment_instrument' -require 'cybersource_rest_client/models/ptsv1pushfundstransfer_recipient_information_personal_identification' -require 'cybersource_rest_client/models/ptsv1pushfundstransfer_sender_information' -require 'cybersource_rest_client/models/ptsv1pushfundstransfer_sender_information_account' -require 'cybersource_rest_client/models/ptsv1pushfundstransfer_sender_information_payment_information' -require 'cybersource_rest_client/models/ptsv1pushfundstransfer_sender_information_payment_information_card' -require 'cybersource_rest_client/models/ptsv1pushfundstransfer_sender_information_personal_identification' -require 'cybersource_rest_client/models/ptsv2billingagreements_aggregator_information' -require 'cybersource_rest_client/models/ptsv2billingagreements_agreement_information' -require 'cybersource_rest_client/models/ptsv2billingagreements_buyer_information' -require 'cybersource_rest_client/models/ptsv2billingagreements_client_reference_information' -require 'cybersource_rest_client/models/ptsv2billingagreements_consumer_authentication_information' -require 'cybersource_rest_client/models/ptsv2billingagreements_device_information' -require 'cybersource_rest_client/models/ptsv2billingagreements_installment_information' -require 'cybersource_rest_client/models/ptsv2billingagreements_merchant_information' -require 'cybersource_rest_client/models/ptsv2billingagreements_merchant_information_merchant_descriptor' -require 'cybersource_rest_client/models/ptsv2billingagreements_order_information' -require 'cybersource_rest_client/models/ptsv2billingagreements_order_information_bill_to' -require 'cybersource_rest_client/models/ptsv2billingagreements_payment_information' -require 'cybersource_rest_client/models/ptsv2billingagreements_payment_information_bank' -require 'cybersource_rest_client/models/ptsv2billingagreements_payment_information_bank_account' -require 'cybersource_rest_client/models/ptsv2billingagreements_payment_information_card' -require 'cybersource_rest_client/models/ptsv2billingagreements_payment_information_payment_type' -require 'cybersource_rest_client/models/ptsv2billingagreements_payment_information_payment_type_method' -require 'cybersource_rest_client/models/ptsv2billingagreements_payment_information_tokenized_card' -require 'cybersource_rest_client/models/ptsv2billingagreements_processing_information' -require 'cybersource_rest_client/models/ptsv2billingagreementsid_agreement_information' -require 'cybersource_rest_client/models/ptsv2billingagreementsid_buyer_information' -require 'cybersource_rest_client/models/ptsv2billingagreementsid_processing_information' -require 'cybersource_rest_client/models/ptsv2credits_installment_information' -require 'cybersource_rest_client/models/ptsv2credits_processing_information' -require 'cybersource_rest_client/models/ptsv2credits_processing_information_bank_transfer_options' -require 'cybersource_rest_client/models/ptsv2credits_processing_information_electronic_benefits_transfer' -require 'cybersource_rest_client/models/ptsv2credits_processing_information_japan_payment_options' -require 'cybersource_rest_client/models/ptsv2credits_processing_information_purchase_options' -require 'cybersource_rest_client/models/ptsv2credits_processing_information_refund_options' -require 'cybersource_rest_client/models/ptsv2credits_recipient_information' -require 'cybersource_rest_client/models/ptsv2credits_sender_information' -require 'cybersource_rest_client/models/ptsv2credits_sender_information_account' -require 'cybersource_rest_client/models/ptsv2intents_client_reference_information' -require 'cybersource_rest_client/models/ptsv2intents_event_information' -require 'cybersource_rest_client/models/ptsv2intents_merchant_information' -require 'cybersource_rest_client/models/ptsv2intents_merchant_information_merchant_descriptor' -require 'cybersource_rest_client/models/ptsv2intents_order_information' -require 'cybersource_rest_client/models/ptsv2intents_order_information_amount_details' -require 'cybersource_rest_client/models/ptsv2intents_order_information_bill_to' -require 'cybersource_rest_client/models/ptsv2intents_order_information_invoice_details' -require 'cybersource_rest_client/models/ptsv2intents_order_information_line_items' -require 'cybersource_rest_client/models/ptsv2intents_order_information_ship_to' -require 'cybersource_rest_client/models/ptsv2intents_payment_information' -require 'cybersource_rest_client/models/ptsv2intents_payment_information_e_wallet' -require 'cybersource_rest_client/models/ptsv2intents_payment_information_payment_type' -require 'cybersource_rest_client/models/ptsv2intents_payment_information_payment_type_method' -require 'cybersource_rest_client/models/ptsv2intents_payment_information_tokenized_payment_method' -require 'cybersource_rest_client/models/ptsv2intents_processing_information' -require 'cybersource_rest_client/models/ptsv2intents_processing_information_authorization_options' -require 'cybersource_rest_client/models/ptsv2intents_recipient_information' -require 'cybersource_rest_client/models/ptsv2intents_sender_information' -require 'cybersource_rest_client/models/ptsv2intents_sender_information_account' -require 'cybersource_rest_client/models/ptsv2intents_travel_information' -require 'cybersource_rest_client/models/ptsv2intents_travel_information_agency' -require 'cybersource_rest_client/models/ptsv2intentsid_merchant_information' -require 'cybersource_rest_client/models/ptsv2intentsid_order_information' -require 'cybersource_rest_client/models/ptsv2intentsid_payment_information' -require 'cybersource_rest_client/models/ptsv2intentsid_processing_information' -require 'cybersource_rest_client/models/ptsv2paymentreferences_agreement_information' -require 'cybersource_rest_client/models/ptsv2paymentreferences_buyer_information' -require 'cybersource_rest_client/models/ptsv2paymentreferences_device_information' -require 'cybersource_rest_client/models/ptsv2paymentreferences_merchant_information' -require 'cybersource_rest_client/models/ptsv2paymentreferences_order_information' -require 'cybersource_rest_client/models/ptsv2paymentreferences_order_information_amount_details' -require 'cybersource_rest_client/models/ptsv2paymentreferences_order_information_bill_to' -require 'cybersource_rest_client/models/ptsv2paymentreferences_order_information_invoice_details' -require 'cybersource_rest_client/models/ptsv2paymentreferences_order_information_line_items' -require 'cybersource_rest_client/models/ptsv2paymentreferences_order_information_ship_to' -require 'cybersource_rest_client/models/ptsv2paymentreferences_payment_information' -require 'cybersource_rest_client/models/ptsv2paymentreferences_payment_information_bank' -require 'cybersource_rest_client/models/ptsv2paymentreferences_payment_information_bank_account' -require 'cybersource_rest_client/models/ptsv2paymentreferences_payment_information_card' -require 'cybersource_rest_client/models/ptsv2paymentreferences_payment_information_e_wallet' -require 'cybersource_rest_client/models/ptsv2paymentreferences_payment_information_options' -require 'cybersource_rest_client/models/ptsv2paymentreferences_processing_information' -require 'cybersource_rest_client/models/ptsv2paymentreferences_travel_information' -require 'cybersource_rest_client/models/ptsv2paymentreferences_travel_information_auto_rental' -require 'cybersource_rest_client/models/ptsv2paymentreferences_user_interface' -require 'cybersource_rest_client/models/ptsv2paymentreferences_user_interface_color' -require 'cybersource_rest_client/models/ptsv2paymentreferencesidintents_order_information' -require 'cybersource_rest_client/models/ptsv2paymentreferencesidintents_payment_information' -require 'cybersource_rest_client/models/ptsv2paymentreferencesidintents_payment_information_e_wallet' -require 'cybersource_rest_client/models/ptsv2paymentreferencesidintents_processing_information' -require 'cybersource_rest_client/models/ptsv2payments_acquirer_information' -require 'cybersource_rest_client/models/ptsv2payments_aggregator_information' -require 'cybersource_rest_client/models/ptsv2payments_aggregator_information_sub_merchant' -require 'cybersource_rest_client/models/ptsv2payments_agreement_information' -require 'cybersource_rest_client/models/ptsv2payments_buyer_information' -require 'cybersource_rest_client/models/ptsv2payments_buyer_information_personal_identification' -require 'cybersource_rest_client/models/ptsv2payments_client_reference_information' -require 'cybersource_rest_client/models/ptsv2payments_client_reference_information_partner' -require 'cybersource_rest_client/models/ptsv2payments_consumer_authentication_information' -require 'cybersource_rest_client/models/ptsv2payments_consumer_authentication_information_strong_authentication' -require 'cybersource_rest_client/models/ptsv2payments_consumer_authentication_information_strong_authentication_issuer_information' -require 'cybersource_rest_client/models/ptsv2payments_device_information' -require 'cybersource_rest_client/models/ptsv2payments_device_information_raw_data' -require 'cybersource_rest_client/models/ptsv2payments_health_care_information' -require 'cybersource_rest_client/models/ptsv2payments_health_care_information_amount_details' -require 'cybersource_rest_client/models/ptsv2payments_hosted_payment_information' -require 'cybersource_rest_client/models/ptsv2payments_hosted_payment_information_user_agent' -require 'cybersource_rest_client/models/ptsv2payments_installment_information' -require 'cybersource_rest_client/models/ptsv2payments_invoice_details' -require 'cybersource_rest_client/models/ptsv2payments_issuer_information' -require 'cybersource_rest_client/models/ptsv2payments_merchant_defined_information' -require 'cybersource_rest_client/models/ptsv2payments_merchant_defined_secure_information' -require 'cybersource_rest_client/models/ptsv2payments_merchant_information' -require 'cybersource_rest_client/models/ptsv2payments_merchant_information_merchant_descriptor' -require 'cybersource_rest_client/models/ptsv2payments_merchant_information_service_fee_descriptor' -require 'cybersource_rest_client/models/ptsv2payments_merchant_information_service_location' -require 'cybersource_rest_client/models/ptsv2payments_order_information' -require 'cybersource_rest_client/models/ptsv2payments_order_information_amount_details' -require 'cybersource_rest_client/models/ptsv2payments_order_information_amount_details_amex_additional_amounts' -require 'cybersource_rest_client/models/ptsv2payments_order_information_amount_details_currency_conversion' -require 'cybersource_rest_client/models/ptsv2payments_order_information_amount_details_octsurcharge' -require 'cybersource_rest_client/models/ptsv2payments_order_information_amount_details_order' -require 'cybersource_rest_client/models/ptsv2payments_order_information_amount_details_surcharge' -require 'cybersource_rest_client/models/ptsv2payments_order_information_amount_details_tax_details' -require 'cybersource_rest_client/models/ptsv2payments_order_information_bill_to' -require 'cybersource_rest_client/models/ptsv2payments_order_information_bill_to_company' -require 'cybersource_rest_client/models/ptsv2payments_order_information_invoice_details' -require 'cybersource_rest_client/models/ptsv2payments_order_information_invoice_details_transaction_advice_addendum' -require 'cybersource_rest_client/models/ptsv2payments_order_information_line_items' -require 'cybersource_rest_client/models/ptsv2payments_order_information_passenger' -require 'cybersource_rest_client/models/ptsv2payments_order_information_ship_to' -require 'cybersource_rest_client/models/ptsv2payments_order_information_shipping_details' -require 'cybersource_rest_client/models/ptsv2payments_payment_information' -require 'cybersource_rest_client/models/ptsv2payments_payment_information_bank' -require 'cybersource_rest_client/models/ptsv2payments_payment_information_bank_account' -require 'cybersource_rest_client/models/ptsv2payments_payment_information_card' -require 'cybersource_rest_client/models/ptsv2payments_payment_information_customer' -require 'cybersource_rest_client/models/ptsv2payments_payment_information_direct_debit' -require 'cybersource_rest_client/models/ptsv2payments_payment_information_direct_debit_mandate' -require 'cybersource_rest_client/models/ptsv2payments_payment_information_e_wallet' -require 'cybersource_rest_client/models/ptsv2payments_payment_information_fluid_data' -require 'cybersource_rest_client/models/ptsv2payments_payment_information_instrument_identifier' -require 'cybersource_rest_client/models/ptsv2payments_payment_information_legacy_token' -require 'cybersource_rest_client/models/ptsv2payments_payment_information_options' -require 'cybersource_rest_client/models/ptsv2payments_payment_information_payment_account_reference' -require 'cybersource_rest_client/models/ptsv2payments_payment_information_payment_instrument' -require 'cybersource_rest_client/models/ptsv2payments_payment_information_payment_type' -require 'cybersource_rest_client/models/ptsv2payments_payment_information_payment_type_method' -require 'cybersource_rest_client/models/ptsv2payments_payment_information_sepa' -require 'cybersource_rest_client/models/ptsv2payments_payment_information_sepa_direct_debit' -require 'cybersource_rest_client/models/ptsv2payments_payment_information_shipping_address' -require 'cybersource_rest_client/models/ptsv2payments_payment_information_tokenized_card' -require 'cybersource_rest_client/models/ptsv2payments_payment_information_tokenized_payment_method' -require 'cybersource_rest_client/models/ptsv2payments_point_of_sale_information' -require 'cybersource_rest_client/models/ptsv2payments_point_of_sale_information_emv' -require 'cybersource_rest_client/models/ptsv2payments_processing_information' -require 'cybersource_rest_client/models/ptsv2payments_processing_information_authorization_options' -require 'cybersource_rest_client/models/ptsv2payments_processing_information_authorization_options_initiator' -require 'cybersource_rest_client/models/ptsv2payments_merchant_initiated_transaction' -require 'cybersource_rest_client/models/ptsv2payments_processing_information_bank_transfer_options' -require 'cybersource_rest_client/models/ptsv2payments_processing_information_capture_options' -require 'cybersource_rest_client/models/ptsv2payments_processing_information_electronic_benefits_transfer' -require 'cybersource_rest_client/models/ptsv2payments_processing_information_japan_payment_options' -require 'cybersource_rest_client/models/ptsv2payments_processing_information_japan_payment_options_bonuses' -require 'cybersource_rest_client/models/ptsv2payments_processing_information_loan_options' -require 'cybersource_rest_client/models/ptsv2payments_processing_information_purchase_options' -require 'cybersource_rest_client/models/ptsv2payments_processing_information_recurring_options' -require 'cybersource_rest_client/models/ptsv2payments_processor_information' -require 'cybersource_rest_client/models/ptsv2payments_processor_information_authorization_options' -require 'cybersource_rest_client/models/ptsv2payments_processor_information_reversal' -require 'cybersource_rest_client/models/ptsv2payments_processor_information_reversal_network' -require 'cybersource_rest_client/models/ptsv2payments_promotion_information' -require 'cybersource_rest_client/models/ptsv2payments_recipient_information' -require 'cybersource_rest_client/models/ptsv2payments_recurring_payment_information' -require 'cybersource_rest_client/models/ptsv2payments_risk_information' -require 'cybersource_rest_client/models/ptsv2payments_risk_information_auxiliary_data' -require 'cybersource_rest_client/models/ptsv2payments_risk_information_buyer_history' -require 'cybersource_rest_client/models/ptsv2payments_risk_information_buyer_history_account_history' -require 'cybersource_rest_client/models/ptsv2payments_risk_information_buyer_history_customer_account' -require 'cybersource_rest_client/models/ptsv2payments_risk_information_profile' -require 'cybersource_rest_client/models/ptsv2payments_sender_information' -require 'cybersource_rest_client/models/ptsv2payments_sender_information_account' -require 'cybersource_rest_client/models/ptsv2payments_token_information' -require 'cybersource_rest_client/models/ptsv2payments_token_information_payment_instrument' -require 'cybersource_rest_client/models/ptsv2payments_token_information_shipping_address' -require 'cybersource_rest_client/models/ptsv2payments_token_information_token_provisioning_information' -require 'cybersource_rest_client/models/ptsv2payments_travel_information' -require 'cybersource_rest_client/models/ptsv2payments_travel_information_agency' -require 'cybersource_rest_client/models/ptsv2payments_travel_information_auto_rental' -require 'cybersource_rest_client/models/ptsv2payments_travel_information_auto_rental_rental_address' -require 'cybersource_rest_client/models/ptsv2payments_travel_information_auto_rental_return_address' -require 'cybersource_rest_client/models/ptsv2payments_travel_information_auto_rental_tax_details' -require 'cybersource_rest_client/models/ptsv2payments_travel_information_lodging' -require 'cybersource_rest_client/models/ptsv2payments_travel_information_lodging_room' -require 'cybersource_rest_client/models/ptsv2payments_travel_information_transit' -require 'cybersource_rest_client/models/ptsv2payments_travel_information_transit_airline' -require 'cybersource_rest_client/models/ptsv2payments_travel_information_transit_airline_ancillary_information' -require 'cybersource_rest_client/models/ptsv2payments_travel_information_transit_airline_ancillary_information_service' -require 'cybersource_rest_client/models/ptsv2payments_travel_information_transit_airline_legs' -require 'cybersource_rest_client/models/ptsv2payments_travel_information_transit_airline_ticket_issuer' -require 'cybersource_rest_client/models/ptsv2payments_travel_information_vehicle_data' -require 'cybersource_rest_client/models/ptsv2payments_unscheduled_payment_information' -require 'cybersource_rest_client/models/ptsv2payments_watchlist_screening_information' -require 'cybersource_rest_client/models/ptsv2payments_watchlist_screening_information_weights' -require 'cybersource_rest_client/models/ptsv2paymentsid_client_reference_information' -require 'cybersource_rest_client/models/ptsv2paymentsid_client_reference_information_partner' -require 'cybersource_rest_client/models/ptsv2paymentsid_merchant_information' -require 'cybersource_rest_client/models/ptsv2paymentsid_order_information' -require 'cybersource_rest_client/models/ptsv2paymentsid_order_information_amount_details' -require 'cybersource_rest_client/models/ptsv2paymentsid_processing_information' -require 'cybersource_rest_client/models/ptsv2paymentsid_processing_information_authorization_options' -require 'cybersource_rest_client/models/ptsv2paymentsid_processing_information_authorization_options_initiator' -require 'cybersource_rest_client/models/ptsv2paymentsid_travel_information' -require 'cybersource_rest_client/models/ptsv2paymentsidcaptures_aggregator_information' -require 'cybersource_rest_client/models/ptsv2paymentsidcaptures_aggregator_information_sub_merchant' -require 'cybersource_rest_client/models/ptsv2paymentsidcaptures_buyer_information' -require 'cybersource_rest_client/models/ptsv2paymentsidcaptures_buyer_information_personal_identification' -require 'cybersource_rest_client/models/ptsv2paymentsidcaptures_device_information' -require 'cybersource_rest_client/models/ptsv2paymentsidcaptures_installment_information' -require 'cybersource_rest_client/models/ptsv2paymentsidcaptures_merchant_information' -require 'cybersource_rest_client/models/ptsv2paymentsidcaptures_order_information' -require 'cybersource_rest_client/models/ptsv2paymentsidcaptures_order_information_amount_details' -require 'cybersource_rest_client/models/ptsv2paymentsidcaptures_order_information_bill_to' -require 'cybersource_rest_client/models/ptsv2paymentsidcaptures_order_information_invoice_details' -require 'cybersource_rest_client/models/ptsv2paymentsidcaptures_order_information_ship_to' -require 'cybersource_rest_client/models/ptsv2paymentsidcaptures_order_information_shipping_details' -require 'cybersource_rest_client/models/ptsv2paymentsidcaptures_payment_information' -require 'cybersource_rest_client/models/ptsv2paymentsidcaptures_payment_information_card' -require 'cybersource_rest_client/models/ptsv2paymentsidcaptures_payment_information_payment_type' -require 'cybersource_rest_client/models/ptsv2paymentsidcaptures_payment_information_payment_type_method' -require 'cybersource_rest_client/models/ptsv2paymentsidcaptures_point_of_sale_information' -require 'cybersource_rest_client/models/ptsv2paymentsidcaptures_point_of_sale_information_emv' -require 'cybersource_rest_client/models/ptsv2paymentsidcaptures_processing_information' -require 'cybersource_rest_client/models/ptsv2paymentsidcaptures_processing_information_authorization_options' -require 'cybersource_rest_client/models/ptsv2paymentsidcaptures_processing_information_capture_options' -require 'cybersource_rest_client/models/ptsv2paymentsidcaptures_processing_information_japan_payment_options' -require 'cybersource_rest_client/models/ptsv2paymentsidcaptures_processor_information' -require 'cybersource_rest_client/models/ptsv2paymentsidrefunds_client_reference_information' -require 'cybersource_rest_client/models/ptsv2paymentsidrefunds_merchant_information' -require 'cybersource_rest_client/models/ptsv2paymentsidrefunds_order_information' -require 'cybersource_rest_client/models/ptsv2paymentsidrefunds_order_information_line_items' -require 'cybersource_rest_client/models/ptsv2paymentsidrefunds_payment_information' -require 'cybersource_rest_client/models/ptsv2paymentsidrefunds_payment_information_bank' -require 'cybersource_rest_client/models/ptsv2paymentsidrefunds_payment_information_bank_account' -require 'cybersource_rest_client/models/ptsv2paymentsidrefunds_payment_information_card' -require 'cybersource_rest_client/models/ptsv2paymentsidrefunds_payment_information_e_wallet' -require 'cybersource_rest_client/models/ptsv2paymentsidrefunds_payment_information_payment_type' -require 'cybersource_rest_client/models/ptsv2paymentsidrefunds_point_of_sale_information' -require 'cybersource_rest_client/models/ptsv2paymentsidrefunds_processing_information' -require 'cybersource_rest_client/models/ptsv2paymentsidrefunds_processing_information_recurring_options' -require 'cybersource_rest_client/models/ptsv2paymentsidrefunds_processing_information_refund_options' -require 'cybersource_rest_client/models/ptsv2paymentsidreversals_client_reference_information' -require 'cybersource_rest_client/models/ptsv2paymentsidreversals_client_reference_information_partner' -require 'cybersource_rest_client/models/ptsv2paymentsidreversals_order_information' -require 'cybersource_rest_client/models/ptsv2paymentsidreversals_order_information_amount_details' -require 'cybersource_rest_client/models/ptsv2paymentsidreversals_order_information_line_items' -require 'cybersource_rest_client/models/ptsv2paymentsidreversals_payment_information' -require 'cybersource_rest_client/models/ptsv2paymentsidreversals_payment_information_payment_type' -require 'cybersource_rest_client/models/ptsv2paymentsidreversals_payment_information_payment_type_method' -require 'cybersource_rest_client/models/ptsv2paymentsidreversals_point_of_sale_information' -require 'cybersource_rest_client/models/ptsv2paymentsidreversals_point_of_sale_information_emv' -require 'cybersource_rest_client/models/ptsv2paymentsidreversals_processing_information' -require 'cybersource_rest_client/models/ptsv2paymentsidreversals_reversal_information' -require 'cybersource_rest_client/models/ptsv2paymentsidreversals_reversal_information_amount_details' -require 'cybersource_rest_client/models/ptsv2paymentsidvoids_agreement_information' -require 'cybersource_rest_client/models/ptsv2paymentsidvoids_merchant_information' -require 'cybersource_rest_client/models/ptsv2paymentsidvoids_order_information' -require 'cybersource_rest_client/models/ptsv2paymentsidvoids_payment_information' -require 'cybersource_rest_client/models/ptsv2paymentsidvoids_processing_information' -require 'cybersource_rest_client/models/ptsv2paymenttokens_payment_information' -require 'cybersource_rest_client/models/ptsv2paymenttokens_processing_information' -require 'cybersource_rest_client/models/ptsv2payouts_aggregator_information' -require 'cybersource_rest_client/models/ptsv2payouts_aggregator_information_sub_merchant' -require 'cybersource_rest_client/models/ptsv2payouts_client_reference_information' -require 'cybersource_rest_client/models/ptsv2payouts_merchant_information' -require 'cybersource_rest_client/models/ptsv2payouts_merchant_information_merchant_descriptor' -require 'cybersource_rest_client/models/ptsv2payouts_order_information' -require 'cybersource_rest_client/models/ptsv2payouts_order_information_amount_details' -require 'cybersource_rest_client/models/ptsv2payouts_order_information_amount_details_surcharge' -require 'cybersource_rest_client/models/ptsv2payouts_order_information_bill_to' -require 'cybersource_rest_client/models/ptsv2payouts_payment_information' -require 'cybersource_rest_client/models/ptsv2payouts_payment_information_card' -require 'cybersource_rest_client/models/ptsv2payouts_processing_information' -require 'cybersource_rest_client/models/ptsv2payouts_processing_information_funding_options' -require 'cybersource_rest_client/models/ptsv2payouts_processing_information_funding_options_initiator' -require 'cybersource_rest_client/models/ptsv2payouts_processing_information_payouts_options' -require 'cybersource_rest_client/models/ptsv2payouts_processing_information_purchase_options' -require 'cybersource_rest_client/models/ptsv2payouts_recipient_information' -require 'cybersource_rest_client/models/ptsv2payouts_sender_information' -require 'cybersource_rest_client/models/ptsv2payouts_sender_information_account' -require 'cybersource_rest_client/models/ptsv2refreshpaymentstatusid_agreement_information' -require 'cybersource_rest_client/models/ptsv2refreshpaymentstatusid_client_reference_information' -require 'cybersource_rest_client/models/ptsv2refreshpaymentstatusid_payment_information' -require 'cybersource_rest_client/models/ptsv2refreshpaymentstatusid_payment_information_customer' -require 'cybersource_rest_client/models/ptsv2refreshpaymentstatusid_payment_information_payment_type' -require 'cybersource_rest_client/models/ptsv2refreshpaymentstatusid_processing_information' -require 'cybersource_rest_client/models/ptsv2reversals_processor_information' -require 'cybersource_rest_client/models/ptsv2voids_processing_information' -require 'cybersource_rest_client/models/push_funds201_response' -require 'cybersource_rest_client/models/push_funds201_response_client_reference_information' -require 'cybersource_rest_client/models/push_funds201_response_error_information' -require 'cybersource_rest_client/models/push_funds201_response_error_information_details' -require 'cybersource_rest_client/models/push_funds201_response__links' -require 'cybersource_rest_client/models/push_funds201_response__links_customer' -require 'cybersource_rest_client/models/push_funds201_response__links_instrument_identifier' -require 'cybersource_rest_client/models/push_funds201_response__links_payment_instrument' -require 'cybersource_rest_client/models/push_funds201_response__links_self' -require 'cybersource_rest_client/models/push_funds201_response_merchant_information' -require 'cybersource_rest_client/models/push_funds201_response_merchant_information_merchant_descriptor' -require 'cybersource_rest_client/models/push_funds201_response_order_information' -require 'cybersource_rest_client/models/push_funds201_response_order_information_amount_details' -require 'cybersource_rest_client/models/push_funds201_response_payment_information' -require 'cybersource_rest_client/models/push_funds201_response_payment_information_tokenized_card' -require 'cybersource_rest_client/models/push_funds201_response_processing_information' -require 'cybersource_rest_client/models/push_funds201_response_processing_information_domestic_national_net' -require 'cybersource_rest_client/models/push_funds201_response_processor_information' -require 'cybersource_rest_client/models/push_funds201_response_processor_information_routing' -require 'cybersource_rest_client/models/push_funds201_response_processor_information_settlement' -require 'cybersource_rest_client/models/push_funds201_response_recipient_information' -require 'cybersource_rest_client/models/push_funds201_response_recipient_information_card' -require 'cybersource_rest_client/models/push_funds400_response' -require 'cybersource_rest_client/models/push_funds400_response_details' -require 'cybersource_rest_client/models/push_funds401_response' -require 'cybersource_rest_client/models/push_funds404_response' -require 'cybersource_rest_client/models/push_funds502_response' -require 'cybersource_rest_client/models/push_funds_request' -require 'cybersource_rest_client/models/rbsv1plans_order_information' -require 'cybersource_rest_client/models/rbsv1plans_order_information_amount_details' -require 'cybersource_rest_client/models/rbsv1plans_plan_information' -require 'cybersource_rest_client/models/rbsv1plans_plan_information_billing_cycles' -require 'cybersource_rest_client/models/rbsv1plansid_plan_information' -require 'cybersource_rest_client/models/rbsv1plansid_processing_information' -require 'cybersource_rest_client/models/rbsv1plansid_processing_information_subscription_billing_options' -require 'cybersource_rest_client/models/rbsv1subscriptions_payment_information' -require 'cybersource_rest_client/models/rbsv1subscriptions_payment_information_customer' -require 'cybersource_rest_client/models/rbsv1subscriptions_plan_information' -require 'cybersource_rest_client/models/rbsv1subscriptions_processing_information' -require 'cybersource_rest_client/models/rbsv1subscriptions_processing_information_authorization_options' -require 'cybersource_rest_client/models/rbsv1subscriptions_processing_information_authorization_options_initiator' -require 'cybersource_rest_client/models/rbsv1subscriptions_subscription_information' -require 'cybersource_rest_client/models/rbsv1subscriptionsid_order_information' -require 'cybersource_rest_client/models/rbsv1subscriptionsid_order_information_amount_details' -require 'cybersource_rest_client/models/rbsv1subscriptionsid_plan_information' -require 'cybersource_rest_client/models/rbsv1subscriptionsid_subscription_information' -require 'cybersource_rest_client/models/refresh_payment_status_request' -require 'cybersource_rest_client/models/refund_capture_request' -require 'cybersource_rest_client/models/refund_payment_request' -require 'cybersource_rest_client/models/reporting_v3_chargeback_details_get200_response' -require 'cybersource_rest_client/models/reporting_v3_chargeback_details_get200_response_chargeback_details' -require 'cybersource_rest_client/models/reporting_v3_chargeback_summaries_get200_response' -require 'cybersource_rest_client/models/reporting_v3_chargeback_summaries_get200_response_chargeback_summaries' -require 'cybersource_rest_client/models/reporting_v3_conversion_details_get200_response' -require 'cybersource_rest_client/models/reporting_v3_conversion_details_get200_response_conversion_details' -require 'cybersource_rest_client/models/reporting_v3_conversion_details_get200_response_notes' -require 'cybersource_rest_client/models/reporting_v3_interchange_clearing_level_details_get200_response' -require 'cybersource_rest_client/models/reporting_get200_response_interchange_clearing_level_details' -require 'cybersource_rest_client/models/reporting_v3_net_fundings_get200_response' -require 'cybersource_rest_client/models/reporting_v3_net_fundings_get200_response_net_funding_summaries' -require 'cybersource_rest_client/models/reporting_v3_net_fundings_get200_response_total_purchases' -require 'cybersource_rest_client/models/reporting_v3_notificationof_changes_get200_response' -require 'cybersource_rest_client/models/reporting_v3_notificationof_changes_get200_response_notification_of_changes' -require 'cybersource_rest_client/models/reporting_v3_payment_batch_summaries_get200_response' -require 'cybersource_rest_client/models/reporting_v3_payment_batch_summaries_get200_response_payment_batch_summaries' -require 'cybersource_rest_client/models/reporting_v3_purchase_refund_details_get200_response' -require 'cybersource_rest_client/models/reporting_v3_purchase_refund_details_get200_response_authorizations' -require 'cybersource_rest_client/models/reporting_v3_purchase_refund_details_get200_response_fee_and_funding_details' -require 'cybersource_rest_client/models/reporting_v3_purchase_refund_details_get200_response_others' -require 'cybersource_rest_client/models/reporting_v3_purchase_refund_details_get200_response_request_details' -require 'cybersource_rest_client/models/reporting_v3_purchase_refund_details_get200_response_settlement_statuses' -require 'cybersource_rest_client/models/reporting_v3_purchase_refund_details_get200_response_settlements' -require 'cybersource_rest_client/models/reporting_v3_report_definitions_get200_response' -require 'cybersource_rest_client/models/reporting_v3_report_definitions_get200_response_report_definitions' -require 'cybersource_rest_client/models/reporting_v3_report_definitions_name_get200_response' -require 'cybersource_rest_client/models/reporting_v3_report_definitions_name_get200_response_attributes' -require 'cybersource_rest_client/models/reporting_v3_report_definitions_name_get200_response_default_settings' -require 'cybersource_rest_client/models/reporting_v3_report_subscriptions_get200_response' -require 'cybersource_rest_client/models/reporting_v3_report_subscriptions_get200_response_subscriptions' -require 'cybersource_rest_client/models/reporting_v3_reports_get200_response' -require 'cybersource_rest_client/models/reporting_v3_reports_get200_response__link' -require 'cybersource_rest_client/models/reporting_v3_reports_get200_response__link_report_download' -require 'cybersource_rest_client/models/reporting_v3_reports_get200_response_report_search_results' -require 'cybersource_rest_client/models/reporting_v3_reports_id_get200_response' -require 'cybersource_rest_client/models/reporting_v3_retrieval_details_get200_response' -require 'cybersource_rest_client/models/reporting_v3_retrieval_details_get200_response_retrieval_details' -require 'cybersource_rest_client/models/reporting_v3_retrieval_summaries_get200_response' -require 'cybersource_rest_client/models/reportingv3_report_downloads_get400_response' -require 'cybersource_rest_client/models/reportingv3_report_downloads_get400_response_details' -require 'cybersource_rest_client/models/reportingv3reports_report_filters' -require 'cybersource_rest_client/models/reportingv3reports_report_preferences' -require 'cybersource_rest_client/models/request' -require 'cybersource_rest_client/models/risk_products' -require 'cybersource_rest_client/models/risk_products_decision_manager' -require 'cybersource_rest_client/models/risk_products_decision_manager_configuration_information' -require 'cybersource_rest_client/models/risk_products_fraud_management_essentials' -require 'cybersource_rest_client/models/risk_products_fraud_management_essentials_configuration_information' -require 'cybersource_rest_client/models/risk_products_portfolio_risk_controls' -require 'cybersource_rest_client/models/risk_products_portfolio_risk_controls_configuration_information' -require 'cybersource_rest_client/models/risk_products_portfolio_risk_controls_configuration_information_configurations' -require 'cybersource_rest_client/models/risk_v1_address_verifications_post201_response' -require 'cybersource_rest_client/models/risk_v1_address_verifications_post201_response_address_verification_information' -require 'cybersource_rest_client/models/risk_v1_address_verifications_post201_response_address_verification_information_bar_code' -require 'cybersource_rest_client/models/risk_v1_address_verifications_post201_response_address_verification_information_standard_address' -require 'cybersource_rest_client/models/risk_v1_address_verifications_post201_response_address1' -require 'cybersource_rest_client/models/risk_v1_address_verifications_post201_response_error_information' -require 'cybersource_rest_client/models/risk_v1_authentication_results_post201_response' -require 'cybersource_rest_client/models/risk_v1_authentication_results_post201_response_consumer_authentication_information' -require 'cybersource_rest_client/models/risk_v1_authentication_setups_post201_response' -require 'cybersource_rest_client/models/risk_v1_authentication_setups_post201_response_consumer_authentication_information' -require 'cybersource_rest_client/models/risk_v1_authentication_setups_post201_response_error_information' -require 'cybersource_rest_client/models/risk_v1_authentications_post201_response' -require 'cybersource_rest_client/models/risk_v1_authentications_post201_response_error_information' -require 'cybersource_rest_client/models/risk_v1_authentications_post400_response' -require 'cybersource_rest_client/models/risk_v1_authentications_post400_response_1' -require 'cybersource_rest_client/models/risk_v1_decisions_post201_response' -require 'cybersource_rest_client/models/risk_v1_decisions_post201_response_client_reference_information' -require 'cybersource_rest_client/models/risk_v1_decisions_post201_response_consumer_authentication_information' -require 'cybersource_rest_client/models/risk_v1_decisions_post201_response_error_information' -require 'cybersource_rest_client/models/risk_v1_decisions_post201_response_order_information' -require 'cybersource_rest_client/models/risk_v1_decisions_post201_response_order_information_amount_details' -require 'cybersource_rest_client/models/risk_v1_decisions_post201_response_payment_information' -require 'cybersource_rest_client/models/risk_v1_decisions_post400_response' -require 'cybersource_rest_client/models/risk_v1_decisions_post400_response_1' -require 'cybersource_rest_client/models/risk_v1_export_compliance_inquiries_post201_response' -require 'cybersource_rest_client/models/risk_v1_export_compliance_inquiries_post201_response_error_information' -require 'cybersource_rest_client/models/risk_v1_update_post201_response' -require 'cybersource_rest_client/models/riskv1addressverifications_buyer_information' -require 'cybersource_rest_client/models/riskv1addressverifications_order_information' -require 'cybersource_rest_client/models/riskv1addressverifications_order_information_bill_to' -require 'cybersource_rest_client/models/riskv1addressverifications_order_information_line_items' -require 'cybersource_rest_client/models/riskv1addressverifications_order_information_ship_to' -require 'cybersource_rest_client/models/riskv1authenticationresults_consumer_authentication_information' -require 'cybersource_rest_client/models/riskv1authenticationresults_device_information' -require 'cybersource_rest_client/models/riskv1authenticationresults_order_information' -require 'cybersource_rest_client/models/riskv1authenticationresults_order_information_amount_details' -require 'cybersource_rest_client/models/riskv1authenticationresults_payment_information' -require 'cybersource_rest_client/models/riskv1authenticationresults_payment_information_card' -require 'cybersource_rest_client/models/riskv1authenticationresults_payment_information_fluid_data' -require 'cybersource_rest_client/models/riskv1authenticationresults_payment_information_tokenized_card' -require 'cybersource_rest_client/models/riskv1authentications_buyer_information' -require 'cybersource_rest_client/models/riskv1authentications_device_information' -require 'cybersource_rest_client/models/riskv1authentications_order_information' -require 'cybersource_rest_client/models/riskv1authentications_order_information_amount_details' -require 'cybersource_rest_client/models/riskv1authentications_order_information_bill_to' -require 'cybersource_rest_client/models/riskv1authentications_order_information_line_items' -require 'cybersource_rest_client/models/riskv1authentications_payment_information' -require 'cybersource_rest_client/models/riskv1authentications_payment_information_customer' -require 'cybersource_rest_client/models/riskv1authentications_payment_information_tokenized_card' -require 'cybersource_rest_client/models/riskv1authentications_risk_information' -require 'cybersource_rest_client/models/riskv1authentications_travel_information' -require 'cybersource_rest_client/models/riskv1authenticationsetups_client_reference_information' -require 'cybersource_rest_client/models/riskv1authenticationsetups_payment_information' -require 'cybersource_rest_client/models/riskv1authenticationsetups_payment_information_card' -require 'cybersource_rest_client/models/riskv1authenticationsetups_payment_information_customer' -require 'cybersource_rest_client/models/riskv1authenticationsetups_payment_information_fluid_data' -require 'cybersource_rest_client/models/riskv1authenticationsetups_payment_information_tokenized_card' -require 'cybersource_rest_client/models/riskv1authenticationsetups_processing_information' -require 'cybersource_rest_client/models/riskv1authenticationsetups_token_information' -require 'cybersource_rest_client/models/riskv1decisions_acquirer_information' -require 'cybersource_rest_client/models/riskv1decisions_buyer_information' -require 'cybersource_rest_client/models/riskv1decisions_client_reference_information' -require 'cybersource_rest_client/models/riskv1decisions_client_reference_information_partner' -require 'cybersource_rest_client/models/riskv1decisions_consumer_authentication_information' -require 'cybersource_rest_client/models/riskv1decisions_consumer_authentication_information_strong_authentication' -require 'cybersource_rest_client/models/riskv1decisions_device_information' -require 'cybersource_rest_client/models/riskv1decisions_merchant_defined_information' -require 'cybersource_rest_client/models/riskv1decisions_merchant_information' -require 'cybersource_rest_client/models/riskv1decisions_merchant_information_merchant_descriptor' -require 'cybersource_rest_client/models/riskv1decisions_order_information' -require 'cybersource_rest_client/models/riskv1decisions_order_information_amount_details' -require 'cybersource_rest_client/models/riskv1decisions_order_information_bill_to' -require 'cybersource_rest_client/models/riskv1decisions_order_information_line_items' -require 'cybersource_rest_client/models/riskv1decisions_order_information_ship_to' -require 'cybersource_rest_client/models/riskv1decisions_order_information_shipping_details' -require 'cybersource_rest_client/models/riskv1decisions_payment_information' -require 'cybersource_rest_client/models/riskv1decisions_payment_information_card' -require 'cybersource_rest_client/models/riskv1decisions_payment_information_tokenized_card' -require 'cybersource_rest_client/models/riskv1decisions_processing_information' -require 'cybersource_rest_client/models/riskv1decisions_processor_information' -require 'cybersource_rest_client/models/riskv1decisions_processor_information_avs' -require 'cybersource_rest_client/models/riskv1decisions_processor_information_card_verification' -require 'cybersource_rest_client/models/riskv1decisions_risk_information' -require 'cybersource_rest_client/models/riskv1decisions_token_information' -require 'cybersource_rest_client/models/riskv1decisions_travel_information' -require 'cybersource_rest_client/models/riskv1decisions_travel_information_legs' -require 'cybersource_rest_client/models/riskv1decisions_travel_information_passengers' -require 'cybersource_rest_client/models/riskv1decisionsidactions_decision_information' -require 'cybersource_rest_client/models/riskv1decisionsidactions_processing_information' -require 'cybersource_rest_client/models/riskv1decisionsidmarking_risk_information' -require 'cybersource_rest_client/models/riskv1decisionsidmarking_risk_information_marking_details' -require 'cybersource_rest_client/models/riskv1exportcomplianceinquiries_device_information' -require 'cybersource_rest_client/models/riskv1exportcomplianceinquiries_export_compliance_information' -require 'cybersource_rest_client/models/riskv1exportcomplianceinquiries_order_information' -require 'cybersource_rest_client/models/riskv1exportcomplianceinquiries_order_information_bill_to' -require 'cybersource_rest_client/models/riskv1exportcomplianceinquiries_order_information_bill_to_company' -require 'cybersource_rest_client/models/riskv1exportcomplianceinquiries_order_information_line_items' -require 'cybersource_rest_client/models/riskv1exportcomplianceinquiries_order_information_ship_to' -require 'cybersource_rest_client/models/riskv1liststypeentries_buyer_information' -require 'cybersource_rest_client/models/riskv1liststypeentries_client_reference_information' -require 'cybersource_rest_client/models/riskv1liststypeentries_device_information' -require 'cybersource_rest_client/models/riskv1liststypeentries_order_information' -require 'cybersource_rest_client/models/riskv1liststypeentries_order_information_address' -require 'cybersource_rest_client/models/riskv1liststypeentries_order_information_bill_to' -require 'cybersource_rest_client/models/riskv1liststypeentries_order_information_line_items' -require 'cybersource_rest_client/models/riskv1liststypeentries_order_information_ship_to' -require 'cybersource_rest_client/models/riskv1liststypeentries_payment_information' -require 'cybersource_rest_client/models/riskv1liststypeentries_payment_information_bank' -require 'cybersource_rest_client/models/riskv1liststypeentries_payment_information_card' -require 'cybersource_rest_client/models/riskv1liststypeentries_risk_information' -require 'cybersource_rest_client/models/riskv1liststypeentries_risk_information_marking_details' -require 'cybersource_rest_client/models/sa_config' -require 'cybersource_rest_client/models/sa_config_checkout' -require 'cybersource_rest_client/models/sa_config_contact_information' -require 'cybersource_rest_client/models/sa_config_notifications' -require 'cybersource_rest_client/models/sa_config_notifications_customer_notifications' -require 'cybersource_rest_client/models/sa_config_notifications_merchant_notifications' -require 'cybersource_rest_client/models/sa_config_payment_methods' -require 'cybersource_rest_client/models/sa_config_payment_types' -require 'cybersource_rest_client/models/sa_config_payment_types_card_types' -require 'cybersource_rest_client/models/sa_config_payment_types_card_types_discover' -require 'cybersource_rest_client/models/sa_config_service' -require 'cybersource_rest_client/models/save_asym_egress_key' -require 'cybersource_rest_client/models/save_sym_egress_key' -require 'cybersource_rest_client/models/search_request' -require 'cybersource_rest_client/models/shipping_address_list_for_customer' -require 'cybersource_rest_client/models/shipping_address_list_for_customer__embedded' -require 'cybersource_rest_client/models/shipping_address_list_for_customer__links' -require 'cybersource_rest_client/models/shipping_address_list_for_customer__links_first' -require 'cybersource_rest_client/models/shipping_address_list_for_customer__links_last' -require 'cybersource_rest_client/models/shipping_address_list_for_customer__links_next' -require 'cybersource_rest_client/models/shipping_address_list_for_customer__links_prev' -require 'cybersource_rest_client/models/shipping_address_list_for_customer__links_self' -require 'cybersource_rest_client/models/suspend_subscription_response' -require 'cybersource_rest_client/models/suspend_subscription_response_subscription_information' -require 'cybersource_rest_client/models/tax_request' -require 'cybersource_rest_client/models/tms_authorization_options' -require 'cybersource_rest_client/models/tms_authorization_options_initiator' -require 'cybersource_rest_client/models/tms_authorization_options_initiator_merchant_initiated_transaction' -require 'cybersource_rest_client/models/tms_bin_lookup' -require 'cybersource_rest_client/models/tms_bin_lookup_issuer_information' -require 'cybersource_rest_client/models/tms_bin_lookup_payment_account_information' -require 'cybersource_rest_client/models/tms_bin_lookup_payment_account_information_card' -require 'cybersource_rest_client/models/tms_bin_lookup_payment_account_information_card_brands' -require 'cybersource_rest_client/models/tms_bin_lookup_payment_account_information_features' -require 'cybersource_rest_client/models/tms_bin_lookup_payment_account_information_network' -require 'cybersource_rest_client/models/tms_business_information' -require 'cybersource_rest_client/models/tms_business_information_acquirer' -require 'cybersource_rest_client/models/tms_business_information_address' -require 'cybersource_rest_client/models/tms_card_art' -require 'cybersource_rest_client/models/tms_card_art_brand_logo_asset' -require 'cybersource_rest_client/models/tms_card_art_brand_logo_asset__links' -require 'cybersource_rest_client/models/tms_card_art_brand_logo_asset__links_self' -require 'cybersource_rest_client/models/tms_card_art_combined_asset' -require 'cybersource_rest_client/models/tms_card_art_combined_asset__links' -require 'cybersource_rest_client/models/tms_card_art_combined_asset__links_self' -require 'cybersource_rest_client/models/tms_card_art_icon_asset' -require 'cybersource_rest_client/models/tms_card_art_icon_asset__links' -require 'cybersource_rest_client/models/tms_card_art_icon_asset__links_self' -require 'cybersource_rest_client/models/tms_card_art_issuer_logo_asset' -require 'cybersource_rest_client/models/tms_card_art_issuer_logo_asset__links' -require 'cybersource_rest_client/models/tms_card_art_issuer_logo_asset__links_self' -require 'cybersource_rest_client/models/tms_embedded_instrument_identifier' -require 'cybersource_rest_client/models/tms_embedded_instrument_identifier_bank_account' -require 'cybersource_rest_client/models/tms_embedded_instrument_identifier_bill_to' -require 'cybersource_rest_client/models/tms_embedded_instrument_identifier_card' -require 'cybersource_rest_client/models/tms_embedded_instrument_identifier__embedded' -require 'cybersource_rest_client/models/tms_embedded_instrument_identifier_issuer' -require 'cybersource_rest_client/models/tms_embedded_instrument_identifier__links' -require 'cybersource_rest_client/models/tms_embedded_instrument_identifier__links_payment_instruments' -require 'cybersource_rest_client/models/tms_embedded_instrument_identifier__links_self' -require 'cybersource_rest_client/models/tms_embedded_instrument_identifier_metadata' -require 'cybersource_rest_client/models/tms_embedded_instrument_identifier_point_of_sale_information' -require 'cybersource_rest_client/models/tms_embedded_instrument_identifier_point_of_sale_information_emv_tags' -require 'cybersource_rest_client/models/tms_embedded_instrument_identifier_processing_information' -require 'cybersource_rest_client/models/tms_merchant_information' -require 'cybersource_rest_client/models/tms_merchant_information_merchant_descriptor' -require 'cybersource_rest_client/models/tms_network_token_services' -require 'cybersource_rest_client/models/tms_network_token_services_american_express_token_service' -require 'cybersource_rest_client/models/tms_network_token_services_mastercard_digital_enablement_service' -require 'cybersource_rest_client/models/tms_network_token_services_notifications' -require 'cybersource_rest_client/models/tms_network_token_services_payment_credentials' -require 'cybersource_rest_client/models/tms_network_token_services_synchronous_provisioning' -require 'cybersource_rest_client/models/tms_network_token_services_visa_token_service' -require 'cybersource_rest_client/models/tms_nullify' -require 'cybersource_rest_client/models/tms_payment_instrument_processing_info' -require 'cybersource_rest_client/models/tms_payment_instrument_processing_info_bank_transfer_options' -require 'cybersource_rest_client/models/tms_sensitive_privileges' -require 'cybersource_rest_client/models/tms_token_formats' -require 'cybersource_rest_client/models/tmsv2_tokenized_card' -require 'cybersource_rest_client/models/tmsv2_tokenized_card_card' -require 'cybersource_rest_client/models/tmsv2_tokenized_card_card_terms_and_conditions' -require 'cybersource_rest_client/models/tmsv2_tokenized_card__links' -require 'cybersource_rest_client/models/tmsv2_tokenized_card__links_self' -require 'cybersource_rest_client/models/tmsv2_tokenized_card_metadata' -require 'cybersource_rest_client/models/tmsv2_tokenized_card_metadata_issuer' -require 'cybersource_rest_client/models/tmsv2_tokenized_card_passcode' -require 'cybersource_rest_client/models/tmsv2tokenize_processing_information' -require 'cybersource_rest_client/models/tmsv2tokenize_token_information' -require 'cybersource_rest_client/models/tmsv2tokenize_token_information_customer' -require 'cybersource_rest_client/models/tmsv2tokenize_token_information_customer_buyer_information' -require 'cybersource_rest_client/models/tmsv2tokenize_token_information_customer_client_reference_information' -require 'cybersource_rest_client/models/tmsv2tokenize_token_information_customer_default_payment_instrument' -require 'cybersource_rest_client/models/tmsv2tokenize_token_information_customer_default_shipping_address' -require 'cybersource_rest_client/models/tmsv2tokenize_token_information_customer__embedded' -require 'cybersource_rest_client/models/tmsv2tokenize_token_information_customer__embedded_default_payment_instrument' -require 'cybersource_rest_client/models/tmsv2tokenize_token_information_customer__embedded_default_payment_instrument_bank_account' -require 'cybersource_rest_client/models/tmsv2tokenize_token_information_customer__embedded_default_payment_instrument_bill_to' -require 'cybersource_rest_client/models/tmsv2tokenize_token_information_customer__embedded_default_payment_instrument_buyer_information' -require 'cybersource_rest_client/models/tmsv2tokenize_token_information_customer__embedded_default_payment_instrument_buyer_information_issued_by' -require 'cybersource_rest_client/models/tmsv2tokenize_token_information_customer__embedded_default_payment_instrument_buyer_information_personal_identification' -require 'cybersource_rest_client/models/tmsv2tokenize_token_information_customer__embedded_default_payment_instrument_card' -require 'cybersource_rest_client/models/tmsv2tokenize_token_information_customer__embedded_default_payment_instrument_card_tokenized_information' -require 'cybersource_rest_client/models/tmsv2tokenize_token_information_customer__embedded_default_payment_instrument__embedded' -require 'cybersource_rest_client/models/tmsv2tokenize_token_information_customer__embedded_default_payment_instrument_instrument_identifier' -require 'cybersource_rest_client/models/tmsv2tokenize_token_information_customer__embedded_default_payment_instrument__links' -require 'cybersource_rest_client/models/tmsv2tokenize_token_information_customer__embedded_default_payment_instrument__links_self' -require 'cybersource_rest_client/models/tmsv2tokenize_token_information_customer__embedded_default_payment_instrument_metadata' -require 'cybersource_rest_client/models/tmsv2tokenize_token_information_customer__embedded_default_shipping_address' -require 'cybersource_rest_client/models/tmsv2tokenize_token_information_customer__embedded_default_shipping_address__links' -require 'cybersource_rest_client/models/tmsv2tokenize_token_information_customer__embedded_default_shipping_address__links_customer' -require 'cybersource_rest_client/models/tmsv2tokenize_token_information_customer__embedded_default_shipping_address__links_self' -require 'cybersource_rest_client/models/tmsv2tokenize_token_information_customer__embedded_default_shipping_address_metadata' -require 'cybersource_rest_client/models/tmsv2tokenize_token_information_customer__embedded_default_shipping_address_ship_to' -require 'cybersource_rest_client/models/tmsv2tokenize_token_information_customer__links' -require 'cybersource_rest_client/models/tmsv2tokenize_token_information_customer__links_payment_instruments' -require 'cybersource_rest_client/models/tmsv2tokenize_token_information_customer__links_self' -require 'cybersource_rest_client/models/tmsv2tokenize_token_information_customer__links_shipping_address' -require 'cybersource_rest_client/models/tmsv2tokenize_token_information_customer_merchant_defined_information' -require 'cybersource_rest_client/models/tmsv2tokenize_token_information_customer_metadata' -require 'cybersource_rest_client/models/tmsv2tokenize_token_information_customer_object_information' -require 'cybersource_rest_client/models/tmsv2tokenizedcardstokenized_card_idissuerlifecycleeventsimulations_card' -require 'cybersource_rest_client/models/tmsv2tokenizedcardstokenized_card_idissuerlifecycleeventsimulations_metadata' -require 'cybersource_rest_client/models/tmsv2tokenizedcardstokenized_card_idissuerlifecycleeventsimulations_metadata_card_art' -require 'cybersource_rest_client/models/tms_issuerlifecycleeventsimulations_metadata_card_art_combined_asset' -require 'cybersource_rest_client/models/tmsv2tokenstoken_idpaymentcredentials_authenticated_identities' -require 'cybersource_rest_client/models/tmsv2tokenstoken_idpaymentcredentials_device_information' -require 'cybersource_rest_client/models/tmsv2tokenstoken_idpaymentcredentials_merchant_information' -require 'cybersource_rest_client/models/tmsv2tokenstoken_idpaymentcredentials_merchant_information_merchant_descriptor' -require 'cybersource_rest_client/models/tmsv2tokenstoken_idpaymentcredentials_order_information' -require 'cybersource_rest_client/models/tmsv2tokenstoken_idpaymentcredentials_order_information_amount_details' -require 'cybersource_rest_client/models/tmsv2tokenstoken_idpaymentcredentials_order_information_bill_to' -require 'cybersource_rest_client/models/token_permissions' -require 'cybersource_rest_client/models/tokenizedcard_request' -require 'cybersource_rest_client/models/tss_v2_get_emv_tags200_response' -require 'cybersource_rest_client/models/tss_v2_get_emv_tags200_response_emv_tag_breakdown_list' -require 'cybersource_rest_client/models/tss_v2_post_emv_tags200_response' -require 'cybersource_rest_client/models/tss_v2_post_emv_tags200_response_emv_tag_breakdown_list' -require 'cybersource_rest_client/models/tss_v2_post_emv_tags200_response_parsed_emv_tags_list' -require 'cybersource_rest_client/models/tss_v2_transactions_get200_response' -require 'cybersource_rest_client/models/tss_v2_transactions_get200_response_application_information' -require 'cybersource_rest_client/models/tss_v2_transactions_get200_response_application_information_applications' -require 'cybersource_rest_client/models/tss_v2_transactions_get200_response_bank_account_validation' -require 'cybersource_rest_client/models/tss_v2_transactions_get200_response_buyer_information' -require 'cybersource_rest_client/models/tss_v2_transactions_get200_response_client_reference_information' -require 'cybersource_rest_client/models/tss_v2_transactions_get200_response_client_reference_information_partner' -require 'cybersource_rest_client/models/tss_v2_transactions_get200_response_consumer_authentication_information' -require 'cybersource_rest_client/models/tss_v2_transactions_get200_response_consumer_authentication_information_strong_authentication' -require 'cybersource_rest_client/models/tss_v2_transactions_get200_response_device_information' -require 'cybersource_rest_client/models/tss_v2_transactions_get200_response_error_information' -require 'cybersource_rest_client/models/tss_v2_transactions_get200_response_fraud_marking_information' -require 'cybersource_rest_client/models/tss_v2_transactions_get200_response_installment_information' -require 'cybersource_rest_client/models/tss_v2_transactions_get200_response__links' -require 'cybersource_rest_client/models/tss_v2_transactions_get200_response_merchant_information' -require 'cybersource_rest_client/models/tss_v2_transactions_get200_response_merchant_information_merchant_descriptor' -require 'cybersource_rest_client/models/tss_v2_transactions_get200_response_order_information' -require 'cybersource_rest_client/models/tss_v2_transactions_get200_response_order_information_amount_details' -require 'cybersource_rest_client/models/tss_v2_transactions_get200_response_order_information_bill_to' -require 'cybersource_rest_client/models/tss_v2_transactions_get200_response_order_information_invoice_details' -require 'cybersource_rest_client/models/tss_v2_transactions_get200_response_order_information_line_items' -require 'cybersource_rest_client/models/tss_v2_transactions_get200_response_order_information_ship_to' -require 'cybersource_rest_client/models/tss_v2_transactions_get200_response_order_information_shipping_details' -require 'cybersource_rest_client/models/tss_v2_transactions_get200_response_payment_information' -require 'cybersource_rest_client/models/tss_v2_transactions_get200_response_payment_information_account_features' -require 'cybersource_rest_client/models/tss_v2_transactions_get200_response_payment_information_bank' -require 'cybersource_rest_client/models/tss_v2_transactions_get200_response_payment_information_bank_account' -require 'cybersource_rest_client/models/tss_v2_transactions_get200_response_payment_information_bank_mandate' -require 'cybersource_rest_client/models/tss_v2_transactions_get200_response_payment_information_brands' -require 'cybersource_rest_client/models/tss_v2_transactions_get200_response_payment_information_card' -require 'cybersource_rest_client/models/tss_v2_transactions_get200_response_payment_information_customer' -require 'cybersource_rest_client/models/tss_v2_transactions_get200_response_payment_information_features' -require 'cybersource_rest_client/models/tss_v2_transactions_get200_response_payment_information_fluid_data' -require 'cybersource_rest_client/models/tss_v2_transactions_get200_response_payment_information_instrument_identifier' -require 'cybersource_rest_client/models/tss_v2_transactions_get200_response_payment_information_invoice' -require 'cybersource_rest_client/models/tss_v2_transactions_get200_response_payment_information_issuer_information' -require 'cybersource_rest_client/models/tss_v2_transactions_get200_response_payment_information_network' -require 'cybersource_rest_client/models/tss_v2_transactions_get200_response_payment_information_payment_type' -require 'cybersource_rest_client/models/tss_v2_transactions_get200_response_payout_options' -require 'cybersource_rest_client/models/tss_v2_transactions_get200_response_point_of_sale_information' -require 'cybersource_rest_client/models/tss_v2_transactions_get200_response_processing_information' -require 'cybersource_rest_client/models/tss_v2_transactions_get200_response_processing_information_authorization_options' -require 'cybersource_rest_client/models/tss_v2_transactions_get200_response_processing_information_authorization_options_initiator' -require 'cybersource_rest_client/models/tss_v2_transactions_get200_response_processing_information_bank_transfer_options' -require 'cybersource_rest_client/models/tss_v2_transactions_get200_response_processing_information_capture_options' -require 'cybersource_rest_client/models/tss_v2_transactions_get200_response_processing_information_japan_payment_options' -require 'cybersource_rest_client/models/tss_v2_transactions_get200_response_processor_information' -require 'cybersource_rest_client/models/tss_v2_transactions_get200_response_processor_information_electronic_verification_results' -require 'cybersource_rest_client/models/tss_v2_transactions_get200_response_processor_information_multi_processor_routing' -require 'cybersource_rest_client/models/tss_v2_transactions_get200_response_processor_information_processor' -require 'cybersource_rest_client/models/tss_v2_transactions_get200_response_recurring_payment_information' -require 'cybersource_rest_client/models/tss_v2_transactions_get200_response_risk_information' -require 'cybersource_rest_client/models/tss_v2_transactions_get200_response_risk_information_profile' -require 'cybersource_rest_client/models/tss_v2_transactions_get200_response_risk_information_rules' -require 'cybersource_rest_client/models/tss_v2_transactions_get200_response_risk_information_score' -require 'cybersource_rest_client/models/tss_v2_transactions_get200_response_sender_information' -require 'cybersource_rest_client/models/tss_v2_transactions_get200_response_token_information' -require 'cybersource_rest_client/models/tss_v2_transactions_post201_response' -require 'cybersource_rest_client/models/tss_v2_transactions_post201_response__embedded' -require 'cybersource_rest_client/models/tss_v2_transactions_post201_response__embedded_application_information' -require 'cybersource_rest_client/models/tss_v2_transactions_post201_response__embedded_application_information_applications' -require 'cybersource_rest_client/models/tss_v2_transactions_post201_response__embedded_client_reference_information' -require 'cybersource_rest_client/models/tss_v2_transactions_post201_response__embedded_client_reference_information_partner' -require 'cybersource_rest_client/models/tss_v2_transactions_post201_response__embedded_consumer_authentication_information' -require 'cybersource_rest_client/models/tss_v2_transactions_post201_response__embedded_error_information' -require 'cybersource_rest_client/models/tss_v2_transactions_post201_response__embedded__links' -require 'cybersource_rest_client/models/tss_v2_transactions_post201_response__embedded_merchant_information' -require 'cybersource_rest_client/models/tss_v2_transactions_post201_response__embedded_order_information' -require 'cybersource_rest_client/models/tss_v2_transactions_post201_response__embedded_order_information_bill_to' -require 'cybersource_rest_client/models/tss_v2_transactions_post201_response__embedded_order_information_ship_to' -require 'cybersource_rest_client/models/tss_v2_transactions_post201_response__embedded_payment_information' -require 'cybersource_rest_client/models/tss_v2_transactions_post201_response__embedded_payment_information_bank' -require 'cybersource_rest_client/models/tss_v2_transactions_post201_response__embedded_payment_information_bank_account' -require 'cybersource_rest_client/models/tss_v2_transactions_post201_response__embedded_payment_information_card' -require 'cybersource_rest_client/models/tss_v2_transactions_post201_response__embedded_payment_information_payment_type' -require 'cybersource_rest_client/models/tss_v2_transactions_post201_response__embedded_point_of_sale_information' -require 'cybersource_rest_client/models/tss_v2_transactions_post201_response__embedded_point_of_sale_information_partner' -require 'cybersource_rest_client/models/tss_v2_transactions_post201_response__embedded_processing_information' -require 'cybersource_rest_client/models/tss_v2_transactions_post201_response__embedded_processor_information' -require 'cybersource_rest_client/models/tss_v2_transactions_post201_response__embedded_risk_information' -require 'cybersource_rest_client/models/tss_v2_transactions_post201_response__embedded_risk_information_providers' -require 'cybersource_rest_client/models/tss_v2_transactions_post201_response__embedded_risk_information_providers_fingerprint' -require 'cybersource_rest_client/models/tss_v2_transactions_post201_response__embedded_transaction_summaries' -require 'cybersource_rest_client/models/tssv2transactionsemv_tag_details_emv_details_list' -require 'cybersource_rest_client/models/ums_v1_users_get200_response' -require 'cybersource_rest_client/models/ums_v1_users_get200_response_account_information' -require 'cybersource_rest_client/models/ums_v1_users_get200_response_contact_information' -require 'cybersource_rest_client/models/ums_v1_users_get200_response_organization_information' -require 'cybersource_rest_client/models/ums_v1_users_get200_response_users' -require 'cybersource_rest_client/models/underwriting_configuration' -require 'cybersource_rest_client/models/underwriting_configuration_billing_information' -require 'cybersource_rest_client/models/underwriting_configuration_billing_information_bank_account_information' -require 'cybersource_rest_client/models/underwriting_configuration_client_reference_information' -require 'cybersource_rest_client/models/underwriting_configuration_deposit_information' -require 'cybersource_rest_client/models/underwriting_configuration_device_information' -require 'cybersource_rest_client/models/underwriting_configuration_file_attachment_information' -require 'cybersource_rest_client/models/underwriting_configuration_merchant_application' -require 'cybersource_rest_client/models/underwriting_configuration_merchant_application_products' -require 'cybersource_rest_client/models/underwriting_configuration_organization_information' -require 'cybersource_rest_client/models/underwriting_configuration_organization_information_business_information' -require 'cybersource_rest_client/models/underwriting_configuration_organization_information_business_information_address' -require 'cybersource_rest_client/models/underwriting_configuration_organization_information_business_information_address_1' -require 'cybersource_rest_client/models/underwriting_configuration_organization_information_business_information_address_2' -require 'cybersource_rest_client/models/underwriting_configuration_organization_information_business_information_business_contact' -require 'cybersource_rest_client/models/underwriting_configuration_organization_information_business_information_business_details' -require 'cybersource_rest_client/models/underwriting_configuration_business_details_product_services_subscription' -require 'cybersource_rest_client/models/underwriting_configuration_organization_information_business_information_director_information' -require 'cybersource_rest_client/models/underwriting_configuration_organization_information_business_information_owner_information' -require 'cybersource_rest_client/models/underwriting_configuration_organization_information_business_information_trading_address' -require 'cybersource_rest_client/models/underwriting_configuration_sale_representative_information' -require 'cybersource_rest_client/models/update_invoice_request' -require 'cybersource_rest_client/models/update_order_request' -require 'cybersource_rest_client/models/update_payment_link_request' -require 'cybersource_rest_client/models/update_plan_request' -require 'cybersource_rest_client/models/update_plan_response' -require 'cybersource_rest_client/models/update_plan_response_plan_information' -require 'cybersource_rest_client/models/update_status' -require 'cybersource_rest_client/models/update_subscription' -require 'cybersource_rest_client/models/update_subscription_response' -require 'cybersource_rest_client/models/update_webhook' -require 'cybersource_rest_client/models/upv1capturecontexts_capture_mandate' -require 'cybersource_rest_client/models/upv1capturecontexts_capture_mandate_cpf' -require 'cybersource_rest_client/models/upv1capturecontexts_complete_mandate' -require 'cybersource_rest_client/models/upv1capturecontexts_complete_mandate_tms' -require 'cybersource_rest_client/models/upv1capturecontexts_data' -require 'cybersource_rest_client/models/upv1capturecontexts_data_buyer_information' -require 'cybersource_rest_client/models/upv1capturecontexts_data_buyer_information_personal_identification' -require 'cybersource_rest_client/models/upv1capturecontexts_data_client_reference_information' -require 'cybersource_rest_client/models/upv1capturecontexts_data_client_reference_information_partner' -require 'cybersource_rest_client/models/upv1capturecontexts_data_consumer_authentication_information' -require 'cybersource_rest_client/models/upv1capturecontexts_data_device_information' -require 'cybersource_rest_client/models/upv1capturecontexts_data_merchant_defined_information' -require 'cybersource_rest_client/models/upv1capturecontexts_data_merchant_information' -require 'cybersource_rest_client/models/upv1capturecontexts_data_merchant_information_merchant_descriptor' -require 'cybersource_rest_client/models/upv1capturecontexts_data_order_information' -require 'cybersource_rest_client/models/upv1capturecontexts_data_order_information_amount_details' -require 'cybersource_rest_client/models/upv1capturecontexts_data_order_information_amount_details_surcharge' -require 'cybersource_rest_client/models/upv1capturecontexts_data_order_information_amount_details_tax_details' -require 'cybersource_rest_client/models/upv1capturecontexts_data_order_information_bill_to' -require 'cybersource_rest_client/models/upv1capturecontexts_data_order_information_bill_to_company' -require 'cybersource_rest_client/models/upv1capturecontexts_data_order_information_invoice_details' -require 'cybersource_rest_client/models/upv1capturecontexts_data_order_information_line_items' -require 'cybersource_rest_client/models/upv1capturecontexts_data_order_information_line_items_passenger' -require 'cybersource_rest_client/models/upv1capturecontexts_data_order_information_line_items_tax_details' -require 'cybersource_rest_client/models/upv1capturecontexts_data_order_information_ship_to' -require 'cybersource_rest_client/models/upv1capturecontexts_data_payment_information' -require 'cybersource_rest_client/models/upv1capturecontexts_data_payment_information_card' -require 'cybersource_rest_client/models/upv1capturecontexts_data_processing_information' -require 'cybersource_rest_client/models/upv1capturecontexts_data_processing_information_authorization_options' -require 'cybersource_rest_client/models/upv1capturecontexts_data_processing_information_authorization_options_initiator' -require 'cybersource_rest_client/models/upv1capturecontexts_data_processing_info_mit' -require 'cybersource_rest_client/models/upv1capturecontexts_data_recipient_information' -require 'cybersource_rest_client/models/upv1capturecontexts_order_information' -require 'cybersource_rest_client/models/upv1capturecontexts_order_information_amount_details' -require 'cybersource_rest_client/models/v1_file_details_get200_response' -require 'cybersource_rest_client/models/v1_file_details_get200_response_file_details' -require 'cybersource_rest_client/models/v1_file_details_get200_response__links' -require 'cybersource_rest_client/models/v1_file_details_get200_response__links_files' -require 'cybersource_rest_client/models/v1_file_details_get200_response__links_self' -require 'cybersource_rest_client/models/vt_config' -require 'cybersource_rest_client/models/vt_config_card_not_present' -require 'cybersource_rest_client/models/vt_config_card_not_present_global_payment_information' -require 'cybersource_rest_client/models/vt_config_card_not_present_global_payment_information_basic_information' -require 'cybersource_rest_client/models/vt_config_card_not_present_global_payment_information_merchant_defined_data_fields' -require 'cybersource_rest_client/models/vt_config_card_not_present_global_payment_information_payment_information' -require 'cybersource_rest_client/models/vt_config_card_not_present_receipt_information' -require 'cybersource_rest_client/models/vt_config_card_not_present_receipt_information_email_receipt' -require 'cybersource_rest_client/models/vt_config_card_not_present_receipt_information_header' -require 'cybersource_rest_client/models/vt_config_card_not_present_receipt_information_order_information' -require 'cybersource_rest_client/models/validate_export_compliance_request' -require 'cybersource_rest_client/models/validate_request' -require 'cybersource_rest_client/models/value_added_services_products' -require 'cybersource_rest_client/models/vas_v2_payments_post201_response' -require 'cybersource_rest_client/models/vas_v2_payments_post201_response__links' -require 'cybersource_rest_client/models/vas_v2_payments_post201_response_order_information' -require 'cybersource_rest_client/models/vas_v2_payments_post201_response_order_information_jurisdiction' -require 'cybersource_rest_client/models/vas_v2_payments_post201_response_order_information_line_items' -require 'cybersource_rest_client/models/vas_v2_payments_post201_response_order_information_tax_details' -require 'cybersource_rest_client/models/vas_v2_payments_post201_response_tax_information' -require 'cybersource_rest_client/models/vas_v2_payments_post400_response' -require 'cybersource_rest_client/models/vas_v2_tax_void200_response' -require 'cybersource_rest_client/models/vas_v2_tax_void200_response_void_amount_details' -require 'cybersource_rest_client/models/vas_v2_tax_voids_post400_response' -require 'cybersource_rest_client/models/vasv1currencyconversion_client_reference_information' -require 'cybersource_rest_client/models/vasv1currencyconversion_client_reference_information_partner' -require 'cybersource_rest_client/models/vasv1currencyconversion_order_information' -require 'cybersource_rest_client/models/vasv1currencyconversion_order_information_amount_details' -require 'cybersource_rest_client/models/vasv1currencyconversion_order_information_currency_conversion' -require 'cybersource_rest_client/models/vasv1currencyconversion_payment_information' -require 'cybersource_rest_client/models/vasv1currencyconversion_payment_information_card' -require 'cybersource_rest_client/models/vasv1currencyconversion_point_of_sale_information' -require 'cybersource_rest_client/models/vasv2tax_buyer_information' -require 'cybersource_rest_client/models/vasv2tax_client_reference_information' -require 'cybersource_rest_client/models/vasv2tax_merchant_information' -require 'cybersource_rest_client/models/vasv2tax_order_information' -require 'cybersource_rest_client/models/vasv2tax_order_information_bill_to' -require 'cybersource_rest_client/models/vasv2tax_order_information_invoice_details' -require 'cybersource_rest_client/models/vasv2tax_order_information_line_items' -require 'cybersource_rest_client/models/vasv2tax_order_information_order_acceptance' -require 'cybersource_rest_client/models/vasv2tax_order_information_order_origin' -require 'cybersource_rest_client/models/vasv2tax_order_information_ship_to' -require 'cybersource_rest_client/models/vasv2tax_order_information_shipping_details' -require 'cybersource_rest_client/models/vasv2tax_tax_information' -require 'cybersource_rest_client/models/vasv2taxid_client_reference_information' -require 'cybersource_rest_client/models/vasv2taxid_client_reference_information_partner' -require 'cybersource_rest_client/models/verify_customer_address_request' -require 'cybersource_rest_client/models/void_capture_request' -require 'cybersource_rest_client/models/void_credit_request' -require 'cybersource_rest_client/models/void_payment_request' -require 'cybersource_rest_client/models/void_refund_request' -require 'cybersource_rest_client/models/void_tax_request' - -# APIs -require 'cybersource_rest_client/api/o_auth_api' -require 'cybersource_rest_client/api/bank_account_validation_api' -require 'cybersource_rest_client/api/batches_api' -require 'cybersource_rest_client/api/billing_agreements_api' -require 'cybersource_rest_client/api/bin_lookup_api' -require 'cybersource_rest_client/api/capture_api' -require 'cybersource_rest_client/api/chargeback_details_api' -require 'cybersource_rest_client/api/chargeback_summaries_api' -require 'cybersource_rest_client/api/conversion_details_api' -require 'cybersource_rest_client/api/create_new_webhooks_api' -require 'cybersource_rest_client/api/credit_api' -require 'cybersource_rest_client/api/customer_api' -require 'cybersource_rest_client/api/customer_payment_instrument_api' -require 'cybersource_rest_client/api/customer_shipping_address_api' -require 'cybersource_rest_client/api/decision_manager_api' -require 'cybersource_rest_client/api/device_de_association_api' -require 'cybersource_rest_client/api/device_search_api' -require 'cybersource_rest_client/api/download_dtd_api' -require 'cybersource_rest_client/api/download_xsd_api' -require 'cybersource_rest_client/api/emv_tag_details_api' -require 'cybersource_rest_client/api/flex_api_api' -require 'cybersource_rest_client/api/instrument_identifier_api' -require 'cybersource_rest_client/api/interchange_clearing_level_details_api' -require 'cybersource_rest_client/api/invoice_settings_api' -require 'cybersource_rest_client/api/invoices_api' -require 'cybersource_rest_client/api/manage_webhooks_api' -require 'cybersource_rest_client/api/merchant_boarding_api' -require 'cybersource_rest_client/api/merchant_defined_fields_api' -require 'cybersource_rest_client/api/microform_integration_api' -require 'cybersource_rest_client/api/net_fundings_api' -require 'cybersource_rest_client/api/notification_of_changes_api' -require 'cybersource_rest_client/api/offers_api' -require 'cybersource_rest_client/api/orders_api' -require 'cybersource_rest_client/api/payer_authentication_api' -require 'cybersource_rest_client/api/payment_batch_summaries_api' -require 'cybersource_rest_client/api/payment_instrument_api' -require 'cybersource_rest_client/api/payment_links_api' -require 'cybersource_rest_client/api/payment_tokens_api' -require 'cybersource_rest_client/api/payments_api' -require 'cybersource_rest_client/api/payouts_api' -require 'cybersource_rest_client/api/plans_api' -require 'cybersource_rest_client/api/purchase_and_refund_details_api' -require 'cybersource_rest_client/api/push_funds_api' -require 'cybersource_rest_client/api/refund_api' -require 'cybersource_rest_client/api/report_definitions_api' -require 'cybersource_rest_client/api/report_downloads_api' -require 'cybersource_rest_client/api/report_subscriptions_api' -require 'cybersource_rest_client/api/reports_api' -require 'cybersource_rest_client/api/retrieval_details_api' -require 'cybersource_rest_client/api/retrieval_summaries_api' -require 'cybersource_rest_client/api/reversal_api' -require 'cybersource_rest_client/api/search_transactions_api' -require 'cybersource_rest_client/api/secure_file_share_api' -require 'cybersource_rest_client/api/subscriptions_api' -require 'cybersource_rest_client/api/subscriptions_follow_ons_api' -require 'cybersource_rest_client/api/taxes_api' -require 'cybersource_rest_client/api/token_api' -require 'cybersource_rest_client/api/tokenize_api' -require 'cybersource_rest_client/api/tokenized_card_api' -require 'cybersource_rest_client/api/transaction_batches_api' -require 'cybersource_rest_client/api/transaction_details_api' -require 'cybersource_rest_client/api/transient_token_data_api' -require 'cybersource_rest_client/api/unified_checkout_capture_context_api' -require 'cybersource_rest_client/api/user_management_api' -require 'cybersource_rest_client/api/user_management_search_api' -require 'cybersource_rest_client/api/verification_api' -require 'cybersource_rest_client/api/void_api' - -# Utilities -require 'cybersource_rest_client/utilities/flex/token_verification' -require 'cybersource_rest_client/utilities/jwe_utility' -require 'cybersource_rest_client/utilities/tracking/sdk_tracker' -require 'cybersource_rest_client/utilities/capture_context/capture_context_parsing_utility' - - -module CyberSource - class << self - # Customize default settings for the SDK using block. - # CyberSource.configure do |config| - # config.username = "xxx" - # config.password = "xxx" - # end - # If no block given, return the default Configuration object. - def configure - if block_given? - yield(Configuration.default) - else - Configuration.default - end - end - end -end +=begin +#CyberSource Merged Spec + +#All CyberSource API specs merged together. These are available at https://developer.cybersource.com/api/reference/api-reference.html + +OpenAPI spec version: 0.0.1 + +Generated by: https://github.com/swagger-api/swagger-codegen.git +Swagger Codegen version: 2.4.38 +=end + +# Authentication SDK +require 'AuthenticationSDK/util/Utility.rb' +require 'AuthenticationSDK/util/PropertiesUtil.rb' +require 'AuthenticationSDK/util/Constants.rb' +require 'AuthenticationSDK/util/Cache.rb' +require 'AuthenticationSDK/util/ExceptionHandler.rb' +require 'AuthenticationSDK/logging/log_configuration.rb' +require 'AuthenticationSDK/logging/log_factory.rb' +require 'AuthenticationSDK/logging/sensitive_logging.rb' +require 'AuthenticationSDK/core/MerchantConfig.rb' +require 'AuthenticationSDK/core/ITokenGeneration.rb' +require 'AuthenticationSDK/core/Authorization.rb' +require 'AuthenticationSDK/authentication/payloadDigest/digest.rb' +require 'AuthenticationSDK/authentication/jwt/JwtToken.rb' +require 'AuthenticationSDK/authentication/http/HttpSignatureHeader.rb' +require 'AuthenticationSDK/authentication/http/GetSignatureParameter.rb' + +# Common files +require 'cybersource_rest_client/api_client' +require 'cybersource_rest_client/api_error' +require 'cybersource_rest_client/version' +require 'cybersource_rest_client/configuration' + +# Models +require 'cybersource_rest_client/models/resource_not_found_error' +require 'cybersource_rest_client/models/unauthorized_client_error' +require 'cybersource_rest_client/models/access_token_response' +require 'cybersource_rest_client/models/bad_request_error' +require 'cybersource_rest_client/models/create_access_token_request' +require 'cybersource_rest_client/models/account_validations_request' +require 'cybersource_rest_client/models/accountupdaterv1batches_included' +require 'cybersource_rest_client/models/accountupdaterv1batches_included_tokens' +require 'cybersource_rest_client/models/activate_deactivate_plan_response' +require 'cybersource_rest_client/models/activate_subscription_response' +require 'cybersource_rest_client/models/activate_subscription_response_subscription_information' +require 'cybersource_rest_client/models/add_negative_list_request' +require 'cybersource_rest_client/models/auth_reversal_request' +require 'cybersource_rest_client/models/bavsv1accountvalidations_client_reference_information' +require 'cybersource_rest_client/models/bavsv1accountvalidations_payment_information' +require 'cybersource_rest_client/models/bavsv1accountvalidations_payment_information_bank' +require 'cybersource_rest_client/models/bavsv1accountvalidations_payment_information_bank_account' +require 'cybersource_rest_client/models/bavsv1accountvalidations_processing_information' +require 'cybersource_rest_client/models/binv1binlookup_client_reference_information' +require 'cybersource_rest_client/models/binv1binlookup_payment_information' +require 'cybersource_rest_client/models/binv1binlookup_payment_information_card' +require 'cybersource_rest_client/models/binv1binlookup_processing_information' +require 'cybersource_rest_client/models/binv1binlookup_processing_information_payout_options' +require 'cybersource_rest_client/models/binv1binlookup_token_information' +require 'cybersource_rest_client/models/boardingv1registrations_document_information' +require 'cybersource_rest_client/models/boardingv1registrations_document_information_signed_documents' +require 'cybersource_rest_client/models/boardingv1registrations_integration_information' +require 'cybersource_rest_client/models/boardingv1registrations_integration_information_oauth2' +require 'cybersource_rest_client/models/boardingv1registrations_integration_information_tenant_configurations' +require 'cybersource_rest_client/models/boardingv1registrations_integration_information_tenant_information' +require 'cybersource_rest_client/models/boardingv1registrations_organization_information' +require 'cybersource_rest_client/models/boardingv1registrations_organization_information_business_information' +require 'cybersource_rest_client/models/boardingv1registrations_organization_information_business_information_address' +require 'cybersource_rest_client/models/boardingv1registrations_organization_information_business_information_business_contact' +require 'cybersource_rest_client/models/boardingv1registrations_organization_information_kyc' +require 'cybersource_rest_client/models/boardingv1registrations_organization_information_kyc_deposit_bank_account' +require 'cybersource_rest_client/models/boardingv1registrations_organization_information_owners' +require 'cybersource_rest_client/models/boardingv1registrations_product_information' +require 'cybersource_rest_client/models/boardingv1registrations_product_information_selected_products' +require 'cybersource_rest_client/models/boardingv1registrations_registration_information' +require 'cybersource_rest_client/models/body' +require 'cybersource_rest_client/models/cancel_subscription_response' +require 'cybersource_rest_client/models/cancel_subscription_response_subscription_information' +require 'cybersource_rest_client/models/capture_payment_request' +require 'cybersource_rest_client/models/card_processing_config' +require 'cybersource_rest_client/models/card_processing_config_common' +require 'cybersource_rest_client/models/card_processing_config_common_acquirer' +require 'cybersource_rest_client/models/card_processing_config_common_acquirers' +require 'cybersource_rest_client/models/card_processing_config_common_currencies' +require 'cybersource_rest_client/models/card_processing_config_common_currencies_1' +require 'cybersource_rest_client/models/card_processing_config_common_merchant_descriptor_information' +require 'cybersource_rest_client/models/card_processing_config_common_payment_types' +require 'cybersource_rest_client/models/card_processing_config_common_processors' +require 'cybersource_rest_client/models/card_processing_config_features' +require 'cybersource_rest_client/models/card_processing_config_features_card_not_present' +require 'cybersource_rest_client/models/card_processing_config_features_card_not_present_installment' +require 'cybersource_rest_client/models/card_processing_config_features_card_not_present_payouts' +require 'cybersource_rest_client/models/card_processing_config_features_card_not_present_payouts_currencies' +require 'cybersource_rest_client/models/card_processing_config_features_card_not_present_processors' +require 'cybersource_rest_client/models/card_processing_config_features_card_present' +require 'cybersource_rest_client/models/card_processing_config_features_card_present_processors' +require 'cybersource_rest_client/models/case_management_actions_request' +require 'cybersource_rest_client/models/case_management_comments_request' +require 'cybersource_rest_client/models/check_payer_auth_enrollment_request' +require 'cybersource_rest_client/models/commerce_solutions_products' +require 'cybersource_rest_client/models/commerce_solutions_products_account_updater' +require 'cybersource_rest_client/models/commerce_solutions_products_account_updater_configuration_information' +require 'cybersource_rest_client/models/commerce_solutions_products_account_updater_configuration_information_configurations' +require 'cybersource_rest_client/models/commerce_solutions_products_account_updater_configuration_information_configurations_amex' +require 'cybersource_rest_client/models/commerce_solutions_products_account_updater_configuration_information_configurations_master_card' +require 'cybersource_rest_client/models/commerce_solutions_products_account_updater_configuration_information_configurations_visa' +require 'cybersource_rest_client/models/commerce_solutions_products_bin_lookup' +require 'cybersource_rest_client/models/commerce_solutions_products_bin_lookup_configuration_information' +require 'cybersource_rest_client/models/commerce_solutions_products_bin_lookup_configuration_information_configurations' +require 'cybersource_rest_client/models/commerce_solutions_products_token_management' +require 'cybersource_rest_client/models/commerce_solutions_products_token_management_configuration_information' +require 'cybersource_rest_client/models/commerce_solutions_products_token_management_configuration_information_configurations' +require 'cybersource_rest_client/models/commerce_solutions_products_token_management_configuration_information_configurations_vault' +require 'cybersource_rest_client/models/create_adhoc_report_request' +require 'cybersource_rest_client/models/create_billing_agreement' +require 'cybersource_rest_client/models/create_bin_lookup_request' +require 'cybersource_rest_client/models/create_bundled_decision_manager_case_request' +require 'cybersource_rest_client/models/create_credit_request' +require 'cybersource_rest_client/models/create_invoice_request' +require 'cybersource_rest_client/models/create_order_request' +require 'cybersource_rest_client/models/create_payment_link_request' +require 'cybersource_rest_client/models/create_payment_request' +require 'cybersource_rest_client/models/create_plan_request' +require 'cybersource_rest_client/models/create_plan_response' +require 'cybersource_rest_client/models/create_plan_response_plan_information' +require 'cybersource_rest_client/models/create_report_subscription_request' +require 'cybersource_rest_client/models/create_search_request' +require 'cybersource_rest_client/models/create_session_req' +require 'cybersource_rest_client/models/create_session_request' +require 'cybersource_rest_client/models/create_subscription_request' +require 'cybersource_rest_client/models/create_subscription_request_1' +require 'cybersource_rest_client/models/create_subscription_response' +require 'cybersource_rest_client/models/create_subscription_response__links' +require 'cybersource_rest_client/models/create_subscription_response_subscription_information' +require 'cybersource_rest_client/models/create_webhook' +require 'cybersource_rest_client/models/de_association_request_body' +require 'cybersource_rest_client/models/delete_plan_response' +require 'cybersource_rest_client/models/device_de_associate_v3_request' +require 'cybersource_rest_client/models/dm_config' +require 'cybersource_rest_client/models/dm_config_organization' +require 'cybersource_rest_client/models/dm_config_portfolio_controls' +require 'cybersource_rest_client/models/dm_config_processing_options' +require 'cybersource_rest_client/models/dm_config_thirdparty' +require 'cybersource_rest_client/models/dm_config_thirdparty_provider' +require 'cybersource_rest_client/models/dm_config_thirdparty_provider_accurint' +require 'cybersource_rest_client/models/dm_config_thirdparty_provider_accurint_credentials' +require 'cybersource_rest_client/models/dm_config_thirdparty_provider_credilink' +require 'cybersource_rest_client/models/dm_config_thirdparty_provider_credilink_credentials' +require 'cybersource_rest_client/models/dm_config_thirdparty_provider_ekata' +require 'cybersource_rest_client/models/dm_config_thirdparty_provider_ekata_credentials' +require 'cybersource_rest_client/models/dm_config_thirdparty_provider_emailage' +require 'cybersource_rest_client/models/dm_config_thirdparty_provider_perseuss' +require 'cybersource_rest_client/models/dm_config_thirdparty_provider_signifyd' +require 'cybersource_rest_client/models/dm_config_thirdparty_provider_signifyd_credentials' +require 'cybersource_rest_client/models/dm_config_thirdparty_provider_targus' +require 'cybersource_rest_client/models/dm_config_thirdparty_provider_targus_credentials' +require 'cybersource_rest_client/models/dmsv3devicesdeassociate_devices' +require 'cybersource_rest_client/models/e_check_config' +require 'cybersource_rest_client/models/e_check_config_common' +require 'cybersource_rest_client/models/e_check_config_common_internal_only' +require 'cybersource_rest_client/models/e_check_config_common_internal_only_processors' +require 'cybersource_rest_client/models/e_check_config_common_processors' +require 'cybersource_rest_client/models/e_check_config_features' +require 'cybersource_rest_client/models/e_check_config_features_account_validation_service' +require 'cybersource_rest_client/models/e_check_config_features_account_validation_service_internal_only' +require 'cybersource_rest_client/models/e_check_config_features_account_validation_service_internal_only_processors' +require 'cybersource_rest_client/models/e_check_config_features_account_validation_service_processors' +require 'cybersource_rest_client/models/e_check_config_underwriting' +require 'cybersource_rest_client/models/flexv2sessions_fields' +require 'cybersource_rest_client/models/flexv2sessions_fields_order_information' +require 'cybersource_rest_client/models/flexv2sessions_fields_order_information_amount_details' +require 'cybersource_rest_client/models/flexv2sessions_fields_order_information_amount_details_total_amount' +require 'cybersource_rest_client/models/flexv2sessions_fields_order_information_bill_to' +require 'cybersource_rest_client/models/flexv2sessions_fields_order_information_ship_to' +require 'cybersource_rest_client/models/flexv2sessions_fields_payment_information' +require 'cybersource_rest_client/models/flexv2sessions_fields_payment_information_card' +require 'cybersource_rest_client/models/fraud_marking_action_request' +require 'cybersource_rest_client/models/generate_capture_context_request' +require 'cybersource_rest_client/models/generate_flex_api_capture_context_request' +require 'cybersource_rest_client/models/generate_unified_checkout_capture_context_request' +require 'cybersource_rest_client/models/get_all_plans_response' +require 'cybersource_rest_client/models/get_all_plans_response__links' +require 'cybersource_rest_client/models/get_all_plans_response_order_information' +require 'cybersource_rest_client/models/get_all_plans_response_order_information_amount_details' +require 'cybersource_rest_client/models/get_all_plans_response_plan_information' +require 'cybersource_rest_client/models/get_all_plans_response_plan_information_billing_cycles' +require 'cybersource_rest_client/models/get_all_plans_response_plan_information_billing_period' +require 'cybersource_rest_client/models/get_all_plans_response_plans' +require 'cybersource_rest_client/models/get_all_subscriptions_response' +require 'cybersource_rest_client/models/get_all_subscriptions_response_client_reference_information' +require 'cybersource_rest_client/models/get_all_subscriptions_response__links' +require 'cybersource_rest_client/models/get_all_subscriptions_response_order_information' +require 'cybersource_rest_client/models/get_all_subscriptions_response_order_information_bill_to' +require 'cybersource_rest_client/models/get_all_subscriptions_response_payment_information' +require 'cybersource_rest_client/models/get_all_subscriptions_response_payment_information_customer' +require 'cybersource_rest_client/models/get_all_subscriptions_response_plan_information' +require 'cybersource_rest_client/models/get_all_subscriptions_response_plan_information_billing_cycles' +require 'cybersource_rest_client/models/get_all_subscriptions_response_subscription_information' +require 'cybersource_rest_client/models/get_all_subscriptions_response_subscriptions' +require 'cybersource_rest_client/models/get_plan_code_response' +require 'cybersource_rest_client/models/get_plan_response' +require 'cybersource_rest_client/models/get_subscription_code_response' +require 'cybersource_rest_client/models/get_subscription_response' +require 'cybersource_rest_client/models/get_subscription_response_1' +require 'cybersource_rest_client/models/get_subscription_response_1_buyer_information' +require 'cybersource_rest_client/models/get_subscription_response_1__links' +require 'cybersource_rest_client/models/get_subscription_response_1_payment_instrument' +require 'cybersource_rest_client/models/get_subscription_response_1_payment_instrument_bank_account' +require 'cybersource_rest_client/models/get_subscription_response_1_payment_instrument_buyer_information' +require 'cybersource_rest_client/models/get_subscription_response_1_payment_instrument_card' +require 'cybersource_rest_client/models/get_subscription_response_1_shipping_address' +require 'cybersource_rest_client/models/get_subscription_response_reactivation_information' +require 'cybersource_rest_client/models/increment_auth_request' +require 'cybersource_rest_client/models/inline_response_200' +require 'cybersource_rest_client/models/inline_response_200_1' +require 'cybersource_rest_client/models/inline_response_200_10' +require 'cybersource_rest_client/models/inline_response_200_10_devices' +require 'cybersource_rest_client/models/inline_response_200_10_payment_processor_to_terminal_map' +require 'cybersource_rest_client/models/inline_response_200_11' +require 'cybersource_rest_client/models/inline_response_200_11__embedded' +require 'cybersource_rest_client/models/inline_response_200_11__embedded_batches' +require 'cybersource_rest_client/models/inline_response_200_11__embedded__links' +require 'cybersource_rest_client/models/inline_response_200_11__embedded__links_reports' +require 'cybersource_rest_client/models/inline_response_200_11__embedded_totals' +require 'cybersource_rest_client/models/inline_response_200_11__links' +require 'cybersource_rest_client/models/inline_response_200_12' +require 'cybersource_rest_client/models/inline_response_200_12_billing' +require 'cybersource_rest_client/models/inline_response_200_12__links' +require 'cybersource_rest_client/models/inline_response_200_12__links_report' +require 'cybersource_rest_client/models/inline_response_200_13' +require 'cybersource_rest_client/models/inline_response_200_13_records' +require 'cybersource_rest_client/models/inline_response_200_13_response_record' +require 'cybersource_rest_client/models/inline_response_200_13_response_record_additional_updates' +require 'cybersource_rest_client/models/inline_response_200_13_source_record' +require 'cybersource_rest_client/models/inline_response_200_14' +require 'cybersource_rest_client/models/inline_response_200_15' +require 'cybersource_rest_client/models/inline_response_200_15_client_reference_information' +require 'cybersource_rest_client/models/inline_response_200_1_content' +require 'cybersource_rest_client/models/inline_response_200_2' +require 'cybersource_rest_client/models/inline_response_200_2__embedded' +require 'cybersource_rest_client/models/inline_response_200_2__embedded_capture' +require 'cybersource_rest_client/models/inline_response_200_2__embedded_capture__links' +require 'cybersource_rest_client/models/inline_response_200_2__embedded_capture__links_self' +require 'cybersource_rest_client/models/inline_response_200_2__embedded_reversal' +require 'cybersource_rest_client/models/inline_response_200_2__embedded_reversal__links' +require 'cybersource_rest_client/models/inline_response_200_2__embedded_reversal__links_self' +require 'cybersource_rest_client/models/inline_response_200_3' +require 'cybersource_rest_client/models/inline_response_200_4' +require 'cybersource_rest_client/models/inline_response_200_4_integration_information' +require 'cybersource_rest_client/models/inline_response_200_4_integration_information_tenant_configurations' +require 'cybersource_rest_client/models/inline_response_200_5' +require 'cybersource_rest_client/models/inline_response_200_6' +require 'cybersource_rest_client/models/inline_response_200_7' +require 'cybersource_rest_client/models/inline_response_200_8' +require 'cybersource_rest_client/models/inline_response_200_8_devices' +require 'cybersource_rest_client/models/inline_response_200_9' +require 'cybersource_rest_client/models/inline_response_200_details' +require 'cybersource_rest_client/models/inline_response_200_errors' +require 'cybersource_rest_client/models/inline_response_200_responses' +require 'cybersource_rest_client/models/inline_response_201' +require 'cybersource_rest_client/models/inline_response_201_1' +require 'cybersource_rest_client/models/inline_response_201_2' +require 'cybersource_rest_client/models/inline_response_201_2_payout_information' +require 'cybersource_rest_client/models/inline_response_201_2_payout_information_pull_funds' +require 'cybersource_rest_client/models/inline_response_201_2_payout_information_push_funds' +require 'cybersource_rest_client/models/inline_response_201_3' +require 'cybersource_rest_client/models/inline_response_201_3_integration_information' +require 'cybersource_rest_client/models/inline_response_201_3_integration_information_tenant_configurations' +require 'cybersource_rest_client/models/inline_response_201_3_organization_information' +require 'cybersource_rest_client/models/inline_response_201_3_product_information_setups' +require 'cybersource_rest_client/models/inline_response_201_3_registration_information' +require 'cybersource_rest_client/models/inline_response_201_3_setups' +require 'cybersource_rest_client/models/inline_response_201_3_setups_commerce_solutions' +require 'cybersource_rest_client/models/inline_response_201_3_setups_payments' +require 'cybersource_rest_client/models/inline_response_201_3_setups_payments_alternative_payment_methods' +require 'cybersource_rest_client/models/inline_response_201_3_setups_payments_alternative_payment_methods_configuration_status' +require 'cybersource_rest_client/models/inline_response_201_3_setups_payments_card_processing' +require 'cybersource_rest_client/models/inline_response_201_3_setups_payments_card_processing_configuration_status' +require 'cybersource_rest_client/models/inline_response_201_3_setups_payments_card_processing_subscription_status' +require 'cybersource_rest_client/models/inline_response_201_3_setups_payments_digital_payments' +require 'cybersource_rest_client/models/inline_response_201_3_setups_risk' +require 'cybersource_rest_client/models/inline_response_201_3_setups_value_added_services' +require 'cybersource_rest_client/models/inline_response_201_4' +require 'cybersource_rest_client/models/inline_response_201_4_key_information' +require 'cybersource_rest_client/models/inline_response_201_4_key_information_error_information' +require 'cybersource_rest_client/models/inline_response_201_4_key_information_error_information_details' +require 'cybersource_rest_client/models/inline_response_201_5' +require 'cybersource_rest_client/models/inline_response_201_6' +require 'cybersource_rest_client/models/inline_response_201_6_payloads' +require 'cybersource_rest_client/models/inline_response_201_6_payloads_test_payload' +require 'cybersource_rest_client/models/inline_response_201_7' +require 'cybersource_rest_client/models/inline_response_201_8' +require 'cybersource_rest_client/models/inline_response_201_8_client_reference_information' +require 'cybersource_rest_client/models/inline_response_201_8_error_information' +require 'cybersource_rest_client/models/inline_response_201_8_order_information' +require 'cybersource_rest_client/models/inline_response_201_8_order_information_currency_conversion' +require 'cybersource_rest_client/models/inline_response_201_8_order_information_currency_conversion_offer' +require 'cybersource_rest_client/models/inline_response_201_8_processor_information' +require 'cybersource_rest_client/models/inline_response_201_order_information' +require 'cybersource_rest_client/models/inline_response_201_order_information_ship_to' +require 'cybersource_rest_client/models/inline_response_201_payment_information' +require 'cybersource_rest_client/models/inline_response_201_payment_information_e_wallet' +require 'cybersource_rest_client/models/inline_response_201_payment_information_tokenized_payment_method' +require 'cybersource_rest_client/models/inline_response_202' +require 'cybersource_rest_client/models/inline_response_202__links' +require 'cybersource_rest_client/models/inline_response_202__links_status' +require 'cybersource_rest_client/models/inline_response_206' +require 'cybersource_rest_client/models/inline_response_400' +require 'cybersource_rest_client/models/inline_response_400_1' +require 'cybersource_rest_client/models/inline_response_400_10' +require 'cybersource_rest_client/models/inline_response_400_1_details' +require 'cybersource_rest_client/models/inline_response_400_2' +require 'cybersource_rest_client/models/inline_response_400_3' +require 'cybersource_rest_client/models/inline_response_400_4' +require 'cybersource_rest_client/models/inline_response_400_5' +require 'cybersource_rest_client/models/inline_response_400_6' +require 'cybersource_rest_client/models/inline_response_400_6_fields' +require 'cybersource_rest_client/models/inline_response_400_7' +require 'cybersource_rest_client/models/inline_response_400_7_details' +require 'cybersource_rest_client/models/inline_response_400_8' +require 'cybersource_rest_client/models/inline_response_400_8_details' +require 'cybersource_rest_client/models/inline_response_400_9' +require 'cybersource_rest_client/models/inline_response_400_9_details' +require 'cybersource_rest_client/models/inline_response_400_details' +require 'cybersource_rest_client/models/inline_response_400_errors' +require 'cybersource_rest_client/models/inline_response_401' +require 'cybersource_rest_client/models/inline_response_401_1' +require 'cybersource_rest_client/models/inline_response_401_1_fields' +require 'cybersource_rest_client/models/inline_response_401_1__links' +require 'cybersource_rest_client/models/inline_response_401_1__links_self' +require 'cybersource_rest_client/models/inline_response_403' +require 'cybersource_rest_client/models/inline_response_403_1' +require 'cybersource_rest_client/models/inline_response_403_2' +require 'cybersource_rest_client/models/inline_response_403_3' +require 'cybersource_rest_client/models/inline_response_403_errors' +require 'cybersource_rest_client/models/inline_response_404' +require 'cybersource_rest_client/models/inline_response_404_1' +require 'cybersource_rest_client/models/inline_response_404_1_details' +require 'cybersource_rest_client/models/inline_response_404_2' +require 'cybersource_rest_client/models/inline_response_404_3' +require 'cybersource_rest_client/models/inline_response_404_3_details' +require 'cybersource_rest_client/models/inline_response_404_4' +require 'cybersource_rest_client/models/inline_response_404_5' +require 'cybersource_rest_client/models/inline_response_409' +require 'cybersource_rest_client/models/inline_response_409_errors' +require 'cybersource_rest_client/models/inline_response_410' +require 'cybersource_rest_client/models/inline_response_410_errors' +require 'cybersource_rest_client/models/inline_response_412' +require 'cybersource_rest_client/models/inline_response_412_errors' +require 'cybersource_rest_client/models/inline_response_422' +require 'cybersource_rest_client/models/inline_response_422_1' +require 'cybersource_rest_client/models/inline_response_422_2' +require 'cybersource_rest_client/models/inline_response_424' +require 'cybersource_rest_client/models/inline_response_424_errors' +require 'cybersource_rest_client/models/inline_response_500' +require 'cybersource_rest_client/models/inline_response_500_1' +require 'cybersource_rest_client/models/inline_response_500_2' +require 'cybersource_rest_client/models/inline_response_500_3' +require 'cybersource_rest_client/models/inline_response_500_errors' +require 'cybersource_rest_client/models/inline_response_502' +require 'cybersource_rest_client/models/inline_response_502_1' +require 'cybersource_rest_client/models/inline_response_502_2' +require 'cybersource_rest_client/models/inline_response_503' +require 'cybersource_rest_client/models/inline_response_default' +require 'cybersource_rest_client/models/inline_response_default__links' +require 'cybersource_rest_client/models/inline_response_default__links_next' +require 'cybersource_rest_client/models/inline_response_default_response_status' +require 'cybersource_rest_client/models/inline_response_default_response_status_details' +require 'cybersource_rest_client/models/intimate_billing_agreement' +require 'cybersource_rest_client/models/invoice_settings_request' +require 'cybersource_rest_client/models/invoicing_v2_invoice_settings_get200_response' +require 'cybersource_rest_client/models/invoicing_v2_invoice_settings_get200_response_invoice_settings_information' +require 'cybersource_rest_client/models/invoicing_v2_invoice_settings_get200_response_invoice_settings_information_header_style' +require 'cybersource_rest_client/models/invoicing_v2_invoice_settings_get200_response_merchant_information' +require 'cybersource_rest_client/models/invoicing_v2_invoice_settings_get200_response_merchant_information_address_details' +require 'cybersource_rest_client/models/invoicing_v2_invoices_all_get200_response' +require 'cybersource_rest_client/models/invoicing_v2_invoices_all_get200_response_customer_information' +require 'cybersource_rest_client/models/invoicing_v2_invoices_all_get200_response_invoice_information' +require 'cybersource_rest_client/models/invoicing_v2_invoices_all_get200_response_invoices' +require 'cybersource_rest_client/models/invoicing_v2_invoices_all_get200_response__links' +require 'cybersource_rest_client/models/invoicing_v2_invoices_all_get200_response_order_information' +require 'cybersource_rest_client/models/invoicing_v2_invoices_all_get200_response_order_information_amount_details' +require 'cybersource_rest_client/models/invoicing_v2_invoices_all_get400_response' +require 'cybersource_rest_client/models/invoicing_v2_invoices_all_get404_response' +require 'cybersource_rest_client/models/invoicing_v2_invoices_all_get502_response' +require 'cybersource_rest_client/models/invoicing_v2_invoices_cancel200_response' +require 'cybersource_rest_client/models/invoicing_v2_invoices_get200_response' +require 'cybersource_rest_client/models/invoicing_v2_invoices_get200_response_invoice_history' +require 'cybersource_rest_client/models/invoicing_v2_invoices_get200_response_transaction_details' +require 'cybersource_rest_client/models/invoicing_v2_invoices_post201_response' +require 'cybersource_rest_client/models/invoicing_v2_invoices_post201_response_invoice_information' +require 'cybersource_rest_client/models/invoicing_v2_invoices_post201_response_invoice_information_custom_labels' +require 'cybersource_rest_client/models/invoicing_v2_invoices_post201_response_merchant_defined_field_values_with_definition' +require 'cybersource_rest_client/models/invoicing_v2_invoices_post201_response_order_information' +require 'cybersource_rest_client/models/invoicing_v2_invoices_post201_response_order_information_amount_details' +require 'cybersource_rest_client/models/invoicing_v2_invoices_post202_response' +require 'cybersource_rest_client/models/invoicing_v2_invoices_publish200_response' +require 'cybersource_rest_client/models/invoicing_v2_invoices_put200_response' +require 'cybersource_rest_client/models/invoicing_v2_invoices_send200_response' +require 'cybersource_rest_client/models/invoicingv2invoice_settings_invoice_settings_information' +require 'cybersource_rest_client/models/invoicingv2invoices_client_reference_information' +require 'cybersource_rest_client/models/invoicingv2invoices_client_reference_information_partner' +require 'cybersource_rest_client/models/invoicingv2invoices_customer_information' +require 'cybersource_rest_client/models/invoicingv2invoices_customer_information_company' +require 'cybersource_rest_client/models/invoicingv2invoices_invoice_information' +require 'cybersource_rest_client/models/invoicingv2invoices_merchant_defined_field_values' +require 'cybersource_rest_client/models/invoicingv2invoices_order_information' +require 'cybersource_rest_client/models/invoicingv2invoices_order_information_amount_details' +require 'cybersource_rest_client/models/invoicingv2invoices_order_information_amount_details_freight' +require 'cybersource_rest_client/models/invoicingv2invoices_order_information_amount_details_tax_details' +require 'cybersource_rest_client/models/invoicingv2invoices_order_information_line_items' +require 'cybersource_rest_client/models/invoicingv2invoices_processing_information' +require 'cybersource_rest_client/models/invoicingv2invoicesid_invoice_information' +require 'cybersource_rest_client/models/iplv2paymentlinks_order_information' +require 'cybersource_rest_client/models/iplv2paymentlinks_order_information_amount_details' +require 'cybersource_rest_client/models/iplv2paymentlinks_order_information_line_items' +require 'cybersource_rest_client/models/iplv2paymentlinks_processing_information' +require 'cybersource_rest_client/models/iplv2paymentlinks_purchase_information' +require 'cybersource_rest_client/models/iplv2paymentlinksid_order_information' +require 'cybersource_rest_client/models/iplv2paymentlinksid_processing_information' +require 'cybersource_rest_client/models/iplv2paymentlinksid_purchase_information' +require 'cybersource_rest_client/models/kmsegressv2keysasym_client_reference_information' +require 'cybersource_rest_client/models/kmsegressv2keysasym_key_information' +require 'cybersource_rest_client/models/kmsegressv2keyssym_client_reference_information' +require 'cybersource_rest_client/models/kmsegressv2keyssym_key_information' +require 'cybersource_rest_client/models/merchant_defined_field_core' +require 'cybersource_rest_client/models/merchant_defined_field_definition_request' +require 'cybersource_rest_client/models/merchant_initiated_transaction_object' +require 'cybersource_rest_client/models/microformv2sessions_transient_token_response_options' +require 'cybersource_rest_client/models/mit_reversal_request' +require 'cybersource_rest_client/models/mit_void_request' +require 'cybersource_rest_client/models/model_400_upload_batch_file_response' +require 'cybersource_rest_client/models/modify_billing_agreement' +require 'cybersource_rest_client/models/network_token_enrollment' +require 'cybersource_rest_client/models/network_token_services_enablement' +require 'cybersource_rest_client/models/network_token_services_enablement_mastercard_digital_enablement_service' +require 'cybersource_rest_client/models/network_token_services_enablement_visa_token_service' +require 'cybersource_rest_client/models/notificationsubscriptionsv2productsorganization_id_event_types' +require 'cybersource_rest_client/models/notificationsubscriptionsv2webhooks_products' +require 'cybersource_rest_client/models/notificationsubscriptionsv2webhooks_products_1' +require 'cybersource_rest_client/models/notificationsubscriptionsv2webhooks_retry_policy' +require 'cybersource_rest_client/models/notificationsubscriptionsv2webhooks_security_policy' +require 'cybersource_rest_client/models/notificationsubscriptionsv2webhooks_security_policy_config' +require 'cybersource_rest_client/models/notificationsubscriptionsv2webhooks_security_policy_config_additional_config' +require 'cybersource_rest_client/models/oct_create_payment_request' +require 'cybersource_rest_client/models/offer_request' +require 'cybersource_rest_client/models/order_payment_request' +require 'cybersource_rest_client/models/patch_customer_payment_instrument_request' +require 'cybersource_rest_client/models/patch_customer_request' +require 'cybersource_rest_client/models/patch_customer_shipping_address_request' +require 'cybersource_rest_client/models/patch_instrument_identifier_request' +require 'cybersource_rest_client/models/patch_payment_instrument_request' +require 'cybersource_rest_client/models/payer_auth_config' +require 'cybersource_rest_client/models/payer_auth_config_card_types' +require 'cybersource_rest_client/models/payer_auth_config_card_types_cb' +require 'cybersource_rest_client/models/payer_auth_config_card_types_j_cbj_secure' +require 'cybersource_rest_client/models/payer_auth_config_card_types_verified_by_visa' +require 'cybersource_rest_client/models/payer_auth_config_card_types_verified_by_visa_currencies' +require 'cybersource_rest_client/models/payer_auth_setup_request' +require 'cybersource_rest_client/models/payment_instrument_list' +require 'cybersource_rest_client/models/payment_instrument_list_1' +require 'cybersource_rest_client/models/payment_instrument_list_1__embedded' +require 'cybersource_rest_client/models/payment_instrument_list_1__embedded__embedded' +require 'cybersource_rest_client/models/payment_instrument_list_1__embedded_payment_instruments' +require 'cybersource_rest_client/models/payment_instrument_list__embedded' +require 'cybersource_rest_client/models/payment_instrument_list__links' +require 'cybersource_rest_client/models/payment_instrument_list__links_first' +require 'cybersource_rest_client/models/payment_instrument_list__links_last' +require 'cybersource_rest_client/models/payment_instrument_list__links_next' +require 'cybersource_rest_client/models/payment_instrument_list__links_prev' +require 'cybersource_rest_client/models/payment_instrument_list__links_self' +require 'cybersource_rest_client/models/payments_products' +require 'cybersource_rest_client/models/payments_products_alternative_payment_methods' +require 'cybersource_rest_client/models/payments_products_alternative_payment_methods_configuration_information' +require 'cybersource_rest_client/models/payments_products_alternative_payment_methods_configuration_information_configurations' +require 'cybersource_rest_client/models/payments_products_alternative_payment_methods_additional_configurations' +require 'cybersource_rest_client/models/payments_products_alternative_payment_methods_configuration_payment_methods' +require 'cybersource_rest_client/models/payments_products_alternative_payment_methods_configuration_information_configurations_processors' +require 'cybersource_rest_client/models/payments_products_alternative_payment_methods_subscription_information' +require 'cybersource_rest_client/models/payments_products_card_present_connect' +require 'cybersource_rest_client/models/payments_products_card_present_connect_configuration_information' +require 'cybersource_rest_client/models/payments_products_card_present_connect_configuration_information_configurations' +require 'cybersource_rest_client/models/payments_products_card_present_connect_subscription_information' +require 'cybersource_rest_client/models/payments_products_card_processing' +require 'cybersource_rest_client/models/payments_products_card_processing_configuration_information' +require 'cybersource_rest_client/models/payments_products_card_processing_subscription_information' +require 'cybersource_rest_client/models/payments_products_card_processing_subscription_information_features' +require 'cybersource_rest_client/models/payments_products_currency_conversion' +require 'cybersource_rest_client/models/payments_products_currency_conversion_configuration_information' +require 'cybersource_rest_client/models/payments_products_currency_conversion_configuration_information_configurations' +require 'cybersource_rest_client/models/payments_products_currency_conversion_configuration_information_configurations_processors' +require 'cybersource_rest_client/models/payments_products_cybs_ready_terminal' +require 'cybersource_rest_client/models/payments_products_differential_fee' +require 'cybersource_rest_client/models/payments_products_differential_fee_subscription_information' +require 'cybersource_rest_client/models/payments_products_differential_fee_subscription_information_features' +require 'cybersource_rest_client/models/payments_products_digital_payments' +require 'cybersource_rest_client/models/payments_products_digital_payments_subscription_information' +require 'cybersource_rest_client/models/payments_products_digital_payments_subscription_information_features' +require 'cybersource_rest_client/models/payments_products_e_check' +require 'cybersource_rest_client/models/payments_products_e_check_configuration_information' +require 'cybersource_rest_client/models/payments_products_e_check_subscription_information' +require 'cybersource_rest_client/models/payments_products_payer_authentication' +require 'cybersource_rest_client/models/payments_products_payer_authentication_configuration_information' +require 'cybersource_rest_client/models/payments_products_payer_authentication_subscription_information' +require 'cybersource_rest_client/models/payments_products_payouts' +require 'cybersource_rest_client/models/payments_products_payouts_configuration_information' +require 'cybersource_rest_client/models/payments_products_payouts_configuration_information_configurations' +require 'cybersource_rest_client/models/payments_products_payouts_configuration_information_configurations_common' +require 'cybersource_rest_client/models/payments_products_payouts_configuration_information_configurations_common_aggregator' +require 'cybersource_rest_client/models/payments_products_secure_acceptance' +require 'cybersource_rest_client/models/payments_products_secure_acceptance_configuration_information' +require 'cybersource_rest_client/models/payments_products_service_fee' +require 'cybersource_rest_client/models/payments_products_service_fee_configuration_information' +require 'cybersource_rest_client/models/payments_products_service_fee_configuration_information_configurations' +require 'cybersource_rest_client/models/payments_products_service_fee_configuration_information_configurations_merchant_information' +require 'cybersource_rest_client/models/payments_products_service_fee_configuration_information_configurations_payment_information' +require 'cybersource_rest_client/models/payments_products_service_fee_configuration_information_configurations_products' +require 'cybersource_rest_client/models/payments_products_tax' +require 'cybersource_rest_client/models/payments_products_unified_checkout' +require 'cybersource_rest_client/models/payments_products_unified_checkout_configuration_information' +require 'cybersource_rest_client/models/payments_products_unified_checkout_configuration_information_configurations' +require 'cybersource_rest_client/models/payments_products_unified_checkout_configuration_information_configurations_features' +require 'cybersource_rest_client/models/payments_products_unified_checkout_configuration_information_configurations_features_paze' +require 'cybersource_rest_client/models/payments_products_unified_checkout_subscription_information' +require 'cybersource_rest_client/models/payments_products_unified_checkout_subscription_information_features' +require 'cybersource_rest_client/models/payments_products_unified_checkout_subscription_information_features_paze_for_unified_checkout' +require 'cybersource_rest_client/models/payments_products_virtual_terminal' +require 'cybersource_rest_client/models/payments_products_virtual_terminal_configuration_information' +require 'cybersource_rest_client/models/payments_strong_auth_issuer_information' +require 'cybersource_rest_client/models/pbl_payment_links_all_get200_response' +require 'cybersource_rest_client/models/pbl_payment_links_all_get200_response_links' +require 'cybersource_rest_client/models/pbl_payment_links_all_get200_response_order_information' +require 'cybersource_rest_client/models/pbl_payment_links_all_get200_response_order_information_amount_details' +require 'cybersource_rest_client/models/pbl_payment_links_all_get200_response_order_information_line_items' +require 'cybersource_rest_client/models/pbl_payment_links_all_get200_response_processing_information' +require 'cybersource_rest_client/models/pbl_payment_links_all_get200_response_purchase_information' +require 'cybersource_rest_client/models/pbl_payment_links_all_get400_response' +require 'cybersource_rest_client/models/pbl_payment_links_all_get404_response' +require 'cybersource_rest_client/models/pbl_payment_links_get200_response' +require 'cybersource_rest_client/models/pbl_payment_links_post201_response' +require 'cybersource_rest_client/models/pbl_payment_links_post201_response__links' +require 'cybersource_rest_client/models/pbl_payment_links_post201_response_order_information' +require 'cybersource_rest_client/models/pbl_payment_links_post201_response_purchase_information' +require 'cybersource_rest_client/models/post_customer_payment_instrument_request' +require 'cybersource_rest_client/models/post_customer_request' +require 'cybersource_rest_client/models/post_customer_shipping_address_request' +require 'cybersource_rest_client/models/post_device_search_request' +require 'cybersource_rest_client/models/post_device_search_request_v3' +require 'cybersource_rest_client/models/post_instrument_identifier_enrollment_request' +require 'cybersource_rest_client/models/post_instrument_identifier_request' +require 'cybersource_rest_client/models/post_issuer_life_cycle_simulation_request' +require 'cybersource_rest_client/models/post_payment_credentials_request' +require 'cybersource_rest_client/models/post_payment_instrument_request' +require 'cybersource_rest_client/models/post_registration_body' +require 'cybersource_rest_client/models/post_tokenize_request' +require 'cybersource_rest_client/models/predefined_subscription_request_bean' +require 'cybersource_rest_client/models/pts_v1_transaction_batches_get200_response' +require 'cybersource_rest_client/models/pts_v1_transaction_batches_get200_response__links' +require 'cybersource_rest_client/models/pts_v1_transaction_batches_get200_response__links_self' +require 'cybersource_rest_client/models/pts_v1_transaction_batches_get200_response_transaction_batches' +require 'cybersource_rest_client/models/pts_v1_transaction_batches_get400_response' +require 'cybersource_rest_client/models/pts_v1_transaction_batches_get400_response_error_information' +require 'cybersource_rest_client/models/pts_v1_transaction_batches_get400_response_error_information_details' +require 'cybersource_rest_client/models/pts_v1_transaction_batches_get500_response' +require 'cybersource_rest_client/models/pts_v1_transaction_batches_get500_response_error_information' +require 'cybersource_rest_client/models/pts_v1_transaction_batches_id_get200_response' +require 'cybersource_rest_client/models/pts_v1_transaction_batches_id_get200_response__links' +require 'cybersource_rest_client/models/pts_v1_transaction_batches_id_get200_response__links_transactions' +require 'cybersource_rest_client/models/pts_v2_create_billing_agreement_post201_response' +require 'cybersource_rest_client/models/pts_v2_create_billing_agreement_post201_response_agreement_information' +require 'cybersource_rest_client/models/pts_v2_create_billing_agreement_post201_response_client_reference_information' +require 'cybersource_rest_client/models/pts_v2_create_billing_agreement_post201_response_installment_information' +require 'cybersource_rest_client/models/pts_v2_create_billing_agreement_post201_response__links' +require 'cybersource_rest_client/models/pts_v2_create_billing_agreement_post201_response_processor_information' +require 'cybersource_rest_client/models/pts_v2_create_billing_agreement_post201_response_risk_information' +require 'cybersource_rest_client/models/pts_v2_create_billing_agreement_post201_response_risk_information_processor_results' +require 'cybersource_rest_client/models/pts_v2_create_billing_agreement_post400_response' +require 'cybersource_rest_client/models/pts_v2_create_billing_agreement_post502_response' +require 'cybersource_rest_client/models/pts_v2_create_order_post201_response' +require 'cybersource_rest_client/models/pts_v2_create_order_post201_response_buyer_information' +require 'cybersource_rest_client/models/pts_v2_create_order_post201_response_processor_information' +require 'cybersource_rest_client/models/pts_v2_create_order_post400_response' +require 'cybersource_rest_client/models/pts_v2_credits_post201_response' +require 'cybersource_rest_client/models/pts_v2_credits_post201_response_1' +require 'cybersource_rest_client/models/pts_v2_credits_post201_response_1_processor_information' +require 'cybersource_rest_client/models/pts_v2_credits_post201_response_credit_amount_details' +require 'cybersource_rest_client/models/pts_v2_credits_post201_response_payment_information' +require 'cybersource_rest_client/models/pts_v2_credits_post201_response_processing_information' +require 'cybersource_rest_client/models/pts_v2_credits_post201_response_processing_information_bank_transfer_options' +require 'cybersource_rest_client/models/pts_v2_incremental_authorization_patch201_response' +require 'cybersource_rest_client/models/pts_v2_incremental_authorization_patch201_response_client_reference_information' +require 'cybersource_rest_client/models/pts_v2_incremental_authorization_patch201_response_error_information' +require 'cybersource_rest_client/models/pts_v2_incremental_authorization_patch201_response__links' +require 'cybersource_rest_client/models/pts_v2_incremental_authorization_patch201_response_order_information' +require 'cybersource_rest_client/models/pts_v2_incremental_authorization_patch201_response_order_information_invoice_details' +require 'cybersource_rest_client/models/pts_v2_incremental_authorization_patch201_response_payment_information' +require 'cybersource_rest_client/models/pts_v2_incremental_authorization_patch201_response_payment_information_account_features' +require 'cybersource_rest_client/models/pts_v2_incremental_authorization_patch201_response_processor_information' +require 'cybersource_rest_client/models/pts_v2_incremental_authorization_patch400_response' +require 'cybersource_rest_client/models/pts_v2_modify_billing_agreement_post201_response' +require 'cybersource_rest_client/models/pts_v2_modify_billing_agreement_post201_response_agreement_information' +require 'cybersource_rest_client/models/pts_v2_modify_billing_agreement_post201_response__links' +require 'cybersource_rest_client/models/pts_v2_modify_billing_agreement_post201_response_order_information' +require 'cybersource_rest_client/models/pts_v2_modify_billing_agreement_post201_response_order_information_bill_to' +require 'cybersource_rest_client/models/pts_v2_modify_billing_agreement_post201_response_order_information_ship_to' +require 'cybersource_rest_client/models/pts_v2_modify_billing_agreement_post201_response_payment_information' +require 'cybersource_rest_client/models/pts_v2_modify_billing_agreement_post201_response_payment_information_bank' +require 'cybersource_rest_client/models/pts_v2_modify_billing_agreement_post201_response_payment_information_e_wallet' +require 'cybersource_rest_client/models/pts_v2_payments_captures_post201_response' +require 'cybersource_rest_client/models/pts_v2_payments_captures_post201_response_embedded_actions' +require 'cybersource_rest_client/models/pts_v2_payments_captures_post201_response_embedded_actions_ap_capture' +require 'cybersource_rest_client/models/pts_v2_payments_captures_post201_response__links' +require 'cybersource_rest_client/models/pts_v2_payments_captures_post201_response_order_information' +require 'cybersource_rest_client/models/pts_v2_payments_captures_post201_response_order_information_amount_details' +require 'cybersource_rest_client/models/pts_v2_payments_captures_post201_response_order_information_invoice_details' +require 'cybersource_rest_client/models/pts_v2_payments_captures_post201_response_point_of_sale_information' +require 'cybersource_rest_client/models/pts_v2_payments_captures_post201_response_processing_information' +require 'cybersource_rest_client/models/pts_v2_payments_captures_post201_response_processor_information' +require 'cybersource_rest_client/models/pts_v2_payments_captures_post400_response' +require 'cybersource_rest_client/models/pts_v2_payments_order_post201_response' +require 'cybersource_rest_client/models/pts_v2_payments_order_post201_response_buyer_information' +require 'cybersource_rest_client/models/pts_v2_payments_order_post201_response_buyer_information_personal_identification' +require 'cybersource_rest_client/models/pts_v2_payments_order_post201_response_order_information' +require 'cybersource_rest_client/models/pts_v2_payments_order_post201_response_order_information_amount_details' +require 'cybersource_rest_client/models/pts_v2_payments_order_post201_response_order_information_bill_to' +require 'cybersource_rest_client/models/pts_v2_payments_order_post201_response_order_information_ship_to' +require 'cybersource_rest_client/models/pts_v2_payments_order_post201_response_order_information_shipping_details' +require 'cybersource_rest_client/models/pts_v2_payments_order_post201_response_payment_information' +require 'cybersource_rest_client/models/pts_v2_payments_order_post201_response_payment_information_e_wallet' +require 'cybersource_rest_client/models/pts_v2_payments_order_post201_response_processing_information' +require 'cybersource_rest_client/models/pts_v2_payments_order_post201_response_processor_information' +require 'cybersource_rest_client/models/pts_v2_payments_order_post201_response_processor_information_seller_protection' +require 'cybersource_rest_client/models/pts_v2_payments_post201_response' +require 'cybersource_rest_client/models/pts_v2_payments_post201_response_1' +require 'cybersource_rest_client/models/pts_v2_payments_post201_response_1_error_information' +require 'cybersource_rest_client/models/pts_v2_payments_post201_response_1_error_information_details' +require 'cybersource_rest_client/models/pts_v2_payments_post201_response_1_issuer_information' +require 'cybersource_rest_client/models/pts_v2_payments_post201_response_1_order_information' +require 'cybersource_rest_client/models/pts_v2_payments_post201_response_1_order_information_amount_details' +require 'cybersource_rest_client/models/pts_v2_payments_post201_response_1_order_information_bill_to' +require 'cybersource_rest_client/models/pts_v2_payments_post201_response_1_order_information_ship_to' +require 'cybersource_rest_client/models/pts_v2_payments_post201_response_1_payment_information' +require 'cybersource_rest_client/models/pts_v2_payments_post201_response_1_payment_information_bank' +require 'cybersource_rest_client/models/pts_v2_payments_post201_response_1_payment_information_bank_account' +require 'cybersource_rest_client/models/pts_v2_payments_post201_response_1_payment_information_e_wallet' +require 'cybersource_rest_client/models/pts_v2_payments_post201_response_1_payment_information_payment_type' +require 'cybersource_rest_client/models/pts_v2_payments_post201_response_1_payment_information_payment_type_method' +require 'cybersource_rest_client/models/pts_v2_payments_post201_response_1_processor_information' +require 'cybersource_rest_client/models/pts_v2_payments_post201_response_1_processor_information_avs' +require 'cybersource_rest_client/models/pts_v2_payments_post201_response_2' +require 'cybersource_rest_client/models/pts_v2_payments_post201_response_2_order_information' +require 'cybersource_rest_client/models/pts_v2_payments_post201_response_2_order_information_amount_details' +require 'cybersource_rest_client/models/pts_v2_payments_post201_response_2_payment_information' +require 'cybersource_rest_client/models/pts_v2_payments_post201_response_2_payment_information_e_wallet' +require 'cybersource_rest_client/models/pts_v2_payments_post201_response_2_processor_information' +require 'cybersource_rest_client/models/pts_v2_payments_post201_response_buyer_information' +require 'cybersource_rest_client/models/pts_v2_payments_post201_response_client_reference_information' +require 'cybersource_rest_client/models/pts_v2_payments_post201_response_consumer_authentication_information' +require 'cybersource_rest_client/models/pts_v2_payments_post201_response_consumer_authentication_information_ivr' +require 'cybersource_rest_client/models/pts_v2_payments_post201_response_consumer_authentication_information_strong_authentication' +require 'cybersource_rest_client/models/pts_v2_payments_post201_response_embedded_actions' +require 'cybersource_rest_client/models/pts_v2_payments_post201_response_embedded_actions_capture' +require 'cybersource_rest_client/models/pts_v2_payments_post201_response_embedded_actions_consumer_authentication' +require 'cybersource_rest_client/models/pts_v2_payments_post201_response_embedded_actions_decision' +require 'cybersource_rest_client/models/pts_v2_payments_post201_response_embedded_actions_token_create' +require 'cybersource_rest_client/models/pts_v2_payments_post201_response_embedded_actions_token_update' +require 'cybersource_rest_client/models/pts_v2_payments_post201_response_embedded_actions_watchlist_screening' +require 'cybersource_rest_client/models/pts_v2_payments_post201_response_error_information' +require 'cybersource_rest_client/models/pts_v2_payments_post201_response_error_information_details' +require 'cybersource_rest_client/models/pts_v2_payments_post201_response_installment_information' +require 'cybersource_rest_client/models/pts_v2_payments_post201_response_issuer_information' +require 'cybersource_rest_client/models/pts_v2_payments_post201_response__links' +require 'cybersource_rest_client/models/pts_v2_payments_post201_response__links_self' +require 'cybersource_rest_client/models/pts_v2_payments_post201_response_merchant_information' +require 'cybersource_rest_client/models/pts_v2_payments_post201_response_merchant_information_merchant_descriptor' +require 'cybersource_rest_client/models/pts_v2_payments_post201_response_order_information' +require 'cybersource_rest_client/models/pts_v2_payments_post201_response_order_information_amount_details' +require 'cybersource_rest_client/models/pts_v2_payments_post201_response_order_information_bill_to' +require 'cybersource_rest_client/models/pts_v2_payments_post201_response_order_information_invoice_details' +require 'cybersource_rest_client/models/pts_v2_payments_post201_response_order_information_reward_points_details' +require 'cybersource_rest_client/models/pts_v2_payments_post201_response_order_information_ship_to' +require 'cybersource_rest_client/models/pts_v2_payments_post201_response_payment_account_information' +require 'cybersource_rest_client/models/pts_v2_payments_post201_response_payment_account_information_card' +require 'cybersource_rest_client/models/pts_v2_payments_post201_response_payment_information' +require 'cybersource_rest_client/models/pts_v2_payments_post201_response_payment_information_account_features' +require 'cybersource_rest_client/models/pts_v2_payments_post201_response_payment_information_account_features_balances' +require 'cybersource_rest_client/models/pts_v2_payments_post201_response_payment_information_bank' +require 'cybersource_rest_client/models/pts_v2_payments_post201_response_payment_information_bank_account' +require 'cybersource_rest_client/models/pts_v2_payments_post201_response_payment_information_e_wallet' +require 'cybersource_rest_client/models/pts_v2_payments_post201_response_payment_information_instrument_identifier' +require 'cybersource_rest_client/models/pts_v2_payments_post201_response_payment_information_tokenized_card' +require 'cybersource_rest_client/models/pts_v2_payments_post201_response_payment_information_tokenized_payment_method' +require 'cybersource_rest_client/models/pts_v2_payments_post201_response_payment_insights_information' +require 'cybersource_rest_client/models/pts_v2_payments_post201_response_payment_insights_information_orchestration' +require 'cybersource_rest_client/models/pts_v2_payments_post201_response_payment_insights_information_response_insights' +require 'cybersource_rest_client/models/pts_v2_payments_post201_response_point_of_sale_information' +require 'cybersource_rest_client/models/pts_v2_payments_post201_response_point_of_sale_information_emv' +require 'cybersource_rest_client/models/pts_v2_payments_post201_response_processing_information' +require 'cybersource_rest_client/models/pts_v2_payments_post201_response_processing_information_authorization_options' +require 'cybersource_rest_client/models/pts_v2_payments_post201_response_processing_information_bank_transfer_options' +require 'cybersource_rest_client/models/pts_v2_payments_post201_response_processing_information_capture_options' +require 'cybersource_rest_client/models/pts_v2_payments_post201_response_processing_information_purchase_options' +require 'cybersource_rest_client/models/pts_v2_payments_post201_response_processor_information' +require 'cybersource_rest_client/models/pts_v2_payments_post201_response_processor_information_ach_verification' +require 'cybersource_rest_client/models/pts_v2_payments_post201_response_processor_information_avs' +require 'cybersource_rest_client/models/pts_v2_payments_post201_response_processor_information_card_verification' +require 'cybersource_rest_client/models/pts_v2_payments_post201_response_processor_information_consumer_authentication_response' +require 'cybersource_rest_client/models/pts_v2_payments_post201_response_processor_information_customer' +require 'cybersource_rest_client/models/pts_v2_payments_post201_response_processor_information_electronic_verification_results' +require 'cybersource_rest_client/models/pts_v2_payments_post201_response_processor_information_merchant_advice' +require 'cybersource_rest_client/models/pts_v2_payments_post201_response_processor_information_routing' +require 'cybersource_rest_client/models/pts_v2_payments_post201_response_processor_information_seller_protection' +require 'cybersource_rest_client/models/pts_v2_payments_post201_response_risk_information' +require 'cybersource_rest_client/models/pts_v2_payments_post201_response_risk_information_info_codes' +require 'cybersource_rest_client/models/pts_v2_payments_post201_response_risk_information_ip_address' +require 'cybersource_rest_client/models/pts_v2_payments_post201_response_risk_information_processor_results' +require 'cybersource_rest_client/models/pts_v2_payments_post201_response_risk_information_profile' +require 'cybersource_rest_client/models/pts_v2_payments_post201_response_risk_information_rules' +require 'cybersource_rest_client/models/pts_v2_payments_post201_response_risk_information_score' +require 'cybersource_rest_client/models/pts_v2_payments_post201_response_risk_information_travel' +require 'cybersource_rest_client/models/pts_v2_payments_post201_response_risk_information_travel_actual_final_destination' +require 'cybersource_rest_client/models/pts_v2_payments_post201_response_risk_information_travel_first_departure' +require 'cybersource_rest_client/models/pts_v2_payments_post201_response_risk_information_travel_first_destination' +require 'cybersource_rest_client/models/pts_v2_payments_post201_response_risk_information_travel_last_destination' +require 'cybersource_rest_client/models/pts_v2_payments_post201_response_risk_information_velocity' +require 'cybersource_rest_client/models/pts_v2_payments_post201_response_risk_information_velocity_morphing' +require 'cybersource_rest_client/models/pts_v2_payments_post201_response_token_information' +require 'cybersource_rest_client/models/pts_v2_payments_post201_response_token_information_customer' +require 'cybersource_rest_client/models/pts_v2_payments_post201_response_token_information_instrument_identifier' +require 'cybersource_rest_client/models/pts_v2_payments_post201_response_token_information_payment_instrument' +require 'cybersource_rest_client/models/pts_v2_payments_post201_response_token_information_shipping_address' +require 'cybersource_rest_client/models/pts_v2_payments_post201_response_watchlist_screening_information' +require 'cybersource_rest_client/models/pts_v2_payments_post201_response_watchlist_screening_information_watch_list' +require 'cybersource_rest_client/models/pts_v2_payments_post201_response_watchlist_screening_information_watch_list_matches' +require 'cybersource_rest_client/models/pts_v2_payments_post400_response' +require 'cybersource_rest_client/models/pts_v2_payments_post502_response' +require 'cybersource_rest_client/models/pts_v2_payments_refund_post201_response' +require 'cybersource_rest_client/models/pts_v2_payments_refund_post201_response_client_reference_information' +require 'cybersource_rest_client/models/pts_v2_payments_refund_post201_response__links' +require 'cybersource_rest_client/models/pts_v2_payments_refund_post201_response_order_information' +require 'cybersource_rest_client/models/pts_v2_payments_refund_post201_response_order_information_amount_details' +require 'cybersource_rest_client/models/pts_v2_payments_refund_post201_response_processor_information' +require 'cybersource_rest_client/models/pts_v2_payments_refund_post201_response_processor_information_merchant_advice' +require 'cybersource_rest_client/models/pts_v2_payments_refund_post201_response_refund_amount_details' +require 'cybersource_rest_client/models/pts_v2_payments_refund_post400_response' +require 'cybersource_rest_client/models/pts_v2_payments_reversals_post201_response' +require 'cybersource_rest_client/models/pts_v2_payments_reversals_post201_response_authorization_information' +require 'cybersource_rest_client/models/pts_v2_payments_reversals_post201_response_issuer_information' +require 'cybersource_rest_client/models/pts_v2_payments_reversals_post201_response_processor_information' +require 'cybersource_rest_client/models/pts_v2_payments_reversals_post201_response_reversal_amount_details' +require 'cybersource_rest_client/models/pts_v2_payments_reversals_post400_response' +require 'cybersource_rest_client/models/pts_v2_payments_voids_post201_response' +require 'cybersource_rest_client/models/pts_v2_payments_voids_post201_response_processor_information' +require 'cybersource_rest_client/models/pts_v2_payments_voids_post201_response_void_amount_details' +require 'cybersource_rest_client/models/pts_v2_payments_voids_post400_response' +require 'cybersource_rest_client/models/pts_v2_payouts_post201_response' +require 'cybersource_rest_client/models/pts_v2_payouts_post201_response_error_information' +require 'cybersource_rest_client/models/pts_v2_payouts_post201_response_issuer_information' +require 'cybersource_rest_client/models/pts_v2_payouts_post201_response_merchant_information' +require 'cybersource_rest_client/models/pts_v2_payouts_post201_response_merchant_information_merchant_descriptor' +require 'cybersource_rest_client/models/pts_v2_payouts_post201_response_order_information' +require 'cybersource_rest_client/models/pts_v2_payouts_post201_response_order_information_amount_details' +require 'cybersource_rest_client/models/pts_v2_payouts_post201_response_processing_information' +require 'cybersource_rest_client/models/pts_v2_payouts_post201_response_processor_information' +require 'cybersource_rest_client/models/pts_v2_payouts_post201_response_recipient_information' +require 'cybersource_rest_client/models/pts_v2_payouts_post201_response_recipient_information_card' +require 'cybersource_rest_client/models/pts_v2_payouts_post400_response' +require 'cybersource_rest_client/models/pts_v2_retrieve_payment_token_get400_response' +require 'cybersource_rest_client/models/pts_v2_retrieve_payment_token_get502_response' +require 'cybersource_rest_client/models/pts_v2_update_order_patch201_response' +require 'cybersource_rest_client/models/ptsv1pushfundstransfer_client_reference_information' +require 'cybersource_rest_client/models/ptsv1pushfundstransfer_merchant_information' +require 'cybersource_rest_client/models/ptsv1pushfundstransfer_order_information' +require 'cybersource_rest_client/models/ptsv1pushfundstransfer_order_information_amount_details' +require 'cybersource_rest_client/models/ptsv1pushfundstransfer_point_of_service_information' +require 'cybersource_rest_client/models/ptsv1pushfundstransfer_point_of_service_information_emv' +require 'cybersource_rest_client/models/ptsv1pushfundstransfer_processing_information' +require 'cybersource_rest_client/models/ptsv1pushfundstransfer_processing_information_payouts_options' +require 'cybersource_rest_client/models/ptsv1pushfundstransfer_recipient_information' +require 'cybersource_rest_client/models/ptsv1pushfundstransfer_recipient_information_payment_information' +require 'cybersource_rest_client/models/ptsv1pushfundstransfer_recipient_information_payment_information_card' +require 'cybersource_rest_client/models/ptsv1pushfundstransfer_recipient_information_payment_information_card_customer' +require 'cybersource_rest_client/models/ptsv1pushfundstransfer_recipient_information_payment_information_card_instrument_identifier' +require 'cybersource_rest_client/models/ptsv1pushfundstransfer_recipient_information_payment_information_card_payment_instrument' +require 'cybersource_rest_client/models/ptsv1pushfundstransfer_recipient_information_personal_identification' +require 'cybersource_rest_client/models/ptsv1pushfundstransfer_sender_information' +require 'cybersource_rest_client/models/ptsv1pushfundstransfer_sender_information_account' +require 'cybersource_rest_client/models/ptsv1pushfundstransfer_sender_information_payment_information' +require 'cybersource_rest_client/models/ptsv1pushfundstransfer_sender_information_payment_information_card' +require 'cybersource_rest_client/models/ptsv1pushfundstransfer_sender_information_personal_identification' +require 'cybersource_rest_client/models/ptsv2billingagreements_aggregator_information' +require 'cybersource_rest_client/models/ptsv2billingagreements_agreement_information' +require 'cybersource_rest_client/models/ptsv2billingagreements_buyer_information' +require 'cybersource_rest_client/models/ptsv2billingagreements_client_reference_information' +require 'cybersource_rest_client/models/ptsv2billingagreements_consumer_authentication_information' +require 'cybersource_rest_client/models/ptsv2billingagreements_device_information' +require 'cybersource_rest_client/models/ptsv2billingagreements_installment_information' +require 'cybersource_rest_client/models/ptsv2billingagreements_merchant_information' +require 'cybersource_rest_client/models/ptsv2billingagreements_merchant_information_merchant_descriptor' +require 'cybersource_rest_client/models/ptsv2billingagreements_order_information' +require 'cybersource_rest_client/models/ptsv2billingagreements_order_information_bill_to' +require 'cybersource_rest_client/models/ptsv2billingagreements_payment_information' +require 'cybersource_rest_client/models/ptsv2billingagreements_payment_information_bank' +require 'cybersource_rest_client/models/ptsv2billingagreements_payment_information_bank_account' +require 'cybersource_rest_client/models/ptsv2billingagreements_payment_information_card' +require 'cybersource_rest_client/models/ptsv2billingagreements_payment_information_payment_type' +require 'cybersource_rest_client/models/ptsv2billingagreements_payment_information_payment_type_method' +require 'cybersource_rest_client/models/ptsv2billingagreements_payment_information_tokenized_card' +require 'cybersource_rest_client/models/ptsv2billingagreements_processing_information' +require 'cybersource_rest_client/models/ptsv2billingagreementsid_agreement_information' +require 'cybersource_rest_client/models/ptsv2billingagreementsid_buyer_information' +require 'cybersource_rest_client/models/ptsv2billingagreementsid_processing_information' +require 'cybersource_rest_client/models/ptsv2credits_installment_information' +require 'cybersource_rest_client/models/ptsv2credits_processing_information' +require 'cybersource_rest_client/models/ptsv2credits_processing_information_bank_transfer_options' +require 'cybersource_rest_client/models/ptsv2credits_processing_information_electronic_benefits_transfer' +require 'cybersource_rest_client/models/ptsv2credits_processing_information_japan_payment_options' +require 'cybersource_rest_client/models/ptsv2credits_processing_information_purchase_options' +require 'cybersource_rest_client/models/ptsv2credits_processing_information_refund_options' +require 'cybersource_rest_client/models/ptsv2credits_recipient_information' +require 'cybersource_rest_client/models/ptsv2credits_sender_information' +require 'cybersource_rest_client/models/ptsv2credits_sender_information_account' +require 'cybersource_rest_client/models/ptsv2intents_client_reference_information' +require 'cybersource_rest_client/models/ptsv2intents_event_information' +require 'cybersource_rest_client/models/ptsv2intents_merchant_information' +require 'cybersource_rest_client/models/ptsv2intents_merchant_information_merchant_descriptor' +require 'cybersource_rest_client/models/ptsv2intents_order_information' +require 'cybersource_rest_client/models/ptsv2intents_order_information_amount_details' +require 'cybersource_rest_client/models/ptsv2intents_order_information_bill_to' +require 'cybersource_rest_client/models/ptsv2intents_order_information_invoice_details' +require 'cybersource_rest_client/models/ptsv2intents_order_information_line_items' +require 'cybersource_rest_client/models/ptsv2intents_order_information_ship_to' +require 'cybersource_rest_client/models/ptsv2intents_payment_information' +require 'cybersource_rest_client/models/ptsv2intents_payment_information_e_wallet' +require 'cybersource_rest_client/models/ptsv2intents_payment_information_payment_type' +require 'cybersource_rest_client/models/ptsv2intents_payment_information_payment_type_method' +require 'cybersource_rest_client/models/ptsv2intents_payment_information_tokenized_payment_method' +require 'cybersource_rest_client/models/ptsv2intents_processing_information' +require 'cybersource_rest_client/models/ptsv2intents_processing_information_authorization_options' +require 'cybersource_rest_client/models/ptsv2intents_recipient_information' +require 'cybersource_rest_client/models/ptsv2intents_sender_information' +require 'cybersource_rest_client/models/ptsv2intents_sender_information_account' +require 'cybersource_rest_client/models/ptsv2intents_travel_information' +require 'cybersource_rest_client/models/ptsv2intents_travel_information_agency' +require 'cybersource_rest_client/models/ptsv2intentsid_merchant_information' +require 'cybersource_rest_client/models/ptsv2intentsid_order_information' +require 'cybersource_rest_client/models/ptsv2intentsid_payment_information' +require 'cybersource_rest_client/models/ptsv2intentsid_processing_information' +require 'cybersource_rest_client/models/ptsv2paymentreferences_agreement_information' +require 'cybersource_rest_client/models/ptsv2paymentreferences_buyer_information' +require 'cybersource_rest_client/models/ptsv2paymentreferences_device_information' +require 'cybersource_rest_client/models/ptsv2paymentreferences_merchant_information' +require 'cybersource_rest_client/models/ptsv2paymentreferences_order_information' +require 'cybersource_rest_client/models/ptsv2paymentreferences_order_information_amount_details' +require 'cybersource_rest_client/models/ptsv2paymentreferences_order_information_bill_to' +require 'cybersource_rest_client/models/ptsv2paymentreferences_order_information_invoice_details' +require 'cybersource_rest_client/models/ptsv2paymentreferences_order_information_line_items' +require 'cybersource_rest_client/models/ptsv2paymentreferences_order_information_ship_to' +require 'cybersource_rest_client/models/ptsv2paymentreferences_payment_information' +require 'cybersource_rest_client/models/ptsv2paymentreferences_payment_information_bank' +require 'cybersource_rest_client/models/ptsv2paymentreferences_payment_information_bank_account' +require 'cybersource_rest_client/models/ptsv2paymentreferences_payment_information_card' +require 'cybersource_rest_client/models/ptsv2paymentreferences_payment_information_e_wallet' +require 'cybersource_rest_client/models/ptsv2paymentreferences_payment_information_options' +require 'cybersource_rest_client/models/ptsv2paymentreferences_processing_information' +require 'cybersource_rest_client/models/ptsv2paymentreferences_travel_information' +require 'cybersource_rest_client/models/ptsv2paymentreferences_travel_information_auto_rental' +require 'cybersource_rest_client/models/ptsv2paymentreferences_user_interface' +require 'cybersource_rest_client/models/ptsv2paymentreferences_user_interface_color' +require 'cybersource_rest_client/models/ptsv2paymentreferencesidintents_order_information' +require 'cybersource_rest_client/models/ptsv2paymentreferencesidintents_payment_information' +require 'cybersource_rest_client/models/ptsv2paymentreferencesidintents_payment_information_e_wallet' +require 'cybersource_rest_client/models/ptsv2paymentreferencesidintents_processing_information' +require 'cybersource_rest_client/models/ptsv2payments_acquirer_information' +require 'cybersource_rest_client/models/ptsv2payments_aggregator_information' +require 'cybersource_rest_client/models/ptsv2payments_aggregator_information_sub_merchant' +require 'cybersource_rest_client/models/ptsv2payments_agreement_information' +require 'cybersource_rest_client/models/ptsv2payments_buyer_information' +require 'cybersource_rest_client/models/ptsv2payments_buyer_information_personal_identification' +require 'cybersource_rest_client/models/ptsv2payments_client_reference_information' +require 'cybersource_rest_client/models/ptsv2payments_client_reference_information_partner' +require 'cybersource_rest_client/models/ptsv2payments_consumer_authentication_information' +require 'cybersource_rest_client/models/ptsv2payments_consumer_authentication_information_strong_authentication' +require 'cybersource_rest_client/models/ptsv2payments_consumer_authentication_information_strong_authentication_issuer_information' +require 'cybersource_rest_client/models/ptsv2payments_device_information' +require 'cybersource_rest_client/models/ptsv2payments_device_information_raw_data' +require 'cybersource_rest_client/models/ptsv2payments_health_care_information' +require 'cybersource_rest_client/models/ptsv2payments_health_care_information_amount_details' +require 'cybersource_rest_client/models/ptsv2payments_hosted_payment_information' +require 'cybersource_rest_client/models/ptsv2payments_hosted_payment_information_user_agent' +require 'cybersource_rest_client/models/ptsv2payments_installment_information' +require 'cybersource_rest_client/models/ptsv2payments_invoice_details' +require 'cybersource_rest_client/models/ptsv2payments_issuer_information' +require 'cybersource_rest_client/models/ptsv2payments_merchant_defined_information' +require 'cybersource_rest_client/models/ptsv2payments_merchant_defined_secure_information' +require 'cybersource_rest_client/models/ptsv2payments_merchant_information' +require 'cybersource_rest_client/models/ptsv2payments_merchant_information_merchant_descriptor' +require 'cybersource_rest_client/models/ptsv2payments_merchant_information_service_fee_descriptor' +require 'cybersource_rest_client/models/ptsv2payments_merchant_information_service_location' +require 'cybersource_rest_client/models/ptsv2payments_order_information' +require 'cybersource_rest_client/models/ptsv2payments_order_information_amount_details' +require 'cybersource_rest_client/models/ptsv2payments_order_information_amount_details_amex_additional_amounts' +require 'cybersource_rest_client/models/ptsv2payments_order_information_amount_details_currency_conversion' +require 'cybersource_rest_client/models/ptsv2payments_order_information_amount_details_octsurcharge' +require 'cybersource_rest_client/models/ptsv2payments_order_information_amount_details_order' +require 'cybersource_rest_client/models/ptsv2payments_order_information_amount_details_surcharge' +require 'cybersource_rest_client/models/ptsv2payments_order_information_amount_details_tax_details' +require 'cybersource_rest_client/models/ptsv2payments_order_information_bill_to' +require 'cybersource_rest_client/models/ptsv2payments_order_information_bill_to_company' +require 'cybersource_rest_client/models/ptsv2payments_order_information_invoice_details' +require 'cybersource_rest_client/models/ptsv2payments_order_information_invoice_details_transaction_advice_addendum' +require 'cybersource_rest_client/models/ptsv2payments_order_information_line_items' +require 'cybersource_rest_client/models/ptsv2payments_order_information_passenger' +require 'cybersource_rest_client/models/ptsv2payments_order_information_ship_to' +require 'cybersource_rest_client/models/ptsv2payments_order_information_shipping_details' +require 'cybersource_rest_client/models/ptsv2payments_payment_information' +require 'cybersource_rest_client/models/ptsv2payments_payment_information_bank' +require 'cybersource_rest_client/models/ptsv2payments_payment_information_bank_account' +require 'cybersource_rest_client/models/ptsv2payments_payment_information_card' +require 'cybersource_rest_client/models/ptsv2payments_payment_information_customer' +require 'cybersource_rest_client/models/ptsv2payments_payment_information_direct_debit' +require 'cybersource_rest_client/models/ptsv2payments_payment_information_direct_debit_mandate' +require 'cybersource_rest_client/models/ptsv2payments_payment_information_e_wallet' +require 'cybersource_rest_client/models/ptsv2payments_payment_information_fluid_data' +require 'cybersource_rest_client/models/ptsv2payments_payment_information_instrument_identifier' +require 'cybersource_rest_client/models/ptsv2payments_payment_information_legacy_token' +require 'cybersource_rest_client/models/ptsv2payments_payment_information_options' +require 'cybersource_rest_client/models/ptsv2payments_payment_information_payment_account_reference' +require 'cybersource_rest_client/models/ptsv2payments_payment_information_payment_instrument' +require 'cybersource_rest_client/models/ptsv2payments_payment_information_payment_type' +require 'cybersource_rest_client/models/ptsv2payments_payment_information_payment_type_method' +require 'cybersource_rest_client/models/ptsv2payments_payment_information_sepa' +require 'cybersource_rest_client/models/ptsv2payments_payment_information_sepa_direct_debit' +require 'cybersource_rest_client/models/ptsv2payments_payment_information_shipping_address' +require 'cybersource_rest_client/models/ptsv2payments_payment_information_tokenized_card' +require 'cybersource_rest_client/models/ptsv2payments_payment_information_tokenized_payment_method' +require 'cybersource_rest_client/models/ptsv2payments_point_of_sale_information' +require 'cybersource_rest_client/models/ptsv2payments_point_of_sale_information_emv' +require 'cybersource_rest_client/models/ptsv2payments_processing_information' +require 'cybersource_rest_client/models/ptsv2payments_processing_information_authorization_options' +require 'cybersource_rest_client/models/ptsv2payments_processing_information_authorization_options_initiator' +require 'cybersource_rest_client/models/ptsv2payments_merchant_initiated_transaction' +require 'cybersource_rest_client/models/ptsv2payments_processing_information_bank_transfer_options' +require 'cybersource_rest_client/models/ptsv2payments_processing_information_capture_options' +require 'cybersource_rest_client/models/ptsv2payments_processing_information_electronic_benefits_transfer' +require 'cybersource_rest_client/models/ptsv2payments_processing_information_japan_payment_options' +require 'cybersource_rest_client/models/ptsv2payments_processing_information_japan_payment_options_bonuses' +require 'cybersource_rest_client/models/ptsv2payments_processing_information_loan_options' +require 'cybersource_rest_client/models/ptsv2payments_processing_information_purchase_options' +require 'cybersource_rest_client/models/ptsv2payments_processing_information_recurring_options' +require 'cybersource_rest_client/models/ptsv2payments_processor_information' +require 'cybersource_rest_client/models/ptsv2payments_processor_information_authorization_options' +require 'cybersource_rest_client/models/ptsv2payments_processor_information_reversal' +require 'cybersource_rest_client/models/ptsv2payments_processor_information_reversal_network' +require 'cybersource_rest_client/models/ptsv2payments_promotion_information' +require 'cybersource_rest_client/models/ptsv2payments_recipient_information' +require 'cybersource_rest_client/models/ptsv2payments_recurring_payment_information' +require 'cybersource_rest_client/models/ptsv2payments_risk_information' +require 'cybersource_rest_client/models/ptsv2payments_risk_information_auxiliary_data' +require 'cybersource_rest_client/models/ptsv2payments_risk_information_buyer_history' +require 'cybersource_rest_client/models/ptsv2payments_risk_information_buyer_history_account_history' +require 'cybersource_rest_client/models/ptsv2payments_risk_information_buyer_history_customer_account' +require 'cybersource_rest_client/models/ptsv2payments_risk_information_profile' +require 'cybersource_rest_client/models/ptsv2payments_sender_information' +require 'cybersource_rest_client/models/ptsv2payments_sender_information_account' +require 'cybersource_rest_client/models/ptsv2payments_token_information' +require 'cybersource_rest_client/models/ptsv2payments_token_information_payment_instrument' +require 'cybersource_rest_client/models/ptsv2payments_token_information_shipping_address' +require 'cybersource_rest_client/models/ptsv2payments_token_information_token_provisioning_information' +require 'cybersource_rest_client/models/ptsv2payments_travel_information' +require 'cybersource_rest_client/models/ptsv2payments_travel_information_agency' +require 'cybersource_rest_client/models/ptsv2payments_travel_information_auto_rental' +require 'cybersource_rest_client/models/ptsv2payments_travel_information_auto_rental_rental_address' +require 'cybersource_rest_client/models/ptsv2payments_travel_information_auto_rental_return_address' +require 'cybersource_rest_client/models/ptsv2payments_travel_information_auto_rental_tax_details' +require 'cybersource_rest_client/models/ptsv2payments_travel_information_lodging' +require 'cybersource_rest_client/models/ptsv2payments_travel_information_lodging_room' +require 'cybersource_rest_client/models/ptsv2payments_travel_information_transit' +require 'cybersource_rest_client/models/ptsv2payments_travel_information_transit_airline' +require 'cybersource_rest_client/models/ptsv2payments_travel_information_transit_airline_ancillary_information' +require 'cybersource_rest_client/models/ptsv2payments_travel_information_transit_airline_ancillary_information_service' +require 'cybersource_rest_client/models/ptsv2payments_travel_information_transit_airline_legs' +require 'cybersource_rest_client/models/ptsv2payments_travel_information_transit_airline_ticket_issuer' +require 'cybersource_rest_client/models/ptsv2payments_travel_information_vehicle_data' +require 'cybersource_rest_client/models/ptsv2payments_unscheduled_payment_information' +require 'cybersource_rest_client/models/ptsv2payments_watchlist_screening_information' +require 'cybersource_rest_client/models/ptsv2payments_watchlist_screening_information_weights' +require 'cybersource_rest_client/models/ptsv2paymentsid_client_reference_information' +require 'cybersource_rest_client/models/ptsv2paymentsid_client_reference_information_partner' +require 'cybersource_rest_client/models/ptsv2paymentsid_merchant_information' +require 'cybersource_rest_client/models/ptsv2paymentsid_order_information' +require 'cybersource_rest_client/models/ptsv2paymentsid_order_information_amount_details' +require 'cybersource_rest_client/models/ptsv2paymentsid_processing_information' +require 'cybersource_rest_client/models/ptsv2paymentsid_processing_information_authorization_options' +require 'cybersource_rest_client/models/ptsv2paymentsid_processing_information_authorization_options_initiator' +require 'cybersource_rest_client/models/ptsv2paymentsid_travel_information' +require 'cybersource_rest_client/models/ptsv2paymentsidcaptures_aggregator_information' +require 'cybersource_rest_client/models/ptsv2paymentsidcaptures_aggregator_information_sub_merchant' +require 'cybersource_rest_client/models/ptsv2paymentsidcaptures_buyer_information' +require 'cybersource_rest_client/models/ptsv2paymentsidcaptures_buyer_information_personal_identification' +require 'cybersource_rest_client/models/ptsv2paymentsidcaptures_device_information' +require 'cybersource_rest_client/models/ptsv2paymentsidcaptures_installment_information' +require 'cybersource_rest_client/models/ptsv2paymentsidcaptures_merchant_information' +require 'cybersource_rest_client/models/ptsv2paymentsidcaptures_order_information' +require 'cybersource_rest_client/models/ptsv2paymentsidcaptures_order_information_amount_details' +require 'cybersource_rest_client/models/ptsv2paymentsidcaptures_order_information_bill_to' +require 'cybersource_rest_client/models/ptsv2paymentsidcaptures_order_information_invoice_details' +require 'cybersource_rest_client/models/ptsv2paymentsidcaptures_order_information_ship_to' +require 'cybersource_rest_client/models/ptsv2paymentsidcaptures_order_information_shipping_details' +require 'cybersource_rest_client/models/ptsv2paymentsidcaptures_payment_information' +require 'cybersource_rest_client/models/ptsv2paymentsidcaptures_payment_information_card' +require 'cybersource_rest_client/models/ptsv2paymentsidcaptures_payment_information_payment_type' +require 'cybersource_rest_client/models/ptsv2paymentsidcaptures_payment_information_payment_type_method' +require 'cybersource_rest_client/models/ptsv2paymentsidcaptures_point_of_sale_information' +require 'cybersource_rest_client/models/ptsv2paymentsidcaptures_point_of_sale_information_emv' +require 'cybersource_rest_client/models/ptsv2paymentsidcaptures_processing_information' +require 'cybersource_rest_client/models/ptsv2paymentsidcaptures_processing_information_authorization_options' +require 'cybersource_rest_client/models/ptsv2paymentsidcaptures_processing_information_capture_options' +require 'cybersource_rest_client/models/ptsv2paymentsidcaptures_processing_information_japan_payment_options' +require 'cybersource_rest_client/models/ptsv2paymentsidcaptures_processor_information' +require 'cybersource_rest_client/models/ptsv2paymentsidrefunds_client_reference_information' +require 'cybersource_rest_client/models/ptsv2paymentsidrefunds_merchant_information' +require 'cybersource_rest_client/models/ptsv2paymentsidrefunds_order_information' +require 'cybersource_rest_client/models/ptsv2paymentsidrefunds_order_information_line_items' +require 'cybersource_rest_client/models/ptsv2paymentsidrefunds_payment_information' +require 'cybersource_rest_client/models/ptsv2paymentsidrefunds_payment_information_bank' +require 'cybersource_rest_client/models/ptsv2paymentsidrefunds_payment_information_bank_account' +require 'cybersource_rest_client/models/ptsv2paymentsidrefunds_payment_information_card' +require 'cybersource_rest_client/models/ptsv2paymentsidrefunds_payment_information_e_wallet' +require 'cybersource_rest_client/models/ptsv2paymentsidrefunds_payment_information_payment_type' +require 'cybersource_rest_client/models/ptsv2paymentsidrefunds_point_of_sale_information' +require 'cybersource_rest_client/models/ptsv2paymentsidrefunds_processing_information' +require 'cybersource_rest_client/models/ptsv2paymentsidrefunds_processing_information_recurring_options' +require 'cybersource_rest_client/models/ptsv2paymentsidrefunds_processing_information_refund_options' +require 'cybersource_rest_client/models/ptsv2paymentsidreversals_client_reference_information' +require 'cybersource_rest_client/models/ptsv2paymentsidreversals_client_reference_information_partner' +require 'cybersource_rest_client/models/ptsv2paymentsidreversals_order_information' +require 'cybersource_rest_client/models/ptsv2paymentsidreversals_order_information_amount_details' +require 'cybersource_rest_client/models/ptsv2paymentsidreversals_order_information_line_items' +require 'cybersource_rest_client/models/ptsv2paymentsidreversals_payment_information' +require 'cybersource_rest_client/models/ptsv2paymentsidreversals_payment_information_payment_type' +require 'cybersource_rest_client/models/ptsv2paymentsidreversals_payment_information_payment_type_method' +require 'cybersource_rest_client/models/ptsv2paymentsidreversals_point_of_sale_information' +require 'cybersource_rest_client/models/ptsv2paymentsidreversals_point_of_sale_information_emv' +require 'cybersource_rest_client/models/ptsv2paymentsidreversals_processing_information' +require 'cybersource_rest_client/models/ptsv2paymentsidreversals_reversal_information' +require 'cybersource_rest_client/models/ptsv2paymentsidreversals_reversal_information_amount_details' +require 'cybersource_rest_client/models/ptsv2paymentsidvoids_agreement_information' +require 'cybersource_rest_client/models/ptsv2paymentsidvoids_merchant_information' +require 'cybersource_rest_client/models/ptsv2paymentsidvoids_order_information' +require 'cybersource_rest_client/models/ptsv2paymentsidvoids_payment_information' +require 'cybersource_rest_client/models/ptsv2paymentsidvoids_processing_information' +require 'cybersource_rest_client/models/ptsv2paymenttokens_payment_information' +require 'cybersource_rest_client/models/ptsv2paymenttokens_processing_information' +require 'cybersource_rest_client/models/ptsv2payouts_aggregator_information' +require 'cybersource_rest_client/models/ptsv2payouts_aggregator_information_sub_merchant' +require 'cybersource_rest_client/models/ptsv2payouts_client_reference_information' +require 'cybersource_rest_client/models/ptsv2payouts_merchant_information' +require 'cybersource_rest_client/models/ptsv2payouts_merchant_information_merchant_descriptor' +require 'cybersource_rest_client/models/ptsv2payouts_order_information' +require 'cybersource_rest_client/models/ptsv2payouts_order_information_amount_details' +require 'cybersource_rest_client/models/ptsv2payouts_order_information_amount_details_surcharge' +require 'cybersource_rest_client/models/ptsv2payouts_order_information_bill_to' +require 'cybersource_rest_client/models/ptsv2payouts_payment_information' +require 'cybersource_rest_client/models/ptsv2payouts_payment_information_card' +require 'cybersource_rest_client/models/ptsv2payouts_processing_information' +require 'cybersource_rest_client/models/ptsv2payouts_processing_information_funding_options' +require 'cybersource_rest_client/models/ptsv2payouts_processing_information_funding_options_initiator' +require 'cybersource_rest_client/models/ptsv2payouts_processing_information_payouts_options' +require 'cybersource_rest_client/models/ptsv2payouts_processing_information_purchase_options' +require 'cybersource_rest_client/models/ptsv2payouts_recipient_information' +require 'cybersource_rest_client/models/ptsv2payouts_sender_information' +require 'cybersource_rest_client/models/ptsv2payouts_sender_information_account' +require 'cybersource_rest_client/models/ptsv2refreshpaymentstatusid_agreement_information' +require 'cybersource_rest_client/models/ptsv2refreshpaymentstatusid_client_reference_information' +require 'cybersource_rest_client/models/ptsv2refreshpaymentstatusid_payment_information' +require 'cybersource_rest_client/models/ptsv2refreshpaymentstatusid_payment_information_customer' +require 'cybersource_rest_client/models/ptsv2refreshpaymentstatusid_payment_information_payment_type' +require 'cybersource_rest_client/models/ptsv2refreshpaymentstatusid_processing_information' +require 'cybersource_rest_client/models/ptsv2reversals_processor_information' +require 'cybersource_rest_client/models/ptsv2voids_processing_information' +require 'cybersource_rest_client/models/push_funds201_response' +require 'cybersource_rest_client/models/push_funds201_response_client_reference_information' +require 'cybersource_rest_client/models/push_funds201_response_error_information' +require 'cybersource_rest_client/models/push_funds201_response_error_information_details' +require 'cybersource_rest_client/models/push_funds201_response__links' +require 'cybersource_rest_client/models/push_funds201_response__links_customer' +require 'cybersource_rest_client/models/push_funds201_response__links_instrument_identifier' +require 'cybersource_rest_client/models/push_funds201_response__links_payment_instrument' +require 'cybersource_rest_client/models/push_funds201_response__links_self' +require 'cybersource_rest_client/models/push_funds201_response_merchant_information' +require 'cybersource_rest_client/models/push_funds201_response_merchant_information_merchant_descriptor' +require 'cybersource_rest_client/models/push_funds201_response_order_information' +require 'cybersource_rest_client/models/push_funds201_response_order_information_amount_details' +require 'cybersource_rest_client/models/push_funds201_response_payment_information' +require 'cybersource_rest_client/models/push_funds201_response_payment_information_tokenized_card' +require 'cybersource_rest_client/models/push_funds201_response_processing_information' +require 'cybersource_rest_client/models/push_funds201_response_processing_information_domestic_national_net' +require 'cybersource_rest_client/models/push_funds201_response_processor_information' +require 'cybersource_rest_client/models/push_funds201_response_processor_information_routing' +require 'cybersource_rest_client/models/push_funds201_response_processor_information_settlement' +require 'cybersource_rest_client/models/push_funds201_response_recipient_information' +require 'cybersource_rest_client/models/push_funds201_response_recipient_information_card' +require 'cybersource_rest_client/models/push_funds400_response' +require 'cybersource_rest_client/models/push_funds400_response_details' +require 'cybersource_rest_client/models/push_funds401_response' +require 'cybersource_rest_client/models/push_funds404_response' +require 'cybersource_rest_client/models/push_funds502_response' +require 'cybersource_rest_client/models/push_funds_request' +require 'cybersource_rest_client/models/rbsv1plans_order_information' +require 'cybersource_rest_client/models/rbsv1plans_order_information_amount_details' +require 'cybersource_rest_client/models/rbsv1plans_plan_information' +require 'cybersource_rest_client/models/rbsv1plans_plan_information_billing_cycles' +require 'cybersource_rest_client/models/rbsv1plansid_plan_information' +require 'cybersource_rest_client/models/rbsv1plansid_processing_information' +require 'cybersource_rest_client/models/rbsv1plansid_processing_information_subscription_billing_options' +require 'cybersource_rest_client/models/rbsv1subscriptions_payment_information' +require 'cybersource_rest_client/models/rbsv1subscriptions_payment_information_customer' +require 'cybersource_rest_client/models/rbsv1subscriptions_plan_information' +require 'cybersource_rest_client/models/rbsv1subscriptions_processing_information' +require 'cybersource_rest_client/models/rbsv1subscriptions_processing_information_authorization_options' +require 'cybersource_rest_client/models/rbsv1subscriptions_processing_information_authorization_options_initiator' +require 'cybersource_rest_client/models/rbsv1subscriptions_subscription_information' +require 'cybersource_rest_client/models/rbsv1subscriptionsid_order_information' +require 'cybersource_rest_client/models/rbsv1subscriptionsid_order_information_amount_details' +require 'cybersource_rest_client/models/rbsv1subscriptionsid_plan_information' +require 'cybersource_rest_client/models/rbsv1subscriptionsid_subscription_information' +require 'cybersource_rest_client/models/refresh_payment_status_request' +require 'cybersource_rest_client/models/refund_capture_request' +require 'cybersource_rest_client/models/refund_payment_request' +require 'cybersource_rest_client/models/reporting_v3_chargeback_details_get200_response' +require 'cybersource_rest_client/models/reporting_v3_chargeback_details_get200_response_chargeback_details' +require 'cybersource_rest_client/models/reporting_v3_chargeback_summaries_get200_response' +require 'cybersource_rest_client/models/reporting_v3_chargeback_summaries_get200_response_chargeback_summaries' +require 'cybersource_rest_client/models/reporting_v3_conversion_details_get200_response' +require 'cybersource_rest_client/models/reporting_v3_conversion_details_get200_response_conversion_details' +require 'cybersource_rest_client/models/reporting_v3_conversion_details_get200_response_notes' +require 'cybersource_rest_client/models/reporting_v3_interchange_clearing_level_details_get200_response' +require 'cybersource_rest_client/models/reporting_get200_response_interchange_clearing_level_details' +require 'cybersource_rest_client/models/reporting_v3_net_fundings_get200_response' +require 'cybersource_rest_client/models/reporting_v3_net_fundings_get200_response_net_funding_summaries' +require 'cybersource_rest_client/models/reporting_v3_net_fundings_get200_response_total_purchases' +require 'cybersource_rest_client/models/reporting_v3_notificationof_changes_get200_response' +require 'cybersource_rest_client/models/reporting_v3_notificationof_changes_get200_response_notification_of_changes' +require 'cybersource_rest_client/models/reporting_v3_payment_batch_summaries_get200_response' +require 'cybersource_rest_client/models/reporting_v3_payment_batch_summaries_get200_response_payment_batch_summaries' +require 'cybersource_rest_client/models/reporting_v3_purchase_refund_details_get200_response' +require 'cybersource_rest_client/models/reporting_v3_purchase_refund_details_get200_response_authorizations' +require 'cybersource_rest_client/models/reporting_v3_purchase_refund_details_get200_response_fee_and_funding_details' +require 'cybersource_rest_client/models/reporting_v3_purchase_refund_details_get200_response_others' +require 'cybersource_rest_client/models/reporting_v3_purchase_refund_details_get200_response_request_details' +require 'cybersource_rest_client/models/reporting_v3_purchase_refund_details_get200_response_settlement_statuses' +require 'cybersource_rest_client/models/reporting_v3_purchase_refund_details_get200_response_settlements' +require 'cybersource_rest_client/models/reporting_v3_report_definitions_get200_response' +require 'cybersource_rest_client/models/reporting_v3_report_definitions_get200_response_report_definitions' +require 'cybersource_rest_client/models/reporting_v3_report_definitions_name_get200_response' +require 'cybersource_rest_client/models/reporting_v3_report_definitions_name_get200_response_attributes' +require 'cybersource_rest_client/models/reporting_v3_report_definitions_name_get200_response_default_settings' +require 'cybersource_rest_client/models/reporting_v3_report_subscriptions_get200_response' +require 'cybersource_rest_client/models/reporting_v3_report_subscriptions_get200_response_subscriptions' +require 'cybersource_rest_client/models/reporting_v3_reports_get200_response' +require 'cybersource_rest_client/models/reporting_v3_reports_get200_response__link' +require 'cybersource_rest_client/models/reporting_v3_reports_get200_response__link_report_download' +require 'cybersource_rest_client/models/reporting_v3_reports_get200_response_report_search_results' +require 'cybersource_rest_client/models/reporting_v3_reports_id_get200_response' +require 'cybersource_rest_client/models/reporting_v3_retrieval_details_get200_response' +require 'cybersource_rest_client/models/reporting_v3_retrieval_details_get200_response_retrieval_details' +require 'cybersource_rest_client/models/reporting_v3_retrieval_summaries_get200_response' +require 'cybersource_rest_client/models/reportingv3_report_downloads_get400_response' +require 'cybersource_rest_client/models/reportingv3_report_downloads_get400_response_details' +require 'cybersource_rest_client/models/reportingv3reports_report_filters' +require 'cybersource_rest_client/models/reportingv3reports_report_preferences' +require 'cybersource_rest_client/models/request' +require 'cybersource_rest_client/models/risk_products' +require 'cybersource_rest_client/models/risk_products_decision_manager' +require 'cybersource_rest_client/models/risk_products_decision_manager_configuration_information' +require 'cybersource_rest_client/models/risk_products_fraud_management_essentials' +require 'cybersource_rest_client/models/risk_products_fraud_management_essentials_configuration_information' +require 'cybersource_rest_client/models/risk_products_portfolio_risk_controls' +require 'cybersource_rest_client/models/risk_products_portfolio_risk_controls_configuration_information' +require 'cybersource_rest_client/models/risk_products_portfolio_risk_controls_configuration_information_configurations' +require 'cybersource_rest_client/models/risk_v1_address_verifications_post201_response' +require 'cybersource_rest_client/models/risk_v1_address_verifications_post201_response_address_verification_information' +require 'cybersource_rest_client/models/risk_v1_address_verifications_post201_response_address_verification_information_bar_code' +require 'cybersource_rest_client/models/risk_v1_address_verifications_post201_response_address_verification_information_standard_address' +require 'cybersource_rest_client/models/risk_v1_address_verifications_post201_response_address1' +require 'cybersource_rest_client/models/risk_v1_address_verifications_post201_response_error_information' +require 'cybersource_rest_client/models/risk_v1_authentication_results_post201_response' +require 'cybersource_rest_client/models/risk_v1_authentication_results_post201_response_consumer_authentication_information' +require 'cybersource_rest_client/models/risk_v1_authentication_setups_post201_response' +require 'cybersource_rest_client/models/risk_v1_authentication_setups_post201_response_consumer_authentication_information' +require 'cybersource_rest_client/models/risk_v1_authentication_setups_post201_response_error_information' +require 'cybersource_rest_client/models/risk_v1_authentications_post201_response' +require 'cybersource_rest_client/models/risk_v1_authentications_post201_response_error_information' +require 'cybersource_rest_client/models/risk_v1_authentications_post400_response' +require 'cybersource_rest_client/models/risk_v1_authentications_post400_response_1' +require 'cybersource_rest_client/models/risk_v1_decisions_post201_response' +require 'cybersource_rest_client/models/risk_v1_decisions_post201_response_client_reference_information' +require 'cybersource_rest_client/models/risk_v1_decisions_post201_response_consumer_authentication_information' +require 'cybersource_rest_client/models/risk_v1_decisions_post201_response_error_information' +require 'cybersource_rest_client/models/risk_v1_decisions_post201_response_order_information' +require 'cybersource_rest_client/models/risk_v1_decisions_post201_response_order_information_amount_details' +require 'cybersource_rest_client/models/risk_v1_decisions_post201_response_payment_information' +require 'cybersource_rest_client/models/risk_v1_decisions_post400_response' +require 'cybersource_rest_client/models/risk_v1_decisions_post400_response_1' +require 'cybersource_rest_client/models/risk_v1_export_compliance_inquiries_post201_response' +require 'cybersource_rest_client/models/risk_v1_export_compliance_inquiries_post201_response_error_information' +require 'cybersource_rest_client/models/risk_v1_update_post201_response' +require 'cybersource_rest_client/models/riskv1addressverifications_buyer_information' +require 'cybersource_rest_client/models/riskv1addressverifications_order_information' +require 'cybersource_rest_client/models/riskv1addressverifications_order_information_bill_to' +require 'cybersource_rest_client/models/riskv1addressverifications_order_information_line_items' +require 'cybersource_rest_client/models/riskv1addressverifications_order_information_ship_to' +require 'cybersource_rest_client/models/riskv1authenticationresults_consumer_authentication_information' +require 'cybersource_rest_client/models/riskv1authenticationresults_device_information' +require 'cybersource_rest_client/models/riskv1authenticationresults_order_information' +require 'cybersource_rest_client/models/riskv1authenticationresults_order_information_amount_details' +require 'cybersource_rest_client/models/riskv1authenticationresults_payment_information' +require 'cybersource_rest_client/models/riskv1authenticationresults_payment_information_card' +require 'cybersource_rest_client/models/riskv1authenticationresults_payment_information_fluid_data' +require 'cybersource_rest_client/models/riskv1authenticationresults_payment_information_tokenized_card' +require 'cybersource_rest_client/models/riskv1authentications_buyer_information' +require 'cybersource_rest_client/models/riskv1authentications_device_information' +require 'cybersource_rest_client/models/riskv1authentications_order_information' +require 'cybersource_rest_client/models/riskv1authentications_order_information_amount_details' +require 'cybersource_rest_client/models/riskv1authentications_order_information_bill_to' +require 'cybersource_rest_client/models/riskv1authentications_order_information_line_items' +require 'cybersource_rest_client/models/riskv1authentications_payment_information' +require 'cybersource_rest_client/models/riskv1authentications_payment_information_customer' +require 'cybersource_rest_client/models/riskv1authentications_payment_information_tokenized_card' +require 'cybersource_rest_client/models/riskv1authentications_risk_information' +require 'cybersource_rest_client/models/riskv1authentications_travel_information' +require 'cybersource_rest_client/models/riskv1authenticationsetups_client_reference_information' +require 'cybersource_rest_client/models/riskv1authenticationsetups_payment_information' +require 'cybersource_rest_client/models/riskv1authenticationsetups_payment_information_card' +require 'cybersource_rest_client/models/riskv1authenticationsetups_payment_information_customer' +require 'cybersource_rest_client/models/riskv1authenticationsetups_payment_information_fluid_data' +require 'cybersource_rest_client/models/riskv1authenticationsetups_payment_information_tokenized_card' +require 'cybersource_rest_client/models/riskv1authenticationsetups_processing_information' +require 'cybersource_rest_client/models/riskv1authenticationsetups_token_information' +require 'cybersource_rest_client/models/riskv1decisions_acquirer_information' +require 'cybersource_rest_client/models/riskv1decisions_buyer_information' +require 'cybersource_rest_client/models/riskv1decisions_client_reference_information' +require 'cybersource_rest_client/models/riskv1decisions_client_reference_information_partner' +require 'cybersource_rest_client/models/riskv1decisions_consumer_authentication_information' +require 'cybersource_rest_client/models/riskv1decisions_consumer_authentication_information_strong_authentication' +require 'cybersource_rest_client/models/riskv1decisions_device_information' +require 'cybersource_rest_client/models/riskv1decisions_merchant_defined_information' +require 'cybersource_rest_client/models/riskv1decisions_merchant_information' +require 'cybersource_rest_client/models/riskv1decisions_merchant_information_merchant_descriptor' +require 'cybersource_rest_client/models/riskv1decisions_order_information' +require 'cybersource_rest_client/models/riskv1decisions_order_information_amount_details' +require 'cybersource_rest_client/models/riskv1decisions_order_information_bill_to' +require 'cybersource_rest_client/models/riskv1decisions_order_information_line_items' +require 'cybersource_rest_client/models/riskv1decisions_order_information_ship_to' +require 'cybersource_rest_client/models/riskv1decisions_order_information_shipping_details' +require 'cybersource_rest_client/models/riskv1decisions_payment_information' +require 'cybersource_rest_client/models/riskv1decisions_payment_information_card' +require 'cybersource_rest_client/models/riskv1decisions_payment_information_tokenized_card' +require 'cybersource_rest_client/models/riskv1decisions_processing_information' +require 'cybersource_rest_client/models/riskv1decisions_processor_information' +require 'cybersource_rest_client/models/riskv1decisions_processor_information_avs' +require 'cybersource_rest_client/models/riskv1decisions_processor_information_card_verification' +require 'cybersource_rest_client/models/riskv1decisions_risk_information' +require 'cybersource_rest_client/models/riskv1decisions_token_information' +require 'cybersource_rest_client/models/riskv1decisions_travel_information' +require 'cybersource_rest_client/models/riskv1decisions_travel_information_legs' +require 'cybersource_rest_client/models/riskv1decisions_travel_information_passengers' +require 'cybersource_rest_client/models/riskv1decisionsidactions_decision_information' +require 'cybersource_rest_client/models/riskv1decisionsidactions_processing_information' +require 'cybersource_rest_client/models/riskv1decisionsidmarking_risk_information' +require 'cybersource_rest_client/models/riskv1decisionsidmarking_risk_information_marking_details' +require 'cybersource_rest_client/models/riskv1exportcomplianceinquiries_device_information' +require 'cybersource_rest_client/models/riskv1exportcomplianceinquiries_export_compliance_information' +require 'cybersource_rest_client/models/riskv1exportcomplianceinquiries_order_information' +require 'cybersource_rest_client/models/riskv1exportcomplianceinquiries_order_information_bill_to' +require 'cybersource_rest_client/models/riskv1exportcomplianceinquiries_order_information_bill_to_company' +require 'cybersource_rest_client/models/riskv1exportcomplianceinquiries_order_information_line_items' +require 'cybersource_rest_client/models/riskv1exportcomplianceinquiries_order_information_ship_to' +require 'cybersource_rest_client/models/riskv1liststypeentries_buyer_information' +require 'cybersource_rest_client/models/riskv1liststypeentries_client_reference_information' +require 'cybersource_rest_client/models/riskv1liststypeentries_device_information' +require 'cybersource_rest_client/models/riskv1liststypeentries_order_information' +require 'cybersource_rest_client/models/riskv1liststypeentries_order_information_address' +require 'cybersource_rest_client/models/riskv1liststypeentries_order_information_bill_to' +require 'cybersource_rest_client/models/riskv1liststypeentries_order_information_line_items' +require 'cybersource_rest_client/models/riskv1liststypeentries_order_information_ship_to' +require 'cybersource_rest_client/models/riskv1liststypeentries_payment_information' +require 'cybersource_rest_client/models/riskv1liststypeentries_payment_information_bank' +require 'cybersource_rest_client/models/riskv1liststypeentries_payment_information_card' +require 'cybersource_rest_client/models/riskv1liststypeentries_risk_information' +require 'cybersource_rest_client/models/riskv1liststypeentries_risk_information_marking_details' +require 'cybersource_rest_client/models/sa_config' +require 'cybersource_rest_client/models/sa_config_checkout' +require 'cybersource_rest_client/models/sa_config_contact_information' +require 'cybersource_rest_client/models/sa_config_notifications' +require 'cybersource_rest_client/models/sa_config_notifications_customer_notifications' +require 'cybersource_rest_client/models/sa_config_notifications_merchant_notifications' +require 'cybersource_rest_client/models/sa_config_payment_methods' +require 'cybersource_rest_client/models/sa_config_payment_types' +require 'cybersource_rest_client/models/sa_config_payment_types_card_types' +require 'cybersource_rest_client/models/sa_config_payment_types_card_types_discover' +require 'cybersource_rest_client/models/sa_config_service' +require 'cybersource_rest_client/models/save_asym_egress_key' +require 'cybersource_rest_client/models/save_sym_egress_key' +require 'cybersource_rest_client/models/search_request' +require 'cybersource_rest_client/models/shipping_address_list_for_customer' +require 'cybersource_rest_client/models/shipping_address_list_for_customer__embedded' +require 'cybersource_rest_client/models/shipping_address_list_for_customer__links' +require 'cybersource_rest_client/models/shipping_address_list_for_customer__links_first' +require 'cybersource_rest_client/models/shipping_address_list_for_customer__links_last' +require 'cybersource_rest_client/models/shipping_address_list_for_customer__links_next' +require 'cybersource_rest_client/models/shipping_address_list_for_customer__links_prev' +require 'cybersource_rest_client/models/shipping_address_list_for_customer__links_self' +require 'cybersource_rest_client/models/suspend_subscription_response' +require 'cybersource_rest_client/models/suspend_subscription_response_subscription_information' +require 'cybersource_rest_client/models/tax_request' +require 'cybersource_rest_client/models/tms_authorization_options' +require 'cybersource_rest_client/models/tms_authorization_options_initiator' +require 'cybersource_rest_client/models/tms_authorization_options_initiator_merchant_initiated_transaction' +require 'cybersource_rest_client/models/tms_bin_lookup' +require 'cybersource_rest_client/models/tms_bin_lookup_issuer_information' +require 'cybersource_rest_client/models/tms_bin_lookup_payment_account_information' +require 'cybersource_rest_client/models/tms_bin_lookup_payment_account_information_card' +require 'cybersource_rest_client/models/tms_bin_lookup_payment_account_information_card_brands' +require 'cybersource_rest_client/models/tms_bin_lookup_payment_account_information_features' +require 'cybersource_rest_client/models/tms_bin_lookup_payment_account_information_network' +require 'cybersource_rest_client/models/tms_business_information' +require 'cybersource_rest_client/models/tms_business_information_acquirer' +require 'cybersource_rest_client/models/tms_business_information_address' +require 'cybersource_rest_client/models/tms_card_art' +require 'cybersource_rest_client/models/tms_card_art_brand_logo_asset' +require 'cybersource_rest_client/models/tms_card_art_brand_logo_asset__links' +require 'cybersource_rest_client/models/tms_card_art_brand_logo_asset__links_self' +require 'cybersource_rest_client/models/tms_card_art_combined_asset' +require 'cybersource_rest_client/models/tms_card_art_combined_asset__links' +require 'cybersource_rest_client/models/tms_card_art_combined_asset__links_self' +require 'cybersource_rest_client/models/tms_card_art_icon_asset' +require 'cybersource_rest_client/models/tms_card_art_icon_asset__links' +require 'cybersource_rest_client/models/tms_card_art_icon_asset__links_self' +require 'cybersource_rest_client/models/tms_card_art_issuer_logo_asset' +require 'cybersource_rest_client/models/tms_card_art_issuer_logo_asset__links' +require 'cybersource_rest_client/models/tms_card_art_issuer_logo_asset__links_self' +require 'cybersource_rest_client/models/tms_embedded_instrument_identifier' +require 'cybersource_rest_client/models/tms_embedded_instrument_identifier_bank_account' +require 'cybersource_rest_client/models/tms_embedded_instrument_identifier_bill_to' +require 'cybersource_rest_client/models/tms_embedded_instrument_identifier_card' +require 'cybersource_rest_client/models/tms_embedded_instrument_identifier__embedded' +require 'cybersource_rest_client/models/tms_embedded_instrument_identifier_issuer' +require 'cybersource_rest_client/models/tms_embedded_instrument_identifier__links' +require 'cybersource_rest_client/models/tms_embedded_instrument_identifier__links_payment_instruments' +require 'cybersource_rest_client/models/tms_embedded_instrument_identifier__links_self' +require 'cybersource_rest_client/models/tms_embedded_instrument_identifier_metadata' +require 'cybersource_rest_client/models/tms_embedded_instrument_identifier_point_of_sale_information' +require 'cybersource_rest_client/models/tms_embedded_instrument_identifier_point_of_sale_information_emv_tags' +require 'cybersource_rest_client/models/tms_embedded_instrument_identifier_processing_information' +require 'cybersource_rest_client/models/tms_merchant_information' +require 'cybersource_rest_client/models/tms_merchant_information_merchant_descriptor' +require 'cybersource_rest_client/models/tms_network_token_services' +require 'cybersource_rest_client/models/tms_network_token_services_american_express_token_service' +require 'cybersource_rest_client/models/tms_network_token_services_mastercard_digital_enablement_service' +require 'cybersource_rest_client/models/tms_network_token_services_notifications' +require 'cybersource_rest_client/models/tms_network_token_services_payment_credentials' +require 'cybersource_rest_client/models/tms_network_token_services_synchronous_provisioning' +require 'cybersource_rest_client/models/tms_network_token_services_visa_token_service' +require 'cybersource_rest_client/models/tms_nullify' +require 'cybersource_rest_client/models/tms_payment_instrument_processing_info' +require 'cybersource_rest_client/models/tms_payment_instrument_processing_info_bank_transfer_options' +require 'cybersource_rest_client/models/tms_sensitive_privileges' +require 'cybersource_rest_client/models/tms_token_formats' +require 'cybersource_rest_client/models/tmsv2_tokenized_card' +require 'cybersource_rest_client/models/tmsv2_tokenized_card_card' +require 'cybersource_rest_client/models/tmsv2_tokenized_card_card_terms_and_conditions' +require 'cybersource_rest_client/models/tmsv2_tokenized_card__links' +require 'cybersource_rest_client/models/tmsv2_tokenized_card__links_self' +require 'cybersource_rest_client/models/tmsv2_tokenized_card_metadata' +require 'cybersource_rest_client/models/tmsv2_tokenized_card_metadata_issuer' +require 'cybersource_rest_client/models/tmsv2_tokenized_card_passcode' +require 'cybersource_rest_client/models/tmsv2tokenize_processing_information' +require 'cybersource_rest_client/models/tmsv2tokenize_token_information' +require 'cybersource_rest_client/models/tmsv2tokenize_token_information_customer' +require 'cybersource_rest_client/models/tmsv2tokenize_token_information_customer_buyer_information' +require 'cybersource_rest_client/models/tmsv2tokenize_token_information_customer_client_reference_information' +require 'cybersource_rest_client/models/tmsv2tokenize_token_information_customer_default_payment_instrument' +require 'cybersource_rest_client/models/tmsv2tokenize_token_information_customer_default_shipping_address' +require 'cybersource_rest_client/models/tmsv2tokenize_token_information_customer__embedded' +require 'cybersource_rest_client/models/tmsv2tokenize_token_information_customer__embedded_default_payment_instrument' +require 'cybersource_rest_client/models/tmsv2tokenize_token_information_customer__embedded_default_payment_instrument_bank_account' +require 'cybersource_rest_client/models/tmsv2tokenize_token_information_customer__embedded_default_payment_instrument_bill_to' +require 'cybersource_rest_client/models/tmsv2tokenize_token_information_customer__embedded_default_payment_instrument_buyer_information' +require 'cybersource_rest_client/models/tmsv2tokenize_default_payment_instrument_buyer_info_issued_by' +require 'cybersource_rest_client/models/tmsv2tokenize_default_payment_instrument_buyer_info_personal_identification' +require 'cybersource_rest_client/models/tmsv2tokenize_token_information_customer__embedded_default_payment_instrument_card' +require 'cybersource_rest_client/models/tmsv2tokenize_default_payment_instrument_card_tokenized_info' +require 'cybersource_rest_client/models/tmsv2tokenize_token_information_customer__embedded_default_payment_instrument__embedded' +require 'cybersource_rest_client/models/tmsv2tokenize_default_payment_instrument_instrument_identifier' +require 'cybersource_rest_client/models/tmsv2tokenize_token_information_customer__embedded_default_payment_instrument__links' +require 'cybersource_rest_client/models/tmsv2tokenize_token_information_customer__embedded_default_payment_instrument__links_self' +require 'cybersource_rest_client/models/tmsv2tokenize_token_information_customer__embedded_default_payment_instrument_metadata' +require 'cybersource_rest_client/models/tmsv2tokenize_token_information_customer__embedded_default_shipping_address' +require 'cybersource_rest_client/models/tmsv2tokenize_token_information_customer__embedded_default_shipping_address__links' +require 'cybersource_rest_client/models/tmsv2tokenize_token_information_customer__embedded_default_shipping_address__links_customer' +require 'cybersource_rest_client/models/tmsv2tokenize_token_information_customer__embedded_default_shipping_address__links_self' +require 'cybersource_rest_client/models/tmsv2tokenize_token_information_customer__embedded_default_shipping_address_metadata' +require 'cybersource_rest_client/models/tmsv2tokenize_token_information_customer__embedded_default_shipping_address_ship_to' +require 'cybersource_rest_client/models/tmsv2tokenize_token_information_customer__links' +require 'cybersource_rest_client/models/tmsv2tokenize_token_information_customer__links_payment_instruments' +require 'cybersource_rest_client/models/tmsv2tokenize_token_information_customer__links_self' +require 'cybersource_rest_client/models/tmsv2tokenize_token_information_customer__links_shipping_address' +require 'cybersource_rest_client/models/tmsv2tokenize_token_information_customer_merchant_defined_information' +require 'cybersource_rest_client/models/tmsv2tokenize_token_information_customer_metadata' +require 'cybersource_rest_client/models/tmsv2tokenize_token_information_customer_object_information' +require 'cybersource_rest_client/models/tmsv2tokenizedcardstokenized_card_idissuerlifecycleeventsimulations_card' +require 'cybersource_rest_client/models/tmsv2tokenizedcardstokenized_card_idissuerlifecycleeventsimulations_metadata' +require 'cybersource_rest_client/models/tmsv2tokenizedcardstokenized_card_idissuerlifecycleeventsimulations_metadata_card_art' +require 'cybersource_rest_client/models/tms_issuerlifecycleeventsimulations_metadata_card_art_combined_asset' +require 'cybersource_rest_client/models/tmsv2tokenstoken_idpaymentcredentials_authenticated_identities' +require 'cybersource_rest_client/models/tmsv2tokenstoken_idpaymentcredentials_device_information' +require 'cybersource_rest_client/models/tmsv2tokenstoken_idpaymentcredentials_merchant_information' +require 'cybersource_rest_client/models/tmsv2tokenstoken_idpaymentcredentials_merchant_information_merchant_descriptor' +require 'cybersource_rest_client/models/tmsv2tokenstoken_idpaymentcredentials_order_information' +require 'cybersource_rest_client/models/tmsv2tokenstoken_idpaymentcredentials_order_information_amount_details' +require 'cybersource_rest_client/models/tmsv2tokenstoken_idpaymentcredentials_order_information_bill_to' +require 'cybersource_rest_client/models/token_permissions' +require 'cybersource_rest_client/models/tokenizedcard_request' +require 'cybersource_rest_client/models/tss_v2_get_emv_tags200_response' +require 'cybersource_rest_client/models/tss_v2_get_emv_tags200_response_emv_tag_breakdown_list' +require 'cybersource_rest_client/models/tss_v2_post_emv_tags200_response' +require 'cybersource_rest_client/models/tss_v2_post_emv_tags200_response_emv_tag_breakdown_list' +require 'cybersource_rest_client/models/tss_v2_post_emv_tags200_response_parsed_emv_tags_list' +require 'cybersource_rest_client/models/tss_v2_transactions_get200_response' +require 'cybersource_rest_client/models/tss_v2_transactions_get200_response_application_information' +require 'cybersource_rest_client/models/tss_v2_transactions_get200_response_application_information_applications' +require 'cybersource_rest_client/models/tss_v2_transactions_get200_response_bank_account_validation' +require 'cybersource_rest_client/models/tss_v2_transactions_get200_response_buyer_information' +require 'cybersource_rest_client/models/tss_v2_transactions_get200_response_client_reference_information' +require 'cybersource_rest_client/models/tss_v2_transactions_get200_response_client_reference_information_partner' +require 'cybersource_rest_client/models/tss_v2_transactions_get200_response_consumer_authentication_information' +require 'cybersource_rest_client/models/tss_v2_transactions_get200_response_consumer_authentication_information_strong_authentication' +require 'cybersource_rest_client/models/tss_v2_transactions_get200_response_device_information' +require 'cybersource_rest_client/models/tss_v2_transactions_get200_response_error_information' +require 'cybersource_rest_client/models/tss_v2_transactions_get200_response_fraud_marking_information' +require 'cybersource_rest_client/models/tss_v2_transactions_get200_response_installment_information' +require 'cybersource_rest_client/models/tss_v2_transactions_get200_response__links' +require 'cybersource_rest_client/models/tss_v2_transactions_get200_response_merchant_information' +require 'cybersource_rest_client/models/tss_v2_transactions_get200_response_merchant_information_merchant_descriptor' +require 'cybersource_rest_client/models/tss_v2_transactions_get200_response_order_information' +require 'cybersource_rest_client/models/tss_v2_transactions_get200_response_order_information_amount_details' +require 'cybersource_rest_client/models/tss_v2_transactions_get200_response_order_information_bill_to' +require 'cybersource_rest_client/models/tss_v2_transactions_get200_response_order_information_invoice_details' +require 'cybersource_rest_client/models/tss_v2_transactions_get200_response_order_information_line_items' +require 'cybersource_rest_client/models/tss_v2_transactions_get200_response_order_information_ship_to' +require 'cybersource_rest_client/models/tss_v2_transactions_get200_response_order_information_shipping_details' +require 'cybersource_rest_client/models/tss_v2_transactions_get200_response_payment_information' +require 'cybersource_rest_client/models/tss_v2_transactions_get200_response_payment_information_account_features' +require 'cybersource_rest_client/models/tss_v2_transactions_get200_response_payment_information_bank' +require 'cybersource_rest_client/models/tss_v2_transactions_get200_response_payment_information_bank_account' +require 'cybersource_rest_client/models/tss_v2_transactions_get200_response_payment_information_bank_mandate' +require 'cybersource_rest_client/models/tss_v2_transactions_get200_response_payment_information_brands' +require 'cybersource_rest_client/models/tss_v2_transactions_get200_response_payment_information_card' +require 'cybersource_rest_client/models/tss_v2_transactions_get200_response_payment_information_customer' +require 'cybersource_rest_client/models/tss_v2_transactions_get200_response_payment_information_features' +require 'cybersource_rest_client/models/tss_v2_transactions_get200_response_payment_information_fluid_data' +require 'cybersource_rest_client/models/tss_v2_transactions_get200_response_payment_information_instrument_identifier' +require 'cybersource_rest_client/models/tss_v2_transactions_get200_response_payment_information_invoice' +require 'cybersource_rest_client/models/tss_v2_transactions_get200_response_payment_information_issuer_information' +require 'cybersource_rest_client/models/tss_v2_transactions_get200_response_payment_information_network' +require 'cybersource_rest_client/models/tss_v2_transactions_get200_response_payment_information_payment_type' +require 'cybersource_rest_client/models/tss_v2_transactions_get200_response_payout_options' +require 'cybersource_rest_client/models/tss_v2_transactions_get200_response_point_of_sale_information' +require 'cybersource_rest_client/models/tss_v2_transactions_get200_response_processing_information' +require 'cybersource_rest_client/models/tss_v2_transactions_get200_response_processing_information_authorization_options' +require 'cybersource_rest_client/models/tss_v2_transactions_get200_response_processing_information_authorization_options_initiator' +require 'cybersource_rest_client/models/tss_v2_transactions_get200_response_processing_information_bank_transfer_options' +require 'cybersource_rest_client/models/tss_v2_transactions_get200_response_processing_information_capture_options' +require 'cybersource_rest_client/models/tss_v2_transactions_get200_response_processing_information_japan_payment_options' +require 'cybersource_rest_client/models/tss_v2_transactions_get200_response_processor_information' +require 'cybersource_rest_client/models/tss_v2_transactions_get200_response_processor_information_electronic_verification_results' +require 'cybersource_rest_client/models/tss_v2_transactions_get200_response_processor_information_multi_processor_routing' +require 'cybersource_rest_client/models/tss_v2_transactions_get200_response_processor_information_processor' +require 'cybersource_rest_client/models/tss_v2_transactions_get200_response_recurring_payment_information' +require 'cybersource_rest_client/models/tss_v2_transactions_get200_response_risk_information' +require 'cybersource_rest_client/models/tss_v2_transactions_get200_response_risk_information_profile' +require 'cybersource_rest_client/models/tss_v2_transactions_get200_response_risk_information_rules' +require 'cybersource_rest_client/models/tss_v2_transactions_get200_response_risk_information_score' +require 'cybersource_rest_client/models/tss_v2_transactions_get200_response_sender_information' +require 'cybersource_rest_client/models/tss_v2_transactions_get200_response_token_information' +require 'cybersource_rest_client/models/tss_v2_transactions_post201_response' +require 'cybersource_rest_client/models/tss_v2_transactions_post201_response__embedded' +require 'cybersource_rest_client/models/tss_v2_transactions_post201_response__embedded_application_information' +require 'cybersource_rest_client/models/tss_v2_transactions_post201_response__embedded_application_information_applications' +require 'cybersource_rest_client/models/tss_v2_transactions_post201_response__embedded_client_reference_information' +require 'cybersource_rest_client/models/tss_v2_transactions_post201_response__embedded_client_reference_information_partner' +require 'cybersource_rest_client/models/tss_v2_transactions_post201_response__embedded_consumer_authentication_information' +require 'cybersource_rest_client/models/tss_v2_transactions_post201_response__embedded_error_information' +require 'cybersource_rest_client/models/tss_v2_transactions_post201_response__embedded__links' +require 'cybersource_rest_client/models/tss_v2_transactions_post201_response__embedded_merchant_information' +require 'cybersource_rest_client/models/tss_v2_transactions_post201_response__embedded_order_information' +require 'cybersource_rest_client/models/tss_v2_transactions_post201_response__embedded_order_information_bill_to' +require 'cybersource_rest_client/models/tss_v2_transactions_post201_response__embedded_order_information_ship_to' +require 'cybersource_rest_client/models/tss_v2_transactions_post201_response__embedded_payment_information' +require 'cybersource_rest_client/models/tss_v2_transactions_post201_response__embedded_payment_information_bank' +require 'cybersource_rest_client/models/tss_v2_transactions_post201_response__embedded_payment_information_bank_account' +require 'cybersource_rest_client/models/tss_v2_transactions_post201_response__embedded_payment_information_card' +require 'cybersource_rest_client/models/tss_v2_transactions_post201_response__embedded_payment_information_payment_type' +require 'cybersource_rest_client/models/tss_v2_transactions_post201_response__embedded_point_of_sale_information' +require 'cybersource_rest_client/models/tss_v2_transactions_post201_response__embedded_point_of_sale_information_partner' +require 'cybersource_rest_client/models/tss_v2_transactions_post201_response__embedded_processing_information' +require 'cybersource_rest_client/models/tss_v2_transactions_post201_response__embedded_processor_information' +require 'cybersource_rest_client/models/tss_v2_transactions_post201_response__embedded_risk_information' +require 'cybersource_rest_client/models/tss_v2_transactions_post201_response__embedded_risk_information_providers' +require 'cybersource_rest_client/models/tss_v2_transactions_post201_response__embedded_risk_information_providers_fingerprint' +require 'cybersource_rest_client/models/tss_v2_transactions_post201_response__embedded_transaction_summaries' +require 'cybersource_rest_client/models/tssv2transactionsemv_tag_details_emv_details_list' +require 'cybersource_rest_client/models/ums_v1_users_get200_response' +require 'cybersource_rest_client/models/ums_v1_users_get200_response_account_information' +require 'cybersource_rest_client/models/ums_v1_users_get200_response_contact_information' +require 'cybersource_rest_client/models/ums_v1_users_get200_response_organization_information' +require 'cybersource_rest_client/models/ums_v1_users_get200_response_users' +require 'cybersource_rest_client/models/underwriting_configuration' +require 'cybersource_rest_client/models/underwriting_configuration_billing_information' +require 'cybersource_rest_client/models/underwriting_configuration_billing_information_bank_account_information' +require 'cybersource_rest_client/models/underwriting_configuration_client_reference_information' +require 'cybersource_rest_client/models/underwriting_configuration_deposit_information' +require 'cybersource_rest_client/models/underwriting_configuration_device_information' +require 'cybersource_rest_client/models/underwriting_configuration_file_attachment_information' +require 'cybersource_rest_client/models/underwriting_configuration_merchant_application' +require 'cybersource_rest_client/models/underwriting_configuration_merchant_application_products' +require 'cybersource_rest_client/models/underwriting_configuration_organization_information' +require 'cybersource_rest_client/models/underwriting_configuration_organization_information_business_information' +require 'cybersource_rest_client/models/underwriting_configuration_organization_information_business_information_address' +require 'cybersource_rest_client/models/underwriting_configuration_organization_information_business_information_address_1' +require 'cybersource_rest_client/models/underwriting_configuration_organization_information_business_information_address_2' +require 'cybersource_rest_client/models/underwriting_configuration_organization_information_business_information_business_contact' +require 'cybersource_rest_client/models/underwriting_configuration_organization_information_business_information_business_details' +require 'cybersource_rest_client/models/underwriting_configuration_business_details_product_services_subscription' +require 'cybersource_rest_client/models/underwriting_configuration_organization_information_business_information_director_information' +require 'cybersource_rest_client/models/underwriting_configuration_organization_information_business_information_owner_information' +require 'cybersource_rest_client/models/underwriting_configuration_organization_information_business_information_trading_address' +require 'cybersource_rest_client/models/underwriting_configuration_sale_representative_information' +require 'cybersource_rest_client/models/update_invoice_request' +require 'cybersource_rest_client/models/update_order_request' +require 'cybersource_rest_client/models/update_payment_link_request' +require 'cybersource_rest_client/models/update_plan_request' +require 'cybersource_rest_client/models/update_plan_response' +require 'cybersource_rest_client/models/update_plan_response_plan_information' +require 'cybersource_rest_client/models/update_status' +require 'cybersource_rest_client/models/update_subscription' +require 'cybersource_rest_client/models/update_subscription_response' +require 'cybersource_rest_client/models/update_webhook' +require 'cybersource_rest_client/models/upv1capturecontexts_capture_mandate' +require 'cybersource_rest_client/models/upv1capturecontexts_capture_mandate_cpf' +require 'cybersource_rest_client/models/upv1capturecontexts_complete_mandate' +require 'cybersource_rest_client/models/upv1capturecontexts_complete_mandate_tms' +require 'cybersource_rest_client/models/upv1capturecontexts_data' +require 'cybersource_rest_client/models/upv1capturecontexts_data_buyer_information' +require 'cybersource_rest_client/models/upv1capturecontexts_data_buyer_information_personal_identification' +require 'cybersource_rest_client/models/upv1capturecontexts_data_client_reference_information' +require 'cybersource_rest_client/models/upv1capturecontexts_data_client_reference_information_partner' +require 'cybersource_rest_client/models/upv1capturecontexts_data_consumer_authentication_information' +require 'cybersource_rest_client/models/upv1capturecontexts_data_device_information' +require 'cybersource_rest_client/models/upv1capturecontexts_data_merchant_defined_information' +require 'cybersource_rest_client/models/upv1capturecontexts_data_merchant_information' +require 'cybersource_rest_client/models/upv1capturecontexts_data_merchant_information_merchant_descriptor' +require 'cybersource_rest_client/models/upv1capturecontexts_data_order_information' +require 'cybersource_rest_client/models/upv1capturecontexts_data_order_information_amount_details' +require 'cybersource_rest_client/models/upv1capturecontexts_data_order_information_amount_details_surcharge' +require 'cybersource_rest_client/models/upv1capturecontexts_data_order_information_amount_details_tax_details' +require 'cybersource_rest_client/models/upv1capturecontexts_data_order_information_bill_to' +require 'cybersource_rest_client/models/upv1capturecontexts_data_order_information_bill_to_company' +require 'cybersource_rest_client/models/upv1capturecontexts_data_order_information_invoice_details' +require 'cybersource_rest_client/models/upv1capturecontexts_data_order_information_line_items' +require 'cybersource_rest_client/models/upv1capturecontexts_data_order_information_line_items_passenger' +require 'cybersource_rest_client/models/upv1capturecontexts_data_order_information_line_items_tax_details' +require 'cybersource_rest_client/models/upv1capturecontexts_data_order_information_ship_to' +require 'cybersource_rest_client/models/upv1capturecontexts_data_payment_information' +require 'cybersource_rest_client/models/upv1capturecontexts_data_payment_information_card' +require 'cybersource_rest_client/models/upv1capturecontexts_data_processing_information' +require 'cybersource_rest_client/models/upv1capturecontexts_data_processing_information_authorization_options' +require 'cybersource_rest_client/models/upv1capturecontexts_data_processing_information_authorization_options_initiator' +require 'cybersource_rest_client/models/upv1capturecontexts_data_processing_info_mit' +require 'cybersource_rest_client/models/upv1capturecontexts_data_recipient_information' +require 'cybersource_rest_client/models/upv1capturecontexts_order_information' +require 'cybersource_rest_client/models/upv1capturecontexts_order_information_amount_details' +require 'cybersource_rest_client/models/v1_file_details_get200_response' +require 'cybersource_rest_client/models/v1_file_details_get200_response_file_details' +require 'cybersource_rest_client/models/v1_file_details_get200_response__links' +require 'cybersource_rest_client/models/v1_file_details_get200_response__links_files' +require 'cybersource_rest_client/models/v1_file_details_get200_response__links_self' +require 'cybersource_rest_client/models/vt_config' +require 'cybersource_rest_client/models/vt_config_card_not_present' +require 'cybersource_rest_client/models/vt_config_card_not_present_global_payment_information' +require 'cybersource_rest_client/models/vt_config_card_not_present_global_payment_information_basic_information' +require 'cybersource_rest_client/models/vt_config_card_not_present_global_payment_information_merchant_defined_data_fields' +require 'cybersource_rest_client/models/vt_config_card_not_present_global_payment_information_payment_information' +require 'cybersource_rest_client/models/vt_config_card_not_present_receipt_information' +require 'cybersource_rest_client/models/vt_config_card_not_present_receipt_information_email_receipt' +require 'cybersource_rest_client/models/vt_config_card_not_present_receipt_information_header' +require 'cybersource_rest_client/models/vt_config_card_not_present_receipt_information_order_information' +require 'cybersource_rest_client/models/validate_export_compliance_request' +require 'cybersource_rest_client/models/validate_request' +require 'cybersource_rest_client/models/value_added_services_products' +require 'cybersource_rest_client/models/vas_v2_payments_post201_response' +require 'cybersource_rest_client/models/vas_v2_payments_post201_response__links' +require 'cybersource_rest_client/models/vas_v2_payments_post201_response_order_information' +require 'cybersource_rest_client/models/vas_v2_payments_post201_response_order_information_jurisdiction' +require 'cybersource_rest_client/models/vas_v2_payments_post201_response_order_information_line_items' +require 'cybersource_rest_client/models/vas_v2_payments_post201_response_order_information_tax_details' +require 'cybersource_rest_client/models/vas_v2_payments_post201_response_tax_information' +require 'cybersource_rest_client/models/vas_v2_payments_post400_response' +require 'cybersource_rest_client/models/vas_v2_tax_void200_response' +require 'cybersource_rest_client/models/vas_v2_tax_void200_response_void_amount_details' +require 'cybersource_rest_client/models/vas_v2_tax_voids_post400_response' +require 'cybersource_rest_client/models/vasv1currencyconversion_client_reference_information' +require 'cybersource_rest_client/models/vasv1currencyconversion_client_reference_information_partner' +require 'cybersource_rest_client/models/vasv1currencyconversion_order_information' +require 'cybersource_rest_client/models/vasv1currencyconversion_order_information_amount_details' +require 'cybersource_rest_client/models/vasv1currencyconversion_order_information_currency_conversion' +require 'cybersource_rest_client/models/vasv1currencyconversion_payment_information' +require 'cybersource_rest_client/models/vasv1currencyconversion_payment_information_card' +require 'cybersource_rest_client/models/vasv1currencyconversion_point_of_sale_information' +require 'cybersource_rest_client/models/vasv2tax_buyer_information' +require 'cybersource_rest_client/models/vasv2tax_client_reference_information' +require 'cybersource_rest_client/models/vasv2tax_merchant_information' +require 'cybersource_rest_client/models/vasv2tax_order_information' +require 'cybersource_rest_client/models/vasv2tax_order_information_bill_to' +require 'cybersource_rest_client/models/vasv2tax_order_information_invoice_details' +require 'cybersource_rest_client/models/vasv2tax_order_information_line_items' +require 'cybersource_rest_client/models/vasv2tax_order_information_order_acceptance' +require 'cybersource_rest_client/models/vasv2tax_order_information_order_origin' +require 'cybersource_rest_client/models/vasv2tax_order_information_ship_to' +require 'cybersource_rest_client/models/vasv2tax_order_information_shipping_details' +require 'cybersource_rest_client/models/vasv2tax_tax_information' +require 'cybersource_rest_client/models/vasv2taxid_client_reference_information' +require 'cybersource_rest_client/models/vasv2taxid_client_reference_information_partner' +require 'cybersource_rest_client/models/verify_customer_address_request' +require 'cybersource_rest_client/models/void_capture_request' +require 'cybersource_rest_client/models/void_credit_request' +require 'cybersource_rest_client/models/void_payment_request' +require 'cybersource_rest_client/models/void_refund_request' +require 'cybersource_rest_client/models/void_tax_request' + +# APIs +require 'cybersource_rest_client/api/o_auth_api' +require 'cybersource_rest_client/api/bank_account_validation_api' +require 'cybersource_rest_client/api/batches_api' +require 'cybersource_rest_client/api/billing_agreements_api' +require 'cybersource_rest_client/api/bin_lookup_api' +require 'cybersource_rest_client/api/capture_api' +require 'cybersource_rest_client/api/chargeback_details_api' +require 'cybersource_rest_client/api/chargeback_summaries_api' +require 'cybersource_rest_client/api/conversion_details_api' +require 'cybersource_rest_client/api/create_new_webhooks_api' +require 'cybersource_rest_client/api/credit_api' +require 'cybersource_rest_client/api/customer_api' +require 'cybersource_rest_client/api/customer_payment_instrument_api' +require 'cybersource_rest_client/api/customer_shipping_address_api' +require 'cybersource_rest_client/api/decision_manager_api' +require 'cybersource_rest_client/api/device_de_association_api' +require 'cybersource_rest_client/api/device_search_api' +require 'cybersource_rest_client/api/download_dtd_api' +require 'cybersource_rest_client/api/download_xsd_api' +require 'cybersource_rest_client/api/emv_tag_details_api' +require 'cybersource_rest_client/api/flex_api_api' +require 'cybersource_rest_client/api/instrument_identifier_api' +require 'cybersource_rest_client/api/interchange_clearing_level_details_api' +require 'cybersource_rest_client/api/invoice_settings_api' +require 'cybersource_rest_client/api/invoices_api' +require 'cybersource_rest_client/api/manage_webhooks_api' +require 'cybersource_rest_client/api/merchant_boarding_api' +require 'cybersource_rest_client/api/merchant_defined_fields_api' +require 'cybersource_rest_client/api/microform_integration_api' +require 'cybersource_rest_client/api/net_fundings_api' +require 'cybersource_rest_client/api/notification_of_changes_api' +require 'cybersource_rest_client/api/offers_api' +require 'cybersource_rest_client/api/orders_api' +require 'cybersource_rest_client/api/payer_authentication_api' +require 'cybersource_rest_client/api/payment_batch_summaries_api' +require 'cybersource_rest_client/api/payment_instrument_api' +require 'cybersource_rest_client/api/payment_links_api' +require 'cybersource_rest_client/api/payment_tokens_api' +require 'cybersource_rest_client/api/payments_api' +require 'cybersource_rest_client/api/payouts_api' +require 'cybersource_rest_client/api/plans_api' +require 'cybersource_rest_client/api/purchase_and_refund_details_api' +require 'cybersource_rest_client/api/push_funds_api' +require 'cybersource_rest_client/api/refund_api' +require 'cybersource_rest_client/api/report_definitions_api' +require 'cybersource_rest_client/api/report_downloads_api' +require 'cybersource_rest_client/api/report_subscriptions_api' +require 'cybersource_rest_client/api/reports_api' +require 'cybersource_rest_client/api/retrieval_details_api' +require 'cybersource_rest_client/api/retrieval_summaries_api' +require 'cybersource_rest_client/api/reversal_api' +require 'cybersource_rest_client/api/search_transactions_api' +require 'cybersource_rest_client/api/secure_file_share_api' +require 'cybersource_rest_client/api/subscriptions_api' +require 'cybersource_rest_client/api/subscriptions_follow_ons_api' +require 'cybersource_rest_client/api/taxes_api' +require 'cybersource_rest_client/api/token_api' +require 'cybersource_rest_client/api/tokenize_api' +require 'cybersource_rest_client/api/tokenized_card_api' +require 'cybersource_rest_client/api/transaction_batches_api' +require 'cybersource_rest_client/api/transaction_details_api' +require 'cybersource_rest_client/api/transient_token_data_api' +require 'cybersource_rest_client/api/unified_checkout_capture_context_api' +require 'cybersource_rest_client/api/user_management_api' +require 'cybersource_rest_client/api/user_management_search_api' +require 'cybersource_rest_client/api/verification_api' +require 'cybersource_rest_client/api/void_api' + +# Utilities +require 'cybersource_rest_client/utilities/flex/token_verification' +require 'cybersource_rest_client/utilities/jwe_utility' +require 'cybersource_rest_client/utilities/tracking/sdk_tracker' +require 'cybersource_rest_client/utilities/capture_context/capture_context_parsing_utility' + + +module CyberSource + class << self + # Customize default settings for the SDK using block. + # CyberSource.configure do |config| + # config.username = "xxx" + # config.password = "xxx" + # end + # If no block given, return the default Configuration object. + def configure + if block_given? + yield(Configuration.default) + else + Configuration.default + end + end + end +end diff --git a/lib/cybersource_rest_client/models/tmsv2tokenize_token_information_customer__embedded_default_payment_instrument_buyer_information_issued_by.rb b/lib/cybersource_rest_client/models/tmsv2tokenize_default_payment_instrument_buyer_info_issued_by.rb similarity index 100% rename from lib/cybersource_rest_client/models/tmsv2tokenize_token_information_customer__embedded_default_payment_instrument_buyer_information_issued_by.rb rename to lib/cybersource_rest_client/models/tmsv2tokenize_default_payment_instrument_buyer_info_issued_by.rb diff --git a/lib/cybersource_rest_client/models/tmsv2tokenize_token_information_customer__embedded_default_payment_instrument_buyer_information_personal_identification.rb b/lib/cybersource_rest_client/models/tmsv2tokenize_default_payment_instrument_buyer_info_personal_identification.rb similarity index 100% rename from lib/cybersource_rest_client/models/tmsv2tokenize_token_information_customer__embedded_default_payment_instrument_buyer_information_personal_identification.rb rename to lib/cybersource_rest_client/models/tmsv2tokenize_default_payment_instrument_buyer_info_personal_identification.rb diff --git a/lib/cybersource_rest_client/models/tmsv2tokenize_token_information_customer__embedded_default_payment_instrument_card_tokenized_information.rb b/lib/cybersource_rest_client/models/tmsv2tokenize_default_payment_instrument_card_tokenized_info.rb similarity index 100% rename from lib/cybersource_rest_client/models/tmsv2tokenize_token_information_customer__embedded_default_payment_instrument_card_tokenized_information.rb rename to lib/cybersource_rest_client/models/tmsv2tokenize_default_payment_instrument_card_tokenized_info.rb diff --git a/lib/cybersource_rest_client/models/tmsv2tokenize_token_information_customer__embedded_default_payment_instrument_instrument_identifier.rb b/lib/cybersource_rest_client/models/tmsv2tokenize_default_payment_instrument_instrument_identifier.rb similarity index 100% rename from lib/cybersource_rest_client/models/tmsv2tokenize_token_information_customer__embedded_default_payment_instrument_instrument_identifier.rb rename to lib/cybersource_rest_client/models/tmsv2tokenize_default_payment_instrument_instrument_identifier.rb From e97d9a2dc8aea86a1a4fc2a5aa42db6f4b02085c Mon Sep 17 00:00:00 2001 From: "Goel, Aastvik" Date: Thu, 27 Nov 2025 13:59:35 +0530 Subject: [PATCH 8/8] always verify the JWT signature --- .../capture_context/capture_context_parsing_utility.rb | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/lib/cybersource_rest_client/utilities/capture_context/capture_context_parsing_utility.rb b/lib/cybersource_rest_client/utilities/capture_context/capture_context_parsing_utility.rb index 533c8821..a1acf81b 100644 --- a/lib/cybersource_rest_client/utilities/capture_context/capture_context_parsing_utility.rb +++ b/lib/cybersource_rest_client/utilities/capture_context/capture_context_parsing_utility.rb @@ -21,20 +21,16 @@ class << self # # @param jwt_value [String] The JWT token to parse # @param merchant_config [Object] The merchant configuration object - # @param verify_jwt [Boolean] Whether to verify the JWT signature (default: true) - # # @return [Hash] The parsed JWT payload # @raise [CyberSource::Authentication::Util::JWT::InvalidJwtException] If JWT is invalid # @raise [CyberSource::Authentication::Util::JWT::JwtSignatureValidationException] If signature verification fails # @raise [ArgumentError] If required parameters are missing # @raise [StandardError] For other errors during processing # - # @example Parse without verification - # payload = CaptureContextParser.parse_capture_context_response(jwt_token, config, false) - # - # @example Parse with verification (default) + # @example Parse with verification # payload = CaptureContextParser.parse_capture_context_response(jwt_token, config) - def parse_capture_context_response(jwt_value, merchant_config, verify_jwt = true) + def parse_capture_context_response(jwt_value, merchant_config) + verify_jwt = true # Always validate JWT value first if jwt_value.nil? || jwt_value.strip.empty? raise CyberSource::Authentication::Util::JWT::InvalidJwtException.new('JWT value is null or undefined')