From 667b62a90c24bfe87604d43aa6617fd666cc377f Mon Sep 17 00:00:00 2001 From: gaubansa Date: Wed, 21 Aug 2024 18:08:27 +0530 Subject: [PATCH 1/4] key management product removed from sdk --- docs/AsymmetricKeyManagementApi.md | 203 ----------- docs/CreateP12KeysRequest.md | 9 - docs/CreateSharedSecretKeysRequest.md | 9 - docs/CreateSharedSecretKeysVerifiRequest.md | 9 - docs/DeleteBulkP12KeysRequest.md | 9 - docs/DeleteBulkSymmetricKeysRequest.md | 9 - docs/InlineResponse2001Keys.md | 20 -- ...nlineResponse2002IntegrationInformation.md | 9 - ...egrationInformationTenantConfigurations.md | 12 - docs/InlineResponse2006Embedded.md | 8 - docs/InlineResponse2006EmbeddedBatches.md | 17 - docs/InlineResponse2006EmbeddedLinks.md | 8 - .../InlineResponse2006EmbeddedLinksReports.md | 8 - docs/InlineResponse2006EmbeddedTotals.md | 12 - docs/InlineResponse2007Billing.md | 11 - docs/InlineResponse2007Links.md | 9 - docs/InlineResponse2007LinksReport.md | 8 - docs/InlineResponse2008.md | 17 - docs/InlineResponse2008Records.md | 10 - docs/InlineResponse2008ResponseRecord.md | 17 - ...onse2008ResponseRecordAdditionalUpdates.md | 12 - docs/InlineResponse2008SourceRecord.md | 15 - docs/InlineResponse4007.md | 12 - docs/InlineResponse4007Details.md | 9 - docs/InlineResponse4008.md | 12 - docs/InlineResponse4008Details.md | 9 - docs/InlineResponse5003.md | 11 - docs/InlineResponse5021.md | 12 - docs/KeymanagementApi.md | 71 ---- docs/KeymanagementpasswordApi.md | 59 ---- docs/KeymanagementpgpApi.md | 59 ---- docs/KeymanagementscmpApi.md | 59 ---- docs/KmsV2KeysAsymDeletesPost200Response.md | 10 - ...symDeletesPost200ResponseKeyInformation.md | 13 - docs/KmsV2KeysAsymGet200Response.md | 9 - ...sV2KeysAsymGet200ResponseKeyInformation.md | 15 - docs/KmsV2KeysAsymPost201Response.md | 12 - ...ymPost201ResponseCertificateInformation.md | 11 - ...V2KeysAsymPost201ResponseKeyInformation.md | 16 - docs/KmsV2KeysSymDeletesPost200Response.md | 11 - ...SymDeletesPost200ResponseKeyInformation.md | 12 - docs/KmsV2KeysSymGet200Response.md | 10 - ...msV2KeysSymGet200ResponseKeyInformation.md | 13 - docs/KmsV2KeysSymPost201Response.md | 11 - ...2KeysSymPost201ResponseErrorInformation.md | 9 - ...sV2KeysSymPost201ResponseKeyInformation.md | 16 - docs/Kmsv2keysasymKeyInformation.md | 10 - .../Kmsv2keyssymClientReferenceInformation.md | 10 - docs/Kmsv2keyssymKeyInformation.md | 9 - docs/Kmsv2keyssymdeletesKeyInformation.md | 10 - docs/Kmsv2keyssymverifiKeyInformation.md | 10 - ...v1authenticationsPaymentInformationCard.md | 12 - docs/SymmetricKeyManagementApi.md | 203 ----------- docs/UpdateAsymKeysRequest.md | 9 - docs/UpdatePGPKeysRequest.md | 9 - docs/UpdatePGPKeysRequest1.md | 12 - docs/UpdatePasswordKeysRequest.md | 9 - .../api/asymmetric_key_management_api.rb | 307 ----------------- .../api/key_management_api.rb | 120 ------- .../api/key_management_password_api.rb | 98 ------ .../api/key_management_pgp_api.rb | 98 ------ .../api/key_management_scmp_api.rb | 98 ------ .../api/symmetric_key_management_api.rb | 308 ----------------- .../models/create_p12_keys_request.rb | 201 ----------- .../create_shared_secret_keys_request.rb | 201 ----------- ...reate_shared_secret_keys_verifi_request.rb | 201 ----------- .../models/delete_bulk_p12_keys_request.rb | 201 ----------- .../delete_bulk_symmetric_keys_request.rb | 201 ----------- .../models/inline_response_200_1_keys.rb | 323 ------------------ ..._response_200_2_integration_information.rb | 204 ----------- ...ation_information_tenant_configurations.rb | 296 ---------------- .../models/inline_response_200_6__embedded.rb | 191 ----------- .../inline_response_200_6__embedded__links.rb | 191 ----------- ...response_200_6__embedded__links_reports.rb | 190 ----------- ...inline_response_200_6__embedded_batches.rb | 295 ---------------- .../inline_response_200_6__embedded_totals.rb | 229 ------------- .../models/inline_response_200_7__links.rb | 201 ----------- .../inline_response_200_7__links_report.rb | 189 ---------- .../models/inline_response_200_7_billing.rb | 219 ------------ .../models/inline_response_200_8.rb | 292 ---------------- .../models/inline_response_200_8_records.rb | 209 ------------ .../inline_response_200_8_response_record.rb | 307 ----------------- ...00_8_response_record_additional_updates.rb | 242 ------------- .../inline_response_200_8_source_record.rb | 295 ---------------- .../models/inline_response_400_7.rb | 269 --------------- .../models/inline_response_400_7_details.rb | 201 ----------- .../models/inline_response_400_8.rb | 275 --------------- .../models/inline_response_400_8_details.rb | 199 ----------- .../models/inline_response_500_3.rb | 257 -------------- .../models/inline_response_502_1.rb | 234 ------------- ...s_v2_keys_asym_deletes_post200_response.rb | 212 ------------ ...eletes_post200_response_key_information.rb | 245 ------------- .../kms_v2_keys_asym_get200_response.rb | 200 ----------- ...ys_asym_get200_response_key_information.rb | 267 --------------- .../kms_v2_keys_asym_post201_response.rb | 235 ------------- ...ost201_response_certificate_information.rb | 223 ------------ ...s_asym_post201_response_key_information.rb | 278 --------------- ...ms_v2_keys_sym_deletes_post200_response.rb | 223 ------------ ...eletes_post200_response_key_information.rb | 234 ------------- .../models/kms_v2_keys_sym_get200_response.rb | 211 ------------ ...eys_sym_get200_response_key_information.rb | 245 ------------- .../kms_v2_keys_sym_post201_response.rb | 223 ------------ ..._sym_post201_response_error_information.rb | 202 ----------- ...ys_sym_post201_response_key_information.rb | 284 --------------- .../models/kmsv2keysasym_key_information.rb | 223 ------------ ...sv2keyssym_client_reference_information.rb | 217 ------------ .../models/kmsv2keyssym_key_information.rb | 207 ----------- .../kmsv2keyssymdeletes_key_information.rb | 223 ------------ .../kmsv2keyssymverifi_key_information.rb | 254 -------------- ...uthentications_payment_information_card.rb | 290 ---------------- .../models/update_asym_keys_request.rb | 211 ------------ .../models/update_password_keys_request.rb | 211 ------------ .../models/update_pgp_keys_request.rb | 211 ------------ .../models/update_pgp_keys_request_1.rb | 234 ------------- .../api/asymmetric_key_management_api_spec.rb | 83 ----- spec/api/key_management_api_spec.rb | 53 --- spec/api/key_management_password_api_spec.rb | 47 --- spec/api/key_management_pgp_api_spec.rb | 47 --- spec/api/key_management_scmp_api_spec.rb | 47 --- spec/api/symmetric_key_management_api_spec.rb | 83 ----- spec/models/create_p12_keys_request_spec.rb | 46 --- .../create_shared_secret_keys_request_spec.rb | 46 --- ..._shared_secret_keys_verifi_request_spec.rb | 46 --- .../delete_bulk_p12_keys_request_spec.rb | 46 --- ...delete_bulk_symmetric_keys_request_spec.rb | 46 --- .../models/inline_response_200_1_keys_spec.rb | 112 ------ ...onse_200_2_integration_information_spec.rb | 46 --- ..._information_tenant_configurations_spec.rb | 68 ---- ...nse_200_6__embedded__links_reports_spec.rb | 40 --- ...ne_response_200_6__embedded__links_spec.rb | 40 --- ...e_response_200_6__embedded_batches_spec.rb | 94 ----- .../inline_response_200_6__embedded_spec.rb | 40 --- ...ne_response_200_6__embedded_totals_spec.rb | 64 ---- ...nline_response_200_7__links_report_spec.rb | 40 --- .../inline_response_200_7__links_spec.rb | 46 --- .../inline_response_200_7_billing_spec.rb | 58 ---- .../inline_response_200_8_records_spec.rb | 52 --- ...response_record_additional_updates_spec.rb | 64 ---- ...ine_response_200_8_response_record_spec.rb | 94 ----- ...nline_response_200_8_source_record_spec.rb | 82 ----- spec/models/inline_response_200_8_spec.rb | 94 ----- .../inline_response_400_7_details_spec.rb | 46 --- spec/models/inline_response_400_7_spec.rb | 68 ---- .../inline_response_400_8_details_spec.rb | 46 --- spec/models/inline_response_400_8_spec.rb | 68 ---- spec/models/inline_response_500_3_spec.rb | 62 ---- spec/models/inline_response_502_1_spec.rb | 64 ---- ...s_post200_response_key_information_spec.rb | 70 ---- ...keys_asym_deletes_post200_response_spec.rb | 52 --- ...ym_get200_response_key_information_spec.rb | 82 ----- .../kms_v2_keys_asym_get200_response_spec.rb | 46 --- ...1_response_certificate_information_spec.rb | 58 ---- ...m_post201_response_key_information_spec.rb | 88 ----- .../kms_v2_keys_asym_post201_response_spec.rb | 64 ---- ...s_post200_response_key_information_spec.rb | 64 ---- ..._keys_sym_deletes_post200_response_spec.rb | 58 ---- ...ym_get200_response_key_information_spec.rb | 70 ---- .../kms_v2_keys_sym_get200_response_spec.rb | 52 --- ...post201_response_error_information_spec.rb | 46 --- ...m_post201_response_key_information_spec.rb | 88 ----- .../kms_v2_keys_sym_post201_response_spec.rb | 58 ---- .../kmsv2keysasym_key_information_spec.rb | 52 --- ...yssym_client_reference_information_spec.rb | 52 --- .../kmsv2keyssym_key_information_spec.rb | 46 --- ...msv2keyssymdeletes_key_information_spec.rb | 52 --- ...kmsv2keyssymverifi_key_information_spec.rb | 56 --- ...tications_payment_information_card_spec.rb | 64 ---- spec/models/update_asym_keys_request_spec.rb | 46 --- .../update_password_keys_request_spec.rb | 46 --- spec/models/update_pgp_keys_request_1_spec.rb | 64 ---- spec/models/update_pgp_keys_request_spec.rb | 46 --- 171 files changed, 17528 deletions(-) delete mode 100644 docs/AsymmetricKeyManagementApi.md delete mode 100644 docs/CreateP12KeysRequest.md delete mode 100644 docs/CreateSharedSecretKeysRequest.md delete mode 100644 docs/CreateSharedSecretKeysVerifiRequest.md delete mode 100644 docs/DeleteBulkP12KeysRequest.md delete mode 100644 docs/DeleteBulkSymmetricKeysRequest.md delete mode 100644 docs/InlineResponse2001Keys.md delete mode 100644 docs/InlineResponse2002IntegrationInformation.md delete mode 100644 docs/InlineResponse2002IntegrationInformationTenantConfigurations.md delete mode 100644 docs/InlineResponse2006Embedded.md delete mode 100644 docs/InlineResponse2006EmbeddedBatches.md delete mode 100644 docs/InlineResponse2006EmbeddedLinks.md delete mode 100644 docs/InlineResponse2006EmbeddedLinksReports.md delete mode 100644 docs/InlineResponse2006EmbeddedTotals.md delete mode 100644 docs/InlineResponse2007Billing.md delete mode 100644 docs/InlineResponse2007Links.md delete mode 100644 docs/InlineResponse2007LinksReport.md delete mode 100644 docs/InlineResponse2008.md delete mode 100644 docs/InlineResponse2008Records.md delete mode 100644 docs/InlineResponse2008ResponseRecord.md delete mode 100644 docs/InlineResponse2008ResponseRecordAdditionalUpdates.md delete mode 100644 docs/InlineResponse2008SourceRecord.md delete mode 100644 docs/InlineResponse4007.md delete mode 100644 docs/InlineResponse4007Details.md delete mode 100644 docs/InlineResponse4008.md delete mode 100644 docs/InlineResponse4008Details.md delete mode 100644 docs/InlineResponse5003.md delete mode 100644 docs/InlineResponse5021.md delete mode 100644 docs/KeymanagementApi.md delete mode 100644 docs/KeymanagementpasswordApi.md delete mode 100644 docs/KeymanagementpgpApi.md delete mode 100644 docs/KeymanagementscmpApi.md delete mode 100644 docs/KmsV2KeysAsymDeletesPost200Response.md delete mode 100644 docs/KmsV2KeysAsymDeletesPost200ResponseKeyInformation.md delete mode 100644 docs/KmsV2KeysAsymGet200Response.md delete mode 100644 docs/KmsV2KeysAsymGet200ResponseKeyInformation.md delete mode 100644 docs/KmsV2KeysAsymPost201Response.md delete mode 100644 docs/KmsV2KeysAsymPost201ResponseCertificateInformation.md delete mode 100644 docs/KmsV2KeysAsymPost201ResponseKeyInformation.md delete mode 100644 docs/KmsV2KeysSymDeletesPost200Response.md delete mode 100644 docs/KmsV2KeysSymDeletesPost200ResponseKeyInformation.md delete mode 100644 docs/KmsV2KeysSymGet200Response.md delete mode 100644 docs/KmsV2KeysSymGet200ResponseKeyInformation.md delete mode 100644 docs/KmsV2KeysSymPost201Response.md delete mode 100644 docs/KmsV2KeysSymPost201ResponseErrorInformation.md delete mode 100644 docs/KmsV2KeysSymPost201ResponseKeyInformation.md delete mode 100644 docs/Kmsv2keysasymKeyInformation.md delete mode 100644 docs/Kmsv2keyssymClientReferenceInformation.md delete mode 100644 docs/Kmsv2keyssymKeyInformation.md delete mode 100644 docs/Kmsv2keyssymdeletesKeyInformation.md delete mode 100644 docs/Kmsv2keyssymverifiKeyInformation.md delete mode 100644 docs/Riskv1authenticationsPaymentInformationCard.md delete mode 100644 docs/SymmetricKeyManagementApi.md delete mode 100644 docs/UpdateAsymKeysRequest.md delete mode 100644 docs/UpdatePGPKeysRequest.md delete mode 100644 docs/UpdatePGPKeysRequest1.md delete mode 100644 docs/UpdatePasswordKeysRequest.md delete mode 100644 lib/cybersource_rest_client/api/asymmetric_key_management_api.rb delete mode 100644 lib/cybersource_rest_client/api/key_management_api.rb delete mode 100644 lib/cybersource_rest_client/api/key_management_password_api.rb delete mode 100644 lib/cybersource_rest_client/api/key_management_pgp_api.rb delete mode 100644 lib/cybersource_rest_client/api/key_management_scmp_api.rb delete mode 100644 lib/cybersource_rest_client/api/symmetric_key_management_api.rb delete mode 100644 lib/cybersource_rest_client/models/create_p12_keys_request.rb delete mode 100644 lib/cybersource_rest_client/models/create_shared_secret_keys_request.rb delete mode 100644 lib/cybersource_rest_client/models/create_shared_secret_keys_verifi_request.rb delete mode 100644 lib/cybersource_rest_client/models/delete_bulk_p12_keys_request.rb delete mode 100644 lib/cybersource_rest_client/models/delete_bulk_symmetric_keys_request.rb delete mode 100644 lib/cybersource_rest_client/models/inline_response_200_1_keys.rb delete mode 100644 lib/cybersource_rest_client/models/inline_response_200_2_integration_information.rb delete mode 100644 lib/cybersource_rest_client/models/inline_response_200_2_integration_information_tenant_configurations.rb delete mode 100644 lib/cybersource_rest_client/models/inline_response_200_6__embedded.rb delete mode 100644 lib/cybersource_rest_client/models/inline_response_200_6__embedded__links.rb delete mode 100644 lib/cybersource_rest_client/models/inline_response_200_6__embedded__links_reports.rb delete mode 100644 lib/cybersource_rest_client/models/inline_response_200_6__embedded_batches.rb delete mode 100644 lib/cybersource_rest_client/models/inline_response_200_6__embedded_totals.rb delete mode 100644 lib/cybersource_rest_client/models/inline_response_200_7__links.rb delete mode 100644 lib/cybersource_rest_client/models/inline_response_200_7__links_report.rb delete mode 100644 lib/cybersource_rest_client/models/inline_response_200_7_billing.rb delete mode 100644 lib/cybersource_rest_client/models/inline_response_200_8.rb delete mode 100644 lib/cybersource_rest_client/models/inline_response_200_8_records.rb delete mode 100644 lib/cybersource_rest_client/models/inline_response_200_8_response_record.rb delete mode 100644 lib/cybersource_rest_client/models/inline_response_200_8_response_record_additional_updates.rb delete mode 100644 lib/cybersource_rest_client/models/inline_response_200_8_source_record.rb delete mode 100644 lib/cybersource_rest_client/models/inline_response_400_7.rb delete mode 100644 lib/cybersource_rest_client/models/inline_response_400_7_details.rb delete mode 100644 lib/cybersource_rest_client/models/inline_response_400_8.rb delete mode 100644 lib/cybersource_rest_client/models/inline_response_400_8_details.rb delete mode 100644 lib/cybersource_rest_client/models/inline_response_500_3.rb delete mode 100644 lib/cybersource_rest_client/models/inline_response_502_1.rb delete mode 100644 lib/cybersource_rest_client/models/kms_v2_keys_asym_deletes_post200_response.rb delete mode 100644 lib/cybersource_rest_client/models/kms_v2_keys_asym_deletes_post200_response_key_information.rb delete mode 100644 lib/cybersource_rest_client/models/kms_v2_keys_asym_get200_response.rb delete mode 100644 lib/cybersource_rest_client/models/kms_v2_keys_asym_get200_response_key_information.rb delete mode 100644 lib/cybersource_rest_client/models/kms_v2_keys_asym_post201_response.rb delete mode 100644 lib/cybersource_rest_client/models/kms_v2_keys_asym_post201_response_certificate_information.rb delete mode 100644 lib/cybersource_rest_client/models/kms_v2_keys_asym_post201_response_key_information.rb delete mode 100644 lib/cybersource_rest_client/models/kms_v2_keys_sym_deletes_post200_response.rb delete mode 100644 lib/cybersource_rest_client/models/kms_v2_keys_sym_deletes_post200_response_key_information.rb delete mode 100644 lib/cybersource_rest_client/models/kms_v2_keys_sym_get200_response.rb delete mode 100644 lib/cybersource_rest_client/models/kms_v2_keys_sym_get200_response_key_information.rb delete mode 100644 lib/cybersource_rest_client/models/kms_v2_keys_sym_post201_response.rb delete mode 100644 lib/cybersource_rest_client/models/kms_v2_keys_sym_post201_response_error_information.rb delete mode 100644 lib/cybersource_rest_client/models/kms_v2_keys_sym_post201_response_key_information.rb delete mode 100644 lib/cybersource_rest_client/models/kmsv2keysasym_key_information.rb delete mode 100644 lib/cybersource_rest_client/models/kmsv2keyssym_client_reference_information.rb delete mode 100644 lib/cybersource_rest_client/models/kmsv2keyssym_key_information.rb delete mode 100644 lib/cybersource_rest_client/models/kmsv2keyssymdeletes_key_information.rb delete mode 100644 lib/cybersource_rest_client/models/kmsv2keyssymverifi_key_information.rb delete mode 100644 lib/cybersource_rest_client/models/riskv1authentications_payment_information_card.rb delete mode 100644 lib/cybersource_rest_client/models/update_asym_keys_request.rb delete mode 100644 lib/cybersource_rest_client/models/update_password_keys_request.rb delete mode 100644 lib/cybersource_rest_client/models/update_pgp_keys_request.rb delete mode 100644 lib/cybersource_rest_client/models/update_pgp_keys_request_1.rb delete mode 100644 spec/api/asymmetric_key_management_api_spec.rb delete mode 100644 spec/api/key_management_api_spec.rb delete mode 100644 spec/api/key_management_password_api_spec.rb delete mode 100644 spec/api/key_management_pgp_api_spec.rb delete mode 100644 spec/api/key_management_scmp_api_spec.rb delete mode 100644 spec/api/symmetric_key_management_api_spec.rb delete mode 100644 spec/models/create_p12_keys_request_spec.rb delete mode 100644 spec/models/create_shared_secret_keys_request_spec.rb delete mode 100644 spec/models/create_shared_secret_keys_verifi_request_spec.rb delete mode 100644 spec/models/delete_bulk_p12_keys_request_spec.rb delete mode 100644 spec/models/delete_bulk_symmetric_keys_request_spec.rb delete mode 100644 spec/models/inline_response_200_1_keys_spec.rb delete mode 100644 spec/models/inline_response_200_2_integration_information_spec.rb delete mode 100644 spec/models/inline_response_200_2_integration_information_tenant_configurations_spec.rb delete mode 100644 spec/models/inline_response_200_6__embedded__links_reports_spec.rb delete mode 100644 spec/models/inline_response_200_6__embedded__links_spec.rb delete mode 100644 spec/models/inline_response_200_6__embedded_batches_spec.rb delete mode 100644 spec/models/inline_response_200_6__embedded_spec.rb delete mode 100644 spec/models/inline_response_200_6__embedded_totals_spec.rb delete mode 100644 spec/models/inline_response_200_7__links_report_spec.rb delete mode 100644 spec/models/inline_response_200_7__links_spec.rb delete mode 100644 spec/models/inline_response_200_7_billing_spec.rb delete mode 100644 spec/models/inline_response_200_8_records_spec.rb delete mode 100644 spec/models/inline_response_200_8_response_record_additional_updates_spec.rb delete mode 100644 spec/models/inline_response_200_8_response_record_spec.rb delete mode 100644 spec/models/inline_response_200_8_source_record_spec.rb delete mode 100644 spec/models/inline_response_200_8_spec.rb delete mode 100644 spec/models/inline_response_400_7_details_spec.rb delete mode 100644 spec/models/inline_response_400_7_spec.rb delete mode 100644 spec/models/inline_response_400_8_details_spec.rb delete mode 100644 spec/models/inline_response_400_8_spec.rb delete mode 100644 spec/models/inline_response_500_3_spec.rb delete mode 100644 spec/models/inline_response_502_1_spec.rb delete mode 100644 spec/models/kms_v2_keys_asym_deletes_post200_response_key_information_spec.rb delete mode 100644 spec/models/kms_v2_keys_asym_deletes_post200_response_spec.rb delete mode 100644 spec/models/kms_v2_keys_asym_get200_response_key_information_spec.rb delete mode 100644 spec/models/kms_v2_keys_asym_get200_response_spec.rb delete mode 100644 spec/models/kms_v2_keys_asym_post201_response_certificate_information_spec.rb delete mode 100644 spec/models/kms_v2_keys_asym_post201_response_key_information_spec.rb delete mode 100644 spec/models/kms_v2_keys_asym_post201_response_spec.rb delete mode 100644 spec/models/kms_v2_keys_sym_deletes_post200_response_key_information_spec.rb delete mode 100644 spec/models/kms_v2_keys_sym_deletes_post200_response_spec.rb delete mode 100644 spec/models/kms_v2_keys_sym_get200_response_key_information_spec.rb delete mode 100644 spec/models/kms_v2_keys_sym_get200_response_spec.rb delete mode 100644 spec/models/kms_v2_keys_sym_post201_response_error_information_spec.rb delete mode 100644 spec/models/kms_v2_keys_sym_post201_response_key_information_spec.rb delete mode 100644 spec/models/kms_v2_keys_sym_post201_response_spec.rb delete mode 100644 spec/models/kmsv2keysasym_key_information_spec.rb delete mode 100644 spec/models/kmsv2keyssym_client_reference_information_spec.rb delete mode 100644 spec/models/kmsv2keyssym_key_information_spec.rb delete mode 100644 spec/models/kmsv2keyssymdeletes_key_information_spec.rb delete mode 100644 spec/models/kmsv2keyssymverifi_key_information_spec.rb delete mode 100644 spec/models/riskv1authentications_payment_information_card_spec.rb delete mode 100644 spec/models/update_asym_keys_request_spec.rb delete mode 100644 spec/models/update_password_keys_request_spec.rb delete mode 100644 spec/models/update_pgp_keys_request_1_spec.rb delete mode 100644 spec/models/update_pgp_keys_request_spec.rb diff --git a/docs/AsymmetricKeyManagementApi.md b/docs/AsymmetricKeyManagementApi.md deleted file mode 100644 index 10b925d9..00000000 --- a/docs/AsymmetricKeyManagementApi.md +++ /dev/null @@ -1,203 +0,0 @@ -# CyberSource::AsymmetricKeyManagementApi - -All URIs are relative to *https://apitest.cybersource.com* - -Method | HTTP request | Description -------------- | ------------- | ------------- -[**create_p12_keys**](AsymmetricKeyManagementApi.md#create_p12_keys) | **POST** /kms/v2/keys-asym | Create one or more PKCS12 keys -[**delete_bulk_p12_keys**](AsymmetricKeyManagementApi.md#delete_bulk_p12_keys) | **POST** /kms/v2/keys-asym/deletes | Delete one or more PKCS12 keys -[**get_p12_key_details**](AsymmetricKeyManagementApi.md#get_p12_key_details) | **GET** /kms/v2/keys-asym/{keyId} | Retrieves PKCS12 key details -[**update_asym_key**](AsymmetricKeyManagementApi.md#update_asym_key) | **PATCH** /kms/v2/keys-asym/{keyId} | Activate or De-activate Asymmetric Key - - -# **create_p12_keys** -> KmsV2KeysAsymPost201Response create_p12_keys(create_p12_keys_request) - -Create one or more PKCS12 keys - -'Create one or more PKCS12 keys' - -### Example -```ruby -# load the gem -require 'cybersource_rest_client' - -api_instance = CyberSource::AsymmetricKeyManagementApi.new - -create_p12_keys_request = CyberSource::CreateP12KeysRequest.new # CreateP12KeysRequest | - - -begin - #Create one or more PKCS12 keys - result = api_instance.create_p12_keys(create_p12_keys_request) - p result -rescue CyberSource::ApiError => e - puts "Exception when calling AsymmetricKeyManagementApi->create_p12_keys: #{e}" -end -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **create_p12_keys_request** | [**CreateP12KeysRequest**](CreateP12KeysRequest.md)| | - -### Return type - -[**KmsV2KeysAsymPost201Response**](KmsV2KeysAsymPost201Response.md) - -### Authorization - -No authorization required - -### HTTP request headers - - - **Content-Type**: application/json;charset=utf-8 - - **Accept**: application/hal+json;charset=utf-8 - - - -# **delete_bulk_p12_keys** -> KmsV2KeysAsymDeletesPost200Response delete_bulk_p12_keys(delete_bulk_p12_keys_request) - -Delete one or more PKCS12 keys - -'Delete one or more PKCS12 keys' - -### Example -```ruby -# load the gem -require 'cybersource_rest_client' - -api_instance = CyberSource::AsymmetricKeyManagementApi.new - -delete_bulk_p12_keys_request = CyberSource::DeleteBulkP12KeysRequest.new # DeleteBulkP12KeysRequest | - - -begin - #Delete one or more PKCS12 keys - result = api_instance.delete_bulk_p12_keys(delete_bulk_p12_keys_request) - p result -rescue CyberSource::ApiError => e - puts "Exception when calling AsymmetricKeyManagementApi->delete_bulk_p12_keys: #{e}" -end -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **delete_bulk_p12_keys_request** | [**DeleteBulkP12KeysRequest**](DeleteBulkP12KeysRequest.md)| | - -### Return type - -[**KmsV2KeysAsymDeletesPost200Response**](KmsV2KeysAsymDeletesPost200Response.md) - -### Authorization - -No authorization required - -### HTTP request headers - - - **Content-Type**: application/json;charset=utf-8 - - **Accept**: application/hal+json;charset=utf-8 - - - -# **get_p12_key_details** -> KmsV2KeysAsymGet200Response get_p12_key_details(key_id) - -Retrieves PKCS12 key details - -Retrieves keys details by providing the key id. - -### Example -```ruby -# load the gem -require 'cybersource_rest_client' - -api_instance = CyberSource::AsymmetricKeyManagementApi.new - -key_id = 'key_id_example' # String | Key ID. - - -begin - #Retrieves PKCS12 key details - result = api_instance.get_p12_key_details(key_id) - p result -rescue CyberSource::ApiError => e - puts "Exception when calling AsymmetricKeyManagementApi->get_p12_key_details: #{e}" -end -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **key_id** | **String**| Key ID. | - -### Return type - -[**KmsV2KeysAsymGet200Response**](KmsV2KeysAsymGet200Response.md) - -### Authorization - -No authorization required - -### HTTP request headers - - - **Content-Type**: application/json;charset=utf-8 - - **Accept**: application/hal+json;charset=utf-8 - - - -# **update_asym_key** -> Object update_asym_key(key_id, update_asym_keys_request) - -Activate or De-activate Asymmetric Key - -Activate or De-activate Asymmetric Key - -### Example -```ruby -# load the gem -require 'cybersource_rest_client' - -api_instance = CyberSource::AsymmetricKeyManagementApi.new - -key_id = 'key_id_example' # String | Key ID. - -update_asym_keys_request = CyberSource::UpdateAsymKeysRequest.new # UpdateAsymKeysRequest | - - -begin - #Activate or De-activate Asymmetric Key - result = api_instance.update_asym_key(key_id, update_asym_keys_request) - p result -rescue CyberSource::ApiError => e - puts "Exception when calling AsymmetricKeyManagementApi->update_asym_key: #{e}" -end -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **key_id** | **String**| Key ID. | - **update_asym_keys_request** | [**UpdateAsymKeysRequest**](UpdateAsymKeysRequest.md)| | - -### Return type - -**Object** - -### Authorization - -No authorization required - -### HTTP request headers - - - **Content-Type**: application/json;charset=utf-8 - - **Accept**: application/hal+json;charset=utf-8 - - - diff --git a/docs/CreateP12KeysRequest.md b/docs/CreateP12KeysRequest.md deleted file mode 100644 index dbf92cac..00000000 --- a/docs/CreateP12KeysRequest.md +++ /dev/null @@ -1,9 +0,0 @@ -# CyberSource::CreateP12KeysRequest - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**client_reference_information** | [**Kmsv2keyssymClientReferenceInformation**](Kmsv2keyssymClientReferenceInformation.md) | | [optional] -**key_information** | [**Array<Kmsv2keysasymKeyInformation>**](Kmsv2keysasymKeyInformation.md) | | [optional] - - diff --git a/docs/CreateSharedSecretKeysRequest.md b/docs/CreateSharedSecretKeysRequest.md deleted file mode 100644 index f1565568..00000000 --- a/docs/CreateSharedSecretKeysRequest.md +++ /dev/null @@ -1,9 +0,0 @@ -# CyberSource::CreateSharedSecretKeysRequest - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**client_reference_information** | [**Kmsv2keyssymClientReferenceInformation**](Kmsv2keyssymClientReferenceInformation.md) | | [optional] -**key_information** | [**Array<Kmsv2keyssymKeyInformation>**](Kmsv2keyssymKeyInformation.md) | | [optional] - - diff --git a/docs/CreateSharedSecretKeysVerifiRequest.md b/docs/CreateSharedSecretKeysVerifiRequest.md deleted file mode 100644 index d1e59e41..00000000 --- a/docs/CreateSharedSecretKeysVerifiRequest.md +++ /dev/null @@ -1,9 +0,0 @@ -# CyberSource::CreateSharedSecretKeysVerifiRequest - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**client_reference_information** | [**Kmsv2keyssymClientReferenceInformation**](Kmsv2keyssymClientReferenceInformation.md) | | [optional] -**key_information** | [**Array<Kmsv2keyssymverifiKeyInformation>**](Kmsv2keyssymverifiKeyInformation.md) | | [optional] - - diff --git a/docs/DeleteBulkP12KeysRequest.md b/docs/DeleteBulkP12KeysRequest.md deleted file mode 100644 index f4b9c781..00000000 --- a/docs/DeleteBulkP12KeysRequest.md +++ /dev/null @@ -1,9 +0,0 @@ -# CyberSource::DeleteBulkP12KeysRequest - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**client_reference_information** | [**Kmsv2keyssymClientReferenceInformation**](Kmsv2keyssymClientReferenceInformation.md) | | [optional] -**key_information** | [**Array<Kmsv2keyssymdeletesKeyInformation>**](Kmsv2keyssymdeletesKeyInformation.md) | | [optional] - - diff --git a/docs/DeleteBulkSymmetricKeysRequest.md b/docs/DeleteBulkSymmetricKeysRequest.md deleted file mode 100644 index b9519ea0..00000000 --- a/docs/DeleteBulkSymmetricKeysRequest.md +++ /dev/null @@ -1,9 +0,0 @@ -# CyberSource::DeleteBulkSymmetricKeysRequest - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**client_reference_information** | [**Kmsv2keyssymClientReferenceInformation**](Kmsv2keyssymClientReferenceInformation.md) | | [optional] -**key_information** | [**Array<Kmsv2keyssymdeletesKeyInformation>**](Kmsv2keyssymdeletesKeyInformation.md) | | [optional] - - diff --git a/docs/InlineResponse2001Keys.md b/docs/InlineResponse2001Keys.md deleted file mode 100644 index 975b175d..00000000 --- a/docs/InlineResponse2001Keys.md +++ /dev/null @@ -1,20 +0,0 @@ -# CyberSource::InlineResponse2001Keys - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**organization_id** | **String** | Merchant Id | [optional] -**merchant_name** | **String** | Merchant Name | [optional] -**key_id** | **String** | Key Id | [optional] -**key_type** | **String** | Key Type | [optional] -**status** | **String** | Status can be active/inactive | [optional] -**expiration_date** | **Date** | Expiry Date. example - 2028-07-15 22:11:56 UTC | [optional] -**date_added** | **Date** | Date Addded. example - 2018-04-25 22:11:56 UTC | [optional] -**added_by** | **String** | Added By | [optional] -**date_modified** | **Date** | Modified Date. | [optional] -**modified_by** | **String** | Modified By | [optional] -**version** | **String** | Version | [optional] -**serial_number** | **String** | Serial Number | [optional] -**issuer_name** | **String** | Issuer Name | [optional] - - diff --git a/docs/InlineResponse2002IntegrationInformation.md b/docs/InlineResponse2002IntegrationInformation.md deleted file mode 100644 index 289255d0..00000000 --- a/docs/InlineResponse2002IntegrationInformation.md +++ /dev/null @@ -1,9 +0,0 @@ -# CyberSource::InlineResponse2002IntegrationInformation - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**oauth2** | [**Array<Boardingv1registrationsIntegrationInformationOauth2>**](Boardingv1registrationsIntegrationInformationOauth2.md) | | [optional] -**tenant_configurations** | [**Array<InlineResponse2002IntegrationInformationTenantConfigurations>**](InlineResponse2002IntegrationInformationTenantConfigurations.md) | tenantConfigurations is an array of objects that includes the tenant information this merchant is associated with. | [optional] - - diff --git a/docs/InlineResponse2002IntegrationInformationTenantConfigurations.md b/docs/InlineResponse2002IntegrationInformationTenantConfigurations.md deleted file mode 100644 index f2b83757..00000000 --- a/docs/InlineResponse2002IntegrationInformationTenantConfigurations.md +++ /dev/null @@ -1,12 +0,0 @@ -# CyberSource::InlineResponse2002IntegrationInformationTenantConfigurations - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**solution_id** | **String** | The solutionId is the unique identifier for this system resource. Partner can use it to reference the specific solution through out the system. | [optional] -**tenant_configuration_id** | **String** | The tenantConfigurationId is the unique identifier for this system resource. You will see various places where it must be referenced in the URI path, or when querying the hierarchy for ancestors or descendants. | [optional] -**status** | **String** | | [optional] -**submit_time_utc** | **DateTime** | Time of request in UTC. | [optional] -**tenant_information** | [**Boardingv1registrationsIntegrationInformationTenantInformation**](Boardingv1registrationsIntegrationInformationTenantInformation.md) | | [optional] - - diff --git a/docs/InlineResponse2006Embedded.md b/docs/InlineResponse2006Embedded.md deleted file mode 100644 index 18db1549..00000000 --- a/docs/InlineResponse2006Embedded.md +++ /dev/null @@ -1,8 +0,0 @@ -# CyberSource::InlineResponse2006Embedded - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**batches** | [**Array<InlineResponse2006EmbeddedBatches>**](InlineResponse2006EmbeddedBatches.md) | | [optional] - - diff --git a/docs/InlineResponse2006EmbeddedBatches.md b/docs/InlineResponse2006EmbeddedBatches.md deleted file mode 100644 index 241e29a8..00000000 --- a/docs/InlineResponse2006EmbeddedBatches.md +++ /dev/null @@ -1,17 +0,0 @@ -# CyberSource::InlineResponse2006EmbeddedBatches - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**_links** | [**InlineResponse2006EmbeddedLinks**](InlineResponse2006EmbeddedLinks.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] -**batch_source** | **String** | Valid Values: * SCHEDULER * TOKEN_API * CREDIT_CARD_FILE_UPLOAD * AMEX_REGSITRY * AMEX_REGISTRY_API * AMEX_REGISTRY_API_SYNC * AMEX_MAINTENANCE | [optional] -**token_source** | **String** | Valid Values: * SECURE_STORAGE * TMS * CYBERSOURCE | [optional] -**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** | [**InlineResponse2006EmbeddedTotals**](InlineResponse2006EmbeddedTotals.md) | | [optional] - - diff --git a/docs/InlineResponse2006EmbeddedLinks.md b/docs/InlineResponse2006EmbeddedLinks.md deleted file mode 100644 index 5847f3f8..00000000 --- a/docs/InlineResponse2006EmbeddedLinks.md +++ /dev/null @@ -1,8 +0,0 @@ -# CyberSource::InlineResponse2006EmbeddedLinks - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**reports** | [**Array<InlineResponse2006EmbeddedLinksReports>**](InlineResponse2006EmbeddedLinksReports.md) | | [optional] - - diff --git a/docs/InlineResponse2006EmbeddedLinksReports.md b/docs/InlineResponse2006EmbeddedLinksReports.md deleted file mode 100644 index 8d986179..00000000 --- a/docs/InlineResponse2006EmbeddedLinksReports.md +++ /dev/null @@ -1,8 +0,0 @@ -# CyberSource::InlineResponse2006EmbeddedLinksReports - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**href** | **String** | | [optional] - - diff --git a/docs/InlineResponse2006EmbeddedTotals.md b/docs/InlineResponse2006EmbeddedTotals.md deleted file mode 100644 index 27ca3ca3..00000000 --- a/docs/InlineResponse2006EmbeddedTotals.md +++ /dev/null @@ -1,12 +0,0 @@ -# CyberSource::InlineResponse2006EmbeddedTotals - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**accepted_records** | **Integer** | | [optional] -**rejected_records** | **Integer** | | [optional] -**updated_records** | **Integer** | | [optional] -**ca_responses** | **Integer** | | [optional] -**ca_responses_omitted** | **Integer** | | [optional] - - diff --git a/docs/InlineResponse2007Billing.md b/docs/InlineResponse2007Billing.md deleted file mode 100644 index 6a1c7cd2..00000000 --- a/docs/InlineResponse2007Billing.md +++ /dev/null @@ -1,11 +0,0 @@ -# CyberSource::InlineResponse2007Billing - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**nan** | **Integer** | | [optional] -**ned** | **Integer** | | [optional] -**acl** | **Integer** | | [optional] -**cch** | **Integer** | | [optional] - - diff --git a/docs/InlineResponse2007Links.md b/docs/InlineResponse2007Links.md deleted file mode 100644 index 6707244c..00000000 --- a/docs/InlineResponse2007Links.md +++ /dev/null @@ -1,9 +0,0 @@ -# CyberSource::InlineResponse2007Links - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**_self** | [**InlineResponse202LinksStatus**](InlineResponse202LinksStatus.md) | | [optional] -**report** | [**Array<InlineResponse2007LinksReport>**](InlineResponse2007LinksReport.md) | | [optional] - - diff --git a/docs/InlineResponse2007LinksReport.md b/docs/InlineResponse2007LinksReport.md deleted file mode 100644 index 143f96ab..00000000 --- a/docs/InlineResponse2007LinksReport.md +++ /dev/null @@ -1,8 +0,0 @@ -# CyberSource::InlineResponse2007LinksReport - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**href** | **String** | | [optional] - - diff --git a/docs/InlineResponse2008.md b/docs/InlineResponse2008.md deleted file mode 100644 index e9ad3809..00000000 --- a/docs/InlineResponse2008.md +++ /dev/null @@ -1,17 +0,0 @@ -# CyberSource::InlineResponse2008 - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**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** | [**InlineResponse2006EmbeddedTotals**](InlineResponse2006EmbeddedTotals.md) | | [optional] -**billing** | [**InlineResponse2007Billing**](InlineResponse2007Billing.md) | | [optional] -**records** | [**Array<InlineResponse2008Records>**](InlineResponse2008Records.md) | | [optional] - - diff --git a/docs/InlineResponse2008Records.md b/docs/InlineResponse2008Records.md deleted file mode 100644 index bacb3bf8..00000000 --- a/docs/InlineResponse2008Records.md +++ /dev/null @@ -1,10 +0,0 @@ -# CyberSource::InlineResponse2008Records - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**id** | **String** | | [optional] -**source_record** | [**InlineResponse2008SourceRecord**](InlineResponse2008SourceRecord.md) | | [optional] -**response_record** | [**InlineResponse2008ResponseRecord**](InlineResponse2008ResponseRecord.md) | | [optional] - - diff --git a/docs/InlineResponse2008ResponseRecord.md b/docs/InlineResponse2008ResponseRecord.md deleted file mode 100644 index 5ec13507..00000000 --- a/docs/InlineResponse2008ResponseRecord.md +++ /dev/null @@ -1,17 +0,0 @@ -# CyberSource::InlineResponse2008ResponseRecord - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**response** | **String** | Valid Values: * NAN * NED * ACL * CCH * CUR * NUP * UNA * ERR * DEC | [optional] -**reason** | **String** | | [optional] -**token** | **String** | | [optional] -**instrument_identifier_id** | **String** | | [optional] -**instrument_identifier_created** | **String** | Valid Values: * true * false | [optional] -**card_number** | **String** | | [optional] -**card_expiry_month** | **String** | | [optional] -**card_expiry_year** | **String** | | [optional] -**card_type** | **String** | | [optional] -**additional_updates** | [**Array<InlineResponse2008ResponseRecordAdditionalUpdates>**](InlineResponse2008ResponseRecordAdditionalUpdates.md) | | [optional] - - diff --git a/docs/InlineResponse2008ResponseRecordAdditionalUpdates.md b/docs/InlineResponse2008ResponseRecordAdditionalUpdates.md deleted file mode 100644 index 449451af..00000000 --- a/docs/InlineResponse2008ResponseRecordAdditionalUpdates.md +++ /dev/null @@ -1,12 +0,0 @@ -# CyberSource::InlineResponse2008ResponseRecordAdditionalUpdates - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**customer_id** | **String** | | [optional] -**payment_instrument_id** | **String** | | [optional] -**creator** | **String** | | [optional] -**state** | **String** | Valid Values: * ACTIVE * CLOSED | [optional] -**message** | **String** | | [optional] - - diff --git a/docs/InlineResponse2008SourceRecord.md b/docs/InlineResponse2008SourceRecord.md deleted file mode 100644 index f3d569bc..00000000 --- a/docs/InlineResponse2008SourceRecord.md +++ /dev/null @@ -1,15 +0,0 @@ -# CyberSource::InlineResponse2008SourceRecord - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**token** | **String** | | [optional] -**customer_id** | **String** | | [optional] -**payment_instrument_id** | **String** | | [optional] -**instrument_identifier_id** | **String** | | [optional] -**card_number** | **String** | | [optional] -**card_expiry_month** | **String** | | [optional] -**card_expiry_year** | **String** | | [optional] -**card_type** | **String** | | [optional] - - diff --git a/docs/InlineResponse4007.md b/docs/InlineResponse4007.md deleted file mode 100644 index 278de7bd..00000000 --- a/docs/InlineResponse4007.md +++ /dev/null @@ -1,12 +0,0 @@ -# CyberSource::InlineResponse4007 - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**submit_time_utc** | **Date** | 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. | [optional] -**status** | **String** | The http status description of the submitted request. | [optional] -**reason** | **String** | Documented reason codes. Client should be able to use the key for generating their own error message Possible Values: - 'INVALID_DATA' - 'SYSTEM_ERROR' - 'RESOURCE_NOT_FOUND' | [optional] -**message** | **String** | Descriptive message for the error. | [optional] -**details** | [**Array<InlineResponse4007Details>**](InlineResponse4007Details.md) | | [optional] - - diff --git a/docs/InlineResponse4007Details.md b/docs/InlineResponse4007Details.md deleted file mode 100644 index db0fea25..00000000 --- a/docs/InlineResponse4007Details.md +++ /dev/null @@ -1,9 +0,0 @@ -# CyberSource::InlineResponse4007Details - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**field** | **String** | This is the flattened JSON object field name/path that is either missing or invalid. | [optional] -**reason** | **String** | Possible reasons for the error. | [optional] - - diff --git a/docs/InlineResponse4008.md b/docs/InlineResponse4008.md deleted file mode 100644 index e642ec51..00000000 --- a/docs/InlineResponse4008.md +++ /dev/null @@ -1,12 +0,0 @@ -# CyberSource::InlineResponse4008 - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**correlation_id** | **String** | | [optional] -**details** | [**Array<InlineResponse4008Details>**](InlineResponse4008Details.md) | | [optional] -**information_link** | **String** | | [optional] -**message** | **String** | | -**reason** | **String** | | - - diff --git a/docs/InlineResponse4008Details.md b/docs/InlineResponse4008Details.md deleted file mode 100644 index 478627fd..00000000 --- a/docs/InlineResponse4008Details.md +++ /dev/null @@ -1,9 +0,0 @@ -# CyberSource::InlineResponse4008Details - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**location** | **String** | | [optional] -**message** | **String** | | [optional] - - diff --git a/docs/InlineResponse5003.md b/docs/InlineResponse5003.md deleted file mode 100644 index 6d591204..00000000 --- a/docs/InlineResponse5003.md +++ /dev/null @@ -1,11 +0,0 @@ -# CyberSource::InlineResponse5003 - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**submit_time_utc** | **Date** | 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. | [optional] -**status** | **String** | The http status description of the submitted request. | [optional] -**reason** | **String** | Documented reason codes. Client should be able to use the key for generating their own error message Possible Values: - 'SYSTEM_ERROR' | [optional] -**message** | **String** | Descriptive message for the error. | [optional] - - diff --git a/docs/InlineResponse5021.md b/docs/InlineResponse5021.md deleted file mode 100644 index f34ede19..00000000 --- a/docs/InlineResponse5021.md +++ /dev/null @@ -1,12 +0,0 @@ -# CyberSource::InlineResponse5021 - -## Properties -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: - SERVER_ERROR | [optional] -**reason** | **String** | The reason of the status. Possible values: - SYSTEM_ERROR - SERVER_TIMEOUT - SERVICE_TIMEOUT | [optional] -**message** | **String** | The detail message related to the status and reason listed above. | [optional] -**status_code** | **String** | HTTP status code of the submitted request. Possible values: - 500 | [optional] - - diff --git a/docs/KeymanagementApi.md b/docs/KeymanagementApi.md deleted file mode 100644 index e29082fe..00000000 --- a/docs/KeymanagementApi.md +++ /dev/null @@ -1,71 +0,0 @@ -# CyberSource::KeyManagementApi - -All URIs are relative to *https://apitest.cybersource.com* - -Method | HTTP request | Description -------------- | ------------- | ------------- -[**search_keys**](KeyManagementApi.md#search_keys) | **GET** /kms/v2/keys | Search Keys - - -# **search_keys** -> InlineResponse2001 search_keys(opts) - -Search Keys - -Search one or more Keys - -### Example -```ruby -# load the gem -require 'cybersource_rest_client' - -api_instance = CyberSource::KeyManagementApi.new - -opts = { - offset: 56, # Integer | This allows you to specify the page offset from the resulting list resultset you want the records to be returned - limit: 56, # Integer | This allows you to specify the total number of records to be returned off the resulting list resultset - sort: 'sort_example', # String | This allows you to specify a comma separated list of fields in the order which the resulting list resultset must be sorted. - organization_ids: ['organization_ids_example'], # Array | List of Orgaization Ids to search. The maximum size of the organization Ids list is 1. The maximum length of Organization Id is 30. - key_ids: ['key_ids_example'], # Array | List of Key Ids to search. The maximum size of the Key Ids list is 1 - key_types: ['key_types_example'], # Array | Key Type, Possible values - certificate, password, pgp and scmp_api. When Key Type is provided atleast one more filter needs to be provided - expiration_start_date: DateTime.parse('2013-10-20T19:20:30+01:00'), # DateTime | Expiry Filter Start Date. When Expiration Date filter is provided, atleast one more filter needs to be provided - expiration_end_date: DateTime.parse('2013-10-20T19:20:30+01:00') # DateTime | Expiry Filter End Date. When Expiration Date filter is provided, atleast one more filter needs to be provided -} - -begin - #Search Keys - result = api_instance.search_keys(opts) - p result -rescue CyberSource::ApiError => e - puts "Exception when calling KeyManagementApi->search_keys: #{e}" -end -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **offset** | **Integer**| This allows you to specify the page offset from the resulting list resultset you want the records to be returned | [optional] - **limit** | **Integer**| This allows you to specify the total number of records to be returned off the resulting list resultset | [optional] - **sort** | **String**| This allows you to specify a comma separated list of fields in the order which the resulting list resultset must be sorted. | [optional] - **organization_ids** | [**Array<String>**](String.md)| List of Orgaization Ids to search. The maximum size of the organization Ids list is 1. The maximum length of Organization Id is 30. | [optional] - **key_ids** | [**Array<String>**](String.md)| List of Key Ids to search. The maximum size of the Key Ids list is 1 | [optional] - **key_types** | [**Array<String>**](String.md)| Key Type, Possible values - certificate, password, pgp and scmp_api. When Key Type is provided atleast one more filter needs to be provided | [optional] - **expiration_start_date** | **DateTime**| Expiry Filter Start Date. When Expiration Date filter is provided, atleast one more filter needs to be provided | [optional] - **expiration_end_date** | **DateTime**| Expiry Filter End Date. When Expiration Date filter is provided, atleast one more filter needs to be provided | [optional] - -### Return type - -[**InlineResponse2001**](InlineResponse2001.md) - -### Authorization - -No authorization required - -### HTTP request headers - - - **Content-Type**: application/json;charset=utf-8 - - **Accept**: application/hal+json;charset=utf-8 - - - diff --git a/docs/KeymanagementpasswordApi.md b/docs/KeymanagementpasswordApi.md deleted file mode 100644 index 17d11505..00000000 --- a/docs/KeymanagementpasswordApi.md +++ /dev/null @@ -1,59 +0,0 @@ -# CyberSource::KeyManagementPasswordApi - -All URIs are relative to *https://apitest.cybersource.com* - -Method | HTTP request | Description -------------- | ------------- | ------------- -[**update_password**](KeyManagementPasswordApi.md#update_password) | **PATCH** /kms/v2/keys-password/{keyId} | Activate or De-activate Password - - -# **update_password** -> Object update_password(key_id, update_password_keys_request) - -Activate or De-activate Password - -Activate or De-activate key of type password - -### Example -```ruby -# load the gem -require 'cybersource_rest_client' - -api_instance = CyberSource::KeyManagementPasswordApi.new - -key_id = 'key_id_example' # String | Key ID. - -update_password_keys_request = CyberSource::UpdatePasswordKeysRequest.new # UpdatePasswordKeysRequest | - - -begin - #Activate or De-activate Password - result = api_instance.update_password(key_id, update_password_keys_request) - p result -rescue CyberSource::ApiError => e - puts "Exception when calling KeyManagementPasswordApi->update_password: #{e}" -end -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **key_id** | **String**| Key ID. | - **update_password_keys_request** | [**UpdatePasswordKeysRequest**](UpdatePasswordKeysRequest.md)| | - -### Return type - -**Object** - -### Authorization - -No authorization required - -### HTTP request headers - - - **Content-Type**: application/json;charset=utf-8 - - **Accept**: application/hal+json;charset=utf-8 - - - diff --git a/docs/KeymanagementpgpApi.md b/docs/KeymanagementpgpApi.md deleted file mode 100644 index a45640b9..00000000 --- a/docs/KeymanagementpgpApi.md +++ /dev/null @@ -1,59 +0,0 @@ -# CyberSource::KeyManagementPgpApi - -All URIs are relative to *https://apitest.cybersource.com* - -Method | HTTP request | Description -------------- | ------------- | ------------- -[**update_pgp**](KeyManagementPgpApi.md#update_pgp) | **PATCH** /kms/v2/keys-pgp/{keyId} | Activate or De-activate PGP Key - - -# **update_pgp** -> Object update_pgp(key_id, update_pgp_keys_request) - -Activate or De-activate PGP Key - -Activate or De-activate PGP Key - -### Example -```ruby -# load the gem -require 'cybersource_rest_client' - -api_instance = CyberSource::KeyManagementPgpApi.new - -key_id = 'key_id_example' # String | Key ID. - -update_pgp_keys_request = CyberSource::UpdatePGPKeysRequest.new # UpdatePGPKeysRequest | - - -begin - #Activate or De-activate PGP Key - result = api_instance.update_pgp(key_id, update_pgp_keys_request) - p result -rescue CyberSource::ApiError => e - puts "Exception when calling KeyManagementPgpApi->update_pgp: #{e}" -end -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **key_id** | **String**| Key ID. | - **update_pgp_keys_request** | [**UpdatePGPKeysRequest**](UpdatePGPKeysRequest.md)| | - -### Return type - -**Object** - -### Authorization - -No authorization required - -### HTTP request headers - - - **Content-Type**: application/json;charset=utf-8 - - **Accept**: application/hal+json;charset=utf-8 - - - diff --git a/docs/KeymanagementscmpApi.md b/docs/KeymanagementscmpApi.md deleted file mode 100644 index e3730601..00000000 --- a/docs/KeymanagementscmpApi.md +++ /dev/null @@ -1,59 +0,0 @@ -# CyberSource::KeyManagementScmpApi - -All URIs are relative to *https://apitest.cybersource.com* - -Method | HTTP request | Description -------------- | ------------- | ------------- -[**update_scmp**](KeyManagementScmpApi.md#update_scmp) | **PATCH** /kms/v2/keys-scmp/{keyId} | Update or Deactivate - - -# **update_scmp** -> Object update_scmp(key_id, update_pgp_keys_request) - -Update or Deactivate - -Update or Deactivate scmp api Key - -### Example -```ruby -# load the gem -require 'cybersource_rest_client' - -api_instance = CyberSource::KeyManagementScmpApi.new - -key_id = 'key_id_example' # String | Key ID. - -update_pgp_keys_request = CyberSource::UpdatePGPKeysRequest1.new # UpdatePGPKeysRequest1 | - - -begin - #Update or Deactivate - result = api_instance.update_scmp(key_id, update_pgp_keys_request) - p result -rescue CyberSource::ApiError => e - puts "Exception when calling KeyManagementScmpApi->update_scmp: #{e}" -end -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **key_id** | **String**| Key ID. | - **update_pgp_keys_request** | [**UpdatePGPKeysRequest1**](UpdatePGPKeysRequest1.md)| | - -### Return type - -**Object** - -### Authorization - -No authorization required - -### HTTP request headers - - - **Content-Type**: application/json;charset=utf-8 - - **Accept**: application/hal+json;charset=utf-8 - - - diff --git a/docs/KmsV2KeysAsymDeletesPost200Response.md b/docs/KmsV2KeysAsymDeletesPost200Response.md deleted file mode 100644 index 81011be1..00000000 --- a/docs/KmsV2KeysAsymDeletesPost200Response.md +++ /dev/null @@ -1,10 +0,0 @@ -# CyberSource::KmsV2KeysAsymDeletesPost200Response - -## Properties -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] -**client_reference_information** | [**Kmsv2keyssymClientReferenceInformation**](Kmsv2keyssymClientReferenceInformation.md) | | [optional] -**key_information** | [**Array<KmsV2KeysAsymDeletesPost200ResponseKeyInformation>**](KmsV2KeysAsymDeletesPost200ResponseKeyInformation.md) | | [optional] - - diff --git a/docs/KmsV2KeysAsymDeletesPost200ResponseKeyInformation.md b/docs/KmsV2KeysAsymDeletesPost200ResponseKeyInformation.md deleted file mode 100644 index b4c1daac..00000000 --- a/docs/KmsV2KeysAsymDeletesPost200ResponseKeyInformation.md +++ /dev/null @@ -1,13 +0,0 @@ -# CyberSource::KmsV2KeysAsymDeletesPost200ResponseKeyInformation - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**organization_id** | **String** | Merchant Id | [optional] -**reference_number** | **String** | Reference number is a unique identifier provided by the client along with the organization Id. This is an optional field provided solely for the client's convenience. If client specifies value for this field in the request, it is expected to be available in the response. | [optional] -**key_id** | **String** | Key Serial Number | [optional] -**status** | **String** | The status of the key. Possible values: - FAILED - ACTIVE - INACTIVE - EXPIRED | [optional] -**message** | **String** | message in case of failed key | [optional] -**error_information** | [**KmsV2KeysSymPost201ResponseErrorInformation**](KmsV2KeysSymPost201ResponseErrorInformation.md) | | [optional] - - diff --git a/docs/KmsV2KeysAsymGet200Response.md b/docs/KmsV2KeysAsymGet200Response.md deleted file mode 100644 index 1022cd6f..00000000 --- a/docs/KmsV2KeysAsymGet200Response.md +++ /dev/null @@ -1,9 +0,0 @@ -# CyberSource::KmsV2KeysAsymGet200Response - -## Properties -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] -**key_information** | [**KmsV2KeysAsymGet200ResponseKeyInformation**](KmsV2KeysAsymGet200ResponseKeyInformation.md) | | [optional] - - diff --git a/docs/KmsV2KeysAsymGet200ResponseKeyInformation.md b/docs/KmsV2KeysAsymGet200ResponseKeyInformation.md deleted file mode 100644 index 18c9c0b0..00000000 --- a/docs/KmsV2KeysAsymGet200ResponseKeyInformation.md +++ /dev/null @@ -1,15 +0,0 @@ -# CyberSource::KmsV2KeysAsymGet200ResponseKeyInformation - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**organization_id** | **String** | Merchant Id | [optional] -**reference_number** | **String** | Reference number is a unique identifier provided by the client along with the organization Id. This is an optional field provided solely for the client's convenience. If client specifies value for this field in the request, it is expected to be available in the response. | [optional] -**key_id** | **String** | Key Serial Number | [optional] -**status** | **String** | The status of the key. Possible values: - FAILED - ACTIVE - INACTIVE - EXPIRED | [optional] -**expiration_date** | **String** | The expiration time 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. | [optional] -**message** | **String** | message in case of failed key | [optional] -**_alias** | **String** | Key alias | [optional] -**error_information** | [**KmsV2KeysSymPost201ResponseErrorInformation**](KmsV2KeysSymPost201ResponseErrorInformation.md) | | [optional] - - diff --git a/docs/KmsV2KeysAsymPost201Response.md b/docs/KmsV2KeysAsymPost201Response.md deleted file mode 100644 index 5b594245..00000000 --- a/docs/KmsV2KeysAsymPost201Response.md +++ /dev/null @@ -1,12 +0,0 @@ -# CyberSource::KmsV2KeysAsymPost201Response - -## Properties -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: - ACCEPTED | [optional] -**client_reference_information** | [**Kmsv2keyssymClientReferenceInformation**](Kmsv2keyssymClientReferenceInformation.md) | | [optional] -**key_information** | [**Array<KmsV2KeysAsymPost201ResponseKeyInformation>**](KmsV2KeysAsymPost201ResponseKeyInformation.md) | | [optional] -**certificate_information** | [**Array<KmsV2KeysAsymPost201ResponseCertificateInformation>**](KmsV2KeysAsymPost201ResponseCertificateInformation.md) | | [optional] - - diff --git a/docs/KmsV2KeysAsymPost201ResponseCertificateInformation.md b/docs/KmsV2KeysAsymPost201ResponseCertificateInformation.md deleted file mode 100644 index 1fa1e5fe..00000000 --- a/docs/KmsV2KeysAsymPost201ResponseCertificateInformation.md +++ /dev/null @@ -1,11 +0,0 @@ -# CyberSource::KmsV2KeysAsymPost201ResponseCertificateInformation - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**_alias** | **String** | Key alias | [optional] -**key_id** | **String** | Key Serial Number | [optional] -**key** | **String** | value of the key | [optional] -**expiration_date** | **String** | The expiration time 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. | [optional] - - diff --git a/docs/KmsV2KeysAsymPost201ResponseKeyInformation.md b/docs/KmsV2KeysAsymPost201ResponseKeyInformation.md deleted file mode 100644 index d8ee4be7..00000000 --- a/docs/KmsV2KeysAsymPost201ResponseKeyInformation.md +++ /dev/null @@ -1,16 +0,0 @@ -# CyberSource::KmsV2KeysAsymPost201ResponseKeyInformation - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**organization_id** | **String** | Merchant Id | [optional] -**reference_number** | **String** | Reference number is a unique identifier provided by the client along with the organization Id. This is an optional field provided solely for the client's convenience. If client specifies value for this field in the request, it is expected to be available in the response. | [optional] -**key_id** | **String** | Key Serial Number | [optional] -**key** | **String** | value of the key | [optional] -**status** | **String** | The status of the key. Possible values: - FAILED - ACTIVE | [optional] -**expiration_date** | **String** | The expiration time 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. | [optional] -**message** | **String** | message in case of failed key | [optional] -**_alias** | **String** | Key alias | [optional] -**error_information** | [**KmsV2KeysSymPost201ResponseErrorInformation**](KmsV2KeysSymPost201ResponseErrorInformation.md) | | [optional] - - diff --git a/docs/KmsV2KeysSymDeletesPost200Response.md b/docs/KmsV2KeysSymDeletesPost200Response.md deleted file mode 100644 index 79d4b1c3..00000000 --- a/docs/KmsV2KeysSymDeletesPost200Response.md +++ /dev/null @@ -1,11 +0,0 @@ -# CyberSource::KmsV2KeysSymDeletesPost200Response - -## Properties -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: - ACCEPTED | [optional] -**client_reference_information** | [**Kmsv2keyssymClientReferenceInformation**](Kmsv2keyssymClientReferenceInformation.md) | | [optional] -**key_information** | [**Array<KmsV2KeysSymDeletesPost200ResponseKeyInformation>**](KmsV2KeysSymDeletesPost200ResponseKeyInformation.md) | | [optional] - - diff --git a/docs/KmsV2KeysSymDeletesPost200ResponseKeyInformation.md b/docs/KmsV2KeysSymDeletesPost200ResponseKeyInformation.md deleted file mode 100644 index 958665ba..00000000 --- a/docs/KmsV2KeysSymDeletesPost200ResponseKeyInformation.md +++ /dev/null @@ -1,12 +0,0 @@ -# CyberSource::KmsV2KeysSymDeletesPost200ResponseKeyInformation - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**organization_id** | **String** | Merchant Id | [optional] -**key_id** | **String** | Key serial number | [optional] -**status** | **String** | The status of the key. Possible values: - FAILED - ACTIVE - INACTIVE - EXPIRED | [optional] -**message** | **String** | message in case of failed key | [optional] -**error_information** | [**KmsV2KeysSymPost201ResponseErrorInformation**](KmsV2KeysSymPost201ResponseErrorInformation.md) | | [optional] - - diff --git a/docs/KmsV2KeysSymGet200Response.md b/docs/KmsV2KeysSymGet200Response.md deleted file mode 100644 index bc556fce..00000000 --- a/docs/KmsV2KeysSymGet200Response.md +++ /dev/null @@ -1,10 +0,0 @@ -# CyberSource::KmsV2KeysSymGet200Response - -## Properties -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: - ACCEPTED | [optional] -**key_information** | [**KmsV2KeysSymGet200ResponseKeyInformation**](KmsV2KeysSymGet200ResponseKeyInformation.md) | | [optional] - - diff --git a/docs/KmsV2KeysSymGet200ResponseKeyInformation.md b/docs/KmsV2KeysSymGet200ResponseKeyInformation.md deleted file mode 100644 index af833ce8..00000000 --- a/docs/KmsV2KeysSymGet200ResponseKeyInformation.md +++ /dev/null @@ -1,13 +0,0 @@ -# CyberSource::KmsV2KeysSymGet200ResponseKeyInformation - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**organization_id** | **String** | Merchant Id | [optional] -**key_id** | **String** | Key serial number | [optional] -**status** | **String** | The status of the key. Possible values: - FAILED - ACTIVE - INACTIVE - EXPIRED | [optional] -**expiration_date** | **String** | The expiration time in UTC. | [optional] -**message** | **String** | message in case of failed key | [optional] -**error_information** | [**KmsV2KeysSymPost201ResponseErrorInformation**](KmsV2KeysSymPost201ResponseErrorInformation.md) | | [optional] - - diff --git a/docs/KmsV2KeysSymPost201Response.md b/docs/KmsV2KeysSymPost201Response.md deleted file mode 100644 index 8f2217e8..00000000 --- a/docs/KmsV2KeysSymPost201Response.md +++ /dev/null @@ -1,11 +0,0 @@ -# CyberSource::KmsV2KeysSymPost201Response - -## Properties -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: - ACCEPTED | [optional] -**client_reference_information** | [**Kmsv2keyssymClientReferenceInformation**](Kmsv2keyssymClientReferenceInformation.md) | | [optional] -**key_information** | [**Array<KmsV2KeysSymPost201ResponseKeyInformation>**](KmsV2KeysSymPost201ResponseKeyInformation.md) | | [optional] - - diff --git a/docs/KmsV2KeysSymPost201ResponseErrorInformation.md b/docs/KmsV2KeysSymPost201ResponseErrorInformation.md deleted file mode 100644 index 78024be8..00000000 --- a/docs/KmsV2KeysSymPost201ResponseErrorInformation.md +++ /dev/null @@ -1,9 +0,0 @@ -# CyberSource::KmsV2KeysSymPost201ResponseErrorInformation - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**reason** | **String** | The reason of the status. Possible values: - MISSING_FIELD - INVALID_DATA | [optional] -**details** | [**Array<PtsV2PaymentsPost201ResponseErrorInformationDetails>**](PtsV2PaymentsPost201ResponseErrorInformationDetails.md) | | [optional] - - diff --git a/docs/KmsV2KeysSymPost201ResponseKeyInformation.md b/docs/KmsV2KeysSymPost201ResponseKeyInformation.md deleted file mode 100644 index 5aa0db49..00000000 --- a/docs/KmsV2KeysSymPost201ResponseKeyInformation.md +++ /dev/null @@ -1,16 +0,0 @@ -# CyberSource::KmsV2KeysSymPost201ResponseKeyInformation - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**organization_id** | **String** | Merchant Id | [optional] -**external_organization_id** | **String** | Payworks MerchantId for given organizationId. | [optional] -**reference_number** | **String** | Reference number is a unique identifier provided by the client along with the organization Id. This is an optional field provided solely for the client's convenience. If client specifies value for this field in the request, it is expected to be available in the response. | [optional] -**key_id** | **String** | Key Serial Number | [optional] -**key** | **String** | value of the key | [optional] -**status** | **String** | The status of the key. Possible values: - FAILED - ACTIVE | [optional] -**expiration_date** | **String** | The expiration time 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. | [optional] -**message** | **String** | message in case of failed key | [optional] -**error_information** | [**KmsV2KeysSymPost201ResponseErrorInformation**](KmsV2KeysSymPost201ResponseErrorInformation.md) | | [optional] - - diff --git a/docs/Kmsv2keysasymKeyInformation.md b/docs/Kmsv2keysasymKeyInformation.md deleted file mode 100644 index 35312509..00000000 --- a/docs/Kmsv2keysasymKeyInformation.md +++ /dev/null @@ -1,10 +0,0 @@ -# CyberSource::Kmsv2keysasymKeyInformation - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**organization_id** | **String** | Merchant Id | -**reference_number** | **String** | Reference number is a unique identifier provided by the client along with the organization Id. This is an optional field provided solely for the client's convenience. If client specifies value for this field in the request, it is expected to be available in the response. | [optional] -**cert** | **String** | Certificate Signing Request(csr), one needs to use the contents of the csr created for the same organizationId. Please extract string from '\\n' and '-----BEGIN CERTIFICATE REQUEST-----','-----END CERTIFICATE REQUEST-----' | - - diff --git a/docs/Kmsv2keyssymClientReferenceInformation.md b/docs/Kmsv2keyssymClientReferenceInformation.md deleted file mode 100644 index 60bd2744..00000000 --- a/docs/Kmsv2keyssymClientReferenceInformation.md +++ /dev/null @@ -1,10 +0,0 @@ -# CyberSource::Kmsv2keyssymClientReferenceInformation - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**code** | **String** | Client-generated order reference or tracking number. CyberSource recommends that you send a unique value. | [optional] -**comments** | **String** | Brief description of the order or any comment you wish to add to the order. | [optional] -**partner** | [**Riskv1decisionsClientReferenceInformationPartner**](Riskv1decisionsClientReferenceInformationPartner.md) | | [optional] - - diff --git a/docs/Kmsv2keyssymKeyInformation.md b/docs/Kmsv2keyssymKeyInformation.md deleted file mode 100644 index b9eb1a2d..00000000 --- a/docs/Kmsv2keyssymKeyInformation.md +++ /dev/null @@ -1,9 +0,0 @@ -# CyberSource::Kmsv2keyssymKeyInformation - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**organization_id** | **String** | Merchant Id | -**reference_number** | **String** | Reference number is a unique identifier provided by the client along with the organization Id. This is an optional field provided solely for the client's convenience. If client specifies value for this field in the request, it is expected to be available in the response. | [optional] - - diff --git a/docs/Kmsv2keyssymdeletesKeyInformation.md b/docs/Kmsv2keyssymdeletesKeyInformation.md deleted file mode 100644 index 013cbfa0..00000000 --- a/docs/Kmsv2keyssymdeletesKeyInformation.md +++ /dev/null @@ -1,10 +0,0 @@ -# CyberSource::Kmsv2keyssymdeletesKeyInformation - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**organization_id** | **String** | Merchant Id | -**reference_number** | **String** | Reference number is a unique identifier provided by the client along with the organization Id. This is an optional field provided solely for the client's convenience. If client specifies value for this field in the request, it is expected to be available in the response. | [optional] -**key_id** | **String** | Key Serial Number | - - diff --git a/docs/Kmsv2keyssymverifiKeyInformation.md b/docs/Kmsv2keyssymverifiKeyInformation.md deleted file mode 100644 index 0ca9c2a4..00000000 --- a/docs/Kmsv2keyssymverifiKeyInformation.md +++ /dev/null @@ -1,10 +0,0 @@ -# CyberSource::Kmsv2keyssymverifiKeyInformation - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**organization_id** | **String** | Merchant Id | -**reference_number** | **String** | Reference number is a unique identifier provided by the client along with the organization Id. This is an optional field provided solely for the client's convenience. If client specifies value for this field in the request, it is expected to be available in the response. | [optional] -**digest_algorithm** | **String** | Algorithm for message signature authentication | [optional] [default to 'HMACSHA2'] - - diff --git a/docs/Riskv1authenticationsPaymentInformationCard.md b/docs/Riskv1authenticationsPaymentInformationCard.md deleted file mode 100644 index a3294d30..00000000 --- a/docs/Riskv1authenticationsPaymentInformationCard.md +++ /dev/null @@ -1,12 +0,0 @@ -# CyberSource::Riskv1authenticationsPaymentInformationCard - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**bin** | **String** | description: The BIN is the first six digits of the card's Primary Account Number (PAN). | [optional] -**type** | **String** | Three-digit value that indicates the card type. **IMPORTANT** It is strongly recommended that you include the card type field in request messages even if it is optional for your processor and card type. Omitting the card type can cause the transaction to be processed with the wrong card type. Possible values: - `001`: Visa. For card-present transactions on all processors except SIX, the Visa Electron card type is processed the same way that the Visa debit card is processed. Use card type value `001` for Visa Electron. - `002`: Mastercard, Eurocard[^1], which is a European regional brand of Mastercard. - `003`: American Express - `004`: Discover - `005`: Diners Club - `006`: Carte Blanche[^1] - `007`: JCB[^1] - `014`: Enroute[^1] - `021`: JAL[^1] - `024`: Maestro (UK Domestic)[^1] - `031`: Delta[^1]: Use this value only for Ingenico ePayments. For other processors, use `001` for all Visa card types. - `033`: Visa Electron[^1]. Use this value only for Ingenico ePayments and SIX. For other processors, use `001` for all Visa card types. - `034`: Dankort[^1] - `036`: Cartes Bancaires[^1,4] - `037`: Carta Si[^1] - `039`: Encoded account number[^1] - `040`: UATP[^1] - `042`: Maestro (International)[^1] - `050`: Hipercard[^2,3] - `051`: Aura - `054`: Elo[^3] - `062`: China UnionPay - '070': EFTPOS [^1]: For this card type, you must include the `paymentInformation.card.type` or `paymentInformation.tokenizedCard.type` field in your request for an authorization or a stand-alone credit. [^2]: For this card type on Cielo 3.0, you must include the `paymentInformation.card.type` or `paymentInformation.tokenizedCard.type` field in a request for an authorization or a stand-alone credit. This card type is not supported on Cielo 1.5. [^3]: For this card type on Getnet and Rede, you must include the `paymentInformation.card.type` or `paymentInformation.tokenizedCard.type` field in a request for an authorization or a stand-alone credit. [^4]: For this card type, you must include the `paymentInformation.card.type` in your request for any payer authentication services. #### Used by **Authorization** Required for Carte Blanche and JCB. Optional for all other card types. #### Card Present reply This field is included in the reply message when the client software that is installed on the POS terminal uses the token management service (TMS) to retrieve tokenized payment details. You must contact customer support to have your account enabled to receive these fields in the credit reply message. Returned by the Credit service. This reply field is only supported by the following processors: - American Express Direct - Credit Mutuel-CIC - FDC Nashville Global - OmniPay Direct - SIX #### Google Pay transactions For PAN-based Google Pay transactions, this field is returned in the API response. #### GPX This field only supports transactions from the following card types: - Visa - Mastercard - AMEX - Discover - Diners - JCB - Union Pay International | -**expiration_month** | **String** | Two-digit month in which the payment card expires. Format: `MM`. Valid values: `01` through `12`. Leading 0 is required. #### Barclays and Streamline For Maestro (UK Domestic) and Maestro (International) cards on Barclays and Streamline, this must be a valid value (`01` through `12`) but is not required to be a valid expiration date. In other words, an expiration date that is in the past does not cause CyberSource to reject your request. However, an invalid expiration date might cause the issuer to reject your request. #### Encoded Account Numbers For encoded account numbers (_type_=039), if there is no expiration date on the card, use `12`. #### FDMS Nashville Required field. #### All other processors Required if `pointOfSaleInformation.entryMode=keyed`. However, this field is optional if your account is configured for relaxed requirements for address data and expiration date. **Important** It is your responsibility to determine whether a field is required for the transaction you are requesting. #### Google Pay transactions For PAN-based Google Pay transactions, this field is returned in the API response. | -**expiration_year** | **String** | Four-digit year in which the payment card expires. Format: `YYYY`. #### Barclays and Streamline For Maestro (UK Domestic) and Maestro (International) cards on Barclays and Streamline, this must be a valid value (`1900` through `3000`) but is not required to be a valid expiration date. In other words, an expiration date that is in the past does not cause CyberSource to reject your request. However, an invalid expiration date might cause the issuer to reject your request. #### Encoded Account Numbers For encoded account numbers (**_type_**`=039`), if there is no expiration date on the card, use `2021`. #### FDMS Nashville Required field. #### FDC Nashville Global and FDMS South You can send in 2 digits or 4 digits. If you send in 2 digits, they must be the last 2 digits of the year. #### All other processors Required if `pointOfSaleInformation.entryMode=keyed`. However, this field is optional if your account is configured for relaxed requirements for address data and expiration date. **Important** It is your responsibility to determine whether a field is required for the transaction you are requesting. #### Google Pay transactions For PAN-based Google Pay transactions, this field is returned in the API response. | -**number** | **String** | The customer's payment card number, also known as the Primary Account Number (PAN). You can also use this field for encoded account numbers. #### FDMS Nashville Required. String (19) #### GPX Required if `pointOfSaleInformation.entryMode=keyed`. However, this field is optional if your account is configured for relaxed requirements for address data and expiration date. **Important** It is your responsibility to determine whether a field is required for the transaction you are requesting. #### All other processors Required if `pointOfSaleInformation.entryMode=keyed`. However, this field is optional if your account is configured for relaxed requirements for address data and expiration date. **Important** It is your responsibility to determine whether a field is required for the transaction you are requesting. | - - diff --git a/docs/SymmetricKeyManagementApi.md b/docs/SymmetricKeyManagementApi.md deleted file mode 100644 index fc0999ba..00000000 --- a/docs/SymmetricKeyManagementApi.md +++ /dev/null @@ -1,203 +0,0 @@ -# CyberSource::SymmetricKeyManagementApi - -All URIs are relative to *https://apitest.cybersource.com* - -Method | HTTP request | Description -------------- | ------------- | ------------- -[**create_v2_shared_secret_keys**](SymmetricKeyManagementApi.md#create_v2_shared_secret_keys) | **POST** /kms/v2/keys-sym | Create Shared-Secret Keys -[**create_v2_shared_secret_keys_verifi**](SymmetricKeyManagementApi.md#create_v2_shared_secret_keys_verifi) | **POST** /kms/v2/keys-sym/verifi | Create Shared-Secret Keys as per verifi spec -[**delete_bulk_symmetric_keys**](SymmetricKeyManagementApi.md#delete_bulk_symmetric_keys) | **POST** /kms/v2/keys-sym/deletes | Delete one or more Symmetric keys -[**get_key_details**](SymmetricKeyManagementApi.md#get_key_details) | **GET** /kms/v2/keys-sym/{keyId} | Retrieves shared secret key details - - -# **create_v2_shared_secret_keys** -> KmsV2KeysSymPost201Response create_v2_shared_secret_keys(create_shared_secret_keys_request) - -Create Shared-Secret Keys - -Create one or more Shared-Secret Keys - -### Example -```ruby -# load the gem -require 'cybersource_rest_client' - -api_instance = CyberSource::SymmetricKeyManagementApi.new - -create_shared_secret_keys_request = CyberSource::CreateSharedSecretKeysRequest.new # CreateSharedSecretKeysRequest | - - -begin - #Create Shared-Secret Keys - result = api_instance.create_v2_shared_secret_keys(create_shared_secret_keys_request) - p result -rescue CyberSource::ApiError => e - puts "Exception when calling SymmetricKeyManagementApi->create_v2_shared_secret_keys: #{e}" -end -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **create_shared_secret_keys_request** | [**CreateSharedSecretKeysRequest**](CreateSharedSecretKeysRequest.md)| | - -### Return type - -[**KmsV2KeysSymPost201Response**](KmsV2KeysSymPost201Response.md) - -### Authorization - -No authorization required - -### HTTP request headers - - - **Content-Type**: application/json;charset=utf-8 - - **Accept**: application/hal+json;charset=utf-8 - - - -# **create_v2_shared_secret_keys_verifi** -> KmsV2KeysSymPost201Response create_v2_shared_secret_keys_verifi(v_ic_domain, create_shared_secret_keys_verifi_request) - -Create Shared-Secret Keys as per verifi spec - -Create one or more Shared-Secret Keys as per Verifi spec with 32 chars, store digest algo during key generation. - -### Example -```ruby -# load the gem -require 'cybersource_rest_client' - -api_instance = CyberSource::SymmetricKeyManagementApi.new - -v_ic_domain = 'v_ic_domain_example' # String | domain - -create_shared_secret_keys_verifi_request = CyberSource::CreateSharedSecretKeysVerifiRequest.new # CreateSharedSecretKeysVerifiRequest | - - -begin - #Create Shared-Secret Keys as per verifi spec - result = api_instance.create_v2_shared_secret_keys_verifi(v_ic_domain, create_shared_secret_keys_verifi_request) - p result -rescue CyberSource::ApiError => e - puts "Exception when calling SymmetricKeyManagementApi->create_v2_shared_secret_keys_verifi: #{e}" -end -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **v_ic_domain** | **String**| domain | - **create_shared_secret_keys_verifi_request** | [**CreateSharedSecretKeysVerifiRequest**](CreateSharedSecretKeysVerifiRequest.md)| | - -### Return type - -[**KmsV2KeysSymPost201Response**](KmsV2KeysSymPost201Response.md) - -### Authorization - -No authorization required - -### HTTP request headers - - - **Content-Type**: application/json;charset=utf-8 - - **Accept**: application/hal+json;charset=utf-8 - - - -# **delete_bulk_symmetric_keys** -> KmsV2KeysSymDeletesPost200Response delete_bulk_symmetric_keys(delete_bulk_symmetric_keys_request) - -Delete one or more Symmetric keys - -'Delete one or more Symmetric keys' - -### Example -```ruby -# load the gem -require 'cybersource_rest_client' - -api_instance = CyberSource::SymmetricKeyManagementApi.new - -delete_bulk_symmetric_keys_request = CyberSource::DeleteBulkSymmetricKeysRequest.new # DeleteBulkSymmetricKeysRequest | - - -begin - #Delete one or more Symmetric keys - result = api_instance.delete_bulk_symmetric_keys(delete_bulk_symmetric_keys_request) - p result -rescue CyberSource::ApiError => e - puts "Exception when calling SymmetricKeyManagementApi->delete_bulk_symmetric_keys: #{e}" -end -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **delete_bulk_symmetric_keys_request** | [**DeleteBulkSymmetricKeysRequest**](DeleteBulkSymmetricKeysRequest.md)| | - -### Return type - -[**KmsV2KeysSymDeletesPost200Response**](KmsV2KeysSymDeletesPost200Response.md) - -### Authorization - -No authorization required - -### HTTP request headers - - - **Content-Type**: application/json;charset=utf-8 - - **Accept**: application/hal+json;charset=utf-8 - - - -# **get_key_details** -> KmsV2KeysSymGet200Response get_key_details(key_id) - -Retrieves shared secret key details - -Retrieves keys details by providing the key id. - -### Example -```ruby -# load the gem -require 'cybersource_rest_client' - -api_instance = CyberSource::SymmetricKeyManagementApi.new - -key_id = 'key_id_example' # String | Key ID. - - -begin - #Retrieves shared secret key details - result = api_instance.get_key_details(key_id) - p result -rescue CyberSource::ApiError => e - puts "Exception when calling SymmetricKeyManagementApi->get_key_details: #{e}" -end -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **key_id** | **String**| Key ID. | - -### Return type - -[**KmsV2KeysSymGet200Response**](KmsV2KeysSymGet200Response.md) - -### Authorization - -No authorization required - -### HTTP request headers - - - **Content-Type**: application/json;charset=utf-8 - - **Accept**: application/hal+json;charset=utf-8 - - - diff --git a/docs/UpdateAsymKeysRequest.md b/docs/UpdateAsymKeysRequest.md deleted file mode 100644 index 945d46e6..00000000 --- a/docs/UpdateAsymKeysRequest.md +++ /dev/null @@ -1,9 +0,0 @@ -# CyberSource::UpdateAsymKeysRequest - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**status** | **String** | Status can be active/inactive | -**organization_id** | **String** | Organization Id | - - diff --git a/docs/UpdatePGPKeysRequest.md b/docs/UpdatePGPKeysRequest.md deleted file mode 100644 index 715c3ef5..00000000 --- a/docs/UpdatePGPKeysRequest.md +++ /dev/null @@ -1,9 +0,0 @@ -# CyberSource::UpdatePGPKeysRequest - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**status** | **String** | Status can be active/inactive | -**organization_id** | **String** | Organization Id | - - diff --git a/docs/UpdatePGPKeysRequest1.md b/docs/UpdatePGPKeysRequest1.md deleted file mode 100644 index 8fce2cb9..00000000 --- a/docs/UpdatePGPKeysRequest1.md +++ /dev/null @@ -1,12 +0,0 @@ -# CyberSource::UpdatePGPKeysRequest1 - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**organization_id** | **String** | Organization Id | [optional] -**status** | **String** | Only inactive status is applicable for SCMP_API. Only status as inactive needs to be provided to deactivate scmp. | [optional] -**expiration_date** | **String** | Expiration Date. Required field to update the SCMP_API key | [optional] -**version** | **String** | Version. Required field to update the SCMP_API key | [optional] -**comment** | **String** | Comment. Optional field. Can be provided along with Expiration Date and Version | [optional] - - diff --git a/docs/UpdatePasswordKeysRequest.md b/docs/UpdatePasswordKeysRequest.md deleted file mode 100644 index 7758e432..00000000 --- a/docs/UpdatePasswordKeysRequest.md +++ /dev/null @@ -1,9 +0,0 @@ -# CyberSource::UpdatePasswordKeysRequest - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**status** | **String** | Status can be active/inactive | -**organization_id** | **String** | Organization Id | - - diff --git a/lib/cybersource_rest_client/api/asymmetric_key_management_api.rb b/lib/cybersource_rest_client/api/asymmetric_key_management_api.rb deleted file mode 100644 index d09e23f4..00000000 --- a/lib/cybersource_rest_client/api/asymmetric_key_management_api.rb +++ /dev/null @@ -1,307 +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 'uri' - -module CyberSource - class AsymmetricKeyManagementApi - attr_accessor :api_client - - def initialize(api_client = ApiClient.default, config) - @api_client = api_client - @api_client.set_configuration(config) - end - # Create one or more PKCS12 keys - # 'Create one or more PKCS12 keys' - # - # @param create_p12_keys_request - # @param [Hash] opts the optional parameters - # @return [KmsV2KeysAsymPost201Response] - # - def create_p12_keys(create_p12_keys_request, opts = {}) - data, status_code, headers = create_p12_keys_with_http_info(create_p12_keys_request, opts) - return data, status_code, headers - end - - # Create one or more PKCS12 keys - # 'Create one or more PKCS12 keys' - # @param create_p12_keys_request - # @param [Hash] opts the optional parameters - # @return [Array<(KmsV2KeysAsymPost201Response, Fixnum, Hash)>] KmsV2KeysAsymPost201Response data, response status code and response headers - def create_p12_keys_with_http_info(create_p12_keys_request, opts = {}) - - if @api_client.config.debugging - begin - raise - @api_client.config.logger.debug 'Calling API: AsymmetricKeyManagementApi.create_p12_keys ...' - rescue - puts 'Cannot write to log' - end - end - # verify the required parameter 'create_p12_keys_request' is set - if @api_client.config.client_side_validation && create_p12_keys_request.nil? - fail ArgumentError, "Missing the required parameter 'create_p12_keys_request' when calling AsymmetricKeyManagementApi.create_p12_keys" - end - # resource path - local_var_path = 'kms/v2/keys-asym' - - # query parameters - query_params = {} - - # header parameters - header_params = {} - # HTTP header 'Accept' (if needed) - header_params['Accept'] = @api_client.select_header_accept(['application/hal+json;charset=utf-8']) - # HTTP header 'Content-Type' - header_params['Content-Type'] = @api_client.select_header_content_type(['application/json;charset=utf-8']) - - # form parameters - form_params = {} - - # http body (model) - post_body = @api_client.object_to_http_body(create_p12_keys_request) - sdk_tracker = SdkTracker.new - post_body = sdk_tracker.insert_developer_id_tracker(post_body, 'CreateP12KeysRequest', @api_client.config.host) - 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 => 'KmsV2KeysAsymPost201Response') - if @api_client.config.debugging - begin - raise - @api_client.config.logger.debug "API called: AsymmetricKeyManagementApi#create_p12_keys\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" - rescue - puts 'Cannot write to log' - end - end - return data, status_code, headers - end - # Delete one or more PKCS12 keys - # 'Delete one or more PKCS12 keys' - # - # @param delete_bulk_p12_keys_request - # @param [Hash] opts the optional parameters - # @return [KmsV2KeysAsymDeletesPost200Response] - # - def delete_bulk_p12_keys(delete_bulk_p12_keys_request, opts = {}) - data, status_code, headers = delete_bulk_p12_keys_with_http_info(delete_bulk_p12_keys_request, opts) - return data, status_code, headers - end - - # Delete one or more PKCS12 keys - # 'Delete one or more PKCS12 keys' - # @param delete_bulk_p12_keys_request - # @param [Hash] opts the optional parameters - # @return [Array<(KmsV2KeysAsymDeletesPost200Response, Fixnum, Hash)>] KmsV2KeysAsymDeletesPost200Response data, response status code and response headers - def delete_bulk_p12_keys_with_http_info(delete_bulk_p12_keys_request, opts = {}) - - if @api_client.config.debugging - begin - raise - @api_client.config.logger.debug 'Calling API: AsymmetricKeyManagementApi.delete_bulk_p12_keys ...' - rescue - puts 'Cannot write to log' - end - end - # verify the required parameter 'delete_bulk_p12_keys_request' is set - if @api_client.config.client_side_validation && delete_bulk_p12_keys_request.nil? - fail ArgumentError, "Missing the required parameter 'delete_bulk_p12_keys_request' when calling AsymmetricKeyManagementApi.delete_bulk_p12_keys" - end - # resource path - local_var_path = 'kms/v2/keys-asym/deletes' - - # query parameters - query_params = {} - - # header parameters - header_params = {} - # HTTP header 'Accept' (if needed) - header_params['Accept'] = @api_client.select_header_accept(['application/hal+json;charset=utf-8']) - # HTTP header 'Content-Type' - header_params['Content-Type'] = @api_client.select_header_content_type(['application/json;charset=utf-8']) - - # form parameters - form_params = {} - - # http body (model) - post_body = @api_client.object_to_http_body(delete_bulk_p12_keys_request) - sdk_tracker = SdkTracker.new - post_body = sdk_tracker.insert_developer_id_tracker(post_body, 'DeleteBulkP12KeysRequest', @api_client.config.host) - 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 => 'KmsV2KeysAsymDeletesPost200Response') - if @api_client.config.debugging - begin - raise - @api_client.config.logger.debug "API called: AsymmetricKeyManagementApi#delete_bulk_p12_keys\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" - rescue - puts 'Cannot write to log' - end - end - return data, status_code, headers - end - # Retrieves PKCS12 key details - # Retrieves keys details by providing the key id. - # - # @param key_id Key ID. - # @param [Hash] opts the optional parameters - # @return [KmsV2KeysAsymGet200Response] - # - def get_p12_key_details(key_id, opts = {}) - data, status_code, headers = get_p12_key_details_with_http_info(key_id, opts) - return data, status_code, headers - end - - # Retrieves PKCS12 key details - # Retrieves keys details by providing the key id. - # @param key_id Key ID. - # @param [Hash] opts the optional parameters - # @return [Array<(KmsV2KeysAsymGet200Response, Fixnum, Hash)>] KmsV2KeysAsymGet200Response data, response status code and response headers - def get_p12_key_details_with_http_info(key_id, opts = {}) - - if @api_client.config.debugging - begin - raise - @api_client.config.logger.debug 'Calling API: AsymmetricKeyManagementApi.get_p12_key_details ...' - rescue - puts 'Cannot write to log' - end - end - # verify the required parameter 'key_id' is set - if @api_client.config.client_side_validation && key_id.nil? - fail ArgumentError, "Missing the required parameter 'key_id' when calling AsymmetricKeyManagementApi.get_p12_key_details" - end - # resource path - local_var_path = 'kms/v2/keys-asym/{keyId}'.sub('{' + 'keyId' + '}', key_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/hal+json;charset=utf-8']) - # HTTP header 'Content-Type' - header_params['Content-Type'] = @api_client.select_header_content_type(['application/json;charset=utf-8']) - - # form parameters - form_params = {} - - # http body (model) - if 'GET' == 'POST' - post_body = '{}' - else - post_body = nil - end - auth_names = [] - data, status_code, headers = @api_client.call_api(:GET, local_var_path, - :header_params => header_params, - :query_params => query_params, - :form_params => form_params, - :body => post_body, - :auth_names => auth_names, - :return_type => 'KmsV2KeysAsymGet200Response') - if @api_client.config.debugging - begin - raise - @api_client.config.logger.debug "API called: AsymmetricKeyManagementApi#get_p12_key_details\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" - rescue - puts 'Cannot write to log' - end - end - return data, status_code, headers - end - # Activate or De-activate Asymmetric Key - # Activate or De-activate Asymmetric Key - # - # @param key_id Key ID. - # @param update_asym_keys_request - # @param [Hash] opts the optional parameters - # @return [Object] - # - def update_asym_key(key_id, update_asym_keys_request, opts = {}) - data, status_code, headers = update_asym_key_with_http_info(key_id, update_asym_keys_request, opts) - return data, status_code, headers - end - - # Activate or De-activate Asymmetric Key - # Activate or De-activate Asymmetric Key - # @param key_id Key ID. - # @param update_asym_keys_request - # @param [Hash] opts the optional parameters - # @return [Array<(Object, Fixnum, Hash)>] Object data, response status code and response headers - def update_asym_key_with_http_info(key_id, update_asym_keys_request, opts = {}) - - if @api_client.config.debugging - begin - raise - @api_client.config.logger.debug 'Calling API: AsymmetricKeyManagementApi.update_asym_key ...' - rescue - puts 'Cannot write to log' - end - end - # verify the required parameter 'key_id' is set - if @api_client.config.client_side_validation && key_id.nil? - fail ArgumentError, "Missing the required parameter 'key_id' when calling AsymmetricKeyManagementApi.update_asym_key" - end - # verify the required parameter 'update_asym_keys_request' is set - if @api_client.config.client_side_validation && update_asym_keys_request.nil? - fail ArgumentError, "Missing the required parameter 'update_asym_keys_request' when calling AsymmetricKeyManagementApi.update_asym_key" - end - # resource path - local_var_path = 'kms/v2/keys-asym/{keyId}'.sub('{' + 'keyId' + '}', key_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/hal+json;charset=utf-8']) - # HTTP header 'Content-Type' - header_params['Content-Type'] = @api_client.select_header_content_type(['application/json;charset=utf-8']) - - # form parameters - form_params = {} - - # http body (model) - post_body = @api_client.object_to_http_body(update_asym_keys_request) - sdk_tracker = SdkTracker.new - post_body = sdk_tracker.insert_developer_id_tracker(post_body, 'UpdateAsymKeysRequest', @api_client.config.host) - auth_names = [] - data, status_code, headers = @api_client.call_api(:PATCH, local_var_path, - :header_params => header_params, - :query_params => query_params, - :form_params => form_params, - :body => post_body, - :auth_names => auth_names, - :return_type => 'Object') - if @api_client.config.debugging - begin - raise - @api_client.config.logger.debug "API called: AsymmetricKeyManagementApi#update_asym_key\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/key_management_api.rb b/lib/cybersource_rest_client/api/key_management_api.rb deleted file mode 100644 index e9ca1bea..00000000 --- a/lib/cybersource_rest_client/api/key_management_api.rb +++ /dev/null @@ -1,120 +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 'uri' - -module CyberSource - class KeyManagementApi - attr_accessor :api_client - - def initialize(api_client = ApiClient.default, config) - @api_client = api_client - @api_client.set_configuration(config) - end - # Search Keys - # Search one or more Keys - # - # @param [Hash] opts the optional parameters - # @option opts [Integer] :offset This allows you to specify the page offset from the resulting list resultset you want the records to be returned - # @option opts [Integer] :limit This allows you to specify the total number of records to be returned off the resulting list resultset - # @option opts [String] :sort This allows you to specify a comma separated list of fields in the order which the resulting list resultset must be sorted. - # @option opts [Array] :organization_ids List of Orgaization Ids to search. The maximum size of the organization Ids list is 1. The maximum length of Organization Id is 30. - # @option opts [Array] :key_ids List of Key Ids to search. The maximum size of the Key Ids list is 1 - # @option opts [Array] :key_types Key Type, Possible values - certificate, password, pgp and scmp_api. When Key Type is provided atleast one more filter needs to be provided - # @option opts [DateTime] :expiration_start_date Expiry Filter Start Date. When Expiration Date filter is provided, atleast one more filter needs to be provided - # @option opts [DateTime] :expiration_end_date Expiry Filter End Date. When Expiration Date filter is provided, atleast one more filter needs to be provided - # @return [InlineResponse2001] - # - def search_keys(opts = {}) - data, status_code, headers = search_keys_with_http_info(opts) - return data, status_code, headers - end - - # Search Keys - # Search one or more Keys - # @param [Hash] opts the optional parameters - # @option opts [Integer] :offset This allows you to specify the page offset from the resulting list resultset you want the records to be returned - # @option opts [Integer] :limit This allows you to specify the total number of records to be returned off the resulting list resultset - # @option opts [String] :sort This allows you to specify a comma separated list of fields in the order which the resulting list resultset must be sorted. - # @option opts [Array] :organization_ids List of Orgaization Ids to search. The maximum size of the organization Ids list is 1. The maximum length of Organization Id is 30. - # @option opts [Array] :key_ids List of Key Ids to search. The maximum size of the Key Ids list is 1 - # @option opts [Array] :key_types Key Type, Possible values - certificate, password, pgp and scmp_api. When Key Type is provided atleast one more filter needs to be provided - # @option opts [DateTime] :expiration_start_date Expiry Filter Start Date. When Expiration Date filter is provided, atleast one more filter needs to be provided - # @option opts [DateTime] :expiration_end_date Expiry Filter End Date. When Expiration Date filter is provided, atleast one more filter needs to be provided - # @return [Array<(InlineResponse2001, Fixnum, Hash)>] InlineResponse2001 data, response status code and response headers - def search_keys_with_http_info(opts = {}) - - if @api_client.config.debugging - begin - raise - @api_client.config.logger.debug 'Calling API: KeyManagementApi.search_keys ...' - rescue - puts 'Cannot write to log' - end - end - #if @api_client.config.client_side_validation && !opts[:'expiration_start_date'].nil? && opts[:'expiration_start_date'] !~ Regexp.new(/yyyy-mm-dd/) - #fail ArgumentError, "invalid value for 'opts[:\"expiration_start_date\"]' when calling KeyManagementApi.search_keys, must conform to the pattern /yyyy-mm-dd/." - #end - - #if @api_client.config.client_side_validation && !opts[:'expiration_end_date'].nil? && opts[:'expiration_end_date'] !~ Regexp.new(/yyyy-mm-dd/) - #fail ArgumentError, "invalid value for 'opts[:\"expiration_end_date\"]' when calling KeyManagementApi.search_keys, must conform to the pattern /yyyy-mm-dd/." - #end - - # resource path - local_var_path = 'kms/v2/keys' - - # query parameters - query_params = {} - query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil? - query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil? - query_params[:'sort'] = opts[:'sort'] if !opts[:'sort'].nil? - query_params[:'organizationIds'] = @api_client.build_collection_param(opts[:'organization_ids'], :csv) if !opts[:'organization_ids'].nil? - query_params[:'keyIds'] = @api_client.build_collection_param(opts[:'key_ids'], :csv) if !opts[:'key_ids'].nil? - query_params[:'keyTypes'] = @api_client.build_collection_param(opts[:'key_types'], :csv) if !opts[:'key_types'].nil? - query_params[:'expirationStartDate'] = opts[:'expiration_start_date'] if !opts[:'expiration_start_date'].nil? - query_params[:'expirationEndDate'] = opts[:'expiration_end_date'] if !opts[:'expiration_end_date'].nil? - - # header parameters - header_params = {} - # HTTP header 'Accept' (if needed) - header_params['Accept'] = @api_client.select_header_accept(['application/hal+json;charset=utf-8']) - # HTTP header 'Content-Type' - header_params['Content-Type'] = @api_client.select_header_content_type(['application/json;charset=utf-8']) - - # form parameters - form_params = {} - - # http body (model) - if 'GET' == 'POST' - post_body = '{}' - else - post_body = nil - end - auth_names = [] - data, status_code, headers = @api_client.call_api(:GET, local_var_path, - :header_params => header_params, - :query_params => query_params, - :form_params => form_params, - :body => post_body, - :auth_names => auth_names, - :return_type => 'InlineResponse2001') - if @api_client.config.debugging - begin - raise - @api_client.config.logger.debug "API called: KeyManagementApi#search_keys\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/key_management_password_api.rb b/lib/cybersource_rest_client/api/key_management_password_api.rb deleted file mode 100644 index a54a1121..00000000 --- a/lib/cybersource_rest_client/api/key_management_password_api.rb +++ /dev/null @@ -1,98 +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 'uri' - -module CyberSource - class KeyManagementPasswordApi - attr_accessor :api_client - - def initialize(api_client = ApiClient.default, config) - @api_client = api_client - @api_client.set_configuration(config) - end - # Activate or De-activate Password - # Activate or De-activate key of type password - # - # @param key_id Key ID. - # @param update_password_keys_request - # @param [Hash] opts the optional parameters - # @return [Object] - # - def update_password(key_id, update_password_keys_request, opts = {}) - data, status_code, headers = update_password_with_http_info(key_id, update_password_keys_request, opts) - return data, status_code, headers - end - - # Activate or De-activate Password - # Activate or De-activate key of type password - # @param key_id Key ID. - # @param update_password_keys_request - # @param [Hash] opts the optional parameters - # @return [Array<(Object, Fixnum, Hash)>] Object data, response status code and response headers - def update_password_with_http_info(key_id, update_password_keys_request, opts = {}) - - if @api_client.config.debugging - begin - raise - @api_client.config.logger.debug 'Calling API: KeyManagementPasswordApi.update_password ...' - rescue - puts 'Cannot write to log' - end - end - # verify the required parameter 'key_id' is set - if @api_client.config.client_side_validation && key_id.nil? - fail ArgumentError, "Missing the required parameter 'key_id' when calling KeyManagementPasswordApi.update_password" - end - # verify the required parameter 'update_password_keys_request' is set - if @api_client.config.client_side_validation && update_password_keys_request.nil? - fail ArgumentError, "Missing the required parameter 'update_password_keys_request' when calling KeyManagementPasswordApi.update_password" - end - # resource path - local_var_path = 'kms/v2/keys-password/{keyId}'.sub('{' + 'keyId' + '}', key_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/hal+json;charset=utf-8']) - # HTTP header 'Content-Type' - header_params['Content-Type'] = @api_client.select_header_content_type(['application/json;charset=utf-8']) - - # form parameters - form_params = {} - - # http body (model) - post_body = @api_client.object_to_http_body(update_password_keys_request) - sdk_tracker = SdkTracker.new - post_body = sdk_tracker.insert_developer_id_tracker(post_body, 'UpdatePasswordKeysRequest', @api_client.config.host) - auth_names = [] - data, status_code, headers = @api_client.call_api(:PATCH, local_var_path, - :header_params => header_params, - :query_params => query_params, - :form_params => form_params, - :body => post_body, - :auth_names => auth_names, - :return_type => 'Object') - if @api_client.config.debugging - begin - raise - @api_client.config.logger.debug "API called: KeyManagementPasswordApi#update_password\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/key_management_pgp_api.rb b/lib/cybersource_rest_client/api/key_management_pgp_api.rb deleted file mode 100644 index 682114c0..00000000 --- a/lib/cybersource_rest_client/api/key_management_pgp_api.rb +++ /dev/null @@ -1,98 +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 'uri' - -module CyberSource - class KeyManagementPgpApi - attr_accessor :api_client - - def initialize(api_client = ApiClient.default, config) - @api_client = api_client - @api_client.set_configuration(config) - end - # Activate or De-activate PGP Key - # Activate or De-activate PGP Key - # - # @param key_id Key ID. - # @param update_pgp_keys_request - # @param [Hash] opts the optional parameters - # @return [Object] - # - def update_pgp(key_id, update_pgp_keys_request, opts = {}) - data, status_code, headers = update_pgp_with_http_info(key_id, update_pgp_keys_request, opts) - return data, status_code, headers - end - - # Activate or De-activate PGP Key - # Activate or De-activate PGP Key - # @param key_id Key ID. - # @param update_pgp_keys_request - # @param [Hash] opts the optional parameters - # @return [Array<(Object, Fixnum, Hash)>] Object data, response status code and response headers - def update_pgp_with_http_info(key_id, update_pgp_keys_request, opts = {}) - - if @api_client.config.debugging - begin - raise - @api_client.config.logger.debug 'Calling API: KeyManagementPgpApi.update_pgp ...' - rescue - puts 'Cannot write to log' - end - end - # verify the required parameter 'key_id' is set - if @api_client.config.client_side_validation && key_id.nil? - fail ArgumentError, "Missing the required parameter 'key_id' when calling KeyManagementPgpApi.update_pgp" - end - # verify the required parameter 'update_pgp_keys_request' is set - if @api_client.config.client_side_validation && update_pgp_keys_request.nil? - fail ArgumentError, "Missing the required parameter 'update_pgp_keys_request' when calling KeyManagementPgpApi.update_pgp" - end - # resource path - local_var_path = 'kms/v2/keys-pgp/{keyId}'.sub('{' + 'keyId' + '}', key_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/hal+json;charset=utf-8']) - # HTTP header 'Content-Type' - header_params['Content-Type'] = @api_client.select_header_content_type(['application/json;charset=utf-8']) - - # form parameters - form_params = {} - - # http body (model) - post_body = @api_client.object_to_http_body(update_pgp_keys_request) - sdk_tracker = SdkTracker.new - post_body = sdk_tracker.insert_developer_id_tracker(post_body, 'UpdatePGPKeysRequest', @api_client.config.host) - auth_names = [] - data, status_code, headers = @api_client.call_api(:PATCH, local_var_path, - :header_params => header_params, - :query_params => query_params, - :form_params => form_params, - :body => post_body, - :auth_names => auth_names, - :return_type => 'Object') - if @api_client.config.debugging - begin - raise - @api_client.config.logger.debug "API called: KeyManagementPgpApi#update_pgp\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/key_management_scmp_api.rb b/lib/cybersource_rest_client/api/key_management_scmp_api.rb deleted file mode 100644 index b0ac3afb..00000000 --- a/lib/cybersource_rest_client/api/key_management_scmp_api.rb +++ /dev/null @@ -1,98 +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 'uri' - -module CyberSource - class KeyManagementScmpApi - attr_accessor :api_client - - def initialize(api_client = ApiClient.default, config) - @api_client = api_client - @api_client.set_configuration(config) - end - # Update or Deactivate - # Update or Deactivate scmp api Key - # - # @param key_id Key ID. - # @param update_pgp_keys_request - # @param [Hash] opts the optional parameters - # @return [Object] - # - def update_scmp(key_id, update_pgp_keys_request, opts = {}) - data, status_code, headers = update_scmp_with_http_info(key_id, update_pgp_keys_request, opts) - return data, status_code, headers - end - - # Update or Deactivate - # Update or Deactivate scmp api Key - # @param key_id Key ID. - # @param update_pgp_keys_request - # @param [Hash] opts the optional parameters - # @return [Array<(Object, Fixnum, Hash)>] Object data, response status code and response headers - def update_scmp_with_http_info(key_id, update_pgp_keys_request, opts = {}) - - if @api_client.config.debugging - begin - raise - @api_client.config.logger.debug 'Calling API: KeyManagementScmpApi.update_scmp ...' - rescue - puts 'Cannot write to log' - end - end - # verify the required parameter 'key_id' is set - if @api_client.config.client_side_validation && key_id.nil? - fail ArgumentError, "Missing the required parameter 'key_id' when calling KeyManagementScmpApi.update_scmp" - end - # verify the required parameter 'update_pgp_keys_request' is set - if @api_client.config.client_side_validation && update_pgp_keys_request.nil? - fail ArgumentError, "Missing the required parameter 'update_pgp_keys_request' when calling KeyManagementScmpApi.update_scmp" - end - # resource path - local_var_path = 'kms/v2/keys-scmp/{keyId}'.sub('{' + 'keyId' + '}', key_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/hal+json;charset=utf-8']) - # HTTP header 'Content-Type' - header_params['Content-Type'] = @api_client.select_header_content_type(['application/json;charset=utf-8']) - - # form parameters - form_params = {} - - # http body (model) - post_body = @api_client.object_to_http_body(update_pgp_keys_request) - sdk_tracker = SdkTracker.new - post_body = sdk_tracker.insert_developer_id_tracker(post_body, 'UpdatePGPKeysRequest1', @api_client.config.host) - auth_names = [] - data, status_code, headers = @api_client.call_api(:PATCH, local_var_path, - :header_params => header_params, - :query_params => query_params, - :form_params => form_params, - :body => post_body, - :auth_names => auth_names, - :return_type => 'Object') - if @api_client.config.debugging - begin - raise - @api_client.config.logger.debug "API called: KeyManagementScmpApi#update_scmp\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/symmetric_key_management_api.rb b/lib/cybersource_rest_client/api/symmetric_key_management_api.rb deleted file mode 100644 index 4f26ea35..00000000 --- a/lib/cybersource_rest_client/api/symmetric_key_management_api.rb +++ /dev/null @@ -1,308 +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 'uri' - -module CyberSource - class SymmetricKeyManagementApi - attr_accessor :api_client - - def initialize(api_client = ApiClient.default, config) - @api_client = api_client - @api_client.set_configuration(config) - end - # Create Shared-Secret Keys - # Create one or more Shared-Secret Keys - # - # @param create_shared_secret_keys_request - # @param [Hash] opts the optional parameters - # @return [KmsV2KeysSymPost201Response] - # - def create_v2_shared_secret_keys(create_shared_secret_keys_request, opts = {}) - data, status_code, headers = create_v2_shared_secret_keys_with_http_info(create_shared_secret_keys_request, opts) - return data, status_code, headers - end - - # Create Shared-Secret Keys - # Create one or more Shared-Secret Keys - # @param create_shared_secret_keys_request - # @param [Hash] opts the optional parameters - # @return [Array<(KmsV2KeysSymPost201Response, Fixnum, Hash)>] KmsV2KeysSymPost201Response data, response status code and response headers - def create_v2_shared_secret_keys_with_http_info(create_shared_secret_keys_request, opts = {}) - - if @api_client.config.debugging - begin - raise - @api_client.config.logger.debug 'Calling API: SymmetricKeyManagementApi.create_v2_shared_secret_keys ...' - rescue - puts 'Cannot write to log' - end - end - # verify the required parameter 'create_shared_secret_keys_request' is set - if @api_client.config.client_side_validation && create_shared_secret_keys_request.nil? - fail ArgumentError, "Missing the required parameter 'create_shared_secret_keys_request' when calling SymmetricKeyManagementApi.create_v2_shared_secret_keys" - end - # resource path - local_var_path = 'kms/v2/keys-sym' - - # query parameters - query_params = {} - - # header parameters - header_params = {} - # HTTP header 'Accept' (if needed) - header_params['Accept'] = @api_client.select_header_accept(['application/hal+json;charset=utf-8']) - # HTTP header 'Content-Type' - header_params['Content-Type'] = @api_client.select_header_content_type(['application/json;charset=utf-8']) - - # form parameters - form_params = {} - - # http body (model) - post_body = @api_client.object_to_http_body(create_shared_secret_keys_request) - sdk_tracker = SdkTracker.new - post_body = sdk_tracker.insert_developer_id_tracker(post_body, 'CreateSharedSecretKeysRequest', @api_client.config.host) - 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 => 'KmsV2KeysSymPost201Response') - if @api_client.config.debugging - begin - raise - @api_client.config.logger.debug "API called: SymmetricKeyManagementApi#create_v2_shared_secret_keys\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" - rescue - puts 'Cannot write to log' - end - end - return data, status_code, headers - end - # Create Shared-Secret Keys as per verifi spec - # Create one or more Shared-Secret Keys as per Verifi spec with 32 chars, store digest algo during key generation. - # - # @param v_ic_domain domain - # @param create_shared_secret_keys_verifi_request - # @param [Hash] opts the optional parameters - # @return [KmsV2KeysSymPost201Response] - # - def create_v2_shared_secret_keys_verifi(v_ic_domain, create_shared_secret_keys_verifi_request, opts = {}) - data, status_code, headers = create_v2_shared_secret_keys_verifi_with_http_info(v_ic_domain, create_shared_secret_keys_verifi_request, opts) - return data, status_code, headers - end - - # Create Shared-Secret Keys as per verifi spec - # Create one or more Shared-Secret Keys as per Verifi spec with 32 chars, store digest algo during key generation. - # @param v_ic_domain domain - # @param create_shared_secret_keys_verifi_request - # @param [Hash] opts the optional parameters - # @return [Array<(KmsV2KeysSymPost201Response, Fixnum, Hash)>] KmsV2KeysSymPost201Response data, response status code and response headers - def create_v2_shared_secret_keys_verifi_with_http_info(v_ic_domain, create_shared_secret_keys_verifi_request, opts = {}) - - if @api_client.config.debugging - begin - raise - @api_client.config.logger.debug 'Calling API: SymmetricKeyManagementApi.create_v2_shared_secret_keys_verifi ...' - rescue - puts 'Cannot write to log' - end - end - # verify the required parameter 'v_ic_domain' is set - if @api_client.config.client_side_validation && v_ic_domain.nil? - fail ArgumentError, "Missing the required parameter 'v_ic_domain' when calling SymmetricKeyManagementApi.create_v2_shared_secret_keys_verifi" - end - # verify the required parameter 'create_shared_secret_keys_verifi_request' is set - if @api_client.config.client_side_validation && create_shared_secret_keys_verifi_request.nil? - fail ArgumentError, "Missing the required parameter 'create_shared_secret_keys_verifi_request' when calling SymmetricKeyManagementApi.create_v2_shared_secret_keys_verifi" - end - # resource path - local_var_path = 'kms/v2/keys-sym/verifi' - - # query parameters - query_params = {} - - # header parameters - header_params = {} - # HTTP header 'Accept' (if needed) - header_params['Accept'] = @api_client.select_header_accept(['application/hal+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[:'v-ic-domain'] = v_ic_domain - - # form parameters - form_params = {} - - # http body (model) - post_body = @api_client.object_to_http_body(create_shared_secret_keys_verifi_request) - sdk_tracker = SdkTracker.new - post_body = sdk_tracker.insert_developer_id_tracker(post_body, 'CreateSharedSecretKeysVerifiRequest', @api_client.config.host) - 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 => 'KmsV2KeysSymPost201Response') - if @api_client.config.debugging - begin - raise - @api_client.config.logger.debug "API called: SymmetricKeyManagementApi#create_v2_shared_secret_keys_verifi\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" - rescue - puts 'Cannot write to log' - end - end - return data, status_code, headers - end - # Delete one or more Symmetric keys - # 'Delete one or more Symmetric keys' - # - # @param delete_bulk_symmetric_keys_request - # @param [Hash] opts the optional parameters - # @return [KmsV2KeysSymDeletesPost200Response] - # - def delete_bulk_symmetric_keys(delete_bulk_symmetric_keys_request, opts = {}) - data, status_code, headers = delete_bulk_symmetric_keys_with_http_info(delete_bulk_symmetric_keys_request, opts) - return data, status_code, headers - end - - # Delete one or more Symmetric keys - # 'Delete one or more Symmetric keys' - # @param delete_bulk_symmetric_keys_request - # @param [Hash] opts the optional parameters - # @return [Array<(KmsV2KeysSymDeletesPost200Response, Fixnum, Hash)>] KmsV2KeysSymDeletesPost200Response data, response status code and response headers - def delete_bulk_symmetric_keys_with_http_info(delete_bulk_symmetric_keys_request, opts = {}) - - if @api_client.config.debugging - begin - raise - @api_client.config.logger.debug 'Calling API: SymmetricKeyManagementApi.delete_bulk_symmetric_keys ...' - rescue - puts 'Cannot write to log' - end - end - # verify the required parameter 'delete_bulk_symmetric_keys_request' is set - if @api_client.config.client_side_validation && delete_bulk_symmetric_keys_request.nil? - fail ArgumentError, "Missing the required parameter 'delete_bulk_symmetric_keys_request' when calling SymmetricKeyManagementApi.delete_bulk_symmetric_keys" - end - # resource path - local_var_path = 'kms/v2/keys-sym/deletes' - - # query parameters - query_params = {} - - # header parameters - header_params = {} - # HTTP header 'Accept' (if needed) - header_params['Accept'] = @api_client.select_header_accept(['application/hal+json;charset=utf-8']) - # HTTP header 'Content-Type' - header_params['Content-Type'] = @api_client.select_header_content_type(['application/json;charset=utf-8']) - - # form parameters - form_params = {} - - # http body (model) - post_body = @api_client.object_to_http_body(delete_bulk_symmetric_keys_request) - sdk_tracker = SdkTracker.new - post_body = sdk_tracker.insert_developer_id_tracker(post_body, 'DeleteBulkSymmetricKeysRequest', @api_client.config.host) - 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 => 'KmsV2KeysSymDeletesPost200Response') - if @api_client.config.debugging - begin - raise - @api_client.config.logger.debug "API called: SymmetricKeyManagementApi#delete_bulk_symmetric_keys\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" - rescue - puts 'Cannot write to log' - end - end - return data, status_code, headers - end - # Retrieves shared secret key details - # Retrieves keys details by providing the key id. - # - # @param key_id Key ID. - # @param [Hash] opts the optional parameters - # @return [KmsV2KeysSymGet200Response] - # - def get_key_details(key_id, opts = {}) - data, status_code, headers = get_key_details_with_http_info(key_id, opts) - return data, status_code, headers - end - - # Retrieves shared secret key details - # Retrieves keys details by providing the key id. - # @param key_id Key ID. - # @param [Hash] opts the optional parameters - # @return [Array<(KmsV2KeysSymGet200Response, Fixnum, Hash)>] KmsV2KeysSymGet200Response data, response status code and response headers - def get_key_details_with_http_info(key_id, opts = {}) - - if @api_client.config.debugging - begin - raise - @api_client.config.logger.debug 'Calling API: SymmetricKeyManagementApi.get_key_details ...' - rescue - puts 'Cannot write to log' - end - end - # verify the required parameter 'key_id' is set - if @api_client.config.client_side_validation && key_id.nil? - fail ArgumentError, "Missing the required parameter 'key_id' when calling SymmetricKeyManagementApi.get_key_details" - end - # resource path - local_var_path = 'kms/v2/keys-sym/{keyId}'.sub('{' + 'keyId' + '}', key_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/hal+json;charset=utf-8']) - # HTTP header 'Content-Type' - header_params['Content-Type'] = @api_client.select_header_content_type(['application/json;charset=utf-8']) - - # form parameters - form_params = {} - - # http body (model) - if 'GET' == 'POST' - post_body = '{}' - else - post_body = nil - end - auth_names = [] - data, status_code, headers = @api_client.call_api(:GET, local_var_path, - :header_params => header_params, - :query_params => query_params, - :form_params => form_params, - :body => post_body, - :auth_names => auth_names, - :return_type => 'KmsV2KeysSymGet200Response') - if @api_client.config.debugging - begin - raise - @api_client.config.logger.debug "API called: SymmetricKeyManagementApi#get_key_details\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/models/create_p12_keys_request.rb b/lib/cybersource_rest_client/models/create_p12_keys_request.rb deleted file mode 100644 index 4b0dfdcb..00000000 --- a/lib/cybersource_rest_client/models/create_p12_keys_request.rb +++ /dev/null @@ -1,201 +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 CreateP12KeysRequest - attr_accessor :client_reference_information - - attr_accessor :key_information - - # Attribute mapping from ruby-style variable name to JSON key. - def self.attribute_map - { - :'client_reference_information' => :'clientReferenceInformation', - :'key_information' => :'keyInformation' - } - end - - # Attribute mapping from JSON key to ruby-style variable name. - def self.json_map - { - :'client_reference_information' => :'client_reference_information', - :'key_information' => :'key_information' - } - end - - # Attribute type mapping. - def self.swagger_types - { - :'client_reference_information' => :'Kmsv2keyssymClientReferenceInformation', - :'key_information' => :'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?(:'clientReferenceInformation') - self.client_reference_information = attributes[:'clientReferenceInformation'] - end - - if attributes.has_key?(:'keyInformation') - if (value = attributes[:'keyInformation']).is_a?(Array) - self.key_information = 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 && - client_reference_information == o.client_reference_information && - key_information == o.key_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, key_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/create_shared_secret_keys_request.rb b/lib/cybersource_rest_client/models/create_shared_secret_keys_request.rb deleted file mode 100644 index 04d09b0a..00000000 --- a/lib/cybersource_rest_client/models/create_shared_secret_keys_request.rb +++ /dev/null @@ -1,201 +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 CreateSharedSecretKeysRequest - attr_accessor :client_reference_information - - attr_accessor :key_information - - # Attribute mapping from ruby-style variable name to JSON key. - def self.attribute_map - { - :'client_reference_information' => :'clientReferenceInformation', - :'key_information' => :'keyInformation' - } - end - - # Attribute mapping from JSON key to ruby-style variable name. - def self.json_map - { - :'client_reference_information' => :'client_reference_information', - :'key_information' => :'key_information' - } - end - - # Attribute type mapping. - def self.swagger_types - { - :'client_reference_information' => :'Kmsv2keyssymClientReferenceInformation', - :'key_information' => :'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?(:'clientReferenceInformation') - self.client_reference_information = attributes[:'clientReferenceInformation'] - end - - if attributes.has_key?(:'keyInformation') - if (value = attributes[:'keyInformation']).is_a?(Array) - self.key_information = 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 && - client_reference_information == o.client_reference_information && - key_information == o.key_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, key_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/create_shared_secret_keys_verifi_request.rb b/lib/cybersource_rest_client/models/create_shared_secret_keys_verifi_request.rb deleted file mode 100644 index 09513a3f..00000000 --- a/lib/cybersource_rest_client/models/create_shared_secret_keys_verifi_request.rb +++ /dev/null @@ -1,201 +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 CreateSharedSecretKeysVerifiRequest - attr_accessor :client_reference_information - - attr_accessor :key_information - - # Attribute mapping from ruby-style variable name to JSON key. - def self.attribute_map - { - :'client_reference_information' => :'clientReferenceInformation', - :'key_information' => :'keyInformation' - } - end - - # Attribute mapping from JSON key to ruby-style variable name. - def self.json_map - { - :'client_reference_information' => :'client_reference_information', - :'key_information' => :'key_information' - } - end - - # Attribute type mapping. - def self.swagger_types - { - :'client_reference_information' => :'Kmsv2keyssymClientReferenceInformation', - :'key_information' => :'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?(:'clientReferenceInformation') - self.client_reference_information = attributes[:'clientReferenceInformation'] - end - - if attributes.has_key?(:'keyInformation') - if (value = attributes[:'keyInformation']).is_a?(Array) - self.key_information = 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 && - client_reference_information == o.client_reference_information && - key_information == o.key_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, key_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/delete_bulk_p12_keys_request.rb b/lib/cybersource_rest_client/models/delete_bulk_p12_keys_request.rb deleted file mode 100644 index c2c49804..00000000 --- a/lib/cybersource_rest_client/models/delete_bulk_p12_keys_request.rb +++ /dev/null @@ -1,201 +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 DeleteBulkP12KeysRequest - attr_accessor :client_reference_information - - attr_accessor :key_information - - # Attribute mapping from ruby-style variable name to JSON key. - def self.attribute_map - { - :'client_reference_information' => :'clientReferenceInformation', - :'key_information' => :'keyInformation' - } - end - - # Attribute mapping from JSON key to ruby-style variable name. - def self.json_map - { - :'client_reference_information' => :'client_reference_information', - :'key_information' => :'key_information' - } - end - - # Attribute type mapping. - def self.swagger_types - { - :'client_reference_information' => :'Kmsv2keyssymClientReferenceInformation', - :'key_information' => :'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?(:'clientReferenceInformation') - self.client_reference_information = attributes[:'clientReferenceInformation'] - end - - if attributes.has_key?(:'keyInformation') - if (value = attributes[:'keyInformation']).is_a?(Array) - self.key_information = 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 && - client_reference_information == o.client_reference_information && - key_information == o.key_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, key_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/delete_bulk_symmetric_keys_request.rb b/lib/cybersource_rest_client/models/delete_bulk_symmetric_keys_request.rb deleted file mode 100644 index 08b96a4e..00000000 --- a/lib/cybersource_rest_client/models/delete_bulk_symmetric_keys_request.rb +++ /dev/null @@ -1,201 +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 DeleteBulkSymmetricKeysRequest - attr_accessor :client_reference_information - - attr_accessor :key_information - - # Attribute mapping from ruby-style variable name to JSON key. - def self.attribute_map - { - :'client_reference_information' => :'clientReferenceInformation', - :'key_information' => :'keyInformation' - } - end - - # Attribute mapping from JSON key to ruby-style variable name. - def self.json_map - { - :'client_reference_information' => :'client_reference_information', - :'key_information' => :'key_information' - } - end - - # Attribute type mapping. - def self.swagger_types - { - :'client_reference_information' => :'Kmsv2keyssymClientReferenceInformation', - :'key_information' => :'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?(:'clientReferenceInformation') - self.client_reference_information = attributes[:'clientReferenceInformation'] - end - - if attributes.has_key?(:'keyInformation') - if (value = attributes[:'keyInformation']).is_a?(Array) - self.key_information = 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 && - client_reference_information == o.client_reference_information && - key_information == o.key_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, key_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_1_keys.rb b/lib/cybersource_rest_client/models/inline_response_200_1_keys.rb deleted file mode 100644 index 29131edc..00000000 --- a/lib/cybersource_rest_client/models/inline_response_200_1_keys.rb +++ /dev/null @@ -1,323 +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 - # KeyResponseEntry - class InlineResponse2001Keys - # Merchant Id - attr_accessor :organization_id - - # Merchant Name - attr_accessor :merchant_name - - # Key Id - attr_accessor :key_id - - # Key Type - attr_accessor :key_type - - # Status can be active/inactive - attr_accessor :status - - # Expiry Date. example - 2028-07-15 22:11:56 UTC - attr_accessor :expiration_date - - # Date Addded. example - 2018-04-25 22:11:56 UTC - attr_accessor :date_added - - # Added By - attr_accessor :added_by - - # Modified Date. - attr_accessor :date_modified - - # Modified By - attr_accessor :modified_by - - # Version - attr_accessor :version - - # Serial Number - attr_accessor :serial_number - - # Issuer Name - attr_accessor :issuer_name - - # Attribute mapping from ruby-style variable name to JSON key. - def self.attribute_map - { - :'organization_id' => :'organizationId', - :'merchant_name' => :'merchantName', - :'key_id' => :'keyId', - :'key_type' => :'keyType', - :'status' => :'status', - :'expiration_date' => :'expirationDate', - :'date_added' => :'dateAdded', - :'added_by' => :'addedBy', - :'date_modified' => :'dateModified', - :'modified_by' => :'modifiedBy', - :'version' => :'version', - :'serial_number' => :'serialNumber', - :'issuer_name' => :'issuerName' - } - end - - # Attribute mapping from JSON key to ruby-style variable name. - def self.json_map - { - :'organization_id' => :'organization_id', - :'merchant_name' => :'merchant_name', - :'key_id' => :'key_id', - :'key_type' => :'key_type', - :'status' => :'status', - :'expiration_date' => :'expiration_date', - :'date_added' => :'date_added', - :'added_by' => :'added_by', - :'date_modified' => :'date_modified', - :'modified_by' => :'modified_by', - :'version' => :'version', - :'serial_number' => :'serial_number', - :'issuer_name' => :'issuer_name' - } - end - - # Attribute type mapping. - def self.swagger_types - { - :'organization_id' => :'String', - :'merchant_name' => :'String', - :'key_id' => :'String', - :'key_type' => :'String', - :'status' => :'String', - :'expiration_date' => :'Date', - :'date_added' => :'Date', - :'added_by' => :'String', - :'date_modified' => :'Date', - :'modified_by' => :'String', - :'version' => :'String', - :'serial_number' => :'String', - :'issuer_name' => :'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?(:'organizationId') - self.organization_id = attributes[:'organizationId'] - end - - if attributes.has_key?(:'merchantName') - self.merchant_name = attributes[:'merchantName'] - end - - if attributes.has_key?(:'keyId') - self.key_id = attributes[:'keyId'] - end - - if attributes.has_key?(:'keyType') - self.key_type = attributes[:'keyType'] - end - - if attributes.has_key?(:'status') - self.status = attributes[:'status'] - end - - if attributes.has_key?(:'expirationDate') - self.expiration_date = attributes[:'expirationDate'] - end - - if attributes.has_key?(:'dateAdded') - self.date_added = attributes[:'dateAdded'] - end - - if attributes.has_key?(:'addedBy') - self.added_by = attributes[:'addedBy'] - end - - if attributes.has_key?(:'dateModified') - self.date_modified = attributes[:'dateModified'] - end - - if attributes.has_key?(:'modifiedBy') - self.modified_by = attributes[:'modifiedBy'] - end - - if attributes.has_key?(:'version') - self.version = attributes[:'version'] - end - - if attributes.has_key?(:'serialNumber') - self.serial_number = attributes[:'serialNumber'] - end - - if attributes.has_key?(:'issuerName') - self.issuer_name = attributes[:'issuerName'] - 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 && - organization_id == o.organization_id && - merchant_name == o.merchant_name && - key_id == o.key_id && - key_type == o.key_type && - status == o.status && - expiration_date == o.expiration_date && - date_added == o.date_added && - added_by == o.added_by && - date_modified == o.date_modified && - modified_by == o.modified_by && - version == o.version && - serial_number == o.serial_number && - issuer_name == o.issuer_name - 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 - [organization_id, merchant_name, key_id, key_type, status, expiration_date, date_added, added_by, date_modified, modified_by, version, serial_number, issuer_name].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_2_integration_information.rb b/lib/cybersource_rest_client/models/inline_response_200_2_integration_information.rb deleted file mode 100644 index d3a8bdef..00000000 --- a/lib/cybersource_rest_client/models/inline_response_200_2_integration_information.rb +++ /dev/null @@ -1,204 +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 InlineResponse2002IntegrationInformation - attr_accessor :oauth2 - - # tenantConfigurations is an array of objects that includes the tenant information this merchant is associated with. - attr_accessor :tenant_configurations - - # Attribute mapping from ruby-style variable name to JSON key. - def self.attribute_map - { - :'oauth2' => :'oauth2', - :'tenant_configurations' => :'tenantConfigurations' - } - end - - # Attribute mapping from JSON key to ruby-style variable name. - def self.json_map - { - :'oauth2' => :'oauth2', - :'tenant_configurations' => :'tenant_configurations' - } - end - - # Attribute type mapping. - def self.swagger_types - { - :'oauth2' => :'Array', - :'tenant_configurations' => :'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?(:'oauth2') - if (value = attributes[:'oauth2']).is_a?(Array) - self.oauth2 = value - end - end - - if attributes.has_key?(:'tenantConfigurations') - if (value = attributes[:'tenantConfigurations']).is_a?(Array) - self.tenant_configurations = 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 && - oauth2 == o.oauth2 && - tenant_configurations == o.tenant_configurations - 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 - [oauth2, tenant_configurations].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_2_integration_information_tenant_configurations.rb b/lib/cybersource_rest_client/models/inline_response_200_2_integration_information_tenant_configurations.rb deleted file mode 100644 index 494a8f3d..00000000 --- a/lib/cybersource_rest_client/models/inline_response_200_2_integration_information_tenant_configurations.rb +++ /dev/null @@ -1,296 +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 InlineResponse2002IntegrationInformationTenantConfigurations - # 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 - - # The tenantConfigurationId is the unique identifier for this system resource. You will see various places where it must be referenced in the URI path, or when querying the hierarchy for ancestors or descendants. - attr_accessor :tenant_configuration_id - - attr_accessor :status - - # Time of request in UTC. - attr_accessor :submit_time_utc - - attr_accessor :tenant_information - - class EnumAttributeValidator - attr_reader :datatype - attr_reader :allowable_values - - def initialize(datatype, allowable_values) - @allowable_values = allowable_values.map do |value| - case datatype.to_s - when /Integer/i - value.to_i - when /Float/i - value.to_f - else - value - end - end - end - - def valid?(value) - !value || allowable_values.include?(value) - end - end - - # Attribute mapping from ruby-style variable name to JSON key. - def self.attribute_map - { - :'solution_id' => :'solutionId', - :'tenant_configuration_id' => :'tenantConfigurationId', - :'status' => :'status', - :'submit_time_utc' => :'submitTimeUtc', - :'tenant_information' => :'tenantInformation' - } - end - - # Attribute mapping from JSON key to ruby-style variable name. - def self.json_map - { - :'solution_id' => :'solution_id', - :'tenant_configuration_id' => :'tenant_configuration_id', - :'status' => :'status', - :'submit_time_utc' => :'submit_time_utc', - :'tenant_information' => :'tenant_information' - } - end - - # Attribute type mapping. - def self.swagger_types - { - :'solution_id' => :'String', - :'tenant_configuration_id' => :'String', - :'status' => :'String', - :'submit_time_utc' => :'DateTime', - :'tenant_information' => :'Boardingv1registrationsIntegrationInformationTenantInformation' - } - 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?(:'solutionId') - self.solution_id = attributes[:'solutionId'] - end - - if attributes.has_key?(:'tenantConfigurationId') - self.tenant_configuration_id = attributes[:'tenantConfigurationId'] - end - - if attributes.has_key?(:'status') - self.status = attributes[:'status'] - end - - if attributes.has_key?(:'submitTimeUtc') - self.submit_time_utc = attributes[:'submitTimeUtc'] - end - - if attributes.has_key?(:'tenantInformation') - self.tenant_information = attributes[:'tenantInformation'] - 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 !@solution_id.nil? && @solution_id !~ Regexp.new(/^[0-9a-zA-Z_]+$/) - #invalid_properties.push('invalid value for "solution_id", must conform to the pattern /^[0-9a-zA-Z_]+$/.') - #end - - #if !@tenant_configuration_id.nil? && @tenant_configuration_id !~ Regexp.new(/^[0-9a-zA-Z_]+$/) - #invalid_properties.push('invalid value for "tenant_configuration_id", must conform to the pattern /^[0-9a-zA-Z_]+$/.') - #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 !@solution_id.nil? && @solution_id !~ Regexp.new(/^[0-9a-zA-Z_]+$/) - #return false if !@tenant_configuration_id.nil? && @tenant_configuration_id !~ Regexp.new(/^[0-9a-zA-Z_]+$/) - status_validator = EnumAttributeValidator.new('String', ['LIVE', 'INACTIVE', 'TEST']) - return false unless status_validator.valid?(@status) - true - end - - # Custom attribute writer method with validation - # @param [Object] solution_id Value to be assigned - def solution_id=(solution_id) - #if !solution_id.nil? && solution_id !~ Regexp.new(/^[0-9a-zA-Z_]+$/) - #fail ArgumentError, 'invalid value for "solution_id", must conform to the pattern /^[0-9a-zA-Z_]+$/.' - #end - - @solution_id = solution_id - end - - # Custom attribute writer method with validation - # @param [Object] tenant_configuration_id Value to be assigned - def tenant_configuration_id=(tenant_configuration_id) - #if !tenant_configuration_id.nil? && tenant_configuration_id !~ Regexp.new(/^[0-9a-zA-Z_]+$/) - #fail ArgumentError, 'invalid value for "tenant_configuration_id", must conform to the pattern /^[0-9a-zA-Z_]+$/.' - #end - - @tenant_configuration_id = tenant_configuration_id - end - - # Custom attribute writer method checking allowed values (enum). - # @param [Object] status Object to be assigned - def status=(status) - validator = EnumAttributeValidator.new('String', ['LIVE', 'INACTIVE', 'TEST']) - unless validator.valid?(status) - fail ArgumentError, 'invalid value for "status", must be one of #{validator.allowable_values}.' - 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 && - solution_id == o.solution_id && - tenant_configuration_id == o.tenant_configuration_id && - status == o.status && - submit_time_utc == o.submit_time_utc && - tenant_information == o.tenant_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 - [solution_id, tenant_configuration_id, status, submit_time_utc, tenant_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_6__embedded.rb b/lib/cybersource_rest_client/models/inline_response_200_6__embedded.rb deleted file mode 100644 index c29382d8..00000000 --- a/lib/cybersource_rest_client/models/inline_response_200_6__embedded.rb +++ /dev/null @@ -1,191 +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 InlineResponse2006Embedded - attr_accessor :batches - - # Attribute mapping from ruby-style variable name to JSON key. - def self.attribute_map - { - :'batches' => :'batches' - } - end - - # Attribute mapping from JSON key to ruby-style variable name. - def self.json_map - { - :'batches' => :'batches' - } - end - - # Attribute type mapping. - def self.swagger_types - { - :'batches' => :'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?(:'batches') - if (value = attributes[:'batches']).is_a?(Array) - self.batches = 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 && - batches == o.batches - 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 - [batches].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_6__embedded__links.rb b/lib/cybersource_rest_client/models/inline_response_200_6__embedded__links.rb deleted file mode 100644 index 0b1a6952..00000000 --- a/lib/cybersource_rest_client/models/inline_response_200_6__embedded__links.rb +++ /dev/null @@ -1,191 +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 InlineResponse2006EmbeddedLinks - attr_accessor :reports - - # Attribute mapping from ruby-style variable name to JSON key. - def self.attribute_map - { - :'reports' => :'reports' - } - end - - # Attribute mapping from JSON key to ruby-style variable name. - def self.json_map - { - :'reports' => :'reports' - } - end - - # Attribute type mapping. - def self.swagger_types - { - :'reports' => :'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?(:'reports') - if (value = attributes[:'reports']).is_a?(Array) - self.reports = 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 && - reports == o.reports - 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 - [reports].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_6__embedded__links_reports.rb b/lib/cybersource_rest_client/models/inline_response_200_6__embedded__links_reports.rb deleted file mode 100644 index 04717b56..00000000 --- a/lib/cybersource_rest_client/models/inline_response_200_6__embedded__links_reports.rb +++ /dev/null @@ -1,190 +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 - # Retrieve the generated report of a batch when available. - class InlineResponse2006EmbeddedLinksReports - attr_accessor :href - - # Attribute mapping from ruby-style variable name to JSON key. - def self.attribute_map - { - :'href' => :'href' - } - end - - # Attribute mapping from JSON key to ruby-style variable name. - def self.json_map - { - :'href' => :'href' - } - end - - # Attribute type mapping. - def self.swagger_types - { - :'href' => :'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?(:'href') - self.href = attributes[:'href'] - 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 && - href == o.href - 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 - [href].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_6__embedded_batches.rb b/lib/cybersource_rest_client/models/inline_response_200_6__embedded_batches.rb deleted file mode 100644 index 27f78cb4..00000000 --- a/lib/cybersource_rest_client/models/inline_response_200_6__embedded_batches.rb +++ /dev/null @@ -1,295 +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 InlineResponse2006EmbeddedBatches - attr_accessor :_links - - # Unique identification number assigned to the submitted request. - attr_accessor :batch_id - - # ISO-8601 format: yyyy-MM-ddTHH:mm:ssZ - attr_accessor :batch_created_date - - # ISO-8601 format: yyyy-MM-ddTHH:mm:ssZ - attr_accessor :batch_modified_date - - # Valid Values: * SCHEDULER * TOKEN_API * CREDIT_CARD_FILE_UPLOAD * AMEX_REGSITRY * AMEX_REGISTRY_API * AMEX_REGISTRY_API_SYNC * AMEX_MAINTENANCE - attr_accessor :batch_source - - # Valid Values: * SECURE_STORAGE * TMS * CYBERSOURCE - attr_accessor :token_source - - # Reference used by merchant to identify batch. - attr_accessor :merchant_reference - - # Valid Values: * VISA * MASTERCARD * AMEX - attr_accessor :batch_ca_endpoints - - # Valid Values: * REJECTED * RECEIVED * VALIDATED * DECLINED * PROCESSING * COMPLETE - attr_accessor :status - - attr_accessor :totals - - # Attribute mapping from ruby-style variable name to JSON key. - def self.attribute_map - { - :'_links' => :'_links', - :'batch_id' => :'batchId', - :'batch_created_date' => :'batchCreatedDate', - :'batch_modified_date' => :'batchModifiedDate', - :'batch_source' => :'batchSource', - :'token_source' => :'tokenSource', - :'merchant_reference' => :'merchantReference', - :'batch_ca_endpoints' => :'batchCaEndpoints', - :'status' => :'status', - :'totals' => :'totals' - } - end - - # Attribute mapping from JSON key to ruby-style variable name. - def self.json_map - { - :'_links' => :'_links', - :'batch_id' => :'batch_id', - :'batch_created_date' => :'batch_created_date', - :'batch_modified_date' => :'batch_modified_date', - :'batch_source' => :'batch_source', - :'token_source' => :'token_source', - :'merchant_reference' => :'merchant_reference', - :'batch_ca_endpoints' => :'batch_ca_endpoints', - :'status' => :'status', - :'totals' => :'totals' - } - end - - # Attribute type mapping. - def self.swagger_types - { - :'_links' => :'InlineResponse2006EmbeddedLinks', - :'batch_id' => :'String', - :'batch_created_date' => :'String', - :'batch_modified_date' => :'String', - :'batch_source' => :'String', - :'token_source' => :'String', - :'merchant_reference' => :'String', - :'batch_ca_endpoints' => :'Array', - :'status' => :'String', - :'totals' => :'InlineResponse2006EmbeddedTotals' - } - 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?(:'batchId') - self.batch_id = attributes[:'batchId'] - end - - if attributes.has_key?(:'batchCreatedDate') - self.batch_created_date = attributes[:'batchCreatedDate'] - end - - if attributes.has_key?(:'batchModifiedDate') - self.batch_modified_date = attributes[:'batchModifiedDate'] - end - - if attributes.has_key?(:'batchSource') - self.batch_source = attributes[:'batchSource'] - end - - if attributes.has_key?(:'tokenSource') - self.token_source = attributes[:'tokenSource'] - end - - if attributes.has_key?(:'merchantReference') - self.merchant_reference = attributes[:'merchantReference'] - end - - if attributes.has_key?(:'batchCaEndpoints') - if (value = attributes[:'batchCaEndpoints']).is_a?(Array) - self.batch_ca_endpoints = value - end - end - - if attributes.has_key?(:'status') - self.status = attributes[:'status'] - end - - if attributes.has_key?(:'totals') - self.totals = attributes[:'totals'] - 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] 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_modified_date == o.batch_modified_date && - batch_source == o.batch_source && - token_source == o.token_source && - merchant_reference == o.merchant_reference && - batch_ca_endpoints == o.batch_ca_endpoints && - status == o.status && - totals == o.totals - 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, batch_id, batch_created_date, batch_modified_date, batch_source, token_source, merchant_reference, batch_ca_endpoints, status, totals].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_6__embedded_totals.rb b/lib/cybersource_rest_client/models/inline_response_200_6__embedded_totals.rb deleted file mode 100644 index ad7baa8e..00000000 --- a/lib/cybersource_rest_client/models/inline_response_200_6__embedded_totals.rb +++ /dev/null @@ -1,229 +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 InlineResponse2006EmbeddedTotals - attr_accessor :accepted_records - - attr_accessor :rejected_records - - attr_accessor :updated_records - - attr_accessor :ca_responses - - attr_accessor :ca_responses_omitted - - # Attribute mapping from ruby-style variable name to JSON key. - def self.attribute_map - { - :'accepted_records' => :'acceptedRecords', - :'rejected_records' => :'rejectedRecords', - :'updated_records' => :'updatedRecords', - :'ca_responses' => :'caResponses', - :'ca_responses_omitted' => :'caResponsesOmitted' - } - end - - # Attribute mapping from JSON key to ruby-style variable name. - def self.json_map - { - :'accepted_records' => :'accepted_records', - :'rejected_records' => :'rejected_records', - :'updated_records' => :'updated_records', - :'ca_responses' => :'ca_responses', - :'ca_responses_omitted' => :'ca_responses_omitted' - } - end - - # Attribute type mapping. - def self.swagger_types - { - :'accepted_records' => :'Integer', - :'rejected_records' => :'Integer', - :'updated_records' => :'Integer', - :'ca_responses' => :'Integer', - :'ca_responses_omitted' => :'Integer' - } - 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?(:'acceptedRecords') - self.accepted_records = attributes[:'acceptedRecords'] - end - - if attributes.has_key?(:'rejectedRecords') - self.rejected_records = attributes[:'rejectedRecords'] - end - - if attributes.has_key?(:'updatedRecords') - self.updated_records = attributes[:'updatedRecords'] - end - - if attributes.has_key?(:'caResponses') - self.ca_responses = attributes[:'caResponses'] - end - - if attributes.has_key?(:'caResponsesOmitted') - self.ca_responses_omitted = attributes[:'caResponsesOmitted'] - 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 && - accepted_records == o.accepted_records && - rejected_records == o.rejected_records && - updated_records == o.updated_records && - ca_responses == o.ca_responses && - ca_responses_omitted == o.ca_responses_omitted - 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 - [accepted_records, rejected_records, updated_records, ca_responses, ca_responses_omitted].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_7__links.rb b/lib/cybersource_rest_client/models/inline_response_200_7__links.rb deleted file mode 100644 index 9112bc6a..00000000 --- a/lib/cybersource_rest_client/models/inline_response_200_7__links.rb +++ /dev/null @@ -1,201 +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 InlineResponse2007Links - 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_7__links_report.rb b/lib/cybersource_rest_client/models/inline_response_200_7__links_report.rb deleted file mode 100644 index 3190de1a..00000000 --- a/lib/cybersource_rest_client/models/inline_response_200_7__links_report.rb +++ /dev/null @@ -1,189 +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 InlineResponse2007LinksReport - attr_accessor :href - - # Attribute mapping from ruby-style variable name to JSON key. - def self.attribute_map - { - :'href' => :'href' - } - end - - # Attribute mapping from JSON key to ruby-style variable name. - def self.json_map - { - :'href' => :'href' - } - end - - # Attribute type mapping. - def self.swagger_types - { - :'href' => :'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?(:'href') - self.href = attributes[:'href'] - 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 && - href == o.href - 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 - [href].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_7_billing.rb b/lib/cybersource_rest_client/models/inline_response_200_7_billing.rb deleted file mode 100644 index 2f6032e8..00000000 --- a/lib/cybersource_rest_client/models/inline_response_200_7_billing.rb +++ /dev/null @@ -1,219 +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 InlineResponse2007Billing - attr_accessor :nan - - attr_accessor :ned - - attr_accessor :acl - - attr_accessor :cch - - # Attribute mapping from ruby-style variable name to JSON key. - def self.attribute_map - { - :'nan' => :'nan', - :'ned' => :'ned', - :'acl' => :'acl', - :'cch' => :'cch' - } - end - - # Attribute mapping from JSON key to ruby-style variable name. - def self.json_map - { - :'nan' => :'nan', - :'ned' => :'ned', - :'acl' => :'acl', - :'cch' => :'cch' - } - end - - # Attribute type mapping. - def self.swagger_types - { - :'nan' => :'Integer', - :'ned' => :'Integer', - :'acl' => :'Integer', - :'cch' => :'Integer' - } - 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?(:'nan') - self.nan = attributes[:'nan'] - end - - if attributes.has_key?(:'ned') - self.ned = attributes[:'ned'] - end - - if attributes.has_key?(:'acl') - self.acl = attributes[:'acl'] - end - - if attributes.has_key?(:'cch') - self.cch = attributes[:'cch'] - 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 && - nan == o.nan && - ned == o.ned && - acl == o.acl && - cch == o.cch - 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 - [nan, ned, acl, cch].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_8.rb b/lib/cybersource_rest_client/models/inline_response_200_8.rb deleted file mode 100644 index 29b2724b..00000000 --- a/lib/cybersource_rest_client/models/inline_response_200_8.rb +++ /dev/null @@ -1,292 +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 InlineResponse2008 - attr_accessor :version - - # ISO-8601 format: yyyy-MM-ddTHH:mm:ssZ - attr_accessor :report_created_date - - # 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 - - # 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 - { - :'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 - { - :'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 - { - :'version' => :'String', - :'report_created_date' => :'String', - :'batch_id' => :'String', - :'batch_source' => :'String', - :'batch_ca_endpoints' => :'String', - :'batch_created_date' => :'String', - :'merchant_reference' => :'String', - :'totals' => :'InlineResponse2006EmbeddedTotals', - :'billing' => :'InlineResponse2007Billing', - :'records' => :'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?(:'version') - self.version = attributes[:'version'] - end - - if attributes.has_key?(:'reportCreatedDate') - self.report_created_date = attributes[:'reportCreatedDate'] - end - - if attributes.has_key?(:'batchId') - self.batch_id = attributes[:'batchId'] - end - - 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 - - # 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] 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 && - 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 - # @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 - [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 - # @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_8_records.rb b/lib/cybersource_rest_client/models/inline_response_200_8_records.rb deleted file mode 100644 index 1c87f8f1..00000000 --- a/lib/cybersource_rest_client/models/inline_response_200_8_records.rb +++ /dev/null @@ -1,209 +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 InlineResponse2008Records - attr_accessor :id - - attr_accessor :source_record - - attr_accessor :response_record - - # Attribute mapping from ruby-style variable name to JSON key. - def self.attribute_map - { - :'id' => :'id', - :'source_record' => :'sourceRecord', - :'response_record' => :'responseRecord' - } - end - - # Attribute mapping from JSON key to ruby-style variable name. - def self.json_map - { - :'id' => :'id', - :'source_record' => :'source_record', - :'response_record' => :'response_record' - } - end - - # Attribute type mapping. - def self.swagger_types - { - :'id' => :'String', - :'source_record' => :'InlineResponse2008SourceRecord', - :'response_record' => :'InlineResponse2008ResponseRecord' - } - 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?(:'id') - self.id = attributes[:'id'] - end - - if attributes.has_key?(:'sourceRecord') - self.source_record = attributes[:'sourceRecord'] - end - - if attributes.has_key?(:'responseRecord') - self.response_record = attributes[:'responseRecord'] - 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 && - id == o.id && - source_record == o.source_record && - response_record == o.response_record - 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 - [id, source_record, response_record].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_8_response_record.rb b/lib/cybersource_rest_client/models/inline_response_200_8_response_record.rb deleted file mode 100644 index 31e806c0..00000000 --- a/lib/cybersource_rest_client/models/inline_response_200_8_response_record.rb +++ /dev/null @@ -1,307 +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 InlineResponse2008ResponseRecord - # Valid Values: * NAN * NED * ACL * CCH * CUR * NUP * UNA * ERR * DEC - attr_accessor :response - - attr_accessor :reason - - attr_accessor :token - - attr_accessor :instrument_identifier_id - - # Valid Values: * true * false - attr_accessor :instrument_identifier_created - - attr_accessor :card_number - - attr_accessor :card_expiry_month - - attr_accessor :card_expiry_year - - attr_accessor :card_type - - attr_accessor :additional_updates - - # Attribute mapping from ruby-style variable name to JSON key. - def self.attribute_map - { - :'response' => :'response', - :'reason' => :'reason', - :'token' => :'token', - :'instrument_identifier_id' => :'instrumentIdentifierId', - :'instrument_identifier_created' => :'instrumentIdentifierCreated', - :'card_number' => :'cardNumber', - :'card_expiry_month' => :'cardExpiryMonth', - :'card_expiry_year' => :'cardExpiryYear', - :'card_type' => :'cardType', - :'additional_updates' => :'additionalUpdates' - } - end - - # Attribute mapping from JSON key to ruby-style variable name. - def self.json_map - { - :'response' => :'response', - :'reason' => :'reason', - :'token' => :'token', - :'instrument_identifier_id' => :'instrument_identifier_id', - :'instrument_identifier_created' => :'instrument_identifier_created', - :'card_number' => :'card_number', - :'card_expiry_month' => :'card_expiry_month', - :'card_expiry_year' => :'card_expiry_year', - :'card_type' => :'card_type', - :'additional_updates' => :'additional_updates' - } - end - - # Attribute type mapping. - def self.swagger_types - { - :'response' => :'String', - :'reason' => :'String', - :'token' => :'String', - :'instrument_identifier_id' => :'String', - :'instrument_identifier_created' => :'String', - :'card_number' => :'String', - :'card_expiry_month' => :'String', - :'card_expiry_year' => :'String', - :'card_type' => :'String', - :'additional_updates' => :'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?(:'response') - self.response = attributes[:'response'] - end - - if attributes.has_key?(:'reason') - self.reason = attributes[:'reason'] - end - - if attributes.has_key?(:'token') - self.token = attributes[:'token'] - end - - if attributes.has_key?(:'instrumentIdentifierId') - self.instrument_identifier_id = attributes[:'instrumentIdentifierId'] - end - - if attributes.has_key?(:'instrumentIdentifierCreated') - self.instrument_identifier_created = attributes[:'instrumentIdentifierCreated'] - end - - if attributes.has_key?(:'cardNumber') - self.card_number = attributes[:'cardNumber'] - end - - if attributes.has_key?(:'cardExpiryMonth') - self.card_expiry_month = attributes[:'cardExpiryMonth'] - end - - if attributes.has_key?(:'cardExpiryYear') - self.card_expiry_year = attributes[:'cardExpiryYear'] - end - - if attributes.has_key?(:'cardType') - self.card_type = attributes[:'cardType'] - end - - if attributes.has_key?(:'additionalUpdates') - if (value = attributes[:'additionalUpdates']).is_a?(Array) - self.additional_updates = 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 - - # Custom attribute writer method with validation - # @param [Object] token Value to be assigned - def token=(token) - @token = token - end - - # Custom attribute writer method with validation - # @param [Object] instrument_identifier_id Value to be assigned - def instrument_identifier_id=(instrument_identifier_id) - @instrument_identifier_id = instrument_identifier_id - end - - # Custom attribute writer method with validation - # @param [Object] card_expiry_month Value to be assigned - def card_expiry_month=(card_expiry_month) - @card_expiry_month = card_expiry_month - end - - # Custom attribute writer method with validation - # @param [Object] card_expiry_year Value to be assigned - def card_expiry_year=(card_expiry_year) - @card_expiry_year = card_expiry_year - 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 && - response == o.response && - reason == o.reason && - token == o.token && - instrument_identifier_id == o.instrument_identifier_id && - instrument_identifier_created == o.instrument_identifier_created && - card_number == o.card_number && - card_expiry_month == o.card_expiry_month && - card_expiry_year == o.card_expiry_year && - card_type == o.card_type && - additional_updates == o.additional_updates - 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 - [response, reason, token, instrument_identifier_id, instrument_identifier_created, card_number, card_expiry_month, card_expiry_year, card_type, additional_updates].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_8_response_record_additional_updates.rb b/lib/cybersource_rest_client/models/inline_response_200_8_response_record_additional_updates.rb deleted file mode 100644 index 15776d87..00000000 --- a/lib/cybersource_rest_client/models/inline_response_200_8_response_record_additional_updates.rb +++ /dev/null @@ -1,242 +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 InlineResponse2008ResponseRecordAdditionalUpdates - attr_accessor :customer_id - - attr_accessor :payment_instrument_id - - attr_accessor :creator - - # Valid Values: * ACTIVE * CLOSED - attr_accessor :state - - attr_accessor :message - - # Attribute mapping from ruby-style variable name to JSON key. - def self.attribute_map - { - :'customer_id' => :'customerId', - :'payment_instrument_id' => :'paymentInstrumentId', - :'creator' => :'creator', - :'state' => :'state', - :'message' => :'message' - } - end - - # Attribute mapping from JSON key to ruby-style variable name. - def self.json_map - { - :'customer_id' => :'customer_id', - :'payment_instrument_id' => :'payment_instrument_id', - :'creator' => :'creator', - :'state' => :'state', - :'message' => :'message' - } - end - - # Attribute type mapping. - def self.swagger_types - { - :'customer_id' => :'String', - :'payment_instrument_id' => :'String', - :'creator' => :'String', - :'state' => :'String', - :'message' => :'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?(:'customerId') - self.customer_id = attributes[:'customerId'] - end - - if attributes.has_key?(:'paymentInstrumentId') - self.payment_instrument_id = attributes[:'paymentInstrumentId'] - end - - if attributes.has_key?(:'creator') - self.creator = attributes[:'creator'] - end - - if attributes.has_key?(:'state') - self.state = attributes[:'state'] - end - - if attributes.has_key?(:'message') - self.message = attributes[:'message'] - 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] customer_id Value to be assigned - def customer_id=(customer_id) - @customer_id = customer_id - end - - # Custom attribute writer method with validation - # @param [Object] payment_instrument_id Value to be assigned - def payment_instrument_id=(payment_instrument_id) - @payment_instrument_id = payment_instrument_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 && - customer_id == o.customer_id && - payment_instrument_id == o.payment_instrument_id && - creator == o.creator && - state == o.state && - message == o.message - 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 - [customer_id, payment_instrument_id, creator, state, message].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_8_source_record.rb b/lib/cybersource_rest_client/models/inline_response_200_8_source_record.rb deleted file mode 100644 index 093f9203..00000000 --- a/lib/cybersource_rest_client/models/inline_response_200_8_source_record.rb +++ /dev/null @@ -1,295 +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 InlineResponse2008SourceRecord - attr_accessor :token - - attr_accessor :customer_id - - attr_accessor :payment_instrument_id - - attr_accessor :instrument_identifier_id - - attr_accessor :card_number - - attr_accessor :card_expiry_month - - attr_accessor :card_expiry_year - - attr_accessor :card_type - - # Attribute mapping from ruby-style variable name to JSON key. - def self.attribute_map - { - :'token' => :'token', - :'customer_id' => :'customerId', - :'payment_instrument_id' => :'paymentInstrumentId', - :'instrument_identifier_id' => :'instrumentIdentifierId', - :'card_number' => :'cardNumber', - :'card_expiry_month' => :'cardExpiryMonth', - :'card_expiry_year' => :'cardExpiryYear', - :'card_type' => :'cardType' - } - end - - # Attribute mapping from JSON key to ruby-style variable name. - def self.json_map - { - :'token' => :'token', - :'customer_id' => :'customer_id', - :'payment_instrument_id' => :'payment_instrument_id', - :'instrument_identifier_id' => :'instrument_identifier_id', - :'card_number' => :'card_number', - :'card_expiry_month' => :'card_expiry_month', - :'card_expiry_year' => :'card_expiry_year', - :'card_type' => :'card_type' - } - end - - # Attribute type mapping. - def self.swagger_types - { - :'token' => :'String', - :'customer_id' => :'String', - :'payment_instrument_id' => :'String', - :'instrument_identifier_id' => :'String', - :'card_number' => :'String', - :'card_expiry_month' => :'String', - :'card_expiry_year' => :'String', - :'card_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?(:'token') - self.token = attributes[:'token'] - end - - if attributes.has_key?(:'customerId') - self.customer_id = attributes[:'customerId'] - end - - if attributes.has_key?(:'paymentInstrumentId') - self.payment_instrument_id = attributes[:'paymentInstrumentId'] - end - - if attributes.has_key?(:'instrumentIdentifierId') - self.instrument_identifier_id = attributes[:'instrumentIdentifierId'] - end - - if attributes.has_key?(:'cardNumber') - self.card_number = attributes[:'cardNumber'] - end - - if attributes.has_key?(:'cardExpiryMonth') - self.card_expiry_month = attributes[:'cardExpiryMonth'] - end - - if attributes.has_key?(:'cardExpiryYear') - self.card_expiry_year = attributes[:'cardExpiryYear'] - end - - if attributes.has_key?(:'cardType') - self.card_type = attributes[:'cardType'] - 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] token Value to be assigned - def token=(token) - @token = token - end - - # Custom attribute writer method with validation - # @param [Object] customer_id Value to be assigned - def customer_id=(customer_id) - @customer_id = customer_id - end - - # Custom attribute writer method with validation - # @param [Object] payment_instrument_id Value to be assigned - def payment_instrument_id=(payment_instrument_id) - @payment_instrument_id = payment_instrument_id - end - - # Custom attribute writer method with validation - # @param [Object] instrument_identifier_id Value to be assigned - def instrument_identifier_id=(instrument_identifier_id) - @instrument_identifier_id = instrument_identifier_id - end - - # Custom attribute writer method with validation - # @param [Object] card_expiry_month Value to be assigned - def card_expiry_month=(card_expiry_month) - @card_expiry_month = card_expiry_month - end - - # Custom attribute writer method with validation - # @param [Object] card_expiry_year Value to be assigned - def card_expiry_year=(card_expiry_year) - @card_expiry_year = card_expiry_year - 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 && - token == o.token && - customer_id == o.customer_id && - payment_instrument_id == o.payment_instrument_id && - instrument_identifier_id == o.instrument_identifier_id && - card_number == o.card_number && - card_expiry_month == o.card_expiry_month && - card_expiry_year == o.card_expiry_year && - card_type == o.card_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 - [token, customer_id, payment_instrument_id, instrument_identifier_id, card_number, card_expiry_month, card_expiry_year, card_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/inline_response_400_7.rb b/lib/cybersource_rest_client/models/inline_response_400_7.rb deleted file mode 100644 index 09021f72..00000000 --- a/lib/cybersource_rest_client/models/inline_response_400_7.rb +++ /dev/null @@ -1,269 +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 InlineResponse4007 - # 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. - attr_accessor :submit_time_utc - - # The http status description of the submitted request. - attr_accessor :status - - # Documented reason codes. Client should be able to use the key for generating their own error message Possible Values: - 'INVALID_DATA' - 'SYSTEM_ERROR' - 'RESOURCE_NOT_FOUND' - attr_accessor :reason - - # Descriptive message for the error. - attr_accessor :message - - attr_accessor :details - - class EnumAttributeValidator - attr_reader :datatype - attr_reader :allowable_values - - def initialize(datatype, allowable_values) - @allowable_values = allowable_values.map do |value| - case datatype.to_s - when /Integer/i - value.to_i - when /Float/i - value.to_f - else - value - end - end - end - - def valid?(value) - !value || allowable_values.include?(value) - end - end - - # Attribute mapping from ruby-style variable name to JSON key. - def self.attribute_map - { - :'submit_time_utc' => :'submitTimeUtc', - :'status' => :'status', - :'reason' => :'reason', - :'message' => :'message', - :'details' => :'details' - } - end - - # Attribute mapping from JSON key to ruby-style variable name. - def self.json_map - { - :'submit_time_utc' => :'submit_time_utc', - :'status' => :'status', - :'reason' => :'reason', - :'message' => :'message', - :'details' => :'details' - } - end - - # Attribute type mapping. - def self.swagger_types - { - :'submit_time_utc' => :'Date', - :'status' => :'String', - :'reason' => :'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?(:'submitTimeUtc') - self.submit_time_utc = attributes[:'submitTimeUtc'] - end - - if attributes.has_key?(:'status') - self.status = attributes[:'status'] - end - - if attributes.has_key?(:'reason') - self.reason = attributes[:'reason'] - 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? - reason_validator = EnumAttributeValidator.new('String', ['INVALID_DATA', 'SYSTEM_ERROR', 'RESOURCE_NOT_FOUND']) - return false unless reason_validator.valid?(@reason) - true - end - - # Custom attribute writer method checking allowed values (enum). - # @param [Object] reason Object to be assigned - def reason=(reason) - validator = EnumAttributeValidator.new('String', ['INVALID_DATA', 'SYSTEM_ERROR', 'RESOURCE_NOT_FOUND']) - unless validator.valid?(reason) - fail ArgumentError, 'invalid value for "reason", must be one of #{validator.allowable_values}.' - end - @reason = reason - 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 && - submit_time_utc == o.submit_time_utc && - status == o.status && - reason == o.reason && - 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 - [submit_time_utc, status, reason, 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_400_7_details.rb b/lib/cybersource_rest_client/models/inline_response_400_7_details.rb deleted file mode 100644 index 326fe613..00000000 --- a/lib/cybersource_rest_client/models/inline_response_400_7_details.rb +++ /dev/null @@ -1,201 +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 InlineResponse4007Details - # This is the flattened JSON object field name/path that is either missing or invalid. - attr_accessor :field - - # Possible reasons for the error. - attr_accessor :reason - - # Attribute mapping from ruby-style variable name to JSON key. - def self.attribute_map - { - :'field' => :'field', - :'reason' => :'reason' - } - end - - # Attribute mapping from JSON key to ruby-style variable name. - def self.json_map - { - :'field' => :'field', - :'reason' => :'reason' - } - end - - # Attribute type mapping. - def self.swagger_types - { - :'field' => :'String', - :'reason' => :'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?(:'field') - self.field = attributes[:'field'] - end - - if attributes.has_key?(:'reason') - self.reason = attributes[:'reason'] - 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 && - field == o.field && - reason == o.reason - 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 - [field, reason].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_400_8.rb b/lib/cybersource_rest_client/models/inline_response_400_8.rb deleted file mode 100644 index e889039f..00000000 --- a/lib/cybersource_rest_client/models/inline_response_400_8.rb +++ /dev/null @@ -1,275 +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 InlineResponse4008 - attr_accessor :correlation_id - - attr_accessor :details - - attr_accessor :information_link - - attr_accessor :message - - attr_accessor :reason - - class EnumAttributeValidator - attr_reader :datatype - attr_reader :allowable_values - - def initialize(datatype, allowable_values) - @allowable_values = allowable_values.map do |value| - case datatype.to_s - when /Integer/i - value.to_i - when /Float/i - value.to_f - else - value - end - end - end - - def valid?(value) - !value || allowable_values.include?(value) - end - end - - # Attribute mapping from ruby-style variable name to JSON key. - def self.attribute_map - { - :'correlation_id' => :'correlationId', - :'details' => :'details', - :'information_link' => :'informationLink', - :'message' => :'message', - :'reason' => :'reason' - } - end - - # Attribute mapping from JSON key to ruby-style variable name. - def self.json_map - { - :'correlation_id' => :'correlation_id', - :'details' => :'details', - :'information_link' => :'information_link', - :'message' => :'message', - :'reason' => :'reason' - } - end - - # Attribute type mapping. - def self.swagger_types - { - :'correlation_id' => :'String', - :'details' => :'Array', - :'information_link' => :'String', - :'message' => :'String', - :'reason' => :'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?(:'correlationId') - self.correlation_id = attributes[:'correlationId'] - end - - if attributes.has_key?(:'details') - if (value = attributes[:'details']).is_a?(Array) - self.details = value - end - end - - if attributes.has_key?(:'informationLink') - self.information_link = attributes[:'informationLink'] - end - - if attributes.has_key?(:'message') - self.message = attributes[:'message'] - end - - if attributes.has_key?(:'reason') - self.reason = attributes[:'reason'] - 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 @message.nil? - invalid_properties.push('invalid value for "message", message cannot be nil.') - end - - if @reason.nil? - invalid_properties.push('invalid value for "reason", reason 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 @message.nil? - return false if @reason.nil? - reason_validator = EnumAttributeValidator.new('String', ['INVALID_APIKEY', 'INVALID_SHIPPING_INPUT_PARAMS', 'CAPTURE_CONTEXT_INVALID', 'CAPTURE_CONTEXT_EXPIRED', 'SDK_XHR_ERROR', 'UNIFIEDPAYMENTS_VALIDATION_PARAMS', 'UNIFIEDPAYMENTS_VALIDATION_FIELDS', 'UNIFIEDPAYMENT_PAYMENT_PARAMITERS', 'CREATE_TOKEN_TIMEOUT', 'CREATE_TOKEN_XHR_ERROR', 'SHOW_LOAD_CONTAINER_SELECTOR', 'SHOW_LOAD_INVALID_CONTAINER', 'SHOW_TOKEN_TIMEOUT', 'SHOW_TOKEN_XHR_ERROR', 'SHOW_PAYMENT_TIMEOUT']) - return false unless reason_validator.valid?(@reason) - true - end - - # Custom attribute writer method checking allowed values (enum). - # @param [Object] reason Object to be assigned - def reason=(reason) - validator = EnumAttributeValidator.new('String', ['INVALID_APIKEY', 'INVALID_SHIPPING_INPUT_PARAMS', 'CAPTURE_CONTEXT_INVALID', 'CAPTURE_CONTEXT_EXPIRED', 'SDK_XHR_ERROR', 'UNIFIEDPAYMENTS_VALIDATION_PARAMS', 'UNIFIEDPAYMENTS_VALIDATION_FIELDS', 'UNIFIEDPAYMENT_PAYMENT_PARAMITERS', 'CREATE_TOKEN_TIMEOUT', 'CREATE_TOKEN_XHR_ERROR', 'SHOW_LOAD_CONTAINER_SELECTOR', 'SHOW_LOAD_INVALID_CONTAINER', 'SHOW_TOKEN_TIMEOUT', 'SHOW_TOKEN_XHR_ERROR', 'SHOW_PAYMENT_TIMEOUT']) - unless validator.valid?(reason) - fail ArgumentError, 'invalid value for "reason", must be one of #{validator.allowable_values}.' - end - @reason = reason - 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 && - correlation_id == o.correlation_id && - details == o.details && - information_link == o.information_link && - message == o.message && - reason == o.reason - 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 - [correlation_id, details, information_link, message, reason].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_400_8_details.rb b/lib/cybersource_rest_client/models/inline_response_400_8_details.rb deleted file mode 100644 index f2f3a637..00000000 --- a/lib/cybersource_rest_client/models/inline_response_400_8_details.rb +++ /dev/null @@ -1,199 +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 InlineResponse4008Details - attr_accessor :location - - attr_accessor :message - - # Attribute mapping from ruby-style variable name to JSON key. - def self.attribute_map - { - :'location' => :'location', - :'message' => :'message' - } - end - - # Attribute mapping from JSON key to ruby-style variable name. - def self.json_map - { - :'location' => :'location', - :'message' => :'message' - } - end - - # Attribute type mapping. - def self.swagger_types - { - :'location' => :'String', - :'message' => :'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?(:'location') - self.location = attributes[:'location'] - end - - if attributes.has_key?(:'message') - self.message = attributes[:'message'] - 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 && - location == o.location && - message == o.message - 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 - [location, message].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_500_3.rb b/lib/cybersource_rest_client/models/inline_response_500_3.rb deleted file mode 100644 index 2c61ec69..00000000 --- a/lib/cybersource_rest_client/models/inline_response_500_3.rb +++ /dev/null @@ -1,257 +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 InlineResponse5003 - # 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. - attr_accessor :submit_time_utc - - # The http status description of the submitted request. - attr_accessor :status - - # Documented reason codes. Client should be able to use the key for generating their own error message Possible Values: - 'SYSTEM_ERROR' - attr_accessor :reason - - # Descriptive message for the error. - attr_accessor :message - - class EnumAttributeValidator - attr_reader :datatype - attr_reader :allowable_values - - def initialize(datatype, allowable_values) - @allowable_values = allowable_values.map do |value| - case datatype.to_s - when /Integer/i - value.to_i - when /Float/i - value.to_f - else - value - end - end - end - - def valid?(value) - !value || allowable_values.include?(value) - end - end - - # Attribute mapping from ruby-style variable name to JSON key. - def self.attribute_map - { - :'submit_time_utc' => :'submitTimeUtc', - :'status' => :'status', - :'reason' => :'reason', - :'message' => :'message' - } - end - - # Attribute mapping from JSON key to ruby-style variable name. - def self.json_map - { - :'submit_time_utc' => :'submit_time_utc', - :'status' => :'status', - :'reason' => :'reason', - :'message' => :'message' - } - end - - # Attribute type mapping. - def self.swagger_types - { - :'submit_time_utc' => :'Date', - :'status' => :'String', - :'reason' => :'String', - :'message' => :'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?(:'submitTimeUtc') - self.submit_time_utc = attributes[:'submitTimeUtc'] - end - - if attributes.has_key?(:'status') - self.status = attributes[:'status'] - end - - if attributes.has_key?(:'reason') - self.reason = attributes[:'reason'] - end - - if attributes.has_key?(:'message') - self.message = attributes[:'message'] - 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? - reason_validator = EnumAttributeValidator.new('String', ['SYSTEM_ERROR']) - return false unless reason_validator.valid?(@reason) - true - end - - # Custom attribute writer method checking allowed values (enum). - # @param [Object] reason Object to be assigned - def reason=(reason) - validator = EnumAttributeValidator.new('String', ['SYSTEM_ERROR']) - unless validator.valid?(reason) - fail ArgumentError, 'invalid value for "reason", must be one of #{validator.allowable_values}.' - end - @reason = reason - 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 && - submit_time_utc == o.submit_time_utc && - status == o.status && - reason == o.reason && - message == o.message - 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 - [submit_time_utc, status, reason, message].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_502_1.rb b/lib/cybersource_rest_client/models/inline_response_502_1.rb deleted file mode 100644 index 383b97cd..00000000 --- a/lib/cybersource_rest_client/models/inline_response_502_1.rb +++ /dev/null @@ -1,234 +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 InlineResponse5021 - # 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 status of the submitted transaction. Possible values: - SERVER_ERROR - attr_accessor :status - - # The reason of the status. Possible values: - SYSTEM_ERROR - SERVER_TIMEOUT - SERVICE_TIMEOUT - attr_accessor :reason - - # The detail message related to the status and reason listed above. - attr_accessor :message - - # HTTP status code of the submitted request. Possible values: - 500 - attr_accessor :status_code - - # Attribute mapping from ruby-style variable name to JSON key. - def self.attribute_map - { - :'submit_time_utc' => :'submitTimeUtc', - :'status' => :'status', - :'reason' => :'reason', - :'message' => :'message', - :'status_code' => :'statusCode' - } - end - - # Attribute mapping from JSON key to ruby-style variable name. - def self.json_map - { - :'submit_time_utc' => :'submit_time_utc', - :'status' => :'status', - :'reason' => :'reason', - :'message' => :'message', - :'status_code' => :'status_code' - } - end - - # Attribute type mapping. - def self.swagger_types - { - :'submit_time_utc' => :'String', - :'status' => :'String', - :'reason' => :'String', - :'message' => :'String', - :'status_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?(:'submitTimeUtc') - self.submit_time_utc = attributes[:'submitTimeUtc'] - end - - if attributes.has_key?(:'status') - self.status = attributes[:'status'] - end - - if attributes.has_key?(:'reason') - self.reason = attributes[:'reason'] - end - - if attributes.has_key?(:'message') - self.message = attributes[:'message'] - end - - if attributes.has_key?(:'statusCode') - self.status_code = attributes[:'statusCode'] - 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 && - submit_time_utc == o.submit_time_utc && - status == o.status && - reason == o.reason && - message == o.message && - status_code == o.status_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 - [submit_time_utc, status, reason, message, status_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/kms_v2_keys_asym_deletes_post200_response.rb b/lib/cybersource_rest_client/models/kms_v2_keys_asym_deletes_post200_response.rb deleted file mode 100644 index 35a3deb7..00000000 --- a/lib/cybersource_rest_client/models/kms_v2_keys_asym_deletes_post200_response.rb +++ /dev/null @@ -1,212 +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 KmsV2KeysAsymDeletesPost200Response - # 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 :client_reference_information - - attr_accessor :key_information - - # Attribute mapping from ruby-style variable name to JSON key. - def self.attribute_map - { - :'submit_time_utc' => :'submitTimeUtc', - :'client_reference_information' => :'clientReferenceInformation', - :'key_information' => :'keyInformation' - } - end - - # Attribute mapping from JSON key to ruby-style variable name. - def self.json_map - { - :'submit_time_utc' => :'submit_time_utc', - :'client_reference_information' => :'client_reference_information', - :'key_information' => :'key_information' - } - end - - # Attribute type mapping. - def self.swagger_types - { - :'submit_time_utc' => :'String', - :'client_reference_information' => :'Kmsv2keyssymClientReferenceInformation', - :'key_information' => :'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?(:'submitTimeUtc') - self.submit_time_utc = attributes[:'submitTimeUtc'] - end - - if attributes.has_key?(:'clientReferenceInformation') - self.client_reference_information = attributes[:'clientReferenceInformation'] - end - - if attributes.has_key?(:'keyInformation') - if (value = attributes[:'keyInformation']).is_a?(Array) - self.key_information = 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 && - submit_time_utc == o.submit_time_utc && - client_reference_information == o.client_reference_information && - key_information == o.key_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 - [submit_time_utc, client_reference_information, key_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/kms_v2_keys_asym_deletes_post200_response_key_information.rb b/lib/cybersource_rest_client/models/kms_v2_keys_asym_deletes_post200_response_key_information.rb deleted file mode 100644 index 1f65b7ad..00000000 --- a/lib/cybersource_rest_client/models/kms_v2_keys_asym_deletes_post200_response_key_information.rb +++ /dev/null @@ -1,245 +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 - # key information - class KmsV2KeysAsymDeletesPost200ResponseKeyInformation - # Merchant Id - attr_accessor :organization_id - - # Reference number is a unique identifier provided by the client along with the organization Id. This is an optional field provided solely for the client's convenience. If client specifies value for this field in the request, it is expected to be available in the response. - attr_accessor :reference_number - - # Key Serial Number - attr_accessor :key_id - - # The status of the key. Possible values: - FAILED - ACTIVE - INACTIVE - EXPIRED - attr_accessor :status - - # message in case of failed key - attr_accessor :message - - attr_accessor :error_information - - # Attribute mapping from ruby-style variable name to JSON key. - def self.attribute_map - { - :'organization_id' => :'organizationId', - :'reference_number' => :'referenceNumber', - :'key_id' => :'keyId', - :'status' => :'status', - :'message' => :'message', - :'error_information' => :'errorInformation' - } - end - - # Attribute mapping from JSON key to ruby-style variable name. - def self.json_map - { - :'organization_id' => :'organization_id', - :'reference_number' => :'reference_number', - :'key_id' => :'key_id', - :'status' => :'status', - :'message' => :'message', - :'error_information' => :'error_information' - } - end - - # Attribute type mapping. - def self.swagger_types - { - :'organization_id' => :'String', - :'reference_number' => :'String', - :'key_id' => :'String', - :'status' => :'String', - :'message' => :'String', - :'error_information' => :'KmsV2KeysSymPost201ResponseErrorInformation' - } - 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?(:'organizationId') - self.organization_id = attributes[:'organizationId'] - end - - if attributes.has_key?(:'referenceNumber') - self.reference_number = attributes[:'referenceNumber'] - end - - if attributes.has_key?(:'keyId') - self.key_id = attributes[:'keyId'] - end - - if attributes.has_key?(:'status') - self.status = attributes[:'status'] - end - - if attributes.has_key?(:'message') - self.message = attributes[:'message'] - end - - if attributes.has_key?(:'errorInformation') - self.error_information = attributes[:'errorInformation'] - 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 && - organization_id == o.organization_id && - reference_number == o.reference_number && - key_id == o.key_id && - status == o.status && - message == o.message && - error_information == o.error_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 - [organization_id, reference_number, key_id, status, message, error_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/kms_v2_keys_asym_get200_response.rb b/lib/cybersource_rest_client/models/kms_v2_keys_asym_get200_response.rb deleted file mode 100644 index 905ab23e..00000000 --- a/lib/cybersource_rest_client/models/kms_v2_keys_asym_get200_response.rb +++ /dev/null @@ -1,200 +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 KmsV2KeysAsymGet200Response - # 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 :key_information - - # Attribute mapping from ruby-style variable name to JSON key. - def self.attribute_map - { - :'submit_time_utc' => :'submitTimeUtc', - :'key_information' => :'keyInformation' - } - end - - # Attribute mapping from JSON key to ruby-style variable name. - def self.json_map - { - :'submit_time_utc' => :'submit_time_utc', - :'key_information' => :'key_information' - } - end - - # Attribute type mapping. - def self.swagger_types - { - :'submit_time_utc' => :'String', - :'key_information' => :'KmsV2KeysAsymGet200ResponseKeyInformation' - } - 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?(:'submitTimeUtc') - self.submit_time_utc = attributes[:'submitTimeUtc'] - end - - if attributes.has_key?(:'keyInformation') - self.key_information = attributes[:'keyInformation'] - 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 && - submit_time_utc == o.submit_time_utc && - key_information == o.key_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 - [submit_time_utc, key_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/kms_v2_keys_asym_get200_response_key_information.rb b/lib/cybersource_rest_client/models/kms_v2_keys_asym_get200_response_key_information.rb deleted file mode 100644 index 8904692b..00000000 --- a/lib/cybersource_rest_client/models/kms_v2_keys_asym_get200_response_key_information.rb +++ /dev/null @@ -1,267 +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 - # key information - class KmsV2KeysAsymGet200ResponseKeyInformation - # Merchant Id - attr_accessor :organization_id - - # Reference number is a unique identifier provided by the client along with the organization Id. This is an optional field provided solely for the client's convenience. If client specifies value for this field in the request, it is expected to be available in the response. - attr_accessor :reference_number - - # Key Serial Number - attr_accessor :key_id - - # The status of the key. Possible values: - FAILED - ACTIVE - INACTIVE - EXPIRED - attr_accessor :status - - # The expiration time 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. - attr_accessor :expiration_date - - # message in case of failed key - attr_accessor :message - - # Key alias - attr_accessor :_alias - - attr_accessor :error_information - - # Attribute mapping from ruby-style variable name to JSON key. - def self.attribute_map - { - :'organization_id' => :'organizationId', - :'reference_number' => :'referenceNumber', - :'key_id' => :'keyId', - :'status' => :'status', - :'expiration_date' => :'expirationDate', - :'message' => :'message', - :'_alias' => :'alias', - :'error_information' => :'errorInformation' - } - end - - # Attribute mapping from JSON key to ruby-style variable name. - def self.json_map - { - :'organization_id' => :'organization_id', - :'reference_number' => :'reference_number', - :'key_id' => :'key_id', - :'status' => :'status', - :'expiration_date' => :'expiration_date', - :'message' => :'message', - :'_alias' => :'_alias', - :'error_information' => :'error_information' - } - end - - # Attribute type mapping. - def self.swagger_types - { - :'organization_id' => :'String', - :'reference_number' => :'String', - :'key_id' => :'String', - :'status' => :'String', - :'expiration_date' => :'String', - :'message' => :'String', - :'_alias' => :'String', - :'error_information' => :'KmsV2KeysSymPost201ResponseErrorInformation' - } - 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?(:'organizationId') - self.organization_id = attributes[:'organizationId'] - end - - if attributes.has_key?(:'referenceNumber') - self.reference_number = attributes[:'referenceNumber'] - end - - if attributes.has_key?(:'keyId') - self.key_id = attributes[:'keyId'] - end - - if attributes.has_key?(:'status') - self.status = attributes[:'status'] - end - - if attributes.has_key?(:'expirationDate') - self.expiration_date = attributes[:'expirationDate'] - end - - if attributes.has_key?(:'message') - self.message = attributes[:'message'] - end - - if attributes.has_key?(:'alias') - self._alias = attributes[:'alias'] - end - - if attributes.has_key?(:'errorInformation') - self.error_information = attributes[:'errorInformation'] - 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 && - organization_id == o.organization_id && - reference_number == o.reference_number && - key_id == o.key_id && - status == o.status && - expiration_date == o.expiration_date && - message == o.message && - _alias == o._alias && - error_information == o.error_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 - [organization_id, reference_number, key_id, status, expiration_date, message, _alias, error_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/kms_v2_keys_asym_post201_response.rb b/lib/cybersource_rest_client/models/kms_v2_keys_asym_post201_response.rb deleted file mode 100644 index 65477a5f..00000000 --- a/lib/cybersource_rest_client/models/kms_v2_keys_asym_post201_response.rb +++ /dev/null @@ -1,235 +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 KmsV2KeysAsymPost201Response - # 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 status of the submitted transaction. Possible values: - ACCEPTED - attr_accessor :status - - attr_accessor :client_reference_information - - attr_accessor :key_information - - attr_accessor :certificate_information - - # Attribute mapping from ruby-style variable name to JSON key. - def self.attribute_map - { - :'submit_time_utc' => :'submitTimeUtc', - :'status' => :'status', - :'client_reference_information' => :'clientReferenceInformation', - :'key_information' => :'keyInformation', - :'certificate_information' => :'certificateInformation' - } - end - - # Attribute mapping from JSON key to ruby-style variable name. - def self.json_map - { - :'submit_time_utc' => :'submit_time_utc', - :'status' => :'status', - :'client_reference_information' => :'client_reference_information', - :'key_information' => :'key_information', - :'certificate_information' => :'certificate_information' - } - end - - # Attribute type mapping. - def self.swagger_types - { - :'submit_time_utc' => :'String', - :'status' => :'String', - :'client_reference_information' => :'Kmsv2keyssymClientReferenceInformation', - :'key_information' => :'Array', - :'certificate_information' => :'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?(:'submitTimeUtc') - self.submit_time_utc = attributes[:'submitTimeUtc'] - end - - if attributes.has_key?(:'status') - self.status = attributes[:'status'] - end - - if attributes.has_key?(:'clientReferenceInformation') - self.client_reference_information = attributes[:'clientReferenceInformation'] - end - - if attributes.has_key?(:'keyInformation') - if (value = attributes[:'keyInformation']).is_a?(Array) - self.key_information = value - end - end - - if attributes.has_key?(:'certificateInformation') - if (value = attributes[:'certificateInformation']).is_a?(Array) - self.certificate_information = 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 && - submit_time_utc == o.submit_time_utc && - status == o.status && - client_reference_information == o.client_reference_information && - key_information == o.key_information && - certificate_information == o.certificate_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 - [submit_time_utc, status, client_reference_information, key_information, certificate_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/kms_v2_keys_asym_post201_response_certificate_information.rb b/lib/cybersource_rest_client/models/kms_v2_keys_asym_post201_response_certificate_information.rb deleted file mode 100644 index bd67480a..00000000 --- a/lib/cybersource_rest_client/models/kms_v2_keys_asym_post201_response_certificate_information.rb +++ /dev/null @@ -1,223 +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 KmsV2KeysAsymPost201ResponseCertificateInformation - # Key alias - attr_accessor :_alias - - # Key Serial Number - attr_accessor :key_id - - # value of the key - attr_accessor :key - - # The expiration time 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. - attr_accessor :expiration_date - - # Attribute mapping from ruby-style variable name to JSON key. - def self.attribute_map - { - :'_alias' => :'alias', - :'key_id' => :'keyId', - :'key' => :'key', - :'expiration_date' => :'expirationDate' - } - end - - # Attribute mapping from JSON key to ruby-style variable name. - def self.json_map - { - :'_alias' => :'_alias', - :'key_id' => :'key_id', - :'key' => :'key', - :'expiration_date' => :'expiration_date' - } - end - - # Attribute type mapping. - def self.swagger_types - { - :'_alias' => :'String', - :'key_id' => :'String', - :'key' => :'String', - :'expiration_date' => :'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?(:'alias') - self._alias = attributes[:'alias'] - end - - if attributes.has_key?(:'keyId') - self.key_id = attributes[:'keyId'] - end - - if attributes.has_key?(:'key') - self.key = attributes[:'key'] - end - - if attributes.has_key?(:'expirationDate') - self.expiration_date = attributes[:'expirationDate'] - 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 && - _alias == o._alias && - key_id == o.key_id && - key == o.key && - expiration_date == o.expiration_date - 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 - [_alias, key_id, key, expiration_date].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/kms_v2_keys_asym_post201_response_key_information.rb b/lib/cybersource_rest_client/models/kms_v2_keys_asym_post201_response_key_information.rb deleted file mode 100644 index 748c8dfc..00000000 --- a/lib/cybersource_rest_client/models/kms_v2_keys_asym_post201_response_key_information.rb +++ /dev/null @@ -1,278 +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 - # key information - class KmsV2KeysAsymPost201ResponseKeyInformation - # Merchant Id - attr_accessor :organization_id - - # Reference number is a unique identifier provided by the client along with the organization Id. This is an optional field provided solely for the client's convenience. If client specifies value for this field in the request, it is expected to be available in the response. - attr_accessor :reference_number - - # Key Serial Number - attr_accessor :key_id - - # value of the key - attr_accessor :key - - # The status of the key. Possible values: - FAILED - ACTIVE - attr_accessor :status - - # The expiration time 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. - attr_accessor :expiration_date - - # message in case of failed key - attr_accessor :message - - # Key alias - attr_accessor :_alias - - attr_accessor :error_information - - # Attribute mapping from ruby-style variable name to JSON key. - def self.attribute_map - { - :'organization_id' => :'organizationId', - :'reference_number' => :'referenceNumber', - :'key_id' => :'keyId', - :'key' => :'key', - :'status' => :'status', - :'expiration_date' => :'expirationDate', - :'message' => :'message', - :'_alias' => :'alias', - :'error_information' => :'errorInformation' - } - end - - # Attribute mapping from JSON key to ruby-style variable name. - def self.json_map - { - :'organization_id' => :'organization_id', - :'reference_number' => :'reference_number', - :'key_id' => :'key_id', - :'key' => :'key', - :'status' => :'status', - :'expiration_date' => :'expiration_date', - :'message' => :'message', - :'_alias' => :'_alias', - :'error_information' => :'error_information' - } - end - - # Attribute type mapping. - def self.swagger_types - { - :'organization_id' => :'String', - :'reference_number' => :'String', - :'key_id' => :'String', - :'key' => :'String', - :'status' => :'String', - :'expiration_date' => :'String', - :'message' => :'String', - :'_alias' => :'String', - :'error_information' => :'KmsV2KeysSymPost201ResponseErrorInformation' - } - 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?(:'organizationId') - self.organization_id = attributes[:'organizationId'] - end - - if attributes.has_key?(:'referenceNumber') - self.reference_number = attributes[:'referenceNumber'] - end - - if attributes.has_key?(:'keyId') - self.key_id = attributes[:'keyId'] - end - - if attributes.has_key?(:'key') - self.key = attributes[:'key'] - end - - if attributes.has_key?(:'status') - self.status = attributes[:'status'] - end - - if attributes.has_key?(:'expirationDate') - self.expiration_date = attributes[:'expirationDate'] - end - - if attributes.has_key?(:'message') - self.message = attributes[:'message'] - end - - if attributes.has_key?(:'alias') - self._alias = attributes[:'alias'] - end - - if attributes.has_key?(:'errorInformation') - self.error_information = attributes[:'errorInformation'] - 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 && - organization_id == o.organization_id && - reference_number == o.reference_number && - key_id == o.key_id && - key == o.key && - status == o.status && - expiration_date == o.expiration_date && - message == o.message && - _alias == o._alias && - error_information == o.error_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 - [organization_id, reference_number, key_id, key, status, expiration_date, message, _alias, error_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/kms_v2_keys_sym_deletes_post200_response.rb b/lib/cybersource_rest_client/models/kms_v2_keys_sym_deletes_post200_response.rb deleted file mode 100644 index 907b087d..00000000 --- a/lib/cybersource_rest_client/models/kms_v2_keys_sym_deletes_post200_response.rb +++ /dev/null @@ -1,223 +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 KmsV2KeysSymDeletesPost200Response - # 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 status of the submitted transaction. Possible values: - ACCEPTED - attr_accessor :status - - attr_accessor :client_reference_information - - attr_accessor :key_information - - # Attribute mapping from ruby-style variable name to JSON key. - def self.attribute_map - { - :'submit_time_utc' => :'submitTimeUtc', - :'status' => :'status', - :'client_reference_information' => :'clientReferenceInformation', - :'key_information' => :'keyInformation' - } - end - - # Attribute mapping from JSON key to ruby-style variable name. - def self.json_map - { - :'submit_time_utc' => :'submit_time_utc', - :'status' => :'status', - :'client_reference_information' => :'client_reference_information', - :'key_information' => :'key_information' - } - end - - # Attribute type mapping. - def self.swagger_types - { - :'submit_time_utc' => :'String', - :'status' => :'String', - :'client_reference_information' => :'Kmsv2keyssymClientReferenceInformation', - :'key_information' => :'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?(:'submitTimeUtc') - self.submit_time_utc = attributes[:'submitTimeUtc'] - end - - if attributes.has_key?(:'status') - self.status = attributes[:'status'] - end - - if attributes.has_key?(:'clientReferenceInformation') - self.client_reference_information = attributes[:'clientReferenceInformation'] - end - - if attributes.has_key?(:'keyInformation') - if (value = attributes[:'keyInformation']).is_a?(Array) - self.key_information = 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 && - submit_time_utc == o.submit_time_utc && - status == o.status && - client_reference_information == o.client_reference_information && - key_information == o.key_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 - [submit_time_utc, status, client_reference_information, key_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/kms_v2_keys_sym_deletes_post200_response_key_information.rb b/lib/cybersource_rest_client/models/kms_v2_keys_sym_deletes_post200_response_key_information.rb deleted file mode 100644 index 5764b1c0..00000000 --- a/lib/cybersource_rest_client/models/kms_v2_keys_sym_deletes_post200_response_key_information.rb +++ /dev/null @@ -1,234 +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 - # key information - class KmsV2KeysSymDeletesPost200ResponseKeyInformation - # Merchant Id - attr_accessor :organization_id - - # Key serial number - attr_accessor :key_id - - # The status of the key. Possible values: - FAILED - ACTIVE - INACTIVE - EXPIRED - attr_accessor :status - - # message in case of failed key - attr_accessor :message - - attr_accessor :error_information - - # Attribute mapping from ruby-style variable name to JSON key. - def self.attribute_map - { - :'organization_id' => :'organizationId', - :'key_id' => :'keyId', - :'status' => :'status', - :'message' => :'message', - :'error_information' => :'errorInformation' - } - end - - # Attribute mapping from JSON key to ruby-style variable name. - def self.json_map - { - :'organization_id' => :'organization_id', - :'key_id' => :'key_id', - :'status' => :'status', - :'message' => :'message', - :'error_information' => :'error_information' - } - end - - # Attribute type mapping. - def self.swagger_types - { - :'organization_id' => :'String', - :'key_id' => :'String', - :'status' => :'String', - :'message' => :'String', - :'error_information' => :'KmsV2KeysSymPost201ResponseErrorInformation' - } - 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?(:'organizationId') - self.organization_id = attributes[:'organizationId'] - end - - if attributes.has_key?(:'keyId') - self.key_id = attributes[:'keyId'] - end - - if attributes.has_key?(:'status') - self.status = attributes[:'status'] - end - - if attributes.has_key?(:'message') - self.message = attributes[:'message'] - end - - if attributes.has_key?(:'errorInformation') - self.error_information = attributes[:'errorInformation'] - 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 && - organization_id == o.organization_id && - key_id == o.key_id && - status == o.status && - message == o.message && - error_information == o.error_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 - [organization_id, key_id, status, message, error_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/kms_v2_keys_sym_get200_response.rb b/lib/cybersource_rest_client/models/kms_v2_keys_sym_get200_response.rb deleted file mode 100644 index 19ab934a..00000000 --- a/lib/cybersource_rest_client/models/kms_v2_keys_sym_get200_response.rb +++ /dev/null @@ -1,211 +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 KmsV2KeysSymGet200Response - # 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 status of the submitted transaction. Possible values: - ACCEPTED - attr_accessor :status - - attr_accessor :key_information - - # Attribute mapping from ruby-style variable name to JSON key. - def self.attribute_map - { - :'submit_time_utc' => :'submitTimeUtc', - :'status' => :'status', - :'key_information' => :'keyInformation' - } - end - - # Attribute mapping from JSON key to ruby-style variable name. - def self.json_map - { - :'submit_time_utc' => :'submit_time_utc', - :'status' => :'status', - :'key_information' => :'key_information' - } - end - - # Attribute type mapping. - def self.swagger_types - { - :'submit_time_utc' => :'String', - :'status' => :'String', - :'key_information' => :'KmsV2KeysSymGet200ResponseKeyInformation' - } - 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?(:'submitTimeUtc') - self.submit_time_utc = attributes[:'submitTimeUtc'] - end - - if attributes.has_key?(:'status') - self.status = attributes[:'status'] - end - - if attributes.has_key?(:'keyInformation') - self.key_information = attributes[:'keyInformation'] - 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 && - submit_time_utc == o.submit_time_utc && - status == o.status && - key_information == o.key_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 - [submit_time_utc, status, key_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/kms_v2_keys_sym_get200_response_key_information.rb b/lib/cybersource_rest_client/models/kms_v2_keys_sym_get200_response_key_information.rb deleted file mode 100644 index e47742dc..00000000 --- a/lib/cybersource_rest_client/models/kms_v2_keys_sym_get200_response_key_information.rb +++ /dev/null @@ -1,245 +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 - # key information - class KmsV2KeysSymGet200ResponseKeyInformation - # Merchant Id - attr_accessor :organization_id - - # Key serial number - attr_accessor :key_id - - # The status of the key. Possible values: - FAILED - ACTIVE - INACTIVE - EXPIRED - attr_accessor :status - - # The expiration time in UTC. - attr_accessor :expiration_date - - # message in case of failed key - attr_accessor :message - - attr_accessor :error_information - - # Attribute mapping from ruby-style variable name to JSON key. - def self.attribute_map - { - :'organization_id' => :'organizationId', - :'key_id' => :'keyId', - :'status' => :'status', - :'expiration_date' => :'expirationDate', - :'message' => :'message', - :'error_information' => :'errorInformation' - } - end - - # Attribute mapping from JSON key to ruby-style variable name. - def self.json_map - { - :'organization_id' => :'organization_id', - :'key_id' => :'key_id', - :'status' => :'status', - :'expiration_date' => :'expiration_date', - :'message' => :'message', - :'error_information' => :'error_information' - } - end - - # Attribute type mapping. - def self.swagger_types - { - :'organization_id' => :'String', - :'key_id' => :'String', - :'status' => :'String', - :'expiration_date' => :'String', - :'message' => :'String', - :'error_information' => :'KmsV2KeysSymPost201ResponseErrorInformation' - } - 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?(:'organizationId') - self.organization_id = attributes[:'organizationId'] - end - - if attributes.has_key?(:'keyId') - self.key_id = attributes[:'keyId'] - end - - if attributes.has_key?(:'status') - self.status = attributes[:'status'] - end - - if attributes.has_key?(:'expirationDate') - self.expiration_date = attributes[:'expirationDate'] - end - - if attributes.has_key?(:'message') - self.message = attributes[:'message'] - end - - if attributes.has_key?(:'errorInformation') - self.error_information = attributes[:'errorInformation'] - 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 && - organization_id == o.organization_id && - key_id == o.key_id && - status == o.status && - expiration_date == o.expiration_date && - message == o.message && - error_information == o.error_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 - [organization_id, key_id, status, expiration_date, message, error_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/kms_v2_keys_sym_post201_response.rb b/lib/cybersource_rest_client/models/kms_v2_keys_sym_post201_response.rb deleted file mode 100644 index 48f369b9..00000000 --- a/lib/cybersource_rest_client/models/kms_v2_keys_sym_post201_response.rb +++ /dev/null @@ -1,223 +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 KmsV2KeysSymPost201Response - # 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 status of the submitted transaction. Possible values: - ACCEPTED - attr_accessor :status - - attr_accessor :client_reference_information - - attr_accessor :key_information - - # Attribute mapping from ruby-style variable name to JSON key. - def self.attribute_map - { - :'submit_time_utc' => :'submitTimeUtc', - :'status' => :'status', - :'client_reference_information' => :'clientReferenceInformation', - :'key_information' => :'keyInformation' - } - end - - # Attribute mapping from JSON key to ruby-style variable name. - def self.json_map - { - :'submit_time_utc' => :'submit_time_utc', - :'status' => :'status', - :'client_reference_information' => :'client_reference_information', - :'key_information' => :'key_information' - } - end - - # Attribute type mapping. - def self.swagger_types - { - :'submit_time_utc' => :'String', - :'status' => :'String', - :'client_reference_information' => :'Kmsv2keyssymClientReferenceInformation', - :'key_information' => :'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?(:'submitTimeUtc') - self.submit_time_utc = attributes[:'submitTimeUtc'] - end - - if attributes.has_key?(:'status') - self.status = attributes[:'status'] - end - - if attributes.has_key?(:'clientReferenceInformation') - self.client_reference_information = attributes[:'clientReferenceInformation'] - end - - if attributes.has_key?(:'keyInformation') - if (value = attributes[:'keyInformation']).is_a?(Array) - self.key_information = 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 && - submit_time_utc == o.submit_time_utc && - status == o.status && - client_reference_information == o.client_reference_information && - key_information == o.key_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 - [submit_time_utc, status, client_reference_information, key_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/kms_v2_keys_sym_post201_response_error_information.rb b/lib/cybersource_rest_client/models/kms_v2_keys_sym_post201_response_error_information.rb deleted file mode 100644 index b79de301..00000000 --- a/lib/cybersource_rest_client/models/kms_v2_keys_sym_post201_response_error_information.rb +++ /dev/null @@ -1,202 +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 KmsV2KeysSymPost201ResponseErrorInformation - # The reason of the status. Possible values: - MISSING_FIELD - INVALID_DATA - attr_accessor :reason - - attr_accessor :details - - # Attribute mapping from ruby-style variable name to JSON key. - def self.attribute_map - { - :'reason' => :'reason', - :'details' => :'details' - } - end - - # Attribute mapping from JSON key to ruby-style variable name. - def self.json_map - { - :'reason' => :'reason', - :'details' => :'details' - } - end - - # Attribute type mapping. - def self.swagger_types - { - :'reason' => :'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?(:'reason') - self.reason = attributes[:'reason'] - 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 && - reason == o.reason && - 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 - [reason, 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/kms_v2_keys_sym_post201_response_key_information.rb b/lib/cybersource_rest_client/models/kms_v2_keys_sym_post201_response_key_information.rb deleted file mode 100644 index 0acbd785..00000000 --- a/lib/cybersource_rest_client/models/kms_v2_keys_sym_post201_response_key_information.rb +++ /dev/null @@ -1,284 +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 - # key information - class KmsV2KeysSymPost201ResponseKeyInformation - # Merchant Id - attr_accessor :organization_id - - # Payworks MerchantId for given organizationId. - attr_accessor :external_organization_id - - # Reference number is a unique identifier provided by the client along with the organization Id. This is an optional field provided solely for the client's convenience. If client specifies value for this field in the request, it is expected to be available in the response. - attr_accessor :reference_number - - # Key Serial Number - attr_accessor :key_id - - # value of the key - attr_accessor :key - - # The status of the key. Possible values: - FAILED - ACTIVE - attr_accessor :status - - # The expiration time 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. - attr_accessor :expiration_date - - # message in case of failed key - attr_accessor :message - - attr_accessor :error_information - - # Attribute mapping from ruby-style variable name to JSON key. - def self.attribute_map - { - :'organization_id' => :'organizationId', - :'external_organization_id' => :'externalOrganizationId', - :'reference_number' => :'referenceNumber', - :'key_id' => :'keyId', - :'key' => :'key', - :'status' => :'status', - :'expiration_date' => :'expirationDate', - :'message' => :'message', - :'error_information' => :'errorInformation' - } - end - - # Attribute mapping from JSON key to ruby-style variable name. - def self.json_map - { - :'organization_id' => :'organization_id', - :'external_organization_id' => :'external_organization_id', - :'reference_number' => :'reference_number', - :'key_id' => :'key_id', - :'key' => :'key', - :'status' => :'status', - :'expiration_date' => :'expiration_date', - :'message' => :'message', - :'error_information' => :'error_information' - } - end - - # Attribute type mapping. - def self.swagger_types - { - :'organization_id' => :'String', - :'external_organization_id' => :'String', - :'reference_number' => :'String', - :'key_id' => :'String', - :'key' => :'String', - :'status' => :'String', - :'expiration_date' => :'String', - :'message' => :'String', - :'error_information' => :'KmsV2KeysSymPost201ResponseErrorInformation' - } - 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?(:'organizationId') - self.organization_id = attributes[:'organizationId'] - end - - if attributes.has_key?(:'externalOrganizationId') - self.external_organization_id = attributes[:'externalOrganizationId'] - end - - if attributes.has_key?(:'referenceNumber') - self.reference_number = attributes[:'referenceNumber'] - end - - if attributes.has_key?(:'keyId') - self.key_id = attributes[:'keyId'] - end - - if attributes.has_key?(:'key') - self.key = attributes[:'key'] - end - - if attributes.has_key?(:'status') - self.status = attributes[:'status'] - end - - if attributes.has_key?(:'expirationDate') - self.expiration_date = attributes[:'expirationDate'] - end - - if attributes.has_key?(:'message') - self.message = attributes[:'message'] - end - - if attributes.has_key?(:'errorInformation') - self.error_information = attributes[:'errorInformation'] - 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] external_organization_id Value to be assigned - def external_organization_id=(external_organization_id) - @external_organization_id = external_organization_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 && - organization_id == o.organization_id && - external_organization_id == o.external_organization_id && - reference_number == o.reference_number && - key_id == o.key_id && - key == o.key && - status == o.status && - expiration_date == o.expiration_date && - message == o.message && - error_information == o.error_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 - [organization_id, external_organization_id, reference_number, key_id, key, status, expiration_date, message, error_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/kmsv2keysasym_key_information.rb b/lib/cybersource_rest_client/models/kmsv2keysasym_key_information.rb deleted file mode 100644 index ff479f6a..00000000 --- a/lib/cybersource_rest_client/models/kmsv2keysasym_key_information.rb +++ /dev/null @@ -1,223 +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 - # key information - class Kmsv2keysasymKeyInformation - # Merchant Id - attr_accessor :organization_id - - # Reference number is a unique identifier provided by the client along with the organization Id. This is an optional field provided solely for the client's convenience. If client specifies value for this field in the request, it is expected to be available in the response. - attr_accessor :reference_number - - # Certificate Signing Request(csr), one needs to use the contents of the csr created for the same organizationId. Please extract string from '\\n' and '-----BEGIN CERTIFICATE REQUEST-----','-----END CERTIFICATE REQUEST-----' - attr_accessor :cert - - # Attribute mapping from ruby-style variable name to JSON key. - def self.attribute_map - { - :'organization_id' => :'organizationId', - :'reference_number' => :'referenceNumber', - :'cert' => :'cert' - } - end - - # Attribute mapping from JSON key to ruby-style variable name. - def self.json_map - { - :'organization_id' => :'organization_id', - :'reference_number' => :'reference_number', - :'cert' => :'cert' - } - end - - # Attribute type mapping. - def self.swagger_types - { - :'organization_id' => :'String', - :'reference_number' => :'String', - :'cert' => :'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?(:'organizationId') - self.organization_id = attributes[:'organizationId'] - end - - if attributes.has_key?(:'referenceNumber') - self.reference_number = attributes[:'referenceNumber'] - end - - if attributes.has_key?(:'cert') - self.cert = attributes[:'cert'] - 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 @organization_id.nil? - invalid_properties.push('invalid value for "organization_id", organization_id cannot be nil.') - end - - if @cert.nil? - invalid_properties.push('invalid value for "cert", cert 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 @organization_id.nil? - return false if @cert.nil? - 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 && - organization_id == o.organization_id && - reference_number == o.reference_number && - cert == o.cert - 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 - [organization_id, reference_number, cert].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/kmsv2keyssym_client_reference_information.rb b/lib/cybersource_rest_client/models/kmsv2keyssym_client_reference_information.rb deleted file mode 100644 index 717665b8..00000000 --- a/lib/cybersource_rest_client/models/kmsv2keyssym_client_reference_information.rb +++ /dev/null @@ -1,217 +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 Kmsv2keyssymClientReferenceInformation - # Client-generated order reference or tracking number. CyberSource recommends that you send a unique value. - attr_accessor :code - - # Brief description of the order or any comment you wish to add to the order. - attr_accessor :comments - - attr_accessor :partner - - # Attribute mapping from ruby-style variable name to JSON key. - def self.attribute_map - { - :'code' => :'code', - :'comments' => :'comments', - :'partner' => :'partner' - } - end - - # Attribute mapping from JSON key to ruby-style variable name. - def self.json_map - { - :'code' => :'code', - :'comments' => :'comments', - :'partner' => :'partner' - } - end - - # Attribute type mapping. - def self.swagger_types - { - :'code' => :'String', - :'comments' => :'String', - :'partner' => :'Riskv1decisionsClientReferenceInformationPartner' - } - 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 - 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 && - comments == o.comments && - partner == o.partner - 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].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/kmsv2keyssym_key_information.rb b/lib/cybersource_rest_client/models/kmsv2keyssym_key_information.rb deleted file mode 100644 index ad766ad4..00000000 --- a/lib/cybersource_rest_client/models/kmsv2keyssym_key_information.rb +++ /dev/null @@ -1,207 +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 - # key information - class Kmsv2keyssymKeyInformation - # Merchant Id - attr_accessor :organization_id - - # Reference number is a unique identifier provided by the client along with the organization Id. This is an optional field provided solely for the client's convenience. If client specifies value for this field in the request, it is expected to be available in the response. - attr_accessor :reference_number - - # Attribute mapping from ruby-style variable name to JSON key. - def self.attribute_map - { - :'organization_id' => :'organizationId', - :'reference_number' => :'referenceNumber' - } - end - - # Attribute mapping from JSON key to ruby-style variable name. - def self.json_map - { - :'organization_id' => :'organization_id', - :'reference_number' => :'reference_number' - } - end - - # Attribute type mapping. - def self.swagger_types - { - :'organization_id' => :'String', - :'reference_number' => :'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?(:'organizationId') - self.organization_id = attributes[:'organizationId'] - end - - if attributes.has_key?(:'referenceNumber') - self.reference_number = attributes[:'referenceNumber'] - 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 @organization_id.nil? - invalid_properties.push('invalid value for "organization_id", organization_id 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 @organization_id.nil? - 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 && - organization_id == o.organization_id && - reference_number == o.reference_number - 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 - [organization_id, reference_number].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/kmsv2keyssymdeletes_key_information.rb b/lib/cybersource_rest_client/models/kmsv2keyssymdeletes_key_information.rb deleted file mode 100644 index c12f4e3d..00000000 --- a/lib/cybersource_rest_client/models/kmsv2keyssymdeletes_key_information.rb +++ /dev/null @@ -1,223 +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 - # key information - class Kmsv2keyssymdeletesKeyInformation - # Merchant Id - attr_accessor :organization_id - - # Reference number is a unique identifier provided by the client along with the organization Id. This is an optional field provided solely for the client's convenience. If client specifies value for this field in the request, it is expected to be available in the response. - attr_accessor :reference_number - - # Key Serial Number - attr_accessor :key_id - - # Attribute mapping from ruby-style variable name to JSON key. - def self.attribute_map - { - :'organization_id' => :'organizationId', - :'reference_number' => :'referenceNumber', - :'key_id' => :'keyId' - } - end - - # Attribute mapping from JSON key to ruby-style variable name. - def self.json_map - { - :'organization_id' => :'organization_id', - :'reference_number' => :'reference_number', - :'key_id' => :'key_id' - } - end - - # Attribute type mapping. - def self.swagger_types - { - :'organization_id' => :'String', - :'reference_number' => :'String', - :'key_id' => :'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?(:'organizationId') - self.organization_id = attributes[:'organizationId'] - end - - if attributes.has_key?(:'referenceNumber') - self.reference_number = attributes[:'referenceNumber'] - end - - if attributes.has_key?(:'keyId') - self.key_id = attributes[:'keyId'] - 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 @organization_id.nil? - invalid_properties.push('invalid value for "organization_id", organization_id cannot be nil.') - end - - if @key_id.nil? - invalid_properties.push('invalid value for "key_id", key_id 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 @organization_id.nil? - return false if @key_id.nil? - 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 && - organization_id == o.organization_id && - reference_number == o.reference_number && - key_id == o.key_id - 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 - [organization_id, reference_number, key_id].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/kmsv2keyssymverifi_key_information.rb b/lib/cybersource_rest_client/models/kmsv2keyssymverifi_key_information.rb deleted file mode 100644 index caa1b6bf..00000000 --- a/lib/cybersource_rest_client/models/kmsv2keyssymverifi_key_information.rb +++ /dev/null @@ -1,254 +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 - # key information - class Kmsv2keyssymverifiKeyInformation - # Merchant Id - attr_accessor :organization_id - - # Reference number is a unique identifier provided by the client along with the organization Id. This is an optional field provided solely for the client's convenience. If client specifies value for this field in the request, it is expected to be available in the response. - attr_accessor :reference_number - - # Algorithm for message signature authentication - attr_accessor :digest_algorithm - - class EnumAttributeValidator - attr_reader :datatype - attr_reader :allowable_values - - def initialize(datatype, allowable_values) - @allowable_values = allowable_values.map do |value| - case datatype.to_s - when /Integer/i - value.to_i - when /Float/i - value.to_f - else - value - end - end - end - - def valid?(value) - !value || allowable_values.include?(value) - end - end - - # Attribute mapping from ruby-style variable name to JSON key. - def self.attribute_map - { - :'organization_id' => :'organizationId', - :'reference_number' => :'referenceNumber', - :'digest_algorithm' => :'digestAlgorithm' - } - end - - # Attribute mapping from JSON key to ruby-style variable name. - def self.json_map - { - :'organization_id' => :'organization_id', - :'reference_number' => :'reference_number', - :'digest_algorithm' => :'digest_algorithm' - } - end - - # Attribute type mapping. - def self.swagger_types - { - :'organization_id' => :'String', - :'reference_number' => :'String', - :'digest_algorithm' => :'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?(:'organizationId') - self.organization_id = attributes[:'organizationId'] - end - - if attributes.has_key?(:'referenceNumber') - self.reference_number = attributes[:'referenceNumber'] - end - - if attributes.has_key?(:'digestAlgorithm') - self.digest_algorithm = attributes[:'digestAlgorithm'] - else - self.digest_algorithm = 'HMACSHA2' - 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 @organization_id.nil? - invalid_properties.push('invalid value for "organization_id", organization_id 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 @organization_id.nil? - digest_algorithm_validator = EnumAttributeValidator.new('String', ['HMACSHA1', 'HMACSHA2']) - return false unless digest_algorithm_validator.valid?(@digest_algorithm) - true - end - - # Custom attribute writer method checking allowed values (enum). - # @param [Object] digest_algorithm Object to be assigned - def digest_algorithm=(digest_algorithm) - validator = EnumAttributeValidator.new('String', ['HMACSHA1', 'HMACSHA2']) - unless validator.valid?(digest_algorithm) - fail ArgumentError, 'invalid value for "digest_algorithm", must be one of #{validator.allowable_values}.' - end - @digest_algorithm = digest_algorithm - 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 && - organization_id == o.organization_id && - reference_number == o.reference_number && - digest_algorithm == o.digest_algorithm - 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 - [organization_id, reference_number, digest_algorithm].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/riskv1authentications_payment_information_card.rb b/lib/cybersource_rest_client/models/riskv1authentications_payment_information_card.rb deleted file mode 100644 index d24a5ba6..00000000 --- a/lib/cybersource_rest_client/models/riskv1authentications_payment_information_card.rb +++ /dev/null @@ -1,290 +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 Riskv1authenticationsPaymentInformationCard - # description: The BIN is the first six digits of the card's Primary Account Number (PAN). - attr_accessor :bin - - # Three-digit value that indicates the card type. **IMPORTANT** It is strongly recommended that you include the card type field in request messages even if it is optional for your processor and card type. Omitting the card type can cause the transaction to be processed with the wrong card type. Possible values: - `001`: Visa. For card-present transactions on all processors except SIX, the Visa Electron card type is processed the same way that the Visa debit card is processed. Use card type value `001` for Visa Electron. - `002`: Mastercard, Eurocard[^1], which is a European regional brand of Mastercard. - `003`: American Express - `004`: Discover - `005`: Diners Club - `006`: Carte Blanche[^1] - `007`: JCB[^1] - `014`: Enroute[^1] - `021`: JAL[^1] - `024`: Maestro (UK Domestic)[^1] - `031`: Delta[^1]: Use this value only for Ingenico ePayments. For other processors, use `001` for all Visa card types. - `033`: Visa Electron[^1]. Use this value only for Ingenico ePayments and SIX. For other processors, use `001` for all Visa card types. - `034`: Dankort[^1] - `036`: Cartes Bancaires[^1,4] - `037`: Carta Si[^1] - `039`: Encoded account number[^1] - `040`: UATP[^1] - `042`: Maestro (International)[^1] - `050`: Hipercard[^2,3] - `051`: Aura - `054`: Elo[^3] - `062`: China UnionPay - '070': EFTPOS [^1]: For this card type, you must include the `paymentInformation.card.type` or `paymentInformation.tokenizedCard.type` field in your request for an authorization or a stand-alone credit. [^2]: For this card type on Cielo 3.0, you must include the `paymentInformation.card.type` or `paymentInformation.tokenizedCard.type` field in a request for an authorization or a stand-alone credit. This card type is not supported on Cielo 1.5. [^3]: For this card type on Getnet and Rede, you must include the `paymentInformation.card.type` or `paymentInformation.tokenizedCard.type` field in a request for an authorization or a stand-alone credit. [^4]: For this card type, you must include the `paymentInformation.card.type` in your request for any payer authentication services. #### Used by **Authorization** Required for Carte Blanche and JCB. Optional for all other card types. #### Card Present reply This field is included in the reply message when the client software that is installed on the POS terminal uses the token management service (TMS) to retrieve tokenized payment details. You must contact customer support to have your account enabled to receive these fields in the credit reply message. Returned by the Credit service. This reply field is only supported by the following processors: - American Express Direct - Credit Mutuel-CIC - FDC Nashville Global - OmniPay Direct - SIX #### Google Pay transactions For PAN-based Google Pay transactions, this field is returned in the API response. #### GPX This field only supports transactions from the following card types: - Visa - Mastercard - AMEX - Discover - Diners - JCB - Union Pay International - attr_accessor :type - - # Two-digit month in which the payment card expires. Format: `MM`. Valid values: `01` through `12`. Leading 0 is required. #### Barclays and Streamline For Maestro (UK Domestic) and Maestro (International) cards on Barclays and Streamline, this must be a valid value (`01` through `12`) but is not required to be a valid expiration date. In other words, an expiration date that is in the past does not cause CyberSource to reject your request. However, an invalid expiration date might cause the issuer to reject your request. #### Encoded Account Numbers For encoded account numbers (_type_=039), if there is no expiration date on the card, use `12`. #### FDMS Nashville Required field. #### All other processors Required if `pointOfSaleInformation.entryMode=keyed`. However, this field is optional if your account is configured for relaxed requirements for address data and expiration date. **Important** It is your responsibility to determine whether a field is required for the transaction you are requesting. #### Google Pay transactions For PAN-based Google Pay transactions, this field is returned in the API response. - attr_accessor :expiration_month - - # Four-digit year in which the payment card expires. Format: `YYYY`. #### Barclays and Streamline For Maestro (UK Domestic) and Maestro (International) cards on Barclays and Streamline, this must be a valid value (`1900` through `3000`) but is not required to be a valid expiration date. In other words, an expiration date that is in the past does not cause CyberSource to reject your request. However, an invalid expiration date might cause the issuer to reject your request. #### Encoded Account Numbers For encoded account numbers (**_type_**`=039`), if there is no expiration date on the card, use `2021`. #### FDMS Nashville Required field. #### FDC Nashville Global and FDMS South You can send in 2 digits or 4 digits. If you send in 2 digits, they must be the last 2 digits of the year. #### All other processors Required if `pointOfSaleInformation.entryMode=keyed`. However, this field is optional if your account is configured for relaxed requirements for address data and expiration date. **Important** It is your responsibility to determine whether a field is required for the transaction you are requesting. #### Google Pay transactions For PAN-based Google Pay transactions, this field is returned in the API response. - attr_accessor :expiration_year - - # The customer's payment card number, also known as the Primary Account Number (PAN). You can also use this field for encoded account numbers. #### FDMS Nashville Required. String (19) #### GPX Required if `pointOfSaleInformation.entryMode=keyed`. However, this field is optional if your account is configured for relaxed requirements for address data and expiration date. **Important** It is your responsibility to determine whether a field is required for the transaction you are requesting. #### All other processors Required if `pointOfSaleInformation.entryMode=keyed`. However, this field is optional if your account is configured for relaxed requirements for address data and expiration date. **Important** It is your responsibility to determine whether a field is required for the transaction you are requesting. - attr_accessor :number - - # Attribute mapping from ruby-style variable name to JSON key. - def self.attribute_map - { - :'bin' => :'bin', - :'type' => :'type', - :'expiration_month' => :'expirationMonth', - :'expiration_year' => :'expirationYear', - :'number' => :'number' - } - end - - # Attribute mapping from JSON key to ruby-style variable name. - def self.json_map - { - :'bin' => :'bin', - :'type' => :'type', - :'expiration_month' => :'expiration_month', - :'expiration_year' => :'expiration_year', - :'number' => :'number' - } - end - - # Attribute type mapping. - def self.swagger_types - { - :'bin' => :'String', - :'type' => :'String', - :'expiration_month' => :'String', - :'expiration_year' => :'String', - :'number' => :'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?(:'bin') - self.bin = attributes[:'bin'] - end - - if attributes.has_key?(:'type') - self.type = attributes[:'type'] - end - - if attributes.has_key?(:'expirationMonth') - self.expiration_month = attributes[:'expirationMonth'] - end - - if attributes.has_key?(:'expirationYear') - self.expiration_year = attributes[:'expirationYear'] - end - - if attributes.has_key?(:'number') - self.number = attributes[:'number'] - 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 @type.nil? - invalid_properties.push('invalid value for "type", type cannot be nil.') - end - - if @expiration_month.nil? - invalid_properties.push('invalid value for "expiration_month", expiration_month cannot be nil.') - end - - if @expiration_year.nil? - invalid_properties.push('invalid value for "expiration_year", expiration_year cannot be nil.') - end - - if @number.nil? - invalid_properties.push('invalid value for "number", number 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 @type.nil? - return false if @expiration_month.nil? - return false if @expiration_year.nil? - return false if @number.nil? - true - end - - # Custom attribute writer method with validation - # @param [Object] bin Value to be assigned - def bin=(bin) - @bin = bin - end - - # Custom attribute writer method with validation - # @param [Object] expiration_month Value to be assigned - def expiration_month=(expiration_month) - #if expiration_month.nil? - #fail ArgumentError, 'expiration_month cannot be nil' - #end - - @expiration_month = expiration_month - end - - # Custom attribute writer method with validation - # @param [Object] expiration_year Value to be assigned - def expiration_year=(expiration_year) - #if expiration_year.nil? - #fail ArgumentError, 'expiration_year cannot be nil' - #end - - @expiration_year = expiration_year - end - - # Custom attribute writer method with validation - # @param [Object] number Value to be assigned - def number=(number) - #if number.nil? - #fail ArgumentError, 'number cannot be nil' - #end - - @number = number - 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 && - bin == o.bin && - type == o.type && - expiration_month == o.expiration_month && - expiration_year == o.expiration_year && - number == o.number - 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 - [bin, type, expiration_month, expiration_year, number].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_asym_keys_request.rb b/lib/cybersource_rest_client/models/update_asym_keys_request.rb deleted file mode 100644 index 8f5fb459..00000000 --- a/lib/cybersource_rest_client/models/update_asym_keys_request.rb +++ /dev/null @@ -1,211 +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 UpdateAsymKeysRequest - # Status can be active/inactive - attr_accessor :status - - # Organization Id - attr_accessor :organization_id - - # Attribute mapping from ruby-style variable name to JSON key. - def self.attribute_map - { - :'status' => :'status', - :'organization_id' => :'organizationId' - } - end - - # Attribute mapping from JSON key to ruby-style variable name. - def self.json_map - { - :'status' => :'status', - :'organization_id' => :'organization_id' - } - end - - # Attribute type mapping. - def self.swagger_types - { - :'status' => :'String', - :'organization_id' => :'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?(:'status') - self.status = attributes[:'status'] - end - - if attributes.has_key?(:'organizationId') - self.organization_id = attributes[:'organizationId'] - 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 @status.nil? - invalid_properties.push('invalid value for "status", status cannot be nil.') - end - - if @organization_id.nil? - invalid_properties.push('invalid value for "organization_id", organization_id 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 @status.nil? - return false if @organization_id.nil? - 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 && - status == o.status && - organization_id == o.organization_id - 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 - [status, organization_id].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_password_keys_request.rb b/lib/cybersource_rest_client/models/update_password_keys_request.rb deleted file mode 100644 index da2d0499..00000000 --- a/lib/cybersource_rest_client/models/update_password_keys_request.rb +++ /dev/null @@ -1,211 +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 UpdatePasswordKeysRequest - # Status can be active/inactive - attr_accessor :status - - # Organization Id - attr_accessor :organization_id - - # Attribute mapping from ruby-style variable name to JSON key. - def self.attribute_map - { - :'status' => :'status', - :'organization_id' => :'organizationId' - } - end - - # Attribute mapping from JSON key to ruby-style variable name. - def self.json_map - { - :'status' => :'status', - :'organization_id' => :'organization_id' - } - end - - # Attribute type mapping. - def self.swagger_types - { - :'status' => :'String', - :'organization_id' => :'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?(:'status') - self.status = attributes[:'status'] - end - - if attributes.has_key?(:'organizationId') - self.organization_id = attributes[:'organizationId'] - 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 @status.nil? - invalid_properties.push('invalid value for "status", status cannot be nil.') - end - - if @organization_id.nil? - invalid_properties.push('invalid value for "organization_id", organization_id 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 @status.nil? - return false if @organization_id.nil? - 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 && - status == o.status && - organization_id == o.organization_id - 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 - [status, organization_id].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_pgp_keys_request.rb b/lib/cybersource_rest_client/models/update_pgp_keys_request.rb deleted file mode 100644 index 1bc47172..00000000 --- a/lib/cybersource_rest_client/models/update_pgp_keys_request.rb +++ /dev/null @@ -1,211 +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 UpdatePGPKeysRequest - # Status can be active/inactive - attr_accessor :status - - # Organization Id - attr_accessor :organization_id - - # Attribute mapping from ruby-style variable name to JSON key. - def self.attribute_map - { - :'status' => :'status', - :'organization_id' => :'organizationId' - } - end - - # Attribute mapping from JSON key to ruby-style variable name. - def self.json_map - { - :'status' => :'status', - :'organization_id' => :'organization_id' - } - end - - # Attribute type mapping. - def self.swagger_types - { - :'status' => :'String', - :'organization_id' => :'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?(:'status') - self.status = attributes[:'status'] - end - - if attributes.has_key?(:'organizationId') - self.organization_id = attributes[:'organizationId'] - 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 @status.nil? - invalid_properties.push('invalid value for "status", status cannot be nil.') - end - - if @organization_id.nil? - invalid_properties.push('invalid value for "organization_id", organization_id 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 @status.nil? - return false if @organization_id.nil? - 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 && - status == o.status && - organization_id == o.organization_id - 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 - [status, organization_id].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_pgp_keys_request_1.rb b/lib/cybersource_rest_client/models/update_pgp_keys_request_1.rb deleted file mode 100644 index fe4a75ea..00000000 --- a/lib/cybersource_rest_client/models/update_pgp_keys_request_1.rb +++ /dev/null @@ -1,234 +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 UpdatePGPKeysRequest1 - # Organization Id - attr_accessor :organization_id - - # Only inactive status is applicable for SCMP_API. Only status as inactive needs to be provided to deactivate scmp. - attr_accessor :status - - # Expiration Date. Required field to update the SCMP_API key - attr_accessor :expiration_date - - # Version. Required field to update the SCMP_API key - attr_accessor :version - - # Comment. Optional field. Can be provided along with Expiration Date and Version - attr_accessor :comment - - # Attribute mapping from ruby-style variable name to JSON key. - def self.attribute_map - { - :'organization_id' => :'organizationId', - :'status' => :'status', - :'expiration_date' => :'expirationDate', - :'version' => :'version', - :'comment' => :'comment' - } - end - - # Attribute mapping from JSON key to ruby-style variable name. - def self.json_map - { - :'organization_id' => :'organization_id', - :'status' => :'status', - :'expiration_date' => :'expiration_date', - :'version' => :'version', - :'comment' => :'comment' - } - end - - # Attribute type mapping. - def self.swagger_types - { - :'organization_id' => :'String', - :'status' => :'String', - :'expiration_date' => :'String', - :'version' => :'String', - :'comment' => :'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?(:'organizationId') - self.organization_id = attributes[:'organizationId'] - end - - if attributes.has_key?(:'status') - self.status = attributes[:'status'] - end - - if attributes.has_key?(:'expirationDate') - self.expiration_date = attributes[:'expirationDate'] - end - - if attributes.has_key?(:'version') - self.version = attributes[:'version'] - end - - if attributes.has_key?(:'comment') - self.comment = attributes[:'comment'] - 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 && - organization_id == o.organization_id && - status == o.status && - expiration_date == o.expiration_date && - version == o.version && - comment == o.comment - 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 - [organization_id, status, expiration_date, version, comment].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/spec/api/asymmetric_key_management_api_spec.rb b/spec/api/asymmetric_key_management_api_spec.rb deleted file mode 100644 index 34629dea..00000000 --- a/spec/api/asymmetric_key_management_api_spec.rb +++ /dev/null @@ -1,83 +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' - -# Unit tests for CyberSource::AsymmetricKeyManagementApi -# Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen) -# Please update as you see appropriate -describe 'AsymmetricKeyManagementApi' do - before do - # run before each test - @instance = CyberSource::AsymmetricKeyManagementApi.new - end - - after do - # run after each test - end - - describe 'test an instance of AsymmetricKeyManagementApi' do - it 'should create an instance of AsymmetricKeyManagementApi' do - expect(@instance).to be_instance_of(CyberSource::AsymmetricKeyManagementApi) - end - end - - # unit tests for create_p12_keys - # Create one or more PKCS12 keys - # 'Create one or more PKCS12 keys' - # @param create_p12_keys_request - # @param [Hash] opts the optional parameters - # @return [KmsV2KeysAsymPost201Response] - describe 'create_p12_keys 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 delete_bulk_p12_keys - # Delete one or more PKCS12 keys - # 'Delete one or more PKCS12 keys' - # @param delete_bulk_p12_keys_request - # @param [Hash] opts the optional parameters - # @return [KmsV2KeysAsymDeletesPost200Response] - describe 'delete_bulk_p12_keys 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 get_p12_key_details - # Retrieves PKCS12 key details - # Retrieves keys details by providing the key id. - # @param key_id Key ID. - # @param [Hash] opts the optional parameters - # @return [KmsV2KeysAsymGet200Response] - describe 'get_p12_key_details 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 update_asym_key - # Activate or De-activate Asymmetric Key - # Activate or De-activate Asymmetric Key - # @param key_id Key ID. - # @param update_asym_keys_request - # @param [Hash] opts the optional parameters - # @return [Object] - describe 'update_asym_key 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/key_management_api_spec.rb b/spec/api/key_management_api_spec.rb deleted file mode 100644 index 938b2020..00000000 --- a/spec/api/key_management_api_spec.rb +++ /dev/null @@ -1,53 +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' - -# Unit tests for CyberSource::KeyManagementApi -# Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen) -# Please update as you see appropriate -describe 'KeyManagementApi' do - before do - # run before each test - @instance = CyberSource::KeyManagementApi.new - end - - after do - # run after each test - end - - describe 'test an instance of KeyManagementApi' do - it 'should create an instance of KeyManagementApi' do - expect(@instance).to be_instance_of(CyberSource::KeyManagementApi) - end - end - - # unit tests for search_keys - # Search Keys - # Search one or more Keys - # @param [Hash] opts the optional parameters - # @option opts [Integer] :offset This allows you to specify the page offset from the resulting list resultset you want the records to be returned - # @option opts [Integer] :limit This allows you to specify the total number of records to be returned off the resulting list resultset - # @option opts [String] :sort This allows you to specify a comma separated list of fields in the order which the resulting list resultset must be sorted. - # @option opts [Array] :organization_ids List of Orgaization Ids to search. The maximum size of the organization Ids list is 1. The maximum length of Organization Id is 30. - # @option opts [Array] :key_ids List of Key Ids to search. The maximum size of the Key Ids list is 1 - # @option opts [Array] :key_types Key Type, Possible values - certificate, password, pgp and scmp_api. When Key Type is provided atleast one more filter needs to be provided - # @option opts [DateTime] :expiration_start_date Expiry Filter Start Date. When Expiration Date filter is provided, atleast one more filter needs to be provided - # @option opts [DateTime] :expiration_end_date Expiry Filter End Date. When Expiration Date filter is provided, atleast one more filter needs to be provided - # @return [InlineResponse2001] - describe 'search_keys 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/key_management_password_api_spec.rb b/spec/api/key_management_password_api_spec.rb deleted file mode 100644 index d229ab6a..00000000 --- a/spec/api/key_management_password_api_spec.rb +++ /dev/null @@ -1,47 +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' - -# Unit tests for CyberSource::KeyManagementPasswordApi -# Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen) -# Please update as you see appropriate -describe 'KeyManagementPasswordApi' do - before do - # run before each test - @instance = CyberSource::KeyManagementPasswordApi.new - end - - after do - # run after each test - end - - describe 'test an instance of KeyManagementPasswordApi' do - it 'should create an instance of KeyManagementPasswordApi' do - expect(@instance).to be_instance_of(CyberSource::KeyManagementPasswordApi) - end - end - - # unit tests for update_password - # Activate or De-activate Password - # Activate or De-activate key of type password - # @param key_id Key ID. - # @param update_password_keys_request - # @param [Hash] opts the optional parameters - # @return [Object] - describe 'update_password 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/key_management_pgp_api_spec.rb b/spec/api/key_management_pgp_api_spec.rb deleted file mode 100644 index 2045a3bc..00000000 --- a/spec/api/key_management_pgp_api_spec.rb +++ /dev/null @@ -1,47 +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' - -# Unit tests for CyberSource::KeyManagementPgpApi -# Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen) -# Please update as you see appropriate -describe 'KeyManagementPgpApi' do - before do - # run before each test - @instance = CyberSource::KeyManagementPgpApi.new - end - - after do - # run after each test - end - - describe 'test an instance of KeyManagementPgpApi' do - it 'should create an instance of KeyManagementPgpApi' do - expect(@instance).to be_instance_of(CyberSource::KeyManagementPgpApi) - end - end - - # unit tests for update_pgp - # Activate or De-activate PGP Key - # Activate or De-activate PGP Key - # @param key_id Key ID. - # @param update_pgp_keys_request - # @param [Hash] opts the optional parameters - # @return [Object] - describe 'update_pgp 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/key_management_scmp_api_spec.rb b/spec/api/key_management_scmp_api_spec.rb deleted file mode 100644 index b2ddd877..00000000 --- a/spec/api/key_management_scmp_api_spec.rb +++ /dev/null @@ -1,47 +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' - -# Unit tests for CyberSource::KeyManagementScmpApi -# Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen) -# Please update as you see appropriate -describe 'KeyManagementScmpApi' do - before do - # run before each test - @instance = CyberSource::KeyManagementScmpApi.new - end - - after do - # run after each test - end - - describe 'test an instance of KeyManagementScmpApi' do - it 'should create an instance of KeyManagementScmpApi' do - expect(@instance).to be_instance_of(CyberSource::KeyManagementScmpApi) - end - end - - # unit tests for update_scmp - # Update or Deactivate - # Update or Deactivate scmp api Key - # @param key_id Key ID. - # @param update_pgp_keys_request - # @param [Hash] opts the optional parameters - # @return [Object] - describe 'update_scmp 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/symmetric_key_management_api_spec.rb b/spec/api/symmetric_key_management_api_spec.rb deleted file mode 100644 index 533389cd..00000000 --- a/spec/api/symmetric_key_management_api_spec.rb +++ /dev/null @@ -1,83 +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' - -# Unit tests for CyberSource::SymmetricKeyManagementApi -# Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen) -# Please update as you see appropriate -describe 'SymmetricKeyManagementApi' do - before do - # run before each test - @instance = CyberSource::SymmetricKeyManagementApi.new - end - - after do - # run after each test - end - - describe 'test an instance of SymmetricKeyManagementApi' do - it 'should create an instance of SymmetricKeyManagementApi' do - expect(@instance).to be_instance_of(CyberSource::SymmetricKeyManagementApi) - end - end - - # unit tests for create_v2_shared_secret_keys - # Create Shared-Secret Keys - # Create one or more Shared-Secret Keys - # @param create_shared_secret_keys_request - # @param [Hash] opts the optional parameters - # @return [KmsV2KeysSymPost201Response] - describe 'create_v2_shared_secret_keys 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 create_v2_shared_secret_keys_verifi - # Create Shared-Secret Keys as per verifi spec - # Create one or more Shared-Secret Keys as per Verifi spec with 32 chars, store digest algo during key generation. - # @param v_ic_domain domain - # @param create_shared_secret_keys_verifi_request - # @param [Hash] opts the optional parameters - # @return [KmsV2KeysSymPost201Response] - describe 'create_v2_shared_secret_keys_verifi 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 delete_bulk_symmetric_keys - # Delete one or more Symmetric keys - # 'Delete one or more Symmetric keys' - # @param delete_bulk_symmetric_keys_request - # @param [Hash] opts the optional parameters - # @return [KmsV2KeysSymDeletesPost200Response] - describe 'delete_bulk_symmetric_keys 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 get_key_details - # Retrieves shared secret key details - # Retrieves keys details by providing the key id. - # @param key_id Key ID. - # @param [Hash] opts the optional parameters - # @return [KmsV2KeysSymGet200Response] - describe 'get_key_details 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/models/create_p12_keys_request_spec.rb b/spec/models/create_p12_keys_request_spec.rb deleted file mode 100644 index 883c2acb..00000000 --- a/spec/models/create_p12_keys_request_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::CreateP12KeysRequest -# Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen) -# Please update as you see appropriate -describe 'CreateP12KeysRequest' do - before do - # run before each test - @instance = CyberSource::CreateP12KeysRequest.new - end - - after do - # run after each test - end - - describe 'test an instance of CreateP12KeysRequest' do - it 'should create an instance of CreateP12KeysRequest' do - expect(@instance).to be_instance_of(CyberSource::CreateP12KeysRequest) - 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 "key_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/create_shared_secret_keys_request_spec.rb b/spec/models/create_shared_secret_keys_request_spec.rb deleted file mode 100644 index d7893d93..00000000 --- a/spec/models/create_shared_secret_keys_request_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::CreateSharedSecretKeysRequest -# Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen) -# Please update as you see appropriate -describe 'CreateSharedSecretKeysRequest' do - before do - # run before each test - @instance = CyberSource::CreateSharedSecretKeysRequest.new - end - - after do - # run after each test - end - - describe 'test an instance of CreateSharedSecretKeysRequest' do - it 'should create an instance of CreateSharedSecretKeysRequest' do - expect(@instance).to be_instance_of(CyberSource::CreateSharedSecretKeysRequest) - 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 "key_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/create_shared_secret_keys_verifi_request_spec.rb b/spec/models/create_shared_secret_keys_verifi_request_spec.rb deleted file mode 100644 index c045f460..00000000 --- a/spec/models/create_shared_secret_keys_verifi_request_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::CreateSharedSecretKeysVerifiRequest -# Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen) -# Please update as you see appropriate -describe 'CreateSharedSecretKeysVerifiRequest' do - before do - # run before each test - @instance = CyberSource::CreateSharedSecretKeysVerifiRequest.new - end - - after do - # run after each test - end - - describe 'test an instance of CreateSharedSecretKeysVerifiRequest' do - it 'should create an instance of CreateSharedSecretKeysVerifiRequest' do - expect(@instance).to be_instance_of(CyberSource::CreateSharedSecretKeysVerifiRequest) - 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 "key_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/delete_bulk_p12_keys_request_spec.rb b/spec/models/delete_bulk_p12_keys_request_spec.rb deleted file mode 100644 index 39751f3b..00000000 --- a/spec/models/delete_bulk_p12_keys_request_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::DeleteBulkP12KeysRequest -# Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen) -# Please update as you see appropriate -describe 'DeleteBulkP12KeysRequest' do - before do - # run before each test - @instance = CyberSource::DeleteBulkP12KeysRequest.new - end - - after do - # run after each test - end - - describe 'test an instance of DeleteBulkP12KeysRequest' do - it 'should create an instance of DeleteBulkP12KeysRequest' do - expect(@instance).to be_instance_of(CyberSource::DeleteBulkP12KeysRequest) - 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 "key_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/delete_bulk_symmetric_keys_request_spec.rb b/spec/models/delete_bulk_symmetric_keys_request_spec.rb deleted file mode 100644 index 52a0528e..00000000 --- a/spec/models/delete_bulk_symmetric_keys_request_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::DeleteBulkSymmetricKeysRequest -# Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen) -# Please update as you see appropriate -describe 'DeleteBulkSymmetricKeysRequest' do - before do - # run before each test - @instance = CyberSource::DeleteBulkSymmetricKeysRequest.new - end - - after do - # run after each test - end - - describe 'test an instance of DeleteBulkSymmetricKeysRequest' do - it 'should create an instance of DeleteBulkSymmetricKeysRequest' do - expect(@instance).to be_instance_of(CyberSource::DeleteBulkSymmetricKeysRequest) - 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 "key_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_1_keys_spec.rb b/spec/models/inline_response_200_1_keys_spec.rb deleted file mode 100644 index f4859cff..00000000 --- a/spec/models/inline_response_200_1_keys_spec.rb +++ /dev/null @@ -1,112 +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::InlineResponse2001Keys -# Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen) -# Please update as you see appropriate -describe 'InlineResponse2001Keys' do - before do - # run before each test - @instance = CyberSource::InlineResponse2001Keys.new - end - - after do - # run after each test - end - - describe 'test an instance of InlineResponse2001Keys' do - it 'should create an instance of InlineResponse2001Keys' do - expect(@instance).to be_instance_of(CyberSource::InlineResponse2001Keys) - end - end - 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 "merchant_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 "key_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 "key_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 - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "expiration_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 "date_added"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "added_by"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "date_modified"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "modified_by"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - 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 "serial_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 "issuer_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/inline_response_200_2_integration_information_spec.rb b/spec/models/inline_response_200_2_integration_information_spec.rb deleted file mode 100644 index 3e3a2865..00000000 --- a/spec/models/inline_response_200_2_integration_information_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::InlineResponse2002IntegrationInformation -# Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen) -# Please update as you see appropriate -describe 'InlineResponse2002IntegrationInformation' do - before do - # run before each test - @instance = CyberSource::InlineResponse2002IntegrationInformation.new - end - - after do - # run after each test - end - - describe 'test an instance of InlineResponse2002IntegrationInformation' do - it 'should create an instance of InlineResponse2002IntegrationInformation' do - expect(@instance).to be_instance_of(CyberSource::InlineResponse2002IntegrationInformation) - end - end - describe 'test attribute "oauth2"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "tenant_configurations"' 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_2_integration_information_tenant_configurations_spec.rb b/spec/models/inline_response_200_2_integration_information_tenant_configurations_spec.rb deleted file mode 100644 index 4ad27f8e..00000000 --- a/spec/models/inline_response_200_2_integration_information_tenant_configurations_spec.rb +++ /dev/null @@ -1,68 +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::InlineResponse2002IntegrationInformationTenantConfigurations -# Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen) -# Please update as you see appropriate -describe 'InlineResponse2002IntegrationInformationTenantConfigurations' do - before do - # run before each test - @instance = CyberSource::InlineResponse2002IntegrationInformationTenantConfigurations.new - end - - after do - # run after each test - end - - describe 'test an instance of InlineResponse2002IntegrationInformationTenantConfigurations' do - it 'should create an instance of InlineResponse2002IntegrationInformationTenantConfigurations' do - expect(@instance).to be_instance_of(CyberSource::InlineResponse2002IntegrationInformationTenantConfigurations) - 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 - - describe 'test attribute "tenant_configuration_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 "status"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - # validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["LIVE", "INACTIVE", "TEST"]) - # validator.allowable_values.each do |value| - # expect { @instance.status = value }.not_to raise_error - # end - 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 "tenant_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_6__embedded__links_reports_spec.rb b/spec/models/inline_response_200_6__embedded__links_reports_spec.rb deleted file mode 100644 index cbc35315..00000000 --- a/spec/models/inline_response_200_6__embedded__links_reports_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::InlineResponse2006EmbeddedLinksReports -# Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen) -# Please update as you see appropriate -describe 'InlineResponse2006EmbeddedLinksReports' do - before do - # run before each test - @instance = CyberSource::InlineResponse2006EmbeddedLinksReports.new - end - - after do - # run after each test - end - - describe 'test an instance of InlineResponse2006EmbeddedLinksReports' do - it 'should create an instance of InlineResponse2006EmbeddedLinksReports' do - expect(@instance).to be_instance_of(CyberSource::InlineResponse2006EmbeddedLinksReports) - 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/inline_response_200_6__embedded__links_spec.rb b/spec/models/inline_response_200_6__embedded__links_spec.rb deleted file mode 100644 index b52a899e..00000000 --- a/spec/models/inline_response_200_6__embedded__links_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::InlineResponse2006EmbeddedLinks -# Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen) -# Please update as you see appropriate -describe 'InlineResponse2006EmbeddedLinks' do - before do - # run before each test - @instance = CyberSource::InlineResponse2006EmbeddedLinks.new - end - - after do - # run after each test - end - - describe 'test an instance of InlineResponse2006EmbeddedLinks' do - it 'should create an instance of InlineResponse2006EmbeddedLinks' do - expect(@instance).to be_instance_of(CyberSource::InlineResponse2006EmbeddedLinks) - end - end - describe 'test attribute "reports"' 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_6__embedded_batches_spec.rb b/spec/models/inline_response_200_6__embedded_batches_spec.rb deleted file mode 100644 index 746dfe9a..00000000 --- a/spec/models/inline_response_200_6__embedded_batches_spec.rb +++ /dev/null @@ -1,94 +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::InlineResponse2006EmbeddedBatches -# Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen) -# Please update as you see appropriate -describe 'InlineResponse2006EmbeddedBatches' do - before do - # run before each test - @instance = CyberSource::InlineResponse2006EmbeddedBatches.new - end - - after do - # run after each test - end - - describe 'test an instance of InlineResponse2006EmbeddedBatches' do - it 'should create an instance of InlineResponse2006EmbeddedBatches' do - expect(@instance).to be_instance_of(CyberSource::InlineResponse2006EmbeddedBatches) - 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 "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_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 "batch_modified_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 "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 "token_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 "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_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 "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 - -end diff --git a/spec/models/inline_response_200_6__embedded_spec.rb b/spec/models/inline_response_200_6__embedded_spec.rb deleted file mode 100644 index c19464c9..00000000 --- a/spec/models/inline_response_200_6__embedded_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::InlineResponse2006Embedded -# Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen) -# Please update as you see appropriate -describe 'InlineResponse2006Embedded' do - before do - # run before each test - @instance = CyberSource::InlineResponse2006Embedded.new - end - - after do - # run after each test - end - - describe 'test an instance of InlineResponse2006Embedded' do - it 'should create an instance of InlineResponse2006Embedded' do - expect(@instance).to be_instance_of(CyberSource::InlineResponse2006Embedded) - end - end - describe 'test attribute "batches"' 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_6__embedded_totals_spec.rb b/spec/models/inline_response_200_6__embedded_totals_spec.rb deleted file mode 100644 index 399b540a..00000000 --- a/spec/models/inline_response_200_6__embedded_totals_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::InlineResponse2006EmbeddedTotals -# Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen) -# Please update as you see appropriate -describe 'InlineResponse2006EmbeddedTotals' do - before do - # run before each test - @instance = CyberSource::InlineResponse2006EmbeddedTotals.new - end - - after do - # run after each test - end - - describe 'test an instance of InlineResponse2006EmbeddedTotals' do - it 'should create an instance of InlineResponse2006EmbeddedTotals' do - expect(@instance).to be_instance_of(CyberSource::InlineResponse2006EmbeddedTotals) - end - end - describe 'test attribute "accepted_records"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "rejected_records"' 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_records"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "ca_responses"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "ca_responses_omitted"' 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_7__links_report_spec.rb b/spec/models/inline_response_200_7__links_report_spec.rb deleted file mode 100644 index efd50918..00000000 --- a/spec/models/inline_response_200_7__links_report_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::InlineResponse2007LinksReport -# Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen) -# Please update as you see appropriate -describe 'InlineResponse2007LinksReport' do - before do - # run before each test - @instance = CyberSource::InlineResponse2007LinksReport.new - end - - after do - # run after each test - end - - describe 'test an instance of InlineResponse2007LinksReport' do - it 'should create an instance of InlineResponse2007LinksReport' do - expect(@instance).to be_instance_of(CyberSource::InlineResponse2007LinksReport) - 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/inline_response_200_7__links_spec.rb b/spec/models/inline_response_200_7__links_spec.rb deleted file mode 100644 index 8035ea4d..00000000 --- a/spec/models/inline_response_200_7__links_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::InlineResponse2007Links -# Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen) -# Please update as you see appropriate -describe 'InlineResponse2007Links' do - before do - # run before each test - @instance = CyberSource::InlineResponse2007Links.new - end - - after do - # run after each test - end - - describe 'test an instance of InlineResponse2007Links' do - it 'should create an instance of InlineResponse2007Links' do - expect(@instance).to be_instance_of(CyberSource::InlineResponse2007Links) - end - end - 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 "report"' 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_7_billing_spec.rb b/spec/models/inline_response_200_7_billing_spec.rb deleted file mode 100644 index 9e02812e..00000000 --- a/spec/models/inline_response_200_7_billing_spec.rb +++ /dev/null @@ -1,58 +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::InlineResponse2007Billing -# Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen) -# Please update as you see appropriate -describe 'InlineResponse2007Billing' do - before do - # run before each test - @instance = CyberSource::InlineResponse2007Billing.new - end - - after do - # run after each test - end - - describe 'test an instance of InlineResponse2007Billing' do - it 'should create an instance of InlineResponse2007Billing' do - expect(@instance).to be_instance_of(CyberSource::InlineResponse2007Billing) - end - end - describe 'test attribute "nan"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "ned"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "acl"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "cch"' 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_8_records_spec.rb b/spec/models/inline_response_200_8_records_spec.rb deleted file mode 100644 index 257cf347..00000000 --- a/spec/models/inline_response_200_8_records_spec.rb +++ /dev/null @@ -1,52 +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::InlineResponse2008Records -# Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen) -# Please update as you see appropriate -describe 'InlineResponse2008Records' do - before do - # run before each test - @instance = CyberSource::InlineResponse2008Records.new - end - - after do - # run after each test - end - - describe 'test an instance of InlineResponse2008Records' do - it 'should create an instance of InlineResponse2008Records' do - expect(@instance).to be_instance_of(CyberSource::InlineResponse2008Records) - 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 "source_record"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "response_record"' 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_8_response_record_additional_updates_spec.rb b/spec/models/inline_response_200_8_response_record_additional_updates_spec.rb deleted file mode 100644 index 3c5bf14d..00000000 --- a/spec/models/inline_response_200_8_response_record_additional_updates_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::InlineResponse2008ResponseRecordAdditionalUpdates -# Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen) -# Please update as you see appropriate -describe 'InlineResponse2008ResponseRecordAdditionalUpdates' do - before do - # run before each test - @instance = CyberSource::InlineResponse2008ResponseRecordAdditionalUpdates.new - end - - after do - # run after each test - end - - describe 'test an instance of InlineResponse2008ResponseRecordAdditionalUpdates' do - it 'should create an instance of InlineResponse2008ResponseRecordAdditionalUpdates' do - expect(@instance).to be_instance_of(CyberSource::InlineResponse2008ResponseRecordAdditionalUpdates) - end - end - describe 'test attribute "customer_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 "payment_instrument_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 "creator"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - 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 "message"' 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_8_response_record_spec.rb b/spec/models/inline_response_200_8_response_record_spec.rb deleted file mode 100644 index cdaa0671..00000000 --- a/spec/models/inline_response_200_8_response_record_spec.rb +++ /dev/null @@ -1,94 +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::InlineResponse2008ResponseRecord -# Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen) -# Please update as you see appropriate -describe 'InlineResponse2008ResponseRecord' do - before do - # run before each test - @instance = CyberSource::InlineResponse2008ResponseRecord.new - end - - after do - # run after each test - end - - describe 'test an instance of InlineResponse2008ResponseRecord' do - it 'should create an instance of InlineResponse2008ResponseRecord' do - expect(@instance).to be_instance_of(CyberSource::InlineResponse2008ResponseRecord) - end - end - describe 'test attribute "response"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "reason"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "token"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "instrument_identifier_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 "instrument_identifier_created"' 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_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 "card_expiry_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 "card_expiry_year"' 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_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 "additional_updates"' 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_8_source_record_spec.rb b/spec/models/inline_response_200_8_source_record_spec.rb deleted file mode 100644 index 9f92422d..00000000 --- a/spec/models/inline_response_200_8_source_record_spec.rb +++ /dev/null @@ -1,82 +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::InlineResponse2008SourceRecord -# Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen) -# Please update as you see appropriate -describe 'InlineResponse2008SourceRecord' do - before do - # run before each test - @instance = CyberSource::InlineResponse2008SourceRecord.new - end - - after do - # run after each test - end - - describe 'test an instance of InlineResponse2008SourceRecord' do - it 'should create an instance of InlineResponse2008SourceRecord' do - expect(@instance).to be_instance_of(CyberSource::InlineResponse2008SourceRecord) - end - end - describe 'test attribute "token"' 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_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 "payment_instrument_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 "instrument_identifier_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 "card_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 "card_expiry_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 "card_expiry_year"' 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_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/inline_response_200_8_spec.rb b/spec/models/inline_response_200_8_spec.rb deleted file mode 100644 index c75ae3b0..00000000 --- a/spec/models/inline_response_200_8_spec.rb +++ /dev/null @@ -1,94 +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::InlineResponse2008 -# Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen) -# Please update as you see appropriate -describe 'InlineResponse2008' do - before do - # run before each test - @instance = CyberSource::InlineResponse2008.new - end - - after do - # run after each test - end - - describe 'test an instance of InlineResponse2008' do - it 'should create an instance of InlineResponse2008' do - expect(@instance).to be_instance_of(CyberSource::InlineResponse2008) - end - end - 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 "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 "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_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 - end - -end diff --git a/spec/models/inline_response_400_7_details_spec.rb b/spec/models/inline_response_400_7_details_spec.rb deleted file mode 100644 index 4bc925cd..00000000 --- a/spec/models/inline_response_400_7_details_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::InlineResponse4007Details -# Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen) -# Please update as you see appropriate -describe 'InlineResponse4007Details' do - before do - # run before each test - @instance = CyberSource::InlineResponse4007Details.new - end - - after do - # run after each test - end - - describe 'test an instance of InlineResponse4007Details' do - it 'should create an instance of InlineResponse4007Details' do - expect(@instance).to be_instance_of(CyberSource::InlineResponse4007Details) - end - end - describe 'test attribute "field"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "reason"' 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_400_7_spec.rb b/spec/models/inline_response_400_7_spec.rb deleted file mode 100644 index ad64123f..00000000 --- a/spec/models/inline_response_400_7_spec.rb +++ /dev/null @@ -1,68 +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::InlineResponse4007 -# Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen) -# Please update as you see appropriate -describe 'InlineResponse4007' do - before do - # run before each test - @instance = CyberSource::InlineResponse4007.new - end - - after do - # run after each test - end - - describe 'test an instance of InlineResponse4007' do - it 'should create an instance of InlineResponse4007' do - expect(@instance).to be_instance_of(CyberSource::InlineResponse4007) - 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 "reason"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - # validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["INVALID_DATA", "SYSTEM_ERROR", "RESOURCE_NOT_FOUND"]) - # validator.allowable_values.each do |value| - # expect { @instance.reason = value }.not_to raise_error - # end - 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_400_8_details_spec.rb b/spec/models/inline_response_400_8_details_spec.rb deleted file mode 100644 index 7f469e48..00000000 --- a/spec/models/inline_response_400_8_details_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::InlineResponse4008Details -# Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen) -# Please update as you see appropriate -describe 'InlineResponse4008Details' do - before do - # run before each test - @instance = CyberSource::InlineResponse4008Details.new - end - - after do - # run after each test - end - - describe 'test an instance of InlineResponse4008Details' do - it 'should create an instance of InlineResponse4008Details' do - expect(@instance).to be_instance_of(CyberSource::InlineResponse4008Details) - 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 - - 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 - -end diff --git a/spec/models/inline_response_400_8_spec.rb b/spec/models/inline_response_400_8_spec.rb deleted file mode 100644 index 2533ae51..00000000 --- a/spec/models/inline_response_400_8_spec.rb +++ /dev/null @@ -1,68 +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::InlineResponse4008 -# Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen) -# Please update as you see appropriate -describe 'InlineResponse4008' do - before do - # run before each test - @instance = CyberSource::InlineResponse4008.new - end - - after do - # run after each test - end - - describe 'test an instance of InlineResponse4008' do - it 'should create an instance of InlineResponse4008' do - expect(@instance).to be_instance_of(CyberSource::InlineResponse4008) - end - end - describe 'test attribute "correlation_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 "details"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "information_link"' 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 "reason"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - # validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["INVALID_APIKEY", "INVALID_SHIPPING_INPUT_PARAMS", "CAPTURE_CONTEXT_INVALID", "CAPTURE_CONTEXT_EXPIRED", "SDK_XHR_ERROR", "UNIFIEDPAYMENTS_VALIDATION_PARAMS", "UNIFIEDPAYMENTS_VALIDATION_FIELDS", "UNIFIEDPAYMENT_PAYMENT_PARAMITERS", "CREATE_TOKEN_TIMEOUT", "CREATE_TOKEN_XHR_ERROR", "SHOW_LOAD_CONTAINER_SELECTOR", "SHOW_LOAD_INVALID_CONTAINER", "SHOW_TOKEN_TIMEOUT", "SHOW_TOKEN_XHR_ERROR", "SHOW_PAYMENT_TIMEOUT"]) - # validator.allowable_values.each do |value| - # expect { @instance.reason = value }.not_to raise_error - # end - end - end - -end diff --git a/spec/models/inline_response_500_3_spec.rb b/spec/models/inline_response_500_3_spec.rb deleted file mode 100644 index ea9fa2f1..00000000 --- a/spec/models/inline_response_500_3_spec.rb +++ /dev/null @@ -1,62 +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::InlineResponse5003 -# Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen) -# Please update as you see appropriate -describe 'InlineResponse5003' do - before do - # run before each test - @instance = CyberSource::InlineResponse5003.new - end - - after do - # run after each test - end - - describe 'test an instance of InlineResponse5003' do - it 'should create an instance of InlineResponse5003' do - expect(@instance).to be_instance_of(CyberSource::InlineResponse5003) - 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 "reason"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - # validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["SYSTEM_ERROR"]) - # validator.allowable_values.each do |value| - # expect { @instance.reason = value }.not_to raise_error - # end - 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 - -end diff --git a/spec/models/inline_response_502_1_spec.rb b/spec/models/inline_response_502_1_spec.rb deleted file mode 100644 index bb7a4695..00000000 --- a/spec/models/inline_response_502_1_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::InlineResponse5021 -# Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen) -# Please update as you see appropriate -describe 'InlineResponse5021' do - before do - # run before each test - @instance = CyberSource::InlineResponse5021.new - end - - after do - # run after each test - end - - describe 'test an instance of InlineResponse5021' do - it 'should create an instance of InlineResponse5021' do - expect(@instance).to be_instance_of(CyberSource::InlineResponse5021) - 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 "reason"' 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 "status_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/kms_v2_keys_asym_deletes_post200_response_key_information_spec.rb b/spec/models/kms_v2_keys_asym_deletes_post200_response_key_information_spec.rb deleted file mode 100644 index 273997fa..00000000 --- a/spec/models/kms_v2_keys_asym_deletes_post200_response_key_information_spec.rb +++ /dev/null @@ -1,70 +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::KmsV2KeysAsymDeletesPost200ResponseKeyInformation -# Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen) -# Please update as you see appropriate -describe 'KmsV2KeysAsymDeletesPost200ResponseKeyInformation' do - before do - # run before each test - @instance = CyberSource::KmsV2KeysAsymDeletesPost200ResponseKeyInformation.new - end - - after do - # run after each test - end - - describe 'test an instance of KmsV2KeysAsymDeletesPost200ResponseKeyInformation' do - it 'should create an instance of KmsV2KeysAsymDeletesPost200ResponseKeyInformation' do - expect(@instance).to be_instance_of(CyberSource::KmsV2KeysAsymDeletesPost200ResponseKeyInformation) - end - end - 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 "reference_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 "key_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 "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 "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 "error_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/kms_v2_keys_asym_deletes_post200_response_spec.rb b/spec/models/kms_v2_keys_asym_deletes_post200_response_spec.rb deleted file mode 100644 index cf381b27..00000000 --- a/spec/models/kms_v2_keys_asym_deletes_post200_response_spec.rb +++ /dev/null @@ -1,52 +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::KmsV2KeysAsymDeletesPost200Response -# Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen) -# Please update as you see appropriate -describe 'KmsV2KeysAsymDeletesPost200Response' do - before do - # run before each test - @instance = CyberSource::KmsV2KeysAsymDeletesPost200Response.new - end - - after do - # run after each test - end - - describe 'test an instance of KmsV2KeysAsymDeletesPost200Response' do - it 'should create an instance of KmsV2KeysAsymDeletesPost200Response' do - expect(@instance).to be_instance_of(CyberSource::KmsV2KeysAsymDeletesPost200Response) - 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 "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 "key_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/kms_v2_keys_asym_get200_response_key_information_spec.rb b/spec/models/kms_v2_keys_asym_get200_response_key_information_spec.rb deleted file mode 100644 index a2ab1642..00000000 --- a/spec/models/kms_v2_keys_asym_get200_response_key_information_spec.rb +++ /dev/null @@ -1,82 +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::KmsV2KeysAsymGet200ResponseKeyInformation -# Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen) -# Please update as you see appropriate -describe 'KmsV2KeysAsymGet200ResponseKeyInformation' do - before do - # run before each test - @instance = CyberSource::KmsV2KeysAsymGet200ResponseKeyInformation.new - end - - after do - # run after each test - end - - describe 'test an instance of KmsV2KeysAsymGet200ResponseKeyInformation' do - it 'should create an instance of KmsV2KeysAsymGet200ResponseKeyInformation' do - expect(@instance).to be_instance_of(CyberSource::KmsV2KeysAsymGet200ResponseKeyInformation) - end - end - 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 "reference_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 "key_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 "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 "expiration_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 "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 "_alias"' 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 - -end diff --git a/spec/models/kms_v2_keys_asym_get200_response_spec.rb b/spec/models/kms_v2_keys_asym_get200_response_spec.rb deleted file mode 100644 index 30bf553e..00000000 --- a/spec/models/kms_v2_keys_asym_get200_response_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::KmsV2KeysAsymGet200Response -# Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen) -# Please update as you see appropriate -describe 'KmsV2KeysAsymGet200Response' do - before do - # run before each test - @instance = CyberSource::KmsV2KeysAsymGet200Response.new - end - - after do - # run after each test - end - - describe 'test an instance of KmsV2KeysAsymGet200Response' do - it 'should create an instance of KmsV2KeysAsymGet200Response' do - expect(@instance).to be_instance_of(CyberSource::KmsV2KeysAsymGet200Response) - 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 "key_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/kms_v2_keys_asym_post201_response_certificate_information_spec.rb b/spec/models/kms_v2_keys_asym_post201_response_certificate_information_spec.rb deleted file mode 100644 index 4db06e71..00000000 --- a/spec/models/kms_v2_keys_asym_post201_response_certificate_information_spec.rb +++ /dev/null @@ -1,58 +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::KmsV2KeysAsymPost201ResponseCertificateInformation -# Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen) -# Please update as you see appropriate -describe 'KmsV2KeysAsymPost201ResponseCertificateInformation' do - before do - # run before each test - @instance = CyberSource::KmsV2KeysAsymPost201ResponseCertificateInformation.new - end - - after do - # run after each test - end - - describe 'test an instance of KmsV2KeysAsymPost201ResponseCertificateInformation' do - it 'should create an instance of KmsV2KeysAsymPost201ResponseCertificateInformation' do - expect(@instance).to be_instance_of(CyberSource::KmsV2KeysAsymPost201ResponseCertificateInformation) - end - end - describe 'test attribute "_alias"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "key_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 "key"' 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_date"' 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/kms_v2_keys_asym_post201_response_key_information_spec.rb b/spec/models/kms_v2_keys_asym_post201_response_key_information_spec.rb deleted file mode 100644 index 2a83c460..00000000 --- a/spec/models/kms_v2_keys_asym_post201_response_key_information_spec.rb +++ /dev/null @@ -1,88 +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::KmsV2KeysAsymPost201ResponseKeyInformation -# Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen) -# Please update as you see appropriate -describe 'KmsV2KeysAsymPost201ResponseKeyInformation' do - before do - # run before each test - @instance = CyberSource::KmsV2KeysAsymPost201ResponseKeyInformation.new - end - - after do - # run after each test - end - - describe 'test an instance of KmsV2KeysAsymPost201ResponseKeyInformation' do - it 'should create an instance of KmsV2KeysAsymPost201ResponseKeyInformation' do - expect(@instance).to be_instance_of(CyberSource::KmsV2KeysAsymPost201ResponseKeyInformation) - end - end - 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 "reference_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 "key_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 "key"' 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 "expiration_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 "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 "_alias"' 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 - -end diff --git a/spec/models/kms_v2_keys_asym_post201_response_spec.rb b/spec/models/kms_v2_keys_asym_post201_response_spec.rb deleted file mode 100644 index f2d97670..00000000 --- a/spec/models/kms_v2_keys_asym_post201_response_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::KmsV2KeysAsymPost201Response -# Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen) -# Please update as you see appropriate -describe 'KmsV2KeysAsymPost201Response' do - before do - # run before each test - @instance = CyberSource::KmsV2KeysAsymPost201Response.new - end - - after do - # run after each test - end - - describe 'test an instance of KmsV2KeysAsymPost201Response' do - it 'should create an instance of KmsV2KeysAsymPost201Response' do - expect(@instance).to be_instance_of(CyberSource::KmsV2KeysAsymPost201Response) - 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 "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 "key_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 "certificate_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/kms_v2_keys_sym_deletes_post200_response_key_information_spec.rb b/spec/models/kms_v2_keys_sym_deletes_post200_response_key_information_spec.rb deleted file mode 100644 index fc215076..00000000 --- a/spec/models/kms_v2_keys_sym_deletes_post200_response_key_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::KmsV2KeysSymDeletesPost200ResponseKeyInformation -# Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen) -# Please update as you see appropriate -describe 'KmsV2KeysSymDeletesPost200ResponseKeyInformation' do - before do - # run before each test - @instance = CyberSource::KmsV2KeysSymDeletesPost200ResponseKeyInformation.new - end - - after do - # run after each test - end - - describe 'test an instance of KmsV2KeysSymDeletesPost200ResponseKeyInformation' do - it 'should create an instance of KmsV2KeysSymDeletesPost200ResponseKeyInformation' do - expect(@instance).to be_instance_of(CyberSource::KmsV2KeysSymDeletesPost200ResponseKeyInformation) - end - end - 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 "key_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 "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 "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 "error_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/kms_v2_keys_sym_deletes_post200_response_spec.rb b/spec/models/kms_v2_keys_sym_deletes_post200_response_spec.rb deleted file mode 100644 index a2d4c0e7..00000000 --- a/spec/models/kms_v2_keys_sym_deletes_post200_response_spec.rb +++ /dev/null @@ -1,58 +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::KmsV2KeysSymDeletesPost200Response -# Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen) -# Please update as you see appropriate -describe 'KmsV2KeysSymDeletesPost200Response' do - before do - # run before each test - @instance = CyberSource::KmsV2KeysSymDeletesPost200Response.new - end - - after do - # run after each test - end - - describe 'test an instance of KmsV2KeysSymDeletesPost200Response' do - it 'should create an instance of KmsV2KeysSymDeletesPost200Response' do - expect(@instance).to be_instance_of(CyberSource::KmsV2KeysSymDeletesPost200Response) - 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 "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 "key_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/kms_v2_keys_sym_get200_response_key_information_spec.rb b/spec/models/kms_v2_keys_sym_get200_response_key_information_spec.rb deleted file mode 100644 index 1466c9a4..00000000 --- a/spec/models/kms_v2_keys_sym_get200_response_key_information_spec.rb +++ /dev/null @@ -1,70 +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::KmsV2KeysSymGet200ResponseKeyInformation -# Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen) -# Please update as you see appropriate -describe 'KmsV2KeysSymGet200ResponseKeyInformation' do - before do - # run before each test - @instance = CyberSource::KmsV2KeysSymGet200ResponseKeyInformation.new - end - - after do - # run after each test - end - - describe 'test an instance of KmsV2KeysSymGet200ResponseKeyInformation' do - it 'should create an instance of KmsV2KeysSymGet200ResponseKeyInformation' do - expect(@instance).to be_instance_of(CyberSource::KmsV2KeysSymGet200ResponseKeyInformation) - end - end - 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 "key_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 "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 "expiration_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 "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 "error_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/kms_v2_keys_sym_get200_response_spec.rb b/spec/models/kms_v2_keys_sym_get200_response_spec.rb deleted file mode 100644 index 0fef614e..00000000 --- a/spec/models/kms_v2_keys_sym_get200_response_spec.rb +++ /dev/null @@ -1,52 +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::KmsV2KeysSymGet200Response -# Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen) -# Please update as you see appropriate -describe 'KmsV2KeysSymGet200Response' do - before do - # run before each test - @instance = CyberSource::KmsV2KeysSymGet200Response.new - end - - after do - # run after each test - end - - describe 'test an instance of KmsV2KeysSymGet200Response' do - it 'should create an instance of KmsV2KeysSymGet200Response' do - expect(@instance).to be_instance_of(CyberSource::KmsV2KeysSymGet200Response) - 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 "key_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/kms_v2_keys_sym_post201_response_error_information_spec.rb b/spec/models/kms_v2_keys_sym_post201_response_error_information_spec.rb deleted file mode 100644 index 2573f5a4..00000000 --- a/spec/models/kms_v2_keys_sym_post201_response_error_information_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::KmsV2KeysSymPost201ResponseErrorInformation -# Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen) -# Please update as you see appropriate -describe 'KmsV2KeysSymPost201ResponseErrorInformation' do - before do - # run before each test - @instance = CyberSource::KmsV2KeysSymPost201ResponseErrorInformation.new - end - - after do - # run after each test - end - - describe 'test an instance of KmsV2KeysSymPost201ResponseErrorInformation' do - it 'should create an instance of KmsV2KeysSymPost201ResponseErrorInformation' do - expect(@instance).to be_instance_of(CyberSource::KmsV2KeysSymPost201ResponseErrorInformation) - end - end - describe 'test attribute "reason"' 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/kms_v2_keys_sym_post201_response_key_information_spec.rb b/spec/models/kms_v2_keys_sym_post201_response_key_information_spec.rb deleted file mode 100644 index dc123bc1..00000000 --- a/spec/models/kms_v2_keys_sym_post201_response_key_information_spec.rb +++ /dev/null @@ -1,88 +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::KmsV2KeysSymPost201ResponseKeyInformation -# Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen) -# Please update as you see appropriate -describe 'KmsV2KeysSymPost201ResponseKeyInformation' do - before do - # run before each test - @instance = CyberSource::KmsV2KeysSymPost201ResponseKeyInformation.new - end - - after do - # run after each test - end - - describe 'test an instance of KmsV2KeysSymPost201ResponseKeyInformation' do - it 'should create an instance of KmsV2KeysSymPost201ResponseKeyInformation' do - expect(@instance).to be_instance_of(CyberSource::KmsV2KeysSymPost201ResponseKeyInformation) - end - end - 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 "external_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 "reference_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 "key_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 "key"' 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 "expiration_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 "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 "error_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/kms_v2_keys_sym_post201_response_spec.rb b/spec/models/kms_v2_keys_sym_post201_response_spec.rb deleted file mode 100644 index 36f0b7dc..00000000 --- a/spec/models/kms_v2_keys_sym_post201_response_spec.rb +++ /dev/null @@ -1,58 +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::KmsV2KeysSymPost201Response -# Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen) -# Please update as you see appropriate -describe 'KmsV2KeysSymPost201Response' do - before do - # run before each test - @instance = CyberSource::KmsV2KeysSymPost201Response.new - end - - after do - # run after each test - end - - describe 'test an instance of KmsV2KeysSymPost201Response' do - it 'should create an instance of KmsV2KeysSymPost201Response' do - expect(@instance).to be_instance_of(CyberSource::KmsV2KeysSymPost201Response) - 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 "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 "key_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/kmsv2keysasym_key_information_spec.rb b/spec/models/kmsv2keysasym_key_information_spec.rb deleted file mode 100644 index 12c66c6e..00000000 --- a/spec/models/kmsv2keysasym_key_information_spec.rb +++ /dev/null @@ -1,52 +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::Kmsv2keysasymKeyInformation -# Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen) -# Please update as you see appropriate -describe 'Kmsv2keysasymKeyInformation' do - before do - # run before each test - @instance = CyberSource::Kmsv2keysasymKeyInformation.new - end - - after do - # run after each test - end - - describe 'test an instance of Kmsv2keysasymKeyInformation' do - it 'should create an instance of Kmsv2keysasymKeyInformation' do - expect(@instance).to be_instance_of(CyberSource::Kmsv2keysasymKeyInformation) - end - end - 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 "reference_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 "cert"' 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/kmsv2keyssym_client_reference_information_spec.rb b/spec/models/kmsv2keyssym_client_reference_information_spec.rb deleted file mode 100644 index f60ad640..00000000 --- a/spec/models/kmsv2keyssym_client_reference_information_spec.rb +++ /dev/null @@ -1,52 +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::Kmsv2keyssymClientReferenceInformation -# Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen) -# Please update as you see appropriate -describe 'Kmsv2keyssymClientReferenceInformation' do - before do - # run before each test - @instance = CyberSource::Kmsv2keyssymClientReferenceInformation.new - end - - after do - # run after each test - end - - describe 'test an instance of Kmsv2keyssymClientReferenceInformation' do - it 'should create an instance of Kmsv2keyssymClientReferenceInformation' do - expect(@instance).to be_instance_of(CyberSource::Kmsv2keyssymClientReferenceInformation) - 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 - - 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 - -end diff --git a/spec/models/kmsv2keyssym_key_information_spec.rb b/spec/models/kmsv2keyssym_key_information_spec.rb deleted file mode 100644 index ade1ceaf..00000000 --- a/spec/models/kmsv2keyssym_key_information_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::Kmsv2keyssymKeyInformation -# Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen) -# Please update as you see appropriate -describe 'Kmsv2keyssymKeyInformation' do - before do - # run before each test - @instance = CyberSource::Kmsv2keyssymKeyInformation.new - end - - after do - # run after each test - end - - describe 'test an instance of Kmsv2keyssymKeyInformation' do - it 'should create an instance of Kmsv2keyssymKeyInformation' do - expect(@instance).to be_instance_of(CyberSource::Kmsv2keyssymKeyInformation) - end - end - 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 "reference_number"' 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/kmsv2keyssymdeletes_key_information_spec.rb b/spec/models/kmsv2keyssymdeletes_key_information_spec.rb deleted file mode 100644 index b65dfeb1..00000000 --- a/spec/models/kmsv2keyssymdeletes_key_information_spec.rb +++ /dev/null @@ -1,52 +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::Kmsv2keyssymdeletesKeyInformation -# Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen) -# Please update as you see appropriate -describe 'Kmsv2keyssymdeletesKeyInformation' do - before do - # run before each test - @instance = CyberSource::Kmsv2keyssymdeletesKeyInformation.new - end - - after do - # run after each test - end - - describe 'test an instance of Kmsv2keyssymdeletesKeyInformation' do - it 'should create an instance of Kmsv2keyssymdeletesKeyInformation' do - expect(@instance).to be_instance_of(CyberSource::Kmsv2keyssymdeletesKeyInformation) - end - end - 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 "reference_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 "key_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/kmsv2keyssymverifi_key_information_spec.rb b/spec/models/kmsv2keyssymverifi_key_information_spec.rb deleted file mode 100644 index a57d7ee3..00000000 --- a/spec/models/kmsv2keyssymverifi_key_information_spec.rb +++ /dev/null @@ -1,56 +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::Kmsv2keyssymverifiKeyInformation -# Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen) -# Please update as you see appropriate -describe 'Kmsv2keyssymverifiKeyInformation' do - before do - # run before each test - @instance = CyberSource::Kmsv2keyssymverifiKeyInformation.new - end - - after do - # run after each test - end - - describe 'test an instance of Kmsv2keyssymverifiKeyInformation' do - it 'should create an instance of Kmsv2keyssymverifiKeyInformation' do - expect(@instance).to be_instance_of(CyberSource::Kmsv2keyssymverifiKeyInformation) - end - end - 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 "reference_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 "digest_algorithm"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - # validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["HMACSHA1", "HMACSHA2"]) - # validator.allowable_values.each do |value| - # expect { @instance.digest_algorithm = value }.not_to raise_error - # end - end - end - -end diff --git a/spec/models/riskv1authentications_payment_information_card_spec.rb b/spec/models/riskv1authentications_payment_information_card_spec.rb deleted file mode 100644 index 02d71964..00000000 --- a/spec/models/riskv1authentications_payment_information_card_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::Riskv1authenticationsPaymentInformationCard -# Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen) -# Please update as you see appropriate -describe 'Riskv1authenticationsPaymentInformationCard' do - before do - # run before each test - @instance = CyberSource::Riskv1authenticationsPaymentInformationCard.new - end - - after do - # run after each test - end - - describe 'test an instance of Riskv1authenticationsPaymentInformationCard' do - it 'should create an instance of Riskv1authenticationsPaymentInformationCard' do - expect(@instance).to be_instance_of(CyberSource::Riskv1authenticationsPaymentInformationCard) - end - end - describe 'test attribute "bin"' 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 "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 - - describe 'test attribute "number"' 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/update_asym_keys_request_spec.rb b/spec/models/update_asym_keys_request_spec.rb deleted file mode 100644 index 4027c2a1..00000000 --- a/spec/models/update_asym_keys_request_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::UpdateAsymKeysRequest -# Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen) -# Please update as you see appropriate -describe 'UpdateAsymKeysRequest' do - before do - # run before each test - @instance = CyberSource::UpdateAsymKeysRequest.new - end - - after do - # run after each test - end - - describe 'test an instance of UpdateAsymKeysRequest' do - it 'should create an instance of UpdateAsymKeysRequest' do - expect(@instance).to be_instance_of(CyberSource::UpdateAsymKeysRequest) - 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 "organization_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/update_password_keys_request_spec.rb b/spec/models/update_password_keys_request_spec.rb deleted file mode 100644 index 50934c22..00000000 --- a/spec/models/update_password_keys_request_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::UpdatePasswordKeysRequest -# Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen) -# Please update as you see appropriate -describe 'UpdatePasswordKeysRequest' do - before do - # run before each test - @instance = CyberSource::UpdatePasswordKeysRequest.new - end - - after do - # run after each test - end - - describe 'test an instance of UpdatePasswordKeysRequest' do - it 'should create an instance of UpdatePasswordKeysRequest' do - expect(@instance).to be_instance_of(CyberSource::UpdatePasswordKeysRequest) - 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 "organization_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/update_pgp_keys_request_1_spec.rb b/spec/models/update_pgp_keys_request_1_spec.rb deleted file mode 100644 index edf04624..00000000 --- a/spec/models/update_pgp_keys_request_1_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::UpdatePGPKeysRequest1 -# Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen) -# Please update as you see appropriate -describe 'UpdatePGPKeysRequest1' do - before do - # run before each test - @instance = CyberSource::UpdatePGPKeysRequest1.new - end - - after do - # run after each test - end - - describe 'test an instance of UpdatePGPKeysRequest1' do - it 'should create an instance of UpdatePGPKeysRequest1' do - expect(@instance).to be_instance_of(CyberSource::UpdatePGPKeysRequest1) - end - end - 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 "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 "expiration_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 "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 "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/update_pgp_keys_request_spec.rb b/spec/models/update_pgp_keys_request_spec.rb deleted file mode 100644 index ae451e43..00000000 --- a/spec/models/update_pgp_keys_request_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::UpdatePGPKeysRequest -# Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen) -# Please update as you see appropriate -describe 'UpdatePGPKeysRequest' do - before do - # run before each test - @instance = CyberSource::UpdatePGPKeysRequest.new - end - - after do - # run after each test - end - - describe 'test an instance of UpdatePGPKeysRequest' do - it 'should create an instance of UpdatePGPKeysRequest' do - expect(@instance).to be_instance_of(CyberSource::UpdatePGPKeysRequest) - 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 "organization_id"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - -end From 872811ffacb9bc0600aeb584618c868891a23d1d Mon Sep 17 00:00:00 2001 From: gaubansa Date: Wed, 21 Aug 2024 18:10:05 +0530 Subject: [PATCH 2/4] spec changes --- docs/BatchesApi.md | 12 +- docs/BinLookupApi.md | 4 +- docs/CheckPayerAuthEnrollmentRequest.md | 2 +- docs/CreateNewWebhooksApi.md | 4 +- docs/CreatePaymentRequest.md | 1 + docs/InlineResponse2001.md | 13 +- ...nlineResponse2001IntegrationInformation.md | 9 + ...egrationInformationTenantConfigurations.md | 12 + docs/InlineResponse2002.md | 10 +- docs/InlineResponse2003.md | 17 +- docs/InlineResponse2005.md | 21 +- docs/InlineResponse2005Embedded.md | 8 + docs/InlineResponse2005EmbeddedBatches.md | 17 + docs/InlineResponse2005EmbeddedLinks.md | 8 + .../InlineResponse2005EmbeddedLinksReports.md | 8 + docs/InlineResponse2005EmbeddedTotals.md | 12 + docs/InlineResponse2005Links.md | 9 + docs/InlineResponse2006.md | 17 +- docs/InlineResponse2006Billing.md | 11 + docs/InlineResponse2006Links.md | 4 +- docs/InlineResponse2006LinksReport.md | 8 + docs/InlineResponse2007.md | 14 +- docs/InlineResponse2007Records.md | 10 + docs/InlineResponse2007ResponseRecord.md | 17 + ...onse2007ResponseRecordAdditionalUpdates.md | 12 + docs/InlineResponse2007SourceRecord.md | 15 + docs/InlineResponse2012SetupsPayments.md | 1 + docs/InlineResponse4005.md | 10 +- docs/InlineResponse4005Details.md | 9 + docs/InlineResponse4006.md | 10 +- docs/InlineResponse4006Details.md | 9 + docs/InlineResponse4041.md | 2 +- docs/InlineResponse4221.md | 2 +- docs/InlineResponse5002.md | 8 +- docs/ManageWebhooksApi.md | 8 +- docs/MerchantBoardingApi.md | 4 +- ...ConfigCardTypesVerifiedByVisaCurrencies.md | 2 +- docs/PayerAuthSetupRequest.md | 2 +- docs/PaymentsProducts.md | 1 + docs/PaymentsProductsServiceFee.md | 9 + ...ductsServiceFeeConfigurationInformation.md | 8 + ...eConfigurationInformationConfigurations.md | 12 + ...mationConfigurationsMerchantInformation.md | 10 + ...rmationConfigurationsPaymentInformation.md | 12 + ...rationInformationConfigurationsProducts.md | 8 + ...seEmbeddedActionsCONSUMERAUTHENTICATION.md | 2 +- ...entsPost201ResponseProcessorInformation.md | 1 + ...ocessingInformationAuthorizationOptions.md | 1 + docs/Ptsv2paymentsRecipientInformation.md | 10 +- docs/Ptsv2paymentsSenderInformation.md | 14 + ...kV1AuthenticationResultsPost201Response.md | 3 +- ...sponseConsumerAuthenticationInformation.md | 5 + docs/RiskV1AuthenticationsPost201Response.md | 3 +- docs/RiskV1AuthenticationsPost400Response1.md | 2 +- ...esultsConsumerAuthenticationInformation.md | 4 +- ...enticationresultsPaymentInformationCard.md | 1 - .../Riskv1authenticationsDeviceInformation.md | 16 +- ...Riskv1authenticationsPaymentInformation.md | 2 +- ...icationsetupsClientReferenceInformation.md | 11 + ...isionsConsumerAuthenticationInformation.md | 3 +- docs/ValidateRequest.md | 2 +- generator/cybersource-rest-spec-ruby.json | 4266 ++++++----------- generator/cybersource-rest-spec.json | 4266 ++++++----------- lib/cybersource_rest_client.rb | 81 +- .../api/batches_api.rb | 18 +- .../api/bin_lookup_api.rb | 6 +- .../api/create_new_webhooks_api.rb | 6 +- .../api/manage_webhooks_api.rb | 12 +- .../api/merchant_boarding_api.rb | 6 +- .../check_payer_auth_enrollment_request.rb | 2 +- .../models/create_payment_request.rb | 12 +- .../models/inline_response_200_1.rb | 106 +- ..._response_200_1_integration_information.rb | 204 + ...ation_information_tenant_configurations.rb | 296 ++ .../models/inline_response_200_2.rb | 90 +- .../models/inline_response_200_3.rb | 172 +- .../models/inline_response_200_5.rb | 186 +- .../models/inline_response_200_5__embedded.rb | 191 + .../inline_response_200_5__embedded__links.rb | 191 + ...response_200_5__embedded__links_reports.rb | 190 + ...inline_response_200_5__embedded_batches.rb | 295 ++ .../inline_response_200_5__embedded_totals.rb | 229 + .../models/inline_response_200_5__links.rb | 200 + .../models/inline_response_200_6.rb | 133 +- .../models/inline_response_200_6__links.rb | 33 +- .../inline_response_200_6__links_report.rb | 189 + .../models/inline_response_200_6_billing.rb | 219 + .../models/inline_response_200_7.rb | 96 +- .../models/inline_response_200_7_records.rb | 209 + .../inline_response_200_7_response_record.rb | 307 ++ ...00_7_response_record_additional_updates.rb | 242 + .../inline_response_200_7_source_record.rb | 295 ++ .../inline_response_201_2_setups_payments.rb | 20 +- .../models/inline_response_400_5.rb | 63 +- .../models/inline_response_400_5_details.rb | 201 + .../models/inline_response_400_6.rb | 110 +- .../models/inline_response_400_6_details.rb | 199 + .../models/inline_response_404_1.rb | 2 +- .../models/inline_response_422_1.rb | 2 +- .../models/inline_response_500_2.rb | 44 +- ..._card_types_verified_by_visa_currencies.rb | 1 + .../models/payer_auth_setup_request.rb | 2 +- .../models/payments_products.rb | 20 +- .../models/payments_products_service_fee.rb | 199 + ...s_service_fee_configuration_information.rb | 189 + ...onfiguration_information_configurations.rb | 266 + ...ion_configurations_merchant_information.rb | 239 + ...tion_configurations_payment_information.rb | 280 ++ ...ion_information_configurations_products.rb | 190 + ...mbedded_actions_consumer_authentication.rb | 2 +- ..._post201_response_processor_information.rb | 19 +- ...ssing_information_authorization_options.rb | 21 +- .../ptsv2payments_recipient_information.rb | 76 +- .../ptsv2payments_sender_information.rb | 298 ++ ...authentication_results_post201_response.rb | 15 +- ...nse_consumer_authentication_information.rb | 81 +- ...isk_v1_authentications_post201_response.rb | 15 +- ...k_v1_authentications_post400_response_1.rb | 2 +- ...lts_consumer_authentication_information.rb | 45 +- ...icationresults_payment_information_card.rb | 19 +- ...iskv1authentications_device_information.rb | 68 + ...skv1authentications_payment_information.rb | 2 +- ...tionsetups_client_reference_information.rb | 240 + ...ons_consumer_authentication_information.rb | 28 +- .../models/validate_request.rb | 2 +- spec/api/batches_api_spec.rb | 6 +- spec/api/bin_lookup_api_spec.rb | 2 +- spec/api/create_new_webhooks_api_spec.rb | 2 +- spec/api/manage_webhooks_api_spec.rb | 4 +- spec/api/merchant_boarding_api_spec.rb | 2 +- spec/models/create_payment_request_spec.rb | 6 + ...onse_200_1_integration_information_spec.rb | 46 + ..._information_tenant_configurations_spec.rb | 68 + spec/models/inline_response_200_1_spec.rb | 18 +- spec/models/inline_response_200_2_spec.rb | 30 +- spec/models/inline_response_200_3_spec.rb | 72 +- ...nse_200_5__embedded__links_reports_spec.rb | 40 + ...ne_response_200_5__embedded__links_spec.rb | 40 + ...e_response_200_5__embedded_batches_spec.rb | 94 + .../inline_response_200_5__embedded_spec.rb | 40 + ...ne_response_200_5__embedded_totals_spec.rb | 64 + .../inline_response_200_5__links_spec.rb | 46 + spec/models/inline_response_200_5_spec.rb | 56 +- ...nline_response_200_6__links_report_spec.rb | 40 + .../inline_response_200_6__links_spec.rb | 4 +- .../inline_response_200_6_billing_spec.rb | 58 + spec/models/inline_response_200_6_spec.rb | 30 +- .../inline_response_200_7_records_spec.rb | 52 + ...response_record_additional_updates_spec.rb | 64 + ...ine_response_200_7_response_record_spec.rb | 94 + ...nline_response_200_7_source_record_spec.rb | 82 + spec/models/inline_response_200_7_spec.rb | 14 +- ...ine_response_201_2_setups_payments_spec.rb | 6 + .../inline_response_400_5_details_spec.rb | 46 + spec/models/inline_response_400_5_spec.rb | 6 +- .../inline_response_400_6_details_spec.rb | 46 + spec/models/inline_response_400_6_spec.rb | 12 +- spec/models/inline_response_500_2_spec.rb | 4 + ...onfigurations_merchant_information_spec.rb | 52 + ...configurations_payment_information_spec.rb | 72 + ...nformation_configurations_products_spec.rb | 40 + ...uration_information_configurations_spec.rb | 64 + ...vice_fee_configuration_information_spec.rb | 40 + .../payments_products_service_fee_spec.rb | 46 + spec/models/payments_products_spec.rb | 6 + ...201_response_processor_information_spec.rb | 6 + ..._information_authorization_options_spec.rb | 6 + ...tsv2payments_recipient_information_spec.rb | 24 + .../ptsv2payments_sender_information_spec.rb | 76 + ...onsumer_authentication_information_spec.rb | 30 + ...ntication_results_post201_response_spec.rb | 6 - ...1_authentications_post201_response_spec.rb | 6 - ...onsumer_authentication_information_spec.rb | 12 - ...onresults_payment_information_card_spec.rb | 6 - ...etups_client_reference_information_spec.rb | 58 + ...onsumer_authentication_information_spec.rb | 6 - 176 files changed, 11196 insertions(+), 6744 deletions(-) create mode 100644 docs/InlineResponse2001IntegrationInformation.md create mode 100644 docs/InlineResponse2001IntegrationInformationTenantConfigurations.md create mode 100644 docs/InlineResponse2005Embedded.md create mode 100644 docs/InlineResponse2005EmbeddedBatches.md create mode 100644 docs/InlineResponse2005EmbeddedLinks.md create mode 100644 docs/InlineResponse2005EmbeddedLinksReports.md create mode 100644 docs/InlineResponse2005EmbeddedTotals.md create mode 100644 docs/InlineResponse2005Links.md create mode 100644 docs/InlineResponse2006Billing.md create mode 100644 docs/InlineResponse2006LinksReport.md create mode 100644 docs/InlineResponse2007Records.md create mode 100644 docs/InlineResponse2007ResponseRecord.md create mode 100644 docs/InlineResponse2007ResponseRecordAdditionalUpdates.md create mode 100644 docs/InlineResponse2007SourceRecord.md create mode 100644 docs/InlineResponse4005Details.md create mode 100644 docs/InlineResponse4006Details.md create mode 100644 docs/PaymentsProductsServiceFee.md create mode 100644 docs/PaymentsProductsServiceFeeConfigurationInformation.md create mode 100644 docs/PaymentsProductsServiceFeeConfigurationInformationConfigurations.md create mode 100644 docs/PaymentsProductsServiceFeeConfigurationInformationConfigurationsMerchantInformation.md create mode 100644 docs/PaymentsProductsServiceFeeConfigurationInformationConfigurationsPaymentInformation.md create mode 100644 docs/PaymentsProductsServiceFeeConfigurationInformationConfigurationsProducts.md create mode 100644 docs/Ptsv2paymentsSenderInformation.md create mode 100644 docs/Riskv1authenticationsetupsClientReferenceInformation.md create mode 100644 lib/cybersource_rest_client/models/inline_response_200_1_integration_information.rb create mode 100644 lib/cybersource_rest_client/models/inline_response_200_1_integration_information_tenant_configurations.rb create mode 100644 lib/cybersource_rest_client/models/inline_response_200_5__embedded.rb create mode 100644 lib/cybersource_rest_client/models/inline_response_200_5__embedded__links.rb create mode 100644 lib/cybersource_rest_client/models/inline_response_200_5__embedded__links_reports.rb create mode 100644 lib/cybersource_rest_client/models/inline_response_200_5__embedded_batches.rb create mode 100644 lib/cybersource_rest_client/models/inline_response_200_5__embedded_totals.rb create mode 100644 lib/cybersource_rest_client/models/inline_response_200_5__links.rb create mode 100644 lib/cybersource_rest_client/models/inline_response_200_6__links_report.rb create mode 100644 lib/cybersource_rest_client/models/inline_response_200_6_billing.rb create mode 100644 lib/cybersource_rest_client/models/inline_response_200_7_records.rb create mode 100644 lib/cybersource_rest_client/models/inline_response_200_7_response_record.rb create mode 100644 lib/cybersource_rest_client/models/inline_response_200_7_response_record_additional_updates.rb create mode 100644 lib/cybersource_rest_client/models/inline_response_200_7_source_record.rb create mode 100644 lib/cybersource_rest_client/models/inline_response_400_5_details.rb create mode 100644 lib/cybersource_rest_client/models/inline_response_400_6_details.rb create mode 100644 lib/cybersource_rest_client/models/payments_products_service_fee.rb create mode 100644 lib/cybersource_rest_client/models/payments_products_service_fee_configuration_information.rb create mode 100644 lib/cybersource_rest_client/models/payments_products_service_fee_configuration_information_configurations.rb create mode 100644 lib/cybersource_rest_client/models/payments_products_service_fee_configuration_information_configurations_merchant_information.rb create mode 100644 lib/cybersource_rest_client/models/payments_products_service_fee_configuration_information_configurations_payment_information.rb create mode 100644 lib/cybersource_rest_client/models/payments_products_service_fee_configuration_information_configurations_products.rb create mode 100644 lib/cybersource_rest_client/models/ptsv2payments_sender_information.rb create mode 100644 lib/cybersource_rest_client/models/riskv1authenticationsetups_client_reference_information.rb create mode 100644 spec/models/inline_response_200_1_integration_information_spec.rb create mode 100644 spec/models/inline_response_200_1_integration_information_tenant_configurations_spec.rb create mode 100644 spec/models/inline_response_200_5__embedded__links_reports_spec.rb create mode 100644 spec/models/inline_response_200_5__embedded__links_spec.rb create mode 100644 spec/models/inline_response_200_5__embedded_batches_spec.rb create mode 100644 spec/models/inline_response_200_5__embedded_spec.rb create mode 100644 spec/models/inline_response_200_5__embedded_totals_spec.rb create mode 100644 spec/models/inline_response_200_5__links_spec.rb create mode 100644 spec/models/inline_response_200_6__links_report_spec.rb create mode 100644 spec/models/inline_response_200_6_billing_spec.rb create mode 100644 spec/models/inline_response_200_7_records_spec.rb create mode 100644 spec/models/inline_response_200_7_response_record_additional_updates_spec.rb create mode 100644 spec/models/inline_response_200_7_response_record_spec.rb create mode 100644 spec/models/inline_response_200_7_source_record_spec.rb create mode 100644 spec/models/inline_response_400_5_details_spec.rb create mode 100644 spec/models/inline_response_400_6_details_spec.rb create mode 100644 spec/models/payments_products_service_fee_configuration_information_configurations_merchant_information_spec.rb create mode 100644 spec/models/payments_products_service_fee_configuration_information_configurations_payment_information_spec.rb create mode 100644 spec/models/payments_products_service_fee_configuration_information_configurations_products_spec.rb create mode 100644 spec/models/payments_products_service_fee_configuration_information_configurations_spec.rb create mode 100644 spec/models/payments_products_service_fee_configuration_information_spec.rb create mode 100644 spec/models/payments_products_service_fee_spec.rb create mode 100644 spec/models/ptsv2payments_sender_information_spec.rb create mode 100644 spec/models/riskv1authenticationsetups_client_reference_information_spec.rb diff --git a/docs/BatchesApi.md b/docs/BatchesApi.md index f390cfc0..db44b40b 100644 --- a/docs/BatchesApi.md +++ b/docs/BatchesApi.md @@ -11,7 +11,7 @@ Method | HTTP request | Description # **get_batch_report** -> InlineResponse2008 get_batch_report(batch_id) +> InlineResponse2007 get_batch_report(batch_id) Retrieve a Batch Report @@ -44,7 +44,7 @@ Name | Type | Description | Notes ### Return type -[**InlineResponse2008**](InlineResponse2008.md) +[**InlineResponse2007**](InlineResponse2007.md) ### Authorization @@ -58,7 +58,7 @@ No authorization required # **get_batch_status** -> InlineResponse2007 get_batch_status(batch_id) +> InlineResponse2006 get_batch_status(batch_id) Retrieve a Batch Status @@ -91,7 +91,7 @@ Name | Type | Description | Notes ### Return type -[**InlineResponse2007**](InlineResponse2007.md) +[**InlineResponse2006**](InlineResponse2006.md) ### Authorization @@ -105,7 +105,7 @@ No authorization required # **get_batches_list** -> InlineResponse2006 get_batches_list(opts) +> InlineResponse2005 get_batches_list(opts) List Batches @@ -145,7 +145,7 @@ Name | Type | Description | Notes ### Return type -[**InlineResponse2006**](InlineResponse2006.md) +[**InlineResponse2005**](InlineResponse2005.md) ### Authorization diff --git a/docs/BinLookupApi.md b/docs/BinLookupApi.md index a698aa42..5c182db7 100644 --- a/docs/BinLookupApi.md +++ b/docs/BinLookupApi.md @@ -12,7 +12,7 @@ Method | HTTP request | Description BIN Lookup API -The BIN Lookup Service is a versatile business tool that provides card network agnostic solution designed to ensure frictionless transaction experience by utilizing up-to-date Bank Identification Number (BIN) attributes sourced from multiple global and regional data sources. This service helps to improve authorization rates by helping to route transactions to the best-suited card network, minimizes fraud through card detail verification and aids in regulatory compliance by identifying card properties. The service is flexible and provides businesses with a flexible choice of inputs such as primary account number (PAN), network token from major networks which includes device PAN (DPAN), and all types of tokens generated via CyberSource Token Management Service (TMS). Currently, the range of available credentials is contingent on the networks enabled for the business entity. Therefore, the network information specified in this documentation is illustrative and subject to personalized offerings for each reseller or merchant. +The BIN Lookup Service is a versatile business tool that provides card network agnostic solution designed to ensure frictionless transaction experience by utilizing up-to-date Bank Identification Number (BIN) attributes sourced from multiple global and regional data sources. This service helps to improve authorization rates by helping to route transactions to the best-suited card network, minimizes fraud through card detail verification and aids in regulatory compliance by identifying card properties. The service is flexible and provides businesses with a flexible choice of inputs such as primary account number (PAN), network token from major networks which includes device PAN (DPAN), and all types of tokens generated via CyberSource Token Management Service (TMS). Currently, the range of available credentials is contingent on the networks enabled for the business entity. Therefore, the network information specified in this documentation is illustrative and subject to personalized offerings for each reseller or merchant. ### Example ```ruby @@ -50,7 +50,7 @@ No authorization required ### HTTP request headers - **Content-Type**: application/json;charset=utf-8 - - **Accept**: application/hal+json;charset=utf-8 + - **Accept**: application/json;charset=utf-8 diff --git a/docs/CheckPayerAuthEnrollmentRequest.md b/docs/CheckPayerAuthEnrollmentRequest.md index cc4a8b50..8f6c4bf1 100644 --- a/docs/CheckPayerAuthEnrollmentRequest.md +++ b/docs/CheckPayerAuthEnrollmentRequest.md @@ -3,7 +3,7 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**client_reference_information** | [**Riskv1decisionsClientReferenceInformation**](Riskv1decisionsClientReferenceInformation.md) | | [optional] +**client_reference_information** | [**Riskv1authenticationsetupsClientReferenceInformation**](Riskv1authenticationsetupsClientReferenceInformation.md) | | [optional] **order_information** | [**Riskv1authenticationsOrderInformation**](Riskv1authenticationsOrderInformation.md) | | [optional] **payment_information** | [**Riskv1authenticationsPaymentInformation**](Riskv1authenticationsPaymentInformation.md) | | [optional] **processing_information** | [**Riskv1authenticationsetupsProcessingInformation**](Riskv1authenticationsetupsProcessingInformation.md) | | [optional] diff --git a/docs/CreateNewWebhooksApi.md b/docs/CreateNewWebhooksApi.md index 85fd3e0e..c08246d5 100644 --- a/docs/CreateNewWebhooksApi.md +++ b/docs/CreateNewWebhooksApi.md @@ -58,7 +58,7 @@ No authorization required # **find_products_to_subscribe** -> Array<InlineResponse2003> find_products_to_subscribe(organization_id) +> Array<InlineResponse2002> find_products_to_subscribe(organization_id) Find Products You Can Subscribe To @@ -91,7 +91,7 @@ Name | Type | Description | Notes ### Return type -[**Array<InlineResponse2003>**](InlineResponse2003.md) +[**Array<InlineResponse2002>**](InlineResponse2002.md) ### Authorization diff --git a/docs/CreatePaymentRequest.md b/docs/CreatePaymentRequest.md index acab5b30..bc45da9c 100644 --- a/docs/CreatePaymentRequest.md +++ b/docs/CreatePaymentRequest.md @@ -9,6 +9,7 @@ Name | Type | Description | Notes **payment_information** | [**Ptsv2paymentsPaymentInformation**](Ptsv2paymentsPaymentInformation.md) | | [optional] **order_information** | [**Ptsv2paymentsOrderInformation**](Ptsv2paymentsOrderInformation.md) | | [optional] **buyer_information** | [**Ptsv2paymentsBuyerInformation**](Ptsv2paymentsBuyerInformation.md) | | [optional] +**sender_information** | [**Ptsv2paymentsSenderInformation**](Ptsv2paymentsSenderInformation.md) | | [optional] **recipient_information** | [**Ptsv2paymentsRecipientInformation**](Ptsv2paymentsRecipientInformation.md) | | [optional] **device_information** | [**Ptsv2paymentsDeviceInformation**](Ptsv2paymentsDeviceInformation.md) | | [optional] **merchant_information** | [**Ptsv2paymentsMerchantInformation**](Ptsv2paymentsMerchantInformation.md) | | [optional] diff --git a/docs/InlineResponse2001.md b/docs/InlineResponse2001.md index e181aba6..4b46c7e2 100644 --- a/docs/InlineResponse2001.md +++ b/docs/InlineResponse2001.md @@ -3,11 +3,12 @@ ## Properties 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. | [optional] -**total_count** | **Integer** | Specifies the total number of items found based on the request | [optional] -**offset** | **Integer** | Specifies the record offset from the records are returned part of the response | [optional] -**limit** | **Integer** | Specifies the maximum number of records requested part of the response | [optional] -**sort** | **String** | Specifies a comma separated list of field names based on which the result is sorted. | [optional] -**keys** | [**Array<InlineResponse2001Keys>**](InlineResponse2001Keys.md) | | [optional] +**registration_information** | [**Boardingv1registrationsRegistrationInformation**](Boardingv1registrationsRegistrationInformation.md) | | [optional] +**integration_information** | [**InlineResponse2001IntegrationInformation**](InlineResponse2001IntegrationInformation.md) | | [optional] +**organization_information** | [**Boardingv1registrationsOrganizationInformation**](Boardingv1registrationsOrganizationInformation.md) | | [optional] +**product_information** | [**Boardingv1registrationsProductInformation**](Boardingv1registrationsProductInformation.md) | | [optional] +**product_information_setups** | [**Array<InlineResponse2012ProductInformationSetups>**](InlineResponse2012ProductInformationSetups.md) | | [optional] +**document_information** | [**Boardingv1registrationsDocumentInformation**](Boardingv1registrationsDocumentInformation.md) | | [optional] +**details** | **Hash<String, Array<Object>>** | | [optional] diff --git a/docs/InlineResponse2001IntegrationInformation.md b/docs/InlineResponse2001IntegrationInformation.md new file mode 100644 index 00000000..01cb6574 --- /dev/null +++ b/docs/InlineResponse2001IntegrationInformation.md @@ -0,0 +1,9 @@ +# CyberSource::InlineResponse2001IntegrationInformation + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**oauth2** | [**Array<Boardingv1registrationsIntegrationInformationOauth2>**](Boardingv1registrationsIntegrationInformationOauth2.md) | | [optional] +**tenant_configurations** | [**Array<InlineResponse2001IntegrationInformationTenantConfigurations>**](InlineResponse2001IntegrationInformationTenantConfigurations.md) | tenantConfigurations is an array of objects that includes the tenant information this merchant is associated with. | [optional] + + diff --git a/docs/InlineResponse2001IntegrationInformationTenantConfigurations.md b/docs/InlineResponse2001IntegrationInformationTenantConfigurations.md new file mode 100644 index 00000000..fdfd8ce5 --- /dev/null +++ b/docs/InlineResponse2001IntegrationInformationTenantConfigurations.md @@ -0,0 +1,12 @@ +# CyberSource::InlineResponse2001IntegrationInformationTenantConfigurations + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**solution_id** | **String** | The solutionId is the unique identifier for this system resource. Partner can use it to reference the specific solution through out the system. | [optional] +**tenant_configuration_id** | **String** | The tenantConfigurationId is the unique identifier for this system resource. You will see various places where it must be referenced in the URI path, or when querying the hierarchy for ancestors or descendants. | [optional] +**status** | **String** | | [optional] +**submit_time_utc** | **DateTime** | Time of request in UTC. | [optional] +**tenant_information** | [**Boardingv1registrationsIntegrationInformationTenantInformation**](Boardingv1registrationsIntegrationInformationTenantInformation.md) | | [optional] + + diff --git a/docs/InlineResponse2002.md b/docs/InlineResponse2002.md index 079d1ca9..7742e2bb 100644 --- a/docs/InlineResponse2002.md +++ b/docs/InlineResponse2002.md @@ -3,12 +3,8 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**registration_information** | [**Boardingv1registrationsRegistrationInformation**](Boardingv1registrationsRegistrationInformation.md) | | [optional] -**integration_information** | [**InlineResponse2002IntegrationInformation**](InlineResponse2002IntegrationInformation.md) | | [optional] -**organization_information** | [**Boardingv1registrationsOrganizationInformation**](Boardingv1registrationsOrganizationInformation.md) | | [optional] -**product_information** | [**Boardingv1registrationsProductInformation**](Boardingv1registrationsProductInformation.md) | | [optional] -**product_information_setups** | [**Array<InlineResponse2012ProductInformationSetups>**](InlineResponse2012ProductInformationSetups.md) | | [optional] -**document_information** | [**Boardingv1registrationsDocumentInformation**](Boardingv1registrationsDocumentInformation.md) | | [optional] -**details** | **Hash<String, Array<Object>>** | | [optional] +**product_id** | **String** | Product ID. | [optional] +**product_name** | **String** | Product Name. | [optional] +**event_types** | [**Array<Notificationsubscriptionsv1productsorganizationIdEventTypes>**](Notificationsubscriptionsv1productsorganizationIdEventTypes.md) | | [optional] diff --git a/docs/InlineResponse2003.md b/docs/InlineResponse2003.md index 27dbd191..88050e83 100644 --- a/docs/InlineResponse2003.md +++ b/docs/InlineResponse2003.md @@ -3,8 +3,19 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**product_id** | **String** | Product ID. | [optional] -**product_name** | **String** | Product Name. | [optional] -**event_types** | [**Array<Notificationsubscriptionsv1productsorganizationIdEventTypes>**](Notificationsubscriptionsv1productsorganizationIdEventTypes.md) | | [optional] +**webhook_id** | **String** | Webhook Id. This is generated by the server. | [optional] +**organization_id** | **String** | Organization ID. | [optional] +**products** | [**Array<Notificationsubscriptionsv1webhooksProducts>**](Notificationsubscriptionsv1webhooksProducts.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). This should be as close as possible to the actual webhookUrl. | [optional] +**notification_scope** | [**Notificationsubscriptionsv1webhooksNotificationScope**](Notificationsubscriptionsv1webhooksNotificationScope.md) | | [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** | [**Notificationsubscriptionsv1webhooksRetryPolicy**](Notificationsubscriptionsv1webhooksRetryPolicy.md) | | [optional] +**security_policy** | [**Notificationsubscriptionsv1webhooksSecurityPolicy**](Notificationsubscriptionsv1webhooksSecurityPolicy.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] +**additional_attributes** | **Array<Hash<String, String>>** | Additional, free form configuration data. | [optional] diff --git a/docs/InlineResponse2005.md b/docs/InlineResponse2005.md index 08af4107..d6fa6fb9 100644 --- a/docs/InlineResponse2005.md +++ b/docs/InlineResponse2005.md @@ -3,19 +3,12 @@ ## 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<Notificationsubscriptionsv1webhooksProducts>**](Notificationsubscriptionsv1webhooksProducts.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). This should be as close as possible to the actual webhookUrl. | [optional] -**notification_scope** | [**Notificationsubscriptionsv1webhooksNotificationScope**](Notificationsubscriptionsv1webhooksNotificationScope.md) | | [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** | [**Notificationsubscriptionsv1webhooksRetryPolicy**](Notificationsubscriptionsv1webhooksRetryPolicy.md) | | [optional] -**security_policy** | [**Notificationsubscriptionsv1webhooksSecurityPolicy**](Notificationsubscriptionsv1webhooksSecurityPolicy.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] -**additional_attributes** | **Array<Hash<String, String>>** | Additional, free form configuration data. | [optional] +**_links** | [**Array<InlineResponse2005Links>**](InlineResponse2005Links.md) | | [optional] +**object** | **String** | | [optional] +**offset** | **Integer** | | [optional] +**limit** | **Integer** | | [optional] +**count** | **Integer** | | [optional] +**total** | **Integer** | | [optional] +**_embedded** | [**InlineResponse2005Embedded**](InlineResponse2005Embedded.md) | | [optional] diff --git a/docs/InlineResponse2005Embedded.md b/docs/InlineResponse2005Embedded.md new file mode 100644 index 00000000..3af046a0 --- /dev/null +++ b/docs/InlineResponse2005Embedded.md @@ -0,0 +1,8 @@ +# CyberSource::InlineResponse2005Embedded + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**batches** | [**Array<InlineResponse2005EmbeddedBatches>**](InlineResponse2005EmbeddedBatches.md) | | [optional] + + diff --git a/docs/InlineResponse2005EmbeddedBatches.md b/docs/InlineResponse2005EmbeddedBatches.md new file mode 100644 index 00000000..e8bd46ed --- /dev/null +++ b/docs/InlineResponse2005EmbeddedBatches.md @@ -0,0 +1,17 @@ +# CyberSource::InlineResponse2005EmbeddedBatches + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**_links** | [**InlineResponse2005EmbeddedLinks**](InlineResponse2005EmbeddedLinks.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] +**batch_source** | **String** | Valid Values: * SCHEDULER * TOKEN_API * CREDIT_CARD_FILE_UPLOAD * AMEX_REGSITRY * AMEX_REGISTRY_API * AMEX_REGISTRY_API_SYNC * AMEX_MAINTENANCE | [optional] +**token_source** | **String** | Valid Values: * SECURE_STORAGE * TMS * CYBERSOURCE | [optional] +**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** | [**InlineResponse2005EmbeddedTotals**](InlineResponse2005EmbeddedTotals.md) | | [optional] + + diff --git a/docs/InlineResponse2005EmbeddedLinks.md b/docs/InlineResponse2005EmbeddedLinks.md new file mode 100644 index 00000000..35e77400 --- /dev/null +++ b/docs/InlineResponse2005EmbeddedLinks.md @@ -0,0 +1,8 @@ +# CyberSource::InlineResponse2005EmbeddedLinks + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**reports** | [**Array<InlineResponse2005EmbeddedLinksReports>**](InlineResponse2005EmbeddedLinksReports.md) | | [optional] + + diff --git a/docs/InlineResponse2005EmbeddedLinksReports.md b/docs/InlineResponse2005EmbeddedLinksReports.md new file mode 100644 index 00000000..7c5408d9 --- /dev/null +++ b/docs/InlineResponse2005EmbeddedLinksReports.md @@ -0,0 +1,8 @@ +# CyberSource::InlineResponse2005EmbeddedLinksReports + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**href** | **String** | | [optional] + + diff --git a/docs/InlineResponse2005EmbeddedTotals.md b/docs/InlineResponse2005EmbeddedTotals.md new file mode 100644 index 00000000..38a9fd71 --- /dev/null +++ b/docs/InlineResponse2005EmbeddedTotals.md @@ -0,0 +1,12 @@ +# CyberSource::InlineResponse2005EmbeddedTotals + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**accepted_records** | **Integer** | | [optional] +**rejected_records** | **Integer** | | [optional] +**updated_records** | **Integer** | | [optional] +**ca_responses** | **Integer** | | [optional] +**ca_responses_omitted** | **Integer** | | [optional] + + diff --git a/docs/InlineResponse2005Links.md b/docs/InlineResponse2005Links.md new file mode 100644 index 00000000..2c157913 --- /dev/null +++ b/docs/InlineResponse2005Links.md @@ -0,0 +1,9 @@ +# CyberSource::InlineResponse2005Links + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**rel** | **String** | Valid Values: * self * first * last * prev * next | [optional] +**href** | **String** | | [optional] + + diff --git a/docs/InlineResponse2006.md b/docs/InlineResponse2006.md index 68664e14..87e8fc88 100644 --- a/docs/InlineResponse2006.md +++ b/docs/InlineResponse2006.md @@ -3,12 +3,15 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**_links** | [**Array<InlineResponse2006Links>**](InlineResponse2006Links.md) | | [optional] -**object** | **String** | | [optional] -**offset** | **Integer** | | [optional] -**limit** | **Integer** | | [optional] -**count** | **Integer** | | [optional] -**total** | **Integer** | | [optional] -**_embedded** | [**InlineResponse2006Embedded**](InlineResponse2006Embedded.md) | | [optional] +**_links** | [**InlineResponse2006Links**](InlineResponse2006Links.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** | [**InlineResponse2005EmbeddedTotals**](InlineResponse2005EmbeddedTotals.md) | | [optional] +**billing** | [**InlineResponse2006Billing**](InlineResponse2006Billing.md) | | [optional] +**description** | **String** | | [optional] diff --git a/docs/InlineResponse2006Billing.md b/docs/InlineResponse2006Billing.md new file mode 100644 index 00000000..754fa26f --- /dev/null +++ b/docs/InlineResponse2006Billing.md @@ -0,0 +1,11 @@ +# CyberSource::InlineResponse2006Billing + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**nan** | **Integer** | | [optional] +**ned** | **Integer** | | [optional] +**acl** | **Integer** | | [optional] +**cch** | **Integer** | | [optional] + + diff --git a/docs/InlineResponse2006Links.md b/docs/InlineResponse2006Links.md index ffb39ff4..827804e0 100644 --- a/docs/InlineResponse2006Links.md +++ b/docs/InlineResponse2006Links.md @@ -3,7 +3,7 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**rel** | **String** | Valid Values: * self * first * last * prev * next | [optional] -**href** | **String** | | [optional] +**_self** | [**InlineResponse202LinksStatus**](InlineResponse202LinksStatus.md) | | [optional] +**report** | [**Array<InlineResponse2006LinksReport>**](InlineResponse2006LinksReport.md) | | [optional] diff --git a/docs/InlineResponse2006LinksReport.md b/docs/InlineResponse2006LinksReport.md new file mode 100644 index 00000000..c5eb3841 --- /dev/null +++ b/docs/InlineResponse2006LinksReport.md @@ -0,0 +1,8 @@ +# CyberSource::InlineResponse2006LinksReport + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**href** | **String** | | [optional] + + diff --git a/docs/InlineResponse2007.md b/docs/InlineResponse2007.md index 22f99be7..eb5351b4 100644 --- a/docs/InlineResponse2007.md +++ b/docs/InlineResponse2007.md @@ -3,15 +3,15 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**_links** | [**InlineResponse2007Links**](InlineResponse2007Links.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_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** | [**InlineResponse2006EmbeddedTotals**](InlineResponse2006EmbeddedTotals.md) | | [optional] -**billing** | [**InlineResponse2007Billing**](InlineResponse2007Billing.md) | | [optional] -**description** | **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** | [**InlineResponse2005EmbeddedTotals**](InlineResponse2005EmbeddedTotals.md) | | [optional] +**billing** | [**InlineResponse2006Billing**](InlineResponse2006Billing.md) | | [optional] +**records** | [**Array<InlineResponse2007Records>**](InlineResponse2007Records.md) | | [optional] diff --git a/docs/InlineResponse2007Records.md b/docs/InlineResponse2007Records.md new file mode 100644 index 00000000..9603395d --- /dev/null +++ b/docs/InlineResponse2007Records.md @@ -0,0 +1,10 @@ +# CyberSource::InlineResponse2007Records + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**id** | **String** | | [optional] +**source_record** | [**InlineResponse2007SourceRecord**](InlineResponse2007SourceRecord.md) | | [optional] +**response_record** | [**InlineResponse2007ResponseRecord**](InlineResponse2007ResponseRecord.md) | | [optional] + + diff --git a/docs/InlineResponse2007ResponseRecord.md b/docs/InlineResponse2007ResponseRecord.md new file mode 100644 index 00000000..3a338f13 --- /dev/null +++ b/docs/InlineResponse2007ResponseRecord.md @@ -0,0 +1,17 @@ +# CyberSource::InlineResponse2007ResponseRecord + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**response** | **String** | Valid Values: * NAN * NED * ACL * CCH * CUR * NUP * UNA * ERR * DEC | [optional] +**reason** | **String** | | [optional] +**token** | **String** | | [optional] +**instrument_identifier_id** | **String** | | [optional] +**instrument_identifier_created** | **String** | Valid Values: * true * false | [optional] +**card_number** | **String** | | [optional] +**card_expiry_month** | **String** | | [optional] +**card_expiry_year** | **String** | | [optional] +**card_type** | **String** | | [optional] +**additional_updates** | [**Array<InlineResponse2007ResponseRecordAdditionalUpdates>**](InlineResponse2007ResponseRecordAdditionalUpdates.md) | | [optional] + + diff --git a/docs/InlineResponse2007ResponseRecordAdditionalUpdates.md b/docs/InlineResponse2007ResponseRecordAdditionalUpdates.md new file mode 100644 index 00000000..37b2fbe1 --- /dev/null +++ b/docs/InlineResponse2007ResponseRecordAdditionalUpdates.md @@ -0,0 +1,12 @@ +# CyberSource::InlineResponse2007ResponseRecordAdditionalUpdates + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**customer_id** | **String** | | [optional] +**payment_instrument_id** | **String** | | [optional] +**creator** | **String** | | [optional] +**state** | **String** | Valid Values: * ACTIVE * CLOSED | [optional] +**message** | **String** | | [optional] + + diff --git a/docs/InlineResponse2007SourceRecord.md b/docs/InlineResponse2007SourceRecord.md new file mode 100644 index 00000000..4f7f7003 --- /dev/null +++ b/docs/InlineResponse2007SourceRecord.md @@ -0,0 +1,15 @@ +# CyberSource::InlineResponse2007SourceRecord + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**token** | **String** | | [optional] +**customer_id** | **String** | | [optional] +**payment_instrument_id** | **String** | | [optional] +**instrument_identifier_id** | **String** | | [optional] +**card_number** | **String** | | [optional] +**card_expiry_month** | **String** | | [optional] +**card_expiry_year** | **String** | | [optional] +**card_type** | **String** | | [optional] + + diff --git a/docs/InlineResponse2012SetupsPayments.md b/docs/InlineResponse2012SetupsPayments.md index 9d021a82..6515ccae 100644 --- a/docs/InlineResponse2012SetupsPayments.md +++ b/docs/InlineResponse2012SetupsPayments.md @@ -20,5 +20,6 @@ Name | Type | Description | Notes **pay_by_link** | [**InlineResponse2012SetupsPaymentsDigitalPayments**](InlineResponse2012SetupsPaymentsDigitalPayments.md) | | [optional] **unified_checkout** | [**InlineResponse2012SetupsPaymentsDigitalPayments**](InlineResponse2012SetupsPaymentsDigitalPayments.md) | | [optional] **receivables_manager** | [**InlineResponse2012SetupsPaymentsDigitalPayments**](InlineResponse2012SetupsPaymentsDigitalPayments.md) | | [optional] +**service_fee** | [**InlineResponse2012SetupsPaymentsCardProcessing**](InlineResponse2012SetupsPaymentsCardProcessing.md) | | [optional] diff --git a/docs/InlineResponse4005.md b/docs/InlineResponse4005.md index 2c3d1826..ed54a91d 100644 --- a/docs/InlineResponse4005.md +++ b/docs/InlineResponse4005.md @@ -3,10 +3,10 @@ ## Properties 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: - INVALID_REQUEST | [optional] -**reason** | **String** | The reason of the status. Possible values: - MISSING_FIELD | [optional] -**message** | **String** | The detail message related to the status and reason listed above. | [optional] -**status_code** | **String** | HTTP status code of the submitted request. Possible values: - 500 | [optional] +**submit_time_utc** | **Date** | 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. | [optional] +**status** | **String** | The http status description of the submitted request. | [optional] +**reason** | **String** | Documented reason codes. Client should be able to use the key for generating their own error message Possible Values: - 'INVALID_DATA' - 'SYSTEM_ERROR' - 'RESOURCE_NOT_FOUND' | [optional] +**message** | **String** | Descriptive message for the error. | [optional] +**details** | [**Array<InlineResponse4005Details>**](InlineResponse4005Details.md) | | [optional] diff --git a/docs/InlineResponse4005Details.md b/docs/InlineResponse4005Details.md new file mode 100644 index 00000000..a19372e8 --- /dev/null +++ b/docs/InlineResponse4005Details.md @@ -0,0 +1,9 @@ +# CyberSource::InlineResponse4005Details + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**field** | **String** | This is the flattened JSON object field name/path that is either missing or invalid. | [optional] +**reason** | **String** | Possible reasons for the error. | [optional] + + diff --git a/docs/InlineResponse4006.md b/docs/InlineResponse4006.md index 3e47dcd1..d6542af6 100644 --- a/docs/InlineResponse4006.md +++ b/docs/InlineResponse4006.md @@ -3,10 +3,10 @@ ## Properties 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: - INVALID_REQUEST | [optional] -**reason** | **String** | The reason of the status. Possible values: - MISSING_FIELD - INVALID_DATA | [optional] -**message** | **String** | The detail message related to the status and reason listed above. | [optional] -**details** | [**Array<PtsV2PaymentsPost201ResponseErrorInformationDetails>**](PtsV2PaymentsPost201ResponseErrorInformationDetails.md) | | [optional] +**correlation_id** | **String** | | [optional] +**details** | [**Array<InlineResponse4006Details>**](InlineResponse4006Details.md) | | [optional] +**information_link** | **String** | | [optional] +**message** | **String** | | +**reason** | **String** | | diff --git a/docs/InlineResponse4006Details.md b/docs/InlineResponse4006Details.md new file mode 100644 index 00000000..55c88135 --- /dev/null +++ b/docs/InlineResponse4006Details.md @@ -0,0 +1,9 @@ +# CyberSource::InlineResponse4006Details + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**location** | **String** | | [optional] +**message** | **String** | | [optional] + + diff --git a/docs/InlineResponse4041.md b/docs/InlineResponse4041.md index a5c59c93..b5cb414e 100644 --- a/docs/InlineResponse4041.md +++ b/docs/InlineResponse4041.md @@ -7,6 +7,6 @@ Name | Type | Description | Notes **status** | **String** | The http status description of the submitted request. | [optional] **reason** | **String** | Documented reason codes. Client should be able to use the key for generating their own error message Possible Values: - 'RESOURCE_NOT_FOUND' | [optional] **message** | **String** | Descriptive message for the error. | [optional] -**details** | [**Array<InlineResponse4007Details>**](InlineResponse4007Details.md) | | [optional] +**details** | [**Array<InlineResponse4005Details>**](InlineResponse4005Details.md) | | [optional] diff --git a/docs/InlineResponse4221.md b/docs/InlineResponse4221.md index c51f6853..c0b3afe9 100644 --- a/docs/InlineResponse4221.md +++ b/docs/InlineResponse4221.md @@ -7,6 +7,6 @@ Name | Type | Description | Notes **status** | **String** | The http status description of the submitted request. | [optional] **reason** | **String** | Documented reason codes. Client should be able to use the key for generating their own error message Possible Values: - 'INVALID_DATA' | [optional] **message** | **String** | Descriptive message for the error. | [optional] -**details** | [**Array<InlineResponse4007Details>**](InlineResponse4007Details.md) | | [optional] +**details** | [**Array<InlineResponse4005Details>**](InlineResponse4005Details.md) | | [optional] diff --git a/docs/InlineResponse5002.md b/docs/InlineResponse5002.md index 09c6c347..c61b24ae 100644 --- a/docs/InlineResponse5002.md +++ b/docs/InlineResponse5002.md @@ -3,9 +3,9 @@ ## Properties 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 request. Possible values: - SERVER_ERROR | [optional] -**reason** | **String** | The reason of the status. Possible values: - SYSTEM_ERROR - SERVER_TIMEOUT - SERVICE_TIMEOUT | [optional] -**message** | **String** | The detail message related to the status and reason listed above. | [optional] +**submit_time_utc** | **Date** | 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. | [optional] +**status** | **String** | The http status description of the submitted request. | [optional] +**reason** | **String** | Documented reason codes. Client should be able to use the key for generating their own error message Possible Values: - 'SYSTEM_ERROR' | [optional] +**message** | **String** | Descriptive message for the error. | [optional] diff --git a/docs/ManageWebhooksApi.md b/docs/ManageWebhooksApi.md index f634a92e..48ae504f 100644 --- a/docs/ManageWebhooksApi.md +++ b/docs/ManageWebhooksApi.md @@ -58,7 +58,7 @@ No authorization required # **get_webhook_subscription_by_id** -> InlineResponse2005 get_webhook_subscription_by_id(webhook_id) +> InlineResponse2004 get_webhook_subscription_by_id(webhook_id) Get Details On a Single Webhook @@ -91,7 +91,7 @@ Name | Type | Description | Notes ### Return type -[**InlineResponse2005**](InlineResponse2005.md) +[**InlineResponse2004**](InlineResponse2004.md) ### Authorization @@ -105,7 +105,7 @@ No authorization required # **get_webhook_subscriptions_by_org** -> Array<InlineResponse2004> get_webhook_subscriptions_by_org(organization_id, product_id, event_type) +> Array<InlineResponse2003> get_webhook_subscriptions_by_org(organization_id, product_id, event_type) Get Details On All Created Webhooks @@ -144,7 +144,7 @@ Name | Type | Description | Notes ### Return type -[**Array<InlineResponse2004>**](InlineResponse2004.md) +[**Array<InlineResponse2003>**](InlineResponse2003.md) ### Authorization diff --git a/docs/MerchantBoardingApi.md b/docs/MerchantBoardingApi.md index 5e1116e3..1214518b 100644 --- a/docs/MerchantBoardingApi.md +++ b/docs/MerchantBoardingApi.md @@ -9,7 +9,7 @@ Method | HTTP request | Description # **get_registration** -> InlineResponse2002 get_registration(registration_id) +> InlineResponse2001 get_registration(registration_id) Gets all the information on a boarding registration @@ -42,7 +42,7 @@ Name | Type | Description | Notes ### Return type -[**InlineResponse2002**](InlineResponse2002.md) +[**InlineResponse2001**](InlineResponse2001.md) ### Authorization diff --git a/docs/PayerAuthConfigCardTypesVerifiedByVisaCurrencies.md b/docs/PayerAuthConfigCardTypesVerifiedByVisaCurrencies.md index 4d89da89..e37e7f7a 100644 --- a/docs/PayerAuthConfigCardTypesVerifiedByVisaCurrencies.md +++ b/docs/PayerAuthConfigCardTypesVerifiedByVisaCurrencies.md @@ -3,7 +3,7 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**currency_codes** | **Array<String>** | | [optional] +**currency_codes** | **Array<String>** | Supported currency codes are numeric ISO 4217 codes, such as 840 for US Dollar and 978 for Euro. For backward compatibility, we also support the 'ALL' code, which represents all currencies. In the UI, 'ALL' is displayed as 'Default'. | [optional] **acquirer_id** | **String** | The Acquirer ID value, often referred to as the Acquirer BIN, is specific to an Acquirer. The value is created by Cardinal in their system and the Acquirer may not know that the Acquirer ID is different from their Acquiring BIN. It is most often the Acquiring BIN + \"-1000\" but the trailing character can be different. **Note** We will need to double check with Cardinal before setting up the Portfolio Template in production. | [optional] **processor_merchant_id** | **String** | Processor Merchant ID is the Merchant ID assigned by your acquiring bank. This Merchant ID should also be used by your bank to register your account to the card scheme Directory Server for processing Payer Authentication services. | [optional] diff --git a/docs/PayerAuthSetupRequest.md b/docs/PayerAuthSetupRequest.md index 4ccc4e13..f49db23a 100644 --- a/docs/PayerAuthSetupRequest.md +++ b/docs/PayerAuthSetupRequest.md @@ -3,7 +3,7 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**client_reference_information** | [**Riskv1decisionsClientReferenceInformation**](Riskv1decisionsClientReferenceInformation.md) | | [optional] +**client_reference_information** | [**Riskv1authenticationsetupsClientReferenceInformation**](Riskv1authenticationsetupsClientReferenceInformation.md) | | [optional] **payment_information** | [**Riskv1authenticationsetupsPaymentInformation**](Riskv1authenticationsetupsPaymentInformation.md) | | [optional] **processing_information** | [**Riskv1authenticationsetupsProcessingInformation**](Riskv1authenticationsetupsProcessingInformation.md) | | [optional] **token_information** | [**Riskv1authenticationsetupsTokenInformation**](Riskv1authenticationsetupsTokenInformation.md) | | [optional] diff --git a/docs/PaymentsProducts.md b/docs/PaymentsProducts.md index 4b812f19..14188cd4 100644 --- a/docs/PaymentsProducts.md +++ b/docs/PaymentsProducts.md @@ -21,5 +21,6 @@ Name | Type | Description | Notes **pay_by_link** | [**PaymentsProductsTax**](PaymentsProductsTax.md) | | [optional] **unified_checkout** | [**PaymentsProductsTax**](PaymentsProductsTax.md) | | [optional] **receivables_manager** | [**PaymentsProductsTax**](PaymentsProductsTax.md) | | [optional] +**service_fee** | [**PaymentsProductsServiceFee**](PaymentsProductsServiceFee.md) | | [optional] diff --git a/docs/PaymentsProductsServiceFee.md b/docs/PaymentsProductsServiceFee.md new file mode 100644 index 00000000..74cabd6a --- /dev/null +++ b/docs/PaymentsProductsServiceFee.md @@ -0,0 +1,9 @@ +# CyberSource::PaymentsProductsServiceFee + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**subscription_information** | [**PaymentsProductsPayerAuthenticationSubscriptionInformation**](PaymentsProductsPayerAuthenticationSubscriptionInformation.md) | | [optional] +**configuration_information** | [**PaymentsProductsServiceFeeConfigurationInformation**](PaymentsProductsServiceFeeConfigurationInformation.md) | | [optional] + + diff --git a/docs/PaymentsProductsServiceFeeConfigurationInformation.md b/docs/PaymentsProductsServiceFeeConfigurationInformation.md new file mode 100644 index 00000000..fa72a1d2 --- /dev/null +++ b/docs/PaymentsProductsServiceFeeConfigurationInformation.md @@ -0,0 +1,8 @@ +# CyberSource::PaymentsProductsServiceFeeConfigurationInformation + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**configurations** | [**PaymentsProductsServiceFeeConfigurationInformationConfigurations**](PaymentsProductsServiceFeeConfigurationInformationConfigurations.md) | | [optional] + + diff --git a/docs/PaymentsProductsServiceFeeConfigurationInformationConfigurations.md b/docs/PaymentsProductsServiceFeeConfigurationInformationConfigurations.md new file mode 100644 index 00000000..d20d01c7 --- /dev/null +++ b/docs/PaymentsProductsServiceFeeConfigurationInformationConfigurations.md @@ -0,0 +1,12 @@ +# CyberSource::PaymentsProductsServiceFeeConfigurationInformationConfigurations + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**products** | [**Hash<String, PaymentsProductsServiceFeeConfigurationInformationConfigurationsProducts>**](PaymentsProductsServiceFeeConfigurationInformationConfigurationsProducts.md) | Products enabled for this account. The following values are supported: virtualTerminal paymentTokenizationOtp subscriptionsOtp virtualTerminalCp eCheck | [optional] +**terminal_id** | **String** | Identifier of the terminal at the retail location. | [optional] +**merchant_id** | **String** | Identifier of a merchant account. | [optional] +**merchant_information** | [**PaymentsProductsServiceFeeConfigurationInformationConfigurationsMerchantInformation**](PaymentsProductsServiceFeeConfigurationInformationConfigurationsMerchantInformation.md) | | [optional] +**payment_information** | [**Array<PaymentsProductsServiceFeeConfigurationInformationConfigurationsPaymentInformation>**](PaymentsProductsServiceFeeConfigurationInformationConfigurationsPaymentInformation.md) | | [optional] + + diff --git a/docs/PaymentsProductsServiceFeeConfigurationInformationConfigurationsMerchantInformation.md b/docs/PaymentsProductsServiceFeeConfigurationInformationConfigurationsMerchantInformation.md new file mode 100644 index 00000000..de8bfefb --- /dev/null +++ b/docs/PaymentsProductsServiceFeeConfigurationInformationConfigurationsMerchantInformation.md @@ -0,0 +1,10 @@ +# CyberSource::PaymentsProductsServiceFeeConfigurationInformationConfigurationsMerchantInformation + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**name** | **String** | Name of the merchant account. | [optional] +**contact** | **String** | Phone number of the primary contact for the merchant account. | [optional] +**state** | **String** | 2-character ISO code for the U.S. state in which the merchant is registered | [optional] + + diff --git a/docs/PaymentsProductsServiceFeeConfigurationInformationConfigurationsPaymentInformation.md b/docs/PaymentsProductsServiceFeeConfigurationInformationConfigurationsPaymentInformation.md new file mode 100644 index 00000000..1dc396d1 --- /dev/null +++ b/docs/PaymentsProductsServiceFeeConfigurationInformationConfigurationsPaymentInformation.md @@ -0,0 +1,12 @@ +# CyberSource::PaymentsProductsServiceFeeConfigurationInformationConfigurationsPaymentInformation + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**payment_type** | **String** | Payment types accepted by this merchant. The supported values are: MASTERDEBIT, MASTERCREDIT, VISACREDIT, VISADEBIT, DISCOVERCREDIT, AMEXCREDIT, ECHECK | [optional] +**fee_type** | **String** | Fee type for the selected payment type. Supported values are: Flat or Percentage. | [optional] +**fee_amount** | **Float** | Fee Amount of the selected payment type if you chose Flat fee type. | [optional] +**percentage** | **Float** | Percentage of the selected payment type if you chose Percentage Fee type. Supported values use numbers with decimals. For example, 1.0 | [optional] +**fee_cap** | **Float** | Fee cap for the selected payment type. Supported values use numbers with decimals. For example, 1.0 | [optional] + + diff --git a/docs/PaymentsProductsServiceFeeConfigurationInformationConfigurationsProducts.md b/docs/PaymentsProductsServiceFeeConfigurationInformationConfigurationsProducts.md new file mode 100644 index 00000000..a68731fd --- /dev/null +++ b/docs/PaymentsProductsServiceFeeConfigurationInformationConfigurationsProducts.md @@ -0,0 +1,8 @@ +# CyberSource::PaymentsProductsServiceFeeConfigurationInformationConfigurationsProducts + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**service_fee_enabled** | **BOOLEAN** | Boolean flag to determine if service fee will be applied to the Product. | [optional] + + diff --git a/docs/PtsV2PaymentsPost201ResponseEmbeddedActionsCONSUMERAUTHENTICATION.md b/docs/PtsV2PaymentsPost201ResponseEmbeddedActionsCONSUMERAUTHENTICATION.md index 5c72b78f..1ac03de7 100644 --- a/docs/PtsV2PaymentsPost201ResponseEmbeddedActionsCONSUMERAUTHENTICATION.md +++ b/docs/PtsV2PaymentsPost201ResponseEmbeddedActionsCONSUMERAUTHENTICATION.md @@ -3,7 +3,7 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**status** | **String** | The status for payerAuthentication 201 enroll and validate calls. Possible values are: - `AUTHENTICATION_SUCCESSFUL` - `PENDING_AUTHENTICATION` - `INVALID_REQUEST` - `AUTHENTICATION_FAILED` | [optional] +**status** | **String** | The status for payerAuthentication 201 enroll and validate calls. Possible values are: - `AUTHENTICATION_SUCCESSFUL` - `PENDING_AUTHENTICATION` - `AUTHENTICATION_FAILED` | [optional] **reason** | **String** | The reason of the status. Possible values are: - `INVALID_MERCHANT_CONFIGURATION` - `CONSUMER_AUTHENTICATION_REQUIRED` - `CONSUMER_AUTHENTICATION_FAILED` - `AUTHENTICATION_FAILED` | [optional] **message** | **String** | The message describing the reason of the status. Value is: - Encountered a Payer Authentication problem. Payer could not be authenticated. | [optional] diff --git a/docs/PtsV2PaymentsPost201ResponseProcessorInformation.md b/docs/PtsV2PaymentsPost201ResponseProcessorInformation.md index 29267745..5ea9bdeb 100644 --- a/docs/PtsV2PaymentsPost201ResponseProcessorInformation.md +++ b/docs/PtsV2PaymentsPost201ResponseProcessorInformation.md @@ -14,6 +14,7 @@ Name | Type | Description | Notes **response_category_code** | **String** | Processor-defined response category code. The associated detail error code is in the `processorInformation.responseCode` or `issuerInformation.responseCode` field of the service you requested. This field is supported only for: - Japanese issuers - Domestic transactions in Japan - Comercio Latino—processor transaction ID required for troubleshooting #### Maximum length for processors - Comercio Latino: 36 - All other processors: 3 | [optional] **forwarded_acquirer_code** | **String** | Name of the Japanese acquirer that processed the transaction. Returned only for JCN Gateway. Please contact the CyberSource Japan Support Group for more information. | [optional] **settlement_date** | **String** | Field contains a settlement date. The date is in mmdd format, where: mm = month and dd = day. | [optional] +**sequence_number** | **String** | This field serves as a unique identifier for initial and subsequent recurring transactions, specific to the payment brand, and is crucial for transaction tracking and recurrence management. Not all processors provide this value. Returned by the authorization service. | [optional] **avs** | [**PtsV2PaymentsPost201ResponseProcessorInformationAvs**](PtsV2PaymentsPost201ResponseProcessorInformationAvs.md) | | [optional] **card_verification** | [**PtsV2PaymentsPost201ResponseProcessorInformationCardVerification**](PtsV2PaymentsPost201ResponseProcessorInformationCardVerification.md) | | [optional] **merchant_advice** | [**PtsV2PaymentsPost201ResponseProcessorInformationMerchantAdvice**](PtsV2PaymentsPost201ResponseProcessorInformationMerchantAdvice.md) | | [optional] diff --git a/docs/Ptsv2paymentsProcessingInformationAuthorizationOptions.md b/docs/Ptsv2paymentsProcessingInformationAuthorizationOptions.md index c4465ed4..6e0915d7 100644 --- a/docs/Ptsv2paymentsProcessingInformationAuthorizationOptions.md +++ b/docs/Ptsv2paymentsProcessingInformationAuthorizationOptions.md @@ -25,5 +25,6 @@ Name | Type | Description | Notes **cash_advance_indicator** | **BOOLEAN** | This API field enables the merchant to indicate that a given transaction is Cash Advance. Cash advance or Cash disbursement functionality allows a merchant to dispense cash at a point of sale. It provides the ability of a POS system to act like an ATM. These terminals are typically seen in bank branches where customers can use their card and withdraw cash or at merchant locations where ATMs are sparse. Possible values: - `true` (Cash advance is supported) - `false` (default: cash advance is not supported) | [optional] **split_payment_transaction** | **BOOLEAN** | #### Visa Platform Connect Indicates split payment transaction. A split payment allows the use of two payment methods for a single transaction. Possible values: - `true` (split payment transaction is supported) - `false` (default: split payment transaction is not supported) | [optional] **card_verification_indicator** | **BOOLEAN** | This API field will indicate whether a card verification check is being performed during the transaction Possible values: - `true` - `false` (default value) | [optional] +**aft_indicator** | **BOOLEAN** | Indicates whether the transaction is an Account Funding Transaction (AFT). This field is mandatory for Account Funding Transactions (AFT). Possible values: - `true` (This is an AFT transaction) - `false` (default value) (This is not an AFT transaction) | [optional] diff --git a/docs/Ptsv2paymentsRecipientInformation.md b/docs/Ptsv2paymentsRecipientInformation.md index 566e64ac..d5a23452 100644 --- a/docs/Ptsv2paymentsRecipientInformation.md +++ b/docs/Ptsv2paymentsRecipientInformation.md @@ -3,10 +3,14 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**account_id** | **String** | Identifier for the recipient's account. Use the first six digits and last four digits of the recipient's account number. This field is a _pass-through_, which means that CyberSource does not verify the value or modify it in any way before sending it to the processor. If the field is not required for the transaction, CyberSource does not forward it to the processor. For details, see the `recipientInformation.accountId` field description in the [REST API Fields](https://developer.cybersource.com/content/dam/docs/cybs/en-us/apifields/reference/all/rest/api-fields.pdf) | [optional] -**last_name** | **String** | Recipient's last name. This field is a _passthrough_, which means that CyberSource does not verify the value or modify it in any way before sending it to the processor. If the field is not required for the transaction, CyberSource does not forward it to the processor. For details, see the `recipientInformation.lastName` field description in the [REST API Fields](https://developer.cybersource.com/content/dam/docs/cybs/en-us/apifields/reference/all/rest/api-fields.pdf) | [optional] -**middle_name** | **String** | Recipient's middle name. This field is a _passthrough_, which means that CyberSource does not verify the value or modify it in any way before sending it to the processor. If the field is not required for the transaction, CyberSource does not forward it to the processor. For details, see the `recipientInformation.middleName` field description in the [REST API Fields](https://developer.cybersource.com/content/dam/docs/cybs/en-us/apifields/reference/all/rest/api-fields.pdf) | [optional] +**account_id** | **String** | Identifier for the recipient's account. **Applicable for Barclays AFT transactions only.** It is mandatory for both Visa and Mastercard AFT. For Visa, the field has a maximum length of 34 character. For Mastercard, the field has a maximum length of 50 character. | [optional] +**account_type** | **String** | Identifies the recipient's account type. **Applicable for Barclays AFT transactions only.** This field is mandatory for Mastercard and not applicable for Visa AFT. Valid values are: - `00` for Other - `01` for Routing Transit Number (RTN) + Bank Account Number (BAN) - `02` for International Bank Account Number (IBAN) - `03` for Card Account - `06` for Bank Account Number (BAN) + Bank Identification Code (BIC), also known as a SWIFT code | [optional] +**first_name** | **String** | First name of the recipient. **Applicable for Barclays AFT transactions only.** The field is mandatory for both Visa and Mastercard AFT. Only alpha numeric values are supported. Special characters not in the standard ASCII character set, are not supported and will be stripped before being sent to Barclays. For Visa, the maximum length of First Name, Middle Name and Last Name is 30 characters. For Mastercard, the field has a maximum length of 35 characters. Values exceeding the above limits will be truncated. | [optional] +**last_name** | **String** | Last name of the recipient. **Applicable for Barclays AFT transactions only.** This field is optional for both Visa and Mastercard AFT. Only alpha numeric values are supported. Special characters not in the standard ASCII character set, are not supported and will be stripped before being sent to Barclays. For Visa, the maximum length of First Name, Middle Name and Last Name is 30 characters. For Mastercard, the field has a maximum length of 35 characters. Values exceeding these limits will be truncated. | [optional] +**middle_name** | **String** | Middle name of the recipient. **Applicable for Barclays AFT transactions only.** This field is optional for both Visa and Mastercard AFT. Only alpha numeric values are supported. Special characters not in the standard ASCII character set, are not supported and will be stripped before being sent to Barclays. For Visa, the maximum length of First Name, Middle Name and Last Name is 30 characters. For Mastercard, the field has a maximum length of 1 character. Values exceeding these limits will be truncated. | [optional] +**address1** | **String** | The street address of the recipient **Applicable for Barclays AFT transactions only.** This field is mandatory for Mastercard and not applicable for Visa AFT. Only alpha numeric values are supported. Special characters not in the standard ASCII character set are not supported and will be stripped before being sent to Barclays. The field has a maximum length of 50 characters. Values exceeding these limits will be truncated. | [optional] **postal_code** | **String** | Partial postal code for the recipient's address. For example, if the postal code is **NN5 7SG**, the value for this field should be the first part of the postal code: **NN5**. This field is a _pass-through_, which means that CyberSource does not verify the value or modify it in any way before sending it to the processor. If the field is not required for the transaction, CyberSource does not forward it to the processor. | [optional] +**country** | **String** | The country associated with the address of the recipient. **Applicable for Barclays AFT transactions only.** This field is mandatory for Mastercard and not applicable for Visa AFT. Must be a two character ISO country code. For example, see [ISO Country Code](https://developer.cybersource.com/docs/cybs/en-us/country-codes/reference/all/na/country-codes/country-codes.html) | [optional] **date_of_birth** | **String** | Recipient's date of birth. **Format**: `YYYYMMDD`. This field is a `pass-through`, which means that CyberSource ensures that the value is eight numeric characters but otherwise does not verify the value or modify it in any way before sending it to the processor. If the field is not required for the transaction, CyberSource does not forward it to the processor. | [optional] **beneficiary_id** | **String** | Only for e-wallets: ID, username, hash or anything uniquely identifying the ultimate beneficiary. | [optional] **beneficiary_name** | **String** | Only for e-wallets: The ultimate beneficiary's full name. | [optional] diff --git a/docs/Ptsv2paymentsSenderInformation.md b/docs/Ptsv2paymentsSenderInformation.md new file mode 100644 index 00000000..34e5134b --- /dev/null +++ b/docs/Ptsv2paymentsSenderInformation.md @@ -0,0 +1,14 @@ +# CyberSource::Ptsv2paymentsSenderInformation + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**first_name** | **String** | First name of the sender. **Applicable for Barclays AFT transactions only.** The field is mandatory for Visa and not applicable for Mastercard AFT. Only alpha numeric values are supported. Special characters not in the standard ASCII character set, are not supported and will be stripped before being sent to Barclays. For Visa, the maximum length of First Name, Middle Name and Last Name is 30 characters. Values exceeding the above limits will be truncated. | [optional] +**last_name** | **String** | Last name of the sender. **Applicable for Barclays AFT transactions only.** This field is optional for Visa and not applicable for Mastercard AFT. Only alpha numeric values are supported. Special characters not in the standard ASCII character set, are not supported and will be stripped before being sent to Barclays. For Visa, the maximum length of First Name, Middle Name and Last Name is 30 characters. Values exceeding these limits will be truncated. | [optional] +**middle_name** | **String** | Middle name of the sender. **Applicable for Barclays AFT transactions only.** The field is mandatory for Visa and not applicable for Mastercard AFT. Only alpha numeric values are supported. Special characters not in the standard ASCII character set, are not supported and will be stripped before being sent to Barclays. For Visa, the maximum length of First Name, Middle Name and Last Name is 30 characters. Values exceeding these limits will be truncated. | [optional] +**address1** | **String** | The street address of the sender. **Applicable for Barclays AFT transactions only.** The field is mandatory for Visa and not applicable for Mastercard AFT. Only alpha numeric values are supported. Special characters not in the standard ASCII character set are not supported and will be stripped before being sent to Barclays. The field has a maximum length of 35 characters. Values exceeding these limits will be truncated. | [optional] +**locality** | **String** | The city or locality of the sender.in **Applicable for Barclays AFT transactions only.** The field is optional for Visa and not applicable for Mastercard AFT. Only alpha numeric values are supported. Special characters not in the standard ASCII character set are not supported and will be stripped before being sent to Barclays. The field has a maximum length of 25 characters. Values exceeding these limits will be truncated. | [optional] +**administrative_area** | **String** | The state or province of the sender. **Applicable for Barclays AFT transactions only.** The field is mandatory for Visa AFT when the sender country is US or CA else it is optional for Visa AFT. This field is not applicable for Mastercard AFT. Must be a two character value | [optional] +**country_code** | **String** | The country associated with the address of the sender. **Applicable for Barclays AFT transactions only.** The field is mandatory for Visa and not applicable for Mastercard AFT. Must be a two character ISO country code. For example, see [ISO Country Code](https://developer.cybersource.com/docs/cybs/en-us/country-codes/reference/all/na/country-codes/country-codes.html) | [optional] + + diff --git a/docs/RiskV1AuthenticationResultsPost201Response.md b/docs/RiskV1AuthenticationResultsPost201Response.md index 4e6f1dc1..48b67a6a 100644 --- a/docs/RiskV1AuthenticationResultsPost201Response.md +++ b/docs/RiskV1AuthenticationResultsPost201Response.md @@ -6,8 +6,7 @@ Name | Type | Description | Notes **_links** | [**PtsV2IncrementalAuthorizationPatch201ResponseLinks**](PtsV2IncrementalAuthorizationPatch201ResponseLinks.md) | | [optional] **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] **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] -**submit_time_local** | **String** | Time that the transaction was submitted in local time. Generated by Cybersource. | [optional] -**status** | **String** | The status for payerAuthentication 201 enroll and validate calls. Possible values are: - `AUTHENTICATION_SUCCESSFUL` - `PENDING_AUTHENTICATION` - `INVALID_REQUEST` - `AUTHENTICATION_FAILED` | [optional] +**status** | **String** | The status for payerAuthentication 201 enroll and validate calls. Possible values are: - `AUTHENTICATION_SUCCESSFUL` - `PENDING_AUTHENTICATION` - `AUTHENTICATION_FAILED` | [optional] **message** | **String** | The message describing the reason of the status. Value is: - The cardholder is enrolled in Payer Authentication. Please authenticate the cardholder before continuing with the transaction. | [optional] **client_reference_information** | [**RiskV1DecisionsPost201ResponseClientReferenceInformation**](RiskV1DecisionsPost201ResponseClientReferenceInformation.md) | | [optional] **consumer_authentication_information** | [**RiskV1AuthenticationResultsPost201ResponseConsumerAuthenticationInformation**](RiskV1AuthenticationResultsPost201ResponseConsumerAuthenticationInformation.md) | | [optional] diff --git a/docs/RiskV1AuthenticationResultsPost201ResponseConsumerAuthenticationInformation.md b/docs/RiskV1AuthenticationResultsPost201ResponseConsumerAuthenticationInformation.md index 72681be6..98cd60ed 100644 --- a/docs/RiskV1AuthenticationResultsPost201ResponseConsumerAuthenticationInformation.md +++ b/docs/RiskV1AuthenticationResultsPost201ResponseConsumerAuthenticationInformation.md @@ -4,8 +4,11 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **acs_rendering_type** | **String** | Identifies the UI Type the ACS will use to complete the challenge. **NOTE**: Only available for App transactions using the Cardinal Mobile SDK. | [optional] +**acs_reference_number** | **String** | Unique identifier assigned by the EMVCo Secretariat upon Testing and Approval. | [optional] **acs_transaction_id** | **String** | Unique transaction identifier assigned by the ACS to identify a single transaction. | [optional] +**acs_operator_id** | **String** | Directory Server assigned ACS identifier. | [optional] **authentication_result** | **String** | Raw authentication data that comes from the cardissuing bank. Primary authentication field that indicates if authentication was successful and if liability shift occurred. You should examine first the result of this field. This field contains one of these values: - `-1`: Invalid PARes. - `0`: Successful validation. - `1`: Cardholder is not participating, but the attempt to authenticate was recorded. - `6`: Issuer unable to perform authentication. - `9`: Cardholder did not complete authentication. | [optional] +**authentication_type** | **String** | Indicates the type of authentication that will be used to challenge the card holder. Possible Values: 01 - Static 02 - Dynamic 03 - OOB (Out of Band) 04 - Decoupled 20 - OTP hosted at merchant end. (Rupay S2S flow) **NOTE**: EMV 3-D Secure version 2.1.0 supports values 01-03. Version 2.2.0 supports values 01-04. Decoupled authentication is not supported at this time. | [optional] **authentication_status_msg** | **String** | Message that explains the authenticationResult reply field. | [optional] **authentication_transaction_id** | **String** | Payer authentication transaction identifier is used to link the check enrollment and validate authentication messages. For Rupay, this field should be passed as request only for Resend OTP use case. | [optional] **authentication_transaction_context_id** | **String** | Payer authentication transaction identifier passed to link the validation and authorization calls. | [optional] @@ -13,8 +16,10 @@ Name | Type | Description | Notes **authorization_payload** | **String** | The Base64 encoded JSON Payload of CB specific Authorization Values returned in the challenge Flow | [optional] **cavv** | **String** | Unique identifier generated by the card-issuing bank for Visa, American Express, JCB, Diners Club, and Discover transactions after the customer is authenticated. The value is in base64. When you request the card authorization service, CyberSource automatically converts the value, not the field name, to the format required by your payment processor. | [optional] **cavv_algorithm** | **String** | Field that is returned only when the CAVV is generated, which occurs when paresStatus contains the values Y (successful authentication) or A (attempted authentication). If you use the ATOS processor, send the value of this field in the `cavv_algorithm` request field of the authorization service. This field contains one of these values: - `2`: Visa, American Express, JCB, Diners Club, and Discover - `3`: Mastercard | [optional] +**challenge_cancel_code** | **String** | An indicator as to why the transaction was canceled. Possible Values: - `01`: Cardholder selected Cancel. - `02`: Reserved for future EMVCo use (values invalid until defined by EMVCo). - `03`: Transaction Timed Out—Decoupled Authentication - `04`: Transaction timed out at ACS—other timeouts - `05`: Transaction Timed out at ACS - First CReq not received by ACS - `06`: Transaction Error - `07`: Unknown - `08`: Transaction Timed Out at SDK | [optional] **directory_server_error_code** | **String** | The directory server error code indicating a problem with this transaction. Note - Max Length of this field is typically 3 characters. | [optional] **directory_server_error_description** | **String** | Directory server text and additional detail about the error for this transaction. | [optional] +**effective_authentication_type** | **String** | This field describes the type of 3DS transaction flow that took place. It can be one of three possible flows; CH - Challenge FR - Frictionless FD - Frictionless with delegation, (challenge not generated by the issuer but by the scheme on behalf of the issuer). | [optional] **indicator** | **String** | Indicator used to differentiate Internet transactions from other types. The authentication failed if this field is not returned. For Visa, if your payment processor is Streamline, Barclays, AIBMS, or FDC Germany, you receive the value vbv_failure instead of internet when eci is 07. The value of this field is passed automatically to the authorization service if you request the services together. This field contains one of these values: - `aesk`: American Express SafeKey authentication verified successfully. - `aesk_attempted`: Card not enrolled in American Express SafeKey, but the attempt to authenticate was recorded. - `dipb`: Discover ProtectBuy authentication verified successfully. - `dipb_attempted`: Card not enrolled in Discover ProtectBuy, but the attempt to authenticate was recorded. - `internet`: Authentication was not verified successfully. - `js`: J/Secure authentication verified successfully. - `js_attempted`: Card not enrolled in J/Secure, but the attempt to authenticate was recorded. - `moto`: Mail or telephone order. - `pb_attempted`: Card not enrolled in Diners Club ProtectBuy, but the attempt to authenticate was recorded. - `recurring`: Recurring transaction. - `spa`: Mastercard Identity Check authentication verified successfully. - `spa_failure`: Mastercard Identity Check failed authentication. - `vbv`: Visa Secure authentication verified successfully. - `vbv_attempted`: Card not enrolled in Visa Secure, but the attempt to authenticate was recorded. - `vbv_failure`: Visa Secure authentication unavailable. | [optional] **interaction_counter** | **String** | Indicates the number of authentication cycles attempted by the cardholder and is tracked by the Issuing Banks ACS.Example: if customer gets the challenge window and enter in their one time password and hit submit then that interaction counter should just be 1. When customer gets the challenge window and the bank asks if they want to have the one time password sent to their phone or their email and they have to choose before going to the next screen to enter in their one time password then this interaction count would be 2. One for the selection of how they want the one time password delivered and another with them actually entering in the one time password and hitting the submit button. | [optional] **eci** | **String** | Note This field applies only to non-U.S-issued cards. For enroll, Numeric electronic commerce indicator (ECI) returned only for Visa, American Express, JCB, Diners Club, and Discover transactions when the card is not enrolled. For more information, see \"Interpreting the Reply,\" page 22. If you are not using the CyberSource payment services, you must send this value to your payment processor in the subsequent request for card authorization. This field contains one of these values: - `06`: The card can be enrolled. Liability shift. - `07`: The card cannot be enrolled. No liability shift. For validate, Numeric electronic commerce indicator (ECI) returned only for Visa, American Express, JCB, Diners Club, and Discover transactions. The field is absent when authentication fails. You must send this value to your payment processor in the subsequent request for card authorization. This field contains one of these values: - `05`: Successful authentication - `06`: Authentication attempted - `07`: Failed authentication (No response from the merchant because of a problem.) | [optional] diff --git a/docs/RiskV1AuthenticationsPost201Response.md b/docs/RiskV1AuthenticationsPost201Response.md index 7919760b..412ba63e 100644 --- a/docs/RiskV1AuthenticationsPost201Response.md +++ b/docs/RiskV1AuthenticationsPost201Response.md @@ -6,8 +6,7 @@ Name | Type | Description | Notes **_links** | [**PtsV2IncrementalAuthorizationPatch201ResponseLinks**](PtsV2IncrementalAuthorizationPatch201ResponseLinks.md) | | [optional] **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] **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] -**submit_time_local** | **String** | Time that the transaction was submitted in local time. Generated by Cybersource. | [optional] -**status** | **String** | The status for payerAuthentication 201 enroll and validate calls. Possible values are: - `AUTHENTICATION_SUCCESSFUL` - `PENDING_AUTHENTICATION` - `INVALID_REQUEST` - `AUTHENTICATION_FAILED` | [optional] +**status** | **String** | The status for payerAuthentication 201 enroll and validate calls. Possible values are: - `AUTHENTICATION_SUCCESSFUL` - `PENDING_AUTHENTICATION` - `AUTHENTICATION_FAILED` | [optional] **message** | **String** | The message describing the reason of the status. Value is: - The cardholder is enrolled in Payer Authentication. Please authenticate the cardholder before continuing with the transaction. | [optional] **client_reference_information** | [**RiskV1DecisionsPost201ResponseClientReferenceInformation**](RiskV1DecisionsPost201ResponseClientReferenceInformation.md) | | [optional] **order_information** | [**RiskV1DecisionsPost201ResponseOrderInformation**](RiskV1DecisionsPost201ResponseOrderInformation.md) | | [optional] diff --git a/docs/RiskV1AuthenticationsPost400Response1.md b/docs/RiskV1AuthenticationsPost400Response1.md index 5e7ad0e6..ca38fb51 100644 --- a/docs/RiskV1AuthenticationsPost400Response1.md +++ b/docs/RiskV1AuthenticationsPost400Response1.md @@ -4,7 +4,7 @@ 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 for payerAuthentication 201 enroll and validate calls. Value is: - `INVALID_REQUEST` | [optional] +**status** | **String** | The status for payerAuthentication 400 enroll and validate calls. Value is: - `INVALID_REQUEST` | [optional] **reason** | **String** | The reason of the status. Possible Values: - `MISSING_FIELD` - `INVALID_DATA` | [optional] **message** | **String** | The message describing the reason of the status. Value is: - Encountered a Payer Authentication problem. Payer could not be authenticated. | [optional] **details** | [**Array<PtsV2PaymentsPost201ResponseErrorInformationDetails>**](PtsV2PaymentsPost201ResponseErrorInformationDetails.md) | | [optional] diff --git a/docs/Riskv1authenticationresultsConsumerAuthenticationInformation.md b/docs/Riskv1authenticationresultsConsumerAuthenticationInformation.md index 15f5a271..4302f3ea 100644 --- a/docs/Riskv1authenticationresultsConsumerAuthenticationInformation.md +++ b/docs/Riskv1authenticationresultsConsumerAuthenticationInformation.md @@ -3,11 +3,9 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**authentication_transaction_id** | **String** | Payer authentication transaction identifier passed to link the check enrollment and validate authentication messages.For Rupay,this is passed only in Re-Send OTP usecase. **Note**: Required for Standard integration, Rupay Seamless server to server integration for enroll service. Required for Hybrid integration for validate service. | [optional] +**authentication_transaction_id** | **String** | Payer authentication transaction identifier passed to link the check enrollment and validate authentication messages.For Rupay,this is passed only in Re-Send OTP usecase. **Note**: Required for Standard integration, Rupay Seamless server to server integration for enroll service. Required for Hybrid integration for validate service. | **authentication_transaction_context** | **String** | Authentication transaction context is used as a unique identifier to link enroll and validate call. | [optional] **otp_token** | **String** | OTP entered by the card holder. | [optional] -**authentication_type** | **String** | Indicates the type of authentication that will be used to challenge the card holder. Possible Values: 01 - Static 02 - Dynamic 03 - OOB (Out of Band) 04 - Decoupled 20 - OTP hosted at merchant end. (Rupay S2S flow) **NOTE**: EMV 3-D Secure version 2.1.0 supports values 01-03. Version 2.2.0 supports values 01-04. Decoupled authentication is not supported at this time. | [optional] -**effective_authentication_type** | **String** | This field describes the type of 3DS transaction flow that took place. It can be one of three possible flows; CH - Challenge FR - Frictionless FD - Frictionless with delegation, (challenge not generated by the issuer but by the scheme on behalf of the issuer). | [optional] **response_access_token** | **String** | JWT returned by the 3D Secure provider when the authentication is complete. Required for Hybrid integration if you use the Cybersource-generated access token. Note: Max. length of this field is 2048 characters. | [optional] **signed_pares_status_reason** | **String** | Provides additional information as to why the PAResStatus has a specific value. | [optional] **signed_pares** | **String** | Payer authentication result (PARes) message returned by the card-issuing bank. If you need to show proof of enrollment checking, you may need to decrypt and parse the string for the information required by the payment card company. For more information, see \"Storing Payer Authentication Data,\" page 160. Important The value is in base64. You must remove all carriage returns and line feeds before adding the PARes to the request. | [optional] diff --git a/docs/Riskv1authenticationresultsPaymentInformationCard.md b/docs/Riskv1authenticationresultsPaymentInformationCard.md index 6c541d3a..e21322ed 100644 --- a/docs/Riskv1authenticationresultsPaymentInformationCard.md +++ b/docs/Riskv1authenticationresultsPaymentInformationCard.md @@ -3,7 +3,6 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**bin** | **String** | description: The BIN is the first six digits of the card's Primary Account Number (PAN). | [optional] **type** | **String** | Three-digit value that indicates the card type. **IMPORTANT** It is strongly recommended that you include the card type field in request messages even if it is optional for your processor and card type. Omitting the card type can cause the transaction to be processed with the wrong card type. Possible values: - `001`: Visa. For card-present transactions on all processors except SIX, the Visa Electron card type is processed the same way that the Visa debit card is processed. Use card type value `001` for Visa Electron. - `002`: Mastercard, Eurocard[^1], which is a European regional brand of Mastercard. - `003`: American Express - `004`: Discover - `005`: Diners Club - `006`: Carte Blanche[^1] - `007`: JCB[^1] - `014`: Enroute[^1] - `021`: JAL[^1] - `024`: Maestro (UK Domestic)[^1] - `031`: Delta[^1]: Use this value only for Ingenico ePayments. For other processors, use `001` for all Visa card types. - `033`: Visa Electron[^1]. Use this value only for Ingenico ePayments and SIX. For other processors, use `001` for all Visa card types. - `034`: Dankort[^1] - `036`: Cartes Bancaires[^1,4] - `037`: Carta Si[^1] - `039`: Encoded account number[^1] - `040`: UATP[^1] - `042`: Maestro (International)[^1] - `050`: Hipercard[^2,3] - `051`: Aura - `054`: Elo[^3] - `062`: China UnionPay - '070': EFTPOS [^1]: For this card type, you must include the `paymentInformation.card.type` or `paymentInformation.tokenizedCard.type` field in your request for an authorization or a stand-alone credit. [^2]: For this card type on Cielo 3.0, you must include the `paymentInformation.card.type` or `paymentInformation.tokenizedCard.type` field in a request for an authorization or a stand-alone credit. This card type is not supported on Cielo 1.5. [^3]: For this card type on Getnet and Rede, you must include the `paymentInformation.card.type` or `paymentInformation.tokenizedCard.type` field in a request for an authorization or a stand-alone credit. [^4]: For this card type, you must include the `paymentInformation.card.type` in your request for any payer authentication services. #### Used by **Authorization** Required for Carte Blanche and JCB. Optional for all other card types. #### Card Present reply This field is included in the reply message when the client software that is installed on the POS terminal uses the token management service (TMS) to retrieve tokenized payment details. You must contact customer support to have your account enabled to receive these fields in the credit reply message. Returned by the Credit service. This reply field is only supported by the following processors: - American Express Direct - Credit Mutuel-CIC - FDC Nashville Global - OmniPay Direct - SIX #### Google Pay transactions For PAN-based Google Pay transactions, this field is returned in the API response. #### GPX This field only supports transactions from the following card types: - Visa - Mastercard - AMEX - Discover - Diners - JCB - Union Pay International | [optional] **expiration_month** | **String** | Two-digit month in which the payment card expires. Format: `MM`. Valid values: `01` through `12`. Leading 0 is required. #### Barclays and Streamline For Maestro (UK Domestic) and Maestro (International) cards on Barclays and Streamline, this must be a valid value (`01` through `12`) but is not required to be a valid expiration date. In other words, an expiration date that is in the past does not cause CyberSource to reject your request. However, an invalid expiration date might cause the issuer to reject your request. #### Encoded Account Numbers For encoded account numbers (_type_=039), if there is no expiration date on the card, use `12`. #### FDMS Nashville Required field. #### All other processors Required if `pointOfSaleInformation.entryMode=keyed`. However, this field is optional if your account is configured for relaxed requirements for address data and expiration date. **Important** It is your responsibility to determine whether a field is required for the transaction you are requesting. #### Google Pay transactions For PAN-based Google Pay transactions, this field is returned in the API response. | [optional] **expiration_year** | **String** | Four-digit year in which the payment card expires. Format: `YYYY`. #### Barclays and Streamline For Maestro (UK Domestic) and Maestro (International) cards on Barclays and Streamline, this must be a valid value (`1900` through `3000`) but is not required to be a valid expiration date. In other words, an expiration date that is in the past does not cause CyberSource to reject your request. However, an invalid expiration date might cause the issuer to reject your request. #### Encoded Account Numbers For encoded account numbers (**_type_**`=039`), if there is no expiration date on the card, use `2021`. #### FDMS Nashville Required field. #### FDC Nashville Global and FDMS South You can send in 2 digits or 4 digits. If you send in 2 digits, they must be the last 2 digits of the year. #### All other processors Required if `pointOfSaleInformation.entryMode=keyed`. However, this field is optional if your account is configured for relaxed requirements for address data and expiration date. **Important** It is your responsibility to determine whether a field is required for the transaction you are requesting. #### Google Pay transactions For PAN-based Google Pay transactions, this field is returned in the API response. | [optional] diff --git a/docs/Riskv1authenticationsDeviceInformation.md b/docs/Riskv1authenticationsDeviceInformation.md index 1844a9e1..5c41e632 100644 --- a/docs/Riskv1authenticationsDeviceInformation.md +++ b/docs/Riskv1authenticationsDeviceInformation.md @@ -6,14 +6,14 @@ Name | Type | Description | Notes **ip_address** | **String** | IP address of the customer. #### Used by **Authorization, Capture, and Credit** Optional field. | [optional] **raw_data** | [**Array<Ptsv2paymentsDeviceInformationRawData>**](Ptsv2paymentsDeviceInformationRawData.md) | | [optional] **http_accept_browser_value** | **String** | Value of the Accept header sent by the customer's web browser. **Note** If the customer's browser provides a value, you must include it in your request. | [optional] -**http_accept_content** | **String** | The exact content of the HTTP accept header. | [optional] -**http_browser_language** | **String** | Value represents the browser language as defined in IETF BCP47. Example:en-US, refer https://en.wikipedia.org/wiki/IETF_language_tag for more details. | [optional] -**http_browser_java_enabled** | **BOOLEAN** | A Boolean value that represents the ability of the cardholder browser to execute Java. Value is returned from the navigator.javaEnabled property. Possible Values:True/False | [optional] +**http_accept_content** | **String** | The exact content of the HTTP accept header. | +**http_browser_language** | **String** | Value represents the browser language as defined in IETF BCP47. Example:en-US, refer https://en.wikipedia.org/wiki/IETF_language_tag for more details. | +**http_browser_java_enabled** | **BOOLEAN** | A Boolean value that represents the ability of the cardholder browser to execute Java. Value is returned from the navigator.javaEnabled property. Possible Values:True/False | **http_browser_java_script_enabled** | **BOOLEAN** | A Boolean value that represents the ability of the cardholder browser to execute JavaScript. Possible Values:True/False. **Note**: Merchants should be able to know the values from fingerprint details of cardholder's browser. | [optional] -**http_browser_color_depth** | **String** | Value represents the bit depth of the color palette for displaying images, in bits per pixel. Example : 24, refer https://en.wikipedia.org/wiki/Color_depth for more details | [optional] -**http_browser_screen_height** | **String** | Total height of the Cardholder's scree in pixels, example: 864. | [optional] -**http_browser_screen_width** | **String** | Total width of the cardholder's screen in pixels. Example: 1536. | [optional] -**http_browser_time_difference** | **String** | Time difference between UTC time and the cardholder browser local time, in minutes, Example:300 | [optional] -**user_agent_browser_value** | **String** | Value of the User-Agent header sent by the customer's web browser. Note If the customer's browser provides a value, you must include it in your request. | [optional] +**http_browser_color_depth** | **String** | Value represents the bit depth of the color palette for displaying images, in bits per pixel. Example : 24, refer https://en.wikipedia.org/wiki/Color_depth for more details | +**http_browser_screen_height** | **String** | Total height of the Cardholder's scree in pixels, example: 864. | +**http_browser_screen_width** | **String** | Total width of the cardholder's screen in pixels. Example: 1536. | +**http_browser_time_difference** | **String** | Time difference between UTC time and the cardholder browser local time, in minutes, Example:300 | +**user_agent_browser_value** | **String** | Value of the User-Agent header sent by the customer's web browser. Note If the customer's browser provides a value, you must include it in your request. | diff --git a/docs/Riskv1authenticationsPaymentInformation.md b/docs/Riskv1authenticationsPaymentInformation.md index d449f4f3..130ffd28 100644 --- a/docs/Riskv1authenticationsPaymentInformation.md +++ b/docs/Riskv1authenticationsPaymentInformation.md @@ -3,7 +3,7 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**card** | [**Riskv1authenticationsPaymentInformationCard**](Riskv1authenticationsPaymentInformationCard.md) | | [optional] +**card** | [**Riskv1authenticationsetupsPaymentInformationCard**](Riskv1authenticationsetupsPaymentInformationCard.md) | | [optional] **tokenized_card** | [**Riskv1authenticationsPaymentInformationTokenizedCard**](Riskv1authenticationsPaymentInformationTokenizedCard.md) | | [optional] **fluid_data** | [**Riskv1authenticationsetupsPaymentInformationFluidData**](Riskv1authenticationsetupsPaymentInformationFluidData.md) | | [optional] **customer** | [**Ptsv2paymentsPaymentInformationCustomer**](Ptsv2paymentsPaymentInformationCustomer.md) | | [optional] diff --git a/docs/Riskv1authenticationsetupsClientReferenceInformation.md b/docs/Riskv1authenticationsetupsClientReferenceInformation.md new file mode 100644 index 00000000..1130e9a6 --- /dev/null +++ b/docs/Riskv1authenticationsetupsClientReferenceInformation.md @@ -0,0 +1,11 @@ +# CyberSource::Riskv1authenticationsetupsClientReferenceInformation + +## 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] +**paused_request_id** | **String** | Used to resume a transaction that was paused for an order modification rule to allow for payer authentication to complete. To resume and continue with the authorization/decision service flow, call the services and include the request id from the prior decision call. | [optional] +**comments** | **String** | Brief description of the order or any comment you wish to add to the order. | [optional] +**partner** | [**Riskv1decisionsClientReferenceInformationPartner**](Riskv1decisionsClientReferenceInformationPartner.md) | | [optional] + + diff --git a/docs/Riskv1decisionsConsumerAuthenticationInformation.md b/docs/Riskv1decisionsConsumerAuthenticationInformation.md index 8ac65cfb..7a808c9f 100644 --- a/docs/Riskv1decisionsConsumerAuthenticationInformation.md +++ b/docs/Riskv1decisionsConsumerAuthenticationInformation.md @@ -4,7 +4,6 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **strong_authentication** | [**Riskv1decisionsConsumerAuthenticationInformationStrongAuthentication**](Riskv1decisionsConsumerAuthenticationInformationStrongAuthentication.md) | | [optional] -**authentication_type** | **String** | Indicates the type of authentication that will be used to challenge the card holder. Possible Values: 01 - Static 02 - Dynamic 03 - OOB (Out of Band) 04 - Decoupled 20 - OTP hosted at merchant end. (Rupay S2S flow) **NOTE**: EMV 3-D Secure version 2.1.0 supports values 01-03. Version 2.2.0 supports values 01-04. Decoupled authentication is not supported at this time. | [optional] **acs_window_size** | **String** | An override field that a merchant can pass in to set the challenge window size to display to the end cardholder. The ACS (Active Control Server) will reply with content that is formatted appropriately to this window size to allow for the best user experience. The sizes are width x height in pixels of the window displayed in the cardholder browser window. 01 - 250x400 02 - 390x400 03 - 500x600 04 - 600x400 05 - Full page | [optional] **alternate_authentication_data** | **String** | Data that documents and supports a specific authentication process. | [optional] **alternate_authentication_date** | **String** | Date and time in UTC of the cardholder authentication. Format: YYYYMMDDHHMM | [optional] @@ -19,7 +18,7 @@ Name | Type | Description | Notes **decoupled_authentication_indicator** | **String** | Indicates whether the 3DS Requestor requests the ACS to utilize Decoupled Authentication and agrees to utilize Decoupled Authentication if the ACS confirms its use. Possible Values: Y - Decoupled Authentication is supported and preferred if challenge is necessary N - Do not use Decoupled Authentication **Default Value**: N | [optional] **decoupled_authentication_max_time** | **String** | Indicates the maximum amount of time that the 3DS Requestor will wait for an ACS (Active control server) to provide the results of a Decoupled Authentication transaction (in minutes). Possible Values: Numeric values between 1 and 10080 accepted. | [optional] **default_card** | **BOOLEAN** | Indicates that the card being used is the one designated as the primary payment card for purchase. Recommended for Discover ProtectBuy. | [optional] -**device_channel** | **String** | Determines the channel that the transaction came through. Possible Values: SDK/Browser/3RI. 3RI - 3DS request initiated. | [optional] +**device_channel** | **String** | Determines the channel that the transaction came through. Possible Values: SDK/Browser/3RI. 3RI - 3DS request initiated. | **installment_total_count** | **Integer** | An integer value greater than 1 indicating the max number of permitted authorizations for installment payments. **Note** This is required if the merchant and cardholder have agreed to installment payments. | [optional] **merchant_fraud_rate** | **String** | Calculated by merchants as per PSD2** RTS** (EEA** card fraud divided by all EEA card volumes). Possible Values: 1 = Represents fraud rate <=1 2 = Represents fraud rate >1 and <=6 3 = Represents fraud rate >6 and <=13 4 = Represents fraud rate >13 and <=25 5 = Represents fraud rate >25 EEA** = European Economic Area RTS** = Regulatory Technical Standards PSD2** = Payment Services Directive | [optional] **marketing_opt_in** | **BOOLEAN** | Indicates whether the customer has opted in for marketing offers. Recommended for Discover ProtectBuy. | [optional] diff --git a/docs/ValidateRequest.md b/docs/ValidateRequest.md index f83f0d22..2d014b1b 100644 --- a/docs/ValidateRequest.md +++ b/docs/ValidateRequest.md @@ -3,7 +3,7 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**client_reference_information** | [**Riskv1decisionsClientReferenceInformation**](Riskv1decisionsClientReferenceInformation.md) | | [optional] +**client_reference_information** | [**Riskv1authenticationsetupsClientReferenceInformation**](Riskv1authenticationsetupsClientReferenceInformation.md) | | [optional] **processing_information** | [**Riskv1authenticationsetupsProcessingInformation**](Riskv1authenticationsetupsProcessingInformation.md) | | [optional] **order_information** | [**Riskv1authenticationresultsOrderInformation**](Riskv1authenticationresultsOrderInformation.md) | | [optional] **payment_information** | [**Riskv1authenticationresultsPaymentInformation**](Riskv1authenticationresultsPaymentInformation.md) | | [optional] diff --git a/generator/cybersource-rest-spec-ruby.json b/generator/cybersource-rest-spec-ruby.json index 60900a0a..72119046 100644 --- a/generator/cybersource-rest-spec-ruby.json +++ b/generator/cybersource-rest-spec-ruby.json @@ -216,10 +216,6 @@ "name": "surcharge", "description": "Surcharge service" }, - { - "name": "key-management", - "description": "Generate and deactivate batches of keys.\n" - }, { "name": "Merchant Boarding", "description": "Manage Boarding Registrations" @@ -306,7 +302,7 @@ }, { "name": "BIN_Lookup", - "description": "The BIN Lookup Service is a versatile business tool that provides card network agnostic solution designed to ensure frictionless transaction experience by utilizing up-to-date Bank Identification Number (BIN) attributes sourced from multiple global and regional data sources.\nThis service helps to improve authorization rates by helping to route transactions to the best-suited card network, minimizes fraud through card detail verification and aids in regulatory compliance by identifying card properties. The service is flexible and provides businesses \nwith a flexible choice of inputs such as primary account number (PAN), network token from major networks which includes device PAN (DPAN), and all types of tokens generated via CyberSource Token Management Service (TMS).\nCurrently, the range of available credentials is contingent on the networks enabled for the business entity. Therefore, the network information specified in this documentation is illustrative and subject to personalized offerings for each reseller or merchant.\n" + "description": "The BIN Lookup Service is a versatile business tool that provides card network agnostic solution designed to ensure frictionless transaction experience by utilizing up-to-date Bank Identification Number (BIN) attributes sourced from multiple global and regional data sources.\nThis service helps to improve authorization rates by helping to route transactions to the best-suited card network, minimizes fraud through card detail verification and aids in regulatory compliance by identifying card properties. The service is flexible and provides businesses with a flexible choice of inputs such as primary account number (PAN), network token from major networks which includes device PAN (DPAN), and all types of tokens generated via CyberSource Token Management Service (TMS).\nCurrently, the range of available credentials is contingent on the networks enabled for the business entity. Therefore, the network information specified in this documentation is illustrative and subject to personalized offerings for each reseller or merchant.\n" }, { "name": "Transaction_Details", @@ -338,9 +334,6 @@ { "name": "Fee Service" }, - { - "name": "Key_Management" - }, { "name": "Merchant_Boarding", "description": "For more information about Merchant Boarding, please see [Developer Guides Page](https://developer.cybersource.com/api/developer-guides/Merchant-Boarding-API_ditamap/Merchant-Boarding-API.html)." @@ -675,6 +668,10 @@ "cardVerificationIndicator": { "type": "boolean", "description": "This API field will indicate whether a card verification check is being performed during the transaction\n\nPossible values:\n - `true`\n - `false` (default value)\n" + }, + "aftIndicator": { + "type": "boolean", + "description": "Indicates whether the transaction is an Account Funding Transaction (AFT). \nThis field is mandatory for Account Funding Transactions (AFT). \n\nPossible values:\n - `true` (This is an AFT transaction)\n - `false` (default value) (This is not an AFT transaction)\n" } } }, @@ -2379,29 +2376,89 @@ } } }, + "senderInformation": { + "type": "object", + "properties": { + "firstName": { + "type": "string", + "maxLength": 30, + "description": "First name of the sender.\n\n**Applicable for Barclays AFT transactions only.**\nThe field is mandatory for Visa and not applicable for Mastercard AFT. \n\nOnly alpha numeric values are supported. \nSpecial characters not in the standard ASCII character set, are not supported and will be stripped before being sent to Barclays.\n\nFor Visa, the maximum length of First Name, Middle Name and Last Name is 30 characters. \nValues exceeding the above limits will be truncated.\n" + }, + "lastName": { + "type": "string", + "maxLength": 35, + "description": "Last name of the sender.\n\n**Applicable for Barclays AFT transactions only.**\nThis field is optional for Visa and not applicable for Mastercard AFT.\n\nOnly alpha numeric values are supported. \nSpecial characters not in the standard ASCII character set, are not supported and will be stripped before being sent to Barclays.\n\nFor Visa, the maximum length of First Name, Middle Name and Last Name is 30 characters. \nValues exceeding these limits will be truncated.\n" + }, + "middleName": { + "type": "string", + "maxLength": 30, + "description": "Middle name of the sender.\n\n**Applicable for Barclays AFT transactions only.**\nThe field is mandatory for Visa and not applicable for Mastercard AFT. \n\nOnly alpha numeric values are supported. \nSpecial characters not in the standard ASCII character set, are not supported and will be stripped before being sent to Barclays.\n\nFor Visa, the maximum length of First Name, Middle Name and Last Name is 30 characters. \nValues exceeding these limits will be truncated.\n" + }, + "address1": { + "type": "string", + "maxLength": 35, + "description": "The street address of the sender.\n \n**Applicable for Barclays AFT transactions only.**\nThe field is mandatory for Visa and not applicable for Mastercard AFT. \n \nOnly alpha numeric values are supported. \nSpecial characters not in the standard ASCII character set are not supported and will be stripped before being sent to Barclays. \n \nThe field has a maximum length of 35 characters. \nValues exceeding these limits will be truncated.\n" + }, + "locality": { + "type": "string", + "maxLength": 25, + "description": "The city or locality of the sender.in\n\n**Applicable for Barclays AFT transactions only.**\nThe field is optional for Visa and not applicable for Mastercard AFT. \n\nOnly alpha numeric values are supported. \nSpecial characters not in the standard ASCII character set are not supported and will be stripped before being sent to Barclays.\n\nThe field has a maximum length of 25 characters. \nValues exceeding these limits will be truncated.\n" + }, + "administrativeArea": { + "type": "string", + "maxLength": 2, + "description": "The state or province of the sender.\n\n**Applicable for Barclays AFT transactions only.**\nThe field is mandatory for Visa AFT when the sender country is US or CA else it is optional for Visa AFT.\nThis field is not applicable for Mastercard AFT.\n\nMust be a two character value\n" + }, + "countryCode": { + "type": "string", + "maxLength": 2, + "description": "The country associated with the address of the sender.\n\n**Applicable for Barclays AFT transactions only.**\nThe field is mandatory for Visa and not applicable for Mastercard AFT. \n\nMust be a two character ISO country code. \nFor example, see [ISO Country Code](https://developer.cybersource.com/docs/cybs/en-us/country-codes/reference/all/na/country-codes/country-codes.html)\n" + } + } + }, "recipientInformation": { "type": "object", "properties": { "accountId": { "type": "string", - "maxLength": 10, - "description": "Identifier for the recipient's account. Use the first six digits and last four digits of the recipient's account\nnumber. This field is a _pass-through_, which means that CyberSource does not verify the value or modify it in\nany way before sending it to the processor. If the field is not required for the transaction, CyberSource does\nnot forward it to the processor.\n\nFor details, see the `recipientInformation.accountId` field description in the [REST API Fields](https://developer.cybersource.com/content/dam/docs/cybs/en-us/apifields/reference/all/rest/api-fields.pdf)\n" + "maxLength": 50, + "description": "Identifier for the recipient's account.\n\n**Applicable for Barclays AFT transactions only.**\nIt is mandatory for both Visa and Mastercard AFT.\n\nFor Visa, the field has a maximum length of 34 character. \nFor Mastercard, the field has a maximum length of 50 character.\n" + }, + "accountType": { + "type": "string", + "maxLength": 2, + "description": "Identifies the recipient's account type.\n\n**Applicable for Barclays AFT transactions only.**\nThis field is mandatory for Mastercard and not applicable for Visa AFT.\n\nValid values are:\n - `00` for Other\n - `01` for Routing Transit Number (RTN) + Bank Account Number (BAN)\n - `02` for International Bank Account Number (IBAN)\n - `03` for Card Account\n - `06` for Bank Account Number (BAN) + Bank Identification Code (BIC), also known as a SWIFT code\n" + }, + "firstName": { + "type": "string", + "maxLength": 35, + "description": "First name of the recipient.\n\n**Applicable for Barclays AFT transactions only.**\nThe field is mandatory for both Visa and Mastercard AFT. \n\nOnly alpha numeric values are supported. \nSpecial characters not in the standard ASCII character set, are not supported and will be stripped before being sent to Barclays.\n\nFor Visa, the maximum length of First Name, Middle Name and Last Name is 30 characters. \nFor Mastercard, the field has a maximum length of 35 characters. \nValues exceeding the above limits will be truncated.\n" }, "lastName": { "type": "string", "maxLength": 35, - "description": "Recipient's last name. This field is a _passthrough_, which means that CyberSource does not verify the value or\nmodify it in any way before sending it to the processor. If the field is not required for the transaction,\nCyberSource does not forward it to the processor.\n\nFor details, see the `recipientInformation.lastName` field description in the [REST API Fields](https://developer.cybersource.com/content/dam/docs/cybs/en-us/apifields/reference/all/rest/api-fields.pdf)\n" + "description": "Last name of the recipient.\n\n**Applicable for Barclays AFT transactions only.**\nThis field is optional for both Visa and Mastercard AFT.\n\nOnly alpha numeric values are supported. \nSpecial characters not in the standard ASCII character set, are not supported and will be stripped before being sent to Barclays.\n\nFor Visa, the maximum length of First Name, Middle Name and Last Name is 30 characters. \nFor Mastercard, the field has a maximum length of 35 characters. \nValues exceeding these limits will be truncated.\n" }, "middleName": { "type": "string", - "maxLength": 35, - "description": "Recipient's middle name. This field is a _passthrough_, which means that CyberSource does not verify the value or\nmodify it in any way before sending it to the processor. If the field is not required for the transaction,\nCyberSource does not forward it to the processor.\n\nFor details, see the `recipientInformation.middleName` field description in the [REST API Fields](https://developer.cybersource.com/content/dam/docs/cybs/en-us/apifields/reference/all/rest/api-fields.pdf)\n" + "maxLength": 30, + "description": "Middle name of the recipient.\n\n**Applicable for Barclays AFT transactions only.**\nThis field is optional for both Visa and Mastercard AFT. \n\nOnly alpha numeric values are supported. \nSpecial characters not in the standard ASCII character set, are not supported and will be stripped before being sent to Barclays.\n\nFor Visa, the maximum length of First Name, Middle Name and Last Name is 30 characters. \nFor Mastercard, the field has a maximum length of 1 character. \nValues exceeding these limits will be truncated.\n" + }, + "address1": { + "type": "string", + "maxLength": 50, + "description": "The street address of the recipient\n \n**Applicable for Barclays AFT transactions only.**\nThis field is mandatory for Mastercard and not applicable for Visa AFT.\n \nOnly alpha numeric values are supported. \nSpecial characters not in the standard ASCII character set are not supported and will be stripped before being sent to Barclays. \n \nThe field has a maximum length of 50 characters. \nValues exceeding these limits will be truncated.\n" }, "postalCode": { "type": "string", "maxLength": 10, "description": "Partial postal code for the recipient's address. For example, if the postal code is **NN5 7SG**, the value for\nthis field should be the first part of the postal code: **NN5**. This field is a _pass-through_, which means that\nCyberSource does not verify the value or modify it in any way before sending it to the processor. If the field\nis not required for the transaction, CyberSource does not forward it to the processor.\n" }, + "country": { + "type": "string", + "maxLength": 2, + "description": "The country associated with the address of the recipient.\n\n**Applicable for Barclays AFT transactions only.**\nThis field is mandatory for Mastercard and not applicable for Visa AFT.\n\nMust be a two character ISO country code. \nFor example, see [ISO Country Code](https://developer.cybersource.com/docs/cybs/en-us/country-codes/reference/all/na/country-codes/country-codes.html)\n" + }, "dateOfBirth": { "type": "string", "maxLength": 8, @@ -5198,6 +5255,11 @@ "maxLength": 4, "description": "Field contains a settlement date. The date is in mmdd format, where: mm = month and dd = day.\n" }, + "sequenceNumber": { + "type": "string", + "maxLength": 50, + "description": "This field serves as a unique identifier for initial and subsequent recurring transactions, specific to the payment brand, and is crucial for transaction tracking and recurrence management. Not all processors provide this value.\nReturned by the authorization service.\n" + }, "avs": { "type": "object", "properties": { @@ -7131,7 +7193,7 @@ "properties": { "status": { "type": "string", - "description": "The status for payerAuthentication 201 enroll and validate calls. Possible values are:\n- `AUTHENTICATION_SUCCESSFUL`\n- `PENDING_AUTHENTICATION`\n- `INVALID_REQUEST`\n- `AUTHENTICATION_FAILED`\n" + "description": "The status for payerAuthentication 201 enroll and validate calls. Possible values are:\n- `AUTHENTICATION_SUCCESSFUL`\n- `PENDING_AUTHENTICATION`\n- `AUTHENTICATION_FAILED`\n" }, "reason": { "type": "string", @@ -7148,7 +7210,7 @@ "properties": { "status": { "type": "string", - "description": "The status for payerAuthentication 201 enroll and validate calls. Possible values are:\n- `AUTHENTICATION_SUCCESSFUL`\n- `PENDING_AUTHENTICATION`\n- `INVALID_REQUEST`\n- `AUTHENTICATION_FAILED`\n" + "description": "The status for payerAuthentication 201 enroll and validate calls. Possible values are:\n- `AUTHENTICATION_SUCCESSFUL`\n- `PENDING_AUTHENTICATION`\n- `AUTHENTICATION_FAILED`\n" }, "reason": { "type": "string", @@ -8574,6 +8636,63 @@ } }, "example30": { + "summary": "Account Funding Transaction", + "sample-name": "Process Account Funding Transaction", + "value": { + "clientReferenceInformation": { + "code": "RTS-AFT3-8" + }, + "processingInformation": { + "capture": true, + "commerceIndicator": "internet", + "businessApplicationId": "AA", + "authorizationOptions": { + "aftIndicator": true, + "ignoreAvsResult": true, + "ignoreCvResult": false + } + }, + "orderInformation": { + "billTo": { + "firstName": "Joe", + "middleName": "S", + "lastName": "Root", + "address1": "34 Orchard Grove", + "locality": "Southampton", + "postalCode": "DE6 1BE", + "country": "UK" + }, + "amountDetails": { + "totalAmount": "28.00", + "currency": "GBP" + } + }, + "paymentInformation": { + "card": { + "number": "4539791001730106", + "securityCode": "351", + "expirationMonth": "03", + "expirationYear": "2025", + "type": "001" + } + }, + "senderInformation": { + "firstName": "Joe", + "middleName": "S", + "lastName": "Root", + "address1": "34 Orchard Grove", + "locality": "Southampton", + "countryCode": "UK" + }, + "recipientInformation": { + "firstName": "Ben", + "middleName": "A", + "lastName": "Stokes", + "accountId": "4929421234600821" + } + } + }, + "example31": { "summary": "Electronic Check Debits", "sample-name": "Process Payment ECheck Debits", "value": { @@ -8611,7 +8730,7 @@ }, "parentTag": "Electronic Check(eCheck) and ServiceFees" }, - "example31": { + "example32": { "summary": "Electronic Check Debits with Legacy Token", "sample-name": "Process Payment ECheck Debits with Legacy Token", "value": { @@ -8645,7 +8764,7 @@ }, "parentTag": "Electronic Check(eCheck) and ServiceFees" }, - "example32": { + "example33": { "summary": "Service Fees with Credit Card transaction", "sample-name": "Process Payment Service Fees with Credit Card transaction", "value": { @@ -8688,7 +8807,7 @@ }, "parentTag": "Electronic Check(eCheck) and ServiceFees" }, - "example33": { + "example34": { "summary": "Authorization Using Swiped Track Data", "sample-name": "Authorization Using Swiped Track Data", "value": { @@ -8719,7 +8838,7 @@ }, "parentTag": "Card Present with Visa Platform Connect" }, - "example34": { + "example35": { "summary": "Sale Using Swiped Track Data with Visa Platform Connect", "sample-name": "Sale Using Swiped Track Data with Visa Platform Connect", "value": { @@ -8748,7 +8867,7 @@ }, "parentTag": "Card Present with Visa Platform Connect" }, - "example35": { + "example36": { "summary": "Sale Using Keyed Data with Visa Platform Connect", "sample-name": "Sale Using Keyed Data with Visa Platform Connect", "value": { @@ -8786,7 +8905,7 @@ }, "parentTag": "Card Present with Visa Platform Connect" }, - "example36": { + "example37": { "summary": "Sale Using Keyed Data with Balance Inquiry", "sample-name": "Sale Using Keyed Data with Balance Inquiry", "value": { @@ -8827,7 +8946,7 @@ }, "parentTag": "Card Present with Visa Platform Connect" }, - "example37": { + "example38": { "summary": "Sale Using EMV Technology with Contact Read with Visa Platform Connect", "sample-name": "Sale Using EMV Technology with Contact Read with Visa Platform Connect", "value": { @@ -8860,7 +8979,7 @@ }, "parentTag": "Card Present with Visa Platform Connect" }, - "example38": { + "example39": { "summary": "Sale Using EMV Technology with Contactless Read with Visa Platform Connect", "sample-name": "Sale Using EMV Technology with Contactless Read with Visa Platform Connect", "value": { @@ -8893,7 +9012,7 @@ }, "parentTag": "Card Present with Visa Platform Connect" }, - "example39": { + "example40": { "summary": "Authorization Using Bluefin PCI P2PE with Visa Platform Connect", "sample-name": "Authorization Using Bluefin PCI P2PE with Visa Platform Connect", "value": { @@ -8945,7 +9064,7 @@ }, "parentTag": "Card Present with Visa Platform Connect" }, - "example40": { + "example41": { "summary": "Restaurant Authorization", "sample-name": "Restaurant Authorization", "value": { @@ -8976,7 +9095,7 @@ }, "parentTag": "Card Present with Visa Platform Connect" }, - "example41": { + "example42": { "summary": "Sale Using EMV Technology with a Contactless", "sample-name": "Sale Using EMV Technology with a Contactless", "value": { @@ -9005,7 +9124,7 @@ }, "parentTag": "Card Present Enabled Acquirer" }, - "example42": { + "example43": { "summary": "Sale Using EMV Technology with Contact Read (One) for Card Present Enabled Acquirer", "sample-name": "Sale Using EMV Technology with Contact Read (One) for Card Present Enabled Acquirer", "value": { @@ -9035,7 +9154,7 @@ }, "parentTag": "Card Present Enabled Acquirer" }, - "example43": { + "example44": { "summary": "Swiped", "sample-name": "Swiped", "value": { @@ -9060,7 +9179,7 @@ }, "parentTag": "Card Present Enabled Acquirer" }, - "example44": { + "example45": { "summary": "Sale Using Swiped Track Data for Card Present Enabled Acquirer", "sample-name": "Sale Using Swiped Track Data for Card Present Enabled Acquirer", "value": { @@ -9086,7 +9205,7 @@ }, "parentTag": "Card Present Enabled Acquirer" }, - "example45": { + "example46": { "summary": "Sale Using Keyed Data for Card Present Enabled Acquirer", "sample-name": "Sale Using Keyed Data for Card Present Enabled Acquirer", "value": { @@ -9119,7 +9238,7 @@ }, "parentTag": "Card Present Enabled Acquirer" }, - "example46": { + "example47": { "summary": "American Express Direct - EMV with Contact Read", "sample-name": "American Express Direct - EMV with Contact Read", "value": { @@ -9166,7 +9285,7 @@ }, "parentTag": "Card Present Enabled Acquirer" }, - "example47": { + "example48": { "summary": "Sale Using EMV Technology with Contact Read (Two) for Card Present Enabled Acquirer", "sample-name": "Sale Using EMV Technology with Contact Read (Two) for Card Present Enabled Acquirer", "value": { @@ -9214,7 +9333,7 @@ }, "parentTag": "Card Present Enabled Acquirer" }, - "example48": { + "example49": { "summary": "Sale Using EMV Technology with Contactless Read for Card Present Enabled Acquirer", "sample-name": "Sale Using EMV Technology with Contactless Read for Card Present Enabled Acquirer", "value": { @@ -9262,7 +9381,7 @@ }, "parentTag": "Card Present Enabled Acquirer" }, - "example49": { + "example50": { "summary": "Authorization Using Bluefin PCI P2PE for Card Present Enabled Acquirer", "sample-name": "Authorization Using Bluefin PCI P2PE for Card Present Enabled Acquirer", "value": { @@ -9309,7 +9428,7 @@ }, "parentTag": "Card Present Enabled Acquirer" }, - "example50": { + "example51": { "summary": "Authorization with Instrument Identifier Token Id", "sample-name": "Authorization with Instrument Identifier Token Id", "value": { @@ -9349,7 +9468,7 @@ }, "parentTag": "Authorization using Tokens" }, - "example51": { + "example52": { "summary": "Authorization with Legacy Token", "sample-name": "Authorization with Legacy Token", "value": { @@ -9381,7 +9500,7 @@ }, "parentTag": "Authorization using Tokens" }, - "example52": { + "example53": { "summary": "Authorization with PA Enroll (Authentication Needed) & Customer Token Creation", "sample-name": "Authorization with PA Enroll (Authentication Needed) & Customer Token Creation", "value": { @@ -9441,7 +9560,7 @@ }, "parentTag": "Authorization with Token Create" }, - "example53": { + "example54": { "summary": "Authorization with Transit Tap Id", "sample-name": "Authorization with Transit Tap Id", "value": { @@ -9474,7 +9593,7 @@ }, "parentTag": "Authorization using Tokens" }, - "example54": { + "example55": { "summary": "Pin Debit Purchase Using Swiped Track Data with Visa Platform Connect", "sample-name": "Pin Debit Purchase Using Swiped Track Data with Visa Platform Connect", "value": { @@ -9515,7 +9634,7 @@ }, "parentTag": "Card Present with Visa Platform Connect" }, - "example55": { + "example56": { "summary": "Pin Debit Purchase Using EMV Contact with Visa Platform Connect", "sample-name": "Pin Debit Purchase Using EMV Contact with Visa Platform Connect", "value": { @@ -9560,7 +9679,7 @@ }, "parentTag": "Card Present with Visa Platform Connect" }, - "example56": { + "example57": { "summary": "Pin Debit Purchase Using EMV Technology with Contactless Read with Visa Platform Connect", "sample-name": "Pin Debit Purchase Using EMV Technology with Contactless Read with Visa Platform Connect", "value": { @@ -9602,7 +9721,7 @@ }, "parentTag": "Card Present with Visa Platform Connect" }, - "example57": { + "example58": { "summary": "Pin Debit Purchase with Cashback Request with Visa Platform Connect", "sample-name": "Pin Debit Purchase with Cashback Request with Visa Platform Connect", "value": { @@ -9645,7 +9764,7 @@ }, "parentTag": "Card Present with Visa Platform Connect" }, - "example58": { + "example59": { "summary": "Pin Debit Purchase Using EMV Contactless Balance Inquiry with Visa Platform Connect", "sample-name": "Pin Debit Purchase Using EMV Contactless Balance Inquiry with Visa Platform Connect", "value": { @@ -9690,7 +9809,7 @@ }, "parentTag": "Card Present with Visa Platform Connect" }, - "example59": { + "example60": { "summary": "EBT - Purchase from SNAP Account with Visa Platform Connect", "sample-name": "EBT - Purchase from SNAP Account with Visa Platform Connect", "value": { @@ -9736,7 +9855,7 @@ }, "parentTag": "Card Present with Visa Platform Connect" }, - "example60": { + "example61": { "summary": "EBT - Purchase from SNAP Account with Available Balance In Response with Visa Platform Connect", "sample-name": "EBT - Purchase from SNAP Account with Available Balance In Response with Visa Platform Connect", "value": { @@ -9782,7 +9901,7 @@ }, "parentTag": "Card Present with Visa Platform Connect" }, - "example61": { + "example62": { "summary": "EBT - Electronic Voucher Purchase from SNAP Account with Visa Platform Connect", "sample-name": "EBT - Electronic Voucher Purchase from SNAP Account with Visa Platform Connect", "value": { @@ -9831,7 +9950,7 @@ }, "parentTag": "Card Present with Visa Platform Connect" }, - "example62": { + "example63": { "summary": "EBT - Purchase from Cash Benefits Account with Cashback", "sample-name": "EBT - Purchase from Cash Benefits Account with Cashback", "value": { @@ -9881,7 +10000,7 @@ }, "parentTag": "Card Present with Visa Platform Connect" }, - "example63": { + "example64": { "summary": "SI Completion Amount>0", "sample-name": "SI Completion", "value": { @@ -9943,7 +10062,7 @@ } } }, - "example64": { + "example65": { "summary": "Redirectional SI Completion Amount > 0", "sample-name": "S2S SI Completion", "value": { @@ -10003,7 +10122,7 @@ } } }, - "example65": { + "example66": { "summary": "PIN-less Debit Purchase Using EMV Technology with Contactless Less Than or Equal to $50", "sample-name": "PIN-less Debit Purchase Using EMV Technology with Contactless Less Than or Equal to $50", "value": { @@ -58781,6 +58900,9 @@ }, "consumerAuthenticationInformation": { "type": "object", + "required": [ + "deviceChannel" + ], "properties": { "strongAuthentication": { "type": "object", @@ -58792,11 +58914,6 @@ } } }, - "authenticationType": { - "type": "string", - "maxLength": 2, - "description": "Indicates the type of authentication that will be used to challenge the card holder.\n\nPossible Values:\n\n01 - Static\n\n02 - Dynamic\n\n03 - OOB (Out of Band)\n\n04 - Decoupled\n\n20 - OTP hosted at merchant end. (Rupay S2S flow)\n**NOTE**: EMV 3-D Secure version 2.1.0 supports values 01-03. Version 2.2.0 supports values 01-04. Decoupled authentication is not supported at this time.\n" - }, "acsWindowSize": { "type": "string", "maxLength": 2, @@ -60685,9 +60802,6 @@ "properties": { "clientReferenceInformation": { "type": "object", - "required": [ - "code" - ], "properties": { "code": { "type": "string", @@ -61052,18 +61166,11 @@ "example0": { "summary": "Setup Completion with Card Number", "value": { - "clientReferenceInformation": { - "code": "cybs_test", - "partner": { - "developerId": "7891234", - "solutionId": "89012345" - } - }, "paymentInformation": { "card": { "expirationMonth": "12", "expirationYear": "2025", - "number": "4000000000000101", + "number": "4000000000002503", "type": "001" } } @@ -61088,9 +61195,6 @@ "example2": { "summary": "Setup Completion with Tokenized Card", "value": { - "clientReferenceInformation": { - "code": "cybs_test" - }, "paymentInformation": { "tokenizedCard": { "number": "4111111111111111", @@ -61178,9 +61282,6 @@ "properties": { "clientReferenceInformation": { "type": "object", - "required": [ - "code" - ], "properties": { "code": { "type": "string", @@ -61559,17 +61660,11 @@ "card": { "type": "object", "required": [ - "type", "expirationMonth", "expirationYear", "number" ], "properties": { - "bin": { - "type": "string", - "maxLength": 6, - "description": "description: The BIN is the first six digits of the card's Primary Account Number (PAN).\n" - }, "type": { "type": "string", "description": "Three-digit value that indicates the card type.\n\n**IMPORTANT** It is strongly recommended that you include the card type field in request messages even if it is\noptional for your processor and card type. Omitting the card type can cause the transaction to be processed with the wrong card type.\n\nPossible values:\n- `001`: Visa. For card-present transactions on all processors except SIX, the Visa Electron card type is processed the same way that the Visa debit card is processed. Use card type value `001` for Visa Electron.\n- `002`: Mastercard, Eurocard[^1], which is a European regional brand of Mastercard.\n- `003`: American Express\n- `004`: Discover\n- `005`: Diners Club\n- `006`: Carte Blanche[^1]\n- `007`: JCB[^1]\n- `014`: Enroute[^1]\n- `021`: JAL[^1]\n- `024`: Maestro (UK Domestic)[^1]\n- `031`: Delta[^1]: Use this value only for Ingenico ePayments. For other processors, use `001` for all Visa card types.\n- `033`: Visa Electron[^1]. Use this value only for Ingenico ePayments and SIX. For other processors, use `001` for all Visa card types.\n- `034`: Dankort[^1]\n- `036`: Cartes Bancaires[^1,4]\n- `037`: Carta Si[^1]\n- `039`: Encoded account number[^1]\n- `040`: UATP[^1]\n- `042`: Maestro (International)[^1]\n- `050`: Hipercard[^2,3]\n- `051`: Aura\n- `054`: Elo[^3]\n- `062`: China UnionPay\n- '070': EFTPOS\n\n[^1]: For this card type, you must include the `paymentInformation.card.type` or `paymentInformation.tokenizedCard.type` field in your request for an authorization or a stand-alone credit.\n[^2]: For this card type on Cielo 3.0, you must include the `paymentInformation.card.type` or `paymentInformation.tokenizedCard.type` field in a request for an authorization or a stand-alone credit. This card type is not supported on Cielo 1.5.\n[^3]: For this card type on Getnet and Rede, you must include the `paymentInformation.card.type` or `paymentInformation.tokenizedCard.type` field in a request for an authorization or a stand-alone credit.\n[^4]: For this card type, you must include the `paymentInformation.card.type` in your request for any payer authentication services.\n\n#### Used by\n**Authorization**\nRequired for Carte Blanche and JCB.\nOptional for all other card types.\n\n#### Card Present reply\nThis field is included in the reply message when the client software that is installed on the POS terminal uses\nthe token management service (TMS) to retrieve tokenized payment details. You must contact customer support to\nhave your account enabled to receive these fields in the credit reply message.\n\nReturned by the Credit service.\n\nThis reply field is only supported by the following processors:\n- American Express Direct\n- Credit Mutuel-CIC\n- FDC Nashville Global\n- OmniPay Direct\n- SIX\n\n#### Google Pay transactions\nFor PAN-based Google Pay transactions, this field is returned in the API response.\n\n#### GPX\nThis field only supports transactions from the following card types:\n- Visa\n- Mastercard\n- AMEX\n- Discover\n- Diners\n- JCB\n- Union Pay International\n" @@ -61763,6 +61858,16 @@ }, "deviceInformation": { "type": "object", + "required": [ + "userAgentBrowserValue", + "httpBrowserTimeDifference", + "httpBrowserScreenWidth", + "httpBrowserScreenHeight", + "httpBrowserLanguage", + "httpBrowserJavaEnabled", + "httpAcceptContent", + "httpBrowserColorDepth" + ], "properties": { "ipAddress": { "type": "string", @@ -61948,6 +62053,9 @@ }, "consumerAuthenticationInformation": { "type": "object", + "required": [ + "deviceChannel" + ], "properties": { "strongAuthentication": { "type": "object", @@ -61959,11 +62067,6 @@ } } }, - "authenticationType": { - "type": "string", - "maxLength": 2, - "description": "Indicates the type of authentication that will be used to challenge the card holder.\n\nPossible Values:\n\n01 - Static\n\n02 - Dynamic\n\n03 - OOB (Out of Band)\n\n04 - Decoupled\n\n20 - OTP hosted at merchant end. (Rupay S2S flow)\n**NOTE**: EMV 3-D Secure version 2.1.0 supports values 01-03. Version 2.2.0 supports values 01-04. Decoupled authentication is not supported at this time.\n" - }, "acsWindowSize": { "type": "string", "maxLength": 2, @@ -62359,13 +62462,9 @@ "type": "string", "description": "Time of request in UTC. Format: `YYYY-MM-DDThh:mm:ssZ`\n**Example** `2016-08-11T22:47:57Z` equals August 11, 2016, at 22:47:57 (10:47:57 p.m.).\nThe `T` separates the date and the time. The `Z` indicates UTC.\n\nReturned by Cybersource for all services.\n" }, - "submitTimeLocal": { - "type": "string", - "description": "Time that the transaction was submitted in local time. Generated by Cybersource." - }, "status": { "type": "string", - "description": "The status for payerAuthentication 201 enroll and validate calls. Possible values are:\n- `AUTHENTICATION_SUCCESSFUL`\n- `PENDING_AUTHENTICATION`\n- `INVALID_REQUEST`\n- `AUTHENTICATION_FAILED`\n" + "description": "The status for payerAuthentication 201 enroll and validate calls. Possible values are:\n- `AUTHENTICATION_SUCCESSFUL`\n- `PENDING_AUTHENTICATION`\n- `AUTHENTICATION_FAILED`\n" }, "message": { "type": "string", @@ -62710,7 +62809,7 @@ }, "status": { "type": "string", - "description": "The status for payerAuthentication 201 enroll and validate calls. Value is:\n- `INVALID_REQUEST`\n" + "description": "The status for payerAuthentication 400 enroll and validate calls. Value is:\n- `INVALID_REQUEST`\n" }, "reason": { "type": "string", @@ -62769,9 +62868,6 @@ "example0": { "summary": "Enroll with Pending Authentication", "value": { - "clientReferenceInformation": { - "code": "cybs_test" - }, "orderInformation": { "billTo": { "firstName": "John", @@ -62798,11 +62894,25 @@ "card": { "expirationMonth": "12", "expirationYear": "2025", - "number": "4000000000000101", + "number": "4000000000002503", "type": "001" } }, + "deviceInformation": { + "userAgentBrowserValue": "GxKnLy8TFDUFxJP1t", + "httpBrowserTimeDifference": "300", + "httpBrowserScreenWidth": "100000", + "httpBrowserScreenHeight": "100000", + "httpBrowserLanguage": "en_us", + "httpBrowserJavaScriptEnabled": "Y", + "httpBrowserJavaEnabled": "N", + "httpAcceptContent": "test", + "httpBrowserColorDepth": "24", + "fingerprintSessionId": "xyz", + "ipAddress": "139.130.4.5" + }, "consumerAuthenticationInformation": { + "deviceChannel": "BROWSER", "transactionMode": "eCommerce" } } @@ -62810,9 +62920,6 @@ "example1": { "summary": "Enroll with Travel Information", "value": { - "clientReferenceInformation": { - "code": "cybs_test" - }, "travelInformation": { "legs": [ { @@ -62867,10 +62974,24 @@ "type": "002", "expirationMonth": "12", "expirationYear": "2025", - "number": "5200340000000015" + "number": "5200000000002151" } }, + "deviceInformation": { + "userAgentBrowserValue": "GxKnLy8TFDUFxJP1t", + "httpBrowserTimeDifference": "300", + "httpBrowserScreenWidth": "100000", + "httpBrowserScreenHeight": "100000", + "httpBrowserLanguage": "en_us", + "httpBrowserJavaScriptEnabled": "Y", + "httpBrowserJavaEnabled": "N", + "httpAcceptContent": "test", + "httpBrowserColorDepth": "24", + "fingerprintSessionId": "xyz", + "ipAddress": "139.130.4.5" + }, "consumerAuthenticationInformation": { + "deviceChannel": "BROWSER", "transactionMode": "MOTO" } } @@ -62878,13 +62999,6 @@ "example2": { "summary": "Authentication with NO Redirect", "value": { - "clientReferenceInformation": { - "code": "cybs_test", - "partner": { - "developerId": "7891234", - "solutionId": "89012345" - } - }, "orderInformation": { "billTo": { "firstName": "John", @@ -62909,17 +63023,30 @@ "type": "001", "expirationMonth": "12", "expirationYear": "2025", - "number": "4000990000000004" + "number": "4000000000002701" } + }, + "deviceInformation": { + "userAgentBrowserValue": "GxKnLy8TFDUFxJP1t", + "httpBrowserTimeDifference": "300", + "httpBrowserScreenWidth": "100000", + "httpBrowserScreenHeight": "100000", + "httpBrowserLanguage": "en_us", + "httpBrowserJavaScriptEnabled": "Y", + "httpBrowserJavaEnabled": "N", + "httpAcceptContent": "test", + "httpBrowserColorDepth": "24", + "fingerprintSessionId": "xyz", + "ipAddress": "139.130.4.5" + }, + "consumerAuthenticationInformation": { + "deviceChannel": "BROWSER" } } }, "example3": { "summary": "Authentication with New Account", "value": { - "clientReferenceInformation": { - "code": "New Account" - }, "orderInformation": { "billTo": { "firstName": "John", @@ -62944,10 +63071,24 @@ "type": "001", "expirationMonth": "12", "expirationYear": "2025", - "number": "4000990000000004" + "number": "4000000000002701" } }, + "deviceInformation": { + "userAgentBrowserValue": "GxKnLy8TFDUFxJP1t", + "httpBrowserTimeDifference": "300", + "httpBrowserScreenWidth": "100000", + "httpBrowserScreenHeight": "100000", + "httpBrowserLanguage": "en_us", + "httpBrowserJavaScriptEnabled": "Y", + "httpBrowserJavaEnabled": "N", + "httpAcceptContent": "test", + "httpBrowserColorDepth": "24", + "fingerprintSessionId": "xyz", + "ipAddress": "139.130.4.5" + }, "consumerAuthenticationInformation": { + "deviceChannel": "BROWSER", "transactionMode": "MOTO" }, "riskInformation": { @@ -62964,11 +63105,8 @@ } }, "example4": { - "summary": "Pending Authentication with Unknown path", + "summary": "Pending Authentication with Tokenized Card", "value": { - "clientReferenceInformation": { - "code": "UNKNOWN" - }, "orderInformation": { "billTo": { "firstName": "John", @@ -62989,12 +63127,29 @@ } }, "paymentInformation": { - "card": { + "tokenizedCard": { + "transactionType": "1", "type": "001", - "expirationMonth": "12", + "expirationMonth": "11", "expirationYear": "2025", - "number": "4012001037490014" + "number": "4111111111111111" } + }, + "deviceInformation": { + "userAgentBrowserValue": "GxKnLy8TFDUFxJP1t", + "httpBrowserTimeDifference": "300", + "httpBrowserScreenWidth": "100000", + "httpBrowserScreenHeight": "100000", + "httpBrowserLanguage": "en_us", + "httpBrowserJavaScriptEnabled": "Y", + "httpBrowserJavaEnabled": "N", + "httpAcceptContent": "test", + "httpBrowserColorDepth": "24", + "fingerprintSessionId": "xyz", + "ipAddress": "139.130.4.5" + }, + "consumerAuthenticationInformation": { + "deviceChannel": "BROWSER" } } }, @@ -63084,9 +63239,6 @@ "properties": { "clientReferenceInformation": { "type": "object", - "required": [ - "code" - ], "properties": { "code": { "type": "string", @@ -63162,11 +63314,6 @@ "card": { "type": "object", "properties": { - "bin": { - "type": "string", - "maxLength": 6, - "description": "description: The BIN is the first six digits of the card's Primary Account Number (PAN).\n" - }, "type": { "type": "string", "description": "Three-digit value that indicates the card type.\n\n**IMPORTANT** It is strongly recommended that you include the card type field in request messages even if it is\noptional for your processor and card type. Omitting the card type can cause the transaction to be processed with the wrong card type.\n\nPossible values:\n- `001`: Visa. For card-present transactions on all processors except SIX, the Visa Electron card type is processed the same way that the Visa debit card is processed. Use card type value `001` for Visa Electron.\n- `002`: Mastercard, Eurocard[^1], which is a European regional brand of Mastercard.\n- `003`: American Express\n- `004`: Discover\n- `005`: Diners Club\n- `006`: Carte Blanche[^1]\n- `007`: JCB[^1]\n- `014`: Enroute[^1]\n- `021`: JAL[^1]\n- `024`: Maestro (UK Domestic)[^1]\n- `031`: Delta[^1]: Use this value only for Ingenico ePayments. For other processors, use `001` for all Visa card types.\n- `033`: Visa Electron[^1]. Use this value only for Ingenico ePayments and SIX. For other processors, use `001` for all Visa card types.\n- `034`: Dankort[^1]\n- `036`: Cartes Bancaires[^1,4]\n- `037`: Carta Si[^1]\n- `039`: Encoded account number[^1]\n- `040`: UATP[^1]\n- `042`: Maestro (International)[^1]\n- `050`: Hipercard[^2,3]\n- `051`: Aura\n- `054`: Elo[^3]\n- `062`: China UnionPay\n- '070': EFTPOS\n\n[^1]: For this card type, you must include the `paymentInformation.card.type` or `paymentInformation.tokenizedCard.type` field in your request for an authorization or a stand-alone credit.\n[^2]: For this card type on Cielo 3.0, you must include the `paymentInformation.card.type` or `paymentInformation.tokenizedCard.type` field in a request for an authorization or a stand-alone credit. This card type is not supported on Cielo 1.5.\n[^3]: For this card type on Getnet and Rede, you must include the `paymentInformation.card.type` or `paymentInformation.tokenizedCard.type` field in a request for an authorization or a stand-alone credit.\n[^4]: For this card type, you must include the `paymentInformation.card.type` in your request for any payer authentication services.\n\n#### Used by\n**Authorization**\nRequired for Carte Blanche and JCB.\nOptional for all other card types.\n\n#### Card Present reply\nThis field is included in the reply message when the client software that is installed on the POS terminal uses\nthe token management service (TMS) to retrieve tokenized payment details. You must contact customer support to\nhave your account enabled to receive these fields in the credit reply message.\n\nReturned by the Credit service.\n\nThis reply field is only supported by the following processors:\n- American Express Direct\n- Credit Mutuel-CIC\n- FDC Nashville Global\n- OmniPay Direct\n- SIX\n\n#### Google Pay transactions\nFor PAN-based Google Pay transactions, this field is returned in the API response.\n\n#### GPX\nThis field only supports transactions from the following card types:\n- Visa\n- Mastercard\n- AMEX\n- Discover\n- Diners\n- JCB\n- Union Pay International\n" @@ -63260,6 +63407,9 @@ }, "consumerAuthenticationInformation": { "type": "object", + "required": [ + "authenticationTransactionId" + ], "properties": { "authenticationTransactionId": { "type": "string", @@ -63276,16 +63426,6 @@ "maxLength": 255, "description": "OTP entered by the card holder.\n" }, - "authenticationType": { - "type": "string", - "maxLength": 2, - "description": "Indicates the type of authentication that will be used to challenge the card holder.\n\nPossible Values:\n\n01 - Static\n\n02 - Dynamic\n\n03 - OOB (Out of Band)\n\n04 - Decoupled\n\n20 - OTP hosted at merchant end. (Rupay S2S flow)\n**NOTE**: EMV 3-D Secure version 2.1.0 supports values 01-03. Version 2.2.0 supports values 01-04. Decoupled authentication is not supported at this time.\n" - }, - "effectiveAuthenticationType": { - "type": "string", - "maxLength": 2, - "description": "This field describes the type of 3DS transaction flow that took place. It can be one of three possible flows;\nCH - Challenge\nFR - Frictionless\nFD - Frictionless with delegation, (challenge not generated by the issuer but by the scheme on behalf of the issuer).\n" - }, "responseAccessToken": { "type": "string", "description": "JWT returned by the 3D Secure provider when the authentication is complete. Required for Hybrid integration if you use the Cybersource-generated access token. Note: Max. length of this field is 2048 characters.\n" @@ -63369,13 +63509,9 @@ "type": "string", "description": "Time of request in UTC. Format: `YYYY-MM-DDThh:mm:ssZ`\n**Example** `2016-08-11T22:47:57Z` equals August 11, 2016, at 22:47:57 (10:47:57 p.m.).\nThe `T` separates the date and the time. The `Z` indicates UTC.\n\nReturned by Cybersource for all services.\n" }, - "submitTimeLocal": { - "type": "string", - "description": "Time that the transaction was submitted in local time. Generated by Cybersource." - }, "status": { "type": "string", - "description": "The status for payerAuthentication 201 enroll and validate calls. Possible values are:\n- `AUTHENTICATION_SUCCESSFUL`\n- `PENDING_AUTHENTICATION`\n- `INVALID_REQUEST`\n- `AUTHENTICATION_FAILED`\n" + "description": "The status for payerAuthentication 201 enroll and validate calls. Possible values are:\n- `AUTHENTICATION_SUCCESSFUL`\n- `PENDING_AUTHENTICATION`\n- `AUTHENTICATION_FAILED`\n" }, "message": { "type": "string", @@ -63418,15 +63554,29 @@ "type": "string", "description": "Identifies the UI Type the ACS will use to complete the challenge. **NOTE**: Only available for App transactions using the Cardinal Mobile SDK.\n" }, + "acsReferenceNumber": { + "type": "string", + "maxLength": 50, + "description": "Unique identifier assigned by the EMVCo Secretariat upon Testing and Approval." + }, "acsTransactionId": { "type": "string", "maxLength": 36, "description": "Unique transaction identifier assigned by the ACS to identify a single transaction.\n" }, + "acsOperatorID": { + "type": "string", + "description": "Directory Server assigned ACS identifier." + }, "authenticationResult": { "type": "string", "description": "Raw authentication data that comes from the cardissuing bank. Primary authentication field that\nindicates if authentication was successful and if liability shift occurred. You should examine first the\nresult of this field. This field contains one of these values:\n- `-1`: Invalid PARes.\n- `0`: Successful validation.\n- `1`: Cardholder is not participating, but the attempt to authenticate was recorded.\n- `6`: Issuer unable to perform authentication.\n- `9`: Cardholder did not complete authentication.\n" }, + "authenticationType": { + "type": "string", + "maxLength": 2, + "description": "Indicates the type of authentication that will be used to challenge the card holder.\n\nPossible Values:\n\n01 - Static\n\n02 - Dynamic\n\n03 - OOB (Out of Band)\n\n04 - Decoupled\n\n20 - OTP hosted at merchant end. (Rupay S2S flow)\n**NOTE**: EMV 3-D Secure version 2.1.0 supports values 01-03. Version 2.2.0 supports values 01-04. Decoupled authentication is not supported at this time.\n" + }, "authenticationStatusMsg": { "type": "string", "description": "Message that explains the authenticationResult reply field.\n" @@ -63460,6 +63610,11 @@ "maxLength": 1, "description": "Field that is returned only when the CAVV is generated, which occurs when paresStatus\ncontains the values Y (successful authentication) or A (attempted authentication). If\nyou use the ATOS processor, send the value of this field in the `cavv_algorithm` request field of the\nauthorization service. This field contains one of these values:\n- `2`: Visa, American Express, JCB, Diners Club, and Discover\n- `3`: Mastercard\n" }, + "challengeCancelCode": { + "type": "string", + "maxLength": 2, + "description": "An indicator as to why the transaction was canceled.\nPossible Values:\n\n- `01`: Cardholder selected Cancel.\n- `02`: Reserved for future EMVCo use (values invalid until defined by EMVCo).\n- `03`: Transaction Timed Out\u2014Decoupled Authentication\n- `04`: Transaction timed out at ACS\u2014other timeouts\n- `05`: Transaction Timed out at ACS - First CReq not received by ACS\n- `06`: Transaction Error\n- `07`: Unknown\n- `08`: Transaction Timed Out at SDK\n" + }, "directoryServerErrorCode": { "type": "string", "description": "The directory server error code indicating a problem with this transaction. Note - Max Length of this field is typically 3 characters.\n" @@ -63469,6 +63624,11 @@ "maxLength": 4096, "description": "Directory server text and additional detail about the error for this transaction.\n" }, + "effectiveAuthenticationType": { + "type": "string", + "maxLength": 2, + "description": "This field describes the type of 3DS transaction flow that took place. It can be one of three possible flows;\nCH - Challenge\nFR - Frictionless\nFD - Frictionless with delegation, (challenge not generated by the issuer but by the scheme on behalf of the issuer).\n" + }, "indicator": { "type": "string", "description": "Indicator used to differentiate Internet transactions from other types. The authentication failed if this field\nis not returned. For Visa, if your payment processor is Streamline, Barclays, AIBMS, or FDC Germany,\nyou receive the value vbv_failure instead of internet when eci is 07.\nThe value of this field is passed automatically to the authorization service if you request the services\ntogether. This field contains one of these values:\n- `aesk`: American Express SafeKey authentication verified successfully.\n- `aesk_attempted`: Card not enrolled in American Express SafeKey, but the attempt to authenticate was recorded.\n- `dipb`: Discover ProtectBuy authentication verified successfully.\n- `dipb_attempted`: Card not enrolled in Discover ProtectBuy, but the attempt to authenticate was recorded.\n- `internet`: Authentication was not verified successfully.\n- `js`: J/Secure authentication verified successfully.\n- `js_attempted`: Card not enrolled in J/Secure, but the attempt to authenticate was recorded.\n- `moto`: Mail or telephone order.\n- `pb_attempted`: Card not enrolled in Diners Club ProtectBuy, but the attempt to authenticate was recorded.\n- `recurring`: Recurring transaction.\n- `spa`: Mastercard Identity Check authentication verified successfully.\n- `spa_failure`: Mastercard Identity Check failed authentication.\n- `vbv`: Visa Secure authentication verified successfully.\n- `vbv_attempted`: Card not enrolled in Visa Secure, but the attempt to authenticate was recorded.\n- `vbv_failure`: Visa Secure authentication unavailable.\n" @@ -63577,7 +63737,7 @@ }, "status": { "type": "string", - "description": "The status for payerAuthentication 201 enroll and validate calls. Value is:\n- `INVALID_REQUEST`\n" + "description": "The status for payerAuthentication 400 enroll and validate calls. Value is:\n- `INVALID_REQUEST`\n" }, "reason": { "type": "string", @@ -63636,36 +63796,9 @@ "example0": { "summary": "Validate authentication results", "value": { - "clientReferenceInformation": { - "code": "pavalidatecheck", - "partner": { - "developerId": "7891234", - "solutionId": "89012345" - } - }, - "orderInformation": { - "amountDetails": { - "currency": "USD", - "totalAmount": "200.00" - }, - "lineItems": [ - { - "unitPrice": "10", - "quantity": "2", - "taxAmount": "32.40", - "passenger": { - "firstName": "John", - "lastName": "Doe" - } - } - ] - }, "paymentInformation": { "card": { - "type": "002", - "expirationMonth": "12", - "expirationYear": "2025", - "number": "5200000000000007" + "type": "002" } }, "consumerAuthenticationInformation": { @@ -73065,7 +73198,7 @@ "/bin/v1/binlookup": { "post": { "summary": "BIN Lookup API", - "description": "The BIN Lookup Service is a versatile business tool that provides card network agnostic solution designed to ensure frictionless transaction experience by utilizing up-to-date Bank Identification Number (BIN) attributes sourced from multiple global and regional data sources.\nThis service helps to improve authorization rates by helping to route transactions to the best-suited card network, minimizes fraud through card detail verification and aids in regulatory compliance by identifying card properties. The service is flexible and provides businesses \nwith a flexible choice of inputs such as primary account number (PAN), network token from major networks which includes device PAN (DPAN), and all types of tokens generated via CyberSource Token Management Service (TMS).\nCurrently, the range of available credentials is contingent on the networks enabled for the business entity. Therefore, the network information specified in this documentation is illustrative and subject to personalized offerings for each reseller or merchant.\n", + "description": "The BIN Lookup Service is a versatile business tool that provides card network agnostic solution designed to ensure frictionless transaction experience by utilizing up-to-date Bank Identification Number (BIN) attributes sourced from multiple global and regional data sources.\nThis service helps to improve authorization rates by helping to route transactions to the best-suited card network, minimizes fraud through card detail verification and aids in regulatory compliance by identifying card properties. The service is flexible and provides businesses with a flexible choice of inputs such as primary account number (PAN), network token from major networks which includes device PAN (DPAN), and all types of tokens generated via CyberSource Token Management Service (TMS).\nCurrently, the range of available credentials is contingent on the networks enabled for the business entity. Therefore, the network information specified in this documentation is illustrative and subject to personalized offerings for each reseller or merchant.\n", "tags": [ "Bin Lookup" ], @@ -73079,6 +73212,12 @@ "disableProcessorDropDown": true, "SDK_ONLY_AddDisclaimer": true }, + "consumes": [ + "application/json;charset=utf-8" + ], + "produces": [ + "application/json;charset=utf-8" + ], "parameters": [ { "name": "createBinLookupRequest", @@ -89994,2615 +90133,10 @@ } } }, - "502": { - "description": "Unexpected system error or system timeout.", - "schema": { - "title": "vasV2PaymentsPost502Response", - "type": "object", - "properties": { - "submitTimeUtc": { - "type": "string", - "description": "Time of request in UTC. Format: `YYYY-MM-DDThh:mm:ssZ`\n**Example** `2016-08-11T22:47:57Z` equals August 11, 2016, at 22:47:57 (10:47:57 p.m.).\nThe `T` separates the date and the time. The `Z` indicates UTC.\n\nReturned by Cybersource for all services.\n" - }, - "status": { - "type": "string", - "description": "The status of the submitted transaction.\n\nPossible values:\n - SERVER_ERROR\n" - }, - "reason": { - "type": "string", - "description": "The reason of the status.\n\nPossible values:\n - SYSTEM_ERROR\n - SERVER_TIMEOUT\n - SERVICE_TIMEOUT\n" - }, - "message": { - "type": "string", - "description": "The detail message related to the status and reason listed above." - } - } - } - } - }, - "x-example": { - "example0": { - "summary": "Basic Tax Calculation Request", - "sample-name": "Tax Calculation", - "value": { - "clientReferenceInformation": { - "code": "TAX_TC001" - }, - "orderInformation": { - "billTo": { - "country": "US", - "address1": "1 Market St", - "postalCode": 94105, - "locality": "San Francisco", - "administrativeArea": "CA" - }, - "amountDetails": { - "currency": "USD" - }, - "lineItems": [ - { - "productSKU": "07-12-00657", - "productName": "Chewing Gum", - "productCode": 50161815, - "quantity": 1, - "unitPrice": 1200 - }, - { - "productSKU": "07-12-00659", - "productName": "Sugar Cookies", - "productCode": 50181905, - "quantity": 1, - "unitPrice": 1240 - }, - { - "productSKU": "07-12-00658", - "productName": "Carbonated Water", - "productCode": 5020.11, - "quantity": 1, - "unitPrice": 9001 - } - ] - }, - "taxInformation": { - "showTaxPerLineItem": "Yes" - } - } - }, - "example1": { - "summary": "Tax Refund Request", - "sample-name": "Tax Refund Calculation", - "value": { - "clientReferenceInformation": { - "code": "TAX_TC001" - }, - "orderInformation": { - "billTo": { - "country": "US", - "address1": "1 Market St", - "postalCode": 94105, - "locality": "San Francisco", - "administrativeArea": "CA" - }, - "shipTo": { - "country": "US", - "address1": "123 Russel St.", - "postalCode": 32401, - "locality": "Panama City", - "administrativeArea": "FL" - }, - "shippingDetails": { - "shipFromCountry": "CA", - "shipFromLocality": "Cambridge Bay", - "shipFromAdministrativeArea": "NL", - "shipFromPostalCode": "A0G 1T0" - }, - "amountDetails": { - "currency": "USD" - }, - "lineItems": [ - { - "productSKU": "07-12-00657", - "productName": "Chewing Gum", - "productCode": 50161815, - "quantity": 1, - "unitPrice": 1200 - }, - { - "productSKU": "07-12-00659", - "productName": "Sugar Cookies", - "productCode": 50181905, - "quantity": 1, - "unitPrice": 1240 - }, - { - "productSKU": "07-12-00658", - "productName": "Carbonated Water", - "productCode": 5020.11, - "quantity": 1, - "unitPrice": 9001 - } - ] - }, - "taxInformation": { - "showTaxPerLineItem": "Yes", - "refundIndicator": true - }, - "merchantInformation": { - "vatRegistrationNumber": "abcdef" - } - } - }, - "example2": { - "summary": "Committed Tax Call Request", - "sample-name": "Committed Tax Calculation", - "value": { - "clientReferenceInformation": { - "code": "TAX_TC001" - }, - "orderInformation": { - "billTo": { - "country": "US", - "address1": "1 Market St", - "postalCode": 94105, - "locality": "San Francisco", - "administrativeArea": "CA" - }, - "shipTo": { - "country": "US", - "address1": "123 Russel St.", - "postalCode": 32401, - "locality": "Panama City", - "administrativeArea": "FL" - }, - "shippingDetails": { - "shipFromCountry": "CA", - "shipFromLocality": "Cambridge Bay", - "shipFromAdministrativeArea": "NL", - "shipFromPostalCode": "A0G 1T0" - }, - "amountDetails": { - "currency": "USD" - }, - "lineItems": [ - { - "productSKU": "07-12-00657", - "productName": "Chewing Gum", - "productCode": 50161815, - "quantity": 1, - "unitPrice": 1200 - }, - { - "productSKU": "07-12-00659", - "productName": "Sugar Cookies", - "productCode": 50181905, - "quantity": 1, - "unitPrice": 1240 - }, - { - "productSKU": "07-12-00658", - "productName": "Carbonated Water", - "productCode": 5020.11, - "quantity": 1, - "unitPrice": 9001 - } - ] - }, - "taxInformation": { - "showTaxPerLineItem": "Yes", - "commitIndicator": true - }, - "merchantInformation": { - "vatRegistrationNumber": "abcdef" - } - } - }, - "example3": { - "summary": "Committed Tax Refund Call Request", - "sample-name": "Committed Tax Refund Calculation", - "value": { - "clientReferenceInformation": { - "code": "TAX_TC001" - }, - "orderInformation": { - "billTo": { - "country": "US", - "address1": "1 Market St", - "postalCode": 94105, - "locality": "San Francisco", - "administrativeArea": "CA" - }, - "shipTo": { - "country": "US", - "address1": "123 Russel St.", - "postalCode": 32401, - "locality": "Panama City", - "administrativeArea": "FL" - }, - "shippingDetails": { - "shipFromCountry": "CA", - "shipFromLocality": "Cambridge Bay", - "shipFromAdministrativeArea": "NL", - "shipFromPostalCode": "A0G 1T0" - }, - "amountDetails": { - "currency": "USD" - }, - "lineItems": [ - { - "productSKU": "07-12-00657", - "productName": "Chewing Gum", - "productCode": 50161815, - "quantity": 1, - "unitPrice": 1200 - }, - { - "productSKU": "07-12-00659", - "productName": "Sugar Cookies", - "productCode": 50181905, - "quantity": 1, - "unitPrice": 1240 - }, - { - "productSKU": "07-12-00658", - "productName": "Carbonated Water", - "productCode": 5020.11, - "quantity": 1, - "unitPrice": 9001 - } - ] - }, - "taxInformation": { - "showTaxPerLineItem": "Yes", - "commitIndicator": true, - "refundIndicator": true - }, - "merchantInformation": { - "vatRegistrationNumber": "abcdef" - } - } - } - } - } - }, - "/vas/v2/tax/{id}": { - "patch": { - "summary": "Void Taxes", - "description": "Pass the Tax Request ID in the PATCH request to void the committed tax calculation.", - "tags": [ - "taxes" - ], - "operationId": "voidTax", - "x-devcenter-metaData": { - "categoryTag": "Value_Added_Service" - }, - "parameters": [ - { - "name": "voidTaxRequest", - "in": "body", - "required": true, - "schema": { - "type": "object", - "properties": { - "clientReferenceInformation": { - "type": "object", - "properties": { - "code": { - "type": "string", - "maxLength": 50, - "description": "Merchant-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" - }, - "comments": { - "type": "string", - "description": "Brief description of the order or any comment you wish to add to the order." - }, - "partner": { - "type": "object", - "properties": { - "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" - }, - "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" - } - } - } - } - } - } - } - }, - { - "name": "id", - "in": "path", - "description": "The tax ID returned from a previous request.", - "required": true, - "type": "string" - } - ], - "responses": { - "200": { - "description": "Successful response.", - "schema": { - "title": "vasV2TaxVoid200Response", - "type": "object", - "properties": { - "id": { - "type": "string", - "maxLength": 26, - "description": "An unique identification number generated by Cybersource to identify the submitted request. Returned by all services.\nIt is also appended to the endpoint of the resource.\nOn incremental authorizations, this value with be the same as the identification number returned in the original authorization response.\n" - }, - "submitTimeUtc": { - "type": "string", - "description": "Time of request in UTC. Format: `YYYY-MM-DDThh:mm:ssZ`\n**Example** `2016-08-11T22:47:57Z` equals August 11, 2016, at 22:47:57 (10:47:57 p.m.).\nThe `T` separates the date and the time. The `Z` indicates UTC.\n\nReturned by Cybersource for all services.\n" - }, - "status": { - "type": "string", - "description": "The status of the submitted transaction.\n\nPossible values:\n - VOIDED\n - CANCELLED\n - FAILED\n" - }, - "clientReferenceInformation": { - "type": "object", - "properties": { - "code": { - "type": "string", - "maxLength": 50, - "description": "Merchant-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" - } - } - }, - "voidAmountDetails": { - "type": "object", - "properties": { - "voidAmount": { - "type": "string", - "description": "Total amount of the void.\n\n#### PIN Debit\nAmount of the reversal.\n\nReturned by PIN debit reversal.\n" - }, - "currency": { - "type": "string", - "maxLength": 3, - "description": "Currency used for the order. Use the three-character [ISO Standard Currency Codes.](http://apps.cybersource.com/library/documentation/sbc/quickref/currencies.pdf)\n\n#### Used by\n**Authorization**\nRequired field.\n\n**Authorization Reversal**\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#### PIN Debit\nCurrency for the amount you requested for the PIN debit purchase. This value is returned for partial authorizations. The issuing bank can approve a partial amount if the balance on the debit card is less than the requested transaction amount. For the possible values, see the [ISO Standard Currency Codes](https://developer.cybersource.com/library/documentation/sbc/quickref/currencies.pdf).\nReturned by PIN debit purchase.\n\nFor PIN debit reversal requests, you must use the same currency that was used for the PIN debit purchase or PIN debit credit that you are reversing.\nFor the possible values, see the [ISO Standard Currency Codes](https://developer.cybersource.com/library/documentation/sbc/quickref/currencies.pdf).\n\nRequired field for PIN Debit purchase and PIN Debit credit requests.\nOptional field for PIN Debit reversal requests.\n\n#### GPX\nThis field is optional for reversing an authorization or credit.\n\n#### DCC for First Data\nYour local currency.\n\n#### Tax Calculation\nRequired for international tax and value added tax only.\nOptional for U.S. and Canadian taxes.\nYour local currency.\n" - } - } - } - } - } - }, - "400": { - "description": "Invalid request.", - "schema": { - "title": "vasV2TaxVoidsPost400Response", - "type": "object", - "properties": { - "submitTimeUtc": { - "type": "string", - "description": "Time of request in UTC. Format: `YYYY-MM-DDThh:mm:ssZ`\n**Example** `2016-08-11T22:47:57Z` equals August 11, 2016, at 22:47:57 (10:47:57 p.m.).\nThe `T` separates the date and the time. The `Z` indicates UTC.\n\nReturned by Cybersource for all services.\n" - }, - "status": { - "type": "string", - "description": "The status of the submitted transaction.\n\nPossible values:\n - INVALID_REQUEST\n" - }, - "reason": { - "type": "string", - "description": "The reason of the status.\n\nPossible values:\n - INVALID_DATA\n - NOT_VOIDABLE\n" - }, - "message": { - "type": "string", - "description": "The detail message related to the status and reason listed above." - }, - "details": { - "type": "array", - "items": { - "type": "object", - "properties": { - "field": { - "type": "string", - "description": "This is the flattened JSON object field name/path that is either missing or invalid." - }, - "reason": { - "type": "string", - "description": "Possible reasons for the error.\n\nPossible values:\n - MISSING_FIELD\n - INVALID_DATA\n" - } - } - } - } - } - } - }, - "502": { - "description": "Unexpected system error or system timeout.", - "schema": { - "title": "vasV2TaxVoidsPost502Response", - "type": "object", - "properties": { - "submitTimeUtc": { - "type": "string", - "description": "Time of request in UTC. Format: `YYYY-MM-DDThh:mm:ssZ`\n**Example** `2016-08-11T22:47:57Z` equals August 11, 2016, at 22:47:57 (10:47:57 p.m.).\nThe `T` separates the date and the time. The `Z` indicates UTC.\n\nReturned by Cybersource for all services.\n" - }, - "status": { - "type": "string", - "description": "The status of the submitted transaction.\n\nPossible values:\n - SERVER_ERROR\n" - }, - "reason": { - "type": "string", - "description": "The reason of the status.\n\nPossible values:\n - SYSTEM_ERROR\n - SERVER_TIMEOUT\n - SERVICE_TIMEOUT\n" - }, - "message": { - "type": "string", - "description": "The detail message related to the status and reason listed above." - } - } - } - } - }, - "x-example": { - "example0": { - "summary": "Void a Committed Tax Call", - "value": { - "clientReferenceInformation": { - "code": "TAX_TC001" - } - }, - "depends": { - "example": { - "path": "/vas/v2/tax", - "verb": "patch", - "exampleId": "example0" - }, - "fieldMapping": [ - { - "sourceField": "id", - "destinationField": "id", - "fieldTypeInDestination": "path" - } - ] - } - } - } - } - }, - "/kms/v2/keys-sym": { - "post": { - "x-devcenter-metaData": { - "categoryTag": "Key_Management", - "firstLevelApiLifeCycle": "hidden", - "secondLevelApiLifeCycle": "hidden", - "apiLifeCycle": "hidden" - }, - "summary": "Create Shared-Secret Keys", - "description": "Create one or more Shared-Secret Keys\n", - "tags": [ - "Symmetric Key Management" - ], - "operationId": "createV2SharedSecretKeys", - "parameters": [ - { - "name": "createSharedSecretKeysRequest", - "in": "body", - "required": true, - "schema": { - "type": "object", - "properties": { - "clientReferenceInformation": { - "type": "object", - "properties": { - "code": { - "type": "string", - "maxLength": 50, - "description": "Client-generated order reference or tracking number. CyberSource recommends that you send a unique value.\n" - }, - "comments": { - "type": "string", - "description": "Brief description of the order or any comment you wish to add to the order." - }, - "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" - } - } - } - } - }, - "keyInformation": { - "type": "array", - "items": { - "type": "object", - "description": "key information\n", - "required": [ - "organizationId" - ], - "properties": { - "organizationId": { - "type": "string", - "description": "Merchant Id\n" - }, - "referenceNumber": { - "type": "string", - "description": "Reference number is a unique identifier provided by the client along with the organization Id. This is an optional field provided solely for the client's convenience. If client specifies value for this field in the request, it is expected to be available in the response.\n" - } - } - } - } - } - } - } - ], - "responses": { - "201": { - "description": "Successful response.", - "schema": { - "title": "kmsV2KeysSymPost201Response", - "type": "object", - "properties": { - "submitTimeUtc": { - "type": "string", - "description": "Time of request in UTC. Format: `YYYY-MM-DDThh:mm:ssZ`\n**Example** `2016-08-11T22:47:57Z` equals August 11, 2016, at 22:47:57 (10:47:57 p.m.).\nThe `T` separates the date and the time. The `Z` indicates UTC.\n\nReturned by Cybersource for all services.\n" - }, - "status": { - "type": "string", - "description": "The status of the submitted transaction.\n\nPossible values:\n - ACCEPTED\n" - }, - "clientReferenceInformation": { - "type": "object", - "properties": { - "code": { - "type": "string", - "maxLength": 50, - "description": "Client-generated order reference or tracking number. CyberSource recommends that you send a unique value.\n" - }, - "comments": { - "type": "string", - "description": "Brief description of the order or any comment you wish to add to the order." - }, - "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" - } - } - } - } - }, - "keyInformation": { - "type": "array", - "items": { - "type": "object", - "description": "key information\n", - "properties": { - "organizationId": { - "type": "string", - "description": "Merchant Id\n" - }, - "externalOrganizationId": { - "type": "string", - "maxLength": 36, - "description": "Payworks MerchantId for given organizationId.\n" - }, - "referenceNumber": { - "type": "string", - "description": "Reference number is a unique identifier provided by the client along with the organization Id. This is an optional field provided solely for the client's convenience. If client specifies value for this field in the request, it is expected to be available in the response.\n" - }, - "keyId": { - "type": "string", - "description": "Key Serial Number\n" - }, - "key": { - "type": "string", - "description": "value of the key\n" - }, - "status": { - "type": "string", - "description": "The status of the key.\n\nPossible values:\n - FAILED\n - ACTIVE\n" - }, - "expirationDate": { - "type": "string", - "description": "The expiration time 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 time. The Z indicates UTC.\n" - }, - "message": { - "type": "string", - "description": "message in case of failed key" - }, - "errorInformation": { - "type": "object", - "properties": { - "reason": { - "type": "string", - "description": "The reason of the status.\n\nPossible values:\n - MISSING_FIELD\n - INVALID_DATA\n" - }, - "details": { - "type": "array", - "items": { - "type": "object", - "properties": { - "field": { - "type": "string", - "description": "This is the flattened JSON object field name/path that is either missing or invalid." - }, - "reason": { - "type": "string", - "description": "Possible reasons for the error.\n\nPossible values:\n - MISSING_FIELD\n - INVALID_DATA\n" - } - } - } - } - } - } - } - } - } - } - } - }, - "400": { - "description": "Invalid request.\n", - "schema": { - "type": "object", - "properties": { - "submitTimeUtc": { - "type": "string", - "description": "Time of request in UTC. Format: `YYYY-MM-DDThh:mm:ssZ`\n**Example** `2016-08-11T22:47:57Z` equals August 11, 2016, at 22:47:57 (10:47:57 p.m.).\nThe `T` separates the date and the time. The `Z` indicates UTC.\n\nReturned by Cybersource for all services.\n" - }, - "status": { - "type": "string", - "description": "The status of the submitted transaction.\n\nPossible values:\n - INVALID_REQUEST\n" - }, - "reason": { - "type": "string", - "description": "The reason of the status.\n\nPossible values:\n - MISSING_FIELD\n" - }, - "message": { - "type": "string", - "description": "The detail message related to the status and reason listed above." - }, - "statusCode": { - "type": "string", - "description": "HTTP status code of the submitted request.\n\nPossible values:\n - 500\n" - } - } - } - }, - "502": { - "description": "Unexpected system error or system timeout.\n", - "schema": { - "type": "object", - "properties": { - "submitTimeUtc": { - "type": "string", - "description": "Time of request in UTC. Format: `YYYY-MM-DDThh:mm:ssZ`\n**Example** `2016-08-11T22:47:57Z` equals August 11, 2016, at 22:47:57 (10:47:57 p.m.).\nThe `T` separates the date and the time. The `Z` indicates UTC.\n\nReturned by Cybersource for all services.\n" - }, - "status": { - "type": "string", - "description": "The status of the submitted transaction.\n\nPossible values:\n - SERVER_ERROR\n" - }, - "reason": { - "type": "string", - "description": "The reason of the status.\n\nPossible values:\n - SYSTEM_ERROR\n - SERVER_TIMEOUT\n - SERVICE_TIMEOUT\n" - }, - "message": { - "type": "string", - "description": "The detail message related to the status and reason listed above." - }, - "statusCode": { - "type": "string", - "description": "HTTP status code of the submitted request.\n\nPossible values:\n - 500\n" - } - } - } - } - } - } - }, - "/kms/v2/keys-sym/{keyId}": { - "get": { - "x-devcenter-metaData": { - "categoryTag": "Key_Management", - "firstLevelApiLifeCycle": "hidden", - "secondLevelApiLifeCycle": "hidden", - "apiLifeCycle": "hidden" - }, - "summary": "Retrieves shared secret key details", - "description": "Retrieves keys details by providing the key id.", - "tags": [ - "Symmetric Key Management" - ], - "operationId": "getKeyDetails", - "parameters": [ - { - "name": "keyId", - "in": "path", - "description": "Key ID.\n", - "required": true, - "type": "string" - } - ], - "responses": { - "200": { - "description": "Successful response.", - "schema": { - "title": "kmsV2KeysSymGet200Response", - "type": "object", - "properties": { - "submitTimeUtc": { - "type": "string", - "description": "Time of request in UTC. Format: `YYYY-MM-DDThh:mm:ssZ`\n**Example** `2016-08-11T22:47:57Z` equals August 11, 2016, at 22:47:57 (10:47:57 p.m.).\nThe `T` separates the date and the time. The `Z` indicates UTC.\n\nReturned by Cybersource for all services.\n" - }, - "status": { - "type": "string", - "description": "The status of the submitted transaction.\n\nPossible values:\n - ACCEPTED\n" - }, - "keyInformation": { - "type": "object", - "description": "key information\n", - "properties": { - "organizationId": { - "type": "string", - "description": "Merchant Id\n" - }, - "keyId": { - "type": "string", - "description": "Key serial number\n" - }, - "status": { - "type": "string", - "description": "The status of the key.\n\nPossible values:\n - FAILED\n - ACTIVE\n - INACTIVE\n - EXPIRED\n" - }, - "expirationDate": { - "type": "string", - "description": "The expiration time in UTC.\n" - }, - "message": { - "type": "string", - "description": "message in case of failed key\n" - }, - "errorInformation": { - "type": "object", - "properties": { - "reason": { - "type": "string", - "description": "The reason of the status.\n\nPossible values:\n - MISSING_FIELD\n - INVALID_DATA\n" - }, - "details": { - "type": "array", - "items": { - "type": "object", - "properties": { - "field": { - "type": "string", - "description": "This is the flattened JSON object field name/path that is either missing or invalid." - }, - "reason": { - "type": "string", - "description": "Possible reasons for the error.\n\nPossible values:\n - MISSING_FIELD\n - INVALID_DATA\n" - } - } - } - } - } - } - } - } - } - } - }, - "400": { - "description": "Invalid Request", - "schema": { - "type": "object", - "properties": { - "submitTimeUtc": { - "type": "string", - "description": "Time of request in UTC. Format: `YYYY-MM-DDThh:mm:ssZ`\n**Example** `2016-08-11T22:47:57Z` equals August 11, 2016, at 22:47:57 (10:47:57 p.m.).\nThe `T` separates the date and the time. The `Z` indicates UTC.\n\nReturned by Cybersource for all services.\n" - }, - "status": { - "type": "string", - "description": "The status of the submitted transaction.\n\nPossible values:\n - INVALID_REQUEST\n" - }, - "reason": { - "type": "string", - "description": "The reason of the status.\n\nPossible values:\n - MISSING_FIELD\n" - }, - "message": { - "type": "string", - "description": "The detail message related to the status and reason listed above." - }, - "statusCode": { - "type": "string", - "description": "HTTP status code of the submitted request.\n\nPossible values:\n - 500\n" - } - } - } - }, - "502": { - "description": "Unexpected system error or system timeout.\n", - "schema": { - "type": "object", - "properties": { - "submitTimeUtc": { - "type": "string", - "description": "Time of request in UTC. Format: `YYYY-MM-DDThh:mm:ssZ`\n**Example** `2016-08-11T22:47:57Z` equals August 11, 2016, at 22:47:57 (10:47:57 p.m.).\nThe `T` separates the date and the time. The `Z` indicates UTC.\n\nReturned by Cybersource for all services.\n" - }, - "status": { - "type": "string", - "description": "The status of the submitted transaction.\n\nPossible values:\n - SERVER_ERROR\n" - }, - "reason": { - "type": "string", - "description": "The reason of the status.\n\nPossible values:\n - SYSTEM_ERROR\n - SERVER_TIMEOUT\n - SERVICE_TIMEOUT\n" - }, - "message": { - "type": "string", - "description": "The detail message related to the status and reason listed above." - }, - "statusCode": { - "type": "string", - "description": "HTTP status code of the submitted request.\n\nPossible values:\n - 500\n" - } - } - } - } - } - } - }, - "/kms/v2/keys-sym/deletes": { - "post": { - "summary": "Delete one or more Symmetric keys", - "description": "'Delete one or more Symmetric keys'\n", - "tags": [ - "Symmetric Key Management" - ], - "x-devcenter-metaData": { - "categoryTag": "Key_Management", - "firstLevelApiLifeCycle": "hidden", - "secondLevelApiLifeCycle": "hidden", - "apiLifeCycle": "hidden" - }, - "operationId": "deleteBulkSymmetricKeys", - "parameters": [ - { - "name": "deleteBulkSymmetricKeysRequest", - "in": "body", - "required": true, - "schema": { - "type": "object", - "properties": { - "clientReferenceInformation": { - "type": "object", - "properties": { - "code": { - "type": "string", - "maxLength": 50, - "description": "Client-generated order reference or tracking number. CyberSource recommends that you send a unique value.\n" - }, - "comments": { - "type": "string", - "description": "Brief description of the order or any comment you wish to add to the order." - }, - "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" - } - } - } - } - }, - "keyInformation": { - "type": "array", - "items": { - "type": "object", - "description": "key information\n", - "required": [ - "organizationId", - "keyId" - ], - "properties": { - "organizationId": { - "type": "string", - "description": "Merchant Id\n" - }, - "referenceNumber": { - "type": "string", - "description": "Reference number is a unique identifier provided by the client along with the organization Id. This is an optional field provided solely for the client's convenience. If client specifies value for this field in the request, it is expected to be available in the response.\n" - }, - "keyId": { - "type": "string", - "description": "Key Serial Number" - } - } - } - } - } - } - } - ], - "responses": { - "200": { - "description": "Successful response\n", - "schema": { - "title": "kmsV2KeysSymDeletesPost200Response", - "type": "object", - "properties": { - "submitTimeUtc": { - "type": "string", - "description": "Time of request in UTC. Format: `YYYY-MM-DDThh:mm:ssZ`\n**Example** `2016-08-11T22:47:57Z` equals August 11, 2016, at 22:47:57 (10:47:57 p.m.).\nThe `T` separates the date and the time. The `Z` indicates UTC.\n\nReturned by Cybersource for all services.\n" - }, - "status": { - "type": "string", - "description": "The status of the submitted transaction.\n\nPossible values:\n - ACCEPTED\n" - }, - "clientReferenceInformation": { - "type": "object", - "properties": { - "code": { - "type": "string", - "maxLength": 50, - "description": "Client-generated order reference or tracking number. CyberSource recommends that you send a unique value.\n" - }, - "comments": { - "type": "string", - "description": "Brief description of the order or any comment you wish to add to the order." - }, - "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" - } - } - } - } - }, - "keyInformation": { - "type": "array", - "items": { - "type": "object", - "description": "key information\n", - "properties": { - "organizationId": { - "type": "string", - "description": "Merchant Id\n" - }, - "keyId": { - "type": "string", - "description": "Key serial number\n" - }, - "status": { - "type": "string", - "description": "The status of the key.\n\nPossible values:\n - FAILED\n - ACTIVE\n - INACTIVE\n - EXPIRED\n" - }, - "message": { - "type": "string", - "description": "message in case of failed key\n" - }, - "errorInformation": { - "type": "object", - "properties": { - "reason": { - "type": "string", - "description": "The reason of the status.\n\nPossible values:\n - MISSING_FIELD\n - INVALID_DATA\n" - }, - "details": { - "type": "array", - "items": { - "type": "object", - "properties": { - "field": { - "type": "string", - "description": "This is the flattened JSON object field name/path that is either missing or invalid." - }, - "reason": { - "type": "string", - "description": "Possible reasons for the error.\n\nPossible values:\n - MISSING_FIELD\n - INVALID_DATA\n" - } - } - } - } - } - } - } - } - } - } - } - }, - "400": { - "description": "Invalid request\n", - "schema": { - "type": "object", - "properties": { - "submitTimeUtc": { - "type": "string", - "description": "Time of request in UTC. Format: `YYYY-MM-DDThh:mm:ssZ`\n**Example** `2016-08-11T22:47:57Z` equals August 11, 2016, at 22:47:57 (10:47:57 p.m.).\nThe `T` separates the date and the time. The `Z` indicates UTC.\n\nReturned by Cybersource for all services.\n" - }, - "status": { - "type": "string", - "description": "The status of the submitted transaction.\n\nPossible values:\n - INVALID_REQUEST\n" - }, - "reason": { - "type": "string", - "description": "The reason of the status.\n\nPossible values:\n - MISSING_FIELD\n" - }, - "message": { - "type": "string", - "description": "The detail message related to the status and reason listed above." - }, - "statusCode": { - "type": "string", - "description": "HTTP status code of the submitted request.\n\nPossible values:\n - 500\n" - } - } - } - }, - "502": { - "description": "Unexpected system error or system timeout.\n", - "schema": { - "type": "object", - "properties": { - "submitTimeUtc": { - "type": "string", - "description": "Time of request in UTC. Format: `YYYY-MM-DDThh:mm:ssZ`\n**Example** `2016-08-11T22:47:57Z` equals August 11, 2016, at 22:47:57 (10:47:57 p.m.).\nThe `T` separates the date and the time. The `Z` indicates UTC.\n\nReturned by Cybersource for all services.\n" - }, - "status": { - "type": "string", - "description": "The status of the submitted transaction.\n\nPossible values:\n - SERVER_ERROR\n" - }, - "reason": { - "type": "string", - "description": "The reason of the status.\n\nPossible values:\n - SYSTEM_ERROR\n - SERVER_TIMEOUT\n - SERVICE_TIMEOUT\n" - }, - "message": { - "type": "string", - "description": "The detail message related to the status and reason listed above." - }, - "statusCode": { - "type": "string", - "description": "HTTP status code of the submitted request.\n\nPossible values:\n - 500\n" - } - } - } - } - } - } - }, - "/kms/v2/keys-asym": { - "post": { - "x-devcenter-metaData": { - "categoryTag": "Key_Management", - "firstLevelApiLifeCycle": "hidden", - "secondLevelApiLifeCycle": "hidden", - "apiLifeCycle": "hidden" - }, - "summary": "Create one or more PKCS12 keys", - "description": "'Create one or more PKCS12 keys'\n", - "tags": [ - "Asymmetric Key Management" - ], - "operationId": "createP12Keys", - "parameters": [ - { - "name": "createP12KeysRequest", - "in": "body", - "required": true, - "schema": { - "type": "object", - "properties": { - "clientReferenceInformation": { - "type": "object", - "properties": { - "code": { - "type": "string", - "maxLength": 50, - "description": "Client-generated order reference or tracking number. CyberSource recommends that you send a unique value.\n" - }, - "comments": { - "type": "string", - "description": "Brief description of the order or any comment you wish to add to the order." - }, - "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" - } - } - } - } - }, - "keyInformation": { - "type": "array", - "items": { - "type": "object", - "description": "key information\n", - "required": [ - "cert", - "organizationId" - ], - "properties": { - "organizationId": { - "type": "string", - "description": "Merchant Id\n" - }, - "referenceNumber": { - "type": "string", - "description": "Reference number is a unique identifier provided by the client along with the organization Id. This is an optional field provided solely for the client's convenience. If client specifies value for this field in the request, it is expected to be available in the response.\n" - }, - "cert": { - "type": "string", - "description": "Certificate Signing Request(csr), one needs to use the contents of the csr created for the same organizationId. Please extract string from '\\n' and '-----BEGIN CERTIFICATE REQUEST-----','-----END CERTIFICATE REQUEST-----'\n" - } - } - } - } - } - } - } - ], - "responses": { - "201": { - "description": "Successful response.", - "schema": { - "title": "kmsV2KeysAsymPost201Response", - "type": "object", - "properties": { - "submitTimeUtc": { - "type": "string", - "description": "Time of request in UTC. Format: `YYYY-MM-DDThh:mm:ssZ`\n**Example** `2016-08-11T22:47:57Z` equals August 11, 2016, at 22:47:57 (10:47:57 p.m.).\nThe `T` separates the date and the time. The `Z` indicates UTC.\n\nReturned by Cybersource for all services.\n" - }, - "status": { - "type": "string", - "description": "The status of the submitted transaction.\n\nPossible values:\n - ACCEPTED\n" - }, - "clientReferenceInformation": { - "type": "object", - "properties": { - "code": { - "type": "string", - "maxLength": 50, - "description": "Client-generated order reference or tracking number. CyberSource recommends that you send a unique value.\n" - }, - "comments": { - "type": "string", - "description": "Brief description of the order or any comment you wish to add to the order." - }, - "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" - } - } - } - } - }, - "keyInformation": { - "type": "array", - "items": { - "type": "object", - "description": "key information\n", - "properties": { - "organizationId": { - "type": "string", - "description": "Merchant Id\n" - }, - "referenceNumber": { - "type": "string", - "description": "Reference number is a unique identifier provided by the client along with the organization Id. This is an optional field provided solely for the client's convenience. If client specifies value for this field in the request, it is expected to be available in the response.\n" - }, - "keyId": { - "type": "string", - "description": "Key Serial Number\n" - }, - "key": { - "type": "string", - "description": "value of the key\n" - }, - "status": { - "type": "string", - "description": "The status of the key.\n\nPossible values:\n - FAILED\n - ACTIVE\n" - }, - "expirationDate": { - "type": "string", - "description": "The expiration time 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 time. The Z indicates UTC.\n" - }, - "message": { - "type": "string", - "description": "message in case of failed key" - }, - "alias": { - "type": "string", - "description": "Key alias" - }, - "errorInformation": { - "type": "object", - "properties": { - "reason": { - "type": "string", - "description": "The reason of the status.\n\nPossible values:\n - MISSING_FIELD\n - INVALID_DATA\n" - }, - "details": { - "type": "array", - "items": { - "type": "object", - "properties": { - "field": { - "type": "string", - "description": "This is the flattened JSON object field name/path that is either missing or invalid." - }, - "reason": { - "type": "string", - "description": "Possible reasons for the error.\n\nPossible values:\n - MISSING_FIELD\n - INVALID_DATA\n" - } - } - } - } - } - } - } - } - }, - "certificateInformation": { - "type": "array", - "items": { - "type": "object", - "properties": { - "alias": { - "type": "string", - "description": "Key alias" - }, - "keyId": { - "type": "string", - "description": "Key Serial Number\n" - }, - "key": { - "type": "string", - "description": "value of the key\n" - }, - "expirationDate": { - "type": "string", - "description": "The expiration time 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 time. The Z indicates UTC.\n" - } - } - } - } - } - } - }, - "400": { - "description": "Invalid Request", - "schema": { - "type": "object", - "properties": { - "submitTimeUtc": { - "type": "string", - "description": "Time of request in UTC. Format: `YYYY-MM-DDThh:mm:ssZ`\n**Example** `2016-08-11T22:47:57Z` equals August 11, 2016, at 22:47:57 (10:47:57 p.m.).\nThe `T` separates the date and the time. The `Z` indicates UTC.\n\nReturned by Cybersource for all services.\n" - }, - "status": { - "type": "string", - "description": "The status of the submitted transaction.\n\nPossible values:\n - INVALID_REQUEST\n" - }, - "reason": { - "type": "string", - "description": "The reason of the status.\n\nPossible values:\n - MISSING_FIELD\n" - }, - "message": { - "type": "string", - "description": "The detail message related to the status and reason listed above." - }, - "statusCode": { - "type": "string", - "description": "HTTP status code of the submitted request.\n\nPossible values:\n - 500\n" - } - } - } - }, - "502": { - "description": "Unexpected system error or system timeout.\n", - "schema": { - "type": "object", - "properties": { - "submitTimeUtc": { - "type": "string", - "description": "Time of request in UTC. Format: `YYYY-MM-DDThh:mm:ssZ`\n**Example** `2016-08-11T22:47:57Z` equals August 11, 2016, at 22:47:57 (10:47:57 p.m.).\nThe `T` separates the date and the time. The `Z` indicates UTC.\n\nReturned by Cybersource for all services.\n" - }, - "status": { - "type": "string", - "description": "The status of the submitted transaction.\n\nPossible values:\n - SERVER_ERROR\n" - }, - "reason": { - "type": "string", - "description": "The reason of the status.\n\nPossible values:\n - SYSTEM_ERROR\n - SERVER_TIMEOUT\n - SERVICE_TIMEOUT\n" - }, - "message": { - "type": "string", - "description": "The detail message related to the status and reason listed above." - }, - "statusCode": { - "type": "string", - "description": "HTTP status code of the submitted request.\n\nPossible values:\n - 500\n" - } - } - } - } - } - } - }, - "/kms/v2/keys-asym/{keyId}": { - "get": { - "x-devcenter-metaData": { - "categoryTag": "Key_Management", - "firstLevelApiLifeCycle": "hidden", - "secondLevelApiLifeCycle": "hidden", - "apiLifeCycle": "hidden" - }, - "summary": "Retrieves PKCS12 key details", - "description": "Retrieves keys details by providing the key id.", - "tags": [ - "Asymmetric Key Management" - ], - "operationId": "getP12KeyDetails", - "parameters": [ - { - "name": "keyId", - "in": "path", - "description": "Key ID.\n", - "required": true, - "type": "string" - } - ], - "responses": { - "200": { - "description": "Successful response.", - "schema": { - "title": "kmsV2KeysAsymGet200Response", - "type": "object", - "properties": { - "submitTimeUtc": { - "type": "string", - "description": "Time of request in UTC. Format: `YYYY-MM-DDThh:mm:ssZ`\n**Example** `2016-08-11T22:47:57Z` equals August 11, 2016, at 22:47:57 (10:47:57 p.m.).\nThe `T` separates the date and the time. The `Z` indicates UTC.\n\nReturned by Cybersource for all services.\n" - }, - "keyInformation": { - "type": "object", - "description": "key information\n", - "properties": { - "organizationId": { - "type": "string", - "description": "Merchant Id\n" - }, - "referenceNumber": { - "type": "string", - "description": "Reference number is a unique identifier provided by the client along with the organization Id. This is an optional field provided solely for the client's convenience. If client specifies value for this field in the request, it is expected to be available in the response.\n" - }, - "keyId": { - "type": "string", - "description": "Key Serial Number\n" - }, - "status": { - "type": "string", - "description": "The status of the key.\n\nPossible values:\n - FAILED\n - ACTIVE\n - INACTIVE\n - EXPIRED\n" - }, - "expirationDate": { - "type": "string", - "description": "The expiration time 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 time. The Z indicates UTC.\n" - }, - "message": { - "type": "string", - "description": "message in case of failed key" - }, - "alias": { - "type": "string", - "description": "Key alias" - }, - "errorInformation": { - "type": "object", - "properties": { - "reason": { - "type": "string", - "description": "The reason of the status.\n\nPossible values:\n - MISSING_FIELD\n - INVALID_DATA\n" - }, - "details": { - "type": "array", - "items": { - "type": "object", - "properties": { - "field": { - "type": "string", - "description": "This is the flattened JSON object field name/path that is either missing or invalid." - }, - "reason": { - "type": "string", - "description": "Possible reasons for the error.\n\nPossible values:\n - MISSING_FIELD\n - INVALID_DATA\n" - } - } - } - } - } - } - } - } - } - } - }, - "400": { - "description": "Invalid Request", - "schema": { - "type": "object", - "properties": { - "submitTimeUtc": { - "type": "string", - "description": "Time of request in UTC. Format: `YYYY-MM-DDThh:mm:ssZ`\n**Example** `2016-08-11T22:47:57Z` equals August 11, 2016, at 22:47:57 (10:47:57 p.m.).\nThe `T` separates the date and the time. The `Z` indicates UTC.\n\nReturned by Cybersource for all services.\n" - }, - "status": { - "type": "string", - "description": "The status of the submitted transaction.\n\nPossible values:\n - INVALID_REQUEST\n" - }, - "reason": { - "type": "string", - "description": "The reason of the status.\n\nPossible values:\n - MISSING_FIELD\n" - }, - "message": { - "type": "string", - "description": "The detail message related to the status and reason listed above." - }, - "statusCode": { - "type": "string", - "description": "HTTP status code of the submitted request.\n\nPossible values:\n - 500\n" - } - } - } - }, - "502": { - "description": "Unexpected system error or system timeout.\n", - "schema": { - "type": "object", - "properties": { - "submitTimeUtc": { - "type": "string", - "description": "Time of request in UTC. Format: `YYYY-MM-DDThh:mm:ssZ`\n**Example** `2016-08-11T22:47:57Z` equals August 11, 2016, at 22:47:57 (10:47:57 p.m.).\nThe `T` separates the date and the time. The `Z` indicates UTC.\n\nReturned by Cybersource for all services.\n" - }, - "status": { - "type": "string", - "description": "The status of the submitted transaction.\n\nPossible values:\n - SERVER_ERROR\n" - }, - "reason": { - "type": "string", - "description": "The reason of the status.\n\nPossible values:\n - SYSTEM_ERROR\n - SERVER_TIMEOUT\n - SERVICE_TIMEOUT\n" - }, - "message": { - "type": "string", - "description": "The detail message related to the status and reason listed above." - }, - "statusCode": { - "type": "string", - "description": "HTTP status code of the submitted request.\n\nPossible values:\n - 500\n" - } - } - } - } - } - }, - "patch": { - "summary": "Activate or De-activate Asymmetric Key", - "description": "Activate or De-activate Asymmetric Key\n", - "tags": [ - "Asymmetric Key Management" - ], - "x-devcenter-metaData": { - "categoryTag": "Key_Management", - "firstLevelApiLifeCycle": "hidden", - "secondLevelApiLifeCycle": "hidden", - "apiLifeCycle": "hidden" - }, - "operationId": "UpdateAsymKey", - "parameters": [ - { - "name": "keyId", - "in": "path", - "description": "Key ID.\n", - "required": true, - "type": "string" - }, - { - "name": "UpdateAsymKeysRequest", - "in": "body", - "required": true, - "schema": { - "type": "object", - "required": [ - "status", - "organizationId" - ], - "properties": { - "status": { - "type": "string", - "description": "Status can be active/inactive" - }, - "organizationId": { - "type": "string", - "description": "Organization Id" - } - } - } - } - ], - "responses": { - "200": { - "description": "Successful response.", - "schema": { - "type": "object" - } - }, - "400": { - "description": "Invalid request.", - "schema": { - "type": "object", - "properties": { - "submitTimeUtc": { - "type": "string", - "description": "Time of request in UTC. Format: `YYYY-MM-DDThh:mm:ssZ`\n**Example** `2016-08-11T22:47:57Z` equals August 11, 2016, at 22:47:57 (10:47:57 p.m.).\nThe `T` separates the date and the time. The `Z` indicates UTC.\n\nReturned by Cybersource for all services.\n" - }, - "status": { - "type": "string", - "description": "The status of the submitted transaction.\n\nPossible values:\n - INVALID_REQUEST\n" - }, - "reason": { - "type": "string", - "description": "The reason of the status.\n\nPossible values:\n - MISSING_FIELD\n - INVALID_DATA\n" - }, - "message": { - "type": "string", - "description": "The detail message related to the status and reason listed above." - }, - "details": { - "type": "array", - "items": { - "type": "object", - "properties": { - "field": { - "type": "string", - "description": "This is the flattened JSON object field name/path that is either missing or invalid." - }, - "reason": { - "type": "string", - "description": "Possible reasons for the error.\n\nPossible values:\n - MISSING_FIELD\n - INVALID_DATA\n" - } - } - } - } - } - } - }, - "500": { - "description": "Unexpected system error or system timeout.", - "schema": { - "type": "object", - "properties": { - "submitTimeUtc": { - "type": "string", - "description": "Time of request in UTC. Format: `YYYY-MM-DDThh:mm:ssZ`\n**Example** `2016-08-11T22:47:57Z` equals August 11, 2016, at 22:47:57 (10:47:57 p.m.).\nThe `T` separates the date and the time. The `Z` indicates UTC.\n\nReturned by Cybersource for all services.\n" - }, - "status": { - "type": "string", - "description": "The status of the submitted request.\n\nPossible values:\n - SERVER_ERROR\n" - }, - "reason": { - "type": "string", - "description": "The reason of the status.\n\nPossible values:\n - SYSTEM_ERROR\n - SERVER_TIMEOUT\n - SERVICE_TIMEOUT\n" - }, - "message": { - "type": "string", - "description": "The detail message related to the status and reason listed above." - } - } - } - } - } - } - }, - "/kms/v2/keys-asym/deletes": { - "post": { - "summary": "Delete one or more PKCS12 keys", - "description": "'Delete one or more PKCS12 keys'\n", - "tags": [ - "Asymmetric Key Management" - ], - "x-devcenter-metaData": { - "categoryTag": "Key_Management", - "firstLevelApiLifeCycle": "hidden", - "secondLevelApiLifeCycle": "hidden", - "apiLifeCycle": "hidden" - }, - "operationId": "deleteBulkP12Keys", - "parameters": [ - { - "name": "deleteBulkP12KeysRequest", - "in": "body", - "required": true, - "schema": { - "type": "object", - "properties": { - "clientReferenceInformation": { - "type": "object", - "properties": { - "code": { - "type": "string", - "maxLength": 50, - "description": "Client-generated order reference or tracking number. CyberSource recommends that you send a unique value.\n" - }, - "comments": { - "type": "string", - "description": "Brief description of the order or any comment you wish to add to the order." - }, - "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" - } - } - } - } - }, - "keyInformation": { - "type": "array", - "items": { - "type": "object", - "description": "key information\n", - "required": [ - "organizationId", - "keyId" - ], - "properties": { - "organizationId": { - "type": "string", - "description": "Merchant Id\n" - }, - "referenceNumber": { - "type": "string", - "description": "Reference number is a unique identifier provided by the client along with the organization Id. This is an optional field provided solely for the client's convenience. If client specifies value for this field in the request, it is expected to be available in the response.\n" - }, - "keyId": { - "type": "string", - "description": "Key Serial Number" - } - } - } - } - } - } - } - ], - "responses": { - "200": { - "description": "Successful response\n", - "schema": { - "title": "kmsV2KeysAsymDeletesPost200Response", - "type": "object", - "properties": { - "submitTimeUtc": { - "type": "string", - "description": "Time of request in UTC. Format: `YYYY-MM-DDThh:mm:ssZ`\n**Example** `2016-08-11T22:47:57Z` equals August 11, 2016, at 22:47:57 (10:47:57 p.m.).\nThe `T` separates the date and the time. The `Z` indicates UTC.\n\nReturned by Cybersource for all services.\n" - }, - "clientReferenceInformation": { - "type": "object", - "properties": { - "code": { - "type": "string", - "maxLength": 50, - "description": "Client-generated order reference or tracking number. CyberSource recommends that you send a unique value.\n" - }, - "comments": { - "type": "string", - "description": "Brief description of the order or any comment you wish to add to the order." - }, - "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" - } - } - } - } - }, - "keyInformation": { - "type": "array", - "items": { - "type": "object", - "description": "key information\n", - "properties": { - "organizationId": { - "type": "string", - "description": "Merchant Id\n" - }, - "referenceNumber": { - "type": "string", - "description": "Reference number is a unique identifier provided by the client along with the organization Id. This is an optional field provided solely for the client's convenience. If client specifies value for this field in the request, it is expected to be available in the response.\n" - }, - "keyId": { - "type": "string", - "description": "Key Serial Number\n" - }, - "status": { - "type": "string", - "description": "The status of the key.\n\nPossible values:\n - FAILED\n - ACTIVE\n - INACTIVE\n - EXPIRED\n" - }, - "message": { - "type": "string", - "description": "message in case of failed key" - }, - "errorInformation": { - "type": "object", - "properties": { - "reason": { - "type": "string", - "description": "The reason of the status.\n\nPossible values:\n - MISSING_FIELD\n - INVALID_DATA\n" - }, - "details": { - "type": "array", - "items": { - "type": "object", - "properties": { - "field": { - "type": "string", - "description": "This is the flattened JSON object field name/path that is either missing or invalid." - }, - "reason": { - "type": "string", - "description": "Possible reasons for the error.\n\nPossible values:\n - MISSING_FIELD\n - INVALID_DATA\n" - } - } - } - } - } - } - } - } - } - } - } - }, - "400": { - "description": "Invalid request\n", - "schema": { - "type": "object", - "properties": { - "submitTimeUtc": { - "type": "string", - "description": "Time of request in UTC. Format: `YYYY-MM-DDThh:mm:ssZ`\n**Example** `2016-08-11T22:47:57Z` equals August 11, 2016, at 22:47:57 (10:47:57 p.m.).\nThe `T` separates the date and the time. The `Z` indicates UTC.\n\nReturned by Cybersource for all services.\n" - }, - "status": { - "type": "string", - "description": "The status of the submitted transaction.\n\nPossible values:\n - INVALID_REQUEST\n" - }, - "reason": { - "type": "string", - "description": "The reason of the status.\n\nPossible values:\n - MISSING_FIELD\n" - }, - "message": { - "type": "string", - "description": "The detail message related to the status and reason listed above." - }, - "statusCode": { - "type": "string", - "description": "HTTP status code of the submitted request.\n\nPossible values:\n - 500\n" - } - } - } - }, - "502": { - "description": "Unexpected system error or system timeout.\n", - "schema": { - "type": "object", - "properties": { - "submitTimeUtc": { - "type": "string", - "description": "Time of request in UTC. Format: `YYYY-MM-DDThh:mm:ssZ`\n**Example** `2016-08-11T22:47:57Z` equals August 11, 2016, at 22:47:57 (10:47:57 p.m.).\nThe `T` separates the date and the time. The `Z` indicates UTC.\n\nReturned by Cybersource for all services.\n" - }, - "status": { - "type": "string", - "description": "The status of the submitted transaction.\n\nPossible values:\n - SERVER_ERROR\n" - }, - "reason": { - "type": "string", - "description": "The reason of the status.\n\nPossible values:\n - SYSTEM_ERROR\n - SERVER_TIMEOUT\n - SERVICE_TIMEOUT\n" - }, - "message": { - "type": "string", - "description": "The detail message related to the status and reason listed above." - }, - "statusCode": { - "type": "string", - "description": "HTTP status code of the submitted request.\n\nPossible values:\n - 500\n" - } - } - } - } - } - } - }, - "/kms/v2/keys-sym/verifi": { - "post": { - "x-devcenter-metaData": { - "categoryTag": "Key_Management", - "firstLevelApiLifeCycle": "hidden", - "secondLevelApiLifeCycle": "hidden", - "apiLifeCycle": "hidden" - }, - "summary": "Create Shared-Secret Keys as per verifi spec", - "description": "Create one or more Shared-Secret Keys as per Verifi spec with 32 chars, store digest algo during key generation.\n", - "tags": [ - "Symmetric Key Management" - ], - "operationId": "createV2SharedSecretKeys-verifi", - "parameters": [ - { - "name": "v-ic-domain", - "in": "header", - "description": "domain", - "required": true, - "type": "string" - }, - { - "name": "createSharedSecretKeysVerifiRequest", - "in": "body", - "required": true, - "schema": { - "type": "object", - "properties": { - "clientReferenceInformation": { - "type": "object", - "properties": { - "code": { - "type": "string", - "maxLength": 50, - "description": "Client-generated order reference or tracking number. CyberSource recommends that you send a unique value.\n" - }, - "comments": { - "type": "string", - "description": "Brief description of the order or any comment you wish to add to the order." - }, - "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" - } - } - } - } - }, - "keyInformation": { - "type": "array", - "items": { - "type": "object", - "description": "key information\n", - "required": [ - "organizationId" - ], - "properties": { - "organizationId": { - "type": "string", - "description": "Merchant Id\n" - }, - "referenceNumber": { - "type": "string", - "description": "Reference number is a unique identifier provided by the client along with the organization Id. This is an optional field provided solely for the client's convenience. If client specifies value for this field in the request, it is expected to be available in the response.\n" - }, - "digestAlgorithm": { - "type": "string", - "description": "Algorithm for message signature authentication\n", - "enum": [ - "HMACSHA1", - "HMACSHA2" - ], - "default": "HMACSHA2" - } - } - } - } - } - } - } - ], - "responses": { - "201": { - "description": "Successful response.", - "schema": { - "title": "kmsV2KeysSymPost201Response", - "type": "object", - "properties": { - "submitTimeUtc": { - "type": "string", - "description": "Time of request in UTC. Format: `YYYY-MM-DDThh:mm:ssZ`\n**Example** `2016-08-11T22:47:57Z` equals August 11, 2016, at 22:47:57 (10:47:57 p.m.).\nThe `T` separates the date and the time. The `Z` indicates UTC.\n\nReturned by Cybersource for all services.\n" - }, - "status": { - "type": "string", - "description": "The status of the submitted transaction.\n\nPossible values:\n - ACCEPTED\n" - }, - "clientReferenceInformation": { - "type": "object", - "properties": { - "code": { - "type": "string", - "maxLength": 50, - "description": "Client-generated order reference or tracking number. CyberSource recommends that you send a unique value.\n" - }, - "comments": { - "type": "string", - "description": "Brief description of the order or any comment you wish to add to the order." - }, - "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" - } - } - } - } - }, - "keyInformation": { - "type": "array", - "items": { - "type": "object", - "description": "key information\n", - "properties": { - "organizationId": { - "type": "string", - "description": "Merchant Id\n" - }, - "externalOrganizationId": { - "type": "string", - "maxLength": 36, - "description": "Payworks MerchantId for given organizationId.\n" - }, - "referenceNumber": { - "type": "string", - "description": "Reference number is a unique identifier provided by the client along with the organization Id. This is an optional field provided solely for the client's convenience. If client specifies value for this field in the request, it is expected to be available in the response.\n" - }, - "keyId": { - "type": "string", - "description": "Key Serial Number\n" - }, - "key": { - "type": "string", - "description": "value of the key\n" - }, - "status": { - "type": "string", - "description": "The status of the key.\n\nPossible values:\n - FAILED\n - ACTIVE\n" - }, - "expirationDate": { - "type": "string", - "description": "The expiration time 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 time. The Z indicates UTC.\n" - }, - "message": { - "type": "string", - "description": "message in case of failed key" - }, - "errorInformation": { - "type": "object", - "properties": { - "reason": { - "type": "string", - "description": "The reason of the status.\n\nPossible values:\n - MISSING_FIELD\n - INVALID_DATA\n" - }, - "details": { - "type": "array", - "items": { - "type": "object", - "properties": { - "field": { - "type": "string", - "description": "This is the flattened JSON object field name/path that is either missing or invalid." - }, - "reason": { - "type": "string", - "description": "Possible reasons for the error.\n\nPossible values:\n - MISSING_FIELD\n - INVALID_DATA\n" - } - } - } - } - } - } - } - } - } - } - } - }, - "400": { - "description": "Invalid request.\n", - "schema": { - "type": "object", - "properties": { - "submitTimeUtc": { - "type": "string", - "description": "Time of request in UTC. Format: `YYYY-MM-DDThh:mm:ssZ`\n**Example** `2016-08-11T22:47:57Z` equals August 11, 2016, at 22:47:57 (10:47:57 p.m.).\nThe `T` separates the date and the time. The `Z` indicates UTC.\n\nReturned by Cybersource for all services.\n" - }, - "status": { - "type": "string", - "description": "The status of the submitted transaction.\n\nPossible values:\n - INVALID_REQUEST\n" - }, - "reason": { - "type": "string", - "description": "The reason of the status.\n\nPossible values:\n - MISSING_FIELD\n" - }, - "message": { - "type": "string", - "description": "The detail message related to the status and reason listed above." - }, - "statusCode": { - "type": "string", - "description": "HTTP status code of the submitted request.\n\nPossible values:\n - 500\n" - } - } - } - }, - "502": { - "description": "Unexpected system error or system timeout.\n", - "schema": { - "type": "object", - "properties": { - "submitTimeUtc": { - "type": "string", - "description": "Time of request in UTC. Format: `YYYY-MM-DDThh:mm:ssZ`\n**Example** `2016-08-11T22:47:57Z` equals August 11, 2016, at 22:47:57 (10:47:57 p.m.).\nThe `T` separates the date and the time. The `Z` indicates UTC.\n\nReturned by Cybersource for all services.\n" - }, - "status": { - "type": "string", - "description": "The status of the submitted transaction.\n\nPossible values:\n - SERVER_ERROR\n" - }, - "reason": { - "type": "string", - "description": "The reason of the status.\n\nPossible values:\n - SYSTEM_ERROR\n - SERVER_TIMEOUT\n - SERVICE_TIMEOUT\n" - }, - "message": { - "type": "string", - "description": "The detail message related to the status and reason listed above." - }, - "statusCode": { - "type": "string", - "description": "HTTP status code of the submitted request.\n\nPossible values:\n - 500\n" - } - } - } - } - } - } - }, - "/kms/v2/keys": { - "get": { - "summary": "Search Keys", - "description": "Search one or more Keys", - "tags": [ - "key-management" - ], - "x-devcenter-metaData": { - "categoryTag": "Key_Management", - "firstLevelApiLifeCycle": "hidden", - "secondLevelApiLifeCycle": "hidden", - "apiLifeCycle": "hidden" - }, - "operationId": "searchKeys", - "parameters": [ - { - "name": "offset", - "in": "query", - "description": "This allows you to specify the page offset from the resulting list resultset you want the records to be returned", - "type": "integer" - }, - { - "name": "limit", - "in": "query", - "description": "This allows you to specify the total number of records to be returned off the resulting list resultset", - "type": "integer" - }, - { - "name": "sort", - "in": "query", - "description": "This allows you to specify a comma separated list of fields in the order which the resulting list resultset must be sorted.", - "type": "string" - }, - { - "name": "organizationIds", - "in": "query", - "description": "List of Orgaization Ids to search. The maximum size of the organization Ids list is 1. The maximum length of Organization Id is 30.", - "type": "array", - "items": { - "type": "string" - } - }, - { - "name": "keyIds", - "in": "query", - "description": "List of Key Ids to search. The maximum size of the Key Ids list is 1", - "type": "array", - "items": { - "type": "string" - } - }, - { - "name": "keyTypes", - "in": "query", - "type": "array", - "items": { - "type": "string" - }, - "description": "Key Type, Possible values - certificate, password, pgp and scmp_api. When Key Type is provided atleast one more filter needs to be provided" - }, - { - "name": "expirationStartDate", - "in": "query", - "type": "string", - "format": "date-time", - "pattern": "yyyy-mm-dd", - "description": "Expiry Filter Start Date. When Expiration Date filter is provided, atleast one more filter needs to be provided" - }, - { - "name": "expirationEndDate", - "in": "query", - "type": "string", - "format": "date-time", - "pattern": "yyyy-mm-dd", - "description": "Expiry Filter End Date. When Expiration Date filter is provided, atleast one more filter needs to be provided" - } - ], - "responses": { - "200": { - "description": "Successful response.", - "schema": { - "type": "object", - "description": "Successful searchKeysResponse", - "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", - "example": "2016-08-11T22:47:57Z" - }, - "totalCount": { - "type": "integer", - "description": "Specifies the total number of items found based on the request" - }, - "offset": { - "type": "integer", - "description": "Specifies the record offset from the records are returned part of the response" - }, - "limit": { - "type": "integer", - "description": "Specifies the maximum number of records requested part of the response" - }, - "sort": { - "type": "string", - "description": "Specifies a comma separated list of field names based on which the result is sorted." - }, - "keys": { - "type": "array", - "items": { - "type": "object", - "description": "KeyResponseEntry", - "properties": { - "organizationId": { - "type": "string", - "description": "Merchant Id" - }, - "merchantName": { - "type": "string", - "description": "Merchant Name" - }, - "keyId": { - "type": "string", - "description": "Key Id" - }, - "keyType": { - "type": "string", - "description": "Key Type" - }, - "status": { - "type": "string", - "description": "Status can be active/inactive" - }, - "expirationDate": { - "type": "string", - "format": "date", - "pattern": "yyyy-mm-dd hh:mm:ss zzz", - "description": "Expiry Date. example - 2028-07-15 22:11:56 UTC" - }, - "dateAdded": { - "type": "string", - "format": "date", - "pattern": "yyyy-mm-dd hh:mm:ss zzz", - "description": "Date Addded. example - 2018-04-25 22:11:56 UTC" - }, - "addedBy": { - "type": "string", - "description": "Added By" - }, - "dateModified": { - "type": "string", - "format": "date", - "pattern": "yyyy-mm-dd hh:mm:ss zzz", - "description": "Modified Date.", - "example": "2022-04-25 22:11:56 UTC" - }, - "modifiedBy": { - "type": "string", - "description": "Modified By" - }, - "version": { - "type": "string", - "description": "Version" - }, - "serialNumber": { - "type": "string", - "description": "Serial Number" - }, - "issuerName": { - "type": "string", - "description": "Issuer Name" - } - } - } - } - } - } - }, - "400": { - "description": "Invalid request.", - "schema": { - "type": "object", - "properties": { - "submitTimeUtc": { - "type": "string", - "description": "Time of request in UTC. Format: `YYYY-MM-DDThh:mm:ssZ`\n**Example** `2016-08-11T22:47:57Z` equals August 11, 2016, at 22:47:57 (10:47:57 p.m.).\nThe `T` separates the date and the time. The `Z` indicates UTC.\n\nReturned by Cybersource for all services.\n" - }, - "status": { - "type": "string", - "description": "The status of the submitted transaction.\n\nPossible values:\n - INVALID_REQUEST\n" - }, - "reason": { - "type": "string", - "description": "The reason of the status.\n\nPossible values:\n - MISSING_FIELD\n - INVALID_DATA\n" - }, - "message": { - "type": "string", - "description": "The detail message related to the status and reason listed above." - }, - "details": { - "type": "array", - "items": { - "type": "object", - "properties": { - "field": { - "type": "string", - "description": "This is the flattened JSON object field name/path that is either missing or invalid." - }, - "reason": { - "type": "string", - "description": "Possible reasons for the error.\n\nPossible values:\n - MISSING_FIELD\n - INVALID_DATA\n" - } - } - } - } - } - } - }, - "500": { - "description": "Unexpected system error or system timeout.", - "schema": { - "type": "object", - "properties": { - "submitTimeUtc": { - "type": "string", - "description": "Time of request in UTC. Format: `YYYY-MM-DDThh:mm:ssZ`\n**Example** `2016-08-11T22:47:57Z` equals August 11, 2016, at 22:47:57 (10:47:57 p.m.).\nThe `T` separates the date and the time. The `Z` indicates UTC.\n\nReturned by Cybersource for all services.\n" - }, - "status": { - "type": "string", - "description": "The status of the submitted request.\n\nPossible values:\n - SERVER_ERROR\n" - }, - "reason": { - "type": "string", - "description": "The reason of the status.\n\nPossible values:\n - SYSTEM_ERROR\n - SERVER_TIMEOUT\n - SERVICE_TIMEOUT\n" - }, - "message": { - "type": "string", - "description": "The detail message related to the status and reason listed above." - } - } - } - } - } - } - }, - "/kms/v2/keys-password/{keyId}": { - "patch": { - "summary": "Activate or De-activate Password", - "description": "Activate or De-activate key of type password\n", - "tags": [ - "key-management-password" - ], - "x-devcenter-metaData": { - "categoryTag": "Key_Management", - "firstLevelApiLifeCycle": "hidden", - "secondLevelApiLifeCycle": "hidden", - "apiLifeCycle": "hidden" - }, - "operationId": "UpdatePassword", - "parameters": [ - { - "name": "keyId", - "in": "path", - "description": "Key ID.\n", - "required": true, - "type": "string" - }, - { - "name": "UpdatePasswordKeysRequest", - "in": "body", - "required": true, - "schema": { - "type": "object", - "required": [ - "status", - "organizationId" - ], - "properties": { - "status": { - "type": "string", - "description": "Status can be active/inactive" - }, - "organizationId": { - "type": "string", - "description": "Organization Id" - } - } - } - } - ], - "responses": { - "200": { - "description": "Successful response.", - "schema": { - "type": "object" - } - }, - "400": { - "description": "Invalid request.", - "schema": { - "type": "object", - "properties": { - "submitTimeUtc": { - "type": "string", - "description": "Time of request in UTC. Format: `YYYY-MM-DDThh:mm:ssZ`\n**Example** `2016-08-11T22:47:57Z` equals August 11, 2016, at 22:47:57 (10:47:57 p.m.).\nThe `T` separates the date and the time. The `Z` indicates UTC.\n\nReturned by Cybersource for all services.\n" - }, - "status": { - "type": "string", - "description": "The status of the submitted transaction.\n\nPossible values:\n - INVALID_REQUEST\n" - }, - "reason": { - "type": "string", - "description": "The reason of the status.\n\nPossible values:\n - MISSING_FIELD\n - INVALID_DATA\n" - }, - "message": { - "type": "string", - "description": "The detail message related to the status and reason listed above." - }, - "details": { - "type": "array", - "items": { - "type": "object", - "properties": { - "field": { - "type": "string", - "description": "This is the flattened JSON object field name/path that is either missing or invalid." - }, - "reason": { - "type": "string", - "description": "Possible reasons for the error.\n\nPossible values:\n - MISSING_FIELD\n - INVALID_DATA\n" - } - } - } - } - } - } - }, - "500": { - "description": "Unexpected system error or system timeout.", - "schema": { - "type": "object", - "properties": { - "submitTimeUtc": { - "type": "string", - "description": "Time of request in UTC. Format: `YYYY-MM-DDThh:mm:ssZ`\n**Example** `2016-08-11T22:47:57Z` equals August 11, 2016, at 22:47:57 (10:47:57 p.m.).\nThe `T` separates the date and the time. The `Z` indicates UTC.\n\nReturned by Cybersource for all services.\n" - }, - "status": { - "type": "string", - "description": "The status of the submitted request.\n\nPossible values:\n - SERVER_ERROR\n" - }, - "reason": { - "type": "string", - "description": "The reason of the status.\n\nPossible values:\n - SYSTEM_ERROR\n - SERVER_TIMEOUT\n - SERVICE_TIMEOUT\n" - }, - "message": { - "type": "string", - "description": "The detail message related to the status and reason listed above." - } - } - } - } - } - } - }, - "/kms/v2/keys-pgp/{keyId}": { - "patch": { - "summary": "Activate or De-activate PGP Key", - "description": "Activate or De-activate PGP Key\n", - "tags": [ - "key-management-pgp" - ], - "x-devcenter-metaData": { - "categoryTag": "Key_Management", - "firstLevelApiLifeCycle": "hidden", - "secondLevelApiLifeCycle": "hidden", - "apiLifeCycle": "hidden" - }, - "operationId": "UpdatePGP", - "parameters": [ - { - "name": "keyId", - "in": "path", - "description": "Key ID.\n", - "required": true, - "type": "string" - }, - { - "name": "UpdatePGPKeysRequest", - "in": "body", - "required": true, - "schema": { - "type": "object", - "required": [ - "status", - "organizationId" - ], - "properties": { - "status": { - "type": "string", - "description": "Status can be active/inactive" - }, - "organizationId": { - "type": "string", - "description": "Organization Id" - } - } - } - } - ], - "responses": { - "200": { - "description": "Successful response.", - "schema": { - "type": "object" - } - }, - "400": { - "description": "Invalid request.", - "schema": { - "type": "object", - "properties": { - "submitTimeUtc": { - "type": "string", - "description": "Time of request in UTC. Format: `YYYY-MM-DDThh:mm:ssZ`\n**Example** `2016-08-11T22:47:57Z` equals August 11, 2016, at 22:47:57 (10:47:57 p.m.).\nThe `T` separates the date and the time. The `Z` indicates UTC.\n\nReturned by Cybersource for all services.\n" - }, - "status": { - "type": "string", - "description": "The status of the submitted transaction.\n\nPossible values:\n - INVALID_REQUEST\n" - }, - "reason": { - "type": "string", - "description": "The reason of the status.\n\nPossible values:\n - MISSING_FIELD\n - INVALID_DATA\n" - }, - "message": { - "type": "string", - "description": "The detail message related to the status and reason listed above." - }, - "details": { - "type": "array", - "items": { - "type": "object", - "properties": { - "field": { - "type": "string", - "description": "This is the flattened JSON object field name/path that is either missing or invalid." - }, - "reason": { - "type": "string", - "description": "Possible reasons for the error.\n\nPossible values:\n - MISSING_FIELD\n - INVALID_DATA\n" - } - } - } - } - } - } - }, - "500": { + "502": { "description": "Unexpected system error or system timeout.", "schema": { + "title": "vasV2PaymentsPost502Response", "type": "object", "properties": { "submitTimeUtc": { @@ -92611,7 +90145,7 @@ }, "status": { "type": "string", - "description": "The status of the submitted request.\n\nPossible values:\n - SERVER_ERROR\n" + "description": "The status of the submitted transaction.\n\nPossible values:\n - SERVER_ERROR\n" }, "reason": { "type": "string", @@ -92624,72 +90158,361 @@ } } } + }, + "x-example": { + "example0": { + "summary": "Basic Tax Calculation Request", + "sample-name": "Tax Calculation", + "value": { + "clientReferenceInformation": { + "code": "TAX_TC001" + }, + "orderInformation": { + "billTo": { + "country": "US", + "address1": "1 Market St", + "postalCode": 94105, + "locality": "San Francisco", + "administrativeArea": "CA" + }, + "amountDetails": { + "currency": "USD" + }, + "lineItems": [ + { + "productSKU": "07-12-00657", + "productName": "Chewing Gum", + "productCode": 50161815, + "quantity": 1, + "unitPrice": 1200 + }, + { + "productSKU": "07-12-00659", + "productName": "Sugar Cookies", + "productCode": 50181905, + "quantity": 1, + "unitPrice": 1240 + }, + { + "productSKU": "07-12-00658", + "productName": "Carbonated Water", + "productCode": 5020.11, + "quantity": 1, + "unitPrice": 9001 + } + ] + }, + "taxInformation": { + "showTaxPerLineItem": "Yes" + } + } + }, + "example1": { + "summary": "Tax Refund Request", + "sample-name": "Tax Refund Calculation", + "value": { + "clientReferenceInformation": { + "code": "TAX_TC001" + }, + "orderInformation": { + "billTo": { + "country": "US", + "address1": "1 Market St", + "postalCode": 94105, + "locality": "San Francisco", + "administrativeArea": "CA" + }, + "shipTo": { + "country": "US", + "address1": "123 Russel St.", + "postalCode": 32401, + "locality": "Panama City", + "administrativeArea": "FL" + }, + "shippingDetails": { + "shipFromCountry": "CA", + "shipFromLocality": "Cambridge Bay", + "shipFromAdministrativeArea": "NL", + "shipFromPostalCode": "A0G 1T0" + }, + "amountDetails": { + "currency": "USD" + }, + "lineItems": [ + { + "productSKU": "07-12-00657", + "productName": "Chewing Gum", + "productCode": 50161815, + "quantity": 1, + "unitPrice": 1200 + }, + { + "productSKU": "07-12-00659", + "productName": "Sugar Cookies", + "productCode": 50181905, + "quantity": 1, + "unitPrice": 1240 + }, + { + "productSKU": "07-12-00658", + "productName": "Carbonated Water", + "productCode": 5020.11, + "quantity": 1, + "unitPrice": 9001 + } + ] + }, + "taxInformation": { + "showTaxPerLineItem": "Yes", + "refundIndicator": true + }, + "merchantInformation": { + "vatRegistrationNumber": "abcdef" + } + } + }, + "example2": { + "summary": "Committed Tax Call Request", + "sample-name": "Committed Tax Calculation", + "value": { + "clientReferenceInformation": { + "code": "TAX_TC001" + }, + "orderInformation": { + "billTo": { + "country": "US", + "address1": "1 Market St", + "postalCode": 94105, + "locality": "San Francisco", + "administrativeArea": "CA" + }, + "shipTo": { + "country": "US", + "address1": "123 Russel St.", + "postalCode": 32401, + "locality": "Panama City", + "administrativeArea": "FL" + }, + "shippingDetails": { + "shipFromCountry": "CA", + "shipFromLocality": "Cambridge Bay", + "shipFromAdministrativeArea": "NL", + "shipFromPostalCode": "A0G 1T0" + }, + "amountDetails": { + "currency": "USD" + }, + "lineItems": [ + { + "productSKU": "07-12-00657", + "productName": "Chewing Gum", + "productCode": 50161815, + "quantity": 1, + "unitPrice": 1200 + }, + { + "productSKU": "07-12-00659", + "productName": "Sugar Cookies", + "productCode": 50181905, + "quantity": 1, + "unitPrice": 1240 + }, + { + "productSKU": "07-12-00658", + "productName": "Carbonated Water", + "productCode": 5020.11, + "quantity": 1, + "unitPrice": 9001 + } + ] + }, + "taxInformation": { + "showTaxPerLineItem": "Yes", + "commitIndicator": true + }, + "merchantInformation": { + "vatRegistrationNumber": "abcdef" + } + } + }, + "example3": { + "summary": "Committed Tax Refund Call Request", + "sample-name": "Committed Tax Refund Calculation", + "value": { + "clientReferenceInformation": { + "code": "TAX_TC001" + }, + "orderInformation": { + "billTo": { + "country": "US", + "address1": "1 Market St", + "postalCode": 94105, + "locality": "San Francisco", + "administrativeArea": "CA" + }, + "shipTo": { + "country": "US", + "address1": "123 Russel St.", + "postalCode": 32401, + "locality": "Panama City", + "administrativeArea": "FL" + }, + "shippingDetails": { + "shipFromCountry": "CA", + "shipFromLocality": "Cambridge Bay", + "shipFromAdministrativeArea": "NL", + "shipFromPostalCode": "A0G 1T0" + }, + "amountDetails": { + "currency": "USD" + }, + "lineItems": [ + { + "productSKU": "07-12-00657", + "productName": "Chewing Gum", + "productCode": 50161815, + "quantity": 1, + "unitPrice": 1200 + }, + { + "productSKU": "07-12-00659", + "productName": "Sugar Cookies", + "productCode": 50181905, + "quantity": 1, + "unitPrice": 1240 + }, + { + "productSKU": "07-12-00658", + "productName": "Carbonated Water", + "productCode": 5020.11, + "quantity": 1, + "unitPrice": 9001 + } + ] + }, + "taxInformation": { + "showTaxPerLineItem": "Yes", + "commitIndicator": true, + "refundIndicator": true + }, + "merchantInformation": { + "vatRegistrationNumber": "abcdef" + } + } + } } } }, - "/kms/v2/keys-scmp/{keyId}": { + "/vas/v2/tax/{id}": { "patch": { - "summary": "Update or Deactivate", - "description": "Update or Deactivate scmp api Key\n", + "summary": "Void Taxes", + "description": "Pass the Tax Request ID in the PATCH request to void the committed tax calculation.", "tags": [ - "key-management-scmp" + "taxes" ], + "operationId": "voidTax", "x-devcenter-metaData": { - "categoryTag": "Key_Management", - "firstLevelApiLifeCycle": "hidden", - "secondLevelApiLifeCycle": "hidden", - "apiLifeCycle": "hidden" + "categoryTag": "Value_Added_Service" }, - "operationId": "UpdateSCMP", "parameters": [ { - "name": "keyId", - "in": "path", - "description": "Key ID.\n", + "name": "voidTaxRequest", + "in": "body", "required": true, - "type": "string" + "schema": { + "type": "object", + "properties": { + "clientReferenceInformation": { + "type": "object", + "properties": { + "code": { + "type": "string", + "maxLength": 50, + "description": "Merchant-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" + }, + "comments": { + "type": "string", + "description": "Brief description of the order or any comment you wish to add to the order." + }, + "partner": { + "type": "object", + "properties": { + "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" + }, + "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" + } + } + } + } + } + } + } }, { - "name": "UpdatePGPKeysRequest", - "in": "body", + "name": "id", + "in": "path", + "description": "The tax ID returned from a previous request.", "required": true, + "type": "string" + } + ], + "responses": { + "200": { + "description": "Successful response.", "schema": { + "title": "vasV2TaxVoid200Response", "type": "object", "properties": { - "organizationId": { + "id": { "type": "string", - "description": "Organization Id" + "maxLength": 26, + "description": "An unique identification number generated by Cybersource to identify the submitted request. Returned by all services.\nIt is also appended to the endpoint of the resource.\nOn incremental authorizations, this value with be the same as the identification number returned in the original authorization response.\n" }, - "status": { + "submitTimeUtc": { "type": "string", - "description": "Only inactive status is applicable for SCMP_API. Only status as inactive needs to be provided to deactivate scmp." + "description": "Time of request in UTC. Format: `YYYY-MM-DDThh:mm:ssZ`\n**Example** `2016-08-11T22:47:57Z` equals August 11, 2016, at 22:47:57 (10:47:57 p.m.).\nThe `T` separates the date and the time. The `Z` indicates UTC.\n\nReturned by Cybersource for all services.\n" }, - "expirationDate": { + "status": { "type": "string", - "description": "Expiration Date. Required field to update the SCMP_API key" + "description": "The status of the submitted transaction.\n\nPossible values:\n - VOIDED\n - CANCELLED\n - FAILED\n" }, - "version": { - "type": "string", - "description": "Version. Required field to update the SCMP_API key" + "clientReferenceInformation": { + "type": "object", + "properties": { + "code": { + "type": "string", + "maxLength": 50, + "description": "Merchant-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" + } + } }, - "comment": { - "type": "string", - "description": "Comment. Optional field. Can be provided along with Expiration Date and Version" + "voidAmountDetails": { + "type": "object", + "properties": { + "voidAmount": { + "type": "string", + "description": "Total amount of the void.\n\n#### PIN Debit\nAmount of the reversal.\n\nReturned by PIN debit reversal.\n" + }, + "currency": { + "type": "string", + "maxLength": 3, + "description": "Currency used for the order. Use the three-character [ISO Standard Currency Codes.](http://apps.cybersource.com/library/documentation/sbc/quickref/currencies.pdf)\n\n#### Used by\n**Authorization**\nRequired field.\n\n**Authorization Reversal**\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#### PIN Debit\nCurrency for the amount you requested for the PIN debit purchase. This value is returned for partial authorizations. The issuing bank can approve a partial amount if the balance on the debit card is less than the requested transaction amount. For the possible values, see the [ISO Standard Currency Codes](https://developer.cybersource.com/library/documentation/sbc/quickref/currencies.pdf).\nReturned by PIN debit purchase.\n\nFor PIN debit reversal requests, you must use the same currency that was used for the PIN debit purchase or PIN debit credit that you are reversing.\nFor the possible values, see the [ISO Standard Currency Codes](https://developer.cybersource.com/library/documentation/sbc/quickref/currencies.pdf).\n\nRequired field for PIN Debit purchase and PIN Debit credit requests.\nOptional field for PIN Debit reversal requests.\n\n#### GPX\nThis field is optional for reversing an authorization or credit.\n\n#### DCC for First Data\nYour local currency.\n\n#### Tax Calculation\nRequired for international tax and value added tax only.\nOptional for U.S. and Canadian taxes.\nYour local currency.\n" + } + } } } } - } - ], - "responses": { - "200": { - "description": "Successful response.", - "schema": { - "type": "object" - } }, "400": { "description": "Invalid request.", "schema": { + "title": "vasV2TaxVoidsPost400Response", "type": "object", "properties": { "submitTimeUtc": { @@ -92702,7 +90525,7 @@ }, "reason": { "type": "string", - "description": "The reason of the status.\n\nPossible values:\n - MISSING_FIELD\n - INVALID_DATA\n" + "description": "The reason of the status.\n\nPossible values:\n - INVALID_DATA\n - NOT_VOIDABLE\n" }, "message": { "type": "string", @@ -92727,9 +90550,10 @@ } } }, - "500": { + "502": { "description": "Unexpected system error or system timeout.", "schema": { + "title": "vasV2TaxVoidsPost502Response", "type": "object", "properties": { "submitTimeUtc": { @@ -92738,7 +90562,7 @@ }, "status": { "type": "string", - "description": "The status of the submitted request.\n\nPossible values:\n - SERVER_ERROR\n" + "description": "The status of the submitted transaction.\n\nPossible values:\n - SERVER_ERROR\n" }, "reason": { "type": "string", @@ -92751,6 +90575,30 @@ } } } + }, + "x-example": { + "example0": { + "summary": "Void a Committed Tax Call", + "value": { + "clientReferenceInformation": { + "code": "TAX_TC001" + } + }, + "depends": { + "example": { + "path": "/vas/v2/tax", + "verb": "patch", + "exampleId": "example0" + }, + "fieldMapping": [ + { + "sourceField": "id", + "destinationField": "id", + "fieldTypeInDestination": "path" + } + ] + } + } } } }, @@ -95261,82 +93109,100 @@ "properties": { "currencyCodes": { "type": "array", - "items": { - "type": "string", - "example": "ALL" - } - }, - "acquirerId": { - "type": "string", - "minLength": 6, - "maxLength": 20, - "pattern": "^[a-zA-Z0-9]{6,20}$", - "description": "The Acquirer ID value, often referred to as the Acquirer BIN, is specific to an Acquirer.\nThe value is created by Cardinal in their system and the Acquirer may not know that the Acquirer ID is different from their Acquiring BIN.\nIt is most often the Acquiring BIN + \"-1000\" but the trailing character can be different.\n**Note** We will need to double check with Cardinal before setting up the Portfolio Template in production.\n" - }, - "processorMerchantId": { - "type": "string", - "minLength": 6, - "maxLength": 35, - "pattern": "^[a-zA-Z0-9]{6,35}$", - "description": "Processor Merchant ID is the Merchant ID assigned by your acquiring bank.\nThis Merchant ID should also be used by your bank to register your account to the card scheme Directory Server for processing Payer Authentication services.\n" - } - } - } - } - } - }, - "masterCardSecureCode": { - "type": "object", - "properties": { - "enabled": { - "type": "boolean", - "default": true - }, - "currencies": { - "type": "array", - "items": { - "type": "object", - "properties": { - "currencyCodes": { - "type": "array", - "items": { - "type": "string", - "example": "ALL" - } - }, - "acquirerId": { - "type": "string", - "minLength": 6, - "maxLength": 20, - "pattern": "^[a-zA-Z0-9]{6,20}$", - "description": "The Acquirer ID value, often referred to as the Acquirer BIN, is specific to an Acquirer.\nThe value is created by Cardinal in their system and the Acquirer may not know that the Acquirer ID is different from their Acquiring BIN.\nIt is most often the Acquiring BIN + \"-1000\" but the trailing character can be different.\n**Note** We will need to double check with Cardinal before setting up the Portfolio Template in production.\n" - }, - "processorMerchantId": { - "type": "string", - "minLength": 6, - "maxLength": 35, - "pattern": "^[a-zA-Z0-9]{6,35}$", - "description": "Processor Merchant ID is the Merchant ID assigned by your acquiring bank.\nThis Merchant ID should also be used by your bank to register your account to the card scheme Directory Server for processing Payer Authentication services.\n" - } - } - } - } - } - }, - "amexSafeKey": { - "type": "object", - "properties": { - "enabled": { - "type": "boolean", - "default": true - }, - "currencies": { - "type": "array", - "items": { - "type": "object", - "properties": { - "currencyCodes": { - "type": "array", + "description": "Supported currency codes are numeric ISO 4217 codes, such as 840 for US Dollar and 978 for Euro. \nFor backward compatibility, we also support the 'ALL' code, which represents all currencies. \nIn the UI, 'ALL' is displayed as 'Default'.\n", + "example": [ + "ALL", + "840", + "978" + ], + "items": { + "type": "string", + "example": "ALL" + } + }, + "acquirerId": { + "type": "string", + "minLength": 6, + "maxLength": 20, + "pattern": "^[a-zA-Z0-9]{6,20}$", + "description": "The Acquirer ID value, often referred to as the Acquirer BIN, is specific to an Acquirer.\nThe value is created by Cardinal in their system and the Acquirer may not know that the Acquirer ID is different from their Acquiring BIN.\nIt is most often the Acquiring BIN + \"-1000\" but the trailing character can be different.\n**Note** We will need to double check with Cardinal before setting up the Portfolio Template in production.\n" + }, + "processorMerchantId": { + "type": "string", + "minLength": 6, + "maxLength": 35, + "pattern": "^[a-zA-Z0-9]{6,35}$", + "description": "Processor Merchant ID is the Merchant ID assigned by your acquiring bank.\nThis Merchant ID should also be used by your bank to register your account to the card scheme Directory Server for processing Payer Authentication services.\n" + } + } + } + } + } + }, + "masterCardSecureCode": { + "type": "object", + "properties": { + "enabled": { + "type": "boolean", + "default": true + }, + "currencies": { + "type": "array", + "items": { + "type": "object", + "properties": { + "currencyCodes": { + "type": "array", + "description": "Supported currency codes are numeric ISO 4217 codes, such as 840 for US Dollar and 978 for Euro. \nFor backward compatibility, we also support the 'ALL' code, which represents all currencies. \nIn the UI, 'ALL' is displayed as 'Default'.\n", + "example": [ + "ALL", + "840", + "978" + ], + "items": { + "type": "string", + "example": "ALL" + } + }, + "acquirerId": { + "type": "string", + "minLength": 6, + "maxLength": 20, + "pattern": "^[a-zA-Z0-9]{6,20}$", + "description": "The Acquirer ID value, often referred to as the Acquirer BIN, is specific to an Acquirer.\nThe value is created by Cardinal in their system and the Acquirer may not know that the Acquirer ID is different from their Acquiring BIN.\nIt is most often the Acquiring BIN + \"-1000\" but the trailing character can be different.\n**Note** We will need to double check with Cardinal before setting up the Portfolio Template in production.\n" + }, + "processorMerchantId": { + "type": "string", + "minLength": 6, + "maxLength": 35, + "pattern": "^[a-zA-Z0-9]{6,35}$", + "description": "Processor Merchant ID is the Merchant ID assigned by your acquiring bank.\nThis Merchant ID should also be used by your bank to register your account to the card scheme Directory Server for processing Payer Authentication services.\n" + } + } + } + } + } + }, + "amexSafeKey": { + "type": "object", + "properties": { + "enabled": { + "type": "boolean", + "default": true + }, + "currencies": { + "type": "array", + "items": { + "type": "object", + "properties": { + "currencyCodes": { + "type": "array", + "description": "Supported currency codes are numeric ISO 4217 codes, such as 840 for US Dollar and 978 for Euro. \nFor backward compatibility, we also support the 'ALL' code, which represents all currencies. \nIn the UI, 'ALL' is displayed as 'Default'.\n", + "example": [ + "ALL", + "840", + "978" + ], "items": { "type": "string", "example": "ALL" @@ -95381,6 +93247,12 @@ "properties": { "currencyCodes": { "type": "array", + "description": "Supported currency codes are numeric ISO 4217 codes, such as 840 for US Dollar and 978 for Euro. \nFor backward compatibility, we also support the 'ALL' code, which represents all currencies. \nIn the UI, 'ALL' is displayed as 'Default'.\n", + "example": [ + "ALL", + "840", + "978" + ], "items": { "type": "string", "example": "ALL" @@ -95419,6 +93291,12 @@ "properties": { "currencyCodes": { "type": "array", + "description": "Supported currency codes are numeric ISO 4217 codes, such as 840 for US Dollar and 978 for Euro. \nFor backward compatibility, we also support the 'ALL' code, which represents all currencies. \nIn the UI, 'ALL' is displayed as 'Default'.\n", + "example": [ + "ALL", + "840", + "978" + ], "items": { "type": "string", "example": "ALL" @@ -95457,6 +93335,12 @@ "properties": { "currencyCodes": { "type": "array", + "description": "Supported currency codes are numeric ISO 4217 codes, such as 840 for US Dollar and 978 for Euro. \nFor backward compatibility, we also support the 'ALL' code, which represents all currencies. \nIn the UI, 'ALL' is displayed as 'Default'.\n", + "example": [ + "ALL", + "840", + "978" + ], "items": { "type": "string", "example": "ALL" @@ -95495,6 +93379,12 @@ "properties": { "currencyCodes": { "type": "array", + "description": "Supported currency codes are numeric ISO 4217 codes, such as 840 for US Dollar and 978 for Euro. \nFor backward compatibility, we also support the 'ALL' code, which represents all currencies. \nIn the UI, 'ALL' is displayed as 'Default'.\n", + "example": [ + "ALL", + "840", + "978" + ], "items": { "type": "string", "example": "ALL" @@ -95539,6 +93429,12 @@ "properties": { "currencyCodes": { "type": "array", + "description": "Supported currency codes are numeric ISO 4217 codes, such as 840 for US Dollar and 978 for Euro. \nFor backward compatibility, we also support the 'ALL' code, which represents all currencies. \nIn the UI, 'ALL' is displayed as 'Default'.\n", + "example": [ + "ALL", + "840", + "978" + ], "items": { "type": "string", "example": "ALL" @@ -96985,6 +94881,127 @@ } } } + }, + "serviceFee": { + "type": "object", + "properties": { + "subscriptionInformation": { + "type": "object", + "properties": { + "enabled": { + "type": "boolean" + }, + "selfServiceability": { + "type": "string", + "enum": [ + "SELF_SERVICEABLE", + "NOT_SELF_SERVICEABLE", + "SELF_SERVICE_ONLY" + ], + "default": "NOT_SELF_SERVICEABLE", + "description": "Indicates if the organization can enable this product using self service." + } + } + }, + "configurationInformation": { + "type": "object", + "properties": { + "configurations": { + "type": "object", + "properties": { + "products": { + "type": "object", + "description": "Products enabled for this account. The following values are supported:\nvirtualTerminal\npaymentTokenizationOtp\nsubscriptionsOtp\nvirtualTerminalCp\neCheck\n", + "additionalProperties": { + "type": "object", + "properties": { + "serviceFeeEnabled": { + "type": "boolean", + "description": "Boolean flag to determine if service fee will be applied to the Product." + } + } + } + }, + "terminalId": { + "type": "string", + "pattern": "/^[a-zA-Z0-9]+$/", + "description": "Identifier of the terminal at the retail location.", + "maxLength": 8 + }, + "merchantId": { + "type": "string", + "pattern": "/^[a-zA-Z0-9]+$/", + "description": "Identifier of a merchant account.", + "maxLength": 15 + }, + "merchantInformation": { + "type": "object", + "properties": { + "name": { + "type": "string", + "description": "Name of the merchant account.", + "maxLength": 25 + }, + "contact": { + "type": "string", + "pattern": "/^\\(?([0-9]{3})\\)?[-. ]?([0-9]{3})[-. ]?([0-9]{4})$/", + "description": "Phone number of the primary contact for the merchant account." + }, + "state": { + "type": "string", + "description": "2-character ISO code for the U.S. state in which the merchant is registered", + "maxLength": 2 + } + } + }, + "paymentInformation": { + "type": "array", + "items": { + "type": "object", + "properties": { + "paymentType": { + "type": "string", + "description": "Payment types accepted by this merchant. The supported values are: MASTERDEBIT, MASTERCREDIT, VISACREDIT, VISADEBIT, DISCOVERCREDIT, AMEXCREDIT, ECHECK", + "enum": [ + "MASTERDEBIT", + "MASTERCREDIT", + "VISACREDIT", + "VISADEBIT", + "DISCOVERCREDIT", + "AMEXCREDIT", + "ECHECK" + ] + }, + "feeType": { + "type": "string", + "description": "Fee type for the selected payment type. Supported values are: Flat or Percentage.\n", + "enum": [ + "FLAT", + "PERCENTAGE" + ] + }, + "feeAmount": { + "type": "number", + "pattern": "/^\\d{0,8}(\\.\\d{0,2})?$/", + "description": "Fee Amount of the selected payment type if you chose Flat fee type.\n" + }, + "percentage": { + "type": "number", + "description": "Percentage of the selected payment type if you chose Percentage Fee type. Supported values use numbers with decimals. For example, 1.0\n" + }, + "feeCap": { + "type": "number", + "pattern": "/^\\d{0,8}(\\.\\d{0,2})?$/", + "description": "Fee cap for the selected payment type. Supported values use numbers with decimals. For example, 1.0\n" + } + } + } + } + } + } + } + } + } } } }, @@ -98989,7 +97006,126 @@ } } }, - "payouts": { + "payouts": { + "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", + "enum": [ + "SUCCESS", + "FAILURE", + "PARTIAL", + "PENDING" + ] + }, + "reason": { + "type": "string", + "enum": [ + "DEPENDENT_PRODUCT_NOT_CONTRACTED", + "DEPENDENT_FEATURE_NOT_CHOSEN", + "MISSING_DATA", + "INVALID_DATA", + "DUPLICATE_FIELD" + ] + }, + "details": { + "type": "array", + "items": { + "type": "object", + "properties": { + "field": { + "type": "string" + }, + "reason": { + "type": "string", + "enum": [ + "MISSING_DATA", + "INVALID_DATA", + "DUPLICATE_FIELD" + ] + } + }, + "additionalProperties": { + "type": "string" + } + } + }, + "message": { + "type": "string" + } + } + }, + "configurationStatus": { + "type": "object", + "properties": { + "configurationId": { + "type": "string", + "format": "uuid", + "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", + "enum": [ + "SUCCESS", + "PARTIAL", + "PENDING", + "NOT_SETUP" + ] + }, + "reason": { + "type": "string", + "enum": [ + "PENDING_PROVISIONING_PROCESS", + "MISSING_DATA", + "INVALID_DATA", + "DUPLICATE_FIELD", + "NOT_APPLICABLE" + ] + }, + "details": { + "type": "array", + "items": { + "type": "object", + "properties": { + "field": { + "type": "string" + }, + "reason": { + "type": "string", + "enum": [ + "MISSING_DATA", + "INVALID_DATA", + "DUPLICATE_FIELD" + ] + } + }, + "additionalProperties": { + "type": "string" + } + } + }, + "message": { + "type": "string" + } + } + } + } + }, + "payByLink": { "type": "object", "properties": { "subscriptionStatus": { @@ -99044,18 +97180,15 @@ "type": "string" } } - }, - "configurationStatus": { + } + } + }, + "unifiedCheckout": { + "type": "object", + "properties": { + "subscriptionStatus": { "type": "object", "properties": { - "configurationId": { - "type": "string", - "format": "uuid", - "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" @@ -99064,19 +97197,19 @@ "type": "string", "enum": [ "SUCCESS", + "FAILURE", "PARTIAL", - "PENDING", - "NOT_SETUP" + "PENDING" ] }, "reason": { "type": "string", "enum": [ - "PENDING_PROVISIONING_PROCESS", + "DEPENDENT_PRODUCT_NOT_CONTRACTED", + "DEPENDENT_FEATURE_NOT_CHOSEN", "MISSING_DATA", "INVALID_DATA", - "DUPLICATE_FIELD", - "NOT_APPLICABLE" + "DUPLICATE_FIELD" ] }, "details": { @@ -99108,7 +97241,7 @@ } } }, - "payByLink": { + "receivablesManager": { "type": "object", "properties": { "subscriptionStatus": { @@ -99166,7 +97299,7 @@ } } }, - "unifiedCheckout": { + "serviceFee": { "type": "object", "properties": { "subscriptionStatus": { @@ -99221,15 +97354,18 @@ "type": "string" } } - } - } - }, - "receivablesManager": { - "type": "object", - "properties": { - "subscriptionStatus": { + }, + "configurationStatus": { "type": "object", "properties": { + "configurationId": { + "type": "string", + "format": "uuid", + "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" @@ -99238,19 +97374,19 @@ "type": "string", "enum": [ "SUCCESS", - "FAILURE", "PARTIAL", - "PENDING" + "PENDING", + "NOT_SETUP" ] }, "reason": { "type": "string", "enum": [ - "DEPENDENT_PRODUCT_NOT_CONTRACTED", - "DEPENDENT_FEATURE_NOT_CHOSEN", + "PENDING_PROVISIONING_PROCESS", "MISSING_DATA", "INVALID_DATA", - "DUPLICATE_FIELD" + "DUPLICATE_FIELD", + "NOT_APPLICABLE" ] }, "details": { @@ -104190,6 +102326,12 @@ "properties": { "currencyCodes": { "type": "array", + "description": "Supported currency codes are numeric ISO 4217 codes, such as 840 for US Dollar and 978 for Euro. \nFor backward compatibility, we also support the 'ALL' code, which represents all currencies. \nIn the UI, 'ALL' is displayed as 'Default'.\n", + "example": [ + "ALL", + "840", + "978" + ], "items": { "type": "string", "example": "ALL" @@ -104228,6 +102370,12 @@ "properties": { "currencyCodes": { "type": "array", + "description": "Supported currency codes are numeric ISO 4217 codes, such as 840 for US Dollar and 978 for Euro. \nFor backward compatibility, we also support the 'ALL' code, which represents all currencies. \nIn the UI, 'ALL' is displayed as 'Default'.\n", + "example": [ + "ALL", + "840", + "978" + ], "items": { "type": "string", "example": "ALL" @@ -104266,6 +102414,12 @@ "properties": { "currencyCodes": { "type": "array", + "description": "Supported currency codes are numeric ISO 4217 codes, such as 840 for US Dollar and 978 for Euro. \nFor backward compatibility, we also support the 'ALL' code, which represents all currencies. \nIn the UI, 'ALL' is displayed as 'Default'.\n", + "example": [ + "ALL", + "840", + "978" + ], "items": { "type": "string", "example": "ALL" @@ -104310,6 +102464,12 @@ "properties": { "currencyCodes": { "type": "array", + "description": "Supported currency codes are numeric ISO 4217 codes, such as 840 for US Dollar and 978 for Euro. \nFor backward compatibility, we also support the 'ALL' code, which represents all currencies. \nIn the UI, 'ALL' is displayed as 'Default'.\n", + "example": [ + "ALL", + "840", + "978" + ], "items": { "type": "string", "example": "ALL" @@ -104348,6 +102508,12 @@ "properties": { "currencyCodes": { "type": "array", + "description": "Supported currency codes are numeric ISO 4217 codes, such as 840 for US Dollar and 978 for Euro. \nFor backward compatibility, we also support the 'ALL' code, which represents all currencies. \nIn the UI, 'ALL' is displayed as 'Default'.\n", + "example": [ + "ALL", + "840", + "978" + ], "items": { "type": "string", "example": "ALL" @@ -104386,6 +102552,12 @@ "properties": { "currencyCodes": { "type": "array", + "description": "Supported currency codes are numeric ISO 4217 codes, such as 840 for US Dollar and 978 for Euro. \nFor backward compatibility, we also support the 'ALL' code, which represents all currencies. \nIn the UI, 'ALL' is displayed as 'Default'.\n", + "example": [ + "ALL", + "840", + "978" + ], "items": { "type": "string", "example": "ALL" @@ -104424,6 +102596,12 @@ "properties": { "currencyCodes": { "type": "array", + "description": "Supported currency codes are numeric ISO 4217 codes, such as 840 for US Dollar and 978 for Euro. \nFor backward compatibility, we also support the 'ALL' code, which represents all currencies. \nIn the UI, 'ALL' is displayed as 'Default'.\n", + "example": [ + "ALL", + "840", + "978" + ], "items": { "type": "string", "example": "ALL" @@ -104468,6 +102646,12 @@ "properties": { "currencyCodes": { "type": "array", + "description": "Supported currency codes are numeric ISO 4217 codes, such as 840 for US Dollar and 978 for Euro. \nFor backward compatibility, we also support the 'ALL' code, which represents all currencies. \nIn the UI, 'ALL' is displayed as 'Default'.\n", + "example": [ + "ALL", + "840", + "978" + ], "items": { "type": "string", "example": "ALL" @@ -105914,6 +104098,127 @@ } } } + }, + "serviceFee": { + "type": "object", + "properties": { + "subscriptionInformation": { + "type": "object", + "properties": { + "enabled": { + "type": "boolean" + }, + "selfServiceability": { + "type": "string", + "enum": [ + "SELF_SERVICEABLE", + "NOT_SELF_SERVICEABLE", + "SELF_SERVICE_ONLY" + ], + "default": "NOT_SELF_SERVICEABLE", + "description": "Indicates if the organization can enable this product using self service." + } + } + }, + "configurationInformation": { + "type": "object", + "properties": { + "configurations": { + "type": "object", + "properties": { + "products": { + "type": "object", + "description": "Products enabled for this account. The following values are supported:\nvirtualTerminal\npaymentTokenizationOtp\nsubscriptionsOtp\nvirtualTerminalCp\neCheck\n", + "additionalProperties": { + "type": "object", + "properties": { + "serviceFeeEnabled": { + "type": "boolean", + "description": "Boolean flag to determine if service fee will be applied to the Product." + } + } + } + }, + "terminalId": { + "type": "string", + "pattern": "/^[a-zA-Z0-9]+$/", + "description": "Identifier of the terminal at the retail location.", + "maxLength": 8 + }, + "merchantId": { + "type": "string", + "pattern": "/^[a-zA-Z0-9]+$/", + "description": "Identifier of a merchant account.", + "maxLength": 15 + }, + "merchantInformation": { + "type": "object", + "properties": { + "name": { + "type": "string", + "description": "Name of the merchant account.", + "maxLength": 25 + }, + "contact": { + "type": "string", + "pattern": "/^\\(?([0-9]{3})\\)?[-. ]?([0-9]{3})[-. ]?([0-9]{4})$/", + "description": "Phone number of the primary contact for the merchant account." + }, + "state": { + "type": "string", + "description": "2-character ISO code for the U.S. state in which the merchant is registered", + "maxLength": 2 + } + } + }, + "paymentInformation": { + "type": "array", + "items": { + "type": "object", + "properties": { + "paymentType": { + "type": "string", + "description": "Payment types accepted by this merchant. The supported values are: MASTERDEBIT, MASTERCREDIT, VISACREDIT, VISADEBIT, DISCOVERCREDIT, AMEXCREDIT, ECHECK", + "enum": [ + "MASTERDEBIT", + "MASTERCREDIT", + "VISACREDIT", + "VISADEBIT", + "DISCOVERCREDIT", + "AMEXCREDIT", + "ECHECK" + ] + }, + "feeType": { + "type": "string", + "description": "Fee type for the selected payment type. Supported values are: Flat or Percentage.\n", + "enum": [ + "FLAT", + "PERCENTAGE" + ] + }, + "feeAmount": { + "type": "number", + "pattern": "/^\\d{0,8}(\\.\\d{0,2})?$/", + "description": "Fee Amount of the selected payment type if you chose Flat fee type.\n" + }, + "percentage": { + "type": "number", + "description": "Percentage of the selected payment type if you chose Percentage Fee type. Supported values use numbers with decimals. For example, 1.0\n" + }, + "feeCap": { + "type": "number", + "pattern": "/^\\d{0,8}(\\.\\d{0,2})?$/", + "description": "Fee cap for the selected payment type. Supported values use numbers with decimals. For example, 1.0\n" + } + } + } + } + } + } + } + } + } } } }, @@ -108061,6 +106366,125 @@ } } } + }, + "serviceFee": { + "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", + "enum": [ + "SUCCESS", + "FAILURE", + "PARTIAL", + "PENDING" + ] + }, + "reason": { + "type": "string", + "enum": [ + "DEPENDENT_PRODUCT_NOT_CONTRACTED", + "DEPENDENT_FEATURE_NOT_CHOSEN", + "MISSING_DATA", + "INVALID_DATA", + "DUPLICATE_FIELD" + ] + }, + "details": { + "type": "array", + "items": { + "type": "object", + "properties": { + "field": { + "type": "string" + }, + "reason": { + "type": "string", + "enum": [ + "MISSING_DATA", + "INVALID_DATA", + "DUPLICATE_FIELD" + ] + } + }, + "additionalProperties": { + "type": "string" + } + } + }, + "message": { + "type": "string" + } + } + }, + "configurationStatus": { + "type": "object", + "properties": { + "configurationId": { + "type": "string", + "format": "uuid", + "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", + "enum": [ + "SUCCESS", + "PARTIAL", + "PENDING", + "NOT_SETUP" + ] + }, + "reason": { + "type": "string", + "enum": [ + "PENDING_PROVISIONING_PROCESS", + "MISSING_DATA", + "INVALID_DATA", + "DUPLICATE_FIELD", + "NOT_APPLICABLE" + ] + }, + "details": { + "type": "array", + "items": { + "type": "object", + "properties": { + "field": { + "type": "string" + }, + "reason": { + "type": "string", + "enum": [ + "MISSING_DATA", + "INVALID_DATA", + "DUPLICATE_FIELD" + ] + } + }, + "additionalProperties": { + "type": "string" + } + } + }, + "message": { + "type": "string" + } + } + } + } } } }, diff --git a/generator/cybersource-rest-spec.json b/generator/cybersource-rest-spec.json index 74cf88ba..571dcfef 100644 --- a/generator/cybersource-rest-spec.json +++ b/generator/cybersource-rest-spec.json @@ -216,10 +216,6 @@ "name": "surcharge", "description": "Surcharge service" }, - { - "name": "key-management", - "description": "Generate and deactivate batches of keys.\n" - }, { "name": "Merchant Boarding", "description": "Manage Boarding Registrations" @@ -306,7 +302,7 @@ }, { "name": "BIN_Lookup", - "description": "The BIN Lookup Service is a versatile business tool that provides card network agnostic solution designed to ensure frictionless transaction experience by utilizing up-to-date Bank Identification Number (BIN) attributes sourced from multiple global and regional data sources.\nThis service helps to improve authorization rates by helping to route transactions to the best-suited card network, minimizes fraud through card detail verification and aids in regulatory compliance by identifying card properties. The service is flexible and provides businesses \nwith a flexible choice of inputs such as primary account number (PAN), network token from major networks which includes device PAN (DPAN), and all types of tokens generated via CyberSource Token Management Service (TMS).\nCurrently, the range of available credentials is contingent on the networks enabled for the business entity. Therefore, the network information specified in this documentation is illustrative and subject to personalized offerings for each reseller or merchant.\n" + "description": "The BIN Lookup Service is a versatile business tool that provides card network agnostic solution designed to ensure frictionless transaction experience by utilizing up-to-date Bank Identification Number (BIN) attributes sourced from multiple global and regional data sources.\nThis service helps to improve authorization rates by helping to route transactions to the best-suited card network, minimizes fraud through card detail verification and aids in regulatory compliance by identifying card properties. The service is flexible and provides businesses with a flexible choice of inputs such as primary account number (PAN), network token from major networks which includes device PAN (DPAN), and all types of tokens generated via CyberSource Token Management Service (TMS).\nCurrently, the range of available credentials is contingent on the networks enabled for the business entity. Therefore, the network information specified in this documentation is illustrative and subject to personalized offerings for each reseller or merchant.\n" }, { "name": "Transaction_Details", @@ -338,9 +334,6 @@ { "name": "Fee Service" }, - { - "name": "Key_Management" - }, { "name": "Merchant_Boarding", "description": "For more information about Merchant Boarding, please see [Developer Guides Page](https://developer.cybersource.com/api/developer-guides/Merchant-Boarding-API_ditamap/Merchant-Boarding-API.html)." @@ -675,6 +668,10 @@ "cardVerificationIndicator": { "type": "boolean", "description": "This API field will indicate whether a card verification check is being performed during the transaction\n\nPossible values:\n - `true`\n - `false` (default value)\n" + }, + "aftIndicator": { + "type": "boolean", + "description": "Indicates whether the transaction is an Account Funding Transaction (AFT). \nThis field is mandatory for Account Funding Transactions (AFT). \n\nPossible values:\n - `true` (This is an AFT transaction)\n - `false` (default value) (This is not an AFT transaction)\n" } } }, @@ -2379,29 +2376,89 @@ } } }, + "senderInformation": { + "type": "object", + "properties": { + "firstName": { + "type": "string", + "maxLength": 30, + "description": "First name of the sender.\n\n**Applicable for Barclays AFT transactions only.**\nThe field is mandatory for Visa and not applicable for Mastercard AFT. \n\nOnly alpha numeric values are supported. \nSpecial characters not in the standard ASCII character set, are not supported and will be stripped before being sent to Barclays.\n\nFor Visa, the maximum length of First Name, Middle Name and Last Name is 30 characters. \nValues exceeding the above limits will be truncated.\n" + }, + "lastName": { + "type": "string", + "maxLength": 35, + "description": "Last name of the sender.\n\n**Applicable for Barclays AFT transactions only.**\nThis field is optional for Visa and not applicable for Mastercard AFT.\n\nOnly alpha numeric values are supported. \nSpecial characters not in the standard ASCII character set, are not supported and will be stripped before being sent to Barclays.\n\nFor Visa, the maximum length of First Name, Middle Name and Last Name is 30 characters. \nValues exceeding these limits will be truncated.\n" + }, + "middleName": { + "type": "string", + "maxLength": 30, + "description": "Middle name of the sender.\n\n**Applicable for Barclays AFT transactions only.**\nThe field is mandatory for Visa and not applicable for Mastercard AFT. \n\nOnly alpha numeric values are supported. \nSpecial characters not in the standard ASCII character set, are not supported and will be stripped before being sent to Barclays.\n\nFor Visa, the maximum length of First Name, Middle Name and Last Name is 30 characters. \nValues exceeding these limits will be truncated.\n" + }, + "address1": { + "type": "string", + "maxLength": 35, + "description": "The street address of the sender.\n \n**Applicable for Barclays AFT transactions only.**\nThe field is mandatory for Visa and not applicable for Mastercard AFT. \n \nOnly alpha numeric values are supported. \nSpecial characters not in the standard ASCII character set are not supported and will be stripped before being sent to Barclays. \n \nThe field has a maximum length of 35 characters. \nValues exceeding these limits will be truncated.\n" + }, + "locality": { + "type": "string", + "maxLength": 25, + "description": "The city or locality of the sender.in\n\n**Applicable for Barclays AFT transactions only.**\nThe field is optional for Visa and not applicable for Mastercard AFT. \n\nOnly alpha numeric values are supported. \nSpecial characters not in the standard ASCII character set are not supported and will be stripped before being sent to Barclays.\n\nThe field has a maximum length of 25 characters. \nValues exceeding these limits will be truncated.\n" + }, + "administrativeArea": { + "type": "string", + "maxLength": 2, + "description": "The state or province of the sender.\n\n**Applicable for Barclays AFT transactions only.**\nThe field is mandatory for Visa AFT when the sender country is US or CA else it is optional for Visa AFT.\nThis field is not applicable for Mastercard AFT.\n\nMust be a two character value\n" + }, + "countryCode": { + "type": "string", + "maxLength": 2, + "description": "The country associated with the address of the sender.\n\n**Applicable for Barclays AFT transactions only.**\nThe field is mandatory for Visa and not applicable for Mastercard AFT. \n\nMust be a two character ISO country code. \nFor example, see [ISO Country Code](https://developer.cybersource.com/docs/cybs/en-us/country-codes/reference/all/na/country-codes/country-codes.html)\n" + } + } + }, "recipientInformation": { "type": "object", "properties": { "accountId": { "type": "string", - "maxLength": 10, - "description": "Identifier for the recipient's account. Use the first six digits and last four digits of the recipient's account\nnumber. This field is a _pass-through_, which means that CyberSource does not verify the value or modify it in\nany way before sending it to the processor. If the field is not required for the transaction, CyberSource does\nnot forward it to the processor.\n\nFor details, see the `recipientInformation.accountId` field description in the [REST API Fields](https://developer.cybersource.com/content/dam/docs/cybs/en-us/apifields/reference/all/rest/api-fields.pdf)\n" + "maxLength": 50, + "description": "Identifier for the recipient's account.\n\n**Applicable for Barclays AFT transactions only.**\nIt is mandatory for both Visa and Mastercard AFT.\n\nFor Visa, the field has a maximum length of 34 character. \nFor Mastercard, the field has a maximum length of 50 character.\n" + }, + "accountType": { + "type": "string", + "maxLength": 2, + "description": "Identifies the recipient's account type.\n\n**Applicable for Barclays AFT transactions only.**\nThis field is mandatory for Mastercard and not applicable for Visa AFT.\n\nValid values are:\n - `00` for Other\n - `01` for Routing Transit Number (RTN) + Bank Account Number (BAN)\n - `02` for International Bank Account Number (IBAN)\n - `03` for Card Account\n - `06` for Bank Account Number (BAN) + Bank Identification Code (BIC), also known as a SWIFT code\n" + }, + "firstName": { + "type": "string", + "maxLength": 35, + "description": "First name of the recipient.\n\n**Applicable for Barclays AFT transactions only.**\nThe field is mandatory for both Visa and Mastercard AFT. \n\nOnly alpha numeric values are supported. \nSpecial characters not in the standard ASCII character set, are not supported and will be stripped before being sent to Barclays.\n\nFor Visa, the maximum length of First Name, Middle Name and Last Name is 30 characters. \nFor Mastercard, the field has a maximum length of 35 characters. \nValues exceeding the above limits will be truncated.\n" }, "lastName": { "type": "string", "maxLength": 35, - "description": "Recipient's last name. This field is a _passthrough_, which means that CyberSource does not verify the value or\nmodify it in any way before sending it to the processor. If the field is not required for the transaction,\nCyberSource does not forward it to the processor.\n\nFor details, see the `recipientInformation.lastName` field description in the [REST API Fields](https://developer.cybersource.com/content/dam/docs/cybs/en-us/apifields/reference/all/rest/api-fields.pdf)\n" + "description": "Last name of the recipient.\n\n**Applicable for Barclays AFT transactions only.**\nThis field is optional for both Visa and Mastercard AFT.\n\nOnly alpha numeric values are supported. \nSpecial characters not in the standard ASCII character set, are not supported and will be stripped before being sent to Barclays.\n\nFor Visa, the maximum length of First Name, Middle Name and Last Name is 30 characters. \nFor Mastercard, the field has a maximum length of 35 characters. \nValues exceeding these limits will be truncated.\n" }, "middleName": { "type": "string", - "maxLength": 35, - "description": "Recipient's middle name. This field is a _passthrough_, which means that CyberSource does not verify the value or\nmodify it in any way before sending it to the processor. If the field is not required for the transaction,\nCyberSource does not forward it to the processor.\n\nFor details, see the `recipientInformation.middleName` field description in the [REST API Fields](https://developer.cybersource.com/content/dam/docs/cybs/en-us/apifields/reference/all/rest/api-fields.pdf)\n" + "maxLength": 30, + "description": "Middle name of the recipient.\n\n**Applicable for Barclays AFT transactions only.**\nThis field is optional for both Visa and Mastercard AFT. \n\nOnly alpha numeric values are supported. \nSpecial characters not in the standard ASCII character set, are not supported and will be stripped before being sent to Barclays.\n\nFor Visa, the maximum length of First Name, Middle Name and Last Name is 30 characters. \nFor Mastercard, the field has a maximum length of 1 character. \nValues exceeding these limits will be truncated.\n" + }, + "address1": { + "type": "string", + "maxLength": 50, + "description": "The street address of the recipient\n \n**Applicable for Barclays AFT transactions only.**\nThis field is mandatory for Mastercard and not applicable for Visa AFT.\n \nOnly alpha numeric values are supported. \nSpecial characters not in the standard ASCII character set are not supported and will be stripped before being sent to Barclays. \n \nThe field has a maximum length of 50 characters. \nValues exceeding these limits will be truncated.\n" }, "postalCode": { "type": "string", "maxLength": 10, "description": "Partial postal code for the recipient's address. For example, if the postal code is **NN5 7SG**, the value for\nthis field should be the first part of the postal code: **NN5**. This field is a _pass-through_, which means that\nCyberSource does not verify the value or modify it in any way before sending it to the processor. If the field\nis not required for the transaction, CyberSource does not forward it to the processor.\n" }, + "country": { + "type": "string", + "maxLength": 2, + "description": "The country associated with the address of the recipient.\n\n**Applicable for Barclays AFT transactions only.**\nThis field is mandatory for Mastercard and not applicable for Visa AFT.\n\nMust be a two character ISO country code. \nFor example, see [ISO Country Code](https://developer.cybersource.com/docs/cybs/en-us/country-codes/reference/all/na/country-codes/country-codes.html)\n" + }, "dateOfBirth": { "type": "string", "maxLength": 8, @@ -5198,6 +5255,11 @@ "maxLength": 4, "description": "Field contains a settlement date. The date is in mmdd format, where: mm = month and dd = day.\n" }, + "sequenceNumber": { + "type": "string", + "maxLength": 50, + "description": "This field serves as a unique identifier for initial and subsequent recurring transactions, specific to the payment brand, and is crucial for transaction tracking and recurrence management. Not all processors provide this value.\nReturned by the authorization service.\n" + }, "avs": { "type": "object", "properties": { @@ -7131,7 +7193,7 @@ "properties": { "status": { "type": "string", - "description": "The status for payerAuthentication 201 enroll and validate calls. Possible values are:\n- `AUTHENTICATION_SUCCESSFUL`\n- `PENDING_AUTHENTICATION`\n- `INVALID_REQUEST`\n- `AUTHENTICATION_FAILED`\n" + "description": "The status for payerAuthentication 201 enroll and validate calls. Possible values are:\n- `AUTHENTICATION_SUCCESSFUL`\n- `PENDING_AUTHENTICATION`\n- `AUTHENTICATION_FAILED`\n" }, "reason": { "type": "string", @@ -7148,7 +7210,7 @@ "properties": { "status": { "type": "string", - "description": "The status for payerAuthentication 201 enroll and validate calls. Possible values are:\n- `AUTHENTICATION_SUCCESSFUL`\n- `PENDING_AUTHENTICATION`\n- `INVALID_REQUEST`\n- `AUTHENTICATION_FAILED`\n" + "description": "The status for payerAuthentication 201 enroll and validate calls. Possible values are:\n- `AUTHENTICATION_SUCCESSFUL`\n- `PENDING_AUTHENTICATION`\n- `AUTHENTICATION_FAILED`\n" }, "reason": { "type": "string", @@ -8574,6 +8636,63 @@ } }, "example30": { + "summary": "Account Funding Transaction", + "sample-name": "Process Account Funding Transaction", + "value": { + "clientReferenceInformation": { + "code": "RTS-AFT3-8" + }, + "processingInformation": { + "capture": true, + "commerceIndicator": "internet", + "businessApplicationId": "AA", + "authorizationOptions": { + "aftIndicator": true, + "ignoreAvsResult": true, + "ignoreCvResult": false + } + }, + "orderInformation": { + "billTo": { + "firstName": "Joe", + "middleName": "S", + "lastName": "Root", + "address1": "34 Orchard Grove", + "locality": "Southampton", + "postalCode": "DE6 1BE", + "country": "UK" + }, + "amountDetails": { + "totalAmount": "28.00", + "currency": "GBP" + } + }, + "paymentInformation": { + "card": { + "number": "4539791001730106", + "securityCode": "351", + "expirationMonth": "03", + "expirationYear": "2025", + "type": "001" + } + }, + "senderInformation": { + "firstName": "Joe", + "middleName": "S", + "lastName": "Root", + "address1": "34 Orchard Grove", + "locality": "Southampton", + "countryCode": "UK" + }, + "recipientInformation": { + "firstName": "Ben", + "middleName": "A", + "lastName": "Stokes", + "accountId": "4929421234600821" + } + } + }, + "example31": { "summary": "Electronic Check Debits", "sample-name": "Process Payment ECheck Debits", "value": { @@ -8611,7 +8730,7 @@ }, "parentTag": "Electronic Check(eCheck) and ServiceFees" }, - "example31": { + "example32": { "summary": "Electronic Check Debits with Legacy Token", "sample-name": "Process Payment ECheck Debits with Legacy Token", "value": { @@ -8645,7 +8764,7 @@ }, "parentTag": "Electronic Check(eCheck) and ServiceFees" }, - "example32": { + "example33": { "summary": "Service Fees with Credit Card transaction", "sample-name": "Process Payment Service Fees with Credit Card transaction", "value": { @@ -8688,7 +8807,7 @@ }, "parentTag": "Electronic Check(eCheck) and ServiceFees" }, - "example33": { + "example34": { "summary": "Authorization Using Swiped Track Data", "sample-name": "Authorization Using Swiped Track Data", "value": { @@ -8719,7 +8838,7 @@ }, "parentTag": "Card Present with Visa Platform Connect" }, - "example34": { + "example35": { "summary": "Sale Using Swiped Track Data with Visa Platform Connect", "sample-name": "Sale Using Swiped Track Data with Visa Platform Connect", "value": { @@ -8748,7 +8867,7 @@ }, "parentTag": "Card Present with Visa Platform Connect" }, - "example35": { + "example36": { "summary": "Sale Using Keyed Data with Visa Platform Connect", "sample-name": "Sale Using Keyed Data with Visa Platform Connect", "value": { @@ -8786,7 +8905,7 @@ }, "parentTag": "Card Present with Visa Platform Connect" }, - "example36": { + "example37": { "summary": "Sale Using Keyed Data with Balance Inquiry", "sample-name": "Sale Using Keyed Data with Balance Inquiry", "value": { @@ -8827,7 +8946,7 @@ }, "parentTag": "Card Present with Visa Platform Connect" }, - "example37": { + "example38": { "summary": "Sale Using EMV Technology with Contact Read with Visa Platform Connect", "sample-name": "Sale Using EMV Technology with Contact Read with Visa Platform Connect", "value": { @@ -8860,7 +8979,7 @@ }, "parentTag": "Card Present with Visa Platform Connect" }, - "example38": { + "example39": { "summary": "Sale Using EMV Technology with Contactless Read with Visa Platform Connect", "sample-name": "Sale Using EMV Technology with Contactless Read with Visa Platform Connect", "value": { @@ -8893,7 +9012,7 @@ }, "parentTag": "Card Present with Visa Platform Connect" }, - "example39": { + "example40": { "summary": "Authorization Using Bluefin PCI P2PE with Visa Platform Connect", "sample-name": "Authorization Using Bluefin PCI P2PE with Visa Platform Connect", "value": { @@ -8945,7 +9064,7 @@ }, "parentTag": "Card Present with Visa Platform Connect" }, - "example40": { + "example41": { "summary": "Restaurant Authorization", "sample-name": "Restaurant Authorization", "value": { @@ -8976,7 +9095,7 @@ }, "parentTag": "Card Present with Visa Platform Connect" }, - "example41": { + "example42": { "summary": "Sale Using EMV Technology with a Contactless", "sample-name": "Sale Using EMV Technology with a Contactless", "value": { @@ -9005,7 +9124,7 @@ }, "parentTag": "Card Present Enabled Acquirer" }, - "example42": { + "example43": { "summary": "Sale Using EMV Technology with Contact Read (One) for Card Present Enabled Acquirer", "sample-name": "Sale Using EMV Technology with Contact Read (One) for Card Present Enabled Acquirer", "value": { @@ -9035,7 +9154,7 @@ }, "parentTag": "Card Present Enabled Acquirer" }, - "example43": { + "example44": { "summary": "Swiped", "sample-name": "Swiped", "value": { @@ -9060,7 +9179,7 @@ }, "parentTag": "Card Present Enabled Acquirer" }, - "example44": { + "example45": { "summary": "Sale Using Swiped Track Data for Card Present Enabled Acquirer", "sample-name": "Sale Using Swiped Track Data for Card Present Enabled Acquirer", "value": { @@ -9086,7 +9205,7 @@ }, "parentTag": "Card Present Enabled Acquirer" }, - "example45": { + "example46": { "summary": "Sale Using Keyed Data for Card Present Enabled Acquirer", "sample-name": "Sale Using Keyed Data for Card Present Enabled Acquirer", "value": { @@ -9119,7 +9238,7 @@ }, "parentTag": "Card Present Enabled Acquirer" }, - "example46": { + "example47": { "summary": "American Express Direct - EMV with Contact Read", "sample-name": "American Express Direct - EMV with Contact Read", "value": { @@ -9166,7 +9285,7 @@ }, "parentTag": "Card Present Enabled Acquirer" }, - "example47": { + "example48": { "summary": "Sale Using EMV Technology with Contact Read (Two) for Card Present Enabled Acquirer", "sample-name": "Sale Using EMV Technology with Contact Read (Two) for Card Present Enabled Acquirer", "value": { @@ -9214,7 +9333,7 @@ }, "parentTag": "Card Present Enabled Acquirer" }, - "example48": { + "example49": { "summary": "Sale Using EMV Technology with Contactless Read for Card Present Enabled Acquirer", "sample-name": "Sale Using EMV Technology with Contactless Read for Card Present Enabled Acquirer", "value": { @@ -9262,7 +9381,7 @@ }, "parentTag": "Card Present Enabled Acquirer" }, - "example49": { + "example50": { "summary": "Authorization Using Bluefin PCI P2PE for Card Present Enabled Acquirer", "sample-name": "Authorization Using Bluefin PCI P2PE for Card Present Enabled Acquirer", "value": { @@ -9309,7 +9428,7 @@ }, "parentTag": "Card Present Enabled Acquirer" }, - "example50": { + "example51": { "summary": "Authorization with Instrument Identifier Token Id", "sample-name": "Authorization with Instrument Identifier Token Id", "value": { @@ -9349,7 +9468,7 @@ }, "parentTag": "Authorization using Tokens" }, - "example51": { + "example52": { "summary": "Authorization with Legacy Token", "sample-name": "Authorization with Legacy Token", "value": { @@ -9381,7 +9500,7 @@ }, "parentTag": "Authorization using Tokens" }, - "example52": { + "example53": { "summary": "Authorization with PA Enroll (Authentication Needed) & Customer Token Creation", "sample-name": "Authorization with PA Enroll (Authentication Needed) & Customer Token Creation", "value": { @@ -9441,7 +9560,7 @@ }, "parentTag": "Authorization with Token Create" }, - "example53": { + "example54": { "summary": "Authorization with Transit Tap Id", "sample-name": "Authorization with Transit Tap Id", "value": { @@ -9474,7 +9593,7 @@ }, "parentTag": "Authorization using Tokens" }, - "example54": { + "example55": { "summary": "Pin Debit Purchase Using Swiped Track Data with Visa Platform Connect", "sample-name": "Pin Debit Purchase Using Swiped Track Data with Visa Platform Connect", "value": { @@ -9515,7 +9634,7 @@ }, "parentTag": "Card Present with Visa Platform Connect" }, - "example55": { + "example56": { "summary": "Pin Debit Purchase Using EMV Contact with Visa Platform Connect", "sample-name": "Pin Debit Purchase Using EMV Contact with Visa Platform Connect", "value": { @@ -9560,7 +9679,7 @@ }, "parentTag": "Card Present with Visa Platform Connect" }, - "example56": { + "example57": { "summary": "Pin Debit Purchase Using EMV Technology with Contactless Read with Visa Platform Connect", "sample-name": "Pin Debit Purchase Using EMV Technology with Contactless Read with Visa Platform Connect", "value": { @@ -9602,7 +9721,7 @@ }, "parentTag": "Card Present with Visa Platform Connect" }, - "example57": { + "example58": { "summary": "Pin Debit Purchase with Cashback Request with Visa Platform Connect", "sample-name": "Pin Debit Purchase with Cashback Request with Visa Platform Connect", "value": { @@ -9645,7 +9764,7 @@ }, "parentTag": "Card Present with Visa Platform Connect" }, - "example58": { + "example59": { "summary": "Pin Debit Purchase Using EMV Contactless Balance Inquiry with Visa Platform Connect", "sample-name": "Pin Debit Purchase Using EMV Contactless Balance Inquiry with Visa Platform Connect", "value": { @@ -9690,7 +9809,7 @@ }, "parentTag": "Card Present with Visa Platform Connect" }, - "example59": { + "example60": { "summary": "EBT - Purchase from SNAP Account with Visa Platform Connect", "sample-name": "EBT - Purchase from SNAP Account with Visa Platform Connect", "value": { @@ -9736,7 +9855,7 @@ }, "parentTag": "Card Present with Visa Platform Connect" }, - "example60": { + "example61": { "summary": "EBT - Purchase from SNAP Account with Available Balance In Response with Visa Platform Connect", "sample-name": "EBT - Purchase from SNAP Account with Available Balance In Response with Visa Platform Connect", "value": { @@ -9782,7 +9901,7 @@ }, "parentTag": "Card Present with Visa Platform Connect" }, - "example61": { + "example62": { "summary": "EBT - Electronic Voucher Purchase from SNAP Account with Visa Platform Connect", "sample-name": "EBT - Electronic Voucher Purchase from SNAP Account with Visa Platform Connect", "value": { @@ -9831,7 +9950,7 @@ }, "parentTag": "Card Present with Visa Platform Connect" }, - "example62": { + "example63": { "summary": "EBT - Purchase from Cash Benefits Account with Cashback", "sample-name": "EBT - Purchase from Cash Benefits Account with Cashback", "value": { @@ -9881,7 +10000,7 @@ }, "parentTag": "Card Present with Visa Platform Connect" }, - "example63": { + "example64": { "summary": "SI Completion Amount>0", "sample-name": "SI Completion", "value": { @@ -9943,7 +10062,7 @@ } } }, - "example64": { + "example65": { "summary": "Redirectional SI Completion Amount > 0", "sample-name": "S2S SI Completion", "value": { @@ -10003,7 +10122,7 @@ } } }, - "example65": { + "example66": { "summary": "PIN-less Debit Purchase Using EMV Technology with Contactless Less Than or Equal to $50", "sample-name": "PIN-less Debit Purchase Using EMV Technology with Contactless Less Than or Equal to $50", "value": { @@ -58781,6 +58900,9 @@ }, "consumerAuthenticationInformation": { "type": "object", + "required": [ + "deviceChannel" + ], "properties": { "strongAuthentication": { "type": "object", @@ -58792,11 +58914,6 @@ } } }, - "authenticationType": { - "type": "string", - "maxLength": 2, - "description": "Indicates the type of authentication that will be used to challenge the card holder.\n\nPossible Values:\n\n01 - Static\n\n02 - Dynamic\n\n03 - OOB (Out of Band)\n\n04 - Decoupled\n\n20 - OTP hosted at merchant end. (Rupay S2S flow)\n**NOTE**: EMV 3-D Secure version 2.1.0 supports values 01-03. Version 2.2.0 supports values 01-04. Decoupled authentication is not supported at this time.\n" - }, "acsWindowSize": { "type": "string", "maxLength": 2, @@ -60685,9 +60802,6 @@ "properties": { "clientReferenceInformation": { "type": "object", - "required": [ - "code" - ], "properties": { "code": { "type": "string", @@ -61052,18 +61166,11 @@ "example0": { "summary": "Setup Completion with Card Number", "value": { - "clientReferenceInformation": { - "code": "cybs_test", - "partner": { - "developerId": "7891234", - "solutionId": "89012345" - } - }, "paymentInformation": { "card": { "expirationMonth": "12", "expirationYear": "2025", - "number": "4000000000000101", + "number": "4000000000002503", "type": "001" } } @@ -61088,9 +61195,6 @@ "example2": { "summary": "Setup Completion with Tokenized Card", "value": { - "clientReferenceInformation": { - "code": "cybs_test" - }, "paymentInformation": { "tokenizedCard": { "number": "4111111111111111", @@ -61178,9 +61282,6 @@ "properties": { "clientReferenceInformation": { "type": "object", - "required": [ - "code" - ], "properties": { "code": { "type": "string", @@ -61559,17 +61660,11 @@ "card": { "type": "object", "required": [ - "type", "expirationMonth", "expirationYear", "number" ], "properties": { - "bin": { - "type": "string", - "maxLength": 6, - "description": "description: The BIN is the first six digits of the card's Primary Account Number (PAN).\n" - }, "type": { "type": "string", "description": "Three-digit value that indicates the card type.\n\n**IMPORTANT** It is strongly recommended that you include the card type field in request messages even if it is\noptional for your processor and card type. Omitting the card type can cause the transaction to be processed with the wrong card type.\n\nPossible values:\n- `001`: Visa. For card-present transactions on all processors except SIX, the Visa Electron card type is processed the same way that the Visa debit card is processed. Use card type value `001` for Visa Electron.\n- `002`: Mastercard, Eurocard[^1], which is a European regional brand of Mastercard.\n- `003`: American Express\n- `004`: Discover\n- `005`: Diners Club\n- `006`: Carte Blanche[^1]\n- `007`: JCB[^1]\n- `014`: Enroute[^1]\n- `021`: JAL[^1]\n- `024`: Maestro (UK Domestic)[^1]\n- `031`: Delta[^1]: Use this value only for Ingenico ePayments. For other processors, use `001` for all Visa card types.\n- `033`: Visa Electron[^1]. Use this value only for Ingenico ePayments and SIX. For other processors, use `001` for all Visa card types.\n- `034`: Dankort[^1]\n- `036`: Cartes Bancaires[^1,4]\n- `037`: Carta Si[^1]\n- `039`: Encoded account number[^1]\n- `040`: UATP[^1]\n- `042`: Maestro (International)[^1]\n- `050`: Hipercard[^2,3]\n- `051`: Aura\n- `054`: Elo[^3]\n- `062`: China UnionPay\n- '070': EFTPOS\n\n[^1]: For this card type, you must include the `paymentInformation.card.type` or `paymentInformation.tokenizedCard.type` field in your request for an authorization or a stand-alone credit.\n[^2]: For this card type on Cielo 3.0, you must include the `paymentInformation.card.type` or `paymentInformation.tokenizedCard.type` field in a request for an authorization or a stand-alone credit. This card type is not supported on Cielo 1.5.\n[^3]: For this card type on Getnet and Rede, you must include the `paymentInformation.card.type` or `paymentInformation.tokenizedCard.type` field in a request for an authorization or a stand-alone credit.\n[^4]: For this card type, you must include the `paymentInformation.card.type` in your request for any payer authentication services.\n\n#### Used by\n**Authorization**\nRequired for Carte Blanche and JCB.\nOptional for all other card types.\n\n#### Card Present reply\nThis field is included in the reply message when the client software that is installed on the POS terminal uses\nthe token management service (TMS) to retrieve tokenized payment details. You must contact customer support to\nhave your account enabled to receive these fields in the credit reply message.\n\nReturned by the Credit service.\n\nThis reply field is only supported by the following processors:\n- American Express Direct\n- Credit Mutuel-CIC\n- FDC Nashville Global\n- OmniPay Direct\n- SIX\n\n#### Google Pay transactions\nFor PAN-based Google Pay transactions, this field is returned in the API response.\n\n#### GPX\nThis field only supports transactions from the following card types:\n- Visa\n- Mastercard\n- AMEX\n- Discover\n- Diners\n- JCB\n- Union Pay International\n" @@ -61763,6 +61858,16 @@ }, "deviceInformation": { "type": "object", + "required": [ + "userAgentBrowserValue", + "httpBrowserTimeDifference", + "httpBrowserScreenWidth", + "httpBrowserScreenHeight", + "httpBrowserLanguage", + "httpBrowserJavaEnabled", + "httpAcceptContent", + "httpBrowserColorDepth" + ], "properties": { "ipAddress": { "type": "string", @@ -61948,6 +62053,9 @@ }, "consumerAuthenticationInformation": { "type": "object", + "required": [ + "deviceChannel" + ], "properties": { "strongAuthentication": { "type": "object", @@ -61959,11 +62067,6 @@ } } }, - "authenticationType": { - "type": "string", - "maxLength": 2, - "description": "Indicates the type of authentication that will be used to challenge the card holder.\n\nPossible Values:\n\n01 - Static\n\n02 - Dynamic\n\n03 - OOB (Out of Band)\n\n04 - Decoupled\n\n20 - OTP hosted at merchant end. (Rupay S2S flow)\n**NOTE**: EMV 3-D Secure version 2.1.0 supports values 01-03. Version 2.2.0 supports values 01-04. Decoupled authentication is not supported at this time.\n" - }, "acsWindowSize": { "type": "string", "maxLength": 2, @@ -62359,13 +62462,9 @@ "type": "string", "description": "Time of request in UTC. Format: `YYYY-MM-DDThh:mm:ssZ`\n**Example** `2016-08-11T22:47:57Z` equals August 11, 2016, at 22:47:57 (10:47:57 p.m.).\nThe `T` separates the date and the time. The `Z` indicates UTC.\n\nReturned by Cybersource for all services.\n" }, - "submitTimeLocal": { - "type": "string", - "description": "Time that the transaction was submitted in local time. Generated by Cybersource." - }, "status": { "type": "string", - "description": "The status for payerAuthentication 201 enroll and validate calls. Possible values are:\n- `AUTHENTICATION_SUCCESSFUL`\n- `PENDING_AUTHENTICATION`\n- `INVALID_REQUEST`\n- `AUTHENTICATION_FAILED`\n" + "description": "The status for payerAuthentication 201 enroll and validate calls. Possible values are:\n- `AUTHENTICATION_SUCCESSFUL`\n- `PENDING_AUTHENTICATION`\n- `AUTHENTICATION_FAILED`\n" }, "message": { "type": "string", @@ -62710,7 +62809,7 @@ }, "status": { "type": "string", - "description": "The status for payerAuthentication 201 enroll and validate calls. Value is:\n- `INVALID_REQUEST`\n" + "description": "The status for payerAuthentication 400 enroll and validate calls. Value is:\n- `INVALID_REQUEST`\n" }, "reason": { "type": "string", @@ -62769,9 +62868,6 @@ "example0": { "summary": "Enroll with Pending Authentication", "value": { - "clientReferenceInformation": { - "code": "cybs_test" - }, "orderInformation": { "billTo": { "firstName": "John", @@ -62798,11 +62894,25 @@ "card": { "expirationMonth": "12", "expirationYear": "2025", - "number": "4000000000000101", + "number": "4000000000002503", "type": "001" } }, + "deviceInformation": { + "userAgentBrowserValue": "GxKnLy8TFDUFxJP1t", + "httpBrowserTimeDifference": "300", + "httpBrowserScreenWidth": "100000", + "httpBrowserScreenHeight": "100000", + "httpBrowserLanguage": "en_us", + "httpBrowserJavaScriptEnabled": "Y", + "httpBrowserJavaEnabled": "N", + "httpAcceptContent": "test", + "httpBrowserColorDepth": "24", + "fingerprintSessionId": "xyz", + "ipAddress": "139.130.4.5" + }, "consumerAuthenticationInformation": { + "deviceChannel": "BROWSER", "transactionMode": "eCommerce" } } @@ -62810,9 +62920,6 @@ "example1": { "summary": "Enroll with Travel Information", "value": { - "clientReferenceInformation": { - "code": "cybs_test" - }, "travelInformation": { "legs": [ { @@ -62867,10 +62974,24 @@ "type": "002", "expirationMonth": "12", "expirationYear": "2025", - "number": "5200340000000015" + "number": "5200000000002151" } }, + "deviceInformation": { + "userAgentBrowserValue": "GxKnLy8TFDUFxJP1t", + "httpBrowserTimeDifference": "300", + "httpBrowserScreenWidth": "100000", + "httpBrowserScreenHeight": "100000", + "httpBrowserLanguage": "en_us", + "httpBrowserJavaScriptEnabled": "Y", + "httpBrowserJavaEnabled": "N", + "httpAcceptContent": "test", + "httpBrowserColorDepth": "24", + "fingerprintSessionId": "xyz", + "ipAddress": "139.130.4.5" + }, "consumerAuthenticationInformation": { + "deviceChannel": "BROWSER", "transactionMode": "MOTO" } } @@ -62878,13 +62999,6 @@ "example2": { "summary": "Authentication with NO Redirect", "value": { - "clientReferenceInformation": { - "code": "cybs_test", - "partner": { - "developerId": "7891234", - "solutionId": "89012345" - } - }, "orderInformation": { "billTo": { "firstName": "John", @@ -62909,17 +63023,30 @@ "type": "001", "expirationMonth": "12", "expirationYear": "2025", - "number": "4000990000000004" + "number": "4000000000002701" } + }, + "deviceInformation": { + "userAgentBrowserValue": "GxKnLy8TFDUFxJP1t", + "httpBrowserTimeDifference": "300", + "httpBrowserScreenWidth": "100000", + "httpBrowserScreenHeight": "100000", + "httpBrowserLanguage": "en_us", + "httpBrowserJavaScriptEnabled": "Y", + "httpBrowserJavaEnabled": "N", + "httpAcceptContent": "test", + "httpBrowserColorDepth": "24", + "fingerprintSessionId": "xyz", + "ipAddress": "139.130.4.5" + }, + "consumerAuthenticationInformation": { + "deviceChannel": "BROWSER" } } }, "example3": { "summary": "Authentication with New Account", "value": { - "clientReferenceInformation": { - "code": "New Account" - }, "orderInformation": { "billTo": { "firstName": "John", @@ -62944,10 +63071,24 @@ "type": "001", "expirationMonth": "12", "expirationYear": "2025", - "number": "4000990000000004" + "number": "4000000000002701" } }, + "deviceInformation": { + "userAgentBrowserValue": "GxKnLy8TFDUFxJP1t", + "httpBrowserTimeDifference": "300", + "httpBrowserScreenWidth": "100000", + "httpBrowserScreenHeight": "100000", + "httpBrowserLanguage": "en_us", + "httpBrowserJavaScriptEnabled": "Y", + "httpBrowserJavaEnabled": "N", + "httpAcceptContent": "test", + "httpBrowserColorDepth": "24", + "fingerprintSessionId": "xyz", + "ipAddress": "139.130.4.5" + }, "consumerAuthenticationInformation": { + "deviceChannel": "BROWSER", "transactionMode": "MOTO" }, "riskInformation": { @@ -62964,11 +63105,8 @@ } }, "example4": { - "summary": "Pending Authentication with Unknown path", + "summary": "Pending Authentication with Tokenized Card", "value": { - "clientReferenceInformation": { - "code": "UNKNOWN" - }, "orderInformation": { "billTo": { "firstName": "John", @@ -62989,12 +63127,29 @@ } }, "paymentInformation": { - "card": { + "tokenizedCard": { + "transactionType": "1", "type": "001", - "expirationMonth": "12", + "expirationMonth": "11", "expirationYear": "2025", - "number": "4012001037490014" + "number": "4111111111111111" } + }, + "deviceInformation": { + "userAgentBrowserValue": "GxKnLy8TFDUFxJP1t", + "httpBrowserTimeDifference": "300", + "httpBrowserScreenWidth": "100000", + "httpBrowserScreenHeight": "100000", + "httpBrowserLanguage": "en_us", + "httpBrowserJavaScriptEnabled": "Y", + "httpBrowserJavaEnabled": "N", + "httpAcceptContent": "test", + "httpBrowserColorDepth": "24", + "fingerprintSessionId": "xyz", + "ipAddress": "139.130.4.5" + }, + "consumerAuthenticationInformation": { + "deviceChannel": "BROWSER" } } }, @@ -63084,9 +63239,6 @@ "properties": { "clientReferenceInformation": { "type": "object", - "required": [ - "code" - ], "properties": { "code": { "type": "string", @@ -63162,11 +63314,6 @@ "card": { "type": "object", "properties": { - "bin": { - "type": "string", - "maxLength": 6, - "description": "description: The BIN is the first six digits of the card's Primary Account Number (PAN).\n" - }, "type": { "type": "string", "description": "Three-digit value that indicates the card type.\n\n**IMPORTANT** It is strongly recommended that you include the card type field in request messages even if it is\noptional for your processor and card type. Omitting the card type can cause the transaction to be processed with the wrong card type.\n\nPossible values:\n- `001`: Visa. For card-present transactions on all processors except SIX, the Visa Electron card type is processed the same way that the Visa debit card is processed. Use card type value `001` for Visa Electron.\n- `002`: Mastercard, Eurocard[^1], which is a European regional brand of Mastercard.\n- `003`: American Express\n- `004`: Discover\n- `005`: Diners Club\n- `006`: Carte Blanche[^1]\n- `007`: JCB[^1]\n- `014`: Enroute[^1]\n- `021`: JAL[^1]\n- `024`: Maestro (UK Domestic)[^1]\n- `031`: Delta[^1]: Use this value only for Ingenico ePayments. For other processors, use `001` for all Visa card types.\n- `033`: Visa Electron[^1]. Use this value only for Ingenico ePayments and SIX. For other processors, use `001` for all Visa card types.\n- `034`: Dankort[^1]\n- `036`: Cartes Bancaires[^1,4]\n- `037`: Carta Si[^1]\n- `039`: Encoded account number[^1]\n- `040`: UATP[^1]\n- `042`: Maestro (International)[^1]\n- `050`: Hipercard[^2,3]\n- `051`: Aura\n- `054`: Elo[^3]\n- `062`: China UnionPay\n- '070': EFTPOS\n\n[^1]: For this card type, you must include the `paymentInformation.card.type` or `paymentInformation.tokenizedCard.type` field in your request for an authorization or a stand-alone credit.\n[^2]: For this card type on Cielo 3.0, you must include the `paymentInformation.card.type` or `paymentInformation.tokenizedCard.type` field in a request for an authorization or a stand-alone credit. This card type is not supported on Cielo 1.5.\n[^3]: For this card type on Getnet and Rede, you must include the `paymentInformation.card.type` or `paymentInformation.tokenizedCard.type` field in a request for an authorization or a stand-alone credit.\n[^4]: For this card type, you must include the `paymentInformation.card.type` in your request for any payer authentication services.\n\n#### Used by\n**Authorization**\nRequired for Carte Blanche and JCB.\nOptional for all other card types.\n\n#### Card Present reply\nThis field is included in the reply message when the client software that is installed on the POS terminal uses\nthe token management service (TMS) to retrieve tokenized payment details. You must contact customer support to\nhave your account enabled to receive these fields in the credit reply message.\n\nReturned by the Credit service.\n\nThis reply field is only supported by the following processors:\n- American Express Direct\n- Credit Mutuel-CIC\n- FDC Nashville Global\n- OmniPay Direct\n- SIX\n\n#### Google Pay transactions\nFor PAN-based Google Pay transactions, this field is returned in the API response.\n\n#### GPX\nThis field only supports transactions from the following card types:\n- Visa\n- Mastercard\n- AMEX\n- Discover\n- Diners\n- JCB\n- Union Pay International\n" @@ -63260,6 +63407,9 @@ }, "consumerAuthenticationInformation": { "type": "object", + "required": [ + "authenticationTransactionId" + ], "properties": { "authenticationTransactionId": { "type": "string", @@ -63276,16 +63426,6 @@ "maxLength": 255, "description": "OTP entered by the card holder.\n" }, - "authenticationType": { - "type": "string", - "maxLength": 2, - "description": "Indicates the type of authentication that will be used to challenge the card holder.\n\nPossible Values:\n\n01 - Static\n\n02 - Dynamic\n\n03 - OOB (Out of Band)\n\n04 - Decoupled\n\n20 - OTP hosted at merchant end. (Rupay S2S flow)\n**NOTE**: EMV 3-D Secure version 2.1.0 supports values 01-03. Version 2.2.0 supports values 01-04. Decoupled authentication is not supported at this time.\n" - }, - "effectiveAuthenticationType": { - "type": "string", - "maxLength": 2, - "description": "This field describes the type of 3DS transaction flow that took place. It can be one of three possible flows;\nCH - Challenge\nFR - Frictionless\nFD - Frictionless with delegation, (challenge not generated by the issuer but by the scheme on behalf of the issuer).\n" - }, "responseAccessToken": { "type": "string", "description": "JWT returned by the 3D Secure provider when the authentication is complete. Required for Hybrid integration if you use the Cybersource-generated access token. Note: Max. length of this field is 2048 characters.\n" @@ -63369,13 +63509,9 @@ "type": "string", "description": "Time of request in UTC. Format: `YYYY-MM-DDThh:mm:ssZ`\n**Example** `2016-08-11T22:47:57Z` equals August 11, 2016, at 22:47:57 (10:47:57 p.m.).\nThe `T` separates the date and the time. The `Z` indicates UTC.\n\nReturned by Cybersource for all services.\n" }, - "submitTimeLocal": { - "type": "string", - "description": "Time that the transaction was submitted in local time. Generated by Cybersource." - }, "status": { "type": "string", - "description": "The status for payerAuthentication 201 enroll and validate calls. Possible values are:\n- `AUTHENTICATION_SUCCESSFUL`\n- `PENDING_AUTHENTICATION`\n- `INVALID_REQUEST`\n- `AUTHENTICATION_FAILED`\n" + "description": "The status for payerAuthentication 201 enroll and validate calls. Possible values are:\n- `AUTHENTICATION_SUCCESSFUL`\n- `PENDING_AUTHENTICATION`\n- `AUTHENTICATION_FAILED`\n" }, "message": { "type": "string", @@ -63418,15 +63554,29 @@ "type": "string", "description": "Identifies the UI Type the ACS will use to complete the challenge. **NOTE**: Only available for App transactions using the Cardinal Mobile SDK.\n" }, + "acsReferenceNumber": { + "type": "string", + "maxLength": 50, + "description": "Unique identifier assigned by the EMVCo Secretariat upon Testing and Approval." + }, "acsTransactionId": { "type": "string", "maxLength": 36, "description": "Unique transaction identifier assigned by the ACS to identify a single transaction.\n" }, + "acsOperatorID": { + "type": "string", + "description": "Directory Server assigned ACS identifier." + }, "authenticationResult": { "type": "string", "description": "Raw authentication data that comes from the cardissuing bank. Primary authentication field that\nindicates if authentication was successful and if liability shift occurred. You should examine first the\nresult of this field. This field contains one of these values:\n- `-1`: Invalid PARes.\n- `0`: Successful validation.\n- `1`: Cardholder is not participating, but the attempt to authenticate was recorded.\n- `6`: Issuer unable to perform authentication.\n- `9`: Cardholder did not complete authentication.\n" }, + "authenticationType": { + "type": "string", + "maxLength": 2, + "description": "Indicates the type of authentication that will be used to challenge the card holder.\n\nPossible Values:\n\n01 - Static\n\n02 - Dynamic\n\n03 - OOB (Out of Band)\n\n04 - Decoupled\n\n20 - OTP hosted at merchant end. (Rupay S2S flow)\n**NOTE**: EMV 3-D Secure version 2.1.0 supports values 01-03. Version 2.2.0 supports values 01-04. Decoupled authentication is not supported at this time.\n" + }, "authenticationStatusMsg": { "type": "string", "description": "Message that explains the authenticationResult reply field.\n" @@ -63460,6 +63610,11 @@ "maxLength": 1, "description": "Field that is returned only when the CAVV is generated, which occurs when paresStatus\ncontains the values Y (successful authentication) or A (attempted authentication). If\nyou use the ATOS processor, send the value of this field in the `cavv_algorithm` request field of the\nauthorization service. This field contains one of these values:\n- `2`: Visa, American Express, JCB, Diners Club, and Discover\n- `3`: Mastercard\n" }, + "challengeCancelCode": { + "type": "string", + "maxLength": 2, + "description": "An indicator as to why the transaction was canceled.\nPossible Values:\n\n- `01`: Cardholder selected Cancel.\n- `02`: Reserved for future EMVCo use (values invalid until defined by EMVCo).\n- `03`: Transaction Timed Out\u2014Decoupled Authentication\n- `04`: Transaction timed out at ACS\u2014other timeouts\n- `05`: Transaction Timed out at ACS - First CReq not received by ACS\n- `06`: Transaction Error\n- `07`: Unknown\n- `08`: Transaction Timed Out at SDK\n" + }, "directoryServerErrorCode": { "type": "string", "description": "The directory server error code indicating a problem with this transaction. Note - Max Length of this field is typically 3 characters.\n" @@ -63469,6 +63624,11 @@ "maxLength": 4096, "description": "Directory server text and additional detail about the error for this transaction.\n" }, + "effectiveAuthenticationType": { + "type": "string", + "maxLength": 2, + "description": "This field describes the type of 3DS transaction flow that took place. It can be one of three possible flows;\nCH - Challenge\nFR - Frictionless\nFD - Frictionless with delegation, (challenge not generated by the issuer but by the scheme on behalf of the issuer).\n" + }, "indicator": { "type": "string", "description": "Indicator used to differentiate Internet transactions from other types. The authentication failed if this field\nis not returned. For Visa, if your payment processor is Streamline, Barclays, AIBMS, or FDC Germany,\nyou receive the value vbv_failure instead of internet when eci is 07.\nThe value of this field is passed automatically to the authorization service if you request the services\ntogether. This field contains one of these values:\n- `aesk`: American Express SafeKey authentication verified successfully.\n- `aesk_attempted`: Card not enrolled in American Express SafeKey, but the attempt to authenticate was recorded.\n- `dipb`: Discover ProtectBuy authentication verified successfully.\n- `dipb_attempted`: Card not enrolled in Discover ProtectBuy, but the attempt to authenticate was recorded.\n- `internet`: Authentication was not verified successfully.\n- `js`: J/Secure authentication verified successfully.\n- `js_attempted`: Card not enrolled in J/Secure, but the attempt to authenticate was recorded.\n- `moto`: Mail or telephone order.\n- `pb_attempted`: Card not enrolled in Diners Club ProtectBuy, but the attempt to authenticate was recorded.\n- `recurring`: Recurring transaction.\n- `spa`: Mastercard Identity Check authentication verified successfully.\n- `spa_failure`: Mastercard Identity Check failed authentication.\n- `vbv`: Visa Secure authentication verified successfully.\n- `vbv_attempted`: Card not enrolled in Visa Secure, but the attempt to authenticate was recorded.\n- `vbv_failure`: Visa Secure authentication unavailable.\n" @@ -63577,7 +63737,7 @@ }, "status": { "type": "string", - "description": "The status for payerAuthentication 201 enroll and validate calls. Value is:\n- `INVALID_REQUEST`\n" + "description": "The status for payerAuthentication 400 enroll and validate calls. Value is:\n- `INVALID_REQUEST`\n" }, "reason": { "type": "string", @@ -63636,36 +63796,9 @@ "example0": { "summary": "Validate authentication results", "value": { - "clientReferenceInformation": { - "code": "pavalidatecheck", - "partner": { - "developerId": "7891234", - "solutionId": "89012345" - } - }, - "orderInformation": { - "amountDetails": { - "currency": "USD", - "totalAmount": "200.00" - }, - "lineItems": [ - { - "unitPrice": "10", - "quantity": "2", - "taxAmount": "32.40", - "passenger": { - "firstName": "John", - "lastName": "Doe" - } - } - ] - }, "paymentInformation": { "card": { - "type": "002", - "expirationMonth": "12", - "expirationYear": "2025", - "number": "5200000000000007" + "type": "002" } }, "consumerAuthenticationInformation": { @@ -73065,7 +73198,7 @@ "/bin/v1/binlookup": { "post": { "summary": "BIN Lookup API", - "description": "The BIN Lookup Service is a versatile business tool that provides card network agnostic solution designed to ensure frictionless transaction experience by utilizing up-to-date Bank Identification Number (BIN) attributes sourced from multiple global and regional data sources.\nThis service helps to improve authorization rates by helping to route transactions to the best-suited card network, minimizes fraud through card detail verification and aids in regulatory compliance by identifying card properties. The service is flexible and provides businesses \nwith a flexible choice of inputs such as primary account number (PAN), network token from major networks which includes device PAN (DPAN), and all types of tokens generated via CyberSource Token Management Service (TMS).\nCurrently, the range of available credentials is contingent on the networks enabled for the business entity. Therefore, the network information specified in this documentation is illustrative and subject to personalized offerings for each reseller or merchant.\n", + "description": "The BIN Lookup Service is a versatile business tool that provides card network agnostic solution designed to ensure frictionless transaction experience by utilizing up-to-date Bank Identification Number (BIN) attributes sourced from multiple global and regional data sources.\nThis service helps to improve authorization rates by helping to route transactions to the best-suited card network, minimizes fraud through card detail verification and aids in regulatory compliance by identifying card properties. The service is flexible and provides businesses with a flexible choice of inputs such as primary account number (PAN), network token from major networks which includes device PAN (DPAN), and all types of tokens generated via CyberSource Token Management Service (TMS).\nCurrently, the range of available credentials is contingent on the networks enabled for the business entity. Therefore, the network information specified in this documentation is illustrative and subject to personalized offerings for each reseller or merchant.\n", "tags": [ "Bin Lookup" ], @@ -73079,6 +73212,12 @@ "disableProcessorDropDown": true, "SDK_ONLY_AddDisclaimer": true }, + "consumes": [ + "application/json;charset=utf-8" + ], + "produces": [ + "application/json;charset=utf-8" + ], "parameters": [ { "name": "createBinLookupRequest", @@ -89994,2615 +90133,10 @@ } } }, - "502": { - "description": "Unexpected system error or system timeout.", - "schema": { - "title": "vasV2PaymentsPost502Response", - "type": "object", - "properties": { - "submitTimeUtc": { - "type": "string", - "description": "Time of request in UTC. Format: `YYYY-MM-DDThh:mm:ssZ`\n**Example** `2016-08-11T22:47:57Z` equals August 11, 2016, at 22:47:57 (10:47:57 p.m.).\nThe `T` separates the date and the time. The `Z` indicates UTC.\n\nReturned by Cybersource for all services.\n" - }, - "status": { - "type": "string", - "description": "The status of the submitted transaction.\n\nPossible values:\n - SERVER_ERROR\n" - }, - "reason": { - "type": "string", - "description": "The reason of the status.\n\nPossible values:\n - SYSTEM_ERROR\n - SERVER_TIMEOUT\n - SERVICE_TIMEOUT\n" - }, - "message": { - "type": "string", - "description": "The detail message related to the status and reason listed above." - } - } - } - } - }, - "x-example": { - "example0": { - "summary": "Basic Tax Calculation Request", - "sample-name": "Tax Calculation", - "value": { - "clientReferenceInformation": { - "code": "TAX_TC001" - }, - "orderInformation": { - "billTo": { - "country": "US", - "address1": "1 Market St", - "postalCode": 94105, - "locality": "San Francisco", - "administrativeArea": "CA" - }, - "amountDetails": { - "currency": "USD" - }, - "lineItems": [ - { - "productSKU": "07-12-00657", - "productName": "Chewing Gum", - "productCode": 50161815, - "quantity": 1, - "unitPrice": 1200 - }, - { - "productSKU": "07-12-00659", - "productName": "Sugar Cookies", - "productCode": 50181905, - "quantity": 1, - "unitPrice": 1240 - }, - { - "productSKU": "07-12-00658", - "productName": "Carbonated Water", - "productCode": 5020.11, - "quantity": 1, - "unitPrice": 9001 - } - ] - }, - "taxInformation": { - "showTaxPerLineItem": "Yes" - } - } - }, - "example1": { - "summary": "Tax Refund Request", - "sample-name": "Tax Refund Calculation", - "value": { - "clientReferenceInformation": { - "code": "TAX_TC001" - }, - "orderInformation": { - "billTo": { - "country": "US", - "address1": "1 Market St", - "postalCode": 94105, - "locality": "San Francisco", - "administrativeArea": "CA" - }, - "shipTo": { - "country": "US", - "address1": "123 Russel St.", - "postalCode": 32401, - "locality": "Panama City", - "administrativeArea": "FL" - }, - "shippingDetails": { - "shipFromCountry": "CA", - "shipFromLocality": "Cambridge Bay", - "shipFromAdministrativeArea": "NL", - "shipFromPostalCode": "A0G 1T0" - }, - "amountDetails": { - "currency": "USD" - }, - "lineItems": [ - { - "productSKU": "07-12-00657", - "productName": "Chewing Gum", - "productCode": 50161815, - "quantity": 1, - "unitPrice": 1200 - }, - { - "productSKU": "07-12-00659", - "productName": "Sugar Cookies", - "productCode": 50181905, - "quantity": 1, - "unitPrice": 1240 - }, - { - "productSKU": "07-12-00658", - "productName": "Carbonated Water", - "productCode": 5020.11, - "quantity": 1, - "unitPrice": 9001 - } - ] - }, - "taxInformation": { - "showTaxPerLineItem": "Yes", - "refundIndicator": true - }, - "merchantInformation": { - "vatRegistrationNumber": "abcdef" - } - } - }, - "example2": { - "summary": "Committed Tax Call Request", - "sample-name": "Committed Tax Calculation", - "value": { - "clientReferenceInformation": { - "code": "TAX_TC001" - }, - "orderInformation": { - "billTo": { - "country": "US", - "address1": "1 Market St", - "postalCode": 94105, - "locality": "San Francisco", - "administrativeArea": "CA" - }, - "shipTo": { - "country": "US", - "address1": "123 Russel St.", - "postalCode": 32401, - "locality": "Panama City", - "administrativeArea": "FL" - }, - "shippingDetails": { - "shipFromCountry": "CA", - "shipFromLocality": "Cambridge Bay", - "shipFromAdministrativeArea": "NL", - "shipFromPostalCode": "A0G 1T0" - }, - "amountDetails": { - "currency": "USD" - }, - "lineItems": [ - { - "productSKU": "07-12-00657", - "productName": "Chewing Gum", - "productCode": 50161815, - "quantity": 1, - "unitPrice": 1200 - }, - { - "productSKU": "07-12-00659", - "productName": "Sugar Cookies", - "productCode": 50181905, - "quantity": 1, - "unitPrice": 1240 - }, - { - "productSKU": "07-12-00658", - "productName": "Carbonated Water", - "productCode": 5020.11, - "quantity": 1, - "unitPrice": 9001 - } - ] - }, - "taxInformation": { - "showTaxPerLineItem": "Yes", - "commitIndicator": true - }, - "merchantInformation": { - "vatRegistrationNumber": "abcdef" - } - } - }, - "example3": { - "summary": "Committed Tax Refund Call Request", - "sample-name": "Committed Tax Refund Calculation", - "value": { - "clientReferenceInformation": { - "code": "TAX_TC001" - }, - "orderInformation": { - "billTo": { - "country": "US", - "address1": "1 Market St", - "postalCode": 94105, - "locality": "San Francisco", - "administrativeArea": "CA" - }, - "shipTo": { - "country": "US", - "address1": "123 Russel St.", - "postalCode": 32401, - "locality": "Panama City", - "administrativeArea": "FL" - }, - "shippingDetails": { - "shipFromCountry": "CA", - "shipFromLocality": "Cambridge Bay", - "shipFromAdministrativeArea": "NL", - "shipFromPostalCode": "A0G 1T0" - }, - "amountDetails": { - "currency": "USD" - }, - "lineItems": [ - { - "productSKU": "07-12-00657", - "productName": "Chewing Gum", - "productCode": 50161815, - "quantity": 1, - "unitPrice": 1200 - }, - { - "productSKU": "07-12-00659", - "productName": "Sugar Cookies", - "productCode": 50181905, - "quantity": 1, - "unitPrice": 1240 - }, - { - "productSKU": "07-12-00658", - "productName": "Carbonated Water", - "productCode": 5020.11, - "quantity": 1, - "unitPrice": 9001 - } - ] - }, - "taxInformation": { - "showTaxPerLineItem": "Yes", - "commitIndicator": true, - "refundIndicator": true - }, - "merchantInformation": { - "vatRegistrationNumber": "abcdef" - } - } - } - } - } - }, - "/vas/v2/tax/{id}": { - "patch": { - "summary": "Void Taxes", - "description": "Pass the Tax Request ID in the PATCH request to void the committed tax calculation.", - "tags": [ - "taxes" - ], - "operationId": "voidTax", - "x-devcenter-metaData": { - "categoryTag": "Value_Added_Service" - }, - "parameters": [ - { - "name": "voidTaxRequest", - "in": "body", - "required": true, - "schema": { - "type": "object", - "properties": { - "clientReferenceInformation": { - "type": "object", - "properties": { - "code": { - "type": "string", - "maxLength": 50, - "description": "Merchant-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" - }, - "comments": { - "type": "string", - "description": "Brief description of the order or any comment you wish to add to the order." - }, - "partner": { - "type": "object", - "properties": { - "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" - }, - "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" - } - } - } - } - } - } - } - }, - { - "name": "id", - "in": "path", - "description": "The tax ID returned from a previous request.", - "required": true, - "type": "string" - } - ], - "responses": { - "200": { - "description": "Successful response.", - "schema": { - "title": "vasV2TaxVoid200Response", - "type": "object", - "properties": { - "id": { - "type": "string", - "maxLength": 26, - "description": "An unique identification number generated by Cybersource to identify the submitted request. Returned by all services.\nIt is also appended to the endpoint of the resource.\nOn incremental authorizations, this value with be the same as the identification number returned in the original authorization response.\n" - }, - "submitTimeUtc": { - "type": "string", - "description": "Time of request in UTC. Format: `YYYY-MM-DDThh:mm:ssZ`\n**Example** `2016-08-11T22:47:57Z` equals August 11, 2016, at 22:47:57 (10:47:57 p.m.).\nThe `T` separates the date and the time. The `Z` indicates UTC.\n\nReturned by Cybersource for all services.\n" - }, - "status": { - "type": "string", - "description": "The status of the submitted transaction.\n\nPossible values:\n - VOIDED\n - CANCELLED\n - FAILED\n" - }, - "clientReferenceInformation": { - "type": "object", - "properties": { - "code": { - "type": "string", - "maxLength": 50, - "description": "Merchant-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" - } - } - }, - "voidAmountDetails": { - "type": "object", - "properties": { - "voidAmount": { - "type": "string", - "description": "Total amount of the void.\n\n#### PIN Debit\nAmount of the reversal.\n\nReturned by PIN debit reversal.\n" - }, - "currency": { - "type": "string", - "maxLength": 3, - "description": "Currency used for the order. Use the three-character [ISO Standard Currency Codes.](http://apps.cybersource.com/library/documentation/sbc/quickref/currencies.pdf)\n\n#### Used by\n**Authorization**\nRequired field.\n\n**Authorization Reversal**\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#### PIN Debit\nCurrency for the amount you requested for the PIN debit purchase. This value is returned for partial authorizations. The issuing bank can approve a partial amount if the balance on the debit card is less than the requested transaction amount. For the possible values, see the [ISO Standard Currency Codes](https://developer.cybersource.com/library/documentation/sbc/quickref/currencies.pdf).\nReturned by PIN debit purchase.\n\nFor PIN debit reversal requests, you must use the same currency that was used for the PIN debit purchase or PIN debit credit that you are reversing.\nFor the possible values, see the [ISO Standard Currency Codes](https://developer.cybersource.com/library/documentation/sbc/quickref/currencies.pdf).\n\nRequired field for PIN Debit purchase and PIN Debit credit requests.\nOptional field for PIN Debit reversal requests.\n\n#### GPX\nThis field is optional for reversing an authorization or credit.\n\n#### DCC for First Data\nYour local currency.\n\n#### Tax Calculation\nRequired for international tax and value added tax only.\nOptional for U.S. and Canadian taxes.\nYour local currency.\n" - } - } - } - } - } - }, - "400": { - "description": "Invalid request.", - "schema": { - "title": "vasV2TaxVoidsPost400Response", - "type": "object", - "properties": { - "submitTimeUtc": { - "type": "string", - "description": "Time of request in UTC. Format: `YYYY-MM-DDThh:mm:ssZ`\n**Example** `2016-08-11T22:47:57Z` equals August 11, 2016, at 22:47:57 (10:47:57 p.m.).\nThe `T` separates the date and the time. The `Z` indicates UTC.\n\nReturned by Cybersource for all services.\n" - }, - "status": { - "type": "string", - "description": "The status of the submitted transaction.\n\nPossible values:\n - INVALID_REQUEST\n" - }, - "reason": { - "type": "string", - "description": "The reason of the status.\n\nPossible values:\n - INVALID_DATA\n - NOT_VOIDABLE\n" - }, - "message": { - "type": "string", - "description": "The detail message related to the status and reason listed above." - }, - "details": { - "type": "array", - "items": { - "type": "object", - "properties": { - "field": { - "type": "string", - "description": "This is the flattened JSON object field name/path that is either missing or invalid." - }, - "reason": { - "type": "string", - "description": "Possible reasons for the error.\n\nPossible values:\n - MISSING_FIELD\n - INVALID_DATA\n" - } - } - } - } - } - } - }, - "502": { - "description": "Unexpected system error or system timeout.", - "schema": { - "title": "vasV2TaxVoidsPost502Response", - "type": "object", - "properties": { - "submitTimeUtc": { - "type": "string", - "description": "Time of request in UTC. Format: `YYYY-MM-DDThh:mm:ssZ`\n**Example** `2016-08-11T22:47:57Z` equals August 11, 2016, at 22:47:57 (10:47:57 p.m.).\nThe `T` separates the date and the time. The `Z` indicates UTC.\n\nReturned by Cybersource for all services.\n" - }, - "status": { - "type": "string", - "description": "The status of the submitted transaction.\n\nPossible values:\n - SERVER_ERROR\n" - }, - "reason": { - "type": "string", - "description": "The reason of the status.\n\nPossible values:\n - SYSTEM_ERROR\n - SERVER_TIMEOUT\n - SERVICE_TIMEOUT\n" - }, - "message": { - "type": "string", - "description": "The detail message related to the status and reason listed above." - } - } - } - } - }, - "x-example": { - "example0": { - "summary": "Void a Committed Tax Call", - "value": { - "clientReferenceInformation": { - "code": "TAX_TC001" - } - }, - "depends": { - "example": { - "path": "/vas/v2/tax", - "verb": "patch", - "exampleId": "example0" - }, - "fieldMapping": [ - { - "sourceField": "id", - "destinationField": "id", - "fieldTypeInDestination": "path" - } - ] - } - } - } - } - }, - "/kms/v2/keys-sym": { - "post": { - "x-devcenter-metaData": { - "categoryTag": "Key_Management", - "firstLevelApiLifeCycle": "hidden", - "secondLevelApiLifeCycle": "hidden", - "apiLifeCycle": "hidden" - }, - "summary": "Create Shared-Secret Keys", - "description": "Create one or more Shared-Secret Keys\n", - "tags": [ - "Symmetric Key Management" - ], - "operationId": "createV2SharedSecretKeys", - "parameters": [ - { - "name": "createSharedSecretKeysRequest", - "in": "body", - "required": true, - "schema": { - "type": "object", - "properties": { - "clientReferenceInformation": { - "type": "object", - "properties": { - "code": { - "type": "string", - "maxLength": 50, - "description": "Client-generated order reference or tracking number. CyberSource recommends that you send a unique value.\n" - }, - "comments": { - "type": "string", - "description": "Brief description of the order or any comment you wish to add to the order." - }, - "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" - } - } - } - } - }, - "keyInformation": { - "type": "array", - "items": { - "type": "object", - "description": "key information\n", - "required": [ - "organizationId" - ], - "properties": { - "organizationId": { - "type": "string", - "description": "Merchant Id\n" - }, - "referenceNumber": { - "type": "string", - "description": "Reference number is a unique identifier provided by the client along with the organization Id. This is an optional field provided solely for the client's convenience. If client specifies value for this field in the request, it is expected to be available in the response.\n" - } - } - } - } - } - } - } - ], - "responses": { - "201": { - "description": "Successful response.", - "schema": { - "title": "kmsV2KeysSymPost201Response", - "type": "object", - "properties": { - "submitTimeUtc": { - "type": "string", - "description": "Time of request in UTC. Format: `YYYY-MM-DDThh:mm:ssZ`\n**Example** `2016-08-11T22:47:57Z` equals August 11, 2016, at 22:47:57 (10:47:57 p.m.).\nThe `T` separates the date and the time. The `Z` indicates UTC.\n\nReturned by Cybersource for all services.\n" - }, - "status": { - "type": "string", - "description": "The status of the submitted transaction.\n\nPossible values:\n - ACCEPTED\n" - }, - "clientReferenceInformation": { - "type": "object", - "properties": { - "code": { - "type": "string", - "maxLength": 50, - "description": "Client-generated order reference or tracking number. CyberSource recommends that you send a unique value.\n" - }, - "comments": { - "type": "string", - "description": "Brief description of the order or any comment you wish to add to the order." - }, - "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" - } - } - } - } - }, - "keyInformation": { - "type": "array", - "items": { - "type": "object", - "description": "key information\n", - "properties": { - "organizationId": { - "type": "string", - "description": "Merchant Id\n" - }, - "externalOrganizationId": { - "type": "string", - "maxLength": 36, - "description": "Payworks MerchantId for given organizationId.\n" - }, - "referenceNumber": { - "type": "string", - "description": "Reference number is a unique identifier provided by the client along with the organization Id. This is an optional field provided solely for the client's convenience. If client specifies value for this field in the request, it is expected to be available in the response.\n" - }, - "keyId": { - "type": "string", - "description": "Key Serial Number\n" - }, - "key": { - "type": "string", - "description": "value of the key\n" - }, - "status": { - "type": "string", - "description": "The status of the key.\n\nPossible values:\n - FAILED\n - ACTIVE\n" - }, - "expirationDate": { - "type": "string", - "description": "The expiration time 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 time. The Z indicates UTC.\n" - }, - "message": { - "type": "string", - "description": "message in case of failed key" - }, - "errorInformation": { - "type": "object", - "properties": { - "reason": { - "type": "string", - "description": "The reason of the status.\n\nPossible values:\n - MISSING_FIELD\n - INVALID_DATA\n" - }, - "details": { - "type": "array", - "items": { - "type": "object", - "properties": { - "field": { - "type": "string", - "description": "This is the flattened JSON object field name/path that is either missing or invalid." - }, - "reason": { - "type": "string", - "description": "Possible reasons for the error.\n\nPossible values:\n - MISSING_FIELD\n - INVALID_DATA\n" - } - } - } - } - } - } - } - } - } - } - } - }, - "400": { - "description": "Invalid request.\n", - "schema": { - "type": "object", - "properties": { - "submitTimeUtc": { - "type": "string", - "description": "Time of request in UTC. Format: `YYYY-MM-DDThh:mm:ssZ`\n**Example** `2016-08-11T22:47:57Z` equals August 11, 2016, at 22:47:57 (10:47:57 p.m.).\nThe `T` separates the date and the time. The `Z` indicates UTC.\n\nReturned by Cybersource for all services.\n" - }, - "status": { - "type": "string", - "description": "The status of the submitted transaction.\n\nPossible values:\n - INVALID_REQUEST\n" - }, - "reason": { - "type": "string", - "description": "The reason of the status.\n\nPossible values:\n - MISSING_FIELD\n" - }, - "message": { - "type": "string", - "description": "The detail message related to the status and reason listed above." - }, - "statusCode": { - "type": "string", - "description": "HTTP status code of the submitted request.\n\nPossible values:\n - 500\n" - } - } - } - }, - "502": { - "description": "Unexpected system error or system timeout.\n", - "schema": { - "type": "object", - "properties": { - "submitTimeUtc": { - "type": "string", - "description": "Time of request in UTC. Format: `YYYY-MM-DDThh:mm:ssZ`\n**Example** `2016-08-11T22:47:57Z` equals August 11, 2016, at 22:47:57 (10:47:57 p.m.).\nThe `T` separates the date and the time. The `Z` indicates UTC.\n\nReturned by Cybersource for all services.\n" - }, - "status": { - "type": "string", - "description": "The status of the submitted transaction.\n\nPossible values:\n - SERVER_ERROR\n" - }, - "reason": { - "type": "string", - "description": "The reason of the status.\n\nPossible values:\n - SYSTEM_ERROR\n - SERVER_TIMEOUT\n - SERVICE_TIMEOUT\n" - }, - "message": { - "type": "string", - "description": "The detail message related to the status and reason listed above." - }, - "statusCode": { - "type": "string", - "description": "HTTP status code of the submitted request.\n\nPossible values:\n - 500\n" - } - } - } - } - } - } - }, - "/kms/v2/keys-sym/{keyId}": { - "get": { - "x-devcenter-metaData": { - "categoryTag": "Key_Management", - "firstLevelApiLifeCycle": "hidden", - "secondLevelApiLifeCycle": "hidden", - "apiLifeCycle": "hidden" - }, - "summary": "Retrieves shared secret key details", - "description": "Retrieves keys details by providing the key id.", - "tags": [ - "Symmetric Key Management" - ], - "operationId": "getKeyDetails", - "parameters": [ - { - "name": "keyId", - "in": "path", - "description": "Key ID.\n", - "required": true, - "type": "string" - } - ], - "responses": { - "200": { - "description": "Successful response.", - "schema": { - "title": "kmsV2KeysSymGet200Response", - "type": "object", - "properties": { - "submitTimeUtc": { - "type": "string", - "description": "Time of request in UTC. Format: `YYYY-MM-DDThh:mm:ssZ`\n**Example** `2016-08-11T22:47:57Z` equals August 11, 2016, at 22:47:57 (10:47:57 p.m.).\nThe `T` separates the date and the time. The `Z` indicates UTC.\n\nReturned by Cybersource for all services.\n" - }, - "status": { - "type": "string", - "description": "The status of the submitted transaction.\n\nPossible values:\n - ACCEPTED\n" - }, - "keyInformation": { - "type": "object", - "description": "key information\n", - "properties": { - "organizationId": { - "type": "string", - "description": "Merchant Id\n" - }, - "keyId": { - "type": "string", - "description": "Key serial number\n" - }, - "status": { - "type": "string", - "description": "The status of the key.\n\nPossible values:\n - FAILED\n - ACTIVE\n - INACTIVE\n - EXPIRED\n" - }, - "expirationDate": { - "type": "string", - "description": "The expiration time in UTC.\n" - }, - "message": { - "type": "string", - "description": "message in case of failed key\n" - }, - "errorInformation": { - "type": "object", - "properties": { - "reason": { - "type": "string", - "description": "The reason of the status.\n\nPossible values:\n - MISSING_FIELD\n - INVALID_DATA\n" - }, - "details": { - "type": "array", - "items": { - "type": "object", - "properties": { - "field": { - "type": "string", - "description": "This is the flattened JSON object field name/path that is either missing or invalid." - }, - "reason": { - "type": "string", - "description": "Possible reasons for the error.\n\nPossible values:\n - MISSING_FIELD\n - INVALID_DATA\n" - } - } - } - } - } - } - } - } - } - } - }, - "400": { - "description": "Invalid Request", - "schema": { - "type": "object", - "properties": { - "submitTimeUtc": { - "type": "string", - "description": "Time of request in UTC. Format: `YYYY-MM-DDThh:mm:ssZ`\n**Example** `2016-08-11T22:47:57Z` equals August 11, 2016, at 22:47:57 (10:47:57 p.m.).\nThe `T` separates the date and the time. The `Z` indicates UTC.\n\nReturned by Cybersource for all services.\n" - }, - "status": { - "type": "string", - "description": "The status of the submitted transaction.\n\nPossible values:\n - INVALID_REQUEST\n" - }, - "reason": { - "type": "string", - "description": "The reason of the status.\n\nPossible values:\n - MISSING_FIELD\n" - }, - "message": { - "type": "string", - "description": "The detail message related to the status and reason listed above." - }, - "statusCode": { - "type": "string", - "description": "HTTP status code of the submitted request.\n\nPossible values:\n - 500\n" - } - } - } - }, - "502": { - "description": "Unexpected system error or system timeout.\n", - "schema": { - "type": "object", - "properties": { - "submitTimeUtc": { - "type": "string", - "description": "Time of request in UTC. Format: `YYYY-MM-DDThh:mm:ssZ`\n**Example** `2016-08-11T22:47:57Z` equals August 11, 2016, at 22:47:57 (10:47:57 p.m.).\nThe `T` separates the date and the time. The `Z` indicates UTC.\n\nReturned by Cybersource for all services.\n" - }, - "status": { - "type": "string", - "description": "The status of the submitted transaction.\n\nPossible values:\n - SERVER_ERROR\n" - }, - "reason": { - "type": "string", - "description": "The reason of the status.\n\nPossible values:\n - SYSTEM_ERROR\n - SERVER_TIMEOUT\n - SERVICE_TIMEOUT\n" - }, - "message": { - "type": "string", - "description": "The detail message related to the status and reason listed above." - }, - "statusCode": { - "type": "string", - "description": "HTTP status code of the submitted request.\n\nPossible values:\n - 500\n" - } - } - } - } - } - } - }, - "/kms/v2/keys-sym/deletes": { - "post": { - "summary": "Delete one or more Symmetric keys", - "description": "'Delete one or more Symmetric keys'\n", - "tags": [ - "Symmetric Key Management" - ], - "x-devcenter-metaData": { - "categoryTag": "Key_Management", - "firstLevelApiLifeCycle": "hidden", - "secondLevelApiLifeCycle": "hidden", - "apiLifeCycle": "hidden" - }, - "operationId": "deleteBulkSymmetricKeys", - "parameters": [ - { - "name": "deleteBulkSymmetricKeysRequest", - "in": "body", - "required": true, - "schema": { - "type": "object", - "properties": { - "clientReferenceInformation": { - "type": "object", - "properties": { - "code": { - "type": "string", - "maxLength": 50, - "description": "Client-generated order reference or tracking number. CyberSource recommends that you send a unique value.\n" - }, - "comments": { - "type": "string", - "description": "Brief description of the order or any comment you wish to add to the order." - }, - "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" - } - } - } - } - }, - "keyInformation": { - "type": "array", - "items": { - "type": "object", - "description": "key information\n", - "required": [ - "organizationId", - "keyId" - ], - "properties": { - "organizationId": { - "type": "string", - "description": "Merchant Id\n" - }, - "referenceNumber": { - "type": "string", - "description": "Reference number is a unique identifier provided by the client along with the organization Id. This is an optional field provided solely for the client's convenience. If client specifies value for this field in the request, it is expected to be available in the response.\n" - }, - "keyId": { - "type": "string", - "description": "Key Serial Number" - } - } - } - } - } - } - } - ], - "responses": { - "200": { - "description": "Successful response\n", - "schema": { - "title": "kmsV2KeysSymDeletesPost200Response", - "type": "object", - "properties": { - "submitTimeUtc": { - "type": "string", - "description": "Time of request in UTC. Format: `YYYY-MM-DDThh:mm:ssZ`\n**Example** `2016-08-11T22:47:57Z` equals August 11, 2016, at 22:47:57 (10:47:57 p.m.).\nThe `T` separates the date and the time. The `Z` indicates UTC.\n\nReturned by Cybersource for all services.\n" - }, - "status": { - "type": "string", - "description": "The status of the submitted transaction.\n\nPossible values:\n - ACCEPTED\n" - }, - "clientReferenceInformation": { - "type": "object", - "properties": { - "code": { - "type": "string", - "maxLength": 50, - "description": "Client-generated order reference or tracking number. CyberSource recommends that you send a unique value.\n" - }, - "comments": { - "type": "string", - "description": "Brief description of the order or any comment you wish to add to the order." - }, - "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" - } - } - } - } - }, - "keyInformation": { - "type": "array", - "items": { - "type": "object", - "description": "key information\n", - "properties": { - "organizationId": { - "type": "string", - "description": "Merchant Id\n" - }, - "keyId": { - "type": "string", - "description": "Key serial number\n" - }, - "status": { - "type": "string", - "description": "The status of the key.\n\nPossible values:\n - FAILED\n - ACTIVE\n - INACTIVE\n - EXPIRED\n" - }, - "message": { - "type": "string", - "description": "message in case of failed key\n" - }, - "errorInformation": { - "type": "object", - "properties": { - "reason": { - "type": "string", - "description": "The reason of the status.\n\nPossible values:\n - MISSING_FIELD\n - INVALID_DATA\n" - }, - "details": { - "type": "array", - "items": { - "type": "object", - "properties": { - "field": { - "type": "string", - "description": "This is the flattened JSON object field name/path that is either missing or invalid." - }, - "reason": { - "type": "string", - "description": "Possible reasons for the error.\n\nPossible values:\n - MISSING_FIELD\n - INVALID_DATA\n" - } - } - } - } - } - } - } - } - } - } - } - }, - "400": { - "description": "Invalid request\n", - "schema": { - "type": "object", - "properties": { - "submitTimeUtc": { - "type": "string", - "description": "Time of request in UTC. Format: `YYYY-MM-DDThh:mm:ssZ`\n**Example** `2016-08-11T22:47:57Z` equals August 11, 2016, at 22:47:57 (10:47:57 p.m.).\nThe `T` separates the date and the time. The `Z` indicates UTC.\n\nReturned by Cybersource for all services.\n" - }, - "status": { - "type": "string", - "description": "The status of the submitted transaction.\n\nPossible values:\n - INVALID_REQUEST\n" - }, - "reason": { - "type": "string", - "description": "The reason of the status.\n\nPossible values:\n - MISSING_FIELD\n" - }, - "message": { - "type": "string", - "description": "The detail message related to the status and reason listed above." - }, - "statusCode": { - "type": "string", - "description": "HTTP status code of the submitted request.\n\nPossible values:\n - 500\n" - } - } - } - }, - "502": { - "description": "Unexpected system error or system timeout.\n", - "schema": { - "type": "object", - "properties": { - "submitTimeUtc": { - "type": "string", - "description": "Time of request in UTC. Format: `YYYY-MM-DDThh:mm:ssZ`\n**Example** `2016-08-11T22:47:57Z` equals August 11, 2016, at 22:47:57 (10:47:57 p.m.).\nThe `T` separates the date and the time. The `Z` indicates UTC.\n\nReturned by Cybersource for all services.\n" - }, - "status": { - "type": "string", - "description": "The status of the submitted transaction.\n\nPossible values:\n - SERVER_ERROR\n" - }, - "reason": { - "type": "string", - "description": "The reason of the status.\n\nPossible values:\n - SYSTEM_ERROR\n - SERVER_TIMEOUT\n - SERVICE_TIMEOUT\n" - }, - "message": { - "type": "string", - "description": "The detail message related to the status and reason listed above." - }, - "statusCode": { - "type": "string", - "description": "HTTP status code of the submitted request.\n\nPossible values:\n - 500\n" - } - } - } - } - } - } - }, - "/kms/v2/keys-asym": { - "post": { - "x-devcenter-metaData": { - "categoryTag": "Key_Management", - "firstLevelApiLifeCycle": "hidden", - "secondLevelApiLifeCycle": "hidden", - "apiLifeCycle": "hidden" - }, - "summary": "Create one or more PKCS12 keys", - "description": "'Create one or more PKCS12 keys'\n", - "tags": [ - "Asymmetric Key Management" - ], - "operationId": "createP12Keys", - "parameters": [ - { - "name": "createP12KeysRequest", - "in": "body", - "required": true, - "schema": { - "type": "object", - "properties": { - "clientReferenceInformation": { - "type": "object", - "properties": { - "code": { - "type": "string", - "maxLength": 50, - "description": "Client-generated order reference or tracking number. CyberSource recommends that you send a unique value.\n" - }, - "comments": { - "type": "string", - "description": "Brief description of the order or any comment you wish to add to the order." - }, - "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" - } - } - } - } - }, - "keyInformation": { - "type": "array", - "items": { - "type": "object", - "description": "key information\n", - "required": [ - "cert", - "organizationId" - ], - "properties": { - "organizationId": { - "type": "string", - "description": "Merchant Id\n" - }, - "referenceNumber": { - "type": "string", - "description": "Reference number is a unique identifier provided by the client along with the organization Id. This is an optional field provided solely for the client's convenience. If client specifies value for this field in the request, it is expected to be available in the response.\n" - }, - "cert": { - "type": "string", - "description": "Certificate Signing Request(csr), one needs to use the contents of the csr created for the same organizationId. Please extract string from '\\n' and '-----BEGIN CERTIFICATE REQUEST-----','-----END CERTIFICATE REQUEST-----'\n" - } - } - } - } - } - } - } - ], - "responses": { - "201": { - "description": "Successful response.", - "schema": { - "title": "kmsV2KeysAsymPost201Response", - "type": "object", - "properties": { - "submitTimeUtc": { - "type": "string", - "description": "Time of request in UTC. Format: `YYYY-MM-DDThh:mm:ssZ`\n**Example** `2016-08-11T22:47:57Z` equals August 11, 2016, at 22:47:57 (10:47:57 p.m.).\nThe `T` separates the date and the time. The `Z` indicates UTC.\n\nReturned by Cybersource for all services.\n" - }, - "status": { - "type": "string", - "description": "The status of the submitted transaction.\n\nPossible values:\n - ACCEPTED\n" - }, - "clientReferenceInformation": { - "type": "object", - "properties": { - "code": { - "type": "string", - "maxLength": 50, - "description": "Client-generated order reference or tracking number. CyberSource recommends that you send a unique value.\n" - }, - "comments": { - "type": "string", - "description": "Brief description of the order or any comment you wish to add to the order." - }, - "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" - } - } - } - } - }, - "keyInformation": { - "type": "array", - "items": { - "type": "object", - "description": "key information\n", - "properties": { - "organizationId": { - "type": "string", - "description": "Merchant Id\n" - }, - "referenceNumber": { - "type": "string", - "description": "Reference number is a unique identifier provided by the client along with the organization Id. This is an optional field provided solely for the client's convenience. If client specifies value for this field in the request, it is expected to be available in the response.\n" - }, - "keyId": { - "type": "string", - "description": "Key Serial Number\n" - }, - "key": { - "type": "string", - "description": "value of the key\n" - }, - "status": { - "type": "string", - "description": "The status of the key.\n\nPossible values:\n - FAILED\n - ACTIVE\n" - }, - "expirationDate": { - "type": "string", - "description": "The expiration time 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 time. The Z indicates UTC.\n" - }, - "message": { - "type": "string", - "description": "message in case of failed key" - }, - "alias": { - "type": "string", - "description": "Key alias" - }, - "errorInformation": { - "type": "object", - "properties": { - "reason": { - "type": "string", - "description": "The reason of the status.\n\nPossible values:\n - MISSING_FIELD\n - INVALID_DATA\n" - }, - "details": { - "type": "array", - "items": { - "type": "object", - "properties": { - "field": { - "type": "string", - "description": "This is the flattened JSON object field name/path that is either missing or invalid." - }, - "reason": { - "type": "string", - "description": "Possible reasons for the error.\n\nPossible values:\n - MISSING_FIELD\n - INVALID_DATA\n" - } - } - } - } - } - } - } - } - }, - "certificateInformation": { - "type": "array", - "items": { - "type": "object", - "properties": { - "alias": { - "type": "string", - "description": "Key alias" - }, - "keyId": { - "type": "string", - "description": "Key Serial Number\n" - }, - "key": { - "type": "string", - "description": "value of the key\n" - }, - "expirationDate": { - "type": "string", - "description": "The expiration time 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 time. The Z indicates UTC.\n" - } - } - } - } - } - } - }, - "400": { - "description": "Invalid Request", - "schema": { - "type": "object", - "properties": { - "submitTimeUtc": { - "type": "string", - "description": "Time of request in UTC. Format: `YYYY-MM-DDThh:mm:ssZ`\n**Example** `2016-08-11T22:47:57Z` equals August 11, 2016, at 22:47:57 (10:47:57 p.m.).\nThe `T` separates the date and the time. The `Z` indicates UTC.\n\nReturned by Cybersource for all services.\n" - }, - "status": { - "type": "string", - "description": "The status of the submitted transaction.\n\nPossible values:\n - INVALID_REQUEST\n" - }, - "reason": { - "type": "string", - "description": "The reason of the status.\n\nPossible values:\n - MISSING_FIELD\n" - }, - "message": { - "type": "string", - "description": "The detail message related to the status and reason listed above." - }, - "statusCode": { - "type": "string", - "description": "HTTP status code of the submitted request.\n\nPossible values:\n - 500\n" - } - } - } - }, - "502": { - "description": "Unexpected system error or system timeout.\n", - "schema": { - "type": "object", - "properties": { - "submitTimeUtc": { - "type": "string", - "description": "Time of request in UTC. Format: `YYYY-MM-DDThh:mm:ssZ`\n**Example** `2016-08-11T22:47:57Z` equals August 11, 2016, at 22:47:57 (10:47:57 p.m.).\nThe `T` separates the date and the time. The `Z` indicates UTC.\n\nReturned by Cybersource for all services.\n" - }, - "status": { - "type": "string", - "description": "The status of the submitted transaction.\n\nPossible values:\n - SERVER_ERROR\n" - }, - "reason": { - "type": "string", - "description": "The reason of the status.\n\nPossible values:\n - SYSTEM_ERROR\n - SERVER_TIMEOUT\n - SERVICE_TIMEOUT\n" - }, - "message": { - "type": "string", - "description": "The detail message related to the status and reason listed above." - }, - "statusCode": { - "type": "string", - "description": "HTTP status code of the submitted request.\n\nPossible values:\n - 500\n" - } - } - } - } - } - } - }, - "/kms/v2/keys-asym/{keyId}": { - "get": { - "x-devcenter-metaData": { - "categoryTag": "Key_Management", - "firstLevelApiLifeCycle": "hidden", - "secondLevelApiLifeCycle": "hidden", - "apiLifeCycle": "hidden" - }, - "summary": "Retrieves PKCS12 key details", - "description": "Retrieves keys details by providing the key id.", - "tags": [ - "Asymmetric Key Management" - ], - "operationId": "getP12KeyDetails", - "parameters": [ - { - "name": "keyId", - "in": "path", - "description": "Key ID.\n", - "required": true, - "type": "string" - } - ], - "responses": { - "200": { - "description": "Successful response.", - "schema": { - "title": "kmsV2KeysAsymGet200Response", - "type": "object", - "properties": { - "submitTimeUtc": { - "type": "string", - "description": "Time of request in UTC. Format: `YYYY-MM-DDThh:mm:ssZ`\n**Example** `2016-08-11T22:47:57Z` equals August 11, 2016, at 22:47:57 (10:47:57 p.m.).\nThe `T` separates the date and the time. The `Z` indicates UTC.\n\nReturned by Cybersource for all services.\n" - }, - "keyInformation": { - "type": "object", - "description": "key information\n", - "properties": { - "organizationId": { - "type": "string", - "description": "Merchant Id\n" - }, - "referenceNumber": { - "type": "string", - "description": "Reference number is a unique identifier provided by the client along with the organization Id. This is an optional field provided solely for the client's convenience. If client specifies value for this field in the request, it is expected to be available in the response.\n" - }, - "keyId": { - "type": "string", - "description": "Key Serial Number\n" - }, - "status": { - "type": "string", - "description": "The status of the key.\n\nPossible values:\n - FAILED\n - ACTIVE\n - INACTIVE\n - EXPIRED\n" - }, - "expirationDate": { - "type": "string", - "description": "The expiration time 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 time. The Z indicates UTC.\n" - }, - "message": { - "type": "string", - "description": "message in case of failed key" - }, - "alias": { - "type": "string", - "description": "Key alias" - }, - "errorInformation": { - "type": "object", - "properties": { - "reason": { - "type": "string", - "description": "The reason of the status.\n\nPossible values:\n - MISSING_FIELD\n - INVALID_DATA\n" - }, - "details": { - "type": "array", - "items": { - "type": "object", - "properties": { - "field": { - "type": "string", - "description": "This is the flattened JSON object field name/path that is either missing or invalid." - }, - "reason": { - "type": "string", - "description": "Possible reasons for the error.\n\nPossible values:\n - MISSING_FIELD\n - INVALID_DATA\n" - } - } - } - } - } - } - } - } - } - } - }, - "400": { - "description": "Invalid Request", - "schema": { - "type": "object", - "properties": { - "submitTimeUtc": { - "type": "string", - "description": "Time of request in UTC. Format: `YYYY-MM-DDThh:mm:ssZ`\n**Example** `2016-08-11T22:47:57Z` equals August 11, 2016, at 22:47:57 (10:47:57 p.m.).\nThe `T` separates the date and the time. The `Z` indicates UTC.\n\nReturned by Cybersource for all services.\n" - }, - "status": { - "type": "string", - "description": "The status of the submitted transaction.\n\nPossible values:\n - INVALID_REQUEST\n" - }, - "reason": { - "type": "string", - "description": "The reason of the status.\n\nPossible values:\n - MISSING_FIELD\n" - }, - "message": { - "type": "string", - "description": "The detail message related to the status and reason listed above." - }, - "statusCode": { - "type": "string", - "description": "HTTP status code of the submitted request.\n\nPossible values:\n - 500\n" - } - } - } - }, - "502": { - "description": "Unexpected system error or system timeout.\n", - "schema": { - "type": "object", - "properties": { - "submitTimeUtc": { - "type": "string", - "description": "Time of request in UTC. Format: `YYYY-MM-DDThh:mm:ssZ`\n**Example** `2016-08-11T22:47:57Z` equals August 11, 2016, at 22:47:57 (10:47:57 p.m.).\nThe `T` separates the date and the time. The `Z` indicates UTC.\n\nReturned by Cybersource for all services.\n" - }, - "status": { - "type": "string", - "description": "The status of the submitted transaction.\n\nPossible values:\n - SERVER_ERROR\n" - }, - "reason": { - "type": "string", - "description": "The reason of the status.\n\nPossible values:\n - SYSTEM_ERROR\n - SERVER_TIMEOUT\n - SERVICE_TIMEOUT\n" - }, - "message": { - "type": "string", - "description": "The detail message related to the status and reason listed above." - }, - "statusCode": { - "type": "string", - "description": "HTTP status code of the submitted request.\n\nPossible values:\n - 500\n" - } - } - } - } - } - }, - "patch": { - "summary": "Activate or De-activate Asymmetric Key", - "description": "Activate or De-activate Asymmetric Key\n", - "tags": [ - "Asymmetric Key Management" - ], - "x-devcenter-metaData": { - "categoryTag": "Key_Management", - "firstLevelApiLifeCycle": "hidden", - "secondLevelApiLifeCycle": "hidden", - "apiLifeCycle": "hidden" - }, - "operationId": "UpdateAsymKey", - "parameters": [ - { - "name": "keyId", - "in": "path", - "description": "Key ID.\n", - "required": true, - "type": "string" - }, - { - "name": "UpdateAsymKeysRequest", - "in": "body", - "required": true, - "schema": { - "type": "object", - "required": [ - "status", - "organizationId" - ], - "properties": { - "status": { - "type": "string", - "description": "Status can be active/inactive" - }, - "organizationId": { - "type": "string", - "description": "Organization Id" - } - } - } - } - ], - "responses": { - "200": { - "description": "Successful response.", - "schema": { - "type": "object" - } - }, - "400": { - "description": "Invalid request.", - "schema": { - "type": "object", - "properties": { - "submitTimeUtc": { - "type": "string", - "description": "Time of request in UTC. Format: `YYYY-MM-DDThh:mm:ssZ`\n**Example** `2016-08-11T22:47:57Z` equals August 11, 2016, at 22:47:57 (10:47:57 p.m.).\nThe `T` separates the date and the time. The `Z` indicates UTC.\n\nReturned by Cybersource for all services.\n" - }, - "status": { - "type": "string", - "description": "The status of the submitted transaction.\n\nPossible values:\n - INVALID_REQUEST\n" - }, - "reason": { - "type": "string", - "description": "The reason of the status.\n\nPossible values:\n - MISSING_FIELD\n - INVALID_DATA\n" - }, - "message": { - "type": "string", - "description": "The detail message related to the status and reason listed above." - }, - "details": { - "type": "array", - "items": { - "type": "object", - "properties": { - "field": { - "type": "string", - "description": "This is the flattened JSON object field name/path that is either missing or invalid." - }, - "reason": { - "type": "string", - "description": "Possible reasons for the error.\n\nPossible values:\n - MISSING_FIELD\n - INVALID_DATA\n" - } - } - } - } - } - } - }, - "500": { - "description": "Unexpected system error or system timeout.", - "schema": { - "type": "object", - "properties": { - "submitTimeUtc": { - "type": "string", - "description": "Time of request in UTC. Format: `YYYY-MM-DDThh:mm:ssZ`\n**Example** `2016-08-11T22:47:57Z` equals August 11, 2016, at 22:47:57 (10:47:57 p.m.).\nThe `T` separates the date and the time. The `Z` indicates UTC.\n\nReturned by Cybersource for all services.\n" - }, - "status": { - "type": "string", - "description": "The status of the submitted request.\n\nPossible values:\n - SERVER_ERROR\n" - }, - "reason": { - "type": "string", - "description": "The reason of the status.\n\nPossible values:\n - SYSTEM_ERROR\n - SERVER_TIMEOUT\n - SERVICE_TIMEOUT\n" - }, - "message": { - "type": "string", - "description": "The detail message related to the status and reason listed above." - } - } - } - } - } - } - }, - "/kms/v2/keys-asym/deletes": { - "post": { - "summary": "Delete one or more PKCS12 keys", - "description": "'Delete one or more PKCS12 keys'\n", - "tags": [ - "Asymmetric Key Management" - ], - "x-devcenter-metaData": { - "categoryTag": "Key_Management", - "firstLevelApiLifeCycle": "hidden", - "secondLevelApiLifeCycle": "hidden", - "apiLifeCycle": "hidden" - }, - "operationId": "deleteBulkP12Keys", - "parameters": [ - { - "name": "deleteBulkP12KeysRequest", - "in": "body", - "required": true, - "schema": { - "type": "object", - "properties": { - "clientReferenceInformation": { - "type": "object", - "properties": { - "code": { - "type": "string", - "maxLength": 50, - "description": "Client-generated order reference or tracking number. CyberSource recommends that you send a unique value.\n" - }, - "comments": { - "type": "string", - "description": "Brief description of the order or any comment you wish to add to the order." - }, - "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" - } - } - } - } - }, - "keyInformation": { - "type": "array", - "items": { - "type": "object", - "description": "key information\n", - "required": [ - "organizationId", - "keyId" - ], - "properties": { - "organizationId": { - "type": "string", - "description": "Merchant Id\n" - }, - "referenceNumber": { - "type": "string", - "description": "Reference number is a unique identifier provided by the client along with the organization Id. This is an optional field provided solely for the client's convenience. If client specifies value for this field in the request, it is expected to be available in the response.\n" - }, - "keyId": { - "type": "string", - "description": "Key Serial Number" - } - } - } - } - } - } - } - ], - "responses": { - "200": { - "description": "Successful response\n", - "schema": { - "title": "kmsV2KeysAsymDeletesPost200Response", - "type": "object", - "properties": { - "submitTimeUtc": { - "type": "string", - "description": "Time of request in UTC. Format: `YYYY-MM-DDThh:mm:ssZ`\n**Example** `2016-08-11T22:47:57Z` equals August 11, 2016, at 22:47:57 (10:47:57 p.m.).\nThe `T` separates the date and the time. The `Z` indicates UTC.\n\nReturned by Cybersource for all services.\n" - }, - "clientReferenceInformation": { - "type": "object", - "properties": { - "code": { - "type": "string", - "maxLength": 50, - "description": "Client-generated order reference or tracking number. CyberSource recommends that you send a unique value.\n" - }, - "comments": { - "type": "string", - "description": "Brief description of the order or any comment you wish to add to the order." - }, - "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" - } - } - } - } - }, - "keyInformation": { - "type": "array", - "items": { - "type": "object", - "description": "key information\n", - "properties": { - "organizationId": { - "type": "string", - "description": "Merchant Id\n" - }, - "referenceNumber": { - "type": "string", - "description": "Reference number is a unique identifier provided by the client along with the organization Id. This is an optional field provided solely for the client's convenience. If client specifies value for this field in the request, it is expected to be available in the response.\n" - }, - "keyId": { - "type": "string", - "description": "Key Serial Number\n" - }, - "status": { - "type": "string", - "description": "The status of the key.\n\nPossible values:\n - FAILED\n - ACTIVE\n - INACTIVE\n - EXPIRED\n" - }, - "message": { - "type": "string", - "description": "message in case of failed key" - }, - "errorInformation": { - "type": "object", - "properties": { - "reason": { - "type": "string", - "description": "The reason of the status.\n\nPossible values:\n - MISSING_FIELD\n - INVALID_DATA\n" - }, - "details": { - "type": "array", - "items": { - "type": "object", - "properties": { - "field": { - "type": "string", - "description": "This is the flattened JSON object field name/path that is either missing or invalid." - }, - "reason": { - "type": "string", - "description": "Possible reasons for the error.\n\nPossible values:\n - MISSING_FIELD\n - INVALID_DATA\n" - } - } - } - } - } - } - } - } - } - } - } - }, - "400": { - "description": "Invalid request\n", - "schema": { - "type": "object", - "properties": { - "submitTimeUtc": { - "type": "string", - "description": "Time of request in UTC. Format: `YYYY-MM-DDThh:mm:ssZ`\n**Example** `2016-08-11T22:47:57Z` equals August 11, 2016, at 22:47:57 (10:47:57 p.m.).\nThe `T` separates the date and the time. The `Z` indicates UTC.\n\nReturned by Cybersource for all services.\n" - }, - "status": { - "type": "string", - "description": "The status of the submitted transaction.\n\nPossible values:\n - INVALID_REQUEST\n" - }, - "reason": { - "type": "string", - "description": "The reason of the status.\n\nPossible values:\n - MISSING_FIELD\n" - }, - "message": { - "type": "string", - "description": "The detail message related to the status and reason listed above." - }, - "statusCode": { - "type": "string", - "description": "HTTP status code of the submitted request.\n\nPossible values:\n - 500\n" - } - } - } - }, - "502": { - "description": "Unexpected system error or system timeout.\n", - "schema": { - "type": "object", - "properties": { - "submitTimeUtc": { - "type": "string", - "description": "Time of request in UTC. Format: `YYYY-MM-DDThh:mm:ssZ`\n**Example** `2016-08-11T22:47:57Z` equals August 11, 2016, at 22:47:57 (10:47:57 p.m.).\nThe `T` separates the date and the time. The `Z` indicates UTC.\n\nReturned by Cybersource for all services.\n" - }, - "status": { - "type": "string", - "description": "The status of the submitted transaction.\n\nPossible values:\n - SERVER_ERROR\n" - }, - "reason": { - "type": "string", - "description": "The reason of the status.\n\nPossible values:\n - SYSTEM_ERROR\n - SERVER_TIMEOUT\n - SERVICE_TIMEOUT\n" - }, - "message": { - "type": "string", - "description": "The detail message related to the status and reason listed above." - }, - "statusCode": { - "type": "string", - "description": "HTTP status code of the submitted request.\n\nPossible values:\n - 500\n" - } - } - } - } - } - } - }, - "/kms/v2/keys-sym/verifi": { - "post": { - "x-devcenter-metaData": { - "categoryTag": "Key_Management", - "firstLevelApiLifeCycle": "hidden", - "secondLevelApiLifeCycle": "hidden", - "apiLifeCycle": "hidden" - }, - "summary": "Create Shared-Secret Keys as per verifi spec", - "description": "Create one or more Shared-Secret Keys as per Verifi spec with 32 chars, store digest algo during key generation.\n", - "tags": [ - "Symmetric Key Management" - ], - "operationId": "createV2SharedSecretKeys-verifi", - "parameters": [ - { - "name": "v-ic-domain", - "in": "header", - "description": "domain", - "required": true, - "type": "string" - }, - { - "name": "createSharedSecretKeysVerifiRequest", - "in": "body", - "required": true, - "schema": { - "type": "object", - "properties": { - "clientReferenceInformation": { - "type": "object", - "properties": { - "code": { - "type": "string", - "maxLength": 50, - "description": "Client-generated order reference or tracking number. CyberSource recommends that you send a unique value.\n" - }, - "comments": { - "type": "string", - "description": "Brief description of the order or any comment you wish to add to the order." - }, - "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" - } - } - } - } - }, - "keyInformation": { - "type": "array", - "items": { - "type": "object", - "description": "key information\n", - "required": [ - "organizationId" - ], - "properties": { - "organizationId": { - "type": "string", - "description": "Merchant Id\n" - }, - "referenceNumber": { - "type": "string", - "description": "Reference number is a unique identifier provided by the client along with the organization Id. This is an optional field provided solely for the client's convenience. If client specifies value for this field in the request, it is expected to be available in the response.\n" - }, - "digestAlgorithm": { - "type": "string", - "description": "Algorithm for message signature authentication\n", - "enum": [ - "HMACSHA1", - "HMACSHA2" - ], - "default": "HMACSHA2" - } - } - } - } - } - } - } - ], - "responses": { - "201": { - "description": "Successful response.", - "schema": { - "title": "kmsV2KeysSymPost201Response", - "type": "object", - "properties": { - "submitTimeUtc": { - "type": "string", - "description": "Time of request in UTC. Format: `YYYY-MM-DDThh:mm:ssZ`\n**Example** `2016-08-11T22:47:57Z` equals August 11, 2016, at 22:47:57 (10:47:57 p.m.).\nThe `T` separates the date and the time. The `Z` indicates UTC.\n\nReturned by Cybersource for all services.\n" - }, - "status": { - "type": "string", - "description": "The status of the submitted transaction.\n\nPossible values:\n - ACCEPTED\n" - }, - "clientReferenceInformation": { - "type": "object", - "properties": { - "code": { - "type": "string", - "maxLength": 50, - "description": "Client-generated order reference or tracking number. CyberSource recommends that you send a unique value.\n" - }, - "comments": { - "type": "string", - "description": "Brief description of the order or any comment you wish to add to the order." - }, - "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" - } - } - } - } - }, - "keyInformation": { - "type": "array", - "items": { - "type": "object", - "description": "key information\n", - "properties": { - "organizationId": { - "type": "string", - "description": "Merchant Id\n" - }, - "externalOrganizationId": { - "type": "string", - "maxLength": 36, - "description": "Payworks MerchantId for given organizationId.\n" - }, - "referenceNumber": { - "type": "string", - "description": "Reference number is a unique identifier provided by the client along with the organization Id. This is an optional field provided solely for the client's convenience. If client specifies value for this field in the request, it is expected to be available in the response.\n" - }, - "keyId": { - "type": "string", - "description": "Key Serial Number\n" - }, - "key": { - "type": "string", - "description": "value of the key\n" - }, - "status": { - "type": "string", - "description": "The status of the key.\n\nPossible values:\n - FAILED\n - ACTIVE\n" - }, - "expirationDate": { - "type": "string", - "description": "The expiration time 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 time. The Z indicates UTC.\n" - }, - "message": { - "type": "string", - "description": "message in case of failed key" - }, - "errorInformation": { - "type": "object", - "properties": { - "reason": { - "type": "string", - "description": "The reason of the status.\n\nPossible values:\n - MISSING_FIELD\n - INVALID_DATA\n" - }, - "details": { - "type": "array", - "items": { - "type": "object", - "properties": { - "field": { - "type": "string", - "description": "This is the flattened JSON object field name/path that is either missing or invalid." - }, - "reason": { - "type": "string", - "description": "Possible reasons for the error.\n\nPossible values:\n - MISSING_FIELD\n - INVALID_DATA\n" - } - } - } - } - } - } - } - } - } - } - } - }, - "400": { - "description": "Invalid request.\n", - "schema": { - "type": "object", - "properties": { - "submitTimeUtc": { - "type": "string", - "description": "Time of request in UTC. Format: `YYYY-MM-DDThh:mm:ssZ`\n**Example** `2016-08-11T22:47:57Z` equals August 11, 2016, at 22:47:57 (10:47:57 p.m.).\nThe `T` separates the date and the time. The `Z` indicates UTC.\n\nReturned by Cybersource for all services.\n" - }, - "status": { - "type": "string", - "description": "The status of the submitted transaction.\n\nPossible values:\n - INVALID_REQUEST\n" - }, - "reason": { - "type": "string", - "description": "The reason of the status.\n\nPossible values:\n - MISSING_FIELD\n" - }, - "message": { - "type": "string", - "description": "The detail message related to the status and reason listed above." - }, - "statusCode": { - "type": "string", - "description": "HTTP status code of the submitted request.\n\nPossible values:\n - 500\n" - } - } - } - }, - "502": { - "description": "Unexpected system error or system timeout.\n", - "schema": { - "type": "object", - "properties": { - "submitTimeUtc": { - "type": "string", - "description": "Time of request in UTC. Format: `YYYY-MM-DDThh:mm:ssZ`\n**Example** `2016-08-11T22:47:57Z` equals August 11, 2016, at 22:47:57 (10:47:57 p.m.).\nThe `T` separates the date and the time. The `Z` indicates UTC.\n\nReturned by Cybersource for all services.\n" - }, - "status": { - "type": "string", - "description": "The status of the submitted transaction.\n\nPossible values:\n - SERVER_ERROR\n" - }, - "reason": { - "type": "string", - "description": "The reason of the status.\n\nPossible values:\n - SYSTEM_ERROR\n - SERVER_TIMEOUT\n - SERVICE_TIMEOUT\n" - }, - "message": { - "type": "string", - "description": "The detail message related to the status and reason listed above." - }, - "statusCode": { - "type": "string", - "description": "HTTP status code of the submitted request.\n\nPossible values:\n - 500\n" - } - } - } - } - } - } - }, - "/kms/v2/keys": { - "get": { - "summary": "Search Keys", - "description": "Search one or more Keys", - "tags": [ - "key-management" - ], - "x-devcenter-metaData": { - "categoryTag": "Key_Management", - "firstLevelApiLifeCycle": "hidden", - "secondLevelApiLifeCycle": "hidden", - "apiLifeCycle": "hidden" - }, - "operationId": "searchKeys", - "parameters": [ - { - "name": "offset", - "in": "query", - "description": "This allows you to specify the page offset from the resulting list resultset you want the records to be returned", - "type": "integer" - }, - { - "name": "limit", - "in": "query", - "description": "This allows you to specify the total number of records to be returned off the resulting list resultset", - "type": "integer" - }, - { - "name": "sort", - "in": "query", - "description": "This allows you to specify a comma separated list of fields in the order which the resulting list resultset must be sorted.", - "type": "string" - }, - { - "name": "organizationIds", - "in": "query", - "description": "List of Orgaization Ids to search. The maximum size of the organization Ids list is 1. The maximum length of Organization Id is 30.", - "type": "array", - "items": { - "type": "string" - } - }, - { - "name": "keyIds", - "in": "query", - "description": "List of Key Ids to search. The maximum size of the Key Ids list is 1", - "type": "array", - "items": { - "type": "string" - } - }, - { - "name": "keyTypes", - "in": "query", - "type": "array", - "items": { - "type": "string" - }, - "description": "Key Type, Possible values - certificate, password, pgp and scmp_api. When Key Type is provided atleast one more filter needs to be provided" - }, - { - "name": "expirationStartDate", - "in": "query", - "type": "string", - "format": "date-time", - "pattern": "yyyy-mm-dd", - "description": "Expiry Filter Start Date. When Expiration Date filter is provided, atleast one more filter needs to be provided" - }, - { - "name": "expirationEndDate", - "in": "query", - "type": "string", - "format": "date-time", - "pattern": "yyyy-mm-dd", - "description": "Expiry Filter End Date. When Expiration Date filter is provided, atleast one more filter needs to be provided" - } - ], - "responses": { - "200": { - "description": "Successful response.", - "schema": { - "type": "object", - "description": "Successful searchKeysResponse", - "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", - "example": "2016-08-11T22:47:57Z" - }, - "totalCount": { - "type": "integer", - "description": "Specifies the total number of items found based on the request" - }, - "offset": { - "type": "integer", - "description": "Specifies the record offset from the records are returned part of the response" - }, - "limit": { - "type": "integer", - "description": "Specifies the maximum number of records requested part of the response" - }, - "sort": { - "type": "string", - "description": "Specifies a comma separated list of field names based on which the result is sorted." - }, - "keys": { - "type": "array", - "items": { - "type": "object", - "description": "KeyResponseEntry", - "properties": { - "organizationId": { - "type": "string", - "description": "Merchant Id" - }, - "merchantName": { - "type": "string", - "description": "Merchant Name" - }, - "keyId": { - "type": "string", - "description": "Key Id" - }, - "keyType": { - "type": "string", - "description": "Key Type" - }, - "status": { - "type": "string", - "description": "Status can be active/inactive" - }, - "expirationDate": { - "type": "string", - "format": "date", - "pattern": "yyyy-mm-dd hh:mm:ss zzz", - "description": "Expiry Date. example - 2028-07-15 22:11:56 UTC" - }, - "dateAdded": { - "type": "string", - "format": "date", - "pattern": "yyyy-mm-dd hh:mm:ss zzz", - "description": "Date Addded. example - 2018-04-25 22:11:56 UTC" - }, - "addedBy": { - "type": "string", - "description": "Added By" - }, - "dateModified": { - "type": "string", - "format": "date", - "pattern": "yyyy-mm-dd hh:mm:ss zzz", - "description": "Modified Date.", - "example": "2022-04-25 22:11:56 UTC" - }, - "modifiedBy": { - "type": "string", - "description": "Modified By" - }, - "version": { - "type": "string", - "description": "Version" - }, - "serialNumber": { - "type": "string", - "description": "Serial Number" - }, - "issuerName": { - "type": "string", - "description": "Issuer Name" - } - } - } - } - } - } - }, - "400": { - "description": "Invalid request.", - "schema": { - "type": "object", - "properties": { - "submitTimeUtc": { - "type": "string", - "description": "Time of request in UTC. Format: `YYYY-MM-DDThh:mm:ssZ`\n**Example** `2016-08-11T22:47:57Z` equals August 11, 2016, at 22:47:57 (10:47:57 p.m.).\nThe `T` separates the date and the time. The `Z` indicates UTC.\n\nReturned by Cybersource for all services.\n" - }, - "status": { - "type": "string", - "description": "The status of the submitted transaction.\n\nPossible values:\n - INVALID_REQUEST\n" - }, - "reason": { - "type": "string", - "description": "The reason of the status.\n\nPossible values:\n - MISSING_FIELD\n - INVALID_DATA\n" - }, - "message": { - "type": "string", - "description": "The detail message related to the status and reason listed above." - }, - "details": { - "type": "array", - "items": { - "type": "object", - "properties": { - "field": { - "type": "string", - "description": "This is the flattened JSON object field name/path that is either missing or invalid." - }, - "reason": { - "type": "string", - "description": "Possible reasons for the error.\n\nPossible values:\n - MISSING_FIELD\n - INVALID_DATA\n" - } - } - } - } - } - } - }, - "500": { - "description": "Unexpected system error or system timeout.", - "schema": { - "type": "object", - "properties": { - "submitTimeUtc": { - "type": "string", - "description": "Time of request in UTC. Format: `YYYY-MM-DDThh:mm:ssZ`\n**Example** `2016-08-11T22:47:57Z` equals August 11, 2016, at 22:47:57 (10:47:57 p.m.).\nThe `T` separates the date and the time. The `Z` indicates UTC.\n\nReturned by Cybersource for all services.\n" - }, - "status": { - "type": "string", - "description": "The status of the submitted request.\n\nPossible values:\n - SERVER_ERROR\n" - }, - "reason": { - "type": "string", - "description": "The reason of the status.\n\nPossible values:\n - SYSTEM_ERROR\n - SERVER_TIMEOUT\n - SERVICE_TIMEOUT\n" - }, - "message": { - "type": "string", - "description": "The detail message related to the status and reason listed above." - } - } - } - } - } - } - }, - "/kms/v2/keys-password/{keyId}": { - "patch": { - "summary": "Activate or De-activate Password", - "description": "Activate or De-activate key of type password\n", - "tags": [ - "key-management-password" - ], - "x-devcenter-metaData": { - "categoryTag": "Key_Management", - "firstLevelApiLifeCycle": "hidden", - "secondLevelApiLifeCycle": "hidden", - "apiLifeCycle": "hidden" - }, - "operationId": "UpdatePassword", - "parameters": [ - { - "name": "keyId", - "in": "path", - "description": "Key ID.\n", - "required": true, - "type": "string" - }, - { - "name": "UpdatePasswordKeysRequest", - "in": "body", - "required": true, - "schema": { - "type": "object", - "required": [ - "status", - "organizationId" - ], - "properties": { - "status": { - "type": "string", - "description": "Status can be active/inactive" - }, - "organizationId": { - "type": "string", - "description": "Organization Id" - } - } - } - } - ], - "responses": { - "200": { - "description": "Successful response.", - "schema": { - "type": "object" - } - }, - "400": { - "description": "Invalid request.", - "schema": { - "type": "object", - "properties": { - "submitTimeUtc": { - "type": "string", - "description": "Time of request in UTC. Format: `YYYY-MM-DDThh:mm:ssZ`\n**Example** `2016-08-11T22:47:57Z` equals August 11, 2016, at 22:47:57 (10:47:57 p.m.).\nThe `T` separates the date and the time. The `Z` indicates UTC.\n\nReturned by Cybersource for all services.\n" - }, - "status": { - "type": "string", - "description": "The status of the submitted transaction.\n\nPossible values:\n - INVALID_REQUEST\n" - }, - "reason": { - "type": "string", - "description": "The reason of the status.\n\nPossible values:\n - MISSING_FIELD\n - INVALID_DATA\n" - }, - "message": { - "type": "string", - "description": "The detail message related to the status and reason listed above." - }, - "details": { - "type": "array", - "items": { - "type": "object", - "properties": { - "field": { - "type": "string", - "description": "This is the flattened JSON object field name/path that is either missing or invalid." - }, - "reason": { - "type": "string", - "description": "Possible reasons for the error.\n\nPossible values:\n - MISSING_FIELD\n - INVALID_DATA\n" - } - } - } - } - } - } - }, - "500": { - "description": "Unexpected system error or system timeout.", - "schema": { - "type": "object", - "properties": { - "submitTimeUtc": { - "type": "string", - "description": "Time of request in UTC. Format: `YYYY-MM-DDThh:mm:ssZ`\n**Example** `2016-08-11T22:47:57Z` equals August 11, 2016, at 22:47:57 (10:47:57 p.m.).\nThe `T` separates the date and the time. The `Z` indicates UTC.\n\nReturned by Cybersource for all services.\n" - }, - "status": { - "type": "string", - "description": "The status of the submitted request.\n\nPossible values:\n - SERVER_ERROR\n" - }, - "reason": { - "type": "string", - "description": "The reason of the status.\n\nPossible values:\n - SYSTEM_ERROR\n - SERVER_TIMEOUT\n - SERVICE_TIMEOUT\n" - }, - "message": { - "type": "string", - "description": "The detail message related to the status and reason listed above." - } - } - } - } - } - } - }, - "/kms/v2/keys-pgp/{keyId}": { - "patch": { - "summary": "Activate or De-activate PGP Key", - "description": "Activate or De-activate PGP Key\n", - "tags": [ - "key-management-pgp" - ], - "x-devcenter-metaData": { - "categoryTag": "Key_Management", - "firstLevelApiLifeCycle": "hidden", - "secondLevelApiLifeCycle": "hidden", - "apiLifeCycle": "hidden" - }, - "operationId": "UpdatePGP", - "parameters": [ - { - "name": "keyId", - "in": "path", - "description": "Key ID.\n", - "required": true, - "type": "string" - }, - { - "name": "UpdatePGPKeysRequest", - "in": "body", - "required": true, - "schema": { - "type": "object", - "required": [ - "status", - "organizationId" - ], - "properties": { - "status": { - "type": "string", - "description": "Status can be active/inactive" - }, - "organizationId": { - "type": "string", - "description": "Organization Id" - } - } - } - } - ], - "responses": { - "200": { - "description": "Successful response.", - "schema": { - "type": "object" - } - }, - "400": { - "description": "Invalid request.", - "schema": { - "type": "object", - "properties": { - "submitTimeUtc": { - "type": "string", - "description": "Time of request in UTC. Format: `YYYY-MM-DDThh:mm:ssZ`\n**Example** `2016-08-11T22:47:57Z` equals August 11, 2016, at 22:47:57 (10:47:57 p.m.).\nThe `T` separates the date and the time. The `Z` indicates UTC.\n\nReturned by Cybersource for all services.\n" - }, - "status": { - "type": "string", - "description": "The status of the submitted transaction.\n\nPossible values:\n - INVALID_REQUEST\n" - }, - "reason": { - "type": "string", - "description": "The reason of the status.\n\nPossible values:\n - MISSING_FIELD\n - INVALID_DATA\n" - }, - "message": { - "type": "string", - "description": "The detail message related to the status and reason listed above." - }, - "details": { - "type": "array", - "items": { - "type": "object", - "properties": { - "field": { - "type": "string", - "description": "This is the flattened JSON object field name/path that is either missing or invalid." - }, - "reason": { - "type": "string", - "description": "Possible reasons for the error.\n\nPossible values:\n - MISSING_FIELD\n - INVALID_DATA\n" - } - } - } - } - } - } - }, - "500": { + "502": { "description": "Unexpected system error or system timeout.", "schema": { + "title": "vasV2PaymentsPost502Response", "type": "object", "properties": { "submitTimeUtc": { @@ -92611,7 +90145,7 @@ }, "status": { "type": "string", - "description": "The status of the submitted request.\n\nPossible values:\n - SERVER_ERROR\n" + "description": "The status of the submitted transaction.\n\nPossible values:\n - SERVER_ERROR\n" }, "reason": { "type": "string", @@ -92624,72 +90158,361 @@ } } } + }, + "x-example": { + "example0": { + "summary": "Basic Tax Calculation Request", + "sample-name": "Tax Calculation", + "value": { + "clientReferenceInformation": { + "code": "TAX_TC001" + }, + "orderInformation": { + "billTo": { + "country": "US", + "address1": "1 Market St", + "postalCode": 94105, + "locality": "San Francisco", + "administrativeArea": "CA" + }, + "amountDetails": { + "currency": "USD" + }, + "lineItems": [ + { + "productSKU": "07-12-00657", + "productName": "Chewing Gum", + "productCode": 50161815, + "quantity": 1, + "unitPrice": 1200 + }, + { + "productSKU": "07-12-00659", + "productName": "Sugar Cookies", + "productCode": 50181905, + "quantity": 1, + "unitPrice": 1240 + }, + { + "productSKU": "07-12-00658", + "productName": "Carbonated Water", + "productCode": 5020.11, + "quantity": 1, + "unitPrice": 9001 + } + ] + }, + "taxInformation": { + "showTaxPerLineItem": "Yes" + } + } + }, + "example1": { + "summary": "Tax Refund Request", + "sample-name": "Tax Refund Calculation", + "value": { + "clientReferenceInformation": { + "code": "TAX_TC001" + }, + "orderInformation": { + "billTo": { + "country": "US", + "address1": "1 Market St", + "postalCode": 94105, + "locality": "San Francisco", + "administrativeArea": "CA" + }, + "shipTo": { + "country": "US", + "address1": "123 Russel St.", + "postalCode": 32401, + "locality": "Panama City", + "administrativeArea": "FL" + }, + "shippingDetails": { + "shipFromCountry": "CA", + "shipFromLocality": "Cambridge Bay", + "shipFromAdministrativeArea": "NL", + "shipFromPostalCode": "A0G 1T0" + }, + "amountDetails": { + "currency": "USD" + }, + "lineItems": [ + { + "productSKU": "07-12-00657", + "productName": "Chewing Gum", + "productCode": 50161815, + "quantity": 1, + "unitPrice": 1200 + }, + { + "productSKU": "07-12-00659", + "productName": "Sugar Cookies", + "productCode": 50181905, + "quantity": 1, + "unitPrice": 1240 + }, + { + "productSKU": "07-12-00658", + "productName": "Carbonated Water", + "productCode": 5020.11, + "quantity": 1, + "unitPrice": 9001 + } + ] + }, + "taxInformation": { + "showTaxPerLineItem": "Yes", + "refundIndicator": true + }, + "merchantInformation": { + "vatRegistrationNumber": "abcdef" + } + } + }, + "example2": { + "summary": "Committed Tax Call Request", + "sample-name": "Committed Tax Calculation", + "value": { + "clientReferenceInformation": { + "code": "TAX_TC001" + }, + "orderInformation": { + "billTo": { + "country": "US", + "address1": "1 Market St", + "postalCode": 94105, + "locality": "San Francisco", + "administrativeArea": "CA" + }, + "shipTo": { + "country": "US", + "address1": "123 Russel St.", + "postalCode": 32401, + "locality": "Panama City", + "administrativeArea": "FL" + }, + "shippingDetails": { + "shipFromCountry": "CA", + "shipFromLocality": "Cambridge Bay", + "shipFromAdministrativeArea": "NL", + "shipFromPostalCode": "A0G 1T0" + }, + "amountDetails": { + "currency": "USD" + }, + "lineItems": [ + { + "productSKU": "07-12-00657", + "productName": "Chewing Gum", + "productCode": 50161815, + "quantity": 1, + "unitPrice": 1200 + }, + { + "productSKU": "07-12-00659", + "productName": "Sugar Cookies", + "productCode": 50181905, + "quantity": 1, + "unitPrice": 1240 + }, + { + "productSKU": "07-12-00658", + "productName": "Carbonated Water", + "productCode": 5020.11, + "quantity": 1, + "unitPrice": 9001 + } + ] + }, + "taxInformation": { + "showTaxPerLineItem": "Yes", + "commitIndicator": true + }, + "merchantInformation": { + "vatRegistrationNumber": "abcdef" + } + } + }, + "example3": { + "summary": "Committed Tax Refund Call Request", + "sample-name": "Committed Tax Refund Calculation", + "value": { + "clientReferenceInformation": { + "code": "TAX_TC001" + }, + "orderInformation": { + "billTo": { + "country": "US", + "address1": "1 Market St", + "postalCode": 94105, + "locality": "San Francisco", + "administrativeArea": "CA" + }, + "shipTo": { + "country": "US", + "address1": "123 Russel St.", + "postalCode": 32401, + "locality": "Panama City", + "administrativeArea": "FL" + }, + "shippingDetails": { + "shipFromCountry": "CA", + "shipFromLocality": "Cambridge Bay", + "shipFromAdministrativeArea": "NL", + "shipFromPostalCode": "A0G 1T0" + }, + "amountDetails": { + "currency": "USD" + }, + "lineItems": [ + { + "productSKU": "07-12-00657", + "productName": "Chewing Gum", + "productCode": 50161815, + "quantity": 1, + "unitPrice": 1200 + }, + { + "productSKU": "07-12-00659", + "productName": "Sugar Cookies", + "productCode": 50181905, + "quantity": 1, + "unitPrice": 1240 + }, + { + "productSKU": "07-12-00658", + "productName": "Carbonated Water", + "productCode": 5020.11, + "quantity": 1, + "unitPrice": 9001 + } + ] + }, + "taxInformation": { + "showTaxPerLineItem": "Yes", + "commitIndicator": true, + "refundIndicator": true + }, + "merchantInformation": { + "vatRegistrationNumber": "abcdef" + } + } + } } } }, - "/kms/v2/keys-scmp/{keyId}": { + "/vas/v2/tax/{id}": { "patch": { - "summary": "Update or Deactivate", - "description": "Update or Deactivate scmp api Key\n", + "summary": "Void Taxes", + "description": "Pass the Tax Request ID in the PATCH request to void the committed tax calculation.", "tags": [ - "key-management-scmp" + "taxes" ], + "operationId": "voidTax", "x-devcenter-metaData": { - "categoryTag": "Key_Management", - "firstLevelApiLifeCycle": "hidden", - "secondLevelApiLifeCycle": "hidden", - "apiLifeCycle": "hidden" + "categoryTag": "Value_Added_Service" }, - "operationId": "UpdateSCMP", "parameters": [ { - "name": "keyId", - "in": "path", - "description": "Key ID.\n", + "name": "voidTaxRequest", + "in": "body", "required": true, - "type": "string" + "schema": { + "type": "object", + "properties": { + "clientReferenceInformation": { + "type": "object", + "properties": { + "code": { + "type": "string", + "maxLength": 50, + "description": "Merchant-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" + }, + "comments": { + "type": "string", + "description": "Brief description of the order or any comment you wish to add to the order." + }, + "partner": { + "type": "object", + "properties": { + "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" + }, + "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" + } + } + } + } + } + } + } }, { - "name": "UpdatePGPKeysRequest", - "in": "body", + "name": "id", + "in": "path", + "description": "The tax ID returned from a previous request.", "required": true, + "type": "string" + } + ], + "responses": { + "200": { + "description": "Successful response.", "schema": { + "title": "vasV2TaxVoid200Response", "type": "object", "properties": { - "organizationId": { + "id": { "type": "string", - "description": "Organization Id" + "maxLength": 26, + "description": "An unique identification number generated by Cybersource to identify the submitted request. Returned by all services.\nIt is also appended to the endpoint of the resource.\nOn incremental authorizations, this value with be the same as the identification number returned in the original authorization response.\n" }, - "status": { + "submitTimeUtc": { "type": "string", - "description": "Only inactive status is applicable for SCMP_API. Only status as inactive needs to be provided to deactivate scmp." + "description": "Time of request in UTC. Format: `YYYY-MM-DDThh:mm:ssZ`\n**Example** `2016-08-11T22:47:57Z` equals August 11, 2016, at 22:47:57 (10:47:57 p.m.).\nThe `T` separates the date and the time. The `Z` indicates UTC.\n\nReturned by Cybersource for all services.\n" }, - "expirationDate": { + "status": { "type": "string", - "description": "Expiration Date. Required field to update the SCMP_API key" + "description": "The status of the submitted transaction.\n\nPossible values:\n - VOIDED\n - CANCELLED\n - FAILED\n" }, - "version": { - "type": "string", - "description": "Version. Required field to update the SCMP_API key" + "clientReferenceInformation": { + "type": "object", + "properties": { + "code": { + "type": "string", + "maxLength": 50, + "description": "Merchant-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" + } + } }, - "comment": { - "type": "string", - "description": "Comment. Optional field. Can be provided along with Expiration Date and Version" + "voidAmountDetails": { + "type": "object", + "properties": { + "voidAmount": { + "type": "string", + "description": "Total amount of the void.\n\n#### PIN Debit\nAmount of the reversal.\n\nReturned by PIN debit reversal.\n" + }, + "currency": { + "type": "string", + "maxLength": 3, + "description": "Currency used for the order. Use the three-character [ISO Standard Currency Codes.](http://apps.cybersource.com/library/documentation/sbc/quickref/currencies.pdf)\n\n#### Used by\n**Authorization**\nRequired field.\n\n**Authorization Reversal**\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#### PIN Debit\nCurrency for the amount you requested for the PIN debit purchase. This value is returned for partial authorizations. The issuing bank can approve a partial amount if the balance on the debit card is less than the requested transaction amount. For the possible values, see the [ISO Standard Currency Codes](https://developer.cybersource.com/library/documentation/sbc/quickref/currencies.pdf).\nReturned by PIN debit purchase.\n\nFor PIN debit reversal requests, you must use the same currency that was used for the PIN debit purchase or PIN debit credit that you are reversing.\nFor the possible values, see the [ISO Standard Currency Codes](https://developer.cybersource.com/library/documentation/sbc/quickref/currencies.pdf).\n\nRequired field for PIN Debit purchase and PIN Debit credit requests.\nOptional field for PIN Debit reversal requests.\n\n#### GPX\nThis field is optional for reversing an authorization or credit.\n\n#### DCC for First Data\nYour local currency.\n\n#### Tax Calculation\nRequired for international tax and value added tax only.\nOptional for U.S. and Canadian taxes.\nYour local currency.\n" + } + } } } } - } - ], - "responses": { - "200": { - "description": "Successful response.", - "schema": { - "type": "object" - } }, "400": { "description": "Invalid request.", "schema": { + "title": "vasV2TaxVoidsPost400Response", "type": "object", "properties": { "submitTimeUtc": { @@ -92702,7 +90525,7 @@ }, "reason": { "type": "string", - "description": "The reason of the status.\n\nPossible values:\n - MISSING_FIELD\n - INVALID_DATA\n" + "description": "The reason of the status.\n\nPossible values:\n - INVALID_DATA\n - NOT_VOIDABLE\n" }, "message": { "type": "string", @@ -92727,9 +90550,10 @@ } } }, - "500": { + "502": { "description": "Unexpected system error or system timeout.", "schema": { + "title": "vasV2TaxVoidsPost502Response", "type": "object", "properties": { "submitTimeUtc": { @@ -92738,7 +90562,7 @@ }, "status": { "type": "string", - "description": "The status of the submitted request.\n\nPossible values:\n - SERVER_ERROR\n" + "description": "The status of the submitted transaction.\n\nPossible values:\n - SERVER_ERROR\n" }, "reason": { "type": "string", @@ -92751,6 +90575,30 @@ } } } + }, + "x-example": { + "example0": { + "summary": "Void a Committed Tax Call", + "value": { + "clientReferenceInformation": { + "code": "TAX_TC001" + } + }, + "depends": { + "example": { + "path": "/vas/v2/tax", + "verb": "patch", + "exampleId": "example0" + }, + "fieldMapping": [ + { + "sourceField": "id", + "destinationField": "id", + "fieldTypeInDestination": "path" + } + ] + } + } } } }, @@ -95261,82 +93109,100 @@ "properties": { "currencyCodes": { "type": "array", - "items": { - "type": "string", - "example": "ALL" - } - }, - "acquirerId": { - "type": "string", - "minLength": 6, - "maxLength": 20, - "pattern": "^[a-zA-Z0-9]{6,20}$", - "description": "The Acquirer ID value, often referred to as the Acquirer BIN, is specific to an Acquirer.\nThe value is created by Cardinal in their system and the Acquirer may not know that the Acquirer ID is different from their Acquiring BIN.\nIt is most often the Acquiring BIN + \"-1000\" but the trailing character can be different.\n**Note** We will need to double check with Cardinal before setting up the Portfolio Template in production.\n" - }, - "processorMerchantId": { - "type": "string", - "minLength": 6, - "maxLength": 35, - "pattern": "^[a-zA-Z0-9]{6,35}$", - "description": "Processor Merchant ID is the Merchant ID assigned by your acquiring bank.\nThis Merchant ID should also be used by your bank to register your account to the card scheme Directory Server for processing Payer Authentication services.\n" - } - } - } - } - } - }, - "masterCardSecureCode": { - "type": "object", - "properties": { - "enabled": { - "type": "boolean", - "default": true - }, - "currencies": { - "type": "array", - "items": { - "type": "object", - "properties": { - "currencyCodes": { - "type": "array", - "items": { - "type": "string", - "example": "ALL" - } - }, - "acquirerId": { - "type": "string", - "minLength": 6, - "maxLength": 20, - "pattern": "^[a-zA-Z0-9]{6,20}$", - "description": "The Acquirer ID value, often referred to as the Acquirer BIN, is specific to an Acquirer.\nThe value is created by Cardinal in their system and the Acquirer may not know that the Acquirer ID is different from their Acquiring BIN.\nIt is most often the Acquiring BIN + \"-1000\" but the trailing character can be different.\n**Note** We will need to double check with Cardinal before setting up the Portfolio Template in production.\n" - }, - "processorMerchantId": { - "type": "string", - "minLength": 6, - "maxLength": 35, - "pattern": "^[a-zA-Z0-9]{6,35}$", - "description": "Processor Merchant ID is the Merchant ID assigned by your acquiring bank.\nThis Merchant ID should also be used by your bank to register your account to the card scheme Directory Server for processing Payer Authentication services.\n" - } - } - } - } - } - }, - "amexSafeKey": { - "type": "object", - "properties": { - "enabled": { - "type": "boolean", - "default": true - }, - "currencies": { - "type": "array", - "items": { - "type": "object", - "properties": { - "currencyCodes": { - "type": "array", + "description": "Supported currency codes are numeric ISO 4217 codes, such as 840 for US Dollar and 978 for Euro. \nFor backward compatibility, we also support the 'ALL' code, which represents all currencies. \nIn the UI, 'ALL' is displayed as 'Default'.\n", + "example": [ + "ALL", + "840", + "978" + ], + "items": { + "type": "string", + "example": "ALL" + } + }, + "acquirerId": { + "type": "string", + "minLength": 6, + "maxLength": 20, + "pattern": "^[a-zA-Z0-9]{6,20}$", + "description": "The Acquirer ID value, often referred to as the Acquirer BIN, is specific to an Acquirer.\nThe value is created by Cardinal in their system and the Acquirer may not know that the Acquirer ID is different from their Acquiring BIN.\nIt is most often the Acquiring BIN + \"-1000\" but the trailing character can be different.\n**Note** We will need to double check with Cardinal before setting up the Portfolio Template in production.\n" + }, + "processorMerchantId": { + "type": "string", + "minLength": 6, + "maxLength": 35, + "pattern": "^[a-zA-Z0-9]{6,35}$", + "description": "Processor Merchant ID is the Merchant ID assigned by your acquiring bank.\nThis Merchant ID should also be used by your bank to register your account to the card scheme Directory Server for processing Payer Authentication services.\n" + } + } + } + } + } + }, + "masterCardSecureCode": { + "type": "object", + "properties": { + "enabled": { + "type": "boolean", + "default": true + }, + "currencies": { + "type": "array", + "items": { + "type": "object", + "properties": { + "currencyCodes": { + "type": "array", + "description": "Supported currency codes are numeric ISO 4217 codes, such as 840 for US Dollar and 978 for Euro. \nFor backward compatibility, we also support the 'ALL' code, which represents all currencies. \nIn the UI, 'ALL' is displayed as 'Default'.\n", + "example": [ + "ALL", + "840", + "978" + ], + "items": { + "type": "string", + "example": "ALL" + } + }, + "acquirerId": { + "type": "string", + "minLength": 6, + "maxLength": 20, + "pattern": "^[a-zA-Z0-9]{6,20}$", + "description": "The Acquirer ID value, often referred to as the Acquirer BIN, is specific to an Acquirer.\nThe value is created by Cardinal in their system and the Acquirer may not know that the Acquirer ID is different from their Acquiring BIN.\nIt is most often the Acquiring BIN + \"-1000\" but the trailing character can be different.\n**Note** We will need to double check with Cardinal before setting up the Portfolio Template in production.\n" + }, + "processorMerchantId": { + "type": "string", + "minLength": 6, + "maxLength": 35, + "pattern": "^[a-zA-Z0-9]{6,35}$", + "description": "Processor Merchant ID is the Merchant ID assigned by your acquiring bank.\nThis Merchant ID should also be used by your bank to register your account to the card scheme Directory Server for processing Payer Authentication services.\n" + } + } + } + } + } + }, + "amexSafeKey": { + "type": "object", + "properties": { + "enabled": { + "type": "boolean", + "default": true + }, + "currencies": { + "type": "array", + "items": { + "type": "object", + "properties": { + "currencyCodes": { + "type": "array", + "description": "Supported currency codes are numeric ISO 4217 codes, such as 840 for US Dollar and 978 for Euro. \nFor backward compatibility, we also support the 'ALL' code, which represents all currencies. \nIn the UI, 'ALL' is displayed as 'Default'.\n", + "example": [ + "ALL", + "840", + "978" + ], "items": { "type": "string", "example": "ALL" @@ -95381,6 +93247,12 @@ "properties": { "currencyCodes": { "type": "array", + "description": "Supported currency codes are numeric ISO 4217 codes, such as 840 for US Dollar and 978 for Euro. \nFor backward compatibility, we also support the 'ALL' code, which represents all currencies. \nIn the UI, 'ALL' is displayed as 'Default'.\n", + "example": [ + "ALL", + "840", + "978" + ], "items": { "type": "string", "example": "ALL" @@ -95419,6 +93291,12 @@ "properties": { "currencyCodes": { "type": "array", + "description": "Supported currency codes are numeric ISO 4217 codes, such as 840 for US Dollar and 978 for Euro. \nFor backward compatibility, we also support the 'ALL' code, which represents all currencies. \nIn the UI, 'ALL' is displayed as 'Default'.\n", + "example": [ + "ALL", + "840", + "978" + ], "items": { "type": "string", "example": "ALL" @@ -95457,6 +93335,12 @@ "properties": { "currencyCodes": { "type": "array", + "description": "Supported currency codes are numeric ISO 4217 codes, such as 840 for US Dollar and 978 for Euro. \nFor backward compatibility, we also support the 'ALL' code, which represents all currencies. \nIn the UI, 'ALL' is displayed as 'Default'.\n", + "example": [ + "ALL", + "840", + "978" + ], "items": { "type": "string", "example": "ALL" @@ -95495,6 +93379,12 @@ "properties": { "currencyCodes": { "type": "array", + "description": "Supported currency codes are numeric ISO 4217 codes, such as 840 for US Dollar and 978 for Euro. \nFor backward compatibility, we also support the 'ALL' code, which represents all currencies. \nIn the UI, 'ALL' is displayed as 'Default'.\n", + "example": [ + "ALL", + "840", + "978" + ], "items": { "type": "string", "example": "ALL" @@ -95539,6 +93429,12 @@ "properties": { "currencyCodes": { "type": "array", + "description": "Supported currency codes are numeric ISO 4217 codes, such as 840 for US Dollar and 978 for Euro. \nFor backward compatibility, we also support the 'ALL' code, which represents all currencies. \nIn the UI, 'ALL' is displayed as 'Default'.\n", + "example": [ + "ALL", + "840", + "978" + ], "items": { "type": "string", "example": "ALL" @@ -96985,6 +94881,127 @@ } } } + }, + "serviceFee": { + "type": "object", + "properties": { + "subscriptionInformation": { + "type": "object", + "properties": { + "enabled": { + "type": "boolean" + }, + "selfServiceability": { + "type": "string", + "enum": [ + "SELF_SERVICEABLE", + "NOT_SELF_SERVICEABLE", + "SELF_SERVICE_ONLY" + ], + "default": "NOT_SELF_SERVICEABLE", + "description": "Indicates if the organization can enable this product using self service." + } + } + }, + "configurationInformation": { + "type": "object", + "properties": { + "configurations": { + "type": "object", + "properties": { + "products": { + "type": "object", + "description": "Products enabled for this account. The following values are supported:\nvirtualTerminal\npaymentTokenizationOtp\nsubscriptionsOtp\nvirtualTerminalCp\neCheck\n", + "additionalProperties": { + "type": "object", + "properties": { + "serviceFeeEnabled": { + "type": "boolean", + "description": "Boolean flag to determine if service fee will be applied to the Product." + } + } + } + }, + "terminalId": { + "type": "string", + "pattern": "/^[a-zA-Z0-9]+$/", + "description": "Identifier of the terminal at the retail location.", + "maxLength": 8 + }, + "merchantId": { + "type": "string", + "pattern": "/^[a-zA-Z0-9]+$/", + "description": "Identifier of a merchant account.", + "maxLength": 15 + }, + "merchantInformation": { + "type": "object", + "properties": { + "name": { + "type": "string", + "description": "Name of the merchant account.", + "maxLength": 25 + }, + "contact": { + "type": "string", + "pattern": "/^\\(?([0-9]{3})\\)?[-. ]?([0-9]{3})[-. ]?([0-9]{4})$/", + "description": "Phone number of the primary contact for the merchant account." + }, + "state": { + "type": "string", + "description": "2-character ISO code for the U.S. state in which the merchant is registered", + "maxLength": 2 + } + } + }, + "paymentInformation": { + "type": "array", + "items": { + "type": "object", + "properties": { + "paymentType": { + "type": "string", + "description": "Payment types accepted by this merchant. The supported values are: MASTERDEBIT, MASTERCREDIT, VISACREDIT, VISADEBIT, DISCOVERCREDIT, AMEXCREDIT, ECHECK", + "enum": [ + "MASTERDEBIT", + "MASTERCREDIT", + "VISACREDIT", + "VISADEBIT", + "DISCOVERCREDIT", + "AMEXCREDIT", + "ECHECK" + ] + }, + "feeType": { + "type": "string", + "description": "Fee type for the selected payment type. Supported values are: Flat or Percentage.\n", + "enum": [ + "FLAT", + "PERCENTAGE" + ] + }, + "feeAmount": { + "type": "number", + "pattern": "/^\\d{0,8}(\\.\\d{0,2})?$/", + "description": "Fee Amount of the selected payment type if you chose Flat fee type.\n" + }, + "percentage": { + "type": "number", + "description": "Percentage of the selected payment type if you chose Percentage Fee type. Supported values use numbers with decimals. For example, 1.0\n" + }, + "feeCap": { + "type": "number", + "pattern": "/^\\d{0,8}(\\.\\d{0,2})?$/", + "description": "Fee cap for the selected payment type. Supported values use numbers with decimals. For example, 1.0\n" + } + } + } + } + } + } + } + } + } } } }, @@ -98989,7 +97006,126 @@ } } }, - "payouts": { + "payouts": { + "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", + "enum": [ + "SUCCESS", + "FAILURE", + "PARTIAL", + "PENDING" + ] + }, + "reason": { + "type": "string", + "enum": [ + "DEPENDENT_PRODUCT_NOT_CONTRACTED", + "DEPENDENT_FEATURE_NOT_CHOSEN", + "MISSING_DATA", + "INVALID_DATA", + "DUPLICATE_FIELD" + ] + }, + "details": { + "type": "array", + "items": { + "type": "object", + "properties": { + "field": { + "type": "string" + }, + "reason": { + "type": "string", + "enum": [ + "MISSING_DATA", + "INVALID_DATA", + "DUPLICATE_FIELD" + ] + } + }, + "additionalProperties": { + "type": "string" + } + } + }, + "message": { + "type": "string" + } + } + }, + "configurationStatus": { + "type": "object", + "properties": { + "configurationId": { + "type": "string", + "format": "uuid", + "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", + "enum": [ + "SUCCESS", + "PARTIAL", + "PENDING", + "NOT_SETUP" + ] + }, + "reason": { + "type": "string", + "enum": [ + "PENDING_PROVISIONING_PROCESS", + "MISSING_DATA", + "INVALID_DATA", + "DUPLICATE_FIELD", + "NOT_APPLICABLE" + ] + }, + "details": { + "type": "array", + "items": { + "type": "object", + "properties": { + "field": { + "type": "string" + }, + "reason": { + "type": "string", + "enum": [ + "MISSING_DATA", + "INVALID_DATA", + "DUPLICATE_FIELD" + ] + } + }, + "additionalProperties": { + "type": "string" + } + } + }, + "message": { + "type": "string" + } + } + } + } + }, + "payByLink": { "type": "object", "properties": { "subscriptionStatus": { @@ -99044,18 +97180,15 @@ "type": "string" } } - }, - "configurationStatus": { + } + } + }, + "unifiedCheckout": { + "type": "object", + "properties": { + "subscriptionStatus": { "type": "object", "properties": { - "configurationId": { - "type": "string", - "format": "uuid", - "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" @@ -99064,19 +97197,19 @@ "type": "string", "enum": [ "SUCCESS", + "FAILURE", "PARTIAL", - "PENDING", - "NOT_SETUP" + "PENDING" ] }, "reason": { "type": "string", "enum": [ - "PENDING_PROVISIONING_PROCESS", + "DEPENDENT_PRODUCT_NOT_CONTRACTED", + "DEPENDENT_FEATURE_NOT_CHOSEN", "MISSING_DATA", "INVALID_DATA", - "DUPLICATE_FIELD", - "NOT_APPLICABLE" + "DUPLICATE_FIELD" ] }, "details": { @@ -99108,7 +97241,7 @@ } } }, - "payByLink": { + "receivablesManager": { "type": "object", "properties": { "subscriptionStatus": { @@ -99166,7 +97299,7 @@ } } }, - "unifiedCheckout": { + "serviceFee": { "type": "object", "properties": { "subscriptionStatus": { @@ -99221,15 +97354,18 @@ "type": "string" } } - } - } - }, - "receivablesManager": { - "type": "object", - "properties": { - "subscriptionStatus": { + }, + "configurationStatus": { "type": "object", "properties": { + "configurationId": { + "type": "string", + "format": "uuid", + "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" @@ -99238,19 +97374,19 @@ "type": "string", "enum": [ "SUCCESS", - "FAILURE", "PARTIAL", - "PENDING" + "PENDING", + "NOT_SETUP" ] }, "reason": { "type": "string", "enum": [ - "DEPENDENT_PRODUCT_NOT_CONTRACTED", - "DEPENDENT_FEATURE_NOT_CHOSEN", + "PENDING_PROVISIONING_PROCESS", "MISSING_DATA", "INVALID_DATA", - "DUPLICATE_FIELD" + "DUPLICATE_FIELD", + "NOT_APPLICABLE" ] }, "details": { @@ -104190,6 +102326,12 @@ "properties": { "currencyCodes": { "type": "array", + "description": "Supported currency codes are numeric ISO 4217 codes, such as 840 for US Dollar and 978 for Euro. \nFor backward compatibility, we also support the 'ALL' code, which represents all currencies. \nIn the UI, 'ALL' is displayed as 'Default'.\n", + "example": [ + "ALL", + "840", + "978" + ], "items": { "type": "string", "example": "ALL" @@ -104228,6 +102370,12 @@ "properties": { "currencyCodes": { "type": "array", + "description": "Supported currency codes are numeric ISO 4217 codes, such as 840 for US Dollar and 978 for Euro. \nFor backward compatibility, we also support the 'ALL' code, which represents all currencies. \nIn the UI, 'ALL' is displayed as 'Default'.\n", + "example": [ + "ALL", + "840", + "978" + ], "items": { "type": "string", "example": "ALL" @@ -104266,6 +102414,12 @@ "properties": { "currencyCodes": { "type": "array", + "description": "Supported currency codes are numeric ISO 4217 codes, such as 840 for US Dollar and 978 for Euro. \nFor backward compatibility, we also support the 'ALL' code, which represents all currencies. \nIn the UI, 'ALL' is displayed as 'Default'.\n", + "example": [ + "ALL", + "840", + "978" + ], "items": { "type": "string", "example": "ALL" @@ -104310,6 +102464,12 @@ "properties": { "currencyCodes": { "type": "array", + "description": "Supported currency codes are numeric ISO 4217 codes, such as 840 for US Dollar and 978 for Euro. \nFor backward compatibility, we also support the 'ALL' code, which represents all currencies. \nIn the UI, 'ALL' is displayed as 'Default'.\n", + "example": [ + "ALL", + "840", + "978" + ], "items": { "type": "string", "example": "ALL" @@ -104348,6 +102508,12 @@ "properties": { "currencyCodes": { "type": "array", + "description": "Supported currency codes are numeric ISO 4217 codes, such as 840 for US Dollar and 978 for Euro. \nFor backward compatibility, we also support the 'ALL' code, which represents all currencies. \nIn the UI, 'ALL' is displayed as 'Default'.\n", + "example": [ + "ALL", + "840", + "978" + ], "items": { "type": "string", "example": "ALL" @@ -104386,6 +102552,12 @@ "properties": { "currencyCodes": { "type": "array", + "description": "Supported currency codes are numeric ISO 4217 codes, such as 840 for US Dollar and 978 for Euro. \nFor backward compatibility, we also support the 'ALL' code, which represents all currencies. \nIn the UI, 'ALL' is displayed as 'Default'.\n", + "example": [ + "ALL", + "840", + "978" + ], "items": { "type": "string", "example": "ALL" @@ -104424,6 +102596,12 @@ "properties": { "currencyCodes": { "type": "array", + "description": "Supported currency codes are numeric ISO 4217 codes, such as 840 for US Dollar and 978 for Euro. \nFor backward compatibility, we also support the 'ALL' code, which represents all currencies. \nIn the UI, 'ALL' is displayed as 'Default'.\n", + "example": [ + "ALL", + "840", + "978" + ], "items": { "type": "string", "example": "ALL" @@ -104468,6 +102646,12 @@ "properties": { "currencyCodes": { "type": "array", + "description": "Supported currency codes are numeric ISO 4217 codes, such as 840 for US Dollar and 978 for Euro. \nFor backward compatibility, we also support the 'ALL' code, which represents all currencies. \nIn the UI, 'ALL' is displayed as 'Default'.\n", + "example": [ + "ALL", + "840", + "978" + ], "items": { "type": "string", "example": "ALL" @@ -105914,6 +104098,127 @@ } } } + }, + "serviceFee": { + "type": "object", + "properties": { + "subscriptionInformation": { + "type": "object", + "properties": { + "enabled": { + "type": "boolean" + }, + "selfServiceability": { + "type": "string", + "enum": [ + "SELF_SERVICEABLE", + "NOT_SELF_SERVICEABLE", + "SELF_SERVICE_ONLY" + ], + "default": "NOT_SELF_SERVICEABLE", + "description": "Indicates if the organization can enable this product using self service." + } + } + }, + "configurationInformation": { + "type": "object", + "properties": { + "configurations": { + "type": "object", + "properties": { + "products": { + "type": "object", + "description": "Products enabled for this account. The following values are supported:\nvirtualTerminal\npaymentTokenizationOtp\nsubscriptionsOtp\nvirtualTerminalCp\neCheck\n", + "additionalProperties": { + "type": "object", + "properties": { + "serviceFeeEnabled": { + "type": "boolean", + "description": "Boolean flag to determine if service fee will be applied to the Product." + } + } + } + }, + "terminalId": { + "type": "string", + "pattern": "/^[a-zA-Z0-9]+$/", + "description": "Identifier of the terminal at the retail location.", + "maxLength": 8 + }, + "merchantId": { + "type": "string", + "pattern": "/^[a-zA-Z0-9]+$/", + "description": "Identifier of a merchant account.", + "maxLength": 15 + }, + "merchantInformation": { + "type": "object", + "properties": { + "name": { + "type": "string", + "description": "Name of the merchant account.", + "maxLength": 25 + }, + "contact": { + "type": "string", + "pattern": "/^\\(?([0-9]{3})\\)?[-. ]?([0-9]{3})[-. ]?([0-9]{4})$/", + "description": "Phone number of the primary contact for the merchant account." + }, + "state": { + "type": "string", + "description": "2-character ISO code for the U.S. state in which the merchant is registered", + "maxLength": 2 + } + } + }, + "paymentInformation": { + "type": "array", + "items": { + "type": "object", + "properties": { + "paymentType": { + "type": "string", + "description": "Payment types accepted by this merchant. The supported values are: MASTERDEBIT, MASTERCREDIT, VISACREDIT, VISADEBIT, DISCOVERCREDIT, AMEXCREDIT, ECHECK", + "enum": [ + "MASTERDEBIT", + "MASTERCREDIT", + "VISACREDIT", + "VISADEBIT", + "DISCOVERCREDIT", + "AMEXCREDIT", + "ECHECK" + ] + }, + "feeType": { + "type": "string", + "description": "Fee type for the selected payment type. Supported values are: Flat or Percentage.\n", + "enum": [ + "FLAT", + "PERCENTAGE" + ] + }, + "feeAmount": { + "type": "number", + "pattern": "/^\\d{0,8}(\\.\\d{0,2})?$/", + "description": "Fee Amount of the selected payment type if you chose Flat fee type.\n" + }, + "percentage": { + "type": "number", + "description": "Percentage of the selected payment type if you chose Percentage Fee type. Supported values use numbers with decimals. For example, 1.0\n" + }, + "feeCap": { + "type": "number", + "pattern": "/^\\d{0,8}(\\.\\d{0,2})?$/", + "description": "Fee cap for the selected payment type. Supported values use numbers with decimals. For example, 1.0\n" + } + } + } + } + } + } + } + } + } } } }, @@ -108061,6 +106366,125 @@ } } } + }, + "serviceFee": { + "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", + "enum": [ + "SUCCESS", + "FAILURE", + "PARTIAL", + "PENDING" + ] + }, + "reason": { + "type": "string", + "enum": [ + "DEPENDENT_PRODUCT_NOT_CONTRACTED", + "DEPENDENT_FEATURE_NOT_CHOSEN", + "MISSING_DATA", + "INVALID_DATA", + "DUPLICATE_FIELD" + ] + }, + "details": { + "type": "array", + "items": { + "type": "object", + "properties": { + "field": { + "type": "string" + }, + "reason": { + "type": "string", + "enum": [ + "MISSING_DATA", + "INVALID_DATA", + "DUPLICATE_FIELD" + ] + } + }, + "additionalProperties": { + "type": "string" + } + } + }, + "message": { + "type": "string" + } + } + }, + "configurationStatus": { + "type": "object", + "properties": { + "configurationId": { + "type": "string", + "format": "uuid", + "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", + "enum": [ + "SUCCESS", + "PARTIAL", + "PENDING", + "NOT_SETUP" + ] + }, + "reason": { + "type": "string", + "enum": [ + "PENDING_PROVISIONING_PROCESS", + "MISSING_DATA", + "INVALID_DATA", + "DUPLICATE_FIELD", + "NOT_APPLICABLE" + ] + }, + "details": { + "type": "array", + "items": { + "type": "object", + "properties": { + "field": { + "type": "string" + }, + "reason": { + "type": "string", + "enum": [ + "MISSING_DATA", + "INVALID_DATA", + "DUPLICATE_FIELD" + ] + } + }, + "additionalProperties": { + "type": "string" + } + } + }, + "message": { + "type": "string" + } + } + } + } } } }, diff --git a/lib/cybersource_rest_client.rb b/lib/cybersource_rest_client.rb index 019b2858..a46a4fb1 100644 --- a/lib/cybersource_rest_client.rb +++ b/lib/cybersource_rest_client.rb @@ -110,7 +110,6 @@ 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_p12_keys_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' @@ -119,15 +118,11 @@ 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_shared_secret_keys_request' -require 'cybersource_rest_client/models/create_shared_secret_keys_verifi_request' require 'cybersource_rest_client/models/create_subscription_request' 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_request' -require 'cybersource_rest_client/models/delete_bulk_p12_keys_request' -require 'cybersource_rest_client/models/delete_bulk_symmetric_keys_request' require 'cybersource_rest_client/models/delete_plan_response' require 'cybersource_rest_client/models/dm_config' require 'cybersource_rest_client/models/dm_config_organization' @@ -186,29 +181,27 @@ 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_1_keys' +require 'cybersource_rest_client/models/inline_response_200_1_integration_information' +require 'cybersource_rest_client/models/inline_response_200_1_integration_information_tenant_configurations' require 'cybersource_rest_client/models/inline_response_200_2' -require 'cybersource_rest_client/models/inline_response_200_2_integration_information' -require 'cybersource_rest_client/models/inline_response_200_2_integration_information_tenant_configurations' 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_5' +require 'cybersource_rest_client/models/inline_response_200_5__embedded' +require 'cybersource_rest_client/models/inline_response_200_5__embedded_batches' +require 'cybersource_rest_client/models/inline_response_200_5__embedded__links' +require 'cybersource_rest_client/models/inline_response_200_5__embedded__links_reports' +require 'cybersource_rest_client/models/inline_response_200_5__embedded_totals' +require 'cybersource_rest_client/models/inline_response_200_5__links' require 'cybersource_rest_client/models/inline_response_200_6' -require 'cybersource_rest_client/models/inline_response_200_6__embedded' -require 'cybersource_rest_client/models/inline_response_200_6__embedded_batches' -require 'cybersource_rest_client/models/inline_response_200_6__embedded__links' -require 'cybersource_rest_client/models/inline_response_200_6__embedded__links_reports' -require 'cybersource_rest_client/models/inline_response_200_6__embedded_totals' +require 'cybersource_rest_client/models/inline_response_200_6_billing' require 'cybersource_rest_client/models/inline_response_200_6__links' +require 'cybersource_rest_client/models/inline_response_200_6__links_report' require 'cybersource_rest_client/models/inline_response_200_7' -require 'cybersource_rest_client/models/inline_response_200_7_billing' -require 'cybersource_rest_client/models/inline_response_200_7__links' -require 'cybersource_rest_client/models/inline_response_200_7__links_report' -require 'cybersource_rest_client/models/inline_response_200_8' -require 'cybersource_rest_client/models/inline_response_200_8_records' -require 'cybersource_rest_client/models/inline_response_200_8_response_record' -require 'cybersource_rest_client/models/inline_response_200_8_response_record_additional_updates' -require 'cybersource_rest_client/models/inline_response_200_8_source_record' +require 'cybersource_rest_client/models/inline_response_200_7_records' +require 'cybersource_rest_client/models/inline_response_200_7_response_record' +require 'cybersource_rest_client/models/inline_response_200_7_response_record_additional_updates' +require 'cybersource_rest_client/models/inline_response_200_7_source_record' require 'cybersource_rest_client/models/inline_response_200__embedded' require 'cybersource_rest_client/models/inline_response_200__embedded_capture' require 'cybersource_rest_client/models/inline_response_200__embedded_capture__links' @@ -258,11 +251,9 @@ require 'cybersource_rest_client/models/inline_response_400_4' require 'cybersource_rest_client/models/inline_response_400_4_fields' require 'cybersource_rest_client/models/inline_response_400_5' +require 'cybersource_rest_client/models/inline_response_400_5_details' require 'cybersource_rest_client/models/inline_response_400_6' -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_6_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' @@ -289,10 +280,8 @@ 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_503' require 'cybersource_rest_client/models/inline_response_default' require 'cybersource_rest_client/models/inline_response_default__links' @@ -332,29 +321,10 @@ 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/invoicingv2invoicesid_invoice_information' -require 'cybersource_rest_client/models/kms_v2_keys_asym_deletes_post200_response' -require 'cybersource_rest_client/models/kms_v2_keys_asym_deletes_post200_response_key_information' -require 'cybersource_rest_client/models/kms_v2_keys_asym_get200_response' -require 'cybersource_rest_client/models/kms_v2_keys_asym_get200_response_key_information' -require 'cybersource_rest_client/models/kms_v2_keys_asym_post201_response' -require 'cybersource_rest_client/models/kms_v2_keys_asym_post201_response_certificate_information' -require 'cybersource_rest_client/models/kms_v2_keys_asym_post201_response_key_information' -require 'cybersource_rest_client/models/kms_v2_keys_sym_deletes_post200_response' -require 'cybersource_rest_client/models/kms_v2_keys_sym_deletes_post200_response_key_information' -require 'cybersource_rest_client/models/kms_v2_keys_sym_get200_response' -require 'cybersource_rest_client/models/kms_v2_keys_sym_get200_response_key_information' -require 'cybersource_rest_client/models/kms_v2_keys_sym_post201_response' -require 'cybersource_rest_client/models/kms_v2_keys_sym_post201_response_error_information' -require 'cybersource_rest_client/models/kms_v2_keys_sym_post201_response_key_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/kmsv2keysasym_key_information' -require 'cybersource_rest_client/models/kmsv2keyssym_client_reference_information' -require 'cybersource_rest_client/models/kmsv2keyssym_key_information' -require 'cybersource_rest_client/models/kmsv2keyssymdeletes_key_information' -require 'cybersource_rest_client/models/kmsv2keyssymverifi_key_information' require 'cybersource_rest_client/models/merchant_initiated_transaction_object' require 'cybersource_rest_client/models/microformv2sessions_checkout_api_initialization' require 'cybersource_rest_client/models/mit_reversal_request' @@ -431,6 +401,12 @@ require 'cybersource_rest_client/models/payments_products_payouts_configuration_information_configurations_pushfunds' 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_virtual_terminal' require 'cybersource_rest_client/models/payments_products_virtual_terminal_configuration_information' @@ -796,6 +772,7 @@ 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_token_information' require 'cybersource_rest_client/models/ptsv2payments_token_information_payment_instrument' require 'cybersource_rest_client/models/ptsv2payments_token_information_shipping_address' @@ -1043,10 +1020,10 @@ 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_card' 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' @@ -1276,11 +1253,7 @@ 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/update_asym_keys_request' require 'cybersource_rest_client/models/update_invoice_request' -require 'cybersource_rest_client/models/update_pgp_keys_request' -require 'cybersource_rest_client/models/update_pgp_keys_request_1' -require 'cybersource_rest_client/models/update_password_keys_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' @@ -1346,7 +1319,6 @@ # APIs require 'cybersource_rest_client/api/o_auth_api' -require 'cybersource_rest_client/api/asymmetric_key_management_api' require 'cybersource_rest_client/api/batches_api' require 'cybersource_rest_client/api/billing_agreements_api' require 'cybersource_rest_client/api/bin_lookup_api' @@ -1367,10 +1339,6 @@ 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/key_management_api' -require 'cybersource_rest_client/api/key_management_password_api' -require 'cybersource_rest_client/api/key_management_pgp_api' -require 'cybersource_rest_client/api/key_management_scmp_api' require 'cybersource_rest_client/api/manage_webhooks_api' require 'cybersource_rest_client/api/merchant_boarding_api' require 'cybersource_rest_client/api/microform_integration_api' @@ -1396,7 +1364,6 @@ 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/symmetric_key_management_api' require 'cybersource_rest_client/api/taxes_api' require 'cybersource_rest_client/api/token_api' require 'cybersource_rest_client/api/transaction_batches_api' diff --git a/lib/cybersource_rest_client/api/batches_api.rb b/lib/cybersource_rest_client/api/batches_api.rb index 0b6672b6..35ebc5ec 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 [InlineResponse2008] + # @return [InlineResponse2007] # 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<(InlineResponse2008, Fixnum, Hash)>] InlineResponse2008 data, response status code and response headers + # @return [Array<(InlineResponse2007, Fixnum, Hash)>] InlineResponse2007 data, response status code and response headers def get_batch_report_with_http_info(batch_id, opts = {}) if @api_client.config.debugging @@ -83,7 +83,7 @@ def get_batch_report_with_http_info(batch_id, opts = {}) :form_params => form_params, :body => post_body, :auth_names => auth_names, - :return_type => 'InlineResponse2008') + :return_type => 'InlineResponse2007') if @api_client.config.debugging begin raise @@ -99,7 +99,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 [InlineResponse2007] + # @return [InlineResponse2006] # def get_batch_status(batch_id, opts = {}) data, status_code, headers = get_batch_status_with_http_info(batch_id, opts) @@ -110,7 +110,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<(InlineResponse2007, Fixnum, Hash)>] InlineResponse2007 data, response status code and response headers + # @return [Array<(InlineResponse2006, Fixnum, Hash)>] InlineResponse2006 data, response status code and response headers def get_batch_status_with_http_info(batch_id, opts = {}) if @api_client.config.debugging @@ -158,7 +158,7 @@ def get_batch_status_with_http_info(batch_id, opts = {}) :form_params => form_params, :body => post_body, :auth_names => auth_names, - :return_type => 'InlineResponse2007') + :return_type => 'InlineResponse2006') if @api_client.config.debugging begin raise @@ -177,7 +177,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 [InlineResponse2006] + # @return [InlineResponse2005] # def get_batches_list(opts = {}) data, status_code, headers = get_batches_list_with_http_info(opts) @@ -191,7 +191,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<(InlineResponse2006, Fixnum, Hash)>] InlineResponse2006 data, response status code and response headers + # @return [Array<(InlineResponse2005, Fixnum, Hash)>] InlineResponse2005 data, response status code and response headers def get_batches_list_with_http_info(opts = {}) if @api_client.config.debugging @@ -235,7 +235,7 @@ def get_batches_list_with_http_info(opts = {}) :form_params => form_params, :body => post_body, :auth_names => auth_names, - :return_type => 'InlineResponse2006') + :return_type => 'InlineResponse2005') if @api_client.config.debugging begin raise diff --git a/lib/cybersource_rest_client/api/bin_lookup_api.rb b/lib/cybersource_rest_client/api/bin_lookup_api.rb index 17e6cddb..b710dca1 100644 --- a/lib/cybersource_rest_client/api/bin_lookup_api.rb +++ b/lib/cybersource_rest_client/api/bin_lookup_api.rb @@ -20,7 +20,7 @@ def initialize(api_client = ApiClient.default, config) @api_client.set_configuration(config) end # BIN Lookup API - # The BIN Lookup Service is a versatile business tool that provides card network agnostic solution designed to ensure frictionless transaction experience by utilizing up-to-date Bank Identification Number (BIN) attributes sourced from multiple global and regional data sources. This service helps to improve authorization rates by helping to route transactions to the best-suited card network, minimizes fraud through card detail verification and aids in regulatory compliance by identifying card properties. The service is flexible and provides businesses with a flexible choice of inputs such as primary account number (PAN), network token from major networks which includes device PAN (DPAN), and all types of tokens generated via CyberSource Token Management Service (TMS). Currently, the range of available credentials is contingent on the networks enabled for the business entity. Therefore, the network information specified in this documentation is illustrative and subject to personalized offerings for each reseller or merchant. + # The BIN Lookup Service is a versatile business tool that provides card network agnostic solution designed to ensure frictionless transaction experience by utilizing up-to-date Bank Identification Number (BIN) attributes sourced from multiple global and regional data sources. This service helps to improve authorization rates by helping to route transactions to the best-suited card network, minimizes fraud through card detail verification and aids in regulatory compliance by identifying card properties. The service is flexible and provides businesses with a flexible choice of inputs such as primary account number (PAN), network token from major networks which includes device PAN (DPAN), and all types of tokens generated via CyberSource Token Management Service (TMS). Currently, the range of available credentials is contingent on the networks enabled for the business entity. Therefore, the network information specified in this documentation is illustrative and subject to personalized offerings for each reseller or merchant. # # @param create_bin_lookup_request # @param [Hash] opts the optional parameters @@ -33,7 +33,7 @@ def get_account_info(create_bin_lookup_request, opts = {}) end # BIN Lookup API - # The BIN Lookup Service is a versatile business tool that provides card network agnostic solution designed to ensure frictionless transaction experience by utilizing up-to-date Bank Identification Number (BIN) attributes sourced from multiple global and regional data sources. This service helps to improve authorization rates by helping to route transactions to the best-suited card network, minimizes fraud through card detail verification and aids in regulatory compliance by identifying card properties. The service is flexible and provides businesses with a flexible choice of inputs such as primary account number (PAN), network token from major networks which includes device PAN (DPAN), and all types of tokens generated via CyberSource Token Management Service (TMS). Currently, the range of available credentials is contingent on the networks enabled for the business entity. Therefore, the network information specified in this documentation is illustrative and subject to personalized offerings for each reseller or merchant. + # The BIN Lookup Service is a versatile business tool that provides card network agnostic solution designed to ensure frictionless transaction experience by utilizing up-to-date Bank Identification Number (BIN) attributes sourced from multiple global and regional data sources. This service helps to improve authorization rates by helping to route transactions to the best-suited card network, minimizes fraud through card detail verification and aids in regulatory compliance by identifying card properties. The service is flexible and provides businesses with a flexible choice of inputs such as primary account number (PAN), network token from major networks which includes device PAN (DPAN), and all types of tokens generated via CyberSource Token Management Service (TMS). Currently, the range of available credentials is contingent on the networks enabled for the business entity. Therefore, the network information specified in this documentation is illustrative and subject to personalized offerings for each reseller or merchant. # @param create_bin_lookup_request # @param [Hash] opts the optional parameters # @return [Array<(InlineResponse2011, Fixnum, Hash)>] InlineResponse2011 data, response status code and response headers @@ -60,7 +60,7 @@ def get_account_info_with_http_info(create_bin_lookup_request, opts = {}) # header parameters header_params = {} # HTTP header 'Accept' (if needed) - header_params['Accept'] = @api_client.select_header_accept(['application/hal+json;charset=utf-8']) + 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']) 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 46ed8fbe..b9991cb3 100644 --- a/lib/cybersource_rest_client/api/create_new_webhooks_api.rb +++ b/lib/cybersource_rest_client/api/create_new_webhooks_api.rb @@ -90,7 +90,7 @@ def create_webhook_subscription_with_http_info(opts = {}) # # @param organization_id The Organization Identifier. # @param [Hash] opts the optional parameters - # @return [Array] + # @return [Array] # # 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 find_products_to_subscribe(organization_id, opts = {}) @@ -102,7 +102,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 @@ -146,7 +146,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 diff --git a/lib/cybersource_rest_client/api/manage_webhooks_api.rb b/lib/cybersource_rest_client/api/manage_webhooks_api.rb index f74d6ee4..3a35fb19 100644 --- a/lib/cybersource_rest_client/api/manage_webhooks_api.rb +++ b/lib/cybersource_rest_client/api/manage_webhooks_api.rb @@ -95,7 +95,7 @@ def delete_webhook_subscription_with_http_info(webhook_id, opts = {}) # # @param webhook_id The webhook Identifier # @param [Hash] opts the optional parameters - # @return [InlineResponse2005] + # @return [InlineResponse2004] # # 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 get_webhook_subscription_by_id(webhook_id, opts = {}) @@ -107,7 +107,7 @@ def get_webhook_subscription_by_id(webhook_id, opts = {}) # Retrieve the details of a specific webhook by supplying the webhook ID in the path. # @param webhook_id The webhook Identifier # @param [Hash] opts the optional parameters - # @return [Array<(InlineResponse2005, Fixnum, Hash)>] InlineResponse2005 data, response status code and response headers + # @return [Array<(InlineResponse2004, Fixnum, Hash)>] InlineResponse2004 data, response status code and response headers def get_webhook_subscription_by_id_with_http_info(webhook_id, opts = {}) if @api_client.config.debugging @@ -151,7 +151,7 @@ def get_webhook_subscription_by_id_with_http_info(webhook_id, opts = {}) :form_params => form_params, :body => post_body, :auth_names => auth_names, - :return_type => 'InlineResponse2005') + :return_type => 'InlineResponse2004') if @api_client.config.debugging begin raise @@ -169,7 +169,7 @@ def get_webhook_subscription_by_id_with_http_info(webhook_id, opts = {}) # @param product_id The Product Identifier. # @param event_type The Event Type. # @param [Hash] opts the optional parameters - # @return [Array] + # @return [Array] # # 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 get_webhook_subscriptions_by_org(organization_id, product_id, event_type, opts = {}) @@ -183,7 +183,7 @@ def get_webhook_subscriptions_by_org(organization_id, product_id, event_type, op # @param product_id The Product Identifier. # @param event_type The Event Type. # @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_webhook_subscriptions_by_org_with_http_info(organization_id, product_id, event_type, opts = {}) if @api_client.config.debugging @@ -238,7 +238,7 @@ def get_webhook_subscriptions_by_org_with_http_info(organization_id, product_id, :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/merchant_boarding_api.rb b/lib/cybersource_rest_client/api/merchant_boarding_api.rb index 0c0256d2..655f032a 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 [InlineResponse2002] + # @return [InlineResponse2001] # # 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 get_registration(registration_id, opts = {}) @@ -36,7 +36,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<(InlineResponse2002, Fixnum, Hash)>] InlineResponse2002 data, response status code and response headers + # @return [Array<(InlineResponse2001, Fixnum, Hash)>] InlineResponse2001 data, response status code and response headers def get_registration_with_http_info(registration_id, opts = {}) if @api_client.config.debugging @@ -80,7 +80,7 @@ def get_registration_with_http_info(registration_id, opts = {}) :form_params => form_params, :body => post_body, :auth_names => auth_names, - :return_type => 'InlineResponse2002') + :return_type => 'InlineResponse2001') if @api_client.config.debugging begin raise diff --git a/lib/cybersource_rest_client/models/check_payer_auth_enrollment_request.rb b/lib/cybersource_rest_client/models/check_payer_auth_enrollment_request.rb index e830108b..24e3558d 100644 --- a/lib/cybersource_rest_client/models/check_payer_auth_enrollment_request.rb +++ b/lib/cybersource_rest_client/models/check_payer_auth_enrollment_request.rb @@ -84,7 +84,7 @@ def self.json_map # Attribute type mapping. def self.swagger_types { - :'client_reference_information' => :'Riskv1decisionsClientReferenceInformation', + :'client_reference_information' => :'Riskv1authenticationsetupsClientReferenceInformation', :'order_information' => :'Riskv1authenticationsOrderInformation', :'payment_information' => :'Riskv1authenticationsPaymentInformation', :'processing_information' => :'Riskv1authenticationsetupsProcessingInformation', diff --git a/lib/cybersource_rest_client/models/create_payment_request.rb b/lib/cybersource_rest_client/models/create_payment_request.rb index 49b9bbb6..2c3de5be 100644 --- a/lib/cybersource_rest_client/models/create_payment_request.rb +++ b/lib/cybersource_rest_client/models/create_payment_request.rb @@ -25,6 +25,8 @@ class CreatePaymentRequest attr_accessor :buyer_information + attr_accessor :sender_information + attr_accessor :recipient_information attr_accessor :device_information @@ -77,6 +79,7 @@ def self.attribute_map :'payment_information' => :'paymentInformation', :'order_information' => :'orderInformation', :'buyer_information' => :'buyerInformation', + :'sender_information' => :'senderInformation', :'recipient_information' => :'recipientInformation', :'device_information' => :'deviceInformation', :'merchant_information' => :'merchantInformation', @@ -110,6 +113,7 @@ def self.json_map :'payment_information' => :'payment_information', :'order_information' => :'order_information', :'buyer_information' => :'buyer_information', + :'sender_information' => :'sender_information', :'recipient_information' => :'recipient_information', :'device_information' => :'device_information', :'merchant_information' => :'merchant_information', @@ -143,6 +147,7 @@ def self.swagger_types :'payment_information' => :'Ptsv2paymentsPaymentInformation', :'order_information' => :'Ptsv2paymentsOrderInformation', :'buyer_information' => :'Ptsv2paymentsBuyerInformation', + :'sender_information' => :'Ptsv2paymentsSenderInformation', :'recipient_information' => :'Ptsv2paymentsRecipientInformation', :'device_information' => :'Ptsv2paymentsDeviceInformation', :'merchant_information' => :'Ptsv2paymentsMerchantInformation', @@ -199,6 +204,10 @@ def initialize(attributes = {}) self.buyer_information = attributes[:'buyerInformation'] end + if attributes.has_key?(:'senderInformation') + self.sender_information = attributes[:'senderInformation'] + end + if attributes.has_key?(:'recipientInformation') self.recipient_information = attributes[:'recipientInformation'] end @@ -310,6 +319,7 @@ def ==(o) payment_information == o.payment_information && order_information == o.order_information && buyer_information == o.buyer_information && + sender_information == o.sender_information && recipient_information == o.recipient_information && device_information == o.device_information && merchant_information == o.merchant_information && @@ -342,7 +352,7 @@ def eql?(o) # Calculates hash code according to all attributes. # @return [Fixnum] Hash code def hash - [client_reference_information, processing_information, issuer_information, payment_information, order_information, buyer_information, recipient_information, device_information, merchant_information, aggregator_information, consumer_authentication_information, point_of_sale_information, merchant_defined_information, merchant_defined_secure_information, installment_information, travel_information, health_care_information, promotion_information, token_information, invoice_details, processor_information, agreement_information, risk_information, acquirer_information, recurring_payment_information, hosted_payment_information, watchlist_screening_information].hash + [client_reference_information, processing_information, issuer_information, payment_information, order_information, buyer_information, sender_information, recipient_information, device_information, merchant_information, aggregator_information, consumer_authentication_information, point_of_sale_information, merchant_defined_information, merchant_defined_secure_information, installment_information, travel_information, health_care_information, promotion_information, token_information, invoice_details, processor_information, agreement_information, risk_information, acquirer_information, recurring_payment_information, hosted_payment_information, watchlist_screening_information].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 819a4ccc..ff7e9867 100644 --- a/lib/cybersource_rest_client/models/inline_response_200_1.rb +++ b/lib/cybersource_rest_client/models/inline_response_200_1.rb @@ -12,58 +12,57 @@ require 'date' module CyberSource - # Successful searchKeysResponse class InlineResponse2001 - # 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. - attr_accessor :submit_time_utc + attr_accessor :registration_information - # Specifies the total number of items found based on the request - attr_accessor :total_count + attr_accessor :integration_information - # Specifies the record offset from the records are returned part of the response - attr_accessor :offset + attr_accessor :organization_information - # Specifies the maximum number of records requested part of the response - attr_accessor :limit + attr_accessor :product_information - # Specifies a comma separated list of field names based on which the result is sorted. - attr_accessor :sort + attr_accessor :product_information_setups - attr_accessor :keys + attr_accessor :document_information + + attr_accessor :details # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { - :'submit_time_utc' => :'submitTimeUtc', - :'total_count' => :'totalCount', - :'offset' => :'offset', - :'limit' => :'limit', - :'sort' => :'sort', - :'keys' => :'keys' + :'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 { - :'submit_time_utc' => :'submit_time_utc', - :'total_count' => :'total_count', - :'offset' => :'offset', - :'limit' => :'limit', - :'sort' => :'sort', - :'keys' => :'keys' + :'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 { - :'submit_time_utc' => :'String', - :'total_count' => :'Integer', - :'offset' => :'Integer', - :'limit' => :'Integer', - :'sort' => :'String', - :'keys' => :'Array' + :'registration_information' => :'Boardingv1registrationsRegistrationInformation', + :'integration_information' => :'InlineResponse2001IntegrationInformation', + :'organization_information' => :'Boardingv1registrationsOrganizationInformation', + :'product_information' => :'Boardingv1registrationsProductInformation', + :'product_information_setups' => :'Array', + :'document_information' => :'Boardingv1registrationsDocumentInformation', + :'details' => :'Hash>' } end @@ -75,29 +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?(:'submitTimeUtc') - self.submit_time_utc = attributes[:'submitTimeUtc'] + 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?(:'totalCount') - self.total_count = attributes[:'totalCount'] + if attributes.has_key?(:'organizationInformation') + self.organization_information = attributes[:'organizationInformation'] end - if attributes.has_key?(:'offset') - self.offset = attributes[:'offset'] + if attributes.has_key?(:'productInformation') + self.product_information = attributes[:'productInformation'] end - if attributes.has_key?(:'limit') - self.limit = attributes[:'limit'] + if attributes.has_key?(:'productInformationSetups') + if (value = attributes[:'productInformationSetups']).is_a?(Array) + self.product_information_setups = value + end end - if attributes.has_key?(:'sort') - self.sort = attributes[:'sort'] + if attributes.has_key?(:'documentInformation') + self.document_information = attributes[:'documentInformation'] end - if attributes.has_key?(:'keys') - if (value = attributes[:'keys']).is_a?(Array) - self.keys = value + if attributes.has_key?(:'details') + if (value = attributes[:'details']).is_a?(Hash) + self.details = value end end end @@ -120,12 +125,13 @@ def valid? def ==(o) return true if self.equal?(o) self.class == o.class && - submit_time_utc == o.submit_time_utc && - total_count == o.total_count && - offset == o.offset && - limit == o.limit && - sort == o.sort && - keys == o.keys + 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 @@ -137,7 +143,7 @@ def eql?(o) # Calculates hash code according to all attributes. # @return [Fixnum] Hash code def hash - [submit_time_utc, total_count, offset, limit, sort, keys].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_1_integration_information.rb b/lib/cybersource_rest_client/models/inline_response_200_1_integration_information.rb new file mode 100644 index 00000000..4fe30f14 --- /dev/null +++ b/lib/cybersource_rest_client/models/inline_response_200_1_integration_information.rb @@ -0,0 +1,204 @@ +=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 InlineResponse2001IntegrationInformation + attr_accessor :oauth2 + + # tenantConfigurations is an array of objects that includes the tenant information this merchant is associated with. + attr_accessor :tenant_configurations + + # Attribute mapping from ruby-style variable name to JSON key. + def self.attribute_map + { + :'oauth2' => :'oauth2', + :'tenant_configurations' => :'tenantConfigurations' + } + end + + # Attribute mapping from JSON key to ruby-style variable name. + def self.json_map + { + :'oauth2' => :'oauth2', + :'tenant_configurations' => :'tenant_configurations' + } + end + + # Attribute type mapping. + def self.swagger_types + { + :'oauth2' => :'Array', + :'tenant_configurations' => :'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?(:'oauth2') + if (value = attributes[:'oauth2']).is_a?(Array) + self.oauth2 = value + end + end + + if attributes.has_key?(:'tenantConfigurations') + if (value = attributes[:'tenantConfigurations']).is_a?(Array) + self.tenant_configurations = 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 && + oauth2 == o.oauth2 && + tenant_configurations == o.tenant_configurations + 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 + [oauth2, tenant_configurations].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_1_integration_information_tenant_configurations.rb b/lib/cybersource_rest_client/models/inline_response_200_1_integration_information_tenant_configurations.rb new file mode 100644 index 00000000..a5fcaabf --- /dev/null +++ b/lib/cybersource_rest_client/models/inline_response_200_1_integration_information_tenant_configurations.rb @@ -0,0 +1,296 @@ +=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 InlineResponse2001IntegrationInformationTenantConfigurations + # 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 + + # The tenantConfigurationId is the unique identifier for this system resource. You will see various places where it must be referenced in the URI path, or when querying the hierarchy for ancestors or descendants. + attr_accessor :tenant_configuration_id + + attr_accessor :status + + # Time of request in UTC. + attr_accessor :submit_time_utc + + attr_accessor :tenant_information + + class EnumAttributeValidator + attr_reader :datatype + attr_reader :allowable_values + + def initialize(datatype, allowable_values) + @allowable_values = allowable_values.map do |value| + case datatype.to_s + when /Integer/i + value.to_i + when /Float/i + value.to_f + else + value + end + end + end + + def valid?(value) + !value || allowable_values.include?(value) + end + end + + # Attribute mapping from ruby-style variable name to JSON key. + def self.attribute_map + { + :'solution_id' => :'solutionId', + :'tenant_configuration_id' => :'tenantConfigurationId', + :'status' => :'status', + :'submit_time_utc' => :'submitTimeUtc', + :'tenant_information' => :'tenantInformation' + } + end + + # Attribute mapping from JSON key to ruby-style variable name. + def self.json_map + { + :'solution_id' => :'solution_id', + :'tenant_configuration_id' => :'tenant_configuration_id', + :'status' => :'status', + :'submit_time_utc' => :'submit_time_utc', + :'tenant_information' => :'tenant_information' + } + end + + # Attribute type mapping. + def self.swagger_types + { + :'solution_id' => :'String', + :'tenant_configuration_id' => :'String', + :'status' => :'String', + :'submit_time_utc' => :'DateTime', + :'tenant_information' => :'Boardingv1registrationsIntegrationInformationTenantInformation' + } + 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?(:'solutionId') + self.solution_id = attributes[:'solutionId'] + end + + if attributes.has_key?(:'tenantConfigurationId') + self.tenant_configuration_id = attributes[:'tenantConfigurationId'] + end + + if attributes.has_key?(:'status') + self.status = attributes[:'status'] + end + + if attributes.has_key?(:'submitTimeUtc') + self.submit_time_utc = attributes[:'submitTimeUtc'] + end + + if attributes.has_key?(:'tenantInformation') + self.tenant_information = attributes[:'tenantInformation'] + 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 !@solution_id.nil? && @solution_id !~ Regexp.new(/^[0-9a-zA-Z_]+$/) + #invalid_properties.push('invalid value for "solution_id", must conform to the pattern /^[0-9a-zA-Z_]+$/.') + #end + + #if !@tenant_configuration_id.nil? && @tenant_configuration_id !~ Regexp.new(/^[0-9a-zA-Z_]+$/) + #invalid_properties.push('invalid value for "tenant_configuration_id", must conform to the pattern /^[0-9a-zA-Z_]+$/.') + #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 !@solution_id.nil? && @solution_id !~ Regexp.new(/^[0-9a-zA-Z_]+$/) + #return false if !@tenant_configuration_id.nil? && @tenant_configuration_id !~ Regexp.new(/^[0-9a-zA-Z_]+$/) + status_validator = EnumAttributeValidator.new('String', ['LIVE', 'INACTIVE', 'TEST']) + return false unless status_validator.valid?(@status) + true + end + + # Custom attribute writer method with validation + # @param [Object] solution_id Value to be assigned + def solution_id=(solution_id) + #if !solution_id.nil? && solution_id !~ Regexp.new(/^[0-9a-zA-Z_]+$/) + #fail ArgumentError, 'invalid value for "solution_id", must conform to the pattern /^[0-9a-zA-Z_]+$/.' + #end + + @solution_id = solution_id + end + + # Custom attribute writer method with validation + # @param [Object] tenant_configuration_id Value to be assigned + def tenant_configuration_id=(tenant_configuration_id) + #if !tenant_configuration_id.nil? && tenant_configuration_id !~ Regexp.new(/^[0-9a-zA-Z_]+$/) + #fail ArgumentError, 'invalid value for "tenant_configuration_id", must conform to the pattern /^[0-9a-zA-Z_]+$/.' + #end + + @tenant_configuration_id = tenant_configuration_id + end + + # Custom attribute writer method checking allowed values (enum). + # @param [Object] status Object to be assigned + def status=(status) + validator = EnumAttributeValidator.new('String', ['LIVE', 'INACTIVE', 'TEST']) + unless validator.valid?(status) + fail ArgumentError, 'invalid value for "status", must be one of #{validator.allowable_values}.' + 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 && + solution_id == o.solution_id && + tenant_configuration_id == o.tenant_configuration_id && + status == o.status && + submit_time_utc == o.submit_time_utc && + tenant_information == o.tenant_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 + [solution_id, tenant_configuration_id, status, submit_time_utc, tenant_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_2.rb b/lib/cybersource_rest_client/models/inline_response_200_2.rb index cbebc7c0..05b3f684 100644 --- a/lib/cybersource_rest_client/models/inline_response_200_2.rb +++ b/lib/cybersource_rest_client/models/inline_response_200_2.rb @@ -13,56 +13,38 @@ module CyberSource class InlineResponse2002 - attr_accessor :registration_information + # Product ID. + attr_accessor :product_id - attr_accessor :integration_information + # Product Name. + attr_accessor :product_name - attr_accessor :organization_information - - attr_accessor :product_information - - attr_accessor :product_information_setups - - attr_accessor :document_information - - attr_accessor :details + attr_accessor :event_types # 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' + :'product_id' => :'productId', + :'product_name' => :'productName', + :'event_types' => :'eventTypes' } 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' + :'product_id' => :'product_id', + :'product_name' => :'product_name', + :'event_types' => :'event_types' } end # Attribute type mapping. def self.swagger_types { - :'registration_information' => :'Boardingv1registrationsRegistrationInformation', - :'integration_information' => :'InlineResponse2002IntegrationInformation', - :'organization_information' => :'Boardingv1registrationsOrganizationInformation', - :'product_information' => :'Boardingv1registrationsProductInformation', - :'product_information_setups' => :'Array', - :'document_information' => :'Boardingv1registrationsDocumentInformation', - :'details' => :'Hash>' + :'product_id' => :'String', + :'product_name' => :'String', + :'event_types' => :'Array' } end @@ -74,35 +56,17 @@ 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'] - 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 + if attributes.has_key?(:'productId') + self.product_id = attributes[:'productId'] end - if attributes.has_key?(:'documentInformation') - self.document_information = attributes[:'documentInformation'] + if attributes.has_key?(:'productName') + self.product_name = attributes[:'productName'] end - if attributes.has_key?(:'details') - if (value = attributes[:'details']).is_a?(Hash) - self.details = value + if attributes.has_key?(:'eventTypes') + if (value = attributes[:'eventTypes']).is_a?(Array) + self.event_types = value end end end @@ -125,13 +89,9 @@ 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 + product_id == o.product_id && + product_name == o.product_name && + event_types == o.event_types end # @see the `==` method @@ -143,7 +103,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 + [product_id, product_name, event_types].hash end # Builds the object from hash 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 96151c37..4e0519d6 100644 --- a/lib/cybersource_rest_client/models/inline_response_200_3.rb +++ b/lib/cybersource_rest_client/models/inline_response_200_3.rb @@ -13,38 +13,101 @@ module CyberSource class InlineResponse2003 - # Product ID. - attr_accessor :product_id + # Webhook Id. This is generated by the server. + attr_accessor :webhook_id - # Product Name. - attr_accessor :product_name + # Organization ID. + attr_accessor :organization_id - attr_accessor :event_types + attr_accessor :products + + # The client's endpoint (URL) to receive webhooks. + attr_accessor :webhook_url + + # The client's health check endpoint (URL). This should be as close as possible to the actual webhookUrl. + attr_accessor :health_check_url + + attr_accessor :notification_scope + + # 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 + + # Additional, free form configuration data. + attr_accessor :additional_attributes # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { - :'product_id' => :'productId', - :'product_name' => :'productName', - :'event_types' => :'eventTypes' + :'webhook_id' => :'webhookId', + :'organization_id' => :'organizationId', + :'products' => :'products', + :'webhook_url' => :'webhookUrl', + :'health_check_url' => :'healthCheckUrl', + :'notification_scope' => :'notificationScope', + :'status' => :'status', + :'name' => :'name', + :'description' => :'description', + :'retry_policy' => :'retryPolicy', + :'security_policy' => :'securityPolicy', + :'created_on' => :'createdOn', + :'updated_on' => :'updatedOn', + :'additional_attributes' => :'additionalAttributes' } 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' + :'webhook_id' => :'webhook_id', + :'organization_id' => :'organization_id', + :'products' => :'products', + :'webhook_url' => :'webhook_url', + :'health_check_url' => :'health_check_url', + :'notification_scope' => :'notification_scope', + :'status' => :'status', + :'name' => :'name', + :'description' => :'description', + :'retry_policy' => :'retry_policy', + :'security_policy' => :'security_policy', + :'created_on' => :'created_on', + :'updated_on' => :'updated_on', + :'additional_attributes' => :'additional_attributes' } end # Attribute type mapping. def self.swagger_types { - :'product_id' => :'String', - :'product_name' => :'String', - :'event_types' => :'Array' + :'webhook_id' => :'String', + :'organization_id' => :'String', + :'products' => :'Array', + :'webhook_url' => :'String', + :'health_check_url' => :'String', + :'notification_scope' => :'Notificationsubscriptionsv1webhooksNotificationScope', + :'status' => :'String', + :'name' => :'String', + :'description' => :'String', + :'retry_policy' => :'Notificationsubscriptionsv1webhooksRetryPolicy', + :'security_policy' => :'Notificationsubscriptionsv1webhooksSecurityPolicy', + :'created_on' => :'String', + :'updated_on' => :'String', + :'additional_attributes' => :'Array>' } end @@ -56,17 +119,65 @@ 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?(:'webhookId') + self.webhook_id = attributes[:'webhookId'] + end + + if attributes.has_key?(:'organizationId') + self.organization_id = attributes[:'organizationId'] + end + + if attributes.has_key?(:'products') + if (value = attributes[:'products']).is_a?(Array) + self.products = 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?(:'notificationScope') + self.notification_scope = attributes[:'notificationScope'] + 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?(:'productName') - self.product_name = attributes[:'productName'] + if attributes.has_key?(:'updatedOn') + self.updated_on = attributes[:'updatedOn'] end - if attributes.has_key?(:'eventTypes') - if (value = attributes[:'eventTypes']).is_a?(Array) - self.event_types = value + if attributes.has_key?(:'additionalAttributes') + if (value = attributes[:'additionalAttributes']).is_a?(Array) + self.additional_attributes = value end end end @@ -89,9 +200,20 @@ 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 + 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 && + notification_scope == o.notification_scope && + 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 && + additional_attributes == o.additional_attributes end # @see the `==` method @@ -103,7 +225,7 @@ def eql?(o) # Calculates hash code according to all attributes. # @return [Fixnum] Hash code def hash - [product_id, product_name, event_types].hash + [webhook_id, organization_id, products, webhook_url, health_check_url, notification_scope, status, name, description, retry_policy, security_policy, created_on, updated_on, additional_attributes].hash end # Builds the object from hash 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 7edc5fba..f0274495 100644 --- a/lib/cybersource_rest_client/models/inline_response_200_5.rb +++ b/lib/cybersource_rest_client/models/inline_response_200_5.rb @@ -13,101 +13,56 @@ module CyberSource class InlineResponse2005 - # Webhook Id. This is generated by the server. - attr_accessor :webhook_id + attr_accessor :_links - # Organization ID. - attr_accessor :organization_id + attr_accessor :object - attr_accessor :products + attr_accessor :offset - # The client's endpoint (URL) to receive webhooks. - attr_accessor :webhook_url + attr_accessor :limit - # The client's health check endpoint (URL). This should be as close as possible to the actual webhookUrl. - attr_accessor :health_check_url + attr_accessor :count - attr_accessor :notification_scope + attr_accessor :total - # 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 - - # Additional, free form configuration data. - attr_accessor :additional_attributes + attr_accessor :_embedded # 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', - :'notification_scope' => :'notificationScope', - :'status' => :'status', - :'name' => :'name', - :'description' => :'description', - :'retry_policy' => :'retryPolicy', - :'security_policy' => :'securityPolicy', - :'created_on' => :'createdOn', - :'updated_on' => :'updatedOn', - :'additional_attributes' => :'additionalAttributes' + :'_links' => :'_links', + :'object' => :'object', + :'offset' => :'offset', + :'limit' => :'limit', + :'count' => :'count', + :'total' => :'total', + :'_embedded' => :'_embedded' } 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', - :'notification_scope' => :'notification_scope', - :'status' => :'status', - :'name' => :'name', - :'description' => :'description', - :'retry_policy' => :'retry_policy', - :'security_policy' => :'security_policy', - :'created_on' => :'created_on', - :'updated_on' => :'updated_on', - :'additional_attributes' => :'additional_attributes' + :'_links' => :'_links', + :'object' => :'object', + :'offset' => :'offset', + :'limit' => :'limit', + :'count' => :'count', + :'total' => :'total', + :'_embedded' => :'_embedded' } end # Attribute type mapping. def self.swagger_types { - :'webhook_id' => :'String', - :'organization_id' => :'String', - :'products' => :'Array', - :'webhook_url' => :'String', - :'health_check_url' => :'String', - :'notification_scope' => :'Notificationsubscriptionsv1webhooksNotificationScope', - :'status' => :'String', - :'name' => :'String', - :'description' => :'String', - :'retry_policy' => :'Notificationsubscriptionsv1webhooksRetryPolicy', - :'security_policy' => :'Notificationsubscriptionsv1webhooksSecurityPolicy', - :'created_on' => :'String', - :'updated_on' => :'String', - :'additional_attributes' => :'Array>' + :'_links' => :'Array', + :'object' => :'String', + :'offset' => :'Integer', + :'limit' => :'Integer', + :'count' => :'Integer', + :'total' => :'Integer', + :'_embedded' => :'InlineResponse2005Embedded' } end @@ -119,66 +74,34 @@ 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'] - end - - if attributes.has_key?(:'organizationId') - self.organization_id = attributes[:'organizationId'] - end - - if attributes.has_key?(:'products') - if (value = attributes[:'products']).is_a?(Array) - self.products = value + if attributes.has_key?(:'_links') + if (value = attributes[:'_links']).is_a?(Array) + self._links = value end end - if attributes.has_key?(:'webhookUrl') - self.webhook_url = attributes[:'webhookUrl'] + if attributes.has_key?(:'object') + self.object = attributes[:'object'] end - if attributes.has_key?(:'healthCheckUrl') - self.health_check_url = attributes[:'healthCheckUrl'] + if attributes.has_key?(:'offset') + self.offset = attributes[:'offset'] end - if attributes.has_key?(:'notificationScope') - self.notification_scope = attributes[:'notificationScope'] + if attributes.has_key?(:'limit') + self.limit = attributes[:'limit'] end - if attributes.has_key?(:'status') - self.status = attributes[:'status'] - else - self.status = 'INACTIVE' + if attributes.has_key?(:'count') + self.count = attributes[:'count'] end - if attributes.has_key?(:'name') - self.name = attributes[:'name'] + if attributes.has_key?(:'total') + self.total = attributes[:'total'] 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?(:'additionalAttributes') - if (value = attributes[:'additionalAttributes']).is_a?(Array) - self.additional_attributes = value - end + if attributes.has_key?(:'_embedded') + self._embedded = attributes[:'_embedded'] end end @@ -200,20 +123,13 @@ 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 && - notification_scope == o.notification_scope && - 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 && - additional_attributes == o.additional_attributes + _links == o._links && + object == o.object && + offset == o.offset && + limit == o.limit && + count == o.count && + total == o.total && + _embedded == o._embedded end # @see the `==` method @@ -225,7 +141,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, notification_scope, status, name, description, retry_policy, security_policy, created_on, updated_on, additional_attributes].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_5__embedded.rb b/lib/cybersource_rest_client/models/inline_response_200_5__embedded.rb new file mode 100644 index 00000000..f650b317 --- /dev/null +++ b/lib/cybersource_rest_client/models/inline_response_200_5__embedded.rb @@ -0,0 +1,191 @@ +=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 InlineResponse2005Embedded + attr_accessor :batches + + # Attribute mapping from ruby-style variable name to JSON key. + def self.attribute_map + { + :'batches' => :'batches' + } + end + + # Attribute mapping from JSON key to ruby-style variable name. + def self.json_map + { + :'batches' => :'batches' + } + end + + # Attribute type mapping. + def self.swagger_types + { + :'batches' => :'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?(:'batches') + if (value = attributes[:'batches']).is_a?(Array) + self.batches = 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 && + batches == o.batches + 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 + [batches].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_5__embedded__links.rb b/lib/cybersource_rest_client/models/inline_response_200_5__embedded__links.rb new file mode 100644 index 00000000..e12ac585 --- /dev/null +++ b/lib/cybersource_rest_client/models/inline_response_200_5__embedded__links.rb @@ -0,0 +1,191 @@ +=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 InlineResponse2005EmbeddedLinks + attr_accessor :reports + + # Attribute mapping from ruby-style variable name to JSON key. + def self.attribute_map + { + :'reports' => :'reports' + } + end + + # Attribute mapping from JSON key to ruby-style variable name. + def self.json_map + { + :'reports' => :'reports' + } + end + + # Attribute type mapping. + def self.swagger_types + { + :'reports' => :'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?(:'reports') + if (value = attributes[:'reports']).is_a?(Array) + self.reports = 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 && + reports == o.reports + 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 + [reports].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_5__embedded__links_reports.rb b/lib/cybersource_rest_client/models/inline_response_200_5__embedded__links_reports.rb new file mode 100644 index 00000000..6f0b37ee --- /dev/null +++ b/lib/cybersource_rest_client/models/inline_response_200_5__embedded__links_reports.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 + # Retrieve the generated report of a batch when available. + class InlineResponse2005EmbeddedLinksReports + attr_accessor :href + + # Attribute mapping from ruby-style variable name to JSON key. + def self.attribute_map + { + :'href' => :'href' + } + end + + # Attribute mapping from JSON key to ruby-style variable name. + def self.json_map + { + :'href' => :'href' + } + end + + # Attribute type mapping. + def self.swagger_types + { + :'href' => :'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?(:'href') + self.href = attributes[:'href'] + 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 && + href == o.href + 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 + [href].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_5__embedded_batches.rb b/lib/cybersource_rest_client/models/inline_response_200_5__embedded_batches.rb new file mode 100644 index 00000000..abd58e7c --- /dev/null +++ b/lib/cybersource_rest_client/models/inline_response_200_5__embedded_batches.rb @@ -0,0 +1,295 @@ +=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 InlineResponse2005EmbeddedBatches + attr_accessor :_links + + # Unique identification number assigned to the submitted request. + attr_accessor :batch_id + + # ISO-8601 format: yyyy-MM-ddTHH:mm:ssZ + attr_accessor :batch_created_date + + # ISO-8601 format: yyyy-MM-ddTHH:mm:ssZ + attr_accessor :batch_modified_date + + # Valid Values: * SCHEDULER * TOKEN_API * CREDIT_CARD_FILE_UPLOAD * AMEX_REGSITRY * AMEX_REGISTRY_API * AMEX_REGISTRY_API_SYNC * AMEX_MAINTENANCE + attr_accessor :batch_source + + # Valid Values: * SECURE_STORAGE * TMS * CYBERSOURCE + attr_accessor :token_source + + # Reference used by merchant to identify batch. + attr_accessor :merchant_reference + + # Valid Values: * VISA * MASTERCARD * AMEX + attr_accessor :batch_ca_endpoints + + # Valid Values: * REJECTED * RECEIVED * VALIDATED * DECLINED * PROCESSING * COMPLETE + attr_accessor :status + + attr_accessor :totals + + # Attribute mapping from ruby-style variable name to JSON key. + def self.attribute_map + { + :'_links' => :'_links', + :'batch_id' => :'batchId', + :'batch_created_date' => :'batchCreatedDate', + :'batch_modified_date' => :'batchModifiedDate', + :'batch_source' => :'batchSource', + :'token_source' => :'tokenSource', + :'merchant_reference' => :'merchantReference', + :'batch_ca_endpoints' => :'batchCaEndpoints', + :'status' => :'status', + :'totals' => :'totals' + } + end + + # Attribute mapping from JSON key to ruby-style variable name. + def self.json_map + { + :'_links' => :'_links', + :'batch_id' => :'batch_id', + :'batch_created_date' => :'batch_created_date', + :'batch_modified_date' => :'batch_modified_date', + :'batch_source' => :'batch_source', + :'token_source' => :'token_source', + :'merchant_reference' => :'merchant_reference', + :'batch_ca_endpoints' => :'batch_ca_endpoints', + :'status' => :'status', + :'totals' => :'totals' + } + end + + # Attribute type mapping. + def self.swagger_types + { + :'_links' => :'InlineResponse2005EmbeddedLinks', + :'batch_id' => :'String', + :'batch_created_date' => :'String', + :'batch_modified_date' => :'String', + :'batch_source' => :'String', + :'token_source' => :'String', + :'merchant_reference' => :'String', + :'batch_ca_endpoints' => :'Array', + :'status' => :'String', + :'totals' => :'InlineResponse2005EmbeddedTotals' + } + 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?(:'batchId') + self.batch_id = attributes[:'batchId'] + end + + if attributes.has_key?(:'batchCreatedDate') + self.batch_created_date = attributes[:'batchCreatedDate'] + end + + if attributes.has_key?(:'batchModifiedDate') + self.batch_modified_date = attributes[:'batchModifiedDate'] + end + + if attributes.has_key?(:'batchSource') + self.batch_source = attributes[:'batchSource'] + end + + if attributes.has_key?(:'tokenSource') + self.token_source = attributes[:'tokenSource'] + end + + if attributes.has_key?(:'merchantReference') + self.merchant_reference = attributes[:'merchantReference'] + end + + if attributes.has_key?(:'batchCaEndpoints') + if (value = attributes[:'batchCaEndpoints']).is_a?(Array) + self.batch_ca_endpoints = value + end + end + + if attributes.has_key?(:'status') + self.status = attributes[:'status'] + end + + if attributes.has_key?(:'totals') + self.totals = attributes[:'totals'] + 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] 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_modified_date == o.batch_modified_date && + batch_source == o.batch_source && + token_source == o.token_source && + merchant_reference == o.merchant_reference && + batch_ca_endpoints == o.batch_ca_endpoints && + status == o.status && + totals == o.totals + 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, batch_id, batch_created_date, batch_modified_date, batch_source, token_source, merchant_reference, batch_ca_endpoints, status, totals].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_5__embedded_totals.rb b/lib/cybersource_rest_client/models/inline_response_200_5__embedded_totals.rb new file mode 100644 index 00000000..43287d55 --- /dev/null +++ b/lib/cybersource_rest_client/models/inline_response_200_5__embedded_totals.rb @@ -0,0 +1,229 @@ +=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 InlineResponse2005EmbeddedTotals + attr_accessor :accepted_records + + attr_accessor :rejected_records + + attr_accessor :updated_records + + attr_accessor :ca_responses + + attr_accessor :ca_responses_omitted + + # Attribute mapping from ruby-style variable name to JSON key. + def self.attribute_map + { + :'accepted_records' => :'acceptedRecords', + :'rejected_records' => :'rejectedRecords', + :'updated_records' => :'updatedRecords', + :'ca_responses' => :'caResponses', + :'ca_responses_omitted' => :'caResponsesOmitted' + } + end + + # Attribute mapping from JSON key to ruby-style variable name. + def self.json_map + { + :'accepted_records' => :'accepted_records', + :'rejected_records' => :'rejected_records', + :'updated_records' => :'updated_records', + :'ca_responses' => :'ca_responses', + :'ca_responses_omitted' => :'ca_responses_omitted' + } + end + + # Attribute type mapping. + def self.swagger_types + { + :'accepted_records' => :'Integer', + :'rejected_records' => :'Integer', + :'updated_records' => :'Integer', + :'ca_responses' => :'Integer', + :'ca_responses_omitted' => :'Integer' + } + 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?(:'acceptedRecords') + self.accepted_records = attributes[:'acceptedRecords'] + end + + if attributes.has_key?(:'rejectedRecords') + self.rejected_records = attributes[:'rejectedRecords'] + end + + if attributes.has_key?(:'updatedRecords') + self.updated_records = attributes[:'updatedRecords'] + end + + if attributes.has_key?(:'caResponses') + self.ca_responses = attributes[:'caResponses'] + end + + if attributes.has_key?(:'caResponsesOmitted') + self.ca_responses_omitted = attributes[:'caResponsesOmitted'] + 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 && + accepted_records == o.accepted_records && + rejected_records == o.rejected_records && + updated_records == o.updated_records && + ca_responses == o.ca_responses && + ca_responses_omitted == o.ca_responses_omitted + 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 + [accepted_records, rejected_records, updated_records, ca_responses, ca_responses_omitted].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_5__links.rb b/lib/cybersource_rest_client/models/inline_response_200_5__links.rb new file mode 100644 index 00000000..28c4e3f5 --- /dev/null +++ b/lib/cybersource_rest_client/models/inline_response_200_5__links.rb @@ -0,0 +1,200 @@ +=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 InlineResponse2005Links + # Valid Values: * self * first * last * prev * next + attr_accessor :rel + + attr_accessor :href + + # Attribute mapping from ruby-style variable name to JSON key. + def self.attribute_map + { + :'rel' => :'rel', + :'href' => :'href' + } + end + + # Attribute mapping from JSON key to ruby-style variable name. + def self.json_map + { + :'rel' => :'rel', + :'href' => :'href' + } + end + + # Attribute type mapping. + def self.swagger_types + { + :'rel' => :'String', + :'href' => :'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?(:'rel') + self.rel = attributes[:'rel'] + end + + if attributes.has_key?(:'href') + self.href = attributes[:'href'] + 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 && + rel == o.rel && + href == o.href + 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 + [rel, href].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_6.rb b/lib/cybersource_rest_client/models/inline_response_200_6.rb index b0cf37aa..57a7e6d5 100644 --- a/lib/cybersource_rest_client/models/inline_response_200_6.rb +++ b/lib/cybersource_rest_client/models/inline_response_200_6.rb @@ -15,28 +15,42 @@ module CyberSource class InlineResponse2006 attr_accessor :_links - attr_accessor :object + # Unique identification number assigned to the submitted request. + attr_accessor :batch_id - attr_accessor :offset + # ISO-8601 format: yyyy-MM-ddTHH:mm:ssZ + attr_accessor :batch_created_date - attr_accessor :limit + # Valid Values: * SCHEDULER * TOKEN_API * CREDIT_CARD_FILE_UPLOAD * AMEX_REGSITRY * AMEX_REGISTRY_API * AMEX_MAINTENANCE + attr_accessor :batch_source - attr_accessor :count + # Reference used by merchant to identify batch. + attr_accessor :merchant_reference - attr_accessor :total + attr_accessor :batch_ca_endpoints - attr_accessor :_embedded + # Valid Values: * REJECTED * RECEIVED * VALIDATED * DECLINED * PROCESSING * COMPLETED + attr_accessor :status + + attr_accessor :totals + + attr_accessor :billing + + attr_accessor :description # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { :'_links' => :'_links', - :'object' => :'object', - :'offset' => :'offset', - :'limit' => :'limit', - :'count' => :'count', - :'total' => :'total', - :'_embedded' => :'_embedded' + :'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' } end @@ -44,25 +58,31 @@ def self.attribute_map def self.json_map { :'_links' => :'_links', - :'object' => :'object', - :'offset' => :'offset', - :'limit' => :'limit', - :'count' => :'count', - :'total' => :'total', - :'_embedded' => :'_embedded' + :'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' } end # Attribute type mapping. def self.swagger_types { - :'_links' => :'Array', - :'object' => :'String', - :'offset' => :'Integer', - :'limit' => :'Integer', - :'count' => :'Integer', - :'total' => :'Integer', - :'_embedded' => :'InlineResponse2006Embedded' + :'_links' => :'InlineResponse2006Links', + :'batch_id' => :'String', + :'batch_created_date' => :'String', + :'batch_source' => :'String', + :'merchant_reference' => :'String', + :'batch_ca_endpoints' => :'String', + :'status' => :'String', + :'totals' => :'InlineResponse2005EmbeddedTotals', + :'billing' => :'InlineResponse2006Billing', + :'description' => :'String' } end @@ -75,33 +95,43 @@ def initialize(attributes = {}) 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 + self._links = attributes[:'_links'] + end + + if attributes.has_key?(:'batchId') + self.batch_id = attributes[:'batchId'] end - if attributes.has_key?(:'object') - self.object = attributes[:'object'] + if attributes.has_key?(:'batchCreatedDate') + self.batch_created_date = attributes[:'batchCreatedDate'] end - if attributes.has_key?(:'offset') - self.offset = attributes[:'offset'] + if attributes.has_key?(:'batchSource') + self.batch_source = attributes[:'batchSource'] end - if attributes.has_key?(:'limit') - self.limit = attributes[:'limit'] + if attributes.has_key?(:'merchantReference') + self.merchant_reference = attributes[:'merchantReference'] end - if attributes.has_key?(:'count') - self.count = attributes[:'count'] + if attributes.has_key?(:'batchCaEndpoints') + self.batch_ca_endpoints = attributes[:'batchCaEndpoints'] end - if attributes.has_key?(:'total') - self.total = attributes[:'total'] + if attributes.has_key?(:'status') + self.status = attributes[:'status'] end - if attributes.has_key?(:'_embedded') - self._embedded = attributes[:'_embedded'] + if attributes.has_key?(:'totals') + self.totals = attributes[:'totals'] + end + + if attributes.has_key?(:'billing') + self.billing = attributes[:'billing'] + end + + if attributes.has_key?(:'description') + self.description = attributes[:'description'] end end @@ -118,18 +148,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 && _links == o._links && - object == o.object && - offset == o.offset && - limit == o.limit && - count == o.count && - total == o.total && - _embedded == o._embedded + 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 end # @see the `==` method @@ -141,7 +180,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 + [_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_6__links.rb b/lib/cybersource_rest_client/models/inline_response_200_6__links.rb index e57cdb2e..12c6131b 100644 --- a/lib/cybersource_rest_client/models/inline_response_200_6__links.rb +++ b/lib/cybersource_rest_client/models/inline_response_200_6__links.rb @@ -13,32 +13,31 @@ module CyberSource class InlineResponse2006Links - # Valid Values: * self * first * last * prev * next - attr_accessor :rel + attr_accessor :_self - attr_accessor :href + attr_accessor :report # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { - :'rel' => :'rel', - :'href' => :'href' + :'_self' => :'self', + :'report' => :'report' } end # Attribute mapping from JSON key to ruby-style variable name. def self.json_map { - :'rel' => :'rel', - :'href' => :'href' + :'_self' => :'_self', + :'report' => :'report' } end # Attribute type mapping. def self.swagger_types { - :'rel' => :'String', - :'href' => :'String' + :'_self' => :'InlineResponse202LinksStatus', + :'report' => :'Array' } end @@ -50,12 +49,14 @@ 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?(:'self') + self._self = attributes[:'self'] end - if attributes.has_key?(:'href') - self.href = attributes[:'href'] + if attributes.has_key?(:'report') + if (value = attributes[:'report']).is_a?(Array) + self.report = value + end 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 + _self == o._self && + report == o.report 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 + [_self, report].hash end # Builds the object from hash diff --git a/lib/cybersource_rest_client/models/inline_response_200_6__links_report.rb b/lib/cybersource_rest_client/models/inline_response_200_6__links_report.rb new file mode 100644 index 00000000..12f89347 --- /dev/null +++ b/lib/cybersource_rest_client/models/inline_response_200_6__links_report.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 InlineResponse2006LinksReport + attr_accessor :href + + # Attribute mapping from ruby-style variable name to JSON key. + def self.attribute_map + { + :'href' => :'href' + } + end + + # Attribute mapping from JSON key to ruby-style variable name. + def self.json_map + { + :'href' => :'href' + } + end + + # Attribute type mapping. + def self.swagger_types + { + :'href' => :'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?(:'href') + self.href = attributes[:'href'] + 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 && + href == o.href + 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 + [href].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_6_billing.rb b/lib/cybersource_rest_client/models/inline_response_200_6_billing.rb new file mode 100644 index 00000000..6e5345d1 --- /dev/null +++ b/lib/cybersource_rest_client/models/inline_response_200_6_billing.rb @@ -0,0 +1,219 @@ +=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 InlineResponse2006Billing + attr_accessor :nan + + attr_accessor :ned + + attr_accessor :acl + + attr_accessor :cch + + # Attribute mapping from ruby-style variable name to JSON key. + def self.attribute_map + { + :'nan' => :'nan', + :'ned' => :'ned', + :'acl' => :'acl', + :'cch' => :'cch' + } + end + + # Attribute mapping from JSON key to ruby-style variable name. + def self.json_map + { + :'nan' => :'nan', + :'ned' => :'ned', + :'acl' => :'acl', + :'cch' => :'cch' + } + end + + # Attribute type mapping. + def self.swagger_types + { + :'nan' => :'Integer', + :'ned' => :'Integer', + :'acl' => :'Integer', + :'cch' => :'Integer' + } + 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?(:'nan') + self.nan = attributes[:'nan'] + end + + if attributes.has_key?(:'ned') + self.ned = attributes[:'ned'] + end + + if attributes.has_key?(:'acl') + self.acl = attributes[:'acl'] + end + + if attributes.has_key?(:'cch') + self.cch = attributes[:'cch'] + 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 && + nan == o.nan && + ned == o.ned && + acl == o.acl && + cch == o.cch + 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 + [nan, ned, acl, cch].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_7.rb b/lib/cybersource_rest_client/models/inline_response_200_7.rb index 0df51871..b2541509 100644 --- a/lib/cybersource_rest_client/models/inline_response_200_7.rb +++ b/lib/cybersource_rest_client/models/inline_response_200_7.rb @@ -13,76 +13,76 @@ module CyberSource class InlineResponse2007 - attr_accessor :_links + attr_accessor :version + + # ISO-8601 format: yyyy-MM-ddTHH:mm:ssZ + attr_accessor :report_created_date # Unique identification number assigned to the submitted request. attr_accessor :batch_id - # 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 + # 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 :description + attr_accessor :records # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { - :'_links' => :'_links', + :'version' => :'version', + :'report_created_date' => :'reportCreatedDate', :'batch_id' => :'batchId', - :'batch_created_date' => :'batchCreatedDate', :'batch_source' => :'batchSource', - :'merchant_reference' => :'merchantReference', :'batch_ca_endpoints' => :'batchCaEndpoints', - :'status' => :'status', + :'batch_created_date' => :'batchCreatedDate', + :'merchant_reference' => :'merchantReference', :'totals' => :'totals', :'billing' => :'billing', - :'description' => :'description' + :'records' => :'records' } end # Attribute mapping from JSON key to ruby-style variable name. def self.json_map { - :'_links' => :'_links', + :'version' => :'version', + :'report_created_date' => :'report_created_date', :'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', + :'batch_created_date' => :'batch_created_date', + :'merchant_reference' => :'merchant_reference', :'totals' => :'totals', :'billing' => :'billing', - :'description' => :'description' + :'records' => :'records' } end # Attribute type mapping. def self.swagger_types { - :'_links' => :'InlineResponse2007Links', + :'version' => :'String', + :'report_created_date' => :'String', :'batch_id' => :'String', - :'batch_created_date' => :'String', :'batch_source' => :'String', - :'merchant_reference' => :'String', :'batch_ca_endpoints' => :'String', - :'status' => :'String', - :'totals' => :'InlineResponse2006EmbeddedTotals', - :'billing' => :'InlineResponse2007Billing', - :'description' => :'String' + :'batch_created_date' => :'String', + :'merchant_reference' => :'String', + :'totals' => :'InlineResponse2005EmbeddedTotals', + :'billing' => :'InlineResponse2006Billing', + :'records' => :'Array' } 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?(:'_links') - self._links = attributes[:'_links'] + if attributes.has_key?(:'version') + self.version = attributes[:'version'] end - if attributes.has_key?(:'batchId') - self.batch_id = attributes[:'batchId'] + if attributes.has_key?(:'reportCreatedDate') + self.report_created_date = attributes[:'reportCreatedDate'] end - if attributes.has_key?(:'batchCreatedDate') - self.batch_created_date = attributes[:'batchCreatedDate'] + if attributes.has_key?(:'batchId') + self.batch_id = attributes[:'batchId'] end if attributes.has_key?(:'batchSource') self.batch_source = attributes[:'batchSource'] end - if attributes.has_key?(:'merchantReference') - self.merchant_reference = attributes[:'merchantReference'] - end - if attributes.has_key?(:'batchCaEndpoints') self.batch_ca_endpoints = attributes[:'batchCaEndpoints'] end - if attributes.has_key?(:'status') - self.status = attributes[:'status'] + 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') @@ -130,8 +130,10 @@ def initialize(attributes = {}) self.billing = attributes[:'billing'] end - if attributes.has_key?(:'description') - self.description = attributes[:'description'] + if attributes.has_key?(:'records') + if (value = attributes[:'records']).is_a?(Array) + self.records = value + end end end @@ -159,16 +161,16 @@ def merchant_reference=(merchant_reference) def ==(o) return true if self.equal?(o) self.class == o.class && - _links == o._links && + version == o.version && + report_created_date == o.report_created_date && 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 && + batch_created_date == o.batch_created_date && + merchant_reference == o.merchant_reference && totals == o.totals && billing == o.billing && - description == o.description + records == o.records end # @see the `==` method @@ -180,7 +182,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 + [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_7_records.rb b/lib/cybersource_rest_client/models/inline_response_200_7_records.rb new file mode 100644 index 00000000..141cf09a --- /dev/null +++ b/lib/cybersource_rest_client/models/inline_response_200_7_records.rb @@ -0,0 +1,209 @@ +=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 InlineResponse2007Records + attr_accessor :id + + attr_accessor :source_record + + attr_accessor :response_record + + # Attribute mapping from ruby-style variable name to JSON key. + def self.attribute_map + { + :'id' => :'id', + :'source_record' => :'sourceRecord', + :'response_record' => :'responseRecord' + } + end + + # Attribute mapping from JSON key to ruby-style variable name. + def self.json_map + { + :'id' => :'id', + :'source_record' => :'source_record', + :'response_record' => :'response_record' + } + end + + # Attribute type mapping. + def self.swagger_types + { + :'id' => :'String', + :'source_record' => :'InlineResponse2007SourceRecord', + :'response_record' => :'InlineResponse2007ResponseRecord' + } + 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?(:'id') + self.id = attributes[:'id'] + end + + if attributes.has_key?(:'sourceRecord') + self.source_record = attributes[:'sourceRecord'] + end + + if attributes.has_key?(:'responseRecord') + self.response_record = attributes[:'responseRecord'] + 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 && + id == o.id && + source_record == o.source_record && + response_record == o.response_record + 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 + [id, source_record, response_record].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_7_response_record.rb b/lib/cybersource_rest_client/models/inline_response_200_7_response_record.rb new file mode 100644 index 00000000..4f29d220 --- /dev/null +++ b/lib/cybersource_rest_client/models/inline_response_200_7_response_record.rb @@ -0,0 +1,307 @@ +=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 InlineResponse2007ResponseRecord + # Valid Values: * NAN * NED * ACL * CCH * CUR * NUP * UNA * ERR * DEC + attr_accessor :response + + attr_accessor :reason + + attr_accessor :token + + attr_accessor :instrument_identifier_id + + # Valid Values: * true * false + attr_accessor :instrument_identifier_created + + attr_accessor :card_number + + attr_accessor :card_expiry_month + + attr_accessor :card_expiry_year + + attr_accessor :card_type + + attr_accessor :additional_updates + + # Attribute mapping from ruby-style variable name to JSON key. + def self.attribute_map + { + :'response' => :'response', + :'reason' => :'reason', + :'token' => :'token', + :'instrument_identifier_id' => :'instrumentIdentifierId', + :'instrument_identifier_created' => :'instrumentIdentifierCreated', + :'card_number' => :'cardNumber', + :'card_expiry_month' => :'cardExpiryMonth', + :'card_expiry_year' => :'cardExpiryYear', + :'card_type' => :'cardType', + :'additional_updates' => :'additionalUpdates' + } + end + + # Attribute mapping from JSON key to ruby-style variable name. + def self.json_map + { + :'response' => :'response', + :'reason' => :'reason', + :'token' => :'token', + :'instrument_identifier_id' => :'instrument_identifier_id', + :'instrument_identifier_created' => :'instrument_identifier_created', + :'card_number' => :'card_number', + :'card_expiry_month' => :'card_expiry_month', + :'card_expiry_year' => :'card_expiry_year', + :'card_type' => :'card_type', + :'additional_updates' => :'additional_updates' + } + end + + # Attribute type mapping. + def self.swagger_types + { + :'response' => :'String', + :'reason' => :'String', + :'token' => :'String', + :'instrument_identifier_id' => :'String', + :'instrument_identifier_created' => :'String', + :'card_number' => :'String', + :'card_expiry_month' => :'String', + :'card_expiry_year' => :'String', + :'card_type' => :'String', + :'additional_updates' => :'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?(:'response') + self.response = attributes[:'response'] + end + + if attributes.has_key?(:'reason') + self.reason = attributes[:'reason'] + end + + if attributes.has_key?(:'token') + self.token = attributes[:'token'] + end + + if attributes.has_key?(:'instrumentIdentifierId') + self.instrument_identifier_id = attributes[:'instrumentIdentifierId'] + end + + if attributes.has_key?(:'instrumentIdentifierCreated') + self.instrument_identifier_created = attributes[:'instrumentIdentifierCreated'] + end + + if attributes.has_key?(:'cardNumber') + self.card_number = attributes[:'cardNumber'] + end + + if attributes.has_key?(:'cardExpiryMonth') + self.card_expiry_month = attributes[:'cardExpiryMonth'] + end + + if attributes.has_key?(:'cardExpiryYear') + self.card_expiry_year = attributes[:'cardExpiryYear'] + end + + if attributes.has_key?(:'cardType') + self.card_type = attributes[:'cardType'] + end + + if attributes.has_key?(:'additionalUpdates') + if (value = attributes[:'additionalUpdates']).is_a?(Array) + self.additional_updates = 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 + + # Custom attribute writer method with validation + # @param [Object] token Value to be assigned + def token=(token) + @token = token + end + + # Custom attribute writer method with validation + # @param [Object] instrument_identifier_id Value to be assigned + def instrument_identifier_id=(instrument_identifier_id) + @instrument_identifier_id = instrument_identifier_id + end + + # Custom attribute writer method with validation + # @param [Object] card_expiry_month Value to be assigned + def card_expiry_month=(card_expiry_month) + @card_expiry_month = card_expiry_month + end + + # Custom attribute writer method with validation + # @param [Object] card_expiry_year Value to be assigned + def card_expiry_year=(card_expiry_year) + @card_expiry_year = card_expiry_year + 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 && + response == o.response && + reason == o.reason && + token == o.token && + instrument_identifier_id == o.instrument_identifier_id && + instrument_identifier_created == o.instrument_identifier_created && + card_number == o.card_number && + card_expiry_month == o.card_expiry_month && + card_expiry_year == o.card_expiry_year && + card_type == o.card_type && + additional_updates == o.additional_updates + 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 + [response, reason, token, instrument_identifier_id, instrument_identifier_created, card_number, card_expiry_month, card_expiry_year, card_type, additional_updates].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_7_response_record_additional_updates.rb b/lib/cybersource_rest_client/models/inline_response_200_7_response_record_additional_updates.rb new file mode 100644 index 00000000..ae802f26 --- /dev/null +++ b/lib/cybersource_rest_client/models/inline_response_200_7_response_record_additional_updates.rb @@ -0,0 +1,242 @@ +=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 InlineResponse2007ResponseRecordAdditionalUpdates + attr_accessor :customer_id + + attr_accessor :payment_instrument_id + + attr_accessor :creator + + # Valid Values: * ACTIVE * CLOSED + attr_accessor :state + + attr_accessor :message + + # Attribute mapping from ruby-style variable name to JSON key. + def self.attribute_map + { + :'customer_id' => :'customerId', + :'payment_instrument_id' => :'paymentInstrumentId', + :'creator' => :'creator', + :'state' => :'state', + :'message' => :'message' + } + end + + # Attribute mapping from JSON key to ruby-style variable name. + def self.json_map + { + :'customer_id' => :'customer_id', + :'payment_instrument_id' => :'payment_instrument_id', + :'creator' => :'creator', + :'state' => :'state', + :'message' => :'message' + } + end + + # Attribute type mapping. + def self.swagger_types + { + :'customer_id' => :'String', + :'payment_instrument_id' => :'String', + :'creator' => :'String', + :'state' => :'String', + :'message' => :'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?(:'customerId') + self.customer_id = attributes[:'customerId'] + end + + if attributes.has_key?(:'paymentInstrumentId') + self.payment_instrument_id = attributes[:'paymentInstrumentId'] + end + + if attributes.has_key?(:'creator') + self.creator = attributes[:'creator'] + end + + if attributes.has_key?(:'state') + self.state = attributes[:'state'] + end + + if attributes.has_key?(:'message') + self.message = attributes[:'message'] + 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] customer_id Value to be assigned + def customer_id=(customer_id) + @customer_id = customer_id + end + + # Custom attribute writer method with validation + # @param [Object] payment_instrument_id Value to be assigned + def payment_instrument_id=(payment_instrument_id) + @payment_instrument_id = payment_instrument_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 && + customer_id == o.customer_id && + payment_instrument_id == o.payment_instrument_id && + creator == o.creator && + state == o.state && + message == o.message + 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 + [customer_id, payment_instrument_id, creator, state, message].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_7_source_record.rb b/lib/cybersource_rest_client/models/inline_response_200_7_source_record.rb new file mode 100644 index 00000000..fb4be0f9 --- /dev/null +++ b/lib/cybersource_rest_client/models/inline_response_200_7_source_record.rb @@ -0,0 +1,295 @@ +=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 InlineResponse2007SourceRecord + attr_accessor :token + + attr_accessor :customer_id + + attr_accessor :payment_instrument_id + + attr_accessor :instrument_identifier_id + + attr_accessor :card_number + + attr_accessor :card_expiry_month + + attr_accessor :card_expiry_year + + attr_accessor :card_type + + # Attribute mapping from ruby-style variable name to JSON key. + def self.attribute_map + { + :'token' => :'token', + :'customer_id' => :'customerId', + :'payment_instrument_id' => :'paymentInstrumentId', + :'instrument_identifier_id' => :'instrumentIdentifierId', + :'card_number' => :'cardNumber', + :'card_expiry_month' => :'cardExpiryMonth', + :'card_expiry_year' => :'cardExpiryYear', + :'card_type' => :'cardType' + } + end + + # Attribute mapping from JSON key to ruby-style variable name. + def self.json_map + { + :'token' => :'token', + :'customer_id' => :'customer_id', + :'payment_instrument_id' => :'payment_instrument_id', + :'instrument_identifier_id' => :'instrument_identifier_id', + :'card_number' => :'card_number', + :'card_expiry_month' => :'card_expiry_month', + :'card_expiry_year' => :'card_expiry_year', + :'card_type' => :'card_type' + } + end + + # Attribute type mapping. + def self.swagger_types + { + :'token' => :'String', + :'customer_id' => :'String', + :'payment_instrument_id' => :'String', + :'instrument_identifier_id' => :'String', + :'card_number' => :'String', + :'card_expiry_month' => :'String', + :'card_expiry_year' => :'String', + :'card_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?(:'token') + self.token = attributes[:'token'] + end + + if attributes.has_key?(:'customerId') + self.customer_id = attributes[:'customerId'] + end + + if attributes.has_key?(:'paymentInstrumentId') + self.payment_instrument_id = attributes[:'paymentInstrumentId'] + end + + if attributes.has_key?(:'instrumentIdentifierId') + self.instrument_identifier_id = attributes[:'instrumentIdentifierId'] + end + + if attributes.has_key?(:'cardNumber') + self.card_number = attributes[:'cardNumber'] + end + + if attributes.has_key?(:'cardExpiryMonth') + self.card_expiry_month = attributes[:'cardExpiryMonth'] + end + + if attributes.has_key?(:'cardExpiryYear') + self.card_expiry_year = attributes[:'cardExpiryYear'] + end + + if attributes.has_key?(:'cardType') + self.card_type = attributes[:'cardType'] + 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] token Value to be assigned + def token=(token) + @token = token + end + + # Custom attribute writer method with validation + # @param [Object] customer_id Value to be assigned + def customer_id=(customer_id) + @customer_id = customer_id + end + + # Custom attribute writer method with validation + # @param [Object] payment_instrument_id Value to be assigned + def payment_instrument_id=(payment_instrument_id) + @payment_instrument_id = payment_instrument_id + end + + # Custom attribute writer method with validation + # @param [Object] instrument_identifier_id Value to be assigned + def instrument_identifier_id=(instrument_identifier_id) + @instrument_identifier_id = instrument_identifier_id + end + + # Custom attribute writer method with validation + # @param [Object] card_expiry_month Value to be assigned + def card_expiry_month=(card_expiry_month) + @card_expiry_month = card_expiry_month + end + + # Custom attribute writer method with validation + # @param [Object] card_expiry_year Value to be assigned + def card_expiry_year=(card_expiry_year) + @card_expiry_year = card_expiry_year + 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 && + token == o.token && + customer_id == o.customer_id && + payment_instrument_id == o.payment_instrument_id && + instrument_identifier_id == o.instrument_identifier_id && + card_number == o.card_number && + card_expiry_month == o.card_expiry_month && + card_expiry_year == o.card_expiry_year && + card_type == o.card_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 + [token, customer_id, payment_instrument_id, instrument_identifier_id, card_number, card_expiry_month, card_expiry_year, card_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/inline_response_201_2_setups_payments.rb b/lib/cybersource_rest_client/models/inline_response_201_2_setups_payments.rb index f16bb991..633cf3b5 100644 --- a/lib/cybersource_rest_client/models/inline_response_201_2_setups_payments.rb +++ b/lib/cybersource_rest_client/models/inline_response_201_2_setups_payments.rb @@ -47,6 +47,8 @@ class InlineResponse2012SetupsPayments attr_accessor :receivables_manager + attr_accessor :service_fee + # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { @@ -66,7 +68,8 @@ def self.attribute_map :'payouts' => :'payouts', :'pay_by_link' => :'payByLink', :'unified_checkout' => :'unifiedCheckout', - :'receivables_manager' => :'receivablesManager' + :'receivables_manager' => :'receivablesManager', + :'service_fee' => :'serviceFee' } end @@ -89,7 +92,8 @@ def self.json_map :'payouts' => :'payouts', :'pay_by_link' => :'pay_by_link', :'unified_checkout' => :'unified_checkout', - :'receivables_manager' => :'receivables_manager' + :'receivables_manager' => :'receivables_manager', + :'service_fee' => :'service_fee' } end @@ -112,7 +116,8 @@ def self.swagger_types :'payouts' => :'InlineResponse2012SetupsPaymentsCardProcessing', :'pay_by_link' => :'InlineResponse2012SetupsPaymentsDigitalPayments', :'unified_checkout' => :'InlineResponse2012SetupsPaymentsDigitalPayments', - :'receivables_manager' => :'InlineResponse2012SetupsPaymentsDigitalPayments' + :'receivables_manager' => :'InlineResponse2012SetupsPaymentsDigitalPayments', + :'service_fee' => :'InlineResponse2012SetupsPaymentsCardProcessing' } end @@ -191,6 +196,10 @@ def initialize(attributes = {}) if attributes.has_key?(:'receivablesManager') self.receivables_manager = attributes[:'receivablesManager'] end + + if attributes.has_key?(:'serviceFee') + self.service_fee = attributes[:'serviceFee'] + end end # Show invalid properties with the reasons. Usually used together with valid? @@ -227,7 +236,8 @@ def ==(o) payouts == o.payouts && pay_by_link == o.pay_by_link && unified_checkout == o.unified_checkout && - receivables_manager == o.receivables_manager + receivables_manager == o.receivables_manager && + service_fee == o.service_fee end # @see the `==` method @@ -239,7 +249,7 @@ def eql?(o) # Calculates hash code according to all attributes. # @return [Fixnum] Hash code def hash - [card_processing, 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].hash + [card_processing, 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 end # Builds the object from hash diff --git a/lib/cybersource_rest_client/models/inline_response_400_5.rb b/lib/cybersource_rest_client/models/inline_response_400_5.rb index b6fe5103..df188d5f 100644 --- a/lib/cybersource_rest_client/models/inline_response_400_5.rb +++ b/lib/cybersource_rest_client/models/inline_response_400_5.rb @@ -13,20 +13,41 @@ module CyberSource class InlineResponse4005 - # 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. + # 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. attr_accessor :submit_time_utc - # The status of the submitted transaction. Possible values: - INVALID_REQUEST + # The http status description of the submitted request. attr_accessor :status - # The reason of the status. Possible values: - MISSING_FIELD + # Documented reason codes. Client should be able to use the key for generating their own error message Possible Values: - 'INVALID_DATA' - 'SYSTEM_ERROR' - 'RESOURCE_NOT_FOUND' attr_accessor :reason - # The detail message related to the status and reason listed above. + # Descriptive message for the error. attr_accessor :message - # HTTP status code of the submitted request. Possible values: - 500 - attr_accessor :status_code + attr_accessor :details + + class EnumAttributeValidator + attr_reader :datatype + attr_reader :allowable_values + + def initialize(datatype, allowable_values) + @allowable_values = allowable_values.map do |value| + case datatype.to_s + when /Integer/i + value.to_i + when /Float/i + value.to_f + else + value + end + end + end + + def valid?(value) + !value || allowable_values.include?(value) + end + end # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map @@ -35,7 +56,7 @@ def self.attribute_map :'status' => :'status', :'reason' => :'reason', :'message' => :'message', - :'status_code' => :'statusCode' + :'details' => :'details' } end @@ -46,18 +67,18 @@ def self.json_map :'status' => :'status', :'reason' => :'reason', :'message' => :'message', - :'status_code' => :'status_code' + :'details' => :'details' } end # Attribute type mapping. def self.swagger_types { - :'submit_time_utc' => :'String', + :'submit_time_utc' => :'Date', :'status' => :'String', :'reason' => :'String', :'message' => :'String', - :'status_code' => :'String' + :'details' => :'Array' } end @@ -85,8 +106,10 @@ def initialize(attributes = {}) self.message = attributes[:'message'] end - if attributes.has_key?(:'statusCode') - self.status_code = attributes[:'statusCode'] + if attributes.has_key?(:'details') + if (value = attributes[:'details']).is_a?(Array) + self.details = value + end end end @@ -100,9 +123,21 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid def valid? + reason_validator = EnumAttributeValidator.new('String', ['INVALID_DATA', 'SYSTEM_ERROR', 'RESOURCE_NOT_FOUND']) + return false unless reason_validator.valid?(@reason) true end + # Custom attribute writer method checking allowed values (enum). + # @param [Object] reason Object to be assigned + def reason=(reason) + validator = EnumAttributeValidator.new('String', ['INVALID_DATA', 'SYSTEM_ERROR', 'RESOURCE_NOT_FOUND']) + unless validator.valid?(reason) + fail ArgumentError, 'invalid value for "reason", must be one of #{validator.allowable_values}.' + end + @reason = reason + end + # Checks equality by comparing each attribute. # @param [Object] Object to be compared def ==(o) @@ -112,7 +147,7 @@ def ==(o) status == o.status && reason == o.reason && message == o.message && - status_code == o.status_code + details == o.details end # @see the `==` method @@ -124,7 +159,7 @@ def eql?(o) # Calculates hash code according to all attributes. # @return [Fixnum] Hash code def hash - [submit_time_utc, status, reason, message, status_code].hash + [submit_time_utc, status, reason, message, details].hash end # Builds the object from hash diff --git a/lib/cybersource_rest_client/models/inline_response_400_5_details.rb b/lib/cybersource_rest_client/models/inline_response_400_5_details.rb new file mode 100644 index 00000000..f57dafbe --- /dev/null +++ b/lib/cybersource_rest_client/models/inline_response_400_5_details.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 InlineResponse4005Details + # This is the flattened JSON object field name/path that is either missing or invalid. + attr_accessor :field + + # Possible reasons for the error. + attr_accessor :reason + + # Attribute mapping from ruby-style variable name to JSON key. + def self.attribute_map + { + :'field' => :'field', + :'reason' => :'reason' + } + end + + # Attribute mapping from JSON key to ruby-style variable name. + def self.json_map + { + :'field' => :'field', + :'reason' => :'reason' + } + end + + # Attribute type mapping. + def self.swagger_types + { + :'field' => :'String', + :'reason' => :'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?(:'field') + self.field = attributes[:'field'] + end + + if attributes.has_key?(:'reason') + self.reason = attributes[:'reason'] + 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 && + field == o.field && + reason == o.reason + 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 + [field, reason].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_400_6.rb b/lib/cybersource_rest_client/models/inline_response_400_6.rb index e7f13c33..1031560a 100644 --- a/lib/cybersource_rest_client/models/inline_response_400_6.rb +++ b/lib/cybersource_rest_client/models/inline_response_400_6.rb @@ -13,50 +13,68 @@ module CyberSource class InlineResponse4006 - # 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 :correlation_id - # The status of the submitted transaction. Possible values: - INVALID_REQUEST - attr_accessor :status + attr_accessor :details - # The reason of the status. Possible values: - MISSING_FIELD - INVALID_DATA - attr_accessor :reason + attr_accessor :information_link - # The detail message related to the status and reason listed above. attr_accessor :message - attr_accessor :details + attr_accessor :reason + + class EnumAttributeValidator + attr_reader :datatype + attr_reader :allowable_values + + def initialize(datatype, allowable_values) + @allowable_values = allowable_values.map do |value| + case datatype.to_s + when /Integer/i + value.to_i + when /Float/i + value.to_f + else + value + end + end + end + + def valid?(value) + !value || allowable_values.include?(value) + end + end # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { - :'submit_time_utc' => :'submitTimeUtc', - :'status' => :'status', - :'reason' => :'reason', + :'correlation_id' => :'correlationId', + :'details' => :'details', + :'information_link' => :'informationLink', :'message' => :'message', - :'details' => :'details' + :'reason' => :'reason' } end # Attribute mapping from JSON key to ruby-style variable name. def self.json_map { - :'submit_time_utc' => :'submit_time_utc', - :'status' => :'status', - :'reason' => :'reason', + :'correlation_id' => :'correlation_id', + :'details' => :'details', + :'information_link' => :'information_link', :'message' => :'message', - :'details' => :'details' + :'reason' => :'reason' } end # Attribute type mapping. def self.swagger_types { - :'submit_time_utc' => :'String', - :'status' => :'String', - :'reason' => :'String', + :'correlation_id' => :'String', + :'details' => :'Array', + :'information_link' => :'String', :'message' => :'String', - :'details' => :'Array' + :'reason' => :'String' } end @@ -68,26 +86,26 @@ 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?(:'submitTimeUtc') - self.submit_time_utc = attributes[:'submitTimeUtc'] + if attributes.has_key?(:'correlationId') + self.correlation_id = attributes[:'correlationId'] end - if attributes.has_key?(:'status') - self.status = attributes[:'status'] + if attributes.has_key?(:'details') + if (value = attributes[:'details']).is_a?(Array) + self.details = value + end end - if attributes.has_key?(:'reason') - self.reason = attributes[:'reason'] + if attributes.has_key?(:'informationLink') + self.information_link = attributes[:'informationLink'] 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 + if attributes.has_key?(:'reason') + self.reason = attributes[:'reason'] end end @@ -95,25 +113,47 @@ def initialize(attributes = {}) # @return Array for valid properties with the reasons def list_invalid_properties invalid_properties = Array.new + if @message.nil? + invalid_properties.push('invalid value for "message", message cannot be nil.') + end + + if @reason.nil? + invalid_properties.push('invalid value for "reason", reason 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 @message.nil? + return false if @reason.nil? + reason_validator = EnumAttributeValidator.new('String', ['INVALID_APIKEY', 'INVALID_SHIPPING_INPUT_PARAMS', 'CAPTURE_CONTEXT_INVALID', 'CAPTURE_CONTEXT_EXPIRED', 'SDK_XHR_ERROR', 'UNIFIEDPAYMENTS_VALIDATION_PARAMS', 'UNIFIEDPAYMENTS_VALIDATION_FIELDS', 'UNIFIEDPAYMENT_PAYMENT_PARAMITERS', 'CREATE_TOKEN_TIMEOUT', 'CREATE_TOKEN_XHR_ERROR', 'SHOW_LOAD_CONTAINER_SELECTOR', 'SHOW_LOAD_INVALID_CONTAINER', 'SHOW_TOKEN_TIMEOUT', 'SHOW_TOKEN_XHR_ERROR', 'SHOW_PAYMENT_TIMEOUT']) + return false unless reason_validator.valid?(@reason) true end + # Custom attribute writer method checking allowed values (enum). + # @param [Object] reason Object to be assigned + def reason=(reason) + validator = EnumAttributeValidator.new('String', ['INVALID_APIKEY', 'INVALID_SHIPPING_INPUT_PARAMS', 'CAPTURE_CONTEXT_INVALID', 'CAPTURE_CONTEXT_EXPIRED', 'SDK_XHR_ERROR', 'UNIFIEDPAYMENTS_VALIDATION_PARAMS', 'UNIFIEDPAYMENTS_VALIDATION_FIELDS', 'UNIFIEDPAYMENT_PAYMENT_PARAMITERS', 'CREATE_TOKEN_TIMEOUT', 'CREATE_TOKEN_XHR_ERROR', 'SHOW_LOAD_CONTAINER_SELECTOR', 'SHOW_LOAD_INVALID_CONTAINER', 'SHOW_TOKEN_TIMEOUT', 'SHOW_TOKEN_XHR_ERROR', 'SHOW_PAYMENT_TIMEOUT']) + unless validator.valid?(reason) + fail ArgumentError, 'invalid value for "reason", must be one of #{validator.allowable_values}.' + end + @reason = reason + 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 && - submit_time_utc == o.submit_time_utc && - status == o.status && - reason == o.reason && + correlation_id == o.correlation_id && + details == o.details && + information_link == o.information_link && message == o.message && - details == o.details + reason == o.reason end # @see the `==` method @@ -125,7 +165,7 @@ def eql?(o) # Calculates hash code according to all attributes. # @return [Fixnum] Hash code def hash - [submit_time_utc, status, reason, message, details].hash + [correlation_id, details, information_link, message, reason].hash end # Builds the object from hash diff --git a/lib/cybersource_rest_client/models/inline_response_400_6_details.rb b/lib/cybersource_rest_client/models/inline_response_400_6_details.rb new file mode 100644 index 00000000..c6ca3715 --- /dev/null +++ b/lib/cybersource_rest_client/models/inline_response_400_6_details.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 InlineResponse4006Details + attr_accessor :location + + attr_accessor :message + + # Attribute mapping from ruby-style variable name to JSON key. + def self.attribute_map + { + :'location' => :'location', + :'message' => :'message' + } + end + + # Attribute mapping from JSON key to ruby-style variable name. + def self.json_map + { + :'location' => :'location', + :'message' => :'message' + } + end + + # Attribute type mapping. + def self.swagger_types + { + :'location' => :'String', + :'message' => :'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?(:'location') + self.location = attributes[:'location'] + end + + if attributes.has_key?(:'message') + self.message = attributes[:'message'] + 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 && + location == o.location && + message == o.message + 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 + [location, message].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_404_1.rb b/lib/cybersource_rest_client/models/inline_response_404_1.rb index 85d22456..dc6c93b6 100644 --- a/lib/cybersource_rest_client/models/inline_response_404_1.rb +++ b/lib/cybersource_rest_client/models/inline_response_404_1.rb @@ -78,7 +78,7 @@ def self.swagger_types :'status' => :'String', :'reason' => :'String', :'message' => :'String', - :'details' => :'Array' + :'details' => :'Array' } end diff --git a/lib/cybersource_rest_client/models/inline_response_422_1.rb b/lib/cybersource_rest_client/models/inline_response_422_1.rb index 1a3c7af3..20d47f50 100644 --- a/lib/cybersource_rest_client/models/inline_response_422_1.rb +++ b/lib/cybersource_rest_client/models/inline_response_422_1.rb @@ -78,7 +78,7 @@ def self.swagger_types :'status' => :'String', :'reason' => :'String', :'message' => :'String', - :'details' => :'Array' + :'details' => :'Array' } end diff --git a/lib/cybersource_rest_client/models/inline_response_500_2.rb b/lib/cybersource_rest_client/models/inline_response_500_2.rb index 60de0d00..39dc5669 100644 --- a/lib/cybersource_rest_client/models/inline_response_500_2.rb +++ b/lib/cybersource_rest_client/models/inline_response_500_2.rb @@ -13,18 +13,40 @@ module CyberSource class InlineResponse5002 - # 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. + # 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. attr_accessor :submit_time_utc - # The status of the submitted request. Possible values: - SERVER_ERROR + # The http status description of the submitted request. attr_accessor :status - # The reason of the status. Possible values: - SYSTEM_ERROR - SERVER_TIMEOUT - SERVICE_TIMEOUT + # Documented reason codes. Client should be able to use the key for generating their own error message Possible Values: - 'SYSTEM_ERROR' attr_accessor :reason - # The detail message related to the status and reason listed above. + # Descriptive message for the error. attr_accessor :message + class EnumAttributeValidator + attr_reader :datatype + attr_reader :allowable_values + + def initialize(datatype, allowable_values) + @allowable_values = allowable_values.map do |value| + case datatype.to_s + when /Integer/i + value.to_i + when /Float/i + value.to_f + else + value + end + end + end + + def valid?(value) + !value || allowable_values.include?(value) + end + end + # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { @@ -48,7 +70,7 @@ def self.json_map # Attribute type mapping. def self.swagger_types { - :'submit_time_utc' => :'String', + :'submit_time_utc' => :'Date', :'status' => :'String', :'reason' => :'String', :'message' => :'String' @@ -90,9 +112,21 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid def valid? + reason_validator = EnumAttributeValidator.new('String', ['SYSTEM_ERROR']) + return false unless reason_validator.valid?(@reason) true end + # Custom attribute writer method checking allowed values (enum). + # @param [Object] reason Object to be assigned + def reason=(reason) + validator = EnumAttributeValidator.new('String', ['SYSTEM_ERROR']) + unless validator.valid?(reason) + fail ArgumentError, 'invalid value for "reason", must be one of #{validator.allowable_values}.' + end + @reason = reason + end + # Checks equality by comparing each attribute. # @param [Object] Object to be compared def ==(o) diff --git a/lib/cybersource_rest_client/models/payer_auth_config_card_types_verified_by_visa_currencies.rb b/lib/cybersource_rest_client/models/payer_auth_config_card_types_verified_by_visa_currencies.rb index 69d718f7..88327561 100644 --- a/lib/cybersource_rest_client/models/payer_auth_config_card_types_verified_by_visa_currencies.rb +++ b/lib/cybersource_rest_client/models/payer_auth_config_card_types_verified_by_visa_currencies.rb @@ -13,6 +13,7 @@ module CyberSource class PayerAuthConfigCardTypesVerifiedByVisaCurrencies + # Supported currency codes are numeric ISO 4217 codes, such as 840 for US Dollar and 978 for Euro. For backward compatibility, we also support the 'ALL' code, which represents all currencies. In the UI, 'ALL' is displayed as 'Default'. attr_accessor :currency_codes # The Acquirer ID value, often referred to as the Acquirer BIN, is specific to an Acquirer. The value is created by Cardinal in their system and the Acquirer may not know that the Acquirer ID is different from their Acquiring BIN. It is most often the Acquiring BIN + \"-1000\" but the trailing character can be different. **Note** We will need to double check with Cardinal before setting up the Portfolio Template in production. diff --git a/lib/cybersource_rest_client/models/payer_auth_setup_request.rb b/lib/cybersource_rest_client/models/payer_auth_setup_request.rb index 6c0b63e4..e9703a3c 100644 --- a/lib/cybersource_rest_client/models/payer_auth_setup_request.rb +++ b/lib/cybersource_rest_client/models/payer_auth_setup_request.rb @@ -44,7 +44,7 @@ def self.json_map # Attribute type mapping. def self.swagger_types { - :'client_reference_information' => :'Riskv1decisionsClientReferenceInformation', + :'client_reference_information' => :'Riskv1authenticationsetupsClientReferenceInformation', :'payment_information' => :'Riskv1authenticationsetupsPaymentInformation', :'processing_information' => :'Riskv1authenticationsetupsProcessingInformation', :'token_information' => :'Riskv1authenticationsetupsTokenInformation' diff --git a/lib/cybersource_rest_client/models/payments_products.rb b/lib/cybersource_rest_client/models/payments_products.rb index c1973e25..baab137f 100644 --- a/lib/cybersource_rest_client/models/payments_products.rb +++ b/lib/cybersource_rest_client/models/payments_products.rb @@ -49,6 +49,8 @@ class PaymentsProducts attr_accessor :receivables_manager + attr_accessor :service_fee + # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { @@ -69,7 +71,8 @@ def self.attribute_map :'differential_fee' => :'differentialFee', :'pay_by_link' => :'payByLink', :'unified_checkout' => :'unifiedCheckout', - :'receivables_manager' => :'receivablesManager' + :'receivables_manager' => :'receivablesManager', + :'service_fee' => :'serviceFee' } end @@ -93,7 +96,8 @@ def self.json_map :'differential_fee' => :'differential_fee', :'pay_by_link' => :'pay_by_link', :'unified_checkout' => :'unified_checkout', - :'receivables_manager' => :'receivables_manager' + :'receivables_manager' => :'receivables_manager', + :'service_fee' => :'service_fee' } end @@ -117,7 +121,8 @@ def self.swagger_types :'differential_fee' => :'PaymentsProductsDifferentialFee', :'pay_by_link' => :'PaymentsProductsTax', :'unified_checkout' => :'PaymentsProductsTax', - :'receivables_manager' => :'PaymentsProductsTax' + :'receivables_manager' => :'PaymentsProductsTax', + :'service_fee' => :'PaymentsProductsServiceFee' } end @@ -200,6 +205,10 @@ def initialize(attributes = {}) if attributes.has_key?(:'receivablesManager') self.receivables_manager = attributes[:'receivablesManager'] end + + if attributes.has_key?(:'serviceFee') + self.service_fee = attributes[:'serviceFee'] + end end # Show invalid properties with the reasons. Usually used together with valid? @@ -237,7 +246,8 @@ def ==(o) differential_fee == o.differential_fee && pay_by_link == o.pay_by_link && unified_checkout == o.unified_checkout && - receivables_manager == o.receivables_manager + receivables_manager == o.receivables_manager && + service_fee == o.service_fee end # @see the `==` method @@ -249,7 +259,7 @@ def eql?(o) # Calculates hash code according to all attributes. # @return [Fixnum] Hash code def hash - [card_processing, 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].hash + [card_processing, 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 end # Builds the object from hash diff --git a/lib/cybersource_rest_client/models/payments_products_service_fee.rb b/lib/cybersource_rest_client/models/payments_products_service_fee.rb new file mode 100644 index 00000000..582613df --- /dev/null +++ b/lib/cybersource_rest_client/models/payments_products_service_fee.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 PaymentsProductsServiceFee + attr_accessor :subscription_information + + attr_accessor :configuration_information + + # Attribute mapping from ruby-style variable name to JSON key. + def self.attribute_map + { + :'subscription_information' => :'subscriptionInformation', + :'configuration_information' => :'configurationInformation' + } + end + + # Attribute mapping from JSON key to ruby-style variable name. + def self.json_map + { + :'subscription_information' => :'subscription_information', + :'configuration_information' => :'configuration_information' + } + end + + # Attribute type mapping. + def self.swagger_types + { + :'subscription_information' => :'PaymentsProductsPayerAuthenticationSubscriptionInformation', + :'configuration_information' => :'PaymentsProductsServiceFeeConfigurationInformation' + } + 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?(:'subscriptionInformation') + self.subscription_information = attributes[:'subscriptionInformation'] + end + + if attributes.has_key?(:'configurationInformation') + self.configuration_information = attributes[:'configurationInformation'] + 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 && + subscription_information == o.subscription_information && + configuration_information == o.configuration_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 + [subscription_information, configuration_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/payments_products_service_fee_configuration_information.rb b/lib/cybersource_rest_client/models/payments_products_service_fee_configuration_information.rb new file mode 100644 index 00000000..6e07da09 --- /dev/null +++ b/lib/cybersource_rest_client/models/payments_products_service_fee_configuration_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 PaymentsProductsServiceFeeConfigurationInformation + attr_accessor :configurations + + # Attribute mapping from ruby-style variable name to JSON key. + def self.attribute_map + { + :'configurations' => :'configurations' + } + end + + # Attribute mapping from JSON key to ruby-style variable name. + def self.json_map + { + :'configurations' => :'configurations' + } + end + + # Attribute type mapping. + def self.swagger_types + { + :'configurations' => :'PaymentsProductsServiceFeeConfigurationInformationConfigurations' + } + 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?(:'configurations') + self.configurations = attributes[:'configurations'] + 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 && + configurations == o.configurations + 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 + [configurations].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/payments_products_service_fee_configuration_information_configurations.rb b/lib/cybersource_rest_client/models/payments_products_service_fee_configuration_information_configurations.rb new file mode 100644 index 00000000..672a4dfb --- /dev/null +++ b/lib/cybersource_rest_client/models/payments_products_service_fee_configuration_information_configurations.rb @@ -0,0 +1,266 @@ +=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 PaymentsProductsServiceFeeConfigurationInformationConfigurations + # Products enabled for this account. The following values are supported: virtualTerminal paymentTokenizationOtp subscriptionsOtp virtualTerminalCp eCheck + attr_accessor :products + + # Identifier of the terminal at the retail location. + attr_accessor :terminal_id + + # Identifier of a merchant account. + attr_accessor :merchant_id + + attr_accessor :merchant_information + + attr_accessor :payment_information + + # Attribute mapping from ruby-style variable name to JSON key. + def self.attribute_map + { + :'products' => :'products', + :'terminal_id' => :'terminalId', + :'merchant_id' => :'merchantId', + :'merchant_information' => :'merchantInformation', + :'payment_information' => :'paymentInformation' + } + end + + # Attribute mapping from JSON key to ruby-style variable name. + def self.json_map + { + :'products' => :'products', + :'terminal_id' => :'terminal_id', + :'merchant_id' => :'merchant_id', + :'merchant_information' => :'merchant_information', + :'payment_information' => :'payment_information' + } + end + + # Attribute type mapping. + def self.swagger_types + { + :'products' => :'Hash', + :'terminal_id' => :'String', + :'merchant_id' => :'String', + :'merchant_information' => :'PaymentsProductsServiceFeeConfigurationInformationConfigurationsMerchantInformation', + :'payment_information' => :'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?(:'products') + if (value = attributes[:'products']).is_a?(Hash) + self.products = value + end + end + + if attributes.has_key?(:'terminalId') + self.terminal_id = attributes[:'terminalId'] + end + + if attributes.has_key?(:'merchantId') + self.merchant_id = attributes[:'merchantId'] + end + + if attributes.has_key?(:'merchantInformation') + self.merchant_information = attributes[:'merchantInformation'] + end + + if attributes.has_key?(:'paymentInformation') + if (value = attributes[:'paymentInformation']).is_a?(Array) + self.payment_information = 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 + #if !@terminal_id.nil? && @terminal_id !~ Regexp.new(/^[a-zA-Z0-9]+$/) + #invalid_properties.push('invalid value for "terminal_id", must conform to the pattern /^[a-zA-Z0-9]+$/.') + #end + + #if !@merchant_id.nil? && @merchant_id !~ Regexp.new(/^[a-zA-Z0-9]+$/) + #invalid_properties.push('invalid value for "merchant_id", must conform to the pattern /^[a-zA-Z0-9]+$/.') + #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 !@terminal_id.nil? && @terminal_id !~ Regexp.new(/^[a-zA-Z0-9]+$/) + #return false if !@merchant_id.nil? && @merchant_id !~ Regexp.new(/^[a-zA-Z0-9]+$/) + true + end + + # Custom attribute writer method with validation + # @param [Object] terminal_id Value to be assigned + def terminal_id=(terminal_id) + #if !terminal_id.nil? && terminal_id !~ Regexp.new(/^[a-zA-Z0-9]+$/) + #fail ArgumentError, 'invalid value for "terminal_id", must conform to the pattern /^[a-zA-Z0-9]+$/.' + #end + + @terminal_id = terminal_id + end + + # Custom attribute writer method with validation + # @param [Object] merchant_id Value to be assigned + def merchant_id=(merchant_id) + #if !merchant_id.nil? && merchant_id !~ Regexp.new(/^[a-zA-Z0-9]+$/) + #fail ArgumentError, 'invalid value for "merchant_id", must conform to the pattern /^[a-zA-Z0-9]+$/.' + #end + + @merchant_id = merchant_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 && + products == o.products && + terminal_id == o.terminal_id && + merchant_id == o.merchant_id && + merchant_information == o.merchant_information && + payment_information == o.payment_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 + [products, terminal_id, merchant_id, merchant_information, payment_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/payments_products_service_fee_configuration_information_configurations_merchant_information.rb b/lib/cybersource_rest_client/models/payments_products_service_fee_configuration_information_configurations_merchant_information.rb new file mode 100644 index 00000000..2f18d620 --- /dev/null +++ b/lib/cybersource_rest_client/models/payments_products_service_fee_configuration_information_configurations_merchant_information.rb @@ -0,0 +1,239 @@ +=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 PaymentsProductsServiceFeeConfigurationInformationConfigurationsMerchantInformation + # Name of the merchant account. + attr_accessor :name + + # Phone number of the primary contact for the merchant account. + attr_accessor :contact + + # 2-character ISO code for the U.S. state in which the merchant is registered + attr_accessor :state + + # Attribute mapping from ruby-style variable name to JSON key. + def self.attribute_map + { + :'name' => :'name', + :'contact' => :'contact', + :'state' => :'state' + } + end + + # Attribute mapping from JSON key to ruby-style variable name. + def self.json_map + { + :'name' => :'name', + :'contact' => :'contact', + :'state' => :'state' + } + end + + # Attribute type mapping. + def self.swagger_types + { + :'name' => :'String', + :'contact' => :'String', + :'state' => :'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?(:'name') + self.name = attributes[:'name'] + end + + if attributes.has_key?(:'contact') + self.contact = attributes[:'contact'] + end + + if attributes.has_key?(:'state') + self.state = attributes[:'state'] + 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 !@contact.nil? && @contact !~ Regexp.new(/^\\(?([0-9]{3})\\)?[-. ]?([0-9]{3})[-. ]?([0-9]{4})$/) + #invalid_properties.push('invalid value for "contact", must conform to the pattern /^\\(?([0-9]{3})\\)?[-. ]?([0-9]{3})[-. ]?([0-9]{4})$/.') + #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 !@contact.nil? && @contact !~ Regexp.new(/^\\(?([0-9]{3})\\)?[-. ]?([0-9]{3})[-. ]?([0-9]{4})$/) + true + end + + # Custom attribute writer method with validation + # @param [Object] name Value to be assigned + def name=(name) + @name = name + end + + # Custom attribute writer method with validation + # @param [Object] contact Value to be assigned + def contact=(contact) + #if !contact.nil? && contact !~ Regexp.new(/^\\(?([0-9]{3})\\)?[-. ]?([0-9]{3})[-. ]?([0-9]{4})$/) + #fail ArgumentError, 'invalid value for "contact", must conform to the pattern /^\\(?([0-9]{3})\\)?[-. ]?([0-9]{3})[-. ]?([0-9]{4})$/.' + #end + + @contact = contact + end + + # Custom attribute writer method with validation + # @param [Object] state Value to be assigned + def state=(state) + @state = state + 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 && + contact == o.contact && + state == o.state + 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 + [name, contact, state].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/payments_products_service_fee_configuration_information_configurations_payment_information.rb b/lib/cybersource_rest_client/models/payments_products_service_fee_configuration_information_configurations_payment_information.rb new file mode 100644 index 00000000..d332c1dc --- /dev/null +++ b/lib/cybersource_rest_client/models/payments_products_service_fee_configuration_information_configurations_payment_information.rb @@ -0,0 +1,280 @@ +=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 PaymentsProductsServiceFeeConfigurationInformationConfigurationsPaymentInformation + # Payment types accepted by this merchant. The supported values are: MASTERDEBIT, MASTERCREDIT, VISACREDIT, VISADEBIT, DISCOVERCREDIT, AMEXCREDIT, ECHECK + attr_accessor :payment_type + + # Fee type for the selected payment type. Supported values are: Flat or Percentage. + attr_accessor :fee_type + + # Fee Amount of the selected payment type if you chose Flat fee type. + attr_accessor :fee_amount + + # Percentage of the selected payment type if you chose Percentage Fee type. Supported values use numbers with decimals. For example, 1.0 + attr_accessor :percentage + + # Fee cap for the selected payment type. Supported values use numbers with decimals. For example, 1.0 + attr_accessor :fee_cap + + class EnumAttributeValidator + attr_reader :datatype + attr_reader :allowable_values + + def initialize(datatype, allowable_values) + @allowable_values = allowable_values.map do |value| + case datatype.to_s + when /Integer/i + value.to_i + when /Float/i + value.to_f + else + value + end + end + end + + def valid?(value) + !value || allowable_values.include?(value) + end + end + + # Attribute mapping from ruby-style variable name to JSON key. + def self.attribute_map + { + :'payment_type' => :'paymentType', + :'fee_type' => :'feeType', + :'fee_amount' => :'feeAmount', + :'percentage' => :'percentage', + :'fee_cap' => :'feeCap' + } + end + + # Attribute mapping from JSON key to ruby-style variable name. + def self.json_map + { + :'payment_type' => :'payment_type', + :'fee_type' => :'fee_type', + :'fee_amount' => :'fee_amount', + :'percentage' => :'percentage', + :'fee_cap' => :'fee_cap' + } + end + + # Attribute type mapping. + def self.swagger_types + { + :'payment_type' => :'String', + :'fee_type' => :'String', + :'fee_amount' => :'Float', + :'percentage' => :'Float', + :'fee_cap' => :'Float' + } + 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?(:'paymentType') + self.payment_type = attributes[:'paymentType'] + end + + if attributes.has_key?(:'feeType') + self.fee_type = attributes[:'feeType'] + end + + if attributes.has_key?(:'feeAmount') + self.fee_amount = attributes[:'feeAmount'] + end + + if attributes.has_key?(:'percentage') + self.percentage = attributes[:'percentage'] + end + + if attributes.has_key?(:'feeCap') + self.fee_cap = attributes[:'feeCap'] + 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? + payment_type_validator = EnumAttributeValidator.new('String', ['MASTERDEBIT', 'MASTERCREDIT', 'VISACREDIT', 'VISADEBIT', 'DISCOVERCREDIT', 'AMEXCREDIT', 'ECHECK']) + return false unless payment_type_validator.valid?(@payment_type) + fee_type_validator = EnumAttributeValidator.new('String', ['FLAT', 'PERCENTAGE']) + return false unless fee_type_validator.valid?(@fee_type) + true + end + + # Custom attribute writer method checking allowed values (enum). + # @param [Object] payment_type Object to be assigned + def payment_type=(payment_type) + validator = EnumAttributeValidator.new('String', ['MASTERDEBIT', 'MASTERCREDIT', 'VISACREDIT', 'VISADEBIT', 'DISCOVERCREDIT', 'AMEXCREDIT', 'ECHECK']) + unless validator.valid?(payment_type) + fail ArgumentError, 'invalid value for "payment_type", must be one of #{validator.allowable_values}.' + end + @payment_type = payment_type + end + + # Custom attribute writer method checking allowed values (enum). + # @param [Object] fee_type Object to be assigned + def fee_type=(fee_type) + validator = EnumAttributeValidator.new('String', ['FLAT', 'PERCENTAGE']) + unless validator.valid?(fee_type) + fail ArgumentError, 'invalid value for "fee_type", must be one of #{validator.allowable_values}.' + end + @fee_type = fee_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 && + payment_type == o.payment_type && + fee_type == o.fee_type && + fee_amount == o.fee_amount && + percentage == o.percentage && + fee_cap == o.fee_cap + 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 + [payment_type, fee_type, fee_amount, percentage, fee_cap].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/payments_products_service_fee_configuration_information_configurations_products.rb b/lib/cybersource_rest_client/models/payments_products_service_fee_configuration_information_configurations_products.rb new file mode 100644 index 00000000..715d9d45 --- /dev/null +++ b/lib/cybersource_rest_client/models/payments_products_service_fee_configuration_information_configurations_products.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 PaymentsProductsServiceFeeConfigurationInformationConfigurationsProducts + # Boolean flag to determine if service fee will be applied to the Product. + attr_accessor :service_fee_enabled + + # Attribute mapping from ruby-style variable name to JSON key. + def self.attribute_map + { + :'service_fee_enabled' => :'serviceFeeEnabled' + } + end + + # Attribute mapping from JSON key to ruby-style variable name. + def self.json_map + { + :'service_fee_enabled' => :'service_fee_enabled' + } + end + + # Attribute type mapping. + def self.swagger_types + { + :'service_fee_enabled' => :'BOOLEAN' + } + 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?(:'serviceFeeEnabled') + self.service_fee_enabled = attributes[:'serviceFeeEnabled'] + 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 && + service_fee_enabled == o.service_fee_enabled + 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 + [service_fee_enabled].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/pts_v2_payments_post201_response_embedded_actions_consumer_authentication.rb b/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_embedded_actions_consumer_authentication.rb index 65684c0e..36cf2626 100644 --- a/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_embedded_actions_consumer_authentication.rb +++ b/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_embedded_actions_consumer_authentication.rb @@ -13,7 +13,7 @@ module CyberSource class PtsV2PaymentsPost201ResponseEmbeddedActionsCONSUMERAUTHENTICATION - # The status for payerAuthentication 201 enroll and validate calls. Possible values are: - `AUTHENTICATION_SUCCESSFUL` - `PENDING_AUTHENTICATION` - `INVALID_REQUEST` - `AUTHENTICATION_FAILED` + # The status for payerAuthentication 201 enroll and validate calls. Possible values are: - `AUTHENTICATION_SUCCESSFUL` - `PENDING_AUTHENTICATION` - `AUTHENTICATION_FAILED` attr_accessor :status # The reason of the status. Possible values are: - `INVALID_MERCHANT_CONFIGURATION` - `CONSUMER_AUTHENTICATION_REQUIRED` - `CONSUMER_AUTHENTICATION_FAILED` - `AUTHENTICATION_FAILED` diff --git a/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_processor_information.rb b/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_processor_information.rb index 58a1cef8..b6df318f 100644 --- a/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_processor_information.rb +++ b/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_processor_information.rb @@ -46,6 +46,9 @@ class PtsV2PaymentsPost201ResponseProcessorInformation # Field contains a settlement date. The date is in mmdd format, where: mm = month and dd = day. attr_accessor :settlement_date + # This field serves as a unique identifier for initial and subsequent recurring transactions, specific to the payment brand, and is crucial for transaction tracking and recurrence management. Not all processors provide this value. Returned by the authorization service. + attr_accessor :sequence_number + attr_accessor :avs attr_accessor :card_verification @@ -130,6 +133,7 @@ def self.attribute_map :'response_category_code' => :'responseCategoryCode', :'forwarded_acquirer_code' => :'forwardedAcquirerCode', :'settlement_date' => :'settlementDate', + :'sequence_number' => :'sequenceNumber', :'avs' => :'avs', :'card_verification' => :'cardVerification', :'merchant_advice' => :'merchantAdvice', @@ -174,6 +178,7 @@ def self.json_map :'response_category_code' => :'response_category_code', :'forwarded_acquirer_code' => :'forwarded_acquirer_code', :'settlement_date' => :'settlement_date', + :'sequence_number' => :'sequence_number', :'avs' => :'avs', :'card_verification' => :'card_verification', :'merchant_advice' => :'merchant_advice', @@ -218,6 +223,7 @@ def self.swagger_types :'response_category_code' => :'String', :'forwarded_acquirer_code' => :'String', :'settlement_date' => :'String', + :'sequence_number' => :'String', :'avs' => :'PtsV2PaymentsPost201ResponseProcessorInformationAvs', :'card_verification' => :'PtsV2PaymentsPost201ResponseProcessorInformationCardVerification', :'merchant_advice' => :'PtsV2PaymentsPost201ResponseProcessorInformationMerchantAdvice', @@ -300,6 +306,10 @@ def initialize(attributes = {}) self.settlement_date = attributes[:'settlementDate'] end + if attributes.has_key?(:'sequenceNumber') + self.sequence_number = attributes[:'sequenceNumber'] + end + if attributes.has_key?(:'avs') self.avs = attributes[:'avs'] end @@ -482,6 +492,12 @@ def settlement_date=(settlement_date) @settlement_date = settlement_date end + # Custom attribute writer method with validation + # @param [Object] sequence_number Value to be assigned + def sequence_number=(sequence_number) + @sequence_number = sequence_number + end + # Custom attribute writer method with validation # @param [Object] system_trace_audit_number Value to be assigned def system_trace_audit_number=(system_trace_audit_number) @@ -588,6 +604,7 @@ def ==(o) response_category_code == o.response_category_code && forwarded_acquirer_code == o.forwarded_acquirer_code && settlement_date == o.settlement_date && + sequence_number == o.sequence_number && avs == o.avs && card_verification == o.card_verification && merchant_advice == o.merchant_advice && @@ -626,7 +643,7 @@ def eql?(o) # Calculates hash code according to all attributes. # @return [Fixnum] Hash code def hash - [auth_indicator, approval_code, card_reference_data, transaction_id, network_transaction_id, response_code, response_code_source, response_details, response_category_code, forwarded_acquirer_code, settlement_date, avs, card_verification, merchant_advice, electronic_verification_results, ach_verification, customer, consumer_authentication_response, system_trace_audit_number, payment_account_reference_number, transaction_integrity_code, amex_verbal_auth_reference_number, master_card_service_code, master_card_service_reply_code, master_card_authentication_type, name, routing, merchant_number, retrieval_reference_number, payment_url, complete_url, signature, public_key, seller_protection, transaction_expiry_date, custom_url, scheme_assigned_id, device_url].hash + [auth_indicator, approval_code, card_reference_data, transaction_id, network_transaction_id, response_code, response_code_source, response_details, response_category_code, forwarded_acquirer_code, settlement_date, sequence_number, avs, card_verification, merchant_advice, electronic_verification_results, ach_verification, customer, consumer_authentication_response, system_trace_audit_number, payment_account_reference_number, transaction_integrity_code, amex_verbal_auth_reference_number, master_card_service_code, master_card_service_reply_code, master_card_authentication_type, name, routing, merchant_number, retrieval_reference_number, payment_url, complete_url, signature, public_key, seller_protection, transaction_expiry_date, custom_url, scheme_assigned_id, device_url].hash end # Builds the object from hash diff --git a/lib/cybersource_rest_client/models/ptsv2payments_processing_information_authorization_options.rb b/lib/cybersource_rest_client/models/ptsv2payments_processing_information_authorization_options.rb index 3440e53c..c7b7eedd 100644 --- a/lib/cybersource_rest_client/models/ptsv2payments_processing_information_authorization_options.rb +++ b/lib/cybersource_rest_client/models/ptsv2payments_processing_information_authorization_options.rb @@ -78,6 +78,9 @@ class Ptsv2paymentsProcessingInformationAuthorizationOptions # This API field will indicate whether a card verification check is being performed during the transaction Possible values: - `true` - `false` (default value) attr_accessor :card_verification_indicator + # Indicates whether the transaction is an Account Funding Transaction (AFT). This field is mandatory for Account Funding Transactions (AFT). Possible values: - `true` (This is an AFT transaction) - `false` (default value) (This is not an AFT transaction) + attr_accessor :aft_indicator + # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { @@ -102,7 +105,8 @@ def self.attribute_map :'deferred_auth_indicator' => :'deferredAuthIndicator', :'cash_advance_indicator' => :'cashAdvanceIndicator', :'split_payment_transaction' => :'splitPaymentTransaction', - :'card_verification_indicator' => :'cardVerificationIndicator' + :'card_verification_indicator' => :'cardVerificationIndicator', + :'aft_indicator' => :'aftIndicator' } end @@ -130,7 +134,8 @@ def self.json_map :'deferred_auth_indicator' => :'deferred_auth_indicator', :'cash_advance_indicator' => :'cash_advance_indicator', :'split_payment_transaction' => :'split_payment_transaction', - :'card_verification_indicator' => :'card_verification_indicator' + :'card_verification_indicator' => :'card_verification_indicator', + :'aft_indicator' => :'aft_indicator' } end @@ -158,7 +163,8 @@ def self.swagger_types :'deferred_auth_indicator' => :'BOOLEAN', :'cash_advance_indicator' => :'BOOLEAN', :'split_payment_transaction' => :'BOOLEAN', - :'card_verification_indicator' => :'BOOLEAN' + :'card_verification_indicator' => :'BOOLEAN', + :'aft_indicator' => :'BOOLEAN' } end @@ -263,6 +269,10 @@ def initialize(attributes = {}) if attributes.has_key?(:'cardVerificationIndicator') self.card_verification_indicator = attributes[:'cardVerificationIndicator'] end + + if attributes.has_key?(:'aftIndicator') + self.aft_indicator = attributes[:'aftIndicator'] + end end # Show invalid properties with the reasons. Usually used together with valid? @@ -334,7 +344,8 @@ def ==(o) deferred_auth_indicator == o.deferred_auth_indicator && cash_advance_indicator == o.cash_advance_indicator && split_payment_transaction == o.split_payment_transaction && - card_verification_indicator == o.card_verification_indicator + card_verification_indicator == o.card_verification_indicator && + aft_indicator == o.aft_indicator end # @see the `==` method @@ -346,7 +357,7 @@ def eql?(o) # Calculates hash code according to all attributes. # @return [Fixnum] Hash code def hash - [auth_type, pan_return_indicator, verbal_auth_code, verbal_auth_transaction_id, auth_indicator, partial_auth_indicator, extend_auth_indicator, balance_inquiry, ignore_avs_result, decline_avs_flags, ignore_cv_result, initiator, bill_payment, bill_payment_type, redemption_inquiry, transportation_mode, aggregated_auth_indicator, debt_recovery_indicator, deferred_auth_indicator, cash_advance_indicator, split_payment_transaction, card_verification_indicator].hash + [auth_type, pan_return_indicator, verbal_auth_code, verbal_auth_transaction_id, auth_indicator, partial_auth_indicator, extend_auth_indicator, balance_inquiry, ignore_avs_result, decline_avs_flags, ignore_cv_result, initiator, bill_payment, bill_payment_type, redemption_inquiry, transportation_mode, aggregated_auth_indicator, debt_recovery_indicator, deferred_auth_indicator, cash_advance_indicator, split_payment_transaction, card_verification_indicator, aft_indicator].hash end # Builds the object from hash diff --git a/lib/cybersource_rest_client/models/ptsv2payments_recipient_information.rb b/lib/cybersource_rest_client/models/ptsv2payments_recipient_information.rb index 64afc299..40a59505 100644 --- a/lib/cybersource_rest_client/models/ptsv2payments_recipient_information.rb +++ b/lib/cybersource_rest_client/models/ptsv2payments_recipient_information.rb @@ -13,18 +13,30 @@ module CyberSource class Ptsv2paymentsRecipientInformation - # Identifier for the recipient's account. Use the first six digits and last four digits of the recipient's account number. This field is a _pass-through_, which means that CyberSource does not verify the value or modify it in any way before sending it to the processor. If the field is not required for the transaction, CyberSource does not forward it to the processor. For details, see the `recipientInformation.accountId` field description in the [REST API Fields](https://developer.cybersource.com/content/dam/docs/cybs/en-us/apifields/reference/all/rest/api-fields.pdf) + # Identifier for the recipient's account. **Applicable for Barclays AFT transactions only.** It is mandatory for both Visa and Mastercard AFT. For Visa, the field has a maximum length of 34 character. For Mastercard, the field has a maximum length of 50 character. attr_accessor :account_id - # Recipient's last name. This field is a _passthrough_, which means that CyberSource does not verify the value or modify it in any way before sending it to the processor. If the field is not required for the transaction, CyberSource does not forward it to the processor. For details, see the `recipientInformation.lastName` field description in the [REST API Fields](https://developer.cybersource.com/content/dam/docs/cybs/en-us/apifields/reference/all/rest/api-fields.pdf) + # Identifies the recipient's account type. **Applicable for Barclays AFT transactions only.** This field is mandatory for Mastercard and not applicable for Visa AFT. Valid values are: - `00` for Other - `01` for Routing Transit Number (RTN) + Bank Account Number (BAN) - `02` for International Bank Account Number (IBAN) - `03` for Card Account - `06` for Bank Account Number (BAN) + Bank Identification Code (BIC), also known as a SWIFT code + attr_accessor :account_type + + # First name of the recipient. **Applicable for Barclays AFT transactions only.** The field is mandatory for both Visa and Mastercard AFT. Only alpha numeric values are supported. Special characters not in the standard ASCII character set, are not supported and will be stripped before being sent to Barclays. For Visa, the maximum length of First Name, Middle Name and Last Name is 30 characters. For Mastercard, the field has a maximum length of 35 characters. Values exceeding the above limits will be truncated. + attr_accessor :first_name + + # Last name of the recipient. **Applicable for Barclays AFT transactions only.** This field is optional for both Visa and Mastercard AFT. Only alpha numeric values are supported. Special characters not in the standard ASCII character set, are not supported and will be stripped before being sent to Barclays. For Visa, the maximum length of First Name, Middle Name and Last Name is 30 characters. For Mastercard, the field has a maximum length of 35 characters. Values exceeding these limits will be truncated. attr_accessor :last_name - # Recipient's middle name. This field is a _passthrough_, which means that CyberSource does not verify the value or modify it in any way before sending it to the processor. If the field is not required for the transaction, CyberSource does not forward it to the processor. For details, see the `recipientInformation.middleName` field description in the [REST API Fields](https://developer.cybersource.com/content/dam/docs/cybs/en-us/apifields/reference/all/rest/api-fields.pdf) + # Middle name of the recipient. **Applicable for Barclays AFT transactions only.** This field is optional for both Visa and Mastercard AFT. Only alpha numeric values are supported. Special characters not in the standard ASCII character set, are not supported and will be stripped before being sent to Barclays. For Visa, the maximum length of First Name, Middle Name and Last Name is 30 characters. For Mastercard, the field has a maximum length of 1 character. Values exceeding these limits will be truncated. attr_accessor :middle_name + # The street address of the recipient **Applicable for Barclays AFT transactions only.** This field is mandatory for Mastercard and not applicable for Visa AFT. Only alpha numeric values are supported. Special characters not in the standard ASCII character set are not supported and will be stripped before being sent to Barclays. The field has a maximum length of 50 characters. Values exceeding these limits will be truncated. + attr_accessor :address1 + # Partial postal code for the recipient's address. For example, if the postal code is **NN5 7SG**, the value for this field should be the first part of the postal code: **NN5**. This field is a _pass-through_, which means that CyberSource does not verify the value or modify it in any way before sending it to the processor. If the field is not required for the transaction, CyberSource does not forward it to the processor. attr_accessor :postal_code + # The country associated with the address of the recipient. **Applicable for Barclays AFT transactions only.** This field is mandatory for Mastercard and not applicable for Visa AFT. Must be a two character ISO country code. For example, see [ISO Country Code](https://developer.cybersource.com/docs/cybs/en-us/country-codes/reference/all/na/country-codes/country-codes.html) + attr_accessor :country + # Recipient's date of birth. **Format**: `YYYYMMDD`. This field is a `pass-through`, which means that CyberSource ensures that the value is eight numeric characters but otherwise does not verify the value or modify it in any way before sending it to the processor. If the field is not required for the transaction, CyberSource does not forward it to the processor. attr_accessor :date_of_birth @@ -41,9 +53,13 @@ class Ptsv2paymentsRecipientInformation def self.attribute_map { :'account_id' => :'accountId', + :'account_type' => :'accountType', + :'first_name' => :'firstName', :'last_name' => :'lastName', :'middle_name' => :'middleName', + :'address1' => :'address1', :'postal_code' => :'postalCode', + :'country' => :'country', :'date_of_birth' => :'dateOfBirth', :'beneficiary_id' => :'beneficiaryId', :'beneficiary_name' => :'beneficiaryName', @@ -55,9 +71,13 @@ def self.attribute_map def self.json_map { :'account_id' => :'account_id', + :'account_type' => :'account_type', + :'first_name' => :'first_name', :'last_name' => :'last_name', :'middle_name' => :'middle_name', + :'address1' => :'address1', :'postal_code' => :'postal_code', + :'country' => :'country', :'date_of_birth' => :'date_of_birth', :'beneficiary_id' => :'beneficiary_id', :'beneficiary_name' => :'beneficiary_name', @@ -69,9 +89,13 @@ def self.json_map def self.swagger_types { :'account_id' => :'String', + :'account_type' => :'String', + :'first_name' => :'String', :'last_name' => :'String', :'middle_name' => :'String', + :'address1' => :'String', :'postal_code' => :'String', + :'country' => :'String', :'date_of_birth' => :'String', :'beneficiary_id' => :'String', :'beneficiary_name' => :'String', @@ -91,6 +115,14 @@ def initialize(attributes = {}) self.account_id = attributes[:'accountId'] end + if attributes.has_key?(:'accountType') + self.account_type = attributes[:'accountType'] + end + + if attributes.has_key?(:'firstName') + self.first_name = attributes[:'firstName'] + end + if attributes.has_key?(:'lastName') self.last_name = attributes[:'lastName'] end @@ -99,10 +131,18 @@ def initialize(attributes = {}) self.middle_name = attributes[:'middleName'] end + if attributes.has_key?(:'address1') + self.address1 = attributes[:'address1'] + end + if attributes.has_key?(:'postalCode') self.postal_code = attributes[:'postalCode'] end + if attributes.has_key?(:'country') + self.country = attributes[:'country'] + end + if attributes.has_key?(:'dateOfBirth') self.date_of_birth = attributes[:'dateOfBirth'] end @@ -139,6 +179,18 @@ def account_id=(account_id) @account_id = account_id end + # Custom attribute writer method with validation + # @param [Object] account_type Value to be assigned + def account_type=(account_type) + @account_type = account_type + end + + # Custom attribute writer method with validation + # @param [Object] first_name Value to be assigned + def first_name=(first_name) + @first_name = first_name + end + # Custom attribute writer method with validation # @param [Object] last_name Value to be assigned def last_name=(last_name) @@ -151,12 +203,24 @@ def middle_name=(middle_name) @middle_name = middle_name end + # Custom attribute writer method with validation + # @param [Object] address1 Value to be assigned + def address1=(address1) + @address1 = address1 + 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] country Value to be assigned + def country=(country) + @country = country + end + # Custom attribute writer method with validation # @param [Object] date_of_birth Value to be assigned def date_of_birth=(date_of_birth) @@ -187,9 +251,13 @@ def ==(o) return true if self.equal?(o) self.class == o.class && account_id == o.account_id && + account_type == o.account_type && + first_name == o.first_name && last_name == o.last_name && middle_name == o.middle_name && + address1 == o.address1 && postal_code == o.postal_code && + country == o.country && date_of_birth == o.date_of_birth && beneficiary_id == o.beneficiary_id && beneficiary_name == o.beneficiary_name && @@ -205,7 +273,7 @@ def eql?(o) # Calculates hash code according to all attributes. # @return [Fixnum] Hash code def hash - [account_id, last_name, middle_name, postal_code, date_of_birth, beneficiary_id, beneficiary_name, beneficiary_address].hash + [account_id, account_type, first_name, last_name, middle_name, address1, postal_code, country, date_of_birth, beneficiary_id, beneficiary_name, beneficiary_address].hash end # Builds the object from hash diff --git a/lib/cybersource_rest_client/models/ptsv2payments_sender_information.rb b/lib/cybersource_rest_client/models/ptsv2payments_sender_information.rb new file mode 100644 index 00000000..e2ddafe1 --- /dev/null +++ b/lib/cybersource_rest_client/models/ptsv2payments_sender_information.rb @@ -0,0 +1,298 @@ +=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 Ptsv2paymentsSenderInformation + # First name of the sender. **Applicable for Barclays AFT transactions only.** The field is mandatory for Visa and not applicable for Mastercard AFT. Only alpha numeric values are supported. Special characters not in the standard ASCII character set, are not supported and will be stripped before being sent to Barclays. For Visa, the maximum length of First Name, Middle Name and Last Name is 30 characters. Values exceeding the above limits will be truncated. + attr_accessor :first_name + + # Last name of the sender. **Applicable for Barclays AFT transactions only.** This field is optional for Visa and not applicable for Mastercard AFT. Only alpha numeric values are supported. Special characters not in the standard ASCII character set, are not supported and will be stripped before being sent to Barclays. For Visa, the maximum length of First Name, Middle Name and Last Name is 30 characters. Values exceeding these limits will be truncated. + attr_accessor :last_name + + # Middle name of the sender. **Applicable for Barclays AFT transactions only.** The field is mandatory for Visa and not applicable for Mastercard AFT. Only alpha numeric values are supported. Special characters not in the standard ASCII character set, are not supported and will be stripped before being sent to Barclays. For Visa, the maximum length of First Name, Middle Name and Last Name is 30 characters. Values exceeding these limits will be truncated. + attr_accessor :middle_name + + # The street address of the sender. **Applicable for Barclays AFT transactions only.** The field is mandatory for Visa and not applicable for Mastercard AFT. Only alpha numeric values are supported. Special characters not in the standard ASCII character set are not supported and will be stripped before being sent to Barclays. The field has a maximum length of 35 characters. Values exceeding these limits will be truncated. + attr_accessor :address1 + + # The city or locality of the sender.in **Applicable for Barclays AFT transactions only.** The field is optional for Visa and not applicable for Mastercard AFT. Only alpha numeric values are supported. Special characters not in the standard ASCII character set are not supported and will be stripped before being sent to Barclays. The field has a maximum length of 25 characters. Values exceeding these limits will be truncated. + attr_accessor :locality + + # The state or province of the sender. **Applicable for Barclays AFT transactions only.** The field is mandatory for Visa AFT when the sender country is US or CA else it is optional for Visa AFT. This field is not applicable for Mastercard AFT. Must be a two character value + attr_accessor :administrative_area + + # The country associated with the address of the sender. **Applicable for Barclays AFT transactions only.** The field is mandatory for Visa and not applicable for Mastercard AFT. Must be a two character ISO country code. For example, see [ISO Country Code](https://developer.cybersource.com/docs/cybs/en-us/country-codes/reference/all/na/country-codes/country-codes.html) + attr_accessor :country_code + + # Attribute mapping from ruby-style variable name to JSON key. + def self.attribute_map + { + :'first_name' => :'firstName', + :'last_name' => :'lastName', + :'middle_name' => :'middleName', + :'address1' => :'address1', + :'locality' => :'locality', + :'administrative_area' => :'administrativeArea', + :'country_code' => :'countryCode' + } + end + + # Attribute mapping from JSON key to ruby-style variable name. + def self.json_map + { + :'first_name' => :'first_name', + :'last_name' => :'last_name', + :'middle_name' => :'middle_name', + :'address1' => :'address1', + :'locality' => :'locality', + :'administrative_area' => :'administrative_area', + :'country_code' => :'country_code' + } + end + + # Attribute type mapping. + def self.swagger_types + { + :'first_name' => :'String', + :'last_name' => :'String', + :'middle_name' => :'String', + :'address1' => :'String', + :'locality' => :'String', + :'administrative_area' => :'String', + :'country_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?(:'firstName') + self.first_name = attributes[:'firstName'] + end + + if attributes.has_key?(:'lastName') + self.last_name = attributes[:'lastName'] + end + + if attributes.has_key?(:'middleName') + self.middle_name = attributes[:'middleName'] + end + + if attributes.has_key?(:'address1') + self.address1 = attributes[:'address1'] + end + + if attributes.has_key?(:'locality') + self.locality = attributes[:'locality'] + end + + if attributes.has_key?(:'administrativeArea') + self.administrative_area = attributes[:'administrativeArea'] + end + + if attributes.has_key?(:'countryCode') + self.country_code = attributes[:'countryCode'] + 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] first_name Value to be assigned + def first_name=(first_name) + @first_name = first_name + end + + # Custom attribute writer method with validation + # @param [Object] last_name Value to be assigned + def last_name=(last_name) + @last_name = last_name + end + + # Custom attribute writer method with validation + # @param [Object] middle_name Value to be assigned + def middle_name=(middle_name) + @middle_name = middle_name + end + + # Custom attribute writer method with validation + # @param [Object] address1 Value to be assigned + def address1=(address1) + @address1 = address1 + 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] administrative_area Value to be assigned + def administrative_area=(administrative_area) + @administrative_area = administrative_area + end + + # Custom attribute writer method with validation + # @param [Object] country_code Value to be assigned + def country_code=(country_code) + @country_code = country_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 && + first_name == o.first_name && + last_name == o.last_name && + middle_name == o.middle_name && + address1 == o.address1 && + locality == o.locality && + administrative_area == o.administrative_area && + country_code == o.country_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 + [first_name, last_name, middle_name, address1, locality, administrative_area, country_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/risk_v1_authentication_results_post201_response.rb b/lib/cybersource_rest_client/models/risk_v1_authentication_results_post201_response.rb index c6791439..184b321d 100644 --- a/lib/cybersource_rest_client/models/risk_v1_authentication_results_post201_response.rb +++ b/lib/cybersource_rest_client/models/risk_v1_authentication_results_post201_response.rb @@ -21,10 +21,7 @@ class RiskV1AuthenticationResultsPost201Response # 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 - # Time that the transaction was submitted in local time. Generated by Cybersource. - attr_accessor :submit_time_local - - # The status for payerAuthentication 201 enroll and validate calls. Possible values are: - `AUTHENTICATION_SUCCESSFUL` - `PENDING_AUTHENTICATION` - `INVALID_REQUEST` - `AUTHENTICATION_FAILED` + # The status for payerAuthentication 201 enroll and validate calls. Possible values are: - `AUTHENTICATION_SUCCESSFUL` - `PENDING_AUTHENTICATION` - `AUTHENTICATION_FAILED` attr_accessor :status # The message describing the reason of the status. Value is: - The cardholder is enrolled in Payer Authentication. Please authenticate the cardholder before continuing with the transaction. @@ -42,7 +39,6 @@ def self.attribute_map :'_links' => :'_links', :'id' => :'id', :'submit_time_utc' => :'submitTimeUtc', - :'submit_time_local' => :'submitTimeLocal', :'status' => :'status', :'message' => :'message', :'client_reference_information' => :'clientReferenceInformation', @@ -57,7 +53,6 @@ def self.json_map :'_links' => :'_links', :'id' => :'id', :'submit_time_utc' => :'submit_time_utc', - :'submit_time_local' => :'submit_time_local', :'status' => :'status', :'message' => :'message', :'client_reference_information' => :'client_reference_information', @@ -72,7 +67,6 @@ def self.swagger_types :'_links' => :'PtsV2IncrementalAuthorizationPatch201ResponseLinks', :'id' => :'String', :'submit_time_utc' => :'String', - :'submit_time_local' => :'String', :'status' => :'String', :'message' => :'String', :'client_reference_information' => :'RiskV1DecisionsPost201ResponseClientReferenceInformation', @@ -101,10 +95,6 @@ def initialize(attributes = {}) self.submit_time_utc = attributes[:'submitTimeUtc'] end - if attributes.has_key?(:'submitTimeLocal') - self.submit_time_local = attributes[:'submitTimeLocal'] - end - if attributes.has_key?(:'status') self.status = attributes[:'status'] end @@ -153,7 +143,6 @@ def ==(o) _links == o._links && id == o.id && submit_time_utc == o.submit_time_utc && - submit_time_local == o.submit_time_local && status == o.status && message == o.message && client_reference_information == o.client_reference_information && @@ -170,7 +159,7 @@ def eql?(o) # Calculates hash code according to all attributes. # @return [Fixnum] Hash code def hash - [_links, id, submit_time_utc, submit_time_local, status, message, client_reference_information, consumer_authentication_information, error_information].hash + [_links, id, submit_time_utc, status, message, client_reference_information, consumer_authentication_information, error_information].hash end # Builds the object from hash diff --git a/lib/cybersource_rest_client/models/risk_v1_authentication_results_post201_response_consumer_authentication_information.rb b/lib/cybersource_rest_client/models/risk_v1_authentication_results_post201_response_consumer_authentication_information.rb index cb5869a1..8f75305d 100644 --- a/lib/cybersource_rest_client/models/risk_v1_authentication_results_post201_response_consumer_authentication_information.rb +++ b/lib/cybersource_rest_client/models/risk_v1_authentication_results_post201_response_consumer_authentication_information.rb @@ -16,12 +16,21 @@ class RiskV1AuthenticationResultsPost201ResponseConsumerAuthenticationInformatio # Identifies the UI Type the ACS will use to complete the challenge. **NOTE**: Only available for App transactions using the Cardinal Mobile SDK. attr_accessor :acs_rendering_type + # Unique identifier assigned by the EMVCo Secretariat upon Testing and Approval. + attr_accessor :acs_reference_number + # Unique transaction identifier assigned by the ACS to identify a single transaction. attr_accessor :acs_transaction_id + # Directory Server assigned ACS identifier. + attr_accessor :acs_operator_id + # Raw authentication data that comes from the cardissuing bank. Primary authentication field that indicates if authentication was successful and if liability shift occurred. You should examine first the result of this field. This field contains one of these values: - `-1`: Invalid PARes. - `0`: Successful validation. - `1`: Cardholder is not participating, but the attempt to authenticate was recorded. - `6`: Issuer unable to perform authentication. - `9`: Cardholder did not complete authentication. attr_accessor :authentication_result + # Indicates the type of authentication that will be used to challenge the card holder. Possible Values: 01 - Static 02 - Dynamic 03 - OOB (Out of Band) 04 - Decoupled 20 - OTP hosted at merchant end. (Rupay S2S flow) **NOTE**: EMV 3-D Secure version 2.1.0 supports values 01-03. Version 2.2.0 supports values 01-04. Decoupled authentication is not supported at this time. + attr_accessor :authentication_type + # Message that explains the authenticationResult reply field. attr_accessor :authentication_status_msg @@ -43,12 +52,18 @@ class RiskV1AuthenticationResultsPost201ResponseConsumerAuthenticationInformatio # Field that is returned only when the CAVV is generated, which occurs when paresStatus contains the values Y (successful authentication) or A (attempted authentication). If you use the ATOS processor, send the value of this field in the `cavv_algorithm` request field of the authorization service. This field contains one of these values: - `2`: Visa, American Express, JCB, Diners Club, and Discover - `3`: Mastercard attr_accessor :cavv_algorithm + # An indicator as to why the transaction was canceled. Possible Values: - `01`: Cardholder selected Cancel. - `02`: Reserved for future EMVCo use (values invalid until defined by EMVCo). - `03`: Transaction Timed Out—Decoupled Authentication - `04`: Transaction timed out at ACS—other timeouts - `05`: Transaction Timed out at ACS - First CReq not received by ACS - `06`: Transaction Error - `07`: Unknown - `08`: Transaction Timed Out at SDK + attr_accessor :challenge_cancel_code + # The directory server error code indicating a problem with this transaction. Note - Max Length of this field is typically 3 characters. attr_accessor :directory_server_error_code # Directory server text and additional detail about the error for this transaction. attr_accessor :directory_server_error_description + # This field describes the type of 3DS transaction flow that took place. It can be one of three possible flows; CH - Challenge FR - Frictionless FD - Frictionless with delegation, (challenge not generated by the issuer but by the scheme on behalf of the issuer). + attr_accessor :effective_authentication_type + # Indicator used to differentiate Internet transactions from other types. The authentication failed if this field is not returned. For Visa, if your payment processor is Streamline, Barclays, AIBMS, or FDC Germany, you receive the value vbv_failure instead of internet when eci is 07. The value of this field is passed automatically to the authorization service if you request the services together. This field contains one of these values: - `aesk`: American Express SafeKey authentication verified successfully. - `aesk_attempted`: Card not enrolled in American Express SafeKey, but the attempt to authenticate was recorded. - `dipb`: Discover ProtectBuy authentication verified successfully. - `dipb_attempted`: Card not enrolled in Discover ProtectBuy, but the attempt to authenticate was recorded. - `internet`: Authentication was not verified successfully. - `js`: J/Secure authentication verified successfully. - `js_attempted`: Card not enrolled in J/Secure, but the attempt to authenticate was recorded. - `moto`: Mail or telephone order. - `pb_attempted`: Card not enrolled in Diners Club ProtectBuy, but the attempt to authenticate was recorded. - `recurring`: Recurring transaction. - `spa`: Mastercard Identity Check authentication verified successfully. - `spa_failure`: Mastercard Identity Check failed authentication. - `vbv`: Visa Secure authentication verified successfully. - `vbv_attempted`: Card not enrolled in Visa Secure, but the attempt to authenticate was recorded. - `vbv_failure`: Visa Secure authentication unavailable. attr_accessor :indicator @@ -95,8 +110,11 @@ class RiskV1AuthenticationResultsPost201ResponseConsumerAuthenticationInformatio def self.attribute_map { :'acs_rendering_type' => :'acsRenderingType', + :'acs_reference_number' => :'acsReferenceNumber', :'acs_transaction_id' => :'acsTransactionId', + :'acs_operator_id' => :'acsOperatorID', :'authentication_result' => :'authenticationResult', + :'authentication_type' => :'authenticationType', :'authentication_status_msg' => :'authenticationStatusMsg', :'authentication_transaction_id' => :'authenticationTransactionId', :'authentication_transaction_context_id' => :'authenticationTransactionContextId', @@ -104,8 +122,10 @@ def self.attribute_map :'authorization_payload' => :'authorizationPayload', :'cavv' => :'cavv', :'cavv_algorithm' => :'cavvAlgorithm', + :'challenge_cancel_code' => :'challengeCancelCode', :'directory_server_error_code' => :'directoryServerErrorCode', :'directory_server_error_description' => :'directoryServerErrorDescription', + :'effective_authentication_type' => :'effectiveAuthenticationType', :'indicator' => :'indicator', :'interaction_counter' => :'interactionCounter', :'eci' => :'eci', @@ -127,8 +147,11 @@ def self.attribute_map def self.json_map { :'acs_rendering_type' => :'acs_rendering_type', + :'acs_reference_number' => :'acs_reference_number', :'acs_transaction_id' => :'acs_transaction_id', + :'acs_operator_id' => :'acs_operator_id', :'authentication_result' => :'authentication_result', + :'authentication_type' => :'authentication_type', :'authentication_status_msg' => :'authentication_status_msg', :'authentication_transaction_id' => :'authentication_transaction_id', :'authentication_transaction_context_id' => :'authentication_transaction_context_id', @@ -136,8 +159,10 @@ def self.json_map :'authorization_payload' => :'authorization_payload', :'cavv' => :'cavv', :'cavv_algorithm' => :'cavv_algorithm', + :'challenge_cancel_code' => :'challenge_cancel_code', :'directory_server_error_code' => :'directory_server_error_code', :'directory_server_error_description' => :'directory_server_error_description', + :'effective_authentication_type' => :'effective_authentication_type', :'indicator' => :'indicator', :'interaction_counter' => :'interaction_counter', :'eci' => :'eci', @@ -159,8 +184,11 @@ def self.json_map def self.swagger_types { :'acs_rendering_type' => :'String', + :'acs_reference_number' => :'String', :'acs_transaction_id' => :'String', + :'acs_operator_id' => :'String', :'authentication_result' => :'String', + :'authentication_type' => :'String', :'authentication_status_msg' => :'String', :'authentication_transaction_id' => :'String', :'authentication_transaction_context_id' => :'String', @@ -168,8 +196,10 @@ def self.swagger_types :'authorization_payload' => :'String', :'cavv' => :'String', :'cavv_algorithm' => :'String', + :'challenge_cancel_code' => :'String', :'directory_server_error_code' => :'String', :'directory_server_error_description' => :'String', + :'effective_authentication_type' => :'String', :'indicator' => :'String', :'interaction_counter' => :'String', :'eci' => :'String', @@ -199,14 +229,26 @@ def initialize(attributes = {}) self.acs_rendering_type = attributes[:'acsRenderingType'] end + if attributes.has_key?(:'acsReferenceNumber') + self.acs_reference_number = attributes[:'acsReferenceNumber'] + end + if attributes.has_key?(:'acsTransactionId') self.acs_transaction_id = attributes[:'acsTransactionId'] end + if attributes.has_key?(:'acsOperatorID') + self.acs_operator_id = attributes[:'acsOperatorID'] + end + if attributes.has_key?(:'authenticationResult') self.authentication_result = attributes[:'authenticationResult'] end + if attributes.has_key?(:'authenticationType') + self.authentication_type = attributes[:'authenticationType'] + end + if attributes.has_key?(:'authenticationStatusMsg') self.authentication_status_msg = attributes[:'authenticationStatusMsg'] end @@ -235,6 +277,10 @@ def initialize(attributes = {}) self.cavv_algorithm = attributes[:'cavvAlgorithm'] end + if attributes.has_key?(:'challengeCancelCode') + self.challenge_cancel_code = attributes[:'challengeCancelCode'] + end + if attributes.has_key?(:'directoryServerErrorCode') self.directory_server_error_code = attributes[:'directoryServerErrorCode'] end @@ -243,6 +289,10 @@ def initialize(attributes = {}) self.directory_server_error_description = attributes[:'directoryServerErrorDescription'] end + if attributes.has_key?(:'effectiveAuthenticationType') + self.effective_authentication_type = attributes[:'effectiveAuthenticationType'] + end + if attributes.has_key?(:'indicator') self.indicator = attributes[:'indicator'] end @@ -313,12 +363,24 @@ def valid? true end + # Custom attribute writer method with validation + # @param [Object] acs_reference_number Value to be assigned + def acs_reference_number=(acs_reference_number) + @acs_reference_number = acs_reference_number + end + # Custom attribute writer method with validation # @param [Object] acs_transaction_id Value to be assigned def acs_transaction_id=(acs_transaction_id) @acs_transaction_id = acs_transaction_id end + # Custom attribute writer method with validation + # @param [Object] authentication_type Value to be assigned + def authentication_type=(authentication_type) + @authentication_type = authentication_type + end + # Custom attribute writer method with validation # @param [Object] authentication_transaction_id Value to be assigned def authentication_transaction_id=(authentication_transaction_id) @@ -349,12 +411,24 @@ def cavv_algorithm=(cavv_algorithm) @cavv_algorithm = cavv_algorithm end + # Custom attribute writer method with validation + # @param [Object] challenge_cancel_code Value to be assigned + def challenge_cancel_code=(challenge_cancel_code) + @challenge_cancel_code = challenge_cancel_code + end + # Custom attribute writer method with validation # @param [Object] directory_server_error_description Value to be assigned def directory_server_error_description=(directory_server_error_description) @directory_server_error_description = directory_server_error_description end + # Custom attribute writer method with validation + # @param [Object] effective_authentication_type Value to be assigned + def effective_authentication_type=(effective_authentication_type) + @effective_authentication_type = effective_authentication_type + end + # Custom attribute writer method with validation # @param [Object] interaction_counter Value to be assigned def interaction_counter=(interaction_counter) @@ -397,8 +471,11 @@ def ==(o) return true if self.equal?(o) self.class == o.class && acs_rendering_type == o.acs_rendering_type && + acs_reference_number == o.acs_reference_number && acs_transaction_id == o.acs_transaction_id && + acs_operator_id == o.acs_operator_id && authentication_result == o.authentication_result && + authentication_type == o.authentication_type && authentication_status_msg == o.authentication_status_msg && authentication_transaction_id == o.authentication_transaction_id && authentication_transaction_context_id == o.authentication_transaction_context_id && @@ -406,8 +483,10 @@ def ==(o) authorization_payload == o.authorization_payload && cavv == o.cavv && cavv_algorithm == o.cavv_algorithm && + challenge_cancel_code == o.challenge_cancel_code && directory_server_error_code == o.directory_server_error_code && directory_server_error_description == o.directory_server_error_description && + effective_authentication_type == o.effective_authentication_type && indicator == o.indicator && interaction_counter == o.interaction_counter && eci == o.eci && @@ -433,7 +512,7 @@ def eql?(o) # Calculates hash code according to all attributes. # @return [Fixnum] Hash code def hash - [acs_rendering_type, acs_transaction_id, authentication_result, authentication_status_msg, authentication_transaction_id, authentication_transaction_context_id, transaction_token, authorization_payload, cavv, cavv_algorithm, directory_server_error_code, directory_server_error_description, indicator, interaction_counter, eci, eci_raw, pares_status, sdk_transaction_id, specification_version, three_ds_server_transaction_id, ucaf_authentication_data, ucaf_collection_indicator, white_list_status, white_list_status_source, xid, directory_server_transaction_id].hash + [acs_rendering_type, acs_reference_number, acs_transaction_id, acs_operator_id, authentication_result, authentication_type, authentication_status_msg, authentication_transaction_id, authentication_transaction_context_id, transaction_token, authorization_payload, cavv, cavv_algorithm, challenge_cancel_code, directory_server_error_code, directory_server_error_description, effective_authentication_type, indicator, interaction_counter, eci, eci_raw, pares_status, sdk_transaction_id, specification_version, three_ds_server_transaction_id, ucaf_authentication_data, ucaf_collection_indicator, white_list_status, white_list_status_source, xid, directory_server_transaction_id].hash end # Builds the object from hash diff --git a/lib/cybersource_rest_client/models/risk_v1_authentications_post201_response.rb b/lib/cybersource_rest_client/models/risk_v1_authentications_post201_response.rb index ae69a51f..71ac12b9 100644 --- a/lib/cybersource_rest_client/models/risk_v1_authentications_post201_response.rb +++ b/lib/cybersource_rest_client/models/risk_v1_authentications_post201_response.rb @@ -21,10 +21,7 @@ class RiskV1AuthenticationsPost201Response # 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 - # Time that the transaction was submitted in local time. Generated by Cybersource. - attr_accessor :submit_time_local - - # The status for payerAuthentication 201 enroll and validate calls. Possible values are: - `AUTHENTICATION_SUCCESSFUL` - `PENDING_AUTHENTICATION` - `INVALID_REQUEST` - `AUTHENTICATION_FAILED` + # The status for payerAuthentication 201 enroll and validate calls. Possible values are: - `AUTHENTICATION_SUCCESSFUL` - `PENDING_AUTHENTICATION` - `AUTHENTICATION_FAILED` attr_accessor :status # The message describing the reason of the status. Value is: - The cardholder is enrolled in Payer Authentication. Please authenticate the cardholder before continuing with the transaction. @@ -44,7 +41,6 @@ def self.attribute_map :'_links' => :'_links', :'id' => :'id', :'submit_time_utc' => :'submitTimeUtc', - :'submit_time_local' => :'submitTimeLocal', :'status' => :'status', :'message' => :'message', :'client_reference_information' => :'clientReferenceInformation', @@ -60,7 +56,6 @@ def self.json_map :'_links' => :'_links', :'id' => :'id', :'submit_time_utc' => :'submit_time_utc', - :'submit_time_local' => :'submit_time_local', :'status' => :'status', :'message' => :'message', :'client_reference_information' => :'client_reference_information', @@ -76,7 +71,6 @@ def self.swagger_types :'_links' => :'PtsV2IncrementalAuthorizationPatch201ResponseLinks', :'id' => :'String', :'submit_time_utc' => :'String', - :'submit_time_local' => :'String', :'status' => :'String', :'message' => :'String', :'client_reference_information' => :'RiskV1DecisionsPost201ResponseClientReferenceInformation', @@ -106,10 +100,6 @@ def initialize(attributes = {}) self.submit_time_utc = attributes[:'submitTimeUtc'] end - if attributes.has_key?(:'submitTimeLocal') - self.submit_time_local = attributes[:'submitTimeLocal'] - end - if attributes.has_key?(:'status') self.status = attributes[:'status'] end @@ -162,7 +152,6 @@ def ==(o) _links == o._links && id == o.id && submit_time_utc == o.submit_time_utc && - submit_time_local == o.submit_time_local && status == o.status && message == o.message && client_reference_information == o.client_reference_information && @@ -180,7 +169,7 @@ def eql?(o) # Calculates hash code according to all attributes. # @return [Fixnum] Hash code def hash - [_links, id, submit_time_utc, submit_time_local, status, message, client_reference_information, order_information, consumer_authentication_information, error_information].hash + [_links, id, submit_time_utc, status, message, client_reference_information, order_information, consumer_authentication_information, error_information].hash end # Builds the object from hash diff --git a/lib/cybersource_rest_client/models/risk_v1_authentications_post400_response_1.rb b/lib/cybersource_rest_client/models/risk_v1_authentications_post400_response_1.rb index 71b4c169..71d90984 100644 --- a/lib/cybersource_rest_client/models/risk_v1_authentications_post400_response_1.rb +++ b/lib/cybersource_rest_client/models/risk_v1_authentications_post400_response_1.rb @@ -16,7 +16,7 @@ class RiskV1AuthenticationsPost400Response1 # 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 status for payerAuthentication 201 enroll and validate calls. Value is: - `INVALID_REQUEST` + # The status for payerAuthentication 400 enroll and validate calls. Value is: - `INVALID_REQUEST` attr_accessor :status # The reason of the status. Possible Values: - `MISSING_FIELD` - `INVALID_DATA` diff --git a/lib/cybersource_rest_client/models/riskv1authenticationresults_consumer_authentication_information.rb b/lib/cybersource_rest_client/models/riskv1authenticationresults_consumer_authentication_information.rb index cc8642c9..61981698 100644 --- a/lib/cybersource_rest_client/models/riskv1authenticationresults_consumer_authentication_information.rb +++ b/lib/cybersource_rest_client/models/riskv1authenticationresults_consumer_authentication_information.rb @@ -22,12 +22,6 @@ class Riskv1authenticationresultsConsumerAuthenticationInformation # OTP entered by the card holder. attr_accessor :otp_token - # Indicates the type of authentication that will be used to challenge the card holder. Possible Values: 01 - Static 02 - Dynamic 03 - OOB (Out of Band) 04 - Decoupled 20 - OTP hosted at merchant end. (Rupay S2S flow) **NOTE**: EMV 3-D Secure version 2.1.0 supports values 01-03. Version 2.2.0 supports values 01-04. Decoupled authentication is not supported at this time. - attr_accessor :authentication_type - - # This field describes the type of 3DS transaction flow that took place. It can be one of three possible flows; CH - Challenge FR - Frictionless FD - Frictionless with delegation, (challenge not generated by the issuer but by the scheme on behalf of the issuer). - attr_accessor :effective_authentication_type - # JWT returned by the 3D Secure provider when the authentication is complete. Required for Hybrid integration if you use the Cybersource-generated access token. Note: Max. length of this field is 2048 characters. attr_accessor :response_access_token @@ -49,8 +43,6 @@ def self.attribute_map :'authentication_transaction_id' => :'authenticationTransactionId', :'authentication_transaction_context' => :'authenticationTransactionContext', :'otp_token' => :'otpToken', - :'authentication_type' => :'authenticationType', - :'effective_authentication_type' => :'effectiveAuthenticationType', :'response_access_token' => :'responseAccessToken', :'signed_pares_status_reason' => :'signedParesStatusReason', :'signed_pares' => :'signedPares', @@ -65,8 +57,6 @@ def self.json_map :'authentication_transaction_id' => :'authentication_transaction_id', :'authentication_transaction_context' => :'authentication_transaction_context', :'otp_token' => :'otp_token', - :'authentication_type' => :'authentication_type', - :'effective_authentication_type' => :'effective_authentication_type', :'response_access_token' => :'response_access_token', :'signed_pares_status_reason' => :'signed_pares_status_reason', :'signed_pares' => :'signed_pares', @@ -81,8 +71,6 @@ def self.swagger_types :'authentication_transaction_id' => :'String', :'authentication_transaction_context' => :'String', :'otp_token' => :'String', - :'authentication_type' => :'String', - :'effective_authentication_type' => :'String', :'response_access_token' => :'String', :'signed_pares_status_reason' => :'String', :'signed_pares' => :'String', @@ -111,14 +99,6 @@ def initialize(attributes = {}) self.otp_token = attributes[:'otpToken'] end - if attributes.has_key?(:'authenticationType') - self.authentication_type = attributes[:'authenticationType'] - end - - if attributes.has_key?(:'effectiveAuthenticationType') - self.effective_authentication_type = attributes[:'effectiveAuthenticationType'] - end - if attributes.has_key?(:'responseAccessToken') self.response_access_token = attributes[:'responseAccessToken'] end @@ -144,18 +124,27 @@ def initialize(attributes = {}) # @return Array for valid properties with the reasons def list_invalid_properties invalid_properties = Array.new + if @authentication_transaction_id.nil? + invalid_properties.push('invalid value for "authentication_transaction_id", authentication_transaction_id 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 @authentication_transaction_id.nil? true end # Custom attribute writer method with validation # @param [Object] authentication_transaction_id Value to be assigned def authentication_transaction_id=(authentication_transaction_id) + #if authentication_transaction_id.nil? + #fail ArgumentError, 'authentication_transaction_id cannot be nil' + #end + @authentication_transaction_id = authentication_transaction_id end @@ -171,18 +160,6 @@ def otp_token=(otp_token) @otp_token = otp_token end - # Custom attribute writer method with validation - # @param [Object] authentication_type Value to be assigned - def authentication_type=(authentication_type) - @authentication_type = authentication_type - end - - # Custom attribute writer method with validation - # @param [Object] effective_authentication_type Value to be assigned - def effective_authentication_type=(effective_authentication_type) - @effective_authentication_type = effective_authentication_type - end - # Custom attribute writer method with validation # @param [Object] signed_pares_status_reason Value to be assigned def signed_pares_status_reason=(signed_pares_status_reason) @@ -209,8 +186,6 @@ def ==(o) authentication_transaction_id == o.authentication_transaction_id && authentication_transaction_context == o.authentication_transaction_context && otp_token == o.otp_token && - authentication_type == o.authentication_type && - effective_authentication_type == o.effective_authentication_type && response_access_token == o.response_access_token && signed_pares_status_reason == o.signed_pares_status_reason && signed_pares == o.signed_pares && @@ -227,7 +202,7 @@ def eql?(o) # Calculates hash code according to all attributes. # @return [Fixnum] Hash code def hash - [authentication_transaction_id, authentication_transaction_context, otp_token, authentication_type, effective_authentication_type, response_access_token, signed_pares_status_reason, signed_pares, white_list_status, credential_encrypted].hash + [authentication_transaction_id, authentication_transaction_context, otp_token, response_access_token, signed_pares_status_reason, signed_pares, white_list_status, credential_encrypted].hash end # Builds the object from hash diff --git a/lib/cybersource_rest_client/models/riskv1authenticationresults_payment_information_card.rb b/lib/cybersource_rest_client/models/riskv1authenticationresults_payment_information_card.rb index 6723b30f..cdf2ce52 100644 --- a/lib/cybersource_rest_client/models/riskv1authenticationresults_payment_information_card.rb +++ b/lib/cybersource_rest_client/models/riskv1authenticationresults_payment_information_card.rb @@ -13,9 +13,6 @@ module CyberSource class Riskv1authenticationresultsPaymentInformationCard - # description: The BIN is the first six digits of the card's Primary Account Number (PAN). - attr_accessor :bin - # Three-digit value that indicates the card type. **IMPORTANT** It is strongly recommended that you include the card type field in request messages even if it is optional for your processor and card type. Omitting the card type can cause the transaction to be processed with the wrong card type. Possible values: - `001`: Visa. For card-present transactions on all processors except SIX, the Visa Electron card type is processed the same way that the Visa debit card is processed. Use card type value `001` for Visa Electron. - `002`: Mastercard, Eurocard[^1], which is a European regional brand of Mastercard. - `003`: American Express - `004`: Discover - `005`: Diners Club - `006`: Carte Blanche[^1] - `007`: JCB[^1] - `014`: Enroute[^1] - `021`: JAL[^1] - `024`: Maestro (UK Domestic)[^1] - `031`: Delta[^1]: Use this value only for Ingenico ePayments. For other processors, use `001` for all Visa card types. - `033`: Visa Electron[^1]. Use this value only for Ingenico ePayments and SIX. For other processors, use `001` for all Visa card types. - `034`: Dankort[^1] - `036`: Cartes Bancaires[^1,4] - `037`: Carta Si[^1] - `039`: Encoded account number[^1] - `040`: UATP[^1] - `042`: Maestro (International)[^1] - `050`: Hipercard[^2,3] - `051`: Aura - `054`: Elo[^3] - `062`: China UnionPay - '070': EFTPOS [^1]: For this card type, you must include the `paymentInformation.card.type` or `paymentInformation.tokenizedCard.type` field in your request for an authorization or a stand-alone credit. [^2]: For this card type on Cielo 3.0, you must include the `paymentInformation.card.type` or `paymentInformation.tokenizedCard.type` field in a request for an authorization or a stand-alone credit. This card type is not supported on Cielo 1.5. [^3]: For this card type on Getnet and Rede, you must include the `paymentInformation.card.type` or `paymentInformation.tokenizedCard.type` field in a request for an authorization or a stand-alone credit. [^4]: For this card type, you must include the `paymentInformation.card.type` in your request for any payer authentication services. #### Used by **Authorization** Required for Carte Blanche and JCB. Optional for all other card types. #### Card Present reply This field is included in the reply message when the client software that is installed on the POS terminal uses the token management service (TMS) to retrieve tokenized payment details. You must contact customer support to have your account enabled to receive these fields in the credit reply message. Returned by the Credit service. This reply field is only supported by the following processors: - American Express Direct - Credit Mutuel-CIC - FDC Nashville Global - OmniPay Direct - SIX #### Google Pay transactions For PAN-based Google Pay transactions, this field is returned in the API response. #### GPX This field only supports transactions from the following card types: - Visa - Mastercard - AMEX - Discover - Diners - JCB - Union Pay International attr_accessor :type @@ -31,7 +28,6 @@ class Riskv1authenticationresultsPaymentInformationCard # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { - :'bin' => :'bin', :'type' => :'type', :'expiration_month' => :'expirationMonth', :'expiration_year' => :'expirationYear', @@ -42,7 +38,6 @@ def self.attribute_map # Attribute mapping from JSON key to ruby-style variable name. def self.json_map { - :'bin' => :'bin', :'type' => :'type', :'expiration_month' => :'expiration_month', :'expiration_year' => :'expiration_year', @@ -53,7 +48,6 @@ def self.json_map # Attribute type mapping. def self.swagger_types { - :'bin' => :'String', :'type' => :'String', :'expiration_month' => :'String', :'expiration_year' => :'String', @@ -69,10 +63,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?(:'bin') - self.bin = attributes[:'bin'] - end - if attributes.has_key?(:'type') self.type = attributes[:'type'] end @@ -103,12 +93,6 @@ def valid? true end - # Custom attribute writer method with validation - # @param [Object] bin Value to be assigned - def bin=(bin) - @bin = bin - end - # Custom attribute writer method with validation # @param [Object] expiration_month Value to be assigned def expiration_month=(expiration_month) @@ -132,7 +116,6 @@ def number=(number) def ==(o) return true if self.equal?(o) self.class == o.class && - bin == o.bin && type == o.type && expiration_month == o.expiration_month && expiration_year == o.expiration_year && @@ -148,7 +131,7 @@ def eql?(o) # Calculates hash code according to all attributes. # @return [Fixnum] Hash code def hash - [bin, type, expiration_month, expiration_year, number].hash + [type, expiration_month, expiration_year, number].hash end # Builds the object from hash diff --git a/lib/cybersource_rest_client/models/riskv1authentications_device_information.rb b/lib/cybersource_rest_client/models/riskv1authentications_device_information.rb index 6dbaaa9b..92623aa2 100644 --- a/lib/cybersource_rest_client/models/riskv1authentications_device_information.rb +++ b/lib/cybersource_rest_client/models/riskv1authentications_device_information.rb @@ -165,12 +165,52 @@ def initialize(attributes = {}) # @return Array for valid properties with the reasons def list_invalid_properties invalid_properties = Array.new + if @http_accept_content.nil? + invalid_properties.push('invalid value for "http_accept_content", http_accept_content cannot be nil.') + end + + if @http_browser_language.nil? + invalid_properties.push('invalid value for "http_browser_language", http_browser_language cannot be nil.') + end + + if @http_browser_java_enabled.nil? + invalid_properties.push('invalid value for "http_browser_java_enabled", http_browser_java_enabled cannot be nil.') + end + + if @http_browser_color_depth.nil? + invalid_properties.push('invalid value for "http_browser_color_depth", http_browser_color_depth cannot be nil.') + end + + if @http_browser_screen_height.nil? + invalid_properties.push('invalid value for "http_browser_screen_height", http_browser_screen_height cannot be nil.') + end + + if @http_browser_screen_width.nil? + invalid_properties.push('invalid value for "http_browser_screen_width", http_browser_screen_width cannot be nil.') + end + + if @http_browser_time_difference.nil? + invalid_properties.push('invalid value for "http_browser_time_difference", http_browser_time_difference cannot be nil.') + end + + if @user_agent_browser_value.nil? + invalid_properties.push('invalid value for "user_agent_browser_value", user_agent_browser_value 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 @http_accept_content.nil? + return false if @http_browser_language.nil? + return false if @http_browser_java_enabled.nil? + return false if @http_browser_color_depth.nil? + return false if @http_browser_screen_height.nil? + return false if @http_browser_screen_width.nil? + return false if @http_browser_time_difference.nil? + return false if @user_agent_browser_value.nil? true end @@ -189,42 +229,70 @@ def http_accept_browser_value=(http_accept_browser_value) # Custom attribute writer method with validation # @param [Object] http_accept_content Value to be assigned def http_accept_content=(http_accept_content) + #if http_accept_content.nil? + #fail ArgumentError, 'http_accept_content cannot be nil' + #end + @http_accept_content = http_accept_content end # Custom attribute writer method with validation # @param [Object] http_browser_language Value to be assigned def http_browser_language=(http_browser_language) + #if http_browser_language.nil? + #fail ArgumentError, 'http_browser_language cannot be nil' + #end + @http_browser_language = http_browser_language end # Custom attribute writer method with validation # @param [Object] http_browser_color_depth Value to be assigned def http_browser_color_depth=(http_browser_color_depth) + #if http_browser_color_depth.nil? + #fail ArgumentError, 'http_browser_color_depth cannot be nil' + #end + @http_browser_color_depth = http_browser_color_depth end # Custom attribute writer method with validation # @param [Object] http_browser_screen_height Value to be assigned def http_browser_screen_height=(http_browser_screen_height) + #if http_browser_screen_height.nil? + #fail ArgumentError, 'http_browser_screen_height cannot be nil' + #end + @http_browser_screen_height = http_browser_screen_height end # Custom attribute writer method with validation # @param [Object] http_browser_screen_width Value to be assigned def http_browser_screen_width=(http_browser_screen_width) + #if http_browser_screen_width.nil? + #fail ArgumentError, 'http_browser_screen_width cannot be nil' + #end + @http_browser_screen_width = http_browser_screen_width end # Custom attribute writer method with validation # @param [Object] http_browser_time_difference Value to be assigned def http_browser_time_difference=(http_browser_time_difference) + #if http_browser_time_difference.nil? + #fail ArgumentError, 'http_browser_time_difference cannot be nil' + #end + @http_browser_time_difference = http_browser_time_difference end # Custom attribute writer method with validation # @param [Object] user_agent_browser_value Value to be assigned def user_agent_browser_value=(user_agent_browser_value) + #if user_agent_browser_value.nil? + #fail ArgumentError, 'user_agent_browser_value cannot be nil' + #end + @user_agent_browser_value = user_agent_browser_value end diff --git a/lib/cybersource_rest_client/models/riskv1authentications_payment_information.rb b/lib/cybersource_rest_client/models/riskv1authentications_payment_information.rb index 0fab3d45..bc2311d8 100644 --- a/lib/cybersource_rest_client/models/riskv1authentications_payment_information.rb +++ b/lib/cybersource_rest_client/models/riskv1authentications_payment_information.rb @@ -44,7 +44,7 @@ def self.json_map # Attribute type mapping. def self.swagger_types { - :'card' => :'Riskv1authenticationsPaymentInformationCard', + :'card' => :'Riskv1authenticationsetupsPaymentInformationCard', :'tokenized_card' => :'Riskv1authenticationsPaymentInformationTokenizedCard', :'fluid_data' => :'Riskv1authenticationsetupsPaymentInformationFluidData', :'customer' => :'Ptsv2paymentsPaymentInformationCustomer' diff --git a/lib/cybersource_rest_client/models/riskv1authenticationsetups_client_reference_information.rb b/lib/cybersource_rest_client/models/riskv1authenticationsetups_client_reference_information.rb new file mode 100644 index 00000000..8106ac14 --- /dev/null +++ b/lib/cybersource_rest_client/models/riskv1authenticationsetups_client_reference_information.rb @@ -0,0 +1,240 @@ +=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 Riskv1authenticationsetupsClientReferenceInformation + # 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 + + # Used to resume a transaction that was paused for an order modification rule to allow for payer authentication to complete. To resume and continue with the authorization/decision service flow, call the services and include the request id from the prior decision call. + attr_accessor :paused_request_id + + # Brief description of the order or any comment you wish to add to the order. + attr_accessor :comments + + attr_accessor :partner + + # Attribute mapping from ruby-style variable name to JSON key. + def self.attribute_map + { + :'code' => :'code', + :'paused_request_id' => :'pausedRequestId', + :'comments' => :'comments', + :'partner' => :'partner' + } + end + + # Attribute mapping from JSON key to ruby-style variable name. + def self.json_map + { + :'code' => :'code', + :'paused_request_id' => :'paused_request_id', + :'comments' => :'comments', + :'partner' => :'partner' + } + end + + # Attribute type mapping. + def self.swagger_types + { + :'code' => :'String', + :'paused_request_id' => :'String', + :'comments' => :'String', + :'partner' => :'Riskv1decisionsClientReferenceInformationPartner' + } + 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?(:'pausedRequestId') + self.paused_request_id = attributes[:'pausedRequestId'] + end + + if attributes.has_key?(:'comments') + self.comments = attributes[:'comments'] + end + + if attributes.has_key?(:'partner') + self.partner = attributes[:'partner'] + 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] paused_request_id Value to be assigned + def paused_request_id=(paused_request_id) + @paused_request_id = paused_request_id + 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 && + paused_request_id == o.paused_request_id && + comments == o.comments && + partner == o.partner + 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, paused_request_id, comments, partner].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/riskv1decisions_consumer_authentication_information.rb b/lib/cybersource_rest_client/models/riskv1decisions_consumer_authentication_information.rb index d35a7835..009f69b5 100644 --- a/lib/cybersource_rest_client/models/riskv1decisions_consumer_authentication_information.rb +++ b/lib/cybersource_rest_client/models/riskv1decisions_consumer_authentication_information.rb @@ -15,9 +15,6 @@ module CyberSource class Riskv1decisionsConsumerAuthenticationInformation attr_accessor :strong_authentication - # Indicates the type of authentication that will be used to challenge the card holder. Possible Values: 01 - Static 02 - Dynamic 03 - OOB (Out of Band) 04 - Decoupled 20 - OTP hosted at merchant end. (Rupay S2S flow) **NOTE**: EMV 3-D Secure version 2.1.0 supports values 01-03. Version 2.2.0 supports values 01-04. Decoupled authentication is not supported at this time. - attr_accessor :authentication_type - # An override field that a merchant can pass in to set the challenge window size to display to the end cardholder. The ACS (Active Control Server) will reply with content that is formatted appropriately to this window size to allow for the best user experience. The sizes are width x height in pixels of the window displayed in the cardholder browser window. 01 - 250x400 02 - 390x400 03 - 500x600 04 - 600x400 05 - Full page attr_accessor :acs_window_size @@ -142,7 +139,6 @@ class Riskv1decisionsConsumerAuthenticationInformation def self.attribute_map { :'strong_authentication' => :'strongAuthentication', - :'authentication_type' => :'authenticationType', :'acs_window_size' => :'acsWindowSize', :'alternate_authentication_data' => :'alternateAuthenticationData', :'alternate_authentication_date' => :'alternateAuthenticationDate', @@ -190,7 +186,6 @@ def self.attribute_map def self.json_map { :'strong_authentication' => :'strong_authentication', - :'authentication_type' => :'authentication_type', :'acs_window_size' => :'acs_window_size', :'alternate_authentication_data' => :'alternate_authentication_data', :'alternate_authentication_date' => :'alternate_authentication_date', @@ -238,7 +233,6 @@ def self.json_map def self.swagger_types { :'strong_authentication' => :'Riskv1decisionsConsumerAuthenticationInformationStrongAuthentication', - :'authentication_type' => :'String', :'acs_window_size' => :'String', :'alternate_authentication_data' => :'String', :'alternate_authentication_date' => :'String', @@ -294,10 +288,6 @@ def initialize(attributes = {}) self.strong_authentication = attributes[:'strongAuthentication'] end - if attributes.has_key?(:'authenticationType') - self.authentication_type = attributes[:'authenticationType'] - end - if attributes.has_key?(:'acsWindowSize') self.acs_window_size = attributes[:'acsWindowSize'] end @@ -463,21 +453,20 @@ def initialize(attributes = {}) # @return Array for valid properties with the reasons def list_invalid_properties invalid_properties = Array.new + if @device_channel.nil? + invalid_properties.push('invalid value for "device_channel", device_channel 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 @device_channel.nil? true end - # Custom attribute writer method with validation - # @param [Object] authentication_type Value to be assigned - def authentication_type=(authentication_type) - @authentication_type = authentication_type - end - # Custom attribute writer method with validation # @param [Object] acs_window_size Value to be assigned def acs_window_size=(acs_window_size) @@ -541,6 +530,10 @@ def decoupled_authentication_max_time=(decoupled_authentication_max_time) # Custom attribute writer method with validation # @param [Object] device_channel Value to be assigned def device_channel=(device_channel) + #if device_channel.nil? + #fail ArgumentError, 'device_channel cannot be nil' + #end + @device_channel = device_channel end @@ -658,7 +651,6 @@ def ==(o) return true if self.equal?(o) self.class == o.class && strong_authentication == o.strong_authentication && - authentication_type == o.authentication_type && acs_window_size == o.acs_window_size && alternate_authentication_data == o.alternate_authentication_data && alternate_authentication_date == o.alternate_authentication_date && @@ -710,7 +702,7 @@ def eql?(o) # Calculates hash code according to all attributes. # @return [Fixnum] Hash code def hash - [strong_authentication, authentication_type, acs_window_size, alternate_authentication_data, alternate_authentication_date, alternate_authentication_method, authentication_date, authentication_transaction_id, transaction_flow_indicator, challenge_cancel_code, challenge_code, challenge_status, customer_card_alias, decoupled_authentication_indicator, decoupled_authentication_max_time, default_card, device_channel, installment_total_count, merchant_fraud_rate, marketing_opt_in, marketing_source, mcc, merchant_score, message_category, npa_code, override_payment_method, override_country_code, prior_authentication_data, prior_authentication_method, prior_authentication_reference_id, prior_authentication_time, product_code, return_url, requestor_id, requestor_initiated_authentication_indicator, requestor_name, reference_id, sdk_max_timeout, secure_corporate_payment_indicator, transaction_mode, white_list_status, score_request].hash + [strong_authentication, acs_window_size, alternate_authentication_data, alternate_authentication_date, alternate_authentication_method, authentication_date, authentication_transaction_id, transaction_flow_indicator, challenge_cancel_code, challenge_code, challenge_status, customer_card_alias, decoupled_authentication_indicator, decoupled_authentication_max_time, default_card, device_channel, installment_total_count, merchant_fraud_rate, marketing_opt_in, marketing_source, mcc, merchant_score, message_category, npa_code, override_payment_method, override_country_code, prior_authentication_data, prior_authentication_method, prior_authentication_reference_id, prior_authentication_time, product_code, return_url, requestor_id, requestor_initiated_authentication_indicator, requestor_name, reference_id, sdk_max_timeout, secure_corporate_payment_indicator, transaction_mode, white_list_status, score_request].hash end # Builds the object from hash diff --git a/lib/cybersource_rest_client/models/validate_request.rb b/lib/cybersource_rest_client/models/validate_request.rb index bcba65a1..a27c2d0b 100644 --- a/lib/cybersource_rest_client/models/validate_request.rb +++ b/lib/cybersource_rest_client/models/validate_request.rb @@ -56,7 +56,7 @@ def self.json_map # Attribute type mapping. def self.swagger_types { - :'client_reference_information' => :'Riskv1decisionsClientReferenceInformation', + :'client_reference_information' => :'Riskv1authenticationsetupsClientReferenceInformation', :'processing_information' => :'Riskv1authenticationsetupsProcessingInformation', :'order_information' => :'Riskv1authenticationresultsOrderInformation', :'payment_information' => :'Riskv1authenticationresultsPaymentInformation', diff --git a/spec/api/batches_api_spec.rb b/spec/api/batches_api_spec.rb index 8a523625..eec61d91 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 [InlineResponse2008] + # @return [InlineResponse2007] 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 [InlineResponse2007] + # @return [InlineResponse2006] 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 [InlineResponse2006] + # @return [InlineResponse2005] 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/bin_lookup_api_spec.rb b/spec/api/bin_lookup_api_spec.rb index c959e3c2..f834d917 100644 --- a/spec/api/bin_lookup_api_spec.rb +++ b/spec/api/bin_lookup_api_spec.rb @@ -33,7 +33,7 @@ # unit tests for get_account_info # BIN Lookup API - # The BIN Lookup Service is a versatile business tool that provides card network agnostic solution designed to ensure frictionless transaction experience by utilizing up-to-date Bank Identification Number (BIN) attributes sourced from multiple global and regional data sources. This service helps to improve authorization rates by helping to route transactions to the best-suited card network, minimizes fraud through card detail verification and aids in regulatory compliance by identifying card properties. The service is flexible and provides businesses with a flexible choice of inputs such as primary account number (PAN), network token from major networks which includes device PAN (DPAN), and all types of tokens generated via CyberSource Token Management Service (TMS). Currently, the range of available credentials is contingent on the networks enabled for the business entity. Therefore, the network information specified in this documentation is illustrative and subject to personalized offerings for each reseller or merchant. + # The BIN Lookup Service is a versatile business tool that provides card network agnostic solution designed to ensure frictionless transaction experience by utilizing up-to-date Bank Identification Number (BIN) attributes sourced from multiple global and regional data sources. This service helps to improve authorization rates by helping to route transactions to the best-suited card network, minimizes fraud through card detail verification and aids in regulatory compliance by identifying card properties. The service is flexible and provides businesses with a flexible choice of inputs such as primary account number (PAN), network token from major networks which includes device PAN (DPAN), and all types of tokens generated via CyberSource Token Management Service (TMS). Currently, the range of available credentials is contingent on the networks enabled for the business entity. Therefore, the network information specified in this documentation is illustrative and subject to personalized offerings for each reseller or merchant. # @param create_bin_lookup_request # @param [Hash] opts the optional parameters # @return [InlineResponse2011] diff --git a/spec/api/create_new_webhooks_api_spec.rb b/spec/api/create_new_webhooks_api_spec.rb index 52abdc35..b0f6274d 100644 --- a/spec/api/create_new_webhooks_api_spec.rb +++ b/spec/api/create_new_webhooks_api_spec.rb @@ -48,7 +48,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/manage_webhooks_api_spec.rb b/spec/api/manage_webhooks_api_spec.rb index 5d1f57bd..df902111 100644 --- a/spec/api/manage_webhooks_api_spec.rb +++ b/spec/api/manage_webhooks_api_spec.rb @@ -48,7 +48,7 @@ # Retrieve the details of a specific webhook by supplying the webhook ID in the path. # @param webhook_id The webhook Identifier # @param [Hash] opts the optional parameters - # @return [InlineResponse2005] + # @return [InlineResponse2004] describe 'get_webhook_subscription_by_id test' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers @@ -62,7 +62,7 @@ # @param product_id The Product Identifier. # @param event_type The Event Type. # @param [Hash] opts the optional parameters - # @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 diff --git a/spec/api/merchant_boarding_api_spec.rb b/spec/api/merchant_boarding_api_spec.rb index 224df0eb..c3682b6e 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 [InlineResponse2002] + # @return [InlineResponse2001] 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/models/create_payment_request_spec.rb b/spec/models/create_payment_request_spec.rb index e5c98e3b..8df8e655 100644 --- a/spec/models/create_payment_request_spec.rb +++ b/spec/models/create_payment_request_spec.rb @@ -67,6 +67,12 @@ end end + describe 'test attribute "sender_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 "recipient_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_1_integration_information_spec.rb b/spec/models/inline_response_200_1_integration_information_spec.rb new file mode 100644 index 00000000..87cc379e --- /dev/null +++ b/spec/models/inline_response_200_1_integration_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::InlineResponse2001IntegrationInformation +# Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen) +# Please update as you see appropriate +describe 'InlineResponse2001IntegrationInformation' do + before do + # run before each test + @instance = CyberSource::InlineResponse2001IntegrationInformation.new + end + + after do + # run after each test + end + + describe 'test an instance of InlineResponse2001IntegrationInformation' do + it 'should create an instance of InlineResponse2001IntegrationInformation' do + expect(@instance).to be_instance_of(CyberSource::InlineResponse2001IntegrationInformation) + end + end + describe 'test attribute "oauth2"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + describe 'test attribute "tenant_configurations"' 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_1_integration_information_tenant_configurations_spec.rb b/spec/models/inline_response_200_1_integration_information_tenant_configurations_spec.rb new file mode 100644 index 00000000..4549fb13 --- /dev/null +++ b/spec/models/inline_response_200_1_integration_information_tenant_configurations_spec.rb @@ -0,0 +1,68 @@ +=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::InlineResponse2001IntegrationInformationTenantConfigurations +# Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen) +# Please update as you see appropriate +describe 'InlineResponse2001IntegrationInformationTenantConfigurations' do + before do + # run before each test + @instance = CyberSource::InlineResponse2001IntegrationInformationTenantConfigurations.new + end + + after do + # run after each test + end + + describe 'test an instance of InlineResponse2001IntegrationInformationTenantConfigurations' do + it 'should create an instance of InlineResponse2001IntegrationInformationTenantConfigurations' do + expect(@instance).to be_instance_of(CyberSource::InlineResponse2001IntegrationInformationTenantConfigurations) + 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 + + describe 'test attribute "tenant_configuration_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 "status"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["LIVE", "INACTIVE", "TEST"]) + # validator.allowable_values.each do |value| + # expect { @instance.status = value }.not_to raise_error + # end + 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 "tenant_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_1_spec.rb b/spec/models/inline_response_200_1_spec.rb index 7131ef36..15ed25b8 100644 --- a/spec/models/inline_response_200_1_spec.rb +++ b/spec/models/inline_response_200_1_spec.rb @@ -31,37 +31,43 @@ expect(@instance).to be_instance_of(CyberSource::InlineResponse2001) end end - describe 'test attribute "submit_time_utc"' 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 "total_count"' 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 "offset"' 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 "limit"' do + 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 "sort"' do + 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 "keys"' do + 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_2_spec.rb b/spec/models/inline_response_200_2_spec.rb index e73389db..e5c0aeef 100644 --- a/spec/models/inline_response_200_2_spec.rb +++ b/spec/models/inline_response_200_2_spec.rb @@ -31,43 +31,19 @@ expect(@instance).to be_instance_of(CyberSource::InlineResponse2002) end end - describe 'test attribute "registration_information"' 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 "integration_information"' 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 "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 + 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_3_spec.rb b/spec/models/inline_response_200_3_spec.rb index 8230cca2..632bd163 100644 --- a/spec/models/inline_response_200_3_spec.rb +++ b/spec/models/inline_response_200_3_spec.rb @@ -31,19 +31,85 @@ expect(@instance).to be_instance_of(CyberSource::InlineResponse2003) end end - describe 'test attribute "product_id"' 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 "product_name"' 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 "event_types"' 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 "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 "notification_scope"' 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 "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 "additional_attributes"' 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__embedded__links_reports_spec.rb b/spec/models/inline_response_200_5__embedded__links_reports_spec.rb new file mode 100644 index 00000000..60167518 --- /dev/null +++ b/spec/models/inline_response_200_5__embedded__links_reports_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::InlineResponse2005EmbeddedLinksReports +# Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen) +# Please update as you see appropriate +describe 'InlineResponse2005EmbeddedLinksReports' do + before do + # run before each test + @instance = CyberSource::InlineResponse2005EmbeddedLinksReports.new + end + + after do + # run after each test + end + + describe 'test an instance of InlineResponse2005EmbeddedLinksReports' do + it 'should create an instance of InlineResponse2005EmbeddedLinksReports' do + expect(@instance).to be_instance_of(CyberSource::InlineResponse2005EmbeddedLinksReports) + 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/inline_response_200_5__embedded__links_spec.rb b/spec/models/inline_response_200_5__embedded__links_spec.rb new file mode 100644 index 00000000..2d810ce2 --- /dev/null +++ b/spec/models/inline_response_200_5__embedded__links_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::InlineResponse2005EmbeddedLinks +# Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen) +# Please update as you see appropriate +describe 'InlineResponse2005EmbeddedLinks' do + before do + # run before each test + @instance = CyberSource::InlineResponse2005EmbeddedLinks.new + end + + after do + # run after each test + end + + describe 'test an instance of InlineResponse2005EmbeddedLinks' do + it 'should create an instance of InlineResponse2005EmbeddedLinks' do + expect(@instance).to be_instance_of(CyberSource::InlineResponse2005EmbeddedLinks) + end + end + describe 'test attribute "reports"' 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_5__embedded_batches_spec.rb b/spec/models/inline_response_200_5__embedded_batches_spec.rb new file mode 100644 index 00000000..ae33181d --- /dev/null +++ b/spec/models/inline_response_200_5__embedded_batches_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::InlineResponse2005EmbeddedBatches +# Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen) +# Please update as you see appropriate +describe 'InlineResponse2005EmbeddedBatches' do + before do + # run before each test + @instance = CyberSource::InlineResponse2005EmbeddedBatches.new + end + + after do + # run after each test + end + + describe 'test an instance of InlineResponse2005EmbeddedBatches' do + it 'should create an instance of InlineResponse2005EmbeddedBatches' do + expect(@instance).to be_instance_of(CyberSource::InlineResponse2005EmbeddedBatches) + 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 "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_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 "batch_modified_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 "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 "token_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 "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_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 "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 + +end diff --git a/spec/models/inline_response_200_5__embedded_spec.rb b/spec/models/inline_response_200_5__embedded_spec.rb new file mode 100644 index 00000000..e38bdada --- /dev/null +++ b/spec/models/inline_response_200_5__embedded_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::InlineResponse2005Embedded +# Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen) +# Please update as you see appropriate +describe 'InlineResponse2005Embedded' do + before do + # run before each test + @instance = CyberSource::InlineResponse2005Embedded.new + end + + after do + # run after each test + end + + describe 'test an instance of InlineResponse2005Embedded' do + it 'should create an instance of InlineResponse2005Embedded' do + expect(@instance).to be_instance_of(CyberSource::InlineResponse2005Embedded) + end + end + describe 'test attribute "batches"' 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_5__embedded_totals_spec.rb b/spec/models/inline_response_200_5__embedded_totals_spec.rb new file mode 100644 index 00000000..2882ae22 --- /dev/null +++ b/spec/models/inline_response_200_5__embedded_totals_spec.rb @@ -0,0 +1,64 @@ +=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::InlineResponse2005EmbeddedTotals +# Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen) +# Please update as you see appropriate +describe 'InlineResponse2005EmbeddedTotals' do + before do + # run before each test + @instance = CyberSource::InlineResponse2005EmbeddedTotals.new + end + + after do + # run after each test + end + + describe 'test an instance of InlineResponse2005EmbeddedTotals' do + it 'should create an instance of InlineResponse2005EmbeddedTotals' do + expect(@instance).to be_instance_of(CyberSource::InlineResponse2005EmbeddedTotals) + end + end + describe 'test attribute "accepted_records"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + describe 'test attribute "rejected_records"' 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_records"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + describe 'test attribute "ca_responses"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + describe 'test attribute "ca_responses_omitted"' 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_5__links_spec.rb b/spec/models/inline_response_200_5__links_spec.rb new file mode 100644 index 00000000..18359eae --- /dev/null +++ b/spec/models/inline_response_200_5__links_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::InlineResponse2005Links +# Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen) +# Please update as you see appropriate +describe 'InlineResponse2005Links' do + before do + # run before each test + @instance = CyberSource::InlineResponse2005Links.new + end + + after do + # run after each test + end + + describe 'test an instance of InlineResponse2005Links' do + it 'should create an instance of InlineResponse2005Links' do + expect(@instance).to be_instance_of(CyberSource::InlineResponse2005Links) + end + end + 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 "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/inline_response_200_5_spec.rb b/spec/models/inline_response_200_5_spec.rb index cb9a2388..f7914494 100644 --- a/spec/models/inline_response_200_5_spec.rb +++ b/spec/models/inline_response_200_5_spec.rb @@ -31,85 +31,43 @@ expect(@instance).to be_instance_of(CyberSource::InlineResponse2005) end end - describe 'test attribute "webhook_id"' 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 "organization_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 "products"' 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 "webhook_url"' 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 "health_check_url"' 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 "notification_scope"' 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 "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 "additional_attributes"' 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_6__links_report_spec.rb b/spec/models/inline_response_200_6__links_report_spec.rb new file mode 100644 index 00000000..fec2aa77 --- /dev/null +++ b/spec/models/inline_response_200_6__links_report_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::InlineResponse2006LinksReport +# Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen) +# Please update as you see appropriate +describe 'InlineResponse2006LinksReport' do + before do + # run before each test + @instance = CyberSource::InlineResponse2006LinksReport.new + end + + after do + # run after each test + end + + describe 'test an instance of InlineResponse2006LinksReport' do + it 'should create an instance of InlineResponse2006LinksReport' do + expect(@instance).to be_instance_of(CyberSource::InlineResponse2006LinksReport) + 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/inline_response_200_6__links_spec.rb b/spec/models/inline_response_200_6__links_spec.rb index 07dd87e7..5efdb589 100644 --- a/spec/models/inline_response_200_6__links_spec.rb +++ b/spec/models/inline_response_200_6__links_spec.rb @@ -31,13 +31,13 @@ expect(@instance).to be_instance_of(CyberSource::InlineResponse2006Links) 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_6_billing_spec.rb b/spec/models/inline_response_200_6_billing_spec.rb new file mode 100644 index 00000000..317e4471 --- /dev/null +++ b/spec/models/inline_response_200_6_billing_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::InlineResponse2006Billing +# Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen) +# Please update as you see appropriate +describe 'InlineResponse2006Billing' do + before do + # run before each test + @instance = CyberSource::InlineResponse2006Billing.new + end + + after do + # run after each test + end + + describe 'test an instance of InlineResponse2006Billing' do + it 'should create an instance of InlineResponse2006Billing' do + expect(@instance).to be_instance_of(CyberSource::InlineResponse2006Billing) + end + end + describe 'test attribute "nan"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + describe 'test attribute "ned"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + describe 'test attribute "acl"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + describe 'test attribute "cch"' 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_6_spec.rb b/spec/models/inline_response_200_6_spec.rb index 34b43eca..8acad82d 100644 --- a/spec/models/inline_response_200_6_spec.rb +++ b/spec/models/inline_response_200_6_spec.rb @@ -37,37 +37,55 @@ end end - describe 'test attribute "object"' 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 "offset"' 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 end - describe 'test attribute "limit"' 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 "count"' 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 "total"' 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 "_embedded"' 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 "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 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_records_spec.rb b/spec/models/inline_response_200_7_records_spec.rb new file mode 100644 index 00000000..f6ecfdac --- /dev/null +++ b/spec/models/inline_response_200_7_records_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::InlineResponse2007Records +# Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen) +# Please update as you see appropriate +describe 'InlineResponse2007Records' do + before do + # run before each test + @instance = CyberSource::InlineResponse2007Records.new + end + + after do + # run after each test + end + + describe 'test an instance of InlineResponse2007Records' do + it 'should create an instance of InlineResponse2007Records' do + expect(@instance).to be_instance_of(CyberSource::InlineResponse2007Records) + 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 "source_record"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + describe 'test attribute "response_record"' 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_7_response_record_additional_updates_spec.rb b/spec/models/inline_response_200_7_response_record_additional_updates_spec.rb new file mode 100644 index 00000000..cfe82dd0 --- /dev/null +++ b/spec/models/inline_response_200_7_response_record_additional_updates_spec.rb @@ -0,0 +1,64 @@ +=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::InlineResponse2007ResponseRecordAdditionalUpdates +# Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen) +# Please update as you see appropriate +describe 'InlineResponse2007ResponseRecordAdditionalUpdates' do + before do + # run before each test + @instance = CyberSource::InlineResponse2007ResponseRecordAdditionalUpdates.new + end + + after do + # run after each test + end + + describe 'test an instance of InlineResponse2007ResponseRecordAdditionalUpdates' do + it 'should create an instance of InlineResponse2007ResponseRecordAdditionalUpdates' do + expect(@instance).to be_instance_of(CyberSource::InlineResponse2007ResponseRecordAdditionalUpdates) + end + end + describe 'test attribute "customer_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 "payment_instrument_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 "creator"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + 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 "message"' 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_7_response_record_spec.rb b/spec/models/inline_response_200_7_response_record_spec.rb new file mode 100644 index 00000000..53f49e7f --- /dev/null +++ b/spec/models/inline_response_200_7_response_record_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::InlineResponse2007ResponseRecord +# Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen) +# Please update as you see appropriate +describe 'InlineResponse2007ResponseRecord' do + before do + # run before each test + @instance = CyberSource::InlineResponse2007ResponseRecord.new + end + + after do + # run after each test + end + + describe 'test an instance of InlineResponse2007ResponseRecord' do + it 'should create an instance of InlineResponse2007ResponseRecord' do + expect(@instance).to be_instance_of(CyberSource::InlineResponse2007ResponseRecord) + end + end + describe 'test attribute "response"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + describe 'test attribute "reason"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + describe 'test attribute "token"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + describe 'test attribute "instrument_identifier_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 "instrument_identifier_created"' 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_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 "card_expiry_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 "card_expiry_year"' 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_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 "additional_updates"' 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_7_source_record_spec.rb b/spec/models/inline_response_200_7_source_record_spec.rb new file mode 100644 index 00000000..5174ceca --- /dev/null +++ b/spec/models/inline_response_200_7_source_record_spec.rb @@ -0,0 +1,82 @@ +=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::InlineResponse2007SourceRecord +# Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen) +# Please update as you see appropriate +describe 'InlineResponse2007SourceRecord' do + before do + # run before each test + @instance = CyberSource::InlineResponse2007SourceRecord.new + end + + after do + # run after each test + end + + describe 'test an instance of InlineResponse2007SourceRecord' do + it 'should create an instance of InlineResponse2007SourceRecord' do + expect(@instance).to be_instance_of(CyberSource::InlineResponse2007SourceRecord) + end + end + describe 'test attribute "token"' 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_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 "payment_instrument_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 "instrument_identifier_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 "card_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 "card_expiry_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 "card_expiry_year"' 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_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/inline_response_200_7_spec.rb b/spec/models/inline_response_200_7_spec.rb index 48ce39e9..f26d5129 100644 --- a/spec/models/inline_response_200_7_spec.rb +++ b/spec/models/inline_response_200_7_spec.rb @@ -31,19 +31,19 @@ expect(@instance).to be_instance_of(CyberSource::InlineResponse2007) end end - describe 'test attribute "_links"' 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 "batch_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 "batch_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 @@ -55,19 +55,19 @@ end end - describe 'test attribute "merchant_reference"' 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 "batch_ca_endpoints"' 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 end - describe 'test attribute "status"' 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 @@ -85,7 +85,7 @@ end end - describe 'test attribute "description"' do + 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_201_2_setups_payments_spec.rb b/spec/models/inline_response_201_2_setups_payments_spec.rb index bb19b82f..b92d9cee 100644 --- a/spec/models/inline_response_201_2_setups_payments_spec.rb +++ b/spec/models/inline_response_201_2_setups_payments_spec.rb @@ -133,4 +133,10 @@ end end + describe 'test attribute "service_fee"' 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_400_5_details_spec.rb b/spec/models/inline_response_400_5_details_spec.rb new file mode 100644 index 00000000..42175da2 --- /dev/null +++ b/spec/models/inline_response_400_5_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::InlineResponse4005Details +# Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen) +# Please update as you see appropriate +describe 'InlineResponse4005Details' do + before do + # run before each test + @instance = CyberSource::InlineResponse4005Details.new + end + + after do + # run after each test + end + + describe 'test an instance of InlineResponse4005Details' do + it 'should create an instance of InlineResponse4005Details' do + expect(@instance).to be_instance_of(CyberSource::InlineResponse4005Details) + end + end + describe 'test attribute "field"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + describe 'test attribute "reason"' 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_400_5_spec.rb b/spec/models/inline_response_400_5_spec.rb index 737b5e18..6d8a9679 100644 --- a/spec/models/inline_response_400_5_spec.rb +++ b/spec/models/inline_response_400_5_spec.rb @@ -46,6 +46,10 @@ describe 'test attribute "reason"' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["INVALID_DATA", "SYSTEM_ERROR", "RESOURCE_NOT_FOUND"]) + # validator.allowable_values.each do |value| + # expect { @instance.reason = value }.not_to raise_error + # end end end @@ -55,7 +59,7 @@ end end - describe 'test attribute "status_code"' do + 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_400_6_details_spec.rb b/spec/models/inline_response_400_6_details_spec.rb new file mode 100644 index 00000000..2ae6bc5d --- /dev/null +++ b/spec/models/inline_response_400_6_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::InlineResponse4006Details +# Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen) +# Please update as you see appropriate +describe 'InlineResponse4006Details' do + before do + # run before each test + @instance = CyberSource::InlineResponse4006Details.new + end + + after do + # run after each test + end + + describe 'test an instance of InlineResponse4006Details' do + it 'should create an instance of InlineResponse4006Details' do + expect(@instance).to be_instance_of(CyberSource::InlineResponse4006Details) + 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 + + 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 + +end diff --git a/spec/models/inline_response_400_6_spec.rb b/spec/models/inline_response_400_6_spec.rb index e773065c..9cc53eb1 100644 --- a/spec/models/inline_response_400_6_spec.rb +++ b/spec/models/inline_response_400_6_spec.rb @@ -31,19 +31,19 @@ expect(@instance).to be_instance_of(CyberSource::InlineResponse4006) end end - describe 'test attribute "submit_time_utc"' do + describe 'test attribute "correlation_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 "status"' do + 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 - describe 'test attribute "reason"' do + describe 'test attribute "information_link"' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end @@ -55,9 +55,13 @@ end end - describe 'test attribute "details"' do + describe 'test attribute "reason"' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["INVALID_APIKEY", "INVALID_SHIPPING_INPUT_PARAMS", "CAPTURE_CONTEXT_INVALID", "CAPTURE_CONTEXT_EXPIRED", "SDK_XHR_ERROR", "UNIFIEDPAYMENTS_VALIDATION_PARAMS", "UNIFIEDPAYMENTS_VALIDATION_FIELDS", "UNIFIEDPAYMENT_PAYMENT_PARAMITERS", "CREATE_TOKEN_TIMEOUT", "CREATE_TOKEN_XHR_ERROR", "SHOW_LOAD_CONTAINER_SELECTOR", "SHOW_LOAD_INVALID_CONTAINER", "SHOW_TOKEN_TIMEOUT", "SHOW_TOKEN_XHR_ERROR", "SHOW_PAYMENT_TIMEOUT"]) + # validator.allowable_values.each do |value| + # expect { @instance.reason = value }.not_to raise_error + # end end end diff --git a/spec/models/inline_response_500_2_spec.rb b/spec/models/inline_response_500_2_spec.rb index 2df694b3..6e27ec5a 100644 --- a/spec/models/inline_response_500_2_spec.rb +++ b/spec/models/inline_response_500_2_spec.rb @@ -46,6 +46,10 @@ describe 'test attribute "reason"' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["SYSTEM_ERROR"]) + # validator.allowable_values.each do |value| + # expect { @instance.reason = value }.not_to raise_error + # end end end diff --git a/spec/models/payments_products_service_fee_configuration_information_configurations_merchant_information_spec.rb b/spec/models/payments_products_service_fee_configuration_information_configurations_merchant_information_spec.rb new file mode 100644 index 00000000..8f6bcfaf --- /dev/null +++ b/spec/models/payments_products_service_fee_configuration_information_configurations_merchant_information_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::PaymentsProductsServiceFeeConfigurationInformationConfigurationsMerchantInformation +# Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen) +# Please update as you see appropriate +describe 'PaymentsProductsServiceFeeConfigurationInformationConfigurationsMerchantInformation' do + before do + # run before each test + @instance = CyberSource::PaymentsProductsServiceFeeConfigurationInformationConfigurationsMerchantInformation.new + end + + after do + # run after each test + end + + describe 'test an instance of PaymentsProductsServiceFeeConfigurationInformationConfigurationsMerchantInformation' do + it 'should create an instance of PaymentsProductsServiceFeeConfigurationInformationConfigurationsMerchantInformation' do + expect(@instance).to be_instance_of(CyberSource::PaymentsProductsServiceFeeConfigurationInformationConfigurationsMerchantInformation) + 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 "contact"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + 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 + +end diff --git a/spec/models/payments_products_service_fee_configuration_information_configurations_payment_information_spec.rb b/spec/models/payments_products_service_fee_configuration_information_configurations_payment_information_spec.rb new file mode 100644 index 00000000..348eae67 --- /dev/null +++ b/spec/models/payments_products_service_fee_configuration_information_configurations_payment_information_spec.rb @@ -0,0 +1,72 @@ +=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::PaymentsProductsServiceFeeConfigurationInformationConfigurationsPaymentInformation +# Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen) +# Please update as you see appropriate +describe 'PaymentsProductsServiceFeeConfigurationInformationConfigurationsPaymentInformation' do + before do + # run before each test + @instance = CyberSource::PaymentsProductsServiceFeeConfigurationInformationConfigurationsPaymentInformation.new + end + + after do + # run after each test + end + + describe 'test an instance of PaymentsProductsServiceFeeConfigurationInformationConfigurationsPaymentInformation' do + it 'should create an instance of PaymentsProductsServiceFeeConfigurationInformationConfigurationsPaymentInformation' do + expect(@instance).to be_instance_of(CyberSource::PaymentsProductsServiceFeeConfigurationInformationConfigurationsPaymentInformation) + end + end + describe 'test attribute "payment_type"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["MASTERDEBIT", "MASTERCREDIT", "VISACREDIT", "VISADEBIT", "DISCOVERCREDIT", "AMEXCREDIT", "ECHECK"]) + # validator.allowable_values.each do |value| + # expect { @instance.payment_type = value }.not_to raise_error + # end + end + end + + describe 'test attribute "fee_type"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["FLAT", "PERCENTAGE"]) + # validator.allowable_values.each do |value| + # expect { @instance.fee_type = value }.not_to raise_error + # end + end + end + + describe 'test attribute "fee_amount"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + describe 'test attribute "percentage"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + describe 'test attribute "fee_cap"' 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_service_fee_configuration_information_configurations_products_spec.rb b/spec/models/payments_products_service_fee_configuration_information_configurations_products_spec.rb new file mode 100644 index 00000000..04366045 --- /dev/null +++ b/spec/models/payments_products_service_fee_configuration_information_configurations_products_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::PaymentsProductsServiceFeeConfigurationInformationConfigurationsProducts +# Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen) +# Please update as you see appropriate +describe 'PaymentsProductsServiceFeeConfigurationInformationConfigurationsProducts' do + before do + # run before each test + @instance = CyberSource::PaymentsProductsServiceFeeConfigurationInformationConfigurationsProducts.new + end + + after do + # run after each test + end + + describe 'test an instance of PaymentsProductsServiceFeeConfigurationInformationConfigurationsProducts' do + it 'should create an instance of PaymentsProductsServiceFeeConfigurationInformationConfigurationsProducts' do + expect(@instance).to be_instance_of(CyberSource::PaymentsProductsServiceFeeConfigurationInformationConfigurationsProducts) + end + end + describe 'test attribute "service_fee_enabled"' 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_service_fee_configuration_information_configurations_spec.rb b/spec/models/payments_products_service_fee_configuration_information_configurations_spec.rb new file mode 100644 index 00000000..eace34a9 --- /dev/null +++ b/spec/models/payments_products_service_fee_configuration_information_configurations_spec.rb @@ -0,0 +1,64 @@ +=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::PaymentsProductsServiceFeeConfigurationInformationConfigurations +# Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen) +# Please update as you see appropriate +describe 'PaymentsProductsServiceFeeConfigurationInformationConfigurations' do + before do + # run before each test + @instance = CyberSource::PaymentsProductsServiceFeeConfigurationInformationConfigurations.new + end + + after do + # run after each test + end + + describe 'test an instance of PaymentsProductsServiceFeeConfigurationInformationConfigurations' do + it 'should create an instance of PaymentsProductsServiceFeeConfigurationInformationConfigurations' do + expect(@instance).to be_instance_of(CyberSource::PaymentsProductsServiceFeeConfigurationInformationConfigurations) + 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 "terminal_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 "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 "merchant_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 diff --git a/spec/models/payments_products_service_fee_configuration_information_spec.rb b/spec/models/payments_products_service_fee_configuration_information_spec.rb new file mode 100644 index 00000000..2f7a999c --- /dev/null +++ b/spec/models/payments_products_service_fee_configuration_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::PaymentsProductsServiceFeeConfigurationInformation +# Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen) +# Please update as you see appropriate +describe 'PaymentsProductsServiceFeeConfigurationInformation' do + before do + # run before each test + @instance = CyberSource::PaymentsProductsServiceFeeConfigurationInformation.new + end + + after do + # run after each test + end + + describe 'test an instance of PaymentsProductsServiceFeeConfigurationInformation' do + it 'should create an instance of PaymentsProductsServiceFeeConfigurationInformation' do + expect(@instance).to be_instance_of(CyberSource::PaymentsProductsServiceFeeConfigurationInformation) + end + end + describe 'test attribute "configurations"' 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_service_fee_spec.rb b/spec/models/payments_products_service_fee_spec.rb new file mode 100644 index 00000000..ea9671d0 --- /dev/null +++ b/spec/models/payments_products_service_fee_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::PaymentsProductsServiceFee +# Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen) +# Please update as you see appropriate +describe 'PaymentsProductsServiceFee' do + before do + # run before each test + @instance = CyberSource::PaymentsProductsServiceFee.new + end + + after do + # run after each test + end + + describe 'test an instance of PaymentsProductsServiceFee' do + it 'should create an instance of PaymentsProductsServiceFee' do + expect(@instance).to be_instance_of(CyberSource::PaymentsProductsServiceFee) + end + end + describe 'test attribute "subscription_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 "configuration_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/payments_products_spec.rb b/spec/models/payments_products_spec.rb index d07d0b7d..5d3f83ea 100644 --- a/spec/models/payments_products_spec.rb +++ b/spec/models/payments_products_spec.rb @@ -139,4 +139,10 @@ end end + describe 'test attribute "service_fee"' 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/pts_v2_payments_post201_response_processor_information_spec.rb b/spec/models/pts_v2_payments_post201_response_processor_information_spec.rb index 1efb761f..d6674390 100644 --- a/spec/models/pts_v2_payments_post201_response_processor_information_spec.rb +++ b/spec/models/pts_v2_payments_post201_response_processor_information_spec.rb @@ -97,6 +97,12 @@ end end + describe 'test attribute "sequence_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 "avs"' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers diff --git a/spec/models/ptsv2payments_processing_information_authorization_options_spec.rb b/spec/models/ptsv2payments_processing_information_authorization_options_spec.rb index 642d05d9..97acf6ca 100644 --- a/spec/models/ptsv2payments_processing_information_authorization_options_spec.rb +++ b/spec/models/ptsv2payments_processing_information_authorization_options_spec.rb @@ -163,4 +163,10 @@ end end + describe 'test attribute "aft_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/ptsv2payments_recipient_information_spec.rb b/spec/models/ptsv2payments_recipient_information_spec.rb index e6e11b5d..e91ebd2f 100644 --- a/spec/models/ptsv2payments_recipient_information_spec.rb +++ b/spec/models/ptsv2payments_recipient_information_spec.rb @@ -37,6 +37,18 @@ end end + describe 'test attribute "account_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 "first_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 "last_name"' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers @@ -49,12 +61,24 @@ 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 + 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 "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 "date_of_birth"' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers diff --git a/spec/models/ptsv2payments_sender_information_spec.rb b/spec/models/ptsv2payments_sender_information_spec.rb new file mode 100644 index 00000000..0778565f --- /dev/null +++ b/spec/models/ptsv2payments_sender_information_spec.rb @@ -0,0 +1,76 @@ +=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::Ptsv2paymentsSenderInformation +# Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen) +# Please update as you see appropriate +describe 'Ptsv2paymentsSenderInformation' do + before do + # run before each test + @instance = CyberSource::Ptsv2paymentsSenderInformation.new + end + + after do + # run after each test + end + + describe 'test an instance of Ptsv2paymentsSenderInformation' do + it 'should create an instance of Ptsv2paymentsSenderInformation' do + expect(@instance).to be_instance_of(CyberSource::Ptsv2paymentsSenderInformation) + end + end + describe 'test attribute "first_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 "last_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 "middle_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 "address1"' 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 "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 "country_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/risk_v1_authentication_results_post201_response_consumer_authentication_information_spec.rb b/spec/models/risk_v1_authentication_results_post201_response_consumer_authentication_information_spec.rb index 54645097..716ae692 100644 --- a/spec/models/risk_v1_authentication_results_post201_response_consumer_authentication_information_spec.rb +++ b/spec/models/risk_v1_authentication_results_post201_response_consumer_authentication_information_spec.rb @@ -37,18 +37,36 @@ end end + describe 'test attribute "acs_reference_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 "acs_transaction_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 "acs_operator_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 "authentication_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 "authentication_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 "authentication_status_msg"' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers @@ -91,6 +109,12 @@ end end + describe 'test attribute "challenge_cancel_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 "directory_server_error_code"' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers @@ -103,6 +127,12 @@ end end + describe 'test attribute "effective_authentication_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 "indicator"' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers diff --git a/spec/models/risk_v1_authentication_results_post201_response_spec.rb b/spec/models/risk_v1_authentication_results_post201_response_spec.rb index e3be6376..d6e7dbdb 100644 --- a/spec/models/risk_v1_authentication_results_post201_response_spec.rb +++ b/spec/models/risk_v1_authentication_results_post201_response_spec.rb @@ -49,12 +49,6 @@ end end - describe 'test attribute "submit_time_local"' 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 diff --git a/spec/models/risk_v1_authentications_post201_response_spec.rb b/spec/models/risk_v1_authentications_post201_response_spec.rb index 80f770f3..cc72c72f 100644 --- a/spec/models/risk_v1_authentications_post201_response_spec.rb +++ b/spec/models/risk_v1_authentications_post201_response_spec.rb @@ -49,12 +49,6 @@ end end - describe 'test attribute "submit_time_local"' 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 diff --git a/spec/models/riskv1authenticationresults_consumer_authentication_information_spec.rb b/spec/models/riskv1authenticationresults_consumer_authentication_information_spec.rb index 1f9a9cf4..2288b311 100644 --- a/spec/models/riskv1authenticationresults_consumer_authentication_information_spec.rb +++ b/spec/models/riskv1authenticationresults_consumer_authentication_information_spec.rb @@ -49,18 +49,6 @@ end end - describe 'test attribute "authentication_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 "effective_authentication_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 "response_access_token"' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers diff --git a/spec/models/riskv1authenticationresults_payment_information_card_spec.rb b/spec/models/riskv1authenticationresults_payment_information_card_spec.rb index f556c94b..297a9ee9 100644 --- a/spec/models/riskv1authenticationresults_payment_information_card_spec.rb +++ b/spec/models/riskv1authenticationresults_payment_information_card_spec.rb @@ -31,12 +31,6 @@ expect(@instance).to be_instance_of(CyberSource::Riskv1authenticationresultsPaymentInformationCard) end end - describe 'test attribute "bin"' 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 diff --git a/spec/models/riskv1authenticationsetups_client_reference_information_spec.rb b/spec/models/riskv1authenticationsetups_client_reference_information_spec.rb new file mode 100644 index 00000000..7aaeb10a --- /dev/null +++ b/spec/models/riskv1authenticationsetups_client_reference_information_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::Riskv1authenticationsetupsClientReferenceInformation +# Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen) +# Please update as you see appropriate +describe 'Riskv1authenticationsetupsClientReferenceInformation' do + before do + # run before each test + @instance = CyberSource::Riskv1authenticationsetupsClientReferenceInformation.new + end + + after do + # run after each test + end + + describe 'test an instance of Riskv1authenticationsetupsClientReferenceInformation' do + it 'should create an instance of Riskv1authenticationsetupsClientReferenceInformation' do + expect(@instance).to be_instance_of(CyberSource::Riskv1authenticationsetupsClientReferenceInformation) + 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 + + describe 'test attribute "paused_request_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 "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 + +end diff --git a/spec/models/riskv1decisions_consumer_authentication_information_spec.rb b/spec/models/riskv1decisions_consumer_authentication_information_spec.rb index 610a997a..d38d2207 100644 --- a/spec/models/riskv1decisions_consumer_authentication_information_spec.rb +++ b/spec/models/riskv1decisions_consumer_authentication_information_spec.rb @@ -37,12 +37,6 @@ end end - describe 'test attribute "authentication_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 "acs_window_size"' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers From a0587a30fffa4b7651899e475543eca4db077d0b Mon Sep 17 00:00:00 2001 From: gaubansa Date: Wed, 21 Aug 2024 18:11:48 +0530 Subject: [PATCH 3/4] removing the Key Management API from SDK tracker --- .../utilities/tracking/sdk_tracker.rb | 5 ----- 1 file changed, 5 deletions(-) diff --git a/lib/cybersource_rest_client/utilities/tracking/sdk_tracker.rb b/lib/cybersource_rest_client/utilities/tracking/sdk_tracker.rb index 22231bf7..2be27fc8 100644 --- a/lib/cybersource_rest_client/utilities/tracking/sdk_tracker.rb +++ b/lib/cybersource_rest_client/utilities/tracking/sdk_tracker.rb @@ -3,8 +3,6 @@ module CyberSource public class SdkTracker @@inclusion_list = [ - "CreateP12KeysRequest", - "DeleteBulkP12KeysRequest", "CapturePaymentRequest", "CreateCreditRequest", "AddNegativeListRequest", @@ -22,9 +20,6 @@ class SdkTracker "MitReversalRequest", "CreateSubscriptionRequest", "UpdateSubscription", - "CreateSharedSecretKeysRequest", - "CreateSharedSecretKeysVerifiRequest", - "DeleteBulkSymmetricKeysRequest", "TaxRequest", "VoidTaxRequest", "ValidateExportComplianceRequest", From faa2b48ec2e5024f020458405061a90d362ec7aa Mon Sep 17 00:00:00 2001 From: gaubansa Date: Fri, 30 Aug 2024 14:58:06 +0530 Subject: [PATCH 4/4] version update --- 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 b4abb244..d2613fb7 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.64" + s.version = "0.0.65" s.platform = Gem::Platform::RUBY s.authors = ["CyberSource"] s.email = ["cybersourcedev@gmail.com"]