cybersource_rest_client 0.0.75 → 0.0.77
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/AuthenticationSDK/authentication/jwt/JwtToken.rb +6 -17
- data/lib/AuthenticationSDK/core/MerchantConfig.rb +132 -54
- data/lib/AuthenticationSDK/util/Cache.rb +135 -30
- data/lib/AuthenticationSDK/util/CacheValue.rb +18 -0
- data/lib/AuthenticationSDK/util/CertificateUtility.rb +124 -0
- data/lib/AuthenticationSDK/util/Constants.rb +6 -0
- data/lib/AuthenticationSDK/util/JWEUtility.rb +1 -2
- data/lib/AuthenticationSDK/util/MLEUtility.rb +26 -35
- data/lib/AuthenticationSDK/util/Utility.rb +1 -16
- data/lib/cybersource_rest_client/api/batches_api.rb +17 -17
- data/lib/cybersource_rest_client/api/billing_agreements_api.rb +6 -6
- data/lib/cybersource_rest_client/api/bin_lookup_api.rb +2 -2
- data/lib/cybersource_rest_client/api/capture_api.rb +2 -2
- data/lib/cybersource_rest_client/api/chargeback_details_api.rb +2 -2
- data/lib/cybersource_rest_client/api/chargeback_summaries_api.rb +2 -2
- data/lib/cybersource_rest_client/api/conversion_details_api.rb +2 -2
- data/lib/cybersource_rest_client/api/create_new_webhooks_api.rb +6 -6
- data/lib/cybersource_rest_client/api/credit_api.rb +2 -2
- data/lib/cybersource_rest_client/api/customer_api.rb +8 -8
- data/lib/cybersource_rest_client/api/customer_payment_instrument_api.rb +10 -10
- data/lib/cybersource_rest_client/api/customer_shipping_address_api.rb +10 -10
- data/lib/cybersource_rest_client/api/decision_manager_api.rb +10 -10
- data/lib/cybersource_rest_client/api/device_de_association_api.rb +7 -7
- data/lib/cybersource_rest_client/api/device_search_api.rb +10 -10
- data/lib/cybersource_rest_client/api/download_dtd_api.rb +2 -2
- data/lib/cybersource_rest_client/api/download_xsd_api.rb +2 -2
- data/lib/cybersource_rest_client/api/emv_tag_details_api.rb +4 -4
- data/lib/cybersource_rest_client/api/flex_api_api.rb +2 -2
- data/lib/cybersource_rest_client/api/instrument_identifier_api.rb +12 -12
- data/lib/cybersource_rest_client/api/interchange_clearing_level_details_api.rb +2 -2
- data/lib/cybersource_rest_client/api/invoice_settings_api.rb +4 -4
- data/lib/cybersource_rest_client/api/invoices_api.rb +87 -12
- data/lib/cybersource_rest_client/api/manage_webhooks_api.rb +18 -17
- data/lib/cybersource_rest_client/api/merchant_boarding_api.rb +4 -4
- data/lib/cybersource_rest_client/api/microform_integration_api.rb +2 -2
- data/lib/cybersource_rest_client/api/net_fundings_api.rb +2 -2
- data/lib/cybersource_rest_client/api/notification_of_changes_api.rb +2 -2
- data/lib/cybersource_rest_client/api/orders_api.rb +4 -4
- data/lib/cybersource_rest_client/api/payer_authentication_api.rb +6 -6
- data/lib/cybersource_rest_client/api/payment_batch_summaries_api.rb +2 -2
- data/lib/cybersource_rest_client/api/payment_instrument_api.rb +8 -8
- data/lib/cybersource_rest_client/api/payment_links_api.rb +12 -12
- data/lib/cybersource_rest_client/api/payment_tokens_api.rb +2 -2
- data/lib/cybersource_rest_client/api/payments_api.rb +12 -12
- data/lib/cybersource_rest_client/api/payouts_api.rb +2 -2
- data/lib/cybersource_rest_client/api/plans_api.rb +16 -16
- data/lib/cybersource_rest_client/api/purchase_and_refund_details_api.rb +2 -2
- data/lib/cybersource_rest_client/api/push_funds_api.rb +2 -2
- data/lib/cybersource_rest_client/api/refund_api.rb +4 -4
- data/lib/cybersource_rest_client/api/report_definitions_api.rb +4 -4
- data/lib/cybersource_rest_client/api/report_downloads_api.rb +2 -2
- data/lib/cybersource_rest_client/api/report_subscriptions_api.rb +10 -10
- data/lib/cybersource_rest_client/api/reports_api.rb +6 -6
- data/lib/cybersource_rest_client/api/retrieval_details_api.rb +2 -2
- data/lib/cybersource_rest_client/api/retrieval_summaries_api.rb +2 -2
- data/lib/cybersource_rest_client/api/reversal_api.rb +4 -4
- data/lib/cybersource_rest_client/api/search_transactions_api.rb +4 -4
- data/lib/cybersource_rest_client/api/secure_file_share_api.rb +4 -4
- data/lib/cybersource_rest_client/api/subscriptions_api.rb +16 -16
- data/lib/cybersource_rest_client/api/subscriptions_follow_ons_api.rb +4 -4
- data/lib/cybersource_rest_client/api/taxes_api.rb +4 -4
- data/lib/cybersource_rest_client/api/token_api.rb +4 -4
- data/lib/cybersource_rest_client/api/tokenized_card_api.rb +6 -6
- data/lib/cybersource_rest_client/api/transaction_batches_api.rb +8 -8
- data/lib/cybersource_rest_client/api/transaction_details_api.rb +2 -2
- data/lib/cybersource_rest_client/api/transient_token_data_api.rb +4 -4
- data/lib/cybersource_rest_client/api/unified_checkout_capture_context_api.rb +2 -2
- data/lib/cybersource_rest_client/api/user_management_api.rb +2 -2
- data/lib/cybersource_rest_client/api/user_management_search_api.rb +2 -2
- data/lib/cybersource_rest_client/api/verification_api.rb +4 -4
- data/lib/cybersource_rest_client/api/void_api.rb +10 -10
- data/lib/cybersource_rest_client/api_client.rb +3 -1
- data/lib/cybersource_rest_client/ethon_extensions.rb +38 -0
- data/lib/cybersource_rest_client/models/create_order_request.rb +269 -269
- data/lib/cybersource_rest_client/models/create_webhook.rb +16 -3
- data/lib/cybersource_rest_client/models/inline_response_200_10.rb +47 -49
- data/lib/cybersource_rest_client/models/{inline_response_200_8__links.rb → inline_response_200_10__links.rb} +18 -17
- data/lib/cybersource_rest_client/models/{inline_response_200_9__links_report.rb → inline_response_200_10__links_report.rb} +1 -1
- data/lib/cybersource_rest_client/models/{inline_response_200_9_billing.rb → inline_response_200_10_billing.rb} +1 -1
- data/lib/cybersource_rest_client/models/inline_response_200_11.rb +292 -0
- data/lib/cybersource_rest_client/models/{inline_response_200_10_records.rb → inline_response_200_11_records.rb} +3 -3
- data/lib/cybersource_rest_client/models/{inline_response_200_10_response_record.rb → inline_response_200_11_response_record.rb} +2 -2
- data/lib/cybersource_rest_client/models/{inline_response_200_10_response_record_additional_updates.rb → inline_response_200_11_response_record_additional_updates.rb} +1 -1
- data/lib/cybersource_rest_client/models/{inline_response_200_10_source_record.rb → inline_response_200_11_source_record.rb} +1 -1
- data/lib/cybersource_rest_client/models/inline_response_200_2.rb +253 -253
- data/lib/cybersource_rest_client/models/inline_response_200_4.rb +12 -10
- data/lib/cybersource_rest_client/models/inline_response_200_5.rb +129 -51
- data/lib/cybersource_rest_client/models/inline_response_200_6.rb +55 -10
- data/lib/cybersource_rest_client/models/{inline_response_200_5_devices.rb → inline_response_200_6_devices.rb} +1 -1
- data/lib/cybersource_rest_client/models/inline_response_200_7.rb +10 -55
- data/lib/cybersource_rest_client/models/inline_response_200_8.rb +33 -37
- data/lib/cybersource_rest_client/models/{inline_response_200_7_devices.rb → inline_response_200_8_devices.rb} +2 -2
- data/lib/cybersource_rest_client/models/{inline_response_200_7_payment_processor_to_terminal_map.rb → inline_response_200_8_payment_processor_to_terminal_map.rb} +1 -1
- data/lib/cybersource_rest_client/models/inline_response_200_9.rb +47 -86
- data/lib/cybersource_rest_client/models/{inline_response_200_8__embedded.rb → inline_response_200_9__embedded.rb} +2 -2
- data/lib/cybersource_rest_client/models/{inline_response_200_8__embedded__links.rb → inline_response_200_9__embedded__links.rb} +2 -2
- data/lib/cybersource_rest_client/models/{inline_response_200_8__embedded__links_reports.rb → inline_response_200_9__embedded__links_reports.rb} +1 -1
- data/lib/cybersource_rest_client/models/{inline_response_200_8__embedded_batches.rb → inline_response_200_9__embedded_batches.rb} +3 -3
- data/lib/cybersource_rest_client/models/{inline_response_200_8__embedded_totals.rb → inline_response_200_9__embedded_totals.rb} +1 -1
- data/lib/cybersource_rest_client/models/inline_response_200_9__links.rb +16 -17
- data/lib/cybersource_rest_client/models/inline_response_201.rb +227 -227
- data/lib/cybersource_rest_client/models/inline_response_201_1.rb +218 -218
- data/lib/cybersource_rest_client/models/inline_response_201_2.rb +248 -248
- data/lib/cybersource_rest_client/models/inline_response_201_2_payout_information.rb +216 -216
- data/lib/cybersource_rest_client/models/inline_response_201_2_payout_information_pull_funds.rb +213 -213
- data/lib/cybersource_rest_client/models/inline_response_201_2_payout_information_push_funds.rb +417 -417
- data/lib/cybersource_rest_client/models/inline_response_201_3.rb +281 -281
- data/lib/cybersource_rest_client/models/inline_response_201_3_integration_information.rb +192 -192
- data/lib/cybersource_rest_client/models/inline_response_201_3_integration_information_tenant_configurations.rb +253 -253
- data/lib/cybersource_rest_client/models/inline_response_201_3_organization_information.rb +217 -217
- data/lib/cybersource_rest_client/models/inline_response_201_3_product_information_setups.rb +214 -214
- data/lib/cybersource_rest_client/models/inline_response_201_3_registration_information.rb +222 -222
- data/lib/cybersource_rest_client/models/inline_response_201_3_setups.rb +219 -219
- data/lib/cybersource_rest_client/models/inline_response_201_3_setups_commerce_solutions.rb +209 -209
- data/lib/cybersource_rest_client/models/inline_response_201_3_setups_payments.rb +369 -369
- data/lib/cybersource_rest_client/models/inline_response_201_3_setups_payments_alternative_payment_methods.rb +221 -221
- data/lib/cybersource_rest_client/models/inline_response_201_3_setups_payments_alternative_payment_methods_configuration_status.rb +200 -200
- data/lib/cybersource_rest_client/models/inline_response_201_3_setups_payments_card_processing.rb +199 -199
- data/lib/cybersource_rest_client/models/inline_response_201_3_setups_payments_card_processing_configuration_status.rb +255 -255
- data/lib/cybersource_rest_client/models/inline_response_201_3_setups_payments_card_processing_subscription_status.rb +234 -234
- data/lib/cybersource_rest_client/models/inline_response_201_3_setups_payments_digital_payments.rb +189 -189
- data/lib/cybersource_rest_client/models/inline_response_201_3_setups_risk.rb +199 -199
- data/lib/cybersource_rest_client/models/inline_response_201_3_setups_value_added_services.rb +209 -209
- data/lib/cybersource_rest_client/models/inline_response_201_4.rb +222 -222
- data/lib/cybersource_rest_client/models/inline_response_201_4_key_information.rb +300 -300
- data/lib/cybersource_rest_client/models/inline_response_201_4_key_information_error_information.rb +202 -202
- data/lib/cybersource_rest_client/models/inline_response_201_4_key_information_error_information_details.rb +201 -201
- data/lib/cybersource_rest_client/models/inline_response_201_5.rb +314 -312
- data/lib/cybersource_rest_client/models/inline_response_201_6.rb +277 -277
- data/lib/cybersource_rest_client/models/inline_response_201_6_payloads.rb +189 -189
- data/lib/cybersource_rest_client/models/inline_response_201_6_payloads_test_payload.rb +190 -190
- data/lib/cybersource_rest_client/models/inline_response_201_7.rb +202 -202
- data/lib/cybersource_rest_client/models/inline_response_201_order_information.rb +189 -189
- data/lib/cybersource_rest_client/models/inline_response_201_order_information_ship_to.rb +315 -315
- data/lib/cybersource_rest_client/models/inline_response_201_payment_information.rb +199 -199
- data/lib/cybersource_rest_client/models/inline_response_201_payment_information_e_wallet.rb +196 -196
- data/lib/cybersource_rest_client/models/inline_response_201_payment_information_tokenized_payment_method.rb +213 -213
- data/lib/cybersource_rest_client/models/invoicing_v2_invoice_settings_get200_response_invoice_settings_information.rb +18 -5
- data/lib/cybersource_rest_client/models/invoicing_v2_invoices_post201_response_invoice_information.rb +18 -5
- data/lib/cybersource_rest_client/models/{notificationsubscriptionsv2webhooks_security_policy_1_config.rb → invoicing_v2_invoices_post201_response_invoice_information_custom_labels.rb} +57 -34
- data/lib/cybersource_rest_client/models/invoicing_v2_invoices_publish200_response.rb +268 -0
- data/lib/cybersource_rest_client/models/invoicingv2invoice_settings_invoice_settings_information.rb +18 -5
- data/lib/cybersource_rest_client/models/notificationsubscriptionsv2webhooks_retry_policy.rb +2 -0
- data/lib/cybersource_rest_client/models/notificationsubscriptionsv2webhooks_security_policy.rb +1 -1
- data/lib/cybersource_rest_client/models/notificationsubscriptionsv2webhooks_security_policy_config.rb +16 -17
- data/lib/cybersource_rest_client/models/{notificationsubscriptionsv2webhooks_security_policy_1_config_additional_config.rb → notificationsubscriptionsv2webhooks_security_policy_config_additional_config.rb} +1 -1
- data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_installment_information.rb +609 -609
- data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_payment_account_information_card.rb +269 -269
- data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_payment_information.rb +364 -364
- data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_payment_information_tokenized_card.rb +309 -309
- data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_payment_information_tokenized_payment_method.rb +213 -213
- data/lib/cybersource_rest_client/models/pts_v2_retrieve_payment_token_get400_response.rb +252 -252
- data/lib/cybersource_rest_client/models/pts_v2_retrieve_payment_token_get502_response.rb +240 -240
- data/lib/cybersource_rest_client/models/ptsv2billingagreements_payment_information_card.rb +258 -258
- data/lib/cybersource_rest_client/models/ptsv2billingagreements_payment_information_tokenized_card.rb +275 -275
- data/lib/cybersource_rest_client/models/ptsv2intents_event_information.rb +212 -212
- data/lib/cybersource_rest_client/models/ptsv2intents_order_information_ship_to.rb +354 -354
- data/lib/cybersource_rest_client/models/ptsv2intents_payment_information.rb +220 -220
- data/lib/cybersource_rest_client/models/ptsv2intents_payment_information_e_wallet.rb +196 -196
- data/lib/cybersource_rest_client/models/ptsv2intents_payment_information_tokenized_payment_method.rb +241 -241
- data/lib/cybersource_rest_client/models/ptsv2intents_processing_information.rb +351 -351
- data/lib/cybersource_rest_client/models/ptsv2intents_recipient_information.rb +245 -245
- data/lib/cybersource_rest_client/models/ptsv2intents_sender_information.rb +277 -277
- data/lib/cybersource_rest_client/models/ptsv2intents_sender_information_account.rb +190 -190
- data/lib/cybersource_rest_client/models/ptsv2intents_travel_information.rb +211 -211
- data/lib/cybersource_rest_client/models/ptsv2intents_travel_information_agency.rb +245 -245
- data/lib/cybersource_rest_client/models/ptsv2intentsid_payment_information.rb +189 -189
- data/lib/cybersource_rest_client/models/ptsv2paymentreferences_order_information_amount_details.rb +417 -417
- data/lib/cybersource_rest_client/models/ptsv2paymentreferences_payment_information_card.rb +275 -275
- data/lib/cybersource_rest_client/models/ptsv2payments_installment_information.rb +461 -433
- data/lib/cybersource_rest_client/models/ptsv2payments_order_information_amount_details.rb +668 -668
- data/lib/cybersource_rest_client/models/ptsv2payments_order_information_line_items.rb +716 -716
- data/lib/cybersource_rest_client/models/ptsv2payments_payment_information.rb +356 -356
- data/lib/cybersource_rest_client/models/ptsv2payments_payment_information_card.rb +445 -445
- data/lib/cybersource_rest_client/models/ptsv2payments_payment_information_payment_type_method.rb +1 -1
- data/lib/cybersource_rest_client/models/ptsv2payments_payment_information_tokenized_card.rb +377 -377
- data/lib/cybersource_rest_client/models/ptsv2payments_payment_information_tokenized_payment_method.rb +196 -196
- data/lib/cybersource_rest_client/models/ptsv2paymentsidcaptures_installment_information.rb +604 -604
- data/lib/cybersource_rest_client/models/ptsv2paymentsidcaptures_payment_information_payment_type_method.rb +1 -1
- data/lib/cybersource_rest_client/models/ptsv2paymentsidrefunds_payment_information_card.rb +377 -377
- data/lib/cybersource_rest_client/models/ptsv2paymenttokens_payment_information.rb +199 -199
- data/lib/cybersource_rest_client/models/ptsv2paymenttokens_processing_information.rb +192 -192
- data/lib/cybersource_rest_client/models/ptsv2payouts_payment_information_card.rb +258 -258
- data/lib/cybersource_rest_client/models/request.rb +199 -199
- data/lib/cybersource_rest_client/models/riskv1authenticationresults_payment_information_card.rb +241 -241
- data/lib/cybersource_rest_client/models/riskv1authenticationresults_payment_information_tokenized_card.rb +258 -258
- data/lib/cybersource_rest_client/models/riskv1authentications_payment_information_tokenized_card.rb +351 -351
- data/lib/cybersource_rest_client/models/riskv1authenticationsetups_payment_information_card.rb +268 -268
- data/lib/cybersource_rest_client/models/riskv1authenticationsetups_payment_information_tokenized_card.rb +299 -299
- data/lib/cybersource_rest_client/models/riskv1decisions_payment_information_card.rb +259 -259
- data/lib/cybersource_rest_client/models/riskv1decisions_payment_information_tokenized_card.rb +259 -259
- data/lib/cybersource_rest_client/models/riskv1liststypeentries_payment_information_card.rb +224 -224
- data/lib/cybersource_rest_client/models/tms_bin_lookup_issuer_information.rb +264 -264
- data/lib/cybersource_rest_client/models/tms_bin_lookup_payment_account_information_card.rb +277 -277
- data/lib/cybersource_rest_client/models/tms_bin_lookup_payment_account_information_card_brands.rb +213 -213
- data/lib/cybersource_rest_client/models/tms_bin_lookup_payment_account_information_features.rb +430 -430
- data/lib/cybersource_rest_client/models/tss_v2_transactions_get200_response.rb +11 -1
- data/lib/cybersource_rest_client/models/tss_v2_transactions_get200_response_bank_account_validation.rb +211 -0
- data/lib/cybersource_rest_client/models/tss_v2_transactions_get200_response_payment_information_brands.rb +201 -201
- data/lib/cybersource_rest_client/models/tss_v2_transactions_get200_response_payment_information_card.rb +365 -365
- data/lib/cybersource_rest_client/models/tss_v2_transactions_get200_response_processing_information.rb +16 -5
- data/lib/cybersource_rest_client/models/tss_v2_transactions_get200_response_processor_information.rb +15 -5
- data/lib/cybersource_rest_client/models/tss_v2_transactions_post201_response__embedded_payment_information_card.rb +218 -218
- data/lib/cybersource_rest_client/models/tss_v2_transactions_post201_response__embedded_processor_information.rb +245 -245
- data/lib/cybersource_rest_client/models/update_order_request.rb +229 -229
- data/lib/cybersource_rest_client/models/update_webhook.rb +19 -19
- data/lib/cybersource_rest_client.rb +20 -18
- metadata +25 -20
- data/lib/cybersource_rest_client/models/notificationsubscriptionsv2webhooks_security_policy_1.rb +0 -201
@@ -1,253 +1,253 @@
|
|
1
|
-
=begin
|
2
|
-
#CyberSource Merged Spec
|
3
|
-
|
4
|
-
#All CyberSource API specs merged together. These are available at https://developer.cybersource.com/api/reference/api-reference.html
|
5
|
-
|
6
|
-
OpenAPI spec version: 0.0.1
|
7
|
-
|
8
|
-
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
9
|
-
Swagger Codegen version: 2.4.38
|
10
|
-
=end
|
11
|
-
|
12
|
-
require 'date'
|
13
|
-
|
14
|
-
module CyberSource
|
15
|
-
class InlineResponse2002
|
16
|
-
attr_accessor :registration_information
|
17
|
-
|
18
|
-
attr_accessor :integration_information
|
19
|
-
|
20
|
-
attr_accessor :organization_information
|
21
|
-
|
22
|
-
attr_accessor :product_information
|
23
|
-
|
24
|
-
attr_accessor :product_information_setups
|
25
|
-
|
26
|
-
attr_accessor :document_information
|
27
|
-
|
28
|
-
attr_accessor :details
|
29
|
-
|
30
|
-
# Attribute mapping from ruby-style variable name to JSON key.
|
31
|
-
def self.attribute_map
|
32
|
-
{
|
33
|
-
:'registration_information' => :'registrationInformation',
|
34
|
-
:'integration_information' => :'integrationInformation',
|
35
|
-
:'organization_information' => :'organizationInformation',
|
36
|
-
:'product_information' => :'productInformation',
|
37
|
-
:'product_information_setups' => :'productInformationSetups',
|
38
|
-
:'document_information' => :'documentInformation',
|
39
|
-
:'details' => :'details'
|
40
|
-
}
|
41
|
-
end
|
42
|
-
|
43
|
-
# Attribute mapping from JSON key to ruby-style variable name.
|
44
|
-
def self.json_map
|
45
|
-
{
|
46
|
-
:'registration_information' => :'registration_information',
|
47
|
-
:'integration_information' => :'integration_information',
|
48
|
-
:'organization_information' => :'organization_information',
|
49
|
-
:'product_information' => :'product_information',
|
50
|
-
:'product_information_setups' => :'product_information_setups',
|
51
|
-
:'document_information' => :'document_information',
|
52
|
-
:'details' => :'details'
|
53
|
-
}
|
54
|
-
end
|
55
|
-
|
56
|
-
# Attribute type mapping.
|
57
|
-
def self.swagger_types
|
58
|
-
{
|
59
|
-
:'registration_information' => :'Boardingv1registrationsRegistrationInformation',
|
60
|
-
:'integration_information' => :'InlineResponse2002IntegrationInformation',
|
61
|
-
:'organization_information' => :'Boardingv1registrationsOrganizationInformation',
|
62
|
-
:'product_information' => :'Boardingv1registrationsProductInformation',
|
63
|
-
:'product_information_setups' => :'Array<InlineResponse2013ProductInformationSetups>',
|
64
|
-
:'document_information' => :'Boardingv1registrationsDocumentInformation',
|
65
|
-
:'details' => :'Hash<String, Array<Object>>'
|
66
|
-
}
|
67
|
-
end
|
68
|
-
|
69
|
-
# Initializes the object
|
70
|
-
# @param [Hash] attributes Model attributes in the form of hash
|
71
|
-
def initialize(attributes = {})
|
72
|
-
return unless attributes.is_a?(Hash)
|
73
|
-
|
74
|
-
# convert string to symbol for hash key
|
75
|
-
attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
|
76
|
-
|
77
|
-
if attributes.has_key?(:'registrationInformation')
|
78
|
-
self.registration_information = attributes[:'registrationInformation']
|
79
|
-
end
|
80
|
-
|
81
|
-
if attributes.has_key?(:'integrationInformation')
|
82
|
-
self.integration_information = attributes[:'integrationInformation']
|
83
|
-
end
|
84
|
-
|
85
|
-
if attributes.has_key?(:'organizationInformation')
|
86
|
-
self.organization_information = attributes[:'organizationInformation']
|
87
|
-
end
|
88
|
-
|
89
|
-
if attributes.has_key?(:'productInformation')
|
90
|
-
self.product_information = attributes[:'productInformation']
|
91
|
-
end
|
92
|
-
|
93
|
-
if attributes.has_key?(:'productInformationSetups')
|
94
|
-
if (value = attributes[:'productInformationSetups']).is_a?(Array)
|
95
|
-
self.product_information_setups = value
|
96
|
-
end
|
97
|
-
end
|
98
|
-
|
99
|
-
if attributes.has_key?(:'documentInformation')
|
100
|
-
self.document_information = attributes[:'documentInformation']
|
101
|
-
end
|
102
|
-
|
103
|
-
if attributes.has_key?(:'details')
|
104
|
-
if (value = attributes[:'details']).is_a?(Hash)
|
105
|
-
self.details = value
|
106
|
-
end
|
107
|
-
end
|
108
|
-
end
|
109
|
-
|
110
|
-
# Show invalid properties with the reasons. Usually used together with valid?
|
111
|
-
# @return Array for valid properties with the reasons
|
112
|
-
def list_invalid_properties
|
113
|
-
invalid_properties = Array.new
|
114
|
-
invalid_properties
|
115
|
-
end
|
116
|
-
|
117
|
-
# Check to see if the all the properties in the model are valid
|
118
|
-
# @return true if the model is valid
|
119
|
-
def valid?
|
120
|
-
true
|
121
|
-
end
|
122
|
-
|
123
|
-
# Checks equality by comparing each attribute.
|
124
|
-
# @param [Object] Object to be compared
|
125
|
-
def ==(o)
|
126
|
-
return true if self.equal?(o)
|
127
|
-
self.class == o.class &&
|
128
|
-
registration_information == o.registration_information &&
|
129
|
-
integration_information == o.integration_information &&
|
130
|
-
organization_information == o.organization_information &&
|
131
|
-
product_information == o.product_information &&
|
132
|
-
product_information_setups == o.product_information_setups &&
|
133
|
-
document_information == o.document_information &&
|
134
|
-
details == o.details
|
135
|
-
end
|
136
|
-
|
137
|
-
# @see the `==` method
|
138
|
-
# @param [Object] Object to be compared
|
139
|
-
def eql?(o)
|
140
|
-
self == o
|
141
|
-
end
|
142
|
-
|
143
|
-
# Calculates hash code according to all attributes.
|
144
|
-
# @return [Fixnum] Hash code
|
145
|
-
def hash
|
146
|
-
[registration_information, integration_information, organization_information, product_information, product_information_setups, document_information, details].hash
|
147
|
-
end
|
148
|
-
|
149
|
-
# Builds the object from hash
|
150
|
-
# @param [Hash] attributes Model attributes in the form of hash
|
151
|
-
# @return [Object] Returns the model itself
|
152
|
-
def build_from_hash(attributes)
|
153
|
-
return nil unless attributes.is_a?(Hash)
|
154
|
-
self.class.swagger_types.each_pair do |key, type|
|
155
|
-
if type =~ /\AArray<(.*)>/i
|
156
|
-
# check to ensure the input is an array given that the the attribute
|
157
|
-
# is documented as an array but the input is not
|
158
|
-
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
159
|
-
self.send("#{self.class.json_map[key]}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
160
|
-
end
|
161
|
-
elsif !attributes[self.class.attribute_map[key]].nil?
|
162
|
-
self.send("#{self.class.json_map[key]}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
163
|
-
end # or else data not found in attributes(hash), not an issue as the data can be optional
|
164
|
-
end
|
165
|
-
|
166
|
-
self
|
167
|
-
end
|
168
|
-
|
169
|
-
# Deserializes the data based on type
|
170
|
-
# @param string type Data type
|
171
|
-
# @param string value Value to be deserialized
|
172
|
-
# @return [Object] Deserialized data
|
173
|
-
def _deserialize(type, value)
|
174
|
-
case type.to_sym
|
175
|
-
when :DateTime
|
176
|
-
DateTime.parse(value)
|
177
|
-
when :Date
|
178
|
-
Date.parse(value)
|
179
|
-
when :String
|
180
|
-
value.to_s
|
181
|
-
when :Integer
|
182
|
-
value.to_i
|
183
|
-
when :Float
|
184
|
-
value.to_f
|
185
|
-
when :BOOLEAN
|
186
|
-
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
187
|
-
true
|
188
|
-
else
|
189
|
-
false
|
190
|
-
end
|
191
|
-
when :Object
|
192
|
-
# generic object (usually a Hash), return directly
|
193
|
-
value
|
194
|
-
when /\AArray<(?<inner_type>.+)>\z/
|
195
|
-
inner_type = Regexp.last_match[:inner_type]
|
196
|
-
value.map { |v| _deserialize(inner_type, v) }
|
197
|
-
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
198
|
-
k_type = Regexp.last_match[:k_type]
|
199
|
-
v_type = Regexp.last_match[:v_type]
|
200
|
-
{}.tap do |hash|
|
201
|
-
value.each do |k, v|
|
202
|
-
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
203
|
-
end
|
204
|
-
end
|
205
|
-
else # model
|
206
|
-
temp_model = CyberSource.const_get(type).new
|
207
|
-
temp_model.build_from_hash(value)
|
208
|
-
end
|
209
|
-
end
|
210
|
-
|
211
|
-
# Returns the string representation of the object
|
212
|
-
# @return [String] String presentation of the object
|
213
|
-
def to_s
|
214
|
-
to_hash.to_s
|
215
|
-
end
|
216
|
-
|
217
|
-
# to_body is an alias to to_hash (backward compatibility)
|
218
|
-
# @return [Hash] Returns the object in the form of hash
|
219
|
-
def to_body
|
220
|
-
to_hash
|
221
|
-
end
|
222
|
-
|
223
|
-
# Returns the object in the form of hash
|
224
|
-
# @return [Hash] Returns the object in the form of hash
|
225
|
-
def to_hash
|
226
|
-
hash = {}
|
227
|
-
self.class.attribute_map.each_pair do |attr, param|
|
228
|
-
value = self.send(attr)
|
229
|
-
next if value.nil?
|
230
|
-
hash[param] = _to_hash(value)
|
231
|
-
end
|
232
|
-
hash
|
233
|
-
end
|
234
|
-
|
235
|
-
# Outputs non-array value in the form of hash
|
236
|
-
# For object, use to_hash. Otherwise, just return the value
|
237
|
-
# @param [Object] value Any valid value
|
238
|
-
# @return [Hash] Returns the value in the form of hash
|
239
|
-
def _to_hash(value)
|
240
|
-
if value.is_a?(Array)
|
241
|
-
value.compact.map { |v| _to_hash(v) }
|
242
|
-
elsif value.is_a?(Hash)
|
243
|
-
{}.tap do |hash|
|
244
|
-
value.each { |k, v| hash[k] = _to_hash(v) }
|
245
|
-
end
|
246
|
-
elsif value.respond_to? :to_hash
|
247
|
-
value.to_hash
|
248
|
-
else
|
249
|
-
value
|
250
|
-
end
|
251
|
-
end
|
252
|
-
end
|
253
|
-
end
|
1
|
+
=begin
|
2
|
+
#CyberSource Merged Spec
|
3
|
+
|
4
|
+
#All CyberSource API specs merged together. These are available at https://developer.cybersource.com/api/reference/api-reference.html
|
5
|
+
|
6
|
+
OpenAPI spec version: 0.0.1
|
7
|
+
|
8
|
+
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
9
|
+
Swagger Codegen version: 2.4.38
|
10
|
+
=end
|
11
|
+
|
12
|
+
require 'date'
|
13
|
+
|
14
|
+
module CyberSource
|
15
|
+
class InlineResponse2002
|
16
|
+
attr_accessor :registration_information
|
17
|
+
|
18
|
+
attr_accessor :integration_information
|
19
|
+
|
20
|
+
attr_accessor :organization_information
|
21
|
+
|
22
|
+
attr_accessor :product_information
|
23
|
+
|
24
|
+
attr_accessor :product_information_setups
|
25
|
+
|
26
|
+
attr_accessor :document_information
|
27
|
+
|
28
|
+
attr_accessor :details
|
29
|
+
|
30
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
31
|
+
def self.attribute_map
|
32
|
+
{
|
33
|
+
:'registration_information' => :'registrationInformation',
|
34
|
+
:'integration_information' => :'integrationInformation',
|
35
|
+
:'organization_information' => :'organizationInformation',
|
36
|
+
:'product_information' => :'productInformation',
|
37
|
+
:'product_information_setups' => :'productInformationSetups',
|
38
|
+
:'document_information' => :'documentInformation',
|
39
|
+
:'details' => :'details'
|
40
|
+
}
|
41
|
+
end
|
42
|
+
|
43
|
+
# Attribute mapping from JSON key to ruby-style variable name.
|
44
|
+
def self.json_map
|
45
|
+
{
|
46
|
+
:'registration_information' => :'registration_information',
|
47
|
+
:'integration_information' => :'integration_information',
|
48
|
+
:'organization_information' => :'organization_information',
|
49
|
+
:'product_information' => :'product_information',
|
50
|
+
:'product_information_setups' => :'product_information_setups',
|
51
|
+
:'document_information' => :'document_information',
|
52
|
+
:'details' => :'details'
|
53
|
+
}
|
54
|
+
end
|
55
|
+
|
56
|
+
# Attribute type mapping.
|
57
|
+
def self.swagger_types
|
58
|
+
{
|
59
|
+
:'registration_information' => :'Boardingv1registrationsRegistrationInformation',
|
60
|
+
:'integration_information' => :'InlineResponse2002IntegrationInformation',
|
61
|
+
:'organization_information' => :'Boardingv1registrationsOrganizationInformation',
|
62
|
+
:'product_information' => :'Boardingv1registrationsProductInformation',
|
63
|
+
:'product_information_setups' => :'Array<InlineResponse2013ProductInformationSetups>',
|
64
|
+
:'document_information' => :'Boardingv1registrationsDocumentInformation',
|
65
|
+
:'details' => :'Hash<String, Array<Object>>'
|
66
|
+
}
|
67
|
+
end
|
68
|
+
|
69
|
+
# Initializes the object
|
70
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
71
|
+
def initialize(attributes = {})
|
72
|
+
return unless attributes.is_a?(Hash)
|
73
|
+
|
74
|
+
# convert string to symbol for hash key
|
75
|
+
attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
|
76
|
+
|
77
|
+
if attributes.has_key?(:'registrationInformation')
|
78
|
+
self.registration_information = attributes[:'registrationInformation']
|
79
|
+
end
|
80
|
+
|
81
|
+
if attributes.has_key?(:'integrationInformation')
|
82
|
+
self.integration_information = attributes[:'integrationInformation']
|
83
|
+
end
|
84
|
+
|
85
|
+
if attributes.has_key?(:'organizationInformation')
|
86
|
+
self.organization_information = attributes[:'organizationInformation']
|
87
|
+
end
|
88
|
+
|
89
|
+
if attributes.has_key?(:'productInformation')
|
90
|
+
self.product_information = attributes[:'productInformation']
|
91
|
+
end
|
92
|
+
|
93
|
+
if attributes.has_key?(:'productInformationSetups')
|
94
|
+
if (value = attributes[:'productInformationSetups']).is_a?(Array)
|
95
|
+
self.product_information_setups = value
|
96
|
+
end
|
97
|
+
end
|
98
|
+
|
99
|
+
if attributes.has_key?(:'documentInformation')
|
100
|
+
self.document_information = attributes[:'documentInformation']
|
101
|
+
end
|
102
|
+
|
103
|
+
if attributes.has_key?(:'details')
|
104
|
+
if (value = attributes[:'details']).is_a?(Hash)
|
105
|
+
self.details = value
|
106
|
+
end
|
107
|
+
end
|
108
|
+
end
|
109
|
+
|
110
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
111
|
+
# @return Array for valid properties with the reasons
|
112
|
+
def list_invalid_properties
|
113
|
+
invalid_properties = Array.new
|
114
|
+
invalid_properties
|
115
|
+
end
|
116
|
+
|
117
|
+
# Check to see if the all the properties in the model are valid
|
118
|
+
# @return true if the model is valid
|
119
|
+
def valid?
|
120
|
+
true
|
121
|
+
end
|
122
|
+
|
123
|
+
# Checks equality by comparing each attribute.
|
124
|
+
# @param [Object] Object to be compared
|
125
|
+
def ==(o)
|
126
|
+
return true if self.equal?(o)
|
127
|
+
self.class == o.class &&
|
128
|
+
registration_information == o.registration_information &&
|
129
|
+
integration_information == o.integration_information &&
|
130
|
+
organization_information == o.organization_information &&
|
131
|
+
product_information == o.product_information &&
|
132
|
+
product_information_setups == o.product_information_setups &&
|
133
|
+
document_information == o.document_information &&
|
134
|
+
details == o.details
|
135
|
+
end
|
136
|
+
|
137
|
+
# @see the `==` method
|
138
|
+
# @param [Object] Object to be compared
|
139
|
+
def eql?(o)
|
140
|
+
self == o
|
141
|
+
end
|
142
|
+
|
143
|
+
# Calculates hash code according to all attributes.
|
144
|
+
# @return [Fixnum] Hash code
|
145
|
+
def hash
|
146
|
+
[registration_information, integration_information, organization_information, product_information, product_information_setups, document_information, details].hash
|
147
|
+
end
|
148
|
+
|
149
|
+
# Builds the object from hash
|
150
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
151
|
+
# @return [Object] Returns the model itself
|
152
|
+
def build_from_hash(attributes)
|
153
|
+
return nil unless attributes.is_a?(Hash)
|
154
|
+
self.class.swagger_types.each_pair do |key, type|
|
155
|
+
if type =~ /\AArray<(.*)>/i
|
156
|
+
# check to ensure the input is an array given that the the attribute
|
157
|
+
# is documented as an array but the input is not
|
158
|
+
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
159
|
+
self.send("#{self.class.json_map[key]}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
160
|
+
end
|
161
|
+
elsif !attributes[self.class.attribute_map[key]].nil?
|
162
|
+
self.send("#{self.class.json_map[key]}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
163
|
+
end # or else data not found in attributes(hash), not an issue as the data can be optional
|
164
|
+
end
|
165
|
+
|
166
|
+
self
|
167
|
+
end
|
168
|
+
|
169
|
+
# Deserializes the data based on type
|
170
|
+
# @param string type Data type
|
171
|
+
# @param string value Value to be deserialized
|
172
|
+
# @return [Object] Deserialized data
|
173
|
+
def _deserialize(type, value)
|
174
|
+
case type.to_sym
|
175
|
+
when :DateTime
|
176
|
+
DateTime.parse(value)
|
177
|
+
when :Date
|
178
|
+
Date.parse(value)
|
179
|
+
when :String
|
180
|
+
value.to_s
|
181
|
+
when :Integer
|
182
|
+
value.to_i
|
183
|
+
when :Float
|
184
|
+
value.to_f
|
185
|
+
when :BOOLEAN
|
186
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
187
|
+
true
|
188
|
+
else
|
189
|
+
false
|
190
|
+
end
|
191
|
+
when :Object
|
192
|
+
# generic object (usually a Hash), return directly
|
193
|
+
value
|
194
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
195
|
+
inner_type = Regexp.last_match[:inner_type]
|
196
|
+
value.map { |v| _deserialize(inner_type, v) }
|
197
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
198
|
+
k_type = Regexp.last_match[:k_type]
|
199
|
+
v_type = Regexp.last_match[:v_type]
|
200
|
+
{}.tap do |hash|
|
201
|
+
value.each do |k, v|
|
202
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
203
|
+
end
|
204
|
+
end
|
205
|
+
else # model
|
206
|
+
temp_model = CyberSource.const_get(type).new
|
207
|
+
temp_model.build_from_hash(value)
|
208
|
+
end
|
209
|
+
end
|
210
|
+
|
211
|
+
# Returns the string representation of the object
|
212
|
+
# @return [String] String presentation of the object
|
213
|
+
def to_s
|
214
|
+
to_hash.to_s
|
215
|
+
end
|
216
|
+
|
217
|
+
# to_body is an alias to to_hash (backward compatibility)
|
218
|
+
# @return [Hash] Returns the object in the form of hash
|
219
|
+
def to_body
|
220
|
+
to_hash
|
221
|
+
end
|
222
|
+
|
223
|
+
# Returns the object in the form of hash
|
224
|
+
# @return [Hash] Returns the object in the form of hash
|
225
|
+
def to_hash
|
226
|
+
hash = {}
|
227
|
+
self.class.attribute_map.each_pair do |attr, param|
|
228
|
+
value = self.send(attr)
|
229
|
+
next if value.nil?
|
230
|
+
hash[param] = _to_hash(value)
|
231
|
+
end
|
232
|
+
hash
|
233
|
+
end
|
234
|
+
|
235
|
+
# Outputs non-array value in the form of hash
|
236
|
+
# For object, use to_hash. Otherwise, just return the value
|
237
|
+
# @param [Object] value Any valid value
|
238
|
+
# @return [Hash] Returns the value in the form of hash
|
239
|
+
def _to_hash(value)
|
240
|
+
if value.is_a?(Array)
|
241
|
+
value.compact.map { |v| _to_hash(v) }
|
242
|
+
elsif value.is_a?(Hash)
|
243
|
+
{}.tap do |hash|
|
244
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
245
|
+
end
|
246
|
+
elsif value.respond_to? :to_hash
|
247
|
+
value.to_hash
|
248
|
+
else
|
249
|
+
value
|
250
|
+
end
|
251
|
+
end
|
252
|
+
end
|
253
|
+
end
|
@@ -24,7 +24,7 @@ module CyberSource
|
|
24
24
|
# The client's endpoint (URL) to receive webhooks.
|
25
25
|
attr_accessor :webhook_url
|
26
26
|
|
27
|
-
# The client's health check endpoint (URL).
|
27
|
+
# The client's health check endpoint (URL).
|
28
28
|
attr_accessor :health_check_url
|
29
29
|
|
30
30
|
# Webhook status.
|
@@ -43,8 +43,8 @@ module CyberSource
|
|
43
43
|
# Date on which webhook was created/registered.
|
44
44
|
attr_accessor :created_on
|
45
45
|
|
46
|
-
#
|
47
|
-
attr_accessor :
|
46
|
+
# The webhook scope. 1. SELF The Webhook is used to deliver webhooks for only this Organization (or Merchant). 2. DESCENDANTS The Webhook is used to deliver webhooks for this Organization and its children. This field is optional. Possible values: - SELF - DESCENDANTS
|
47
|
+
attr_accessor :notification_scope
|
48
48
|
|
49
49
|
# Attribute mapping from ruby-style variable name to JSON key.
|
50
50
|
def self.attribute_map
|
@@ -60,7 +60,7 @@ module CyberSource
|
|
60
60
|
:'retry_policy' => :'retryPolicy',
|
61
61
|
:'security_policy' => :'securityPolicy',
|
62
62
|
:'created_on' => :'createdOn',
|
63
|
-
:'
|
63
|
+
:'notification_scope' => :'notificationScope'
|
64
64
|
}
|
65
65
|
end
|
66
66
|
|
@@ -78,7 +78,7 @@ module CyberSource
|
|
78
78
|
:'retry_policy' => :'retry_policy',
|
79
79
|
:'security_policy' => :'security_policy',
|
80
80
|
:'created_on' => :'created_on',
|
81
|
-
:'
|
81
|
+
:'notification_scope' => :'notification_scope'
|
82
82
|
}
|
83
83
|
end
|
84
84
|
|
@@ -96,7 +96,7 @@ module CyberSource
|
|
96
96
|
:'retry_policy' => :'Notificationsubscriptionsv2webhooksRetryPolicy',
|
97
97
|
:'security_policy' => :'Notificationsubscriptionsv2webhooksSecurityPolicy',
|
98
98
|
:'created_on' => :'String',
|
99
|
-
:'
|
99
|
+
:'notification_scope' => :'String'
|
100
100
|
}
|
101
101
|
end
|
102
102
|
|
@@ -156,8 +156,10 @@ module CyberSource
|
|
156
156
|
self.created_on = attributes[:'createdOn']
|
157
157
|
end
|
158
158
|
|
159
|
-
if attributes.has_key?(:'
|
160
|
-
self.
|
159
|
+
if attributes.has_key?(:'notificationScope')
|
160
|
+
self.notification_scope = attributes[:'notificationScope']
|
161
|
+
else
|
162
|
+
self.notification_scope = 'DESCENDANTS'
|
161
163
|
end
|
162
164
|
end
|
163
165
|
|
@@ -190,7 +192,7 @@ module CyberSource
|
|
190
192
|
retry_policy == o.retry_policy &&
|
191
193
|
security_policy == o.security_policy &&
|
192
194
|
created_on == o.created_on &&
|
193
|
-
|
195
|
+
notification_scope == o.notification_scope
|
194
196
|
end
|
195
197
|
|
196
198
|
# @see the `==` method
|
@@ -202,7 +204,7 @@ module CyberSource
|
|
202
204
|
# Calculates hash code according to all attributes.
|
203
205
|
# @return [Fixnum] Hash code
|
204
206
|
def hash
|
205
|
-
[webhook_id, organization_id, products, webhook_url, health_check_url, status, name, description, retry_policy, security_policy, created_on,
|
207
|
+
[webhook_id, organization_id, products, webhook_url, health_check_url, status, name, description, retry_policy, security_policy, created_on, notification_scope].hash
|
206
208
|
end
|
207
209
|
|
208
210
|
# Builds the object from hash
|