cybersource_rest_client 0.0.53 → 0.0.55

Sign up to get free protection for your applications and to get access to all the features.
Files changed (148) hide show
  1. checksums.yaml +4 -4
  2. data/lib/AuthenticationSDK/authentication/http/GetSignatureParameter.rb +2 -2
  3. data/lib/AuthenticationSDK/authentication/http/HttpSignatureHeader.rb +6 -6
  4. data/lib/AuthenticationSDK/core/MerchantConfig.rb +6 -0
  5. data/lib/AuthenticationSDK/util/Cache.rb +15 -1
  6. data/lib/AuthenticationSDK/util/Constants.rb +1 -1
  7. data/lib/AuthenticationSDK/util/JWEUtility.rb +14 -0
  8. data/lib/cybersource_rest_client/api/batches_api.rb +12 -12
  9. data/lib/cybersource_rest_client/api/billing_agreements_api.rb +231 -0
  10. data/lib/cybersource_rest_client/api/decision_manager_api.rb +142 -0
  11. data/lib/cybersource_rest_client/api/invoice_settings_api.rb +2 -2
  12. data/lib/cybersource_rest_client/api/invoices_api.rb +6 -6
  13. data/lib/cybersource_rest_client/api/keymanagement_api.rb +3 -3
  14. data/lib/cybersource_rest_client/api/payments_api.rb +2 -2
  15. data/lib/cybersource_rest_client/api/plans_api.rb +32 -32
  16. data/lib/cybersource_rest_client/api/subscriptions_api.rb +32 -32
  17. data/lib/cybersource_rest_client/api/void_api.rb +2 -2
  18. data/lib/cybersource_rest_client/models/access_token_response.rb +244 -244
  19. data/lib/cybersource_rest_client/models/activate_deactivate_plan_response.rb +239 -0
  20. data/lib/cybersource_rest_client/models/{inline_response_200_9.rb → activate_subscription_response.rb} +2 -2
  21. data/lib/cybersource_rest_client/models/{inline_response_200_9_subscription_information.rb → activate_subscription_response_subscription_information.rb} +1 -1
  22. data/lib/cybersource_rest_client/models/bad_request_error.rb +192 -192
  23. data/lib/cybersource_rest_client/models/{inline_response_202_1.rb → cancel_subscription_response.rb} +2 -2
  24. data/lib/cybersource_rest_client/models/{inline_response_202_subscription_information.rb → cancel_subscription_response_subscription_information.rb} +1 -1
  25. data/lib/cybersource_rest_client/models/case_management_actions_request.rb +200 -0
  26. data/lib/cybersource_rest_client/models/case_management_comments_request.rb +206 -0
  27. data/lib/cybersource_rest_client/models/create_access_token_request.rb +254 -254
  28. data/lib/cybersource_rest_client/models/{inline_response_200_14.rb → create_billing_agreement.rb} +65 -88
  29. data/lib/cybersource_rest_client/models/create_bundled_decision_manager_case_request.rb +15 -5
  30. data/lib/cybersource_rest_client/models/create_plan_response.rb +239 -0
  31. data/lib/cybersource_rest_client/models/{inline_response_201_plan_information.rb → create_plan_response_plan_information.rb} +1 -1
  32. data/lib/cybersource_rest_client/models/create_subscription_request.rb +1 -1
  33. data/lib/cybersource_rest_client/models/{inline_response_201_1.rb → create_subscription_response.rb} +3 -3
  34. data/lib/cybersource_rest_client/models/{inline_response_201_1__links.rb → create_subscription_response__links.rb} +1 -1
  35. data/lib/cybersource_rest_client/models/{inline_response_201_1_subscription_information.rb → create_subscription_response_subscription_information.rb} +1 -1
  36. data/lib/cybersource_rest_client/models/delete_plan_response.rb +202 -0
  37. data/lib/cybersource_rest_client/models/{inline_response_202_2.rb → get_all_plans_response.rb} +31 -18
  38. data/lib/cybersource_rest_client/models/{inline_response_200__links.rb → get_all_plans_response__links.rb} +1 -1
  39. data/lib/cybersource_rest_client/models/{inline_response_200_order_information.rb → get_all_plans_response_order_information.rb} +2 -2
  40. data/lib/cybersource_rest_client/models/{inline_response_200_order_information_amount_details.rb → get_all_plans_response_order_information_amount_details.rb} +1 -1
  41. data/lib/cybersource_rest_client/models/{inline_response_200_plan_information.rb → get_all_plans_response_plan_information.rb} +3 -3
  42. data/lib/cybersource_rest_client/models/{inline_response_200_plan_information_billing_cycles.rb → get_all_plans_response_plan_information_billing_cycles.rb} +1 -1
  43. data/lib/cybersource_rest_client/models/{inline_response_200_plan_information_billing_period.rb → get_all_plans_response_plan_information_billing_period.rb} +1 -1
  44. data/lib/cybersource_rest_client/models/{inline_response_200_plans.rb → get_all_plans_response_plans.rb} +3 -3
  45. data/lib/cybersource_rest_client/models/{inline_response_200_6.rb → get_all_subscriptions_response.rb} +3 -3
  46. data/lib/cybersource_rest_client/models/{inline_response_200_6__links.rb → get_all_subscriptions_response__links.rb} +1 -1
  47. data/lib/cybersource_rest_client/models/get_all_subscriptions_response_order_information.rb +200 -0
  48. data/lib/cybersource_rest_client/models/{inline_response_200_6_order_information_bill_to.rb → get_all_subscriptions_response_order_information_bill_to.rb} +1 -1
  49. data/lib/cybersource_rest_client/models/{inline_response_200_6_payment_information.rb → get_all_subscriptions_response_payment_information.rb} +2 -2
  50. data/lib/cybersource_rest_client/models/{inline_response_200_6_payment_information_customer.rb → get_all_subscriptions_response_payment_information_customer.rb} +1 -1
  51. data/lib/cybersource_rest_client/models/{inline_response_200_6_plan_information.rb → get_all_subscriptions_response_plan_information.rb} +3 -3
  52. data/lib/cybersource_rest_client/models/{inline_response_200_6_plan_information_billing_cycles.rb → get_all_subscriptions_response_plan_information_billing_cycles.rb} +1 -1
  53. data/lib/cybersource_rest_client/models/{inline_response_200_6_subscription_information.rb → get_all_subscriptions_response_subscription_information.rb} +1 -1
  54. data/lib/cybersource_rest_client/models/{inline_response_200_6_subscriptions.rb → get_all_subscriptions_response_subscriptions.rb} +6 -6
  55. data/lib/cybersource_rest_client/models/{inline_response_200_5.rb → get_plan_code_response.rb} +1 -1
  56. data/lib/cybersource_rest_client/models/get_plan_response.rb +238 -0
  57. data/lib/cybersource_rest_client/models/{inline_response_200_10.rb → get_subscription_code_response.rb} +1 -1
  58. data/lib/cybersource_rest_client/models/{inline_response_200_7.rb → get_subscription_response.rb} +6 -6
  59. data/lib/cybersource_rest_client/models/inline_response_200.rb +30 -25
  60. data/lib/cybersource_rest_client/models/inline_response_200_1.rb +50 -40
  61. data/lib/cybersource_rest_client/models/{inline_response_200_11_keys.rb → inline_response_200_1_keys.rb} +1 -1
  62. data/lib/cybersource_rest_client/models/inline_response_200_2.rb +67 -17
  63. data/lib/cybersource_rest_client/models/{inline_response_200_12__embedded.rb → inline_response_200_2__embedded.rb} +2 -2
  64. data/lib/cybersource_rest_client/models/{inline_response_200_12__embedded__links.rb → inline_response_200_2__embedded__links.rb} +2 -2
  65. data/lib/cybersource_rest_client/models/{inline_response_200_12__embedded__links_reports.rb → inline_response_200_2__embedded__links_reports.rb} +1 -1
  66. data/lib/cybersource_rest_client/models/{inline_response_200_12__embedded_batches.rb → inline_response_200_2__embedded_batches.rb} +3 -3
  67. data/lib/cybersource_rest_client/models/{inline_response_200_12__embedded_totals.rb → inline_response_200_2__embedded_totals.rb} +1 -1
  68. data/lib/cybersource_rest_client/models/{inline_response_200_12__links.rb → inline_response_200_2__links.rb} +1 -1
  69. data/lib/cybersource_rest_client/models/inline_response_200_3.rb +81 -29
  70. data/lib/cybersource_rest_client/models/{inline_response_200_13__links.rb → inline_response_200_3__links.rb} +3 -3
  71. data/lib/cybersource_rest_client/models/{inline_response_202_2__links_status.rb → inline_response_200_3__links_report.rb} +1 -1
  72. data/lib/cybersource_rest_client/models/{inline_response_200_13_billing.rb → inline_response_200_3_billing.rb} +1 -1
  73. data/lib/cybersource_rest_client/models/inline_response_200_4.rb +96 -42
  74. data/lib/cybersource_rest_client/models/{inline_response_200_14_records.rb → inline_response_200_4_records.rb} +3 -3
  75. data/lib/cybersource_rest_client/models/{inline_response_200_14_response_record.rb → inline_response_200_4_response_record.rb} +2 -2
  76. data/lib/cybersource_rest_client/models/{inline_response_200_14_response_record_additional_updates.rb → inline_response_200_4_response_record_additional_updates.rb} +1 -1
  77. data/lib/cybersource_rest_client/models/{inline_response_200_14_source_record.rb → inline_response_200_4_source_record.rb} +1 -1
  78. data/lib/cybersource_rest_client/models/inline_response_200__embedded.rb +201 -0
  79. data/lib/cybersource_rest_client/models/inline_response_200__embedded_capture.rb +202 -0
  80. data/lib/cybersource_rest_client/models/inline_response_200__embedded_capture__links.rb +191 -0
  81. data/lib/cybersource_rest_client/models/inline_response_200__embedded_capture__links_self.rb +203 -0
  82. data/lib/cybersource_rest_client/models/inline_response_200__embedded_reversal.rb +202 -0
  83. data/lib/cybersource_rest_client/models/inline_response_200__embedded_reversal__links.rb +191 -0
  84. data/lib/cybersource_rest_client/models/inline_response_200__embedded_reversal__links_self.rb +203 -0
  85. data/lib/cybersource_rest_client/models/inline_response_201.rb +7 -27
  86. data/lib/cybersource_rest_client/models/inline_response_202.rb +17 -45
  87. data/lib/cybersource_rest_client/models/{inline_response_202_2__links.rb → inline_response_202__links.rb} +2 -2
  88. data/lib/cybersource_rest_client/models/{inline_response_200_13__links_report.rb → inline_response_202__links_status.rb} +1 -1
  89. data/lib/cybersource_rest_client/models/inline_response_400_1.rb +3 -3
  90. data/lib/cybersource_rest_client/models/inline_response_400_2.rb +1 -1
  91. data/lib/cybersource_rest_client/models/inline_response_400_3.rb +37 -60
  92. data/lib/cybersource_rest_client/models/inline_response_400_4.rb +61 -37
  93. data/lib/cybersource_rest_client/models/{inline_response_400_3_fields.rb → inline_response_400_4_fields.rb} +1 -1
  94. data/lib/cybersource_rest_client/models/inline_response_400_5.rb +10 -11
  95. data/lib/cybersource_rest_client/models/inline_response_400_6.rb +35 -75
  96. data/lib/cybersource_rest_client/models/inline_response_400_7.rb +276 -0
  97. data/lib/cybersource_rest_client/models/{inline_response_400_6_details.rb → inline_response_400_7_details.rb} +1 -1
  98. data/lib/cybersource_rest_client/models/inline_response_403_1.rb +236 -0
  99. data/lib/cybersource_rest_client/models/inline_response_422.rb +236 -0
  100. data/lib/cybersource_rest_client/models/inline_response_500_1.rb +20 -8
  101. data/lib/cybersource_rest_client/models/inline_response_500_2.rb +224 -0
  102. data/lib/cybersource_rest_client/models/inline_response_502.rb +13 -12
  103. data/lib/cybersource_rest_client/models/inline_response_502_1.rb +235 -0
  104. data/lib/cybersource_rest_client/models/inline_response_503.rb +236 -0
  105. data/lib/cybersource_rest_client/models/{inline_response_200_12.rb → intimate_billing_agreement.rb} +37 -59
  106. data/lib/cybersource_rest_client/models/invoicing_v2_invoices_all_get200_response.rb +1 -1
  107. data/lib/cybersource_rest_client/models/modify_billing_agreement.rb +270 -0
  108. data/lib/cybersource_rest_client/models/pts_v2_credits_post201_response_1.rb +239 -0
  109. data/lib/cybersource_rest_client/models/pts_v2_credits_post201_response_1_installment_information.rb +197 -0
  110. data/lib/cybersource_rest_client/models/pts_v2_credits_post201_response_1_processor_information.rb +214 -0
  111. data/lib/cybersource_rest_client/models/ptsv2billingagreements_aggregator_information.rb +207 -0
  112. data/lib/cybersource_rest_client/models/ptsv2billingagreements_consumer_authentication_information.rb +242 -0
  113. data/lib/cybersource_rest_client/models/ptsv2billingagreements_device_information.rb +231 -0
  114. data/lib/cybersource_rest_client/models/ptsv2billingagreements_installment_information.rb +327 -0
  115. data/lib/cybersource_rest_client/models/ptsv2billingagreements_merchant_information.rb +235 -0
  116. data/lib/cybersource_rest_client/models/ptsv2billingagreements_merchant_information_merchant_descriptor.rb +242 -0
  117. data/lib/cybersource_rest_client/models/{inline_response_200_6_order_information.rb → ptsv2billingagreements_order_information.rb} +3 -3
  118. data/lib/cybersource_rest_client/models/ptsv2billingagreements_order_information_bill_to.rb +401 -0
  119. data/lib/cybersource_rest_client/models/ptsv2billingagreements_payment_information.rb +200 -0
  120. data/lib/cybersource_rest_client/models/ptsv2billingagreements_payment_information_card.rb +259 -0
  121. data/lib/cybersource_rest_client/models/ptsv2billingagreements_payment_information_tokenized_card.rb +276 -0
  122. data/lib/cybersource_rest_client/models/ptsv2billingagreements_processing_information.rb +210 -0
  123. data/lib/cybersource_rest_client/models/ptsv2payments_order_information.rb +12 -1
  124. data/lib/cybersource_rest_client/models/ptsv2payments_processing_information_authorization_options.rb +16 -5
  125. data/lib/cybersource_rest_client/models/rbsv1plans_plan_information.rb +1 -1
  126. data/lib/cybersource_rest_client/models/rbsv1plansid_plan_information.rb +1 -1
  127. data/lib/cybersource_rest_client/models/rbsv1subscriptions_plan_information.rb +1 -1
  128. data/lib/cybersource_rest_client/models/resource_not_found_error.rb +192 -192
  129. data/lib/cybersource_rest_client/models/risk_v1_decisions_post201_response_consumer_authentication_information.rb +1 -1
  130. data/lib/cybersource_rest_client/models/riskv1authenticationsetups_token_information.rb +22 -5
  131. data/lib/cybersource_rest_client/models/riskv1decisions_order_information.rb +12 -1
  132. data/lib/cybersource_rest_client/models/riskv1decisions_processing_information.rb +1 -1
  133. data/lib/cybersource_rest_client/models/riskv1decisions_token_information.rb +197 -0
  134. data/lib/cybersource_rest_client/models/riskv1decisionsidactions_decision_information.rb +208 -0
  135. data/lib/cybersource_rest_client/models/riskv1decisionsidactions_processing_information.rb +193 -0
  136. data/lib/cybersource_rest_client/models/suspend_subscription_response.rb +239 -0
  137. data/lib/cybersource_rest_client/models/{inline_response_202_1_subscription_information.rb → suspend_subscription_response_subscription_information.rb} +1 -1
  138. data/lib/cybersource_rest_client/models/unauthorized_client_error.rb +192 -192
  139. data/lib/cybersource_rest_client/models/update_plan_request.rb +1 -1
  140. data/lib/cybersource_rest_client/models/update_plan_response.rb +239 -0
  141. data/lib/cybersource_rest_client/models/{inline_response_200_3_plan_information.rb → update_plan_response_plan_information.rb} +1 -1
  142. data/lib/cybersource_rest_client/models/{inline_response_200_8.rb → update_subscription_response.rb} +3 -3
  143. data/lib/cybersource_rest_client/models/validate_request.rb +15 -5
  144. data/lib/cybersource_rest_client/utilities/jwe_utility.rb +12 -0
  145. data/lib/cybersource_rest_client.rb +95 -54
  146. metadata +112 -57
  147. data/lib/cybersource_rest_client/models/inline_response_200_11.rb +0 -248
  148. data/lib/cybersource_rest_client/models/inline_response_200_13.rb +0 -291
@@ -13,77 +13,67 @@ Swagger Codegen version: 2.2.3
13
13
  require 'date'
14
14
 
15
15
  module CyberSource
16
- class InlineResponse20014
17
- attr_accessor :version
16
+ class CreateBillingAgreement
17
+ attr_accessor :client_reference_information
18
18
 
19
- # ISO-8601 format: yyyy-MM-ddTHH:mm:ssZ
20
- attr_accessor :report_created_date
19
+ attr_accessor :aggregator_information
21
20
 
22
- # Unique identification number assigned to the submitted request.
23
- attr_accessor :batch_id
21
+ attr_accessor :consumer_authentication_information
24
22
 
25
- # Valid Values: * SCHEDULER * TOKEN_API * CREDIT_CARD_FILE_UPLOAD * AMEX_REGSITRY * AMEX_REGISTRY_API * AMEX_MAINTENANCE
26
- attr_accessor :batch_source
23
+ attr_accessor :device_information
27
24
 
28
- attr_accessor :batch_ca_endpoints
25
+ attr_accessor :installment_information
29
26
 
30
- # ISO-8601 format: yyyy-MM-ddTHH:mm:ssZ
31
- attr_accessor :batch_created_date
27
+ attr_accessor :merchant_information
32
28
 
33
- # Reference used by merchant to identify batch.
34
- attr_accessor :merchant_reference
29
+ attr_accessor :order_information
35
30
 
36
- attr_accessor :totals
31
+ attr_accessor :payment_information
37
32
 
38
- attr_accessor :billing
39
-
40
- attr_accessor :records
33
+ attr_accessor :processing_information
41
34
 
42
35
  # Attribute mapping from ruby-style variable name to JSON key.
43
36
  def self.attribute_map
44
37
  {
45
- :'version' => :'version',
46
- :'report_created_date' => :'reportCreatedDate',
47
- :'batch_id' => :'batchId',
48
- :'batch_source' => :'batchSource',
49
- :'batch_ca_endpoints' => :'batchCaEndpoints',
50
- :'batch_created_date' => :'batchCreatedDate',
51
- :'merchant_reference' => :'merchantReference',
52
- :'totals' => :'totals',
53
- :'billing' => :'billing',
54
- :'records' => :'records'
38
+ :'client_reference_information' => :'clientReferenceInformation',
39
+ :'aggregator_information' => :'aggregatorInformation',
40
+ :'consumer_authentication_information' => :'consumerAuthenticationInformation',
41
+ :'device_information' => :'deviceInformation',
42
+ :'installment_information' => :'installmentInformation',
43
+ :'merchant_information' => :'merchantInformation',
44
+ :'order_information' => :'orderInformation',
45
+ :'payment_information' => :'paymentInformation',
46
+ :'processing_information' => :'processingInformation'
55
47
  }
56
48
  end
57
49
 
58
50
  # Attribute mapping from JSON key to ruby-style variable name.
59
51
  def self.json_map
60
52
  {
61
- :'version' => :'version',
62
- :'report_created_date' => :'report_created_date',
63
- :'batch_id' => :'batch_id',
64
- :'batch_source' => :'batch_source',
65
- :'batch_ca_endpoints' => :'batch_ca_endpoints',
66
- :'batch_created_date' => :'batch_created_date',
67
- :'merchant_reference' => :'merchant_reference',
68
- :'totals' => :'totals',
69
- :'billing' => :'billing',
70
- :'records' => :'records'
53
+ :'client_reference_information' => :'client_reference_information',
54
+ :'aggregator_information' => :'aggregator_information',
55
+ :'consumer_authentication_information' => :'consumer_authentication_information',
56
+ :'device_information' => :'device_information',
57
+ :'installment_information' => :'installment_information',
58
+ :'merchant_information' => :'merchant_information',
59
+ :'order_information' => :'order_information',
60
+ :'payment_information' => :'payment_information',
61
+ :'processing_information' => :'processing_information'
71
62
  }
72
63
  end
73
64
 
74
65
  # Attribute type mapping.
75
66
  def self.swagger_types
76
67
  {
77
- :'version' => :'String',
78
- :'report_created_date' => :'String',
79
- :'batch_id' => :'String',
80
- :'batch_source' => :'String',
81
- :'batch_ca_endpoints' => :'String',
82
- :'batch_created_date' => :'String',
83
- :'merchant_reference' => :'String',
84
- :'totals' => :'InlineResponse20012EmbeddedTotals',
85
- :'billing' => :'InlineResponse20013Billing',
86
- :'records' => :'Array<InlineResponse20014Records>'
68
+ :'client_reference_information' => :'Ptsv2paymentsClientReferenceInformation',
69
+ :'aggregator_information' => :'Ptsv2billingagreementsAggregatorInformation',
70
+ :'consumer_authentication_information' => :'Ptsv2billingagreementsConsumerAuthenticationInformation',
71
+ :'device_information' => :'Ptsv2billingagreementsDeviceInformation',
72
+ :'installment_information' => :'Ptsv2billingagreementsInstallmentInformation',
73
+ :'merchant_information' => :'Ptsv2billingagreementsMerchantInformation',
74
+ :'order_information' => :'Ptsv2billingagreementsOrderInformation',
75
+ :'payment_information' => :'Ptsv2billingagreementsPaymentInformation',
76
+ :'processing_information' => :'Ptsv2billingagreementsProcessingInformation'
87
77
  }
88
78
  end
89
79
 
@@ -95,46 +85,40 @@ module CyberSource
95
85
  # convert string to symbol for hash key
96
86
  attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
97
87
 
98
- if attributes.has_key?(:'version')
99
- self.version = attributes[:'version']
100
- end
101
-
102
- if attributes.has_key?(:'reportCreatedDate')
103
- self.report_created_date = attributes[:'reportCreatedDate']
88
+ if attributes.has_key?(:'clientReferenceInformation')
89
+ self.client_reference_information = attributes[:'clientReferenceInformation']
104
90
  end
105
91
 
106
- if attributes.has_key?(:'batchId')
107
- self.batch_id = attributes[:'batchId']
92
+ if attributes.has_key?(:'aggregatorInformation')
93
+ self.aggregator_information = attributes[:'aggregatorInformation']
108
94
  end
109
95
 
110
- if attributes.has_key?(:'batchSource')
111
- self.batch_source = attributes[:'batchSource']
96
+ if attributes.has_key?(:'consumerAuthenticationInformation')
97
+ self.consumer_authentication_information = attributes[:'consumerAuthenticationInformation']
112
98
  end
113
99
 
114
- if attributes.has_key?(:'batchCaEndpoints')
115
- self.batch_ca_endpoints = attributes[:'batchCaEndpoints']
100
+ if attributes.has_key?(:'deviceInformation')
101
+ self.device_information = attributes[:'deviceInformation']
116
102
  end
117
103
 
118
- if attributes.has_key?(:'batchCreatedDate')
119
- self.batch_created_date = attributes[:'batchCreatedDate']
104
+ if attributes.has_key?(:'installmentInformation')
105
+ self.installment_information = attributes[:'installmentInformation']
120
106
  end
121
107
 
122
- if attributes.has_key?(:'merchantReference')
123
- self.merchant_reference = attributes[:'merchantReference']
108
+ if attributes.has_key?(:'merchantInformation')
109
+ self.merchant_information = attributes[:'merchantInformation']
124
110
  end
125
111
 
126
- if attributes.has_key?(:'totals')
127
- self.totals = attributes[:'totals']
112
+ if attributes.has_key?(:'orderInformation')
113
+ self.order_information = attributes[:'orderInformation']
128
114
  end
129
115
 
130
- if attributes.has_key?(:'billing')
131
- self.billing = attributes[:'billing']
116
+ if attributes.has_key?(:'paymentInformation')
117
+ self.payment_information = attributes[:'paymentInformation']
132
118
  end
133
119
 
134
- if attributes.has_key?(:'records')
135
- if (value = attributes[:'records']).is_a?(Array)
136
- self.records = value
137
- end
120
+ if attributes.has_key?(:'processingInformation')
121
+ self.processing_information = attributes[:'processingInformation']
138
122
  end
139
123
  end
140
124
 
@@ -151,27 +135,20 @@ module CyberSource
151
135
  true
152
136
  end
153
137
 
154
- # Custom attribute writer method with validation
155
- # @param [Object] merchant_reference Value to be assigned
156
- def merchant_reference=(merchant_reference)
157
- @merchant_reference = merchant_reference
158
- end
159
-
160
138
  # Checks equality by comparing each attribute.
161
139
  # @param [Object] Object to be compared
162
140
  def ==(o)
163
141
  return true if self.equal?(o)
164
142
  self.class == o.class &&
165
- version == o.version &&
166
- report_created_date == o.report_created_date &&
167
- batch_id == o.batch_id &&
168
- batch_source == o.batch_source &&
169
- batch_ca_endpoints == o.batch_ca_endpoints &&
170
- batch_created_date == o.batch_created_date &&
171
- merchant_reference == o.merchant_reference &&
172
- totals == o.totals &&
173
- billing == o.billing &&
174
- records == o.records
143
+ client_reference_information == o.client_reference_information &&
144
+ aggregator_information == o.aggregator_information &&
145
+ consumer_authentication_information == o.consumer_authentication_information &&
146
+ device_information == o.device_information &&
147
+ installment_information == o.installment_information &&
148
+ merchant_information == o.merchant_information &&
149
+ order_information == o.order_information &&
150
+ payment_information == o.payment_information &&
151
+ processing_information == o.processing_information
175
152
  end
176
153
 
177
154
  # @see the `==` method
@@ -183,7 +160,7 @@ module CyberSource
183
160
  # Calculates hash code according to all attributes.
184
161
  # @return [Fixnum] Hash code
185
162
  def hash
186
- [version, report_created_date, batch_id, batch_source, batch_ca_endpoints, batch_created_date, merchant_reference, totals, billing, records].hash
163
+ [client_reference_information, aggregator_information, consumer_authentication_information, device_information, installment_information, merchant_information, order_information, payment_information, processing_information].hash
187
164
  end
188
165
 
189
166
  # Builds the object from hash
@@ -44,6 +44,8 @@ module CyberSource
44
44
 
45
45
  attr_accessor :watchlist_screening_information
46
46
 
47
+ attr_accessor :token_information
48
+
47
49
  # Attribute mapping from ruby-style variable name to JSON key.
48
50
  def self.attribute_map
49
51
  {
@@ -61,7 +63,8 @@ module CyberSource
61
63
  :'acquirer_information' => :'acquirerInformation',
62
64
  :'recurring_payment_information' => :'recurringPaymentInformation',
63
65
  :'consumer_authentication_information' => :'consumerAuthenticationInformation',
64
- :'watchlist_screening_information' => :'watchlistScreeningInformation'
66
+ :'watchlist_screening_information' => :'watchlistScreeningInformation',
67
+ :'token_information' => :'tokenInformation'
65
68
  }
66
69
  end
67
70
 
@@ -82,7 +85,8 @@ module CyberSource
82
85
  :'acquirer_information' => :'acquirer_information',
83
86
  :'recurring_payment_information' => :'recurring_payment_information',
84
87
  :'consumer_authentication_information' => :'consumer_authentication_information',
85
- :'watchlist_screening_information' => :'watchlist_screening_information'
88
+ :'watchlist_screening_information' => :'watchlist_screening_information',
89
+ :'token_information' => :'token_information'
86
90
  }
87
91
  end
88
92
 
@@ -103,7 +107,8 @@ module CyberSource
103
107
  :'acquirer_information' => :'Ptsv2paymentsAcquirerInformation',
104
108
  :'recurring_payment_information' => :'Ptsv2paymentsRecurringPaymentInformation',
105
109
  :'consumer_authentication_information' => :'Riskv1decisionsConsumerAuthenticationInformation',
106
- :'watchlist_screening_information' => :'Ptsv2paymentsWatchlistScreeningInformation'
110
+ :'watchlist_screening_information' => :'Ptsv2paymentsWatchlistScreeningInformation',
111
+ :'token_information' => :'Riskv1decisionsTokenInformation'
107
112
  }
108
113
  end
109
114
 
@@ -176,6 +181,10 @@ module CyberSource
176
181
  if attributes.has_key?(:'watchlistScreeningInformation')
177
182
  self.watchlist_screening_information = attributes[:'watchlistScreeningInformation']
178
183
  end
184
+
185
+ if attributes.has_key?(:'tokenInformation')
186
+ self.token_information = attributes[:'tokenInformation']
187
+ end
179
188
  end
180
189
 
181
190
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -210,7 +219,8 @@ module CyberSource
210
219
  acquirer_information == o.acquirer_information &&
211
220
  recurring_payment_information == o.recurring_payment_information &&
212
221
  consumer_authentication_information == o.consumer_authentication_information &&
213
- watchlist_screening_information == o.watchlist_screening_information
222
+ watchlist_screening_information == o.watchlist_screening_information &&
223
+ token_information == o.token_information
214
224
  end
215
225
 
216
226
  # @see the `==` method
@@ -222,7 +232,7 @@ module CyberSource
222
232
  # Calculates hash code according to all attributes.
223
233
  # @return [Fixnum] Hash code
224
234
  def hash
225
- [client_reference_information, processor_information, processing_information, payment_information, order_information, buyer_information, device_information, risk_information, travel_information, merchant_defined_information, merchant_information, acquirer_information, recurring_payment_information, consumer_authentication_information, watchlist_screening_information].hash
235
+ [client_reference_information, processor_information, processing_information, payment_information, order_information, buyer_information, device_information, risk_information, travel_information, merchant_defined_information, merchant_information, acquirer_information, recurring_payment_information, consumer_authentication_information, watchlist_screening_information, token_information].hash
226
236
  end
227
237
 
228
238
  # Builds the object from hash
@@ -0,0 +1,239 @@
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.2.3
10
+
11
+ =end
12
+
13
+ require 'date'
14
+
15
+ module CyberSource
16
+ class CreatePlanResponse
17
+ attr_accessor :_links
18
+
19
+ # 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.
20
+ attr_accessor :id
21
+
22
+ # 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.
23
+ attr_accessor :submit_time_utc
24
+
25
+ # The status of the submitted transaction. Possible values: - COMPLETED
26
+ attr_accessor :status
27
+
28
+ attr_accessor :plan_information
29
+
30
+ # Attribute mapping from ruby-style variable name to JSON key.
31
+ def self.attribute_map
32
+ {
33
+ :'_links' => :'_links',
34
+ :'id' => :'id',
35
+ :'submit_time_utc' => :'submitTimeUtc',
36
+ :'status' => :'status',
37
+ :'plan_information' => :'planInformation'
38
+ }
39
+ end
40
+
41
+ # Attribute mapping from JSON key to ruby-style variable name.
42
+ def self.json_map
43
+ {
44
+ :'_links' => :'_links',
45
+ :'id' => :'id',
46
+ :'submit_time_utc' => :'submit_time_utc',
47
+ :'status' => :'status',
48
+ :'plan_information' => :'plan_information'
49
+ }
50
+ end
51
+
52
+ # Attribute type mapping.
53
+ def self.swagger_types
54
+ {
55
+ :'_links' => :'PtsV2IncrementalAuthorizationPatch201ResponseLinks',
56
+ :'id' => :'String',
57
+ :'submit_time_utc' => :'String',
58
+ :'status' => :'String',
59
+ :'plan_information' => :'CreatePlanResponsePlanInformation'
60
+ }
61
+ end
62
+
63
+ # Initializes the object
64
+ # @param [Hash] attributes Model attributes in the form of hash
65
+ def initialize(attributes = {})
66
+ return unless attributes.is_a?(Hash)
67
+
68
+ # convert string to symbol for hash key
69
+ attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
70
+
71
+ if attributes.has_key?(:'_links')
72
+ self._links = attributes[:'_links']
73
+ end
74
+
75
+ if attributes.has_key?(:'id')
76
+ self.id = attributes[:'id']
77
+ end
78
+
79
+ if attributes.has_key?(:'submitTimeUtc')
80
+ self.submit_time_utc = attributes[:'submitTimeUtc']
81
+ end
82
+
83
+ if attributes.has_key?(:'status')
84
+ self.status = attributes[:'status']
85
+ end
86
+
87
+ if attributes.has_key?(:'planInformation')
88
+ self.plan_information = attributes[:'planInformation']
89
+ end
90
+ end
91
+
92
+ # Show invalid properties with the reasons. Usually used together with valid?
93
+ # @return Array for valid properties with the reasons
94
+ def list_invalid_properties
95
+ invalid_properties = Array.new
96
+ invalid_properties
97
+ end
98
+
99
+ # Check to see if the all the properties in the model are valid
100
+ # @return true if the model is valid
101
+ def valid?
102
+ true
103
+ end
104
+
105
+ # Custom attribute writer method with validation
106
+ # @param [Object] id Value to be assigned
107
+ def id=(id)
108
+ @id = id
109
+ end
110
+
111
+ # Checks equality by comparing each attribute.
112
+ # @param [Object] Object to be compared
113
+ def ==(o)
114
+ return true if self.equal?(o)
115
+ self.class == o.class &&
116
+ _links == o._links &&
117
+ id == o.id &&
118
+ submit_time_utc == o.submit_time_utc &&
119
+ status == o.status &&
120
+ plan_information == o.plan_information
121
+ end
122
+
123
+ # @see the `==` method
124
+ # @param [Object] Object to be compared
125
+ def eql?(o)
126
+ self == o
127
+ end
128
+
129
+ # Calculates hash code according to all attributes.
130
+ # @return [Fixnum] Hash code
131
+ def hash
132
+ [_links, id, submit_time_utc, status, plan_information].hash
133
+ end
134
+
135
+ # Builds the object from hash
136
+ # @param [Hash] attributes Model attributes in the form of hash
137
+ # @return [Object] Returns the model itself
138
+ def build_from_hash(attributes)
139
+ return nil unless attributes.is_a?(Hash)
140
+ self.class.swagger_types.each_pair do |key, type|
141
+ if type =~ /\AArray<(.*)>/i
142
+ # check to ensure the input is an array given that the the attribute
143
+ # is documented as an array but the input is not
144
+ if attributes[self.class.attribute_map[key]].is_a?(Array)
145
+ self.send("#{self.class.json_map[key]}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
146
+ end
147
+ elsif !attributes[self.class.attribute_map[key]].nil?
148
+ self.send("#{self.class.json_map[key]}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
149
+ end # or else data not found in attributes(hash), not an issue as the data can be optional
150
+ end
151
+
152
+ self
153
+ end
154
+
155
+ # Deserializes the data based on type
156
+ # @param string type Data type
157
+ # @param string value Value to be deserialized
158
+ # @return [Object] Deserialized data
159
+ def _deserialize(type, value)
160
+ case type.to_sym
161
+ when :DateTime
162
+ DateTime.parse(value)
163
+ when :Date
164
+ Date.parse(value)
165
+ when :String
166
+ value.to_s
167
+ when :Integer
168
+ value.to_i
169
+ when :Float
170
+ value.to_f
171
+ when :BOOLEAN
172
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
173
+ true
174
+ else
175
+ false
176
+ end
177
+ when :Object
178
+ # generic object (usually a Hash), return directly
179
+ value
180
+ when /\AArray<(?<inner_type>.+)>\z/
181
+ inner_type = Regexp.last_match[:inner_type]
182
+ value.map { |v| _deserialize(inner_type, v) }
183
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
184
+ k_type = Regexp.last_match[:k_type]
185
+ v_type = Regexp.last_match[:v_type]
186
+ {}.tap do |hash|
187
+ value.each do |k, v|
188
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
189
+ end
190
+ end
191
+ else # model
192
+ temp_model = CyberSource.const_get(type).new
193
+ temp_model.build_from_hash(value)
194
+ end
195
+ end
196
+
197
+ # Returns the string representation of the object
198
+ # @return [String] String presentation of the object
199
+ def to_s
200
+ to_hash.to_s
201
+ end
202
+
203
+ # to_body is an alias to to_hash (backward compatibility)
204
+ # @return [Hash] Returns the object in the form of hash
205
+ def to_body
206
+ to_hash
207
+ end
208
+
209
+ # Returns the object in the form of hash
210
+ # @return [Hash] Returns the object in the form of hash
211
+ def to_hash
212
+ hash = {}
213
+ self.class.attribute_map.each_pair do |attr, param|
214
+ value = self.send(attr)
215
+ next if value.nil?
216
+ hash[param] = _to_hash(value)
217
+ end
218
+ hash
219
+ end
220
+
221
+ # Outputs non-array value in the form of hash
222
+ # For object, use to_hash. Otherwise, just return the value
223
+ # @param [Object] value Any valid value
224
+ # @return [Hash] Returns the value in the form of hash
225
+ def _to_hash(value)
226
+ if value.is_a?(Array)
227
+ value.compact.map { |v| _to_hash(v) }
228
+ elsif value.is_a?(Hash)
229
+ {}.tap do |hash|
230
+ value.each { |k, v| hash[k] = _to_hash(v) }
231
+ end
232
+ elsif value.respond_to? :to_hash
233
+ value.to_hash
234
+ else
235
+ value
236
+ end
237
+ end
238
+ end
239
+ end
@@ -13,7 +13,7 @@ Swagger Codegen version: 2.2.3
13
13
  require 'date'
14
14
 
15
15
  module CyberSource
16
- class InlineResponse201PlanInformation
16
+ class CreatePlanResponsePlanInformation
17
17
  # Plan code
18
18
  attr_accessor :code
19
19
 
@@ -58,7 +58,7 @@ module CyberSource
58
58
  :'plan_information' => :'Rbsv1subscriptionsPlanInformation',
59
59
  :'subscription_information' => :'Rbsv1subscriptionsSubscriptionInformation',
60
60
  :'payment_information' => :'Rbsv1subscriptionsPaymentInformation',
61
- :'order_information' => :'InlineResponse200OrderInformation'
61
+ :'order_information' => :'GetAllPlansResponseOrderInformation'
62
62
  }
63
63
  end
64
64
 
@@ -13,7 +13,7 @@ Swagger Codegen version: 2.2.3
13
13
  require 'date'
14
14
 
15
15
  module CyberSource
16
- class InlineResponse2011
16
+ class CreateSubscriptionResponse
17
17
  attr_accessor :_links
18
18
 
19
19
  # 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.
@@ -52,11 +52,11 @@ module CyberSource
52
52
  # Attribute type mapping.
53
53
  def self.swagger_types
54
54
  {
55
- :'_links' => :'InlineResponse2011Links',
55
+ :'_links' => :'CreateSubscriptionResponseLinks',
56
56
  :'id' => :'String',
57
57
  :'submit_time_utc' => :'String',
58
58
  :'status' => :'String',
59
- :'subscription_information' => :'InlineResponse2011SubscriptionInformation'
59
+ :'subscription_information' => :'CreateSubscriptionResponseSubscriptionInformation'
60
60
  }
61
61
  end
62
62
 
@@ -13,7 +13,7 @@ Swagger Codegen version: 2.2.3
13
13
  require 'date'
14
14
 
15
15
  module CyberSource
16
- class InlineResponse2011Links
16
+ class CreateSubscriptionResponseLinks
17
17
  attr_accessor :_self
18
18
 
19
19
  attr_accessor :update
@@ -13,7 +13,7 @@ Swagger Codegen version: 2.2.3
13
13
  require 'date'
14
14
 
15
15
  module CyberSource
16
- class InlineResponse2011SubscriptionInformation
16
+ class CreateSubscriptionResponseSubscriptionInformation
17
17
  # Subscription code.
18
18
  attr_accessor :code
19
19