cybersource_rest_client 0.0.87 → 0.0.88

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.
Files changed (104) hide show
  1. checksums.yaml +4 -4
  2. data/lib/cybersource_rest_client/api/acp_checkout_api.rb +553 -0
  3. data/lib/cybersource_rest_client/api/agent_registration_api.rb +721 -0
  4. data/lib/cybersource_rest_client/api/bank_account_validation_api.rb +0 -1
  5. data/lib/cybersource_rest_client/api/enrollment_api.rb +104 -0
  6. data/lib/cybersource_rest_client/api/{merchant_capabilities_api.rb → merchant_registration_api.rb} +47 -391
  7. data/lib/cybersource_rest_client/api/payment_events_api.rb +197 -0
  8. data/lib/cybersource_rest_client/api/product_feed_api.rb +365 -0
  9. data/lib/cybersource_rest_client/api/purchase_intent_api.rb +278 -0
  10. data/lib/cybersource_rest_client/api/ucp_checkout_api.rb +453 -0
  11. data/lib/cybersource_rest_client/models/activate_merchant_key_response200.rb +1 -1
  12. data/lib/cybersource_rest_client/models/add_agent_key_response201.rb +11 -11
  13. data/lib/cybersource_rest_client/models/agent_registration_response201.rb +13 -15
  14. data/lib/cybersource_rest_client/models/agent_registration_response201_keys.rb +8 -8
  15. data/lib/cybersource_rest_client/models/agent_request.rb +9 -11
  16. data/lib/cybersource_rest_client/models/agent_update.rb +7 -9
  17. data/lib/cybersource_rest_client/models/auth_reversal_request.rb +1 -1
  18. data/lib/cybersource_rest_client/models/boarding_payouts_configurations.rb +1 -1
  19. data/lib/cybersource_rest_client/models/{inline_response_200_19_google_merchant_products.rb → boarding_payouts_configurations_acquirer.rb} +33 -76
  20. data/lib/cybersource_rest_client/models/{inline_response_200_19_errors.rb → boarding_payouts_configurations_merchant_descriptor.rb} +25 -33
  21. data/lib/cybersource_rest_client/models/boarding_payouts_configurations_processors.rb +581 -0
  22. data/lib/cybersource_rest_client/models/capture_payment_request.rb +1 -1
  23. data/lib/cybersource_rest_client/models/create_order_request.rb +11 -1
  24. data/lib/cybersource_rest_client/models/create_payment_request.rb +14 -1
  25. data/lib/cybersource_rest_client/models/create_session_req.rb +14 -1
  26. data/lib/cybersource_rest_client/models/create_session_request.rb +14 -1
  27. data/lib/cybersource_rest_client/models/iccv1agents_keys.rb +4 -4
  28. data/lib/cybersource_rest_client/models/iccv1merchants_api_integrations.rb +2 -2
  29. data/lib/cybersource_rest_client/models/iccv1merchants_encryption_key.rb +6 -6
  30. data/lib/cybersource_rest_client/models/iccv1merchants_protocol_interactions.rb +1 -1
  31. data/lib/cybersource_rest_client/models/iccv1merchants_web_integrations.rb +2 -2
  32. data/lib/cybersource_rest_client/models/inline_response_200_17.rb +55 -0
  33. data/lib/cybersource_rest_client/models/inline_response_200_18.rb +40 -0
  34. data/lib/cybersource_rest_client/models/inline_response_200_19.rb +30 -107
  35. data/lib/cybersource_rest_client/models/inline_response_200_19_processing.rb +213 -0
  36. data/lib/cybersource_rest_client/models/inline_response_200_19_syndication.rb +224 -0
  37. data/lib/cybersource_rest_client/models/inline_response_200_20_products.rb +80 -682
  38. data/lib/cybersource_rest_client/models/inline_response_201_12.rb +40 -0
  39. data/lib/cybersource_rest_client/models/inline_response_201_12_fulfillment_options.rb +30 -0
  40. data/lib/cybersource_rest_client/models/inline_response_201_12_totals.rb +15 -0
  41. data/lib/cybersource_rest_client/models/inline_response_201_6_setups_risk.rb +15 -5
  42. data/lib/cybersource_rest_client/models/inline_response_201_6_setups_value_added_services.rb +15 -5
  43. data/lib/cybersource_rest_client/models/{deactivate_merchant_key_response200.rb → inline_response_202_1.rb} +11 -16
  44. data/lib/cybersource_rest_client/models/key_request.rb +4 -4
  45. data/lib/cybersource_rest_client/models/key_request_1.rb +5 -5
  46. data/lib/cybersource_rest_client/models/key_update.rb +5 -5
  47. data/lib/cybersource_rest_client/models/key_update_1.rb +5 -5
  48. data/lib/cybersource_rest_client/models/list_agent_keys_response200.rb +2 -2
  49. data/lib/cybersource_rest_client/models/merchant_registration_response201.rb +10 -10
  50. data/lib/cybersource_rest_client/models/merchant_registration_response201_api_integrations.rb +225 -0
  51. data/lib/cybersource_rest_client/models/merchant_registration_response201_keys.rb +1 -1
  52. data/lib/cybersource_rest_client/models/merchant_registration_response201_web_integrations.rb +225 -0
  53. data/lib/cybersource_rest_client/models/merchant_request.rb +7 -7
  54. data/lib/cybersource_rest_client/models/merchant_update.rb +7 -7
  55. data/lib/cybersource_rest_client/models/mit_reversal_request.rb +1 -1
  56. data/lib/cybersource_rest_client/models/mit_void_request.rb +15 -5
  57. data/lib/cybersource_rest_client/models/payments_configuration_setup.rb +11 -1
  58. data/lib/cybersource_rest_client/models/payments_products.rb +11 -1
  59. data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response.rb +12 -1
  60. data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_1.rb +12 -1
  61. data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_1_order_information.rb +44 -1
  62. data/lib/cybersource_rest_client/models/{pts_v2_payouts_post201_response_merchant_information_merchant_descriptor.rb → pts_v2_payments_post201_response_1_order_information_merchant_descriptor.rb} +1 -1
  63. data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_1_processor_information.rb +18 -1
  64. data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_installment_information.rb +101 -5
  65. data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_order_information_ship_to.rb +12 -1
  66. data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_point_of_sale_information.rb +22 -5
  67. data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_processor_information.rb +22 -5
  68. data/lib/cybersource_rest_client/models/pts_v2_payments_refund_post201_response_processor_information.rb +22 -5
  69. data/lib/cybersource_rest_client/models/pts_v2_payments_reversals_post201_response.rb +1 -1
  70. data/lib/cybersource_rest_client/models/{ptsv2paymentsidreversals_point_of_sale_information.rb → pts_v2_payments_reversals_post201_response_point_of_sale_information.rb} +2 -2
  71. data/lib/cybersource_rest_client/models/{ptsv2paymentsidreversals_point_of_sale_information_emv.rb → pts_v2_payments_reversals_post201_response_point_of_sale_information_emv.rb} +1 -1
  72. data/lib/cybersource_rest_client/models/pts_v2_payments_reversals_post201_response_processor_information.rb +22 -5
  73. data/lib/cybersource_rest_client/models/pts_v2_payouts_post201_response_merchant_information.rb +1 -1
  74. data/lib/cybersource_rest_client/models/ptsv2intents_buyer_information.rb +196 -0
  75. data/lib/cybersource_rest_client/models/ptsv2intents_merchant_information_merchant_descriptor.rb +18 -1
  76. data/lib/cybersource_rest_client/models/ptsv2intents_order_information_bill_to.rb +154 -1
  77. data/lib/cybersource_rest_client/models/ptsv2intents_order_information_line_items.rb +16 -5
  78. data/lib/cybersource_rest_client/models/ptsv2intentsid_merchant_information.rb +1 -1
  79. data/lib/cybersource_rest_client/models/ptsv2intentsid_merchant_information_merchant_descriptor.rb +207 -0
  80. data/lib/cybersource_rest_client/models/{ptsv2paymentsidcaptures_point_of_sale_information.rb → ptsv2payments_buyer.rb} +55 -31
  81. data/lib/cybersource_rest_client/models/{inline_response_200_19_google_merchant.rb → ptsv2payments_order_history.rb} +42 -41
  82. data/lib/cybersource_rest_client/models/ptsv2payments_ship_to.rb +281 -0
  83. data/lib/cybersource_rest_client/models/ptsv2paymentsidrefunds_point_of_sale_information.rb +1 -1
  84. data/lib/cybersource_rest_client/models/{ptsv2paymentsidcaptures_point_of_sale_information_emv.rb → ptsv2paymentsidrefunds_point_of_sale_information_emv.rb} +1 -1
  85. data/lib/cybersource_rest_client/models/risk_products.rb +15 -5
  86. data/lib/cybersource_rest_client/models/tss_v2_transactions_get200_response_point_of_sale_information.rb +1 -1
  87. data/lib/cybersource_rest_client/models/tss_v2_transactions_post201_response__embedded_point_of_sale_information.rb +1 -1
  88. data/lib/cybersource_rest_client/models/unifiedrisk_acquirer_merchant_account_security_amount.rb +3 -3
  89. data/lib/cybersource_rest_client/models/unifiedrisk_merchant_merchant_descriptor_expected_annual_sales.rb +3 -3
  90. data/lib/cybersource_rest_client/models/unifiedrisk_merchant_merchant_descriptor_expected_average_ticket_size.rb +3 -3
  91. data/lib/cybersource_rest_client/models/unifiedrisk_merchant_merchant_descriptor_expected_monthly_sales.rb +3 -3
  92. data/lib/cybersource_rest_client/models/unifiedrisk_merchant_merchant_descriptor_limit_value.rb +3 -3
  93. data/lib/cybersource_rest_client/models/unifiedrisk_payment_bank_account_balance_before.rb +2 -2
  94. data/lib/cybersource_rest_client/models/unifiedrisk_payment_bank_account_credit_limit.rb +3 -3
  95. data/lib/cybersource_rest_client/models/unifiedrisk_transaction_additional_fees.rb +2 -2
  96. data/lib/cybersource_rest_client/models/unifiedrisk_transaction_amount.rb +3 -3
  97. data/lib/cybersource_rest_client/models/value_added_services_products.rb +15 -5
  98. data/lib/cybersource_rest_client/models/void_capture_request.rb +15 -5
  99. data/lib/cybersource_rest_client/models/void_credit_request.rb +15 -5
  100. data/lib/cybersource_rest_client/models/void_payment_request.rb +15 -5
  101. data/lib/cybersource_rest_client/models/void_refund_request.rb +15 -5
  102. data/lib/cybersource_rest_client.rb +25 -11
  103. metadata +27 -13
  104. data/lib/cybersource_rest_client/api/agent_capabilities_api.rb +0 -2279
@@ -12,53 +12,50 @@ Swagger Codegen version: 2.4.38
12
12
  require 'date'
13
13
 
14
14
  module CyberSource
15
- # Google Merchant Center upload summary. Present only when Google Merchant integration is enabled for the merchant.
16
- class InlineResponse20019GoogleMerchant
17
- # Upload outcome status: - `TRIGGERED` — async upload dispatched; check Google Merchant Center for results - `FAILED` — all products failed UCP validation; nothing sent to Google - `DISABLED` — Google Merchant integration is disabled for this merchant - `COMPLETED` — synchronous validate-and-upload completed Possible values: - TRIGGERED - FAILED - DISABLED - COMPLETED
18
- attr_accessor :status
15
+ class Ptsv2paymentsOrderHistory
16
+ # Date and time the order was purchased. 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.
17
+ attr_accessor :purchased_at
19
18
 
20
- # Number of products that passed UCP validation and were queued for upload.
21
- attr_accessor :ucp_valid_count
19
+ # Grand total for the order. This value cannot be negative. You can include a decimal point (.), but no other special characters.
20
+ attr_accessor :amount
22
21
 
23
- # Number of products that failed UCP validation and were not sent to Google.
24
- attr_accessor :ucp_invalid_count
22
+ # Status of the order.
23
+ attr_accessor :status
25
24
 
26
- # Whether Google Merchant integration is enabled for this merchant.
27
- attr_accessor :google_enabled
25
+ attr_accessor :buyer
28
26
 
29
- # Per-product UCP validation and upload results. Populated when at least one product was saved successfully. Null when all products failed ACG-level validation.
30
- attr_accessor :products
27
+ attr_accessor :ship_to
31
28
 
32
29
  # Attribute mapping from ruby-style variable name to JSON key.
33
30
  def self.attribute_map
34
31
  {
32
+ :'purchased_at' => :'purchasedAt',
33
+ :'amount' => :'amount',
35
34
  :'status' => :'status',
36
- :'ucp_valid_count' => :'ucp_valid_count',
37
- :'ucp_invalid_count' => :'ucp_invalid_count',
38
- :'google_enabled' => :'google_enabled',
39
- :'products' => :'products'
35
+ :'buyer' => :'buyer',
36
+ :'ship_to' => :'shipTo'
40
37
  }
41
38
  end
42
39
 
43
40
  # Attribute mapping from JSON key to ruby-style variable name.
44
41
  def self.json_map
45
42
  {
43
+ :'purchased_at' => :'purchased_at',
44
+ :'amount' => :'amount',
46
45
  :'status' => :'status',
47
- :'ucp_valid_count' => :'ucp_valid_count',
48
- :'ucp_invalid_count' => :'ucp_invalid_count',
49
- :'google_enabled' => :'google_enabled',
50
- :'products' => :'products'
46
+ :'buyer' => :'buyer',
47
+ :'ship_to' => :'ship_to'
51
48
  }
52
49
  end
53
50
 
54
51
  # Attribute type mapping.
55
52
  def self.swagger_types
56
53
  {
54
+ :'purchased_at' => :'String',
55
+ :'amount' => :'String',
57
56
  :'status' => :'String',
58
- :'ucp_valid_count' => :'Integer',
59
- :'ucp_invalid_count' => :'Integer',
60
- :'google_enabled' => :'BOOLEAN',
61
- :'products' => :'Array<InlineResponse20019GoogleMerchantProducts>'
57
+ :'buyer' => :'Ptsv2paymentsBuyer',
58
+ :'ship_to' => :'Ptsv2paymentsShipTo'
62
59
  }
63
60
  end
64
61
 
@@ -70,26 +67,24 @@ module CyberSource
70
67
  # convert string to symbol for hash key
71
68
  attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
72
69
 
73
- if attributes.has_key?(:'status')
74
- self.status = attributes[:'status']
70
+ if attributes.has_key?(:'purchasedAt')
71
+ self.purchased_at = attributes[:'purchasedAt']
75
72
  end
76
73
 
77
- if attributes.has_key?(:'ucp_valid_count')
78
- self.ucp_valid_count = attributes[:'ucp_valid_count']
74
+ if attributes.has_key?(:'amount')
75
+ self.amount = attributes[:'amount']
79
76
  end
80
77
 
81
- if attributes.has_key?(:'ucp_invalid_count')
82
- self.ucp_invalid_count = attributes[:'ucp_invalid_count']
78
+ if attributes.has_key?(:'status')
79
+ self.status = attributes[:'status']
83
80
  end
84
81
 
85
- if attributes.has_key?(:'google_enabled')
86
- self.google_enabled = attributes[:'google_enabled']
82
+ if attributes.has_key?(:'buyer')
83
+ self.buyer = attributes[:'buyer']
87
84
  end
88
85
 
89
- if attributes.has_key?(:'products')
90
- if (value = attributes[:'products']).is_a?(Array)
91
- self.products = value
92
- end
86
+ if attributes.has_key?(:'shipTo')
87
+ self.ship_to = attributes[:'shipTo']
93
88
  end
94
89
  end
95
90
 
@@ -106,16 +101,22 @@ module CyberSource
106
101
  true
107
102
  end
108
103
 
104
+ # Custom attribute writer method with validation
105
+ # @param [Object] amount Value to be assigned
106
+ def amount=(amount)
107
+ @amount = amount
108
+ end
109
+
109
110
  # Checks equality by comparing each attribute.
110
111
  # @param [Object] Object to be compared
111
112
  def ==(o)
112
113
  return true if self.equal?(o)
113
114
  self.class == o.class &&
115
+ purchased_at == o.purchased_at &&
116
+ amount == o.amount &&
114
117
  status == o.status &&
115
- ucp_valid_count == o.ucp_valid_count &&
116
- ucp_invalid_count == o.ucp_invalid_count &&
117
- google_enabled == o.google_enabled &&
118
- products == o.products
118
+ buyer == o.buyer &&
119
+ ship_to == o.ship_to
119
120
  end
120
121
 
121
122
  # @see the `==` method
@@ -127,7 +128,7 @@ module CyberSource
127
128
  # Calculates hash code according to all attributes.
128
129
  # @return [Fixnum] Hash code
129
130
  def hash
130
- [status, ucp_valid_count, ucp_invalid_count, google_enabled, products].hash
131
+ [purchased_at, amount, status, buyer, ship_to].hash
131
132
  end
132
133
 
133
134
  # Builds the object from hash
@@ -0,0 +1,281 @@
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 Ptsv2paymentsShipTo
16
+ # First line of the shipping address. Required field for authorization if any shipping address information is included in the request; otherwise, optional. #### Tax Calculation Optional field for U.S. and Canadian taxes. Not applicable to international and value added taxes. Billing address objects will be used to determine the cardholder's location when shipTo objects are not present.
17
+ attr_accessor :address1
18
+
19
+ # Second line of the shipping address. Optional field. #### Tax Calculation Optional field for U.S. and Canadian taxes. Not applicable to international and value added taxes. Billing address objects will be used to determine the cardholder's location when shipTo objects are not present.
20
+ attr_accessor :address2
21
+
22
+ # City of the shipping address. Required field for authorization if any shipping address information is included in the request and shipping to the U.S. or Canada; otherwise, optional. #### Tax Calculation Optional field for U.S. and Canadian taxes. Not applicable to international and value added taxes. Billing address objects will be used to determine the cardholder's location when shipTo objects are not present.
23
+ attr_accessor :locality
24
+
25
+ # State or province of the shipping address. Use the [State, Province, and Territory Codes for the United States and Canada](https://developer.cybersource.com/library/documentation/sbc/quickref/states_and_provinces.pdf) (maximum length: 2) Required field for authorization if any shipping address information is included in the request and shipping to the U.S. or Canada; otherwise, optional. #### Tax Calculation Optional field for U.S. and Canadian taxes. Not applicable to international and value added taxes. Billing address objects will be used to determine the cardholder's location when shipTo objects are not present.
26
+ attr_accessor :administrative_area
27
+
28
+ # Postal code for the shipping address. The postal code must consist of 5 to 9 digits. Required field for authorization if any shipping address information is included in the request and shipping to the U.S. or Canada; otherwise, optional. When the billing country is the U.S., the 9-digit postal code must follow this format: [5 digits][dash][4 digits] Example 12345-6789 When the billing country is Canada, the 6-digit postal code must follow this format: [alpha][numeric][alpha][space][numeric][alpha][numeric] Example A1B 2C3 #### American Express Direct Before sending the postal code to the processor, all nonalphanumeric characters are removed and, if the remaining value is longer than nine characters, the value is truncated starting from the right side. #### Tax Calculation Optional field for U.S. and Canadian taxes. Not applicable to international and value added taxes. Billing address objects will be used to determine the cardholder's location when shipTo objects are not present.
29
+ attr_accessor :postal_code
30
+
31
+ # Country of the shipping address. Use the two-character [ISO Standard Country Codes.](http://apps.cybersource.com/library/documentation/sbc/quickref/countries_alpha_list.pdf) Required field for authorization if any shipping address information is included in the request; otherwise, optional. #### Tax Calculation Optional field for U.S., Canadian, international tax, and value added taxes. Billing address objects will be used to determine the cardholder's location when shipTo objects are not present.
32
+ attr_accessor :country
33
+
34
+ # Attribute mapping from ruby-style variable name to JSON key.
35
+ def self.attribute_map
36
+ {
37
+ :'address1' => :'address1',
38
+ :'address2' => :'address2',
39
+ :'locality' => :'locality',
40
+ :'administrative_area' => :'administrativeArea',
41
+ :'postal_code' => :'postalCode',
42
+ :'country' => :'country'
43
+ }
44
+ end
45
+
46
+ # Attribute mapping from JSON key to ruby-style variable name.
47
+ def self.json_map
48
+ {
49
+ :'address1' => :'address1',
50
+ :'address2' => :'address2',
51
+ :'locality' => :'locality',
52
+ :'administrative_area' => :'administrative_area',
53
+ :'postal_code' => :'postal_code',
54
+ :'country' => :'country'
55
+ }
56
+ end
57
+
58
+ # Attribute type mapping.
59
+ def self.swagger_types
60
+ {
61
+ :'address1' => :'String',
62
+ :'address2' => :'String',
63
+ :'locality' => :'String',
64
+ :'administrative_area' => :'String',
65
+ :'postal_code' => :'String',
66
+ :'country' => :'String'
67
+ }
68
+ end
69
+
70
+ # Initializes the object
71
+ # @param [Hash] attributes Model attributes in the form of hash
72
+ def initialize(attributes = {})
73
+ return unless attributes.is_a?(Hash)
74
+
75
+ # convert string to symbol for hash key
76
+ attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
77
+
78
+ if attributes.has_key?(:'address1')
79
+ self.address1 = attributes[:'address1']
80
+ end
81
+
82
+ if attributes.has_key?(:'address2')
83
+ self.address2 = attributes[:'address2']
84
+ end
85
+
86
+ if attributes.has_key?(:'locality')
87
+ self.locality = attributes[:'locality']
88
+ end
89
+
90
+ if attributes.has_key?(:'administrativeArea')
91
+ self.administrative_area = attributes[:'administrativeArea']
92
+ end
93
+
94
+ if attributes.has_key?(:'postalCode')
95
+ self.postal_code = attributes[:'postalCode']
96
+ end
97
+
98
+ if attributes.has_key?(:'country')
99
+ self.country = attributes[:'country']
100
+ end
101
+ end
102
+
103
+ # Show invalid properties with the reasons. Usually used together with valid?
104
+ # @return Array for valid properties with the reasons
105
+ def list_invalid_properties
106
+ invalid_properties = Array.new
107
+ invalid_properties
108
+ end
109
+
110
+ # Check to see if the all the properties in the model are valid
111
+ # @return true if the model is valid
112
+ def valid?
113
+ true
114
+ end
115
+
116
+ # Custom attribute writer method with validation
117
+ # @param [Object] address1 Value to be assigned
118
+ def address1=(address1)
119
+ @address1 = address1
120
+ end
121
+
122
+ # Custom attribute writer method with validation
123
+ # @param [Object] address2 Value to be assigned
124
+ def address2=(address2)
125
+ @address2 = address2
126
+ end
127
+
128
+ # Custom attribute writer method with validation
129
+ # @param [Object] locality Value to be assigned
130
+ def locality=(locality)
131
+ @locality = locality
132
+ end
133
+
134
+ # Custom attribute writer method with validation
135
+ # @param [Object] administrative_area Value to be assigned
136
+ def administrative_area=(administrative_area)
137
+ @administrative_area = administrative_area
138
+ end
139
+
140
+ # Custom attribute writer method with validation
141
+ # @param [Object] postal_code Value to be assigned
142
+ def postal_code=(postal_code)
143
+ @postal_code = postal_code
144
+ end
145
+
146
+ # Custom attribute writer method with validation
147
+ # @param [Object] country Value to be assigned
148
+ def country=(country)
149
+ @country = country
150
+ end
151
+
152
+ # Checks equality by comparing each attribute.
153
+ # @param [Object] Object to be compared
154
+ def ==(o)
155
+ return true if self.equal?(o)
156
+ self.class == o.class &&
157
+ address1 == o.address1 &&
158
+ address2 == o.address2 &&
159
+ locality == o.locality &&
160
+ administrative_area == o.administrative_area &&
161
+ postal_code == o.postal_code &&
162
+ country == o.country
163
+ end
164
+
165
+ # @see the `==` method
166
+ # @param [Object] Object to be compared
167
+ def eql?(o)
168
+ self == o
169
+ end
170
+
171
+ # Calculates hash code according to all attributes.
172
+ # @return [Fixnum] Hash code
173
+ def hash
174
+ [address1, address2, locality, administrative_area, postal_code, country].hash
175
+ end
176
+
177
+ # Builds the object from hash
178
+ # @param [Hash] attributes Model attributes in the form of hash
179
+ # @return [Object] Returns the model itself
180
+ def build_from_hash(attributes)
181
+ return nil unless attributes.is_a?(Hash)
182
+ self.class.swagger_types.each_pair do |key, type|
183
+ if type =~ /\AArray<(.*)>/i
184
+ # check to ensure the input is an array given that the the attribute
185
+ # is documented as an array but the input is not
186
+ if attributes[self.class.attribute_map[key]].is_a?(Array)
187
+ self.send("#{self.class.json_map[key]}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
188
+ end
189
+ elsif !attributes[self.class.attribute_map[key]].nil?
190
+ self.send("#{self.class.json_map[key]}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
191
+ end # or else data not found in attributes(hash), not an issue as the data can be optional
192
+ end
193
+
194
+ self
195
+ end
196
+
197
+ # Deserializes the data based on type
198
+ # @param string type Data type
199
+ # @param string value Value to be deserialized
200
+ # @return [Object] Deserialized data
201
+ def _deserialize(type, value)
202
+ case type.to_sym
203
+ when :DateTime
204
+ DateTime.parse(value)
205
+ when :Date
206
+ Date.parse(value)
207
+ when :String
208
+ value.to_s
209
+ when :Integer
210
+ value.to_i
211
+ when :Float
212
+ value.to_f
213
+ when :BOOLEAN
214
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
215
+ true
216
+ else
217
+ false
218
+ end
219
+ when :Object
220
+ # generic object (usually a Hash), return directly
221
+ value
222
+ when /\AArray<(?<inner_type>.+)>\z/
223
+ inner_type = Regexp.last_match[:inner_type]
224
+ value.map { |v| _deserialize(inner_type, v) }
225
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
226
+ k_type = Regexp.last_match[:k_type]
227
+ v_type = Regexp.last_match[:v_type]
228
+ {}.tap do |hash|
229
+ value.each do |k, v|
230
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
231
+ end
232
+ end
233
+ else # model
234
+ temp_model = CyberSource.const_get(type).new
235
+ temp_model.build_from_hash(value)
236
+ end
237
+ end
238
+
239
+ # Returns the string representation of the object
240
+ # @return [String] String presentation of the object
241
+ def to_s
242
+ to_hash.to_s
243
+ end
244
+
245
+ # to_body is an alias to to_hash (backward compatibility)
246
+ # @return [Hash] Returns the object in the form of hash
247
+ def to_body
248
+ to_hash
249
+ end
250
+
251
+ # Returns the object in the form of hash
252
+ # @return [Hash] Returns the object in the form of hash
253
+ def to_hash
254
+ hash = {}
255
+ self.class.attribute_map.each_pair do |attr, param|
256
+ value = self.send(attr)
257
+ next if value.nil?
258
+ hash[param] = _to_hash(value)
259
+ end
260
+ hash
261
+ end
262
+
263
+ # Outputs non-array value in the form of hash
264
+ # For object, use to_hash. Otherwise, just return the value
265
+ # @param [Object] value Any valid value
266
+ # @return [Hash] Returns the value in the form of hash
267
+ def _to_hash(value)
268
+ if value.is_a?(Array)
269
+ value.compact.map { |v| _to_hash(v) }
270
+ elsif value.is_a?(Hash)
271
+ {}.tap do |hash|
272
+ value.each { |k, v| hash[k] = _to_hash(v) }
273
+ end
274
+ elsif value.respond_to? :to_hash
275
+ value.to_hash
276
+ else
277
+ value
278
+ end
279
+ end
280
+ end
281
+ end
@@ -37,7 +37,7 @@ module CyberSource
37
37
  # Attribute type mapping.
38
38
  def self.swagger_types
39
39
  {
40
- :'emv' => :'Ptsv2paymentsidcapturesPointOfSaleInformationEmv',
40
+ :'emv' => :'Ptsv2paymentsidrefundsPointOfSaleInformationEmv',
41
41
  :'terminal_category' => :'String'
42
42
  }
43
43
  end
@@ -12,7 +12,7 @@ Swagger Codegen version: 2.4.38
12
12
  require 'date'
13
13
 
14
14
  module CyberSource
15
- class Ptsv2paymentsidcapturesPointOfSaleInformationEmv
15
+ class Ptsv2paymentsidrefundsPointOfSaleInformationEmv
16
16
  # EMV data that is transmitted from the chip card to the issuer, and from the issuer to the chip card. The EMV data is in the tag-length-value format and includes chip card tags, terminal tags, and transaction detail tags. For information about the individual tags, see the \"Application Specification\" section in the EMV 4.3 Specifications: http://emvco.com **Note** Card present information about EMV applies only to credit card processing and PIN debit processing. All other card present information applies only to credit card processing. PIN debit processing is available only on FDC Nashville Global. **Important** The following tags contain sensitive information and **must not** be included in this field: - `56`: Track 1 equivalent data - `57`: Track 2 equivalent data - `5A`: Application PAN - `5F20`: Cardholder name - `5F24`: Application expiration date (This sensitivity has been relaxed for Credit Mutuel-CIC, American Express Direct, FDC Nashville Global, First Data Merchant Solutions, and SIX) - `99`: Transaction PIN - `9F0B`: Cardholder name (extended) - `9F1F`: Track 1 discretionary data - `9F20`: Track 2 discretionary data For captures, this field is required for contact EMV transactions. Otherwise, it is optional. For credits, this field is required for contact EMV stand-alone credits and contactless EMV stand-alone credits. Otherwise, it is optional. **Important** For contact EMV captures, contact EMV stand-alone credits, and contactless EMV stand-alone credits, you must include the following tags in this field. For all other types of EMV transactions, the following tags are optional. - `95`: Terminal verification results - `9F10`: Issuer application data - `9F26`: Application cryptogram #### CyberSource through VisaNet - In Japan: 199 bytes - In other countries: String (252) For Mastercard Transactions, Optionally Tag 9F60 (Authenticated Application Data) and Tag 96 (Kernel Identifier - Terminal) can be included in the Field. #### GPX This field only supports transactions from the following card types: - Visa - Mastercard - AMEX - Discover - Diners - JCB - Union Pay International #### JCN Gateway The following tags must be included: - `4F`: Application identifier - `84`: Dedicated file name Data length: 199 bytes #### All other processors: String (999) #### Used by Authorization: Optional Authorization Reversal: Optional Credit: Optional PIN Debit processing (purchase, credit and reversal): Optional
17
17
  attr_accessor :tags
18
18
 
@@ -21,13 +21,16 @@ module CyberSource
21
21
 
22
22
  attr_accessor :enhanced_authentication
23
23
 
24
+ attr_accessor :vpri
25
+
24
26
  # Attribute mapping from ruby-style variable name to JSON key.
25
27
  def self.attribute_map
26
28
  {
27
29
  :'fraud_management_essentials' => :'fraudManagementEssentials',
28
30
  :'decision_manager' => :'decisionManager',
29
31
  :'portfolio_risk_controls' => :'portfolioRiskControls',
30
- :'enhanced_authentication' => :'enhancedAuthentication'
32
+ :'enhanced_authentication' => :'enhancedAuthentication',
33
+ :'vpri' => :'vpri'
31
34
  }
32
35
  end
33
36
 
@@ -37,7 +40,8 @@ module CyberSource
37
40
  :'fraud_management_essentials' => :'fraud_management_essentials',
38
41
  :'decision_manager' => :'decision_manager',
39
42
  :'portfolio_risk_controls' => :'portfolio_risk_controls',
40
- :'enhanced_authentication' => :'enhanced_authentication'
43
+ :'enhanced_authentication' => :'enhanced_authentication',
44
+ :'vpri' => :'vpri'
41
45
  }
42
46
  end
43
47
 
@@ -47,7 +51,8 @@ module CyberSource
47
51
  :'fraud_management_essentials' => :'RiskProductsFraudManagementEssentials',
48
52
  :'decision_manager' => :'RiskProductsDecisionManager',
49
53
  :'portfolio_risk_controls' => :'RiskProductsPortfolioRiskControls',
50
- :'enhanced_authentication' => :'PaymentsProductsPayerAuthentication'
54
+ :'enhanced_authentication' => :'PaymentsProductsPayerAuthentication',
55
+ :'vpri' => :'PaymentsProductsTax'
51
56
  }
52
57
  end
53
58
 
@@ -74,6 +79,10 @@ module CyberSource
74
79
  if attributes.has_key?(:'enhancedAuthentication')
75
80
  self.enhanced_authentication = attributes[:'enhancedAuthentication']
76
81
  end
82
+
83
+ if attributes.has_key?(:'vpri')
84
+ self.vpri = attributes[:'vpri']
85
+ end
77
86
  end
78
87
 
79
88
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -97,7 +106,8 @@ module CyberSource
97
106
  fraud_management_essentials == o.fraud_management_essentials &&
98
107
  decision_manager == o.decision_manager &&
99
108
  portfolio_risk_controls == o.portfolio_risk_controls &&
100
- enhanced_authentication == o.enhanced_authentication
109
+ enhanced_authentication == o.enhanced_authentication &&
110
+ vpri == o.vpri
101
111
  end
102
112
 
103
113
  # @see the `==` method
@@ -109,7 +119,7 @@ module CyberSource
109
119
  # Calculates hash code according to all attributes.
110
120
  # @return [Fixnum] Hash code
111
121
  def hash
112
- [fraud_management_essentials, decision_manager, portfolio_risk_controls, enhanced_authentication].hash
122
+ [fraud_management_essentials, decision_manager, portfolio_risk_controls, enhanced_authentication, vpri].hash
113
123
  end
114
124
 
115
125
  # Builds the object from hash
@@ -56,7 +56,7 @@ module CyberSource
56
56
  :'entry_mode' => :'String',
57
57
  :'terminal_capability' => :'Integer',
58
58
  :'cardholder_verification_method_used' => :'Integer',
59
- :'emv' => :'Ptsv2paymentsidreversalsPointOfSaleInformationEmv'
59
+ :'emv' => :'PtsV2PaymentsReversalsPost201ResponsePointOfSaleInformationEmv'
60
60
  }
61
61
  end
62
62
 
@@ -55,7 +55,7 @@ module CyberSource
55
55
  :'terminal_serial_number' => :'String',
56
56
  :'device_id' => :'String',
57
57
  :'partner' => :'TssV2TransactionsPost201ResponseEmbeddedPointOfSaleInformationPartner',
58
- :'emv' => :'Ptsv2paymentsidreversalsPointOfSaleInformationEmv'
58
+ :'emv' => :'PtsV2PaymentsReversalsPost201ResponsePointOfSaleInformationEmv'
59
59
  }
60
60
  end
61
61
 
@@ -60,11 +60,11 @@ module CyberSource
60
60
  def self.swagger_types
61
61
  {
62
62
  :'base_currency' => :'String',
63
- :'base_value' => :'Integer',
63
+ :'base_value' => :'String',
64
64
  :'currency' => :'String',
65
65
  :'merchant_currency' => :'String',
66
- :'merchant_value' => :'Integer',
67
- :'value' => :'Integer'
66
+ :'merchant_value' => :'String',
67
+ :'value' => :'String'
68
68
  }
69
69
  end
70
70
 
@@ -71,11 +71,11 @@ module CyberSource
71
71
  {
72
72
  :'expected_annual_sales' => :'Object',
73
73
  :'base_currency' => :'String',
74
- :'base_value' => :'Integer',
74
+ :'base_value' => :'String',
75
75
  :'currency' => :'String',
76
76
  :'merchant_currency' => :'String',
77
- :'merchant_value' => :'Integer',
78
- :'value' => :'Integer',
77
+ :'merchant_value' => :'String',
78
+ :'value' => :'String',
79
79
  :'expected_annual_volume' => :'Integer'
80
80
  }
81
81
  end
@@ -60,11 +60,11 @@ module CyberSource
60
60
  def self.swagger_types
61
61
  {
62
62
  :'base_currency' => :'String',
63
- :'base_value' => :'Integer',
63
+ :'base_value' => :'String',
64
64
  :'currency' => :'String',
65
65
  :'merchant_currency' => :'String',
66
- :'merchant_value' => :'Integer',
67
- :'value' => :'Integer'
66
+ :'merchant_value' => :'String',
67
+ :'value' => :'String'
68
68
  }
69
69
  end
70
70
 
@@ -71,11 +71,11 @@ module CyberSource
71
71
  {
72
72
  :'expected_monthly_sales' => :'Object',
73
73
  :'base_currency' => :'String',
74
- :'base_value' => :'Integer',
74
+ :'base_value' => :'String',
75
75
  :'currency' => :'String',
76
76
  :'merchant_currency' => :'String',
77
- :'merchant_value' => :'Integer',
78
- :'value' => :'Integer',
77
+ :'merchant_value' => :'String',
78
+ :'value' => :'String',
79
79
  :'expected_monthly_volume' => :'Integer'
80
80
  }
81
81
  end
@@ -65,11 +65,11 @@ module CyberSource
65
65
  def self.swagger_types
66
66
  {
67
67
  :'base_currency' => :'String',
68
- :'base_value' => :'Integer',
68
+ :'base_value' => :'String',
69
69
  :'currency' => :'String',
70
70
  :'merchant_currency' => :'String',
71
- :'merchant_value' => :'Integer',
72
- :'value' => :'Integer',
71
+ :'merchant_value' => :'String',
72
+ :'value' => :'String',
73
73
  :'expected_monthly_volume' => :'Integer'
74
74
  }
75
75
  end
@@ -58,10 +58,10 @@ module CyberSource
58
58
  # Attribute type mapping.
59
59
  def self.swagger_types
60
60
  {
61
- :'value' => :'Float',
61
+ :'value' => :'String',
62
62
  :'currency' => :'String',
63
63
  :'base_currency' => :'String',
64
- :'base_value' => :'Float',
64
+ :'base_value' => :'String',
65
65
  :'merchant_currency' => :'String',
66
66
  :'merchant_value' => :'String'
67
67
  }
@@ -58,12 +58,12 @@ module CyberSource
58
58
  # Attribute type mapping.
59
59
  def self.swagger_types
60
60
  {
61
- :'value' => :'Float',
61
+ :'value' => :'String',
62
62
  :'currency' => :'String',
63
63
  :'base_currency' => :'String',
64
- :'base_value' => :'Float',
64
+ :'base_value' => :'String',
65
65
  :'merchant_currency' => :'String',
66
- :'merchant_value' => :'Float'
66
+ :'merchant_value' => :'String'
67
67
  }
68
68
  end
69
69
 
@@ -58,10 +58,10 @@ module CyberSource
58
58
  # Attribute type mapping.
59
59
  def self.swagger_types
60
60
  {
61
- :'value' => :'Float',
61
+ :'value' => :'String',
62
62
  :'currency' => :'String',
63
63
  :'base_currency' => :'String',
64
- :'base_value' => :'Float',
64
+ :'base_value' => :'String',
65
65
  :'merchant_currency' => :'String',
66
66
  :'merchant_value' => :'String'
67
67
  }