cybersource_rest_client 0.0.16 → 0.0.17
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/cybersource_rest_client.rb +12 -5
- data/lib/cybersource_rest_client/api/credit_api.rb +1 -1
- data/lib/cybersource_rest_client/api/download_dtd_api.rb +4 -4
- data/lib/cybersource_rest_client/api/download_xsd_api.rb +4 -4
- data/lib/cybersource_rest_client/api/payments_api.rb +1 -1
- data/lib/cybersource_rest_client/api/report_subscriptions_api.rb +9 -9
- data/lib/cybersource_rest_client/api/reports_api.rb +9 -9
- data/lib/cybersource_rest_client/api/search_transactions_api.rb +1 -1
- data/lib/cybersource_rest_client/api/transaction_batches_api.rb +2 -8
- data/lib/cybersource_rest_client/models/{request_body.rb → create_adhoc_report_request.rb} +1 -1
- data/lib/cybersource_rest_client/models/{request_body_1.rb → create_report_subscription_request.rb} +1 -1
- data/lib/cybersource_rest_client/models/error.rb +23 -13
- data/lib/cybersource_rest_client/models/error_bean.rb +1 -1
- data/lib/cybersource_rest_client/models/error_links.rb +15 -15
- data/lib/cybersource_rest_client/models/error_response.rb +2 -20
- data/lib/cybersource_rest_client/models/inline_response_400.rb +59 -14
- data/lib/cybersource_rest_client/models/inline_response_400_1.rb +14 -59
- data/lib/cybersource_rest_client/models/{inline_response_400_1_fields.rb → inline_response_400_fields.rb} +1 -1
- data/lib/cybersource_rest_client/models/link.rb +4 -25
- data/lib/cybersource_rest_client/models/links.rb +14 -18
- data/lib/cybersource_rest_client/models/ptsv2credits_processing_information.rb +22 -4
- data/lib/cybersource_rest_client/models/ptsv2credits_processing_information_electronic_benefits_transfer.rb +199 -0
- data/lib/cybersource_rest_client/models/ptsv2credits_processing_information_purchase_options.rb +184 -0
- data/lib/cybersource_rest_client/models/ptsv2payments_order_information_amount_details.rb +29 -4
- data/lib/cybersource_rest_client/models/ptsv2payments_order_information_line_items.rb +6 -6
- data/lib/cybersource_rest_client/models/ptsv2payments_payment_information.rb +13 -4
- data/lib/cybersource_rest_client/models/ptsv2payments_payment_information_payment_type.rb +203 -0
- data/lib/cybersource_rest_client/models/ptsv2payments_payment_information_payment_type_method.rb +184 -0
- data/lib/cybersource_rest_client/models/ptsv2payments_processing_information.rb +22 -4
- data/lib/cybersource_rest_client/models/ptsv2payments_processing_information_electronic_benefits_transfer.rb +224 -0
- data/lib/cybersource_rest_client/models/ptsv2payments_processing_information_purchase_options.rb +209 -0
- data/lib/cybersource_rest_client/models/ptsv2paymentsidcaptures_order_information_amount_details.rb +29 -4
- data/lib/cybersource_rest_client/models/ptsv2paymentsidrefunds_order_information_line_items.rb +6 -6
- data/lib/cybersource_rest_client/models/ptsv2paymentsidrefunds_payment_information.rb +13 -4
- data/lib/cybersource_rest_client/models/ptsv2paymentsidreversals_order_information_line_items.rb +6 -6
- data/lib/cybersource_rest_client/models/ptsv2paymentsidvoids_payment_information.rb +183 -0
- data/lib/cybersource_rest_client/models/riskv1decisions_order_information_line_items.rb +6 -6
- data/lib/cybersource_rest_client/models/tss_v2_transactions_get200_response_payment_information_payment_type.rb +2 -2
- data/lib/cybersource_rest_client/models/tss_v2_transactions_post201_response__embedded_payment_information_payment_type.rb +1 -1
- data/lib/cybersource_rest_client/models/void_capture_request.rb +13 -4
- data/lib/cybersource_rest_client/models/void_credit_request.rb +13 -4
- data/lib/cybersource_rest_client/models/void_payment_request.rb +13 -4
- data/lib/cybersource_rest_client/models/void_refund_request.rb +13 -4
- metadata +12 -5
@@ -14,23 +14,15 @@ require 'date'
|
|
14
14
|
|
15
15
|
module CyberSource
|
16
16
|
class ErrorResponse
|
17
|
-
attr_accessor :response_status
|
18
|
-
|
19
|
-
attr_accessor :_links
|
20
|
-
|
21
17
|
# Attribute mapping from ruby-style variable name to JSON key.
|
22
18
|
def self.attribute_map
|
23
19
|
{
|
24
|
-
:'response_status' => :'responseStatus',
|
25
|
-
:'_links' => :'_links'
|
26
20
|
}
|
27
21
|
end
|
28
22
|
|
29
23
|
# Attribute type mapping.
|
30
24
|
def self.swagger_types
|
31
25
|
{
|
32
|
-
:'response_status' => :'InlineResponseDefaultResponseStatus',
|
33
|
-
:'_links' => :'InlineResponseDefaultLinks'
|
34
26
|
}
|
35
27
|
end
|
36
28
|
|
@@ -41,14 +33,6 @@ module CyberSource
|
|
41
33
|
|
42
34
|
# convert string to symbol for hash key
|
43
35
|
attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
|
44
|
-
|
45
|
-
if attributes.has_key?(:'responseStatus')
|
46
|
-
self.response_status = attributes[:'responseStatus']
|
47
|
-
end
|
48
|
-
|
49
|
-
if attributes.has_key?(:'_links')
|
50
|
-
self._links = attributes[:'_links']
|
51
|
-
end
|
52
36
|
end
|
53
37
|
|
54
38
|
# Show invalid properties with the reasons. Usually used together with valid?
|
@@ -68,9 +52,7 @@ module CyberSource
|
|
68
52
|
# @param [Object] Object to be compared
|
69
53
|
def ==(o)
|
70
54
|
return true if self.equal?(o)
|
71
|
-
self.class == o.class
|
72
|
-
response_status == o.response_status &&
|
73
|
-
_links == o._links
|
55
|
+
self.class == o.class
|
74
56
|
end
|
75
57
|
|
76
58
|
# @see the `==` method
|
@@ -82,7 +64,7 @@ module CyberSource
|
|
82
64
|
# Calculates hash code according to all attributes.
|
83
65
|
# @return [Fixnum] Hash code
|
84
66
|
def hash
|
85
|
-
[
|
67
|
+
[].hash
|
86
68
|
end
|
87
69
|
|
88
70
|
# Builds the object from hash
|
@@ -13,29 +13,47 @@ Swagger Codegen version: 2.2.3
|
|
13
13
|
require 'date'
|
14
14
|
|
15
15
|
module CyberSource
|
16
|
+
# Error Bean
|
16
17
|
class InlineResponse400
|
17
|
-
|
18
|
+
# Error code
|
19
|
+
attr_accessor :code
|
18
20
|
|
19
|
-
#
|
21
|
+
# Error message
|
20
22
|
attr_accessor :message
|
21
23
|
|
22
|
-
|
24
|
+
# Localization Key Name
|
25
|
+
attr_accessor :localization_key
|
26
|
+
|
27
|
+
# Correlation Id
|
28
|
+
attr_accessor :correlation_id
|
29
|
+
|
30
|
+
# Error Detail
|
31
|
+
attr_accessor :detail
|
32
|
+
|
33
|
+
# Error fields List
|
34
|
+
attr_accessor :fields
|
23
35
|
|
24
36
|
# Attribute mapping from ruby-style variable name to JSON key.
|
25
37
|
def self.attribute_map
|
26
38
|
{
|
27
|
-
:'
|
39
|
+
:'code' => :'code',
|
28
40
|
:'message' => :'message',
|
29
|
-
:'
|
41
|
+
:'localization_key' => :'localizationKey',
|
42
|
+
:'correlation_id' => :'correlationId',
|
43
|
+
:'detail' => :'detail',
|
44
|
+
:'fields' => :'fields'
|
30
45
|
}
|
31
46
|
end
|
32
47
|
|
33
48
|
# Attribute type mapping.
|
34
49
|
def self.swagger_types
|
35
50
|
{
|
36
|
-
:'
|
51
|
+
:'code' => :'String',
|
37
52
|
:'message' => :'String',
|
38
|
-
:'
|
53
|
+
:'localization_key' => :'String',
|
54
|
+
:'correlation_id' => :'String',
|
55
|
+
:'detail' => :'String',
|
56
|
+
:'fields' => :'Array<InlineResponse400Fields>'
|
39
57
|
}
|
40
58
|
end
|
41
59
|
|
@@ -47,16 +65,30 @@ module CyberSource
|
|
47
65
|
# convert string to symbol for hash key
|
48
66
|
attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
|
49
67
|
|
50
|
-
if attributes.has_key?(:'
|
51
|
-
self.
|
68
|
+
if attributes.has_key?(:'code')
|
69
|
+
self.code = attributes[:'code']
|
52
70
|
end
|
53
71
|
|
54
72
|
if attributes.has_key?(:'message')
|
55
73
|
self.message = attributes[:'message']
|
56
74
|
end
|
57
75
|
|
58
|
-
if attributes.has_key?(:'
|
59
|
-
self.
|
76
|
+
if attributes.has_key?(:'localizationKey')
|
77
|
+
self.localization_key = attributes[:'localizationKey']
|
78
|
+
end
|
79
|
+
|
80
|
+
if attributes.has_key?(:'correlationId')
|
81
|
+
self.correlation_id = attributes[:'correlationId']
|
82
|
+
end
|
83
|
+
|
84
|
+
if attributes.has_key?(:'detail')
|
85
|
+
self.detail = attributes[:'detail']
|
86
|
+
end
|
87
|
+
|
88
|
+
if attributes.has_key?(:'fields')
|
89
|
+
if (value = attributes[:'fields']).is_a?(Array)
|
90
|
+
self.fields = value
|
91
|
+
end
|
60
92
|
end
|
61
93
|
end
|
62
94
|
|
@@ -64,12 +96,22 @@ module CyberSource
|
|
64
96
|
# @return Array for valid properties with the reasons
|
65
97
|
def list_invalid_properties
|
66
98
|
invalid_properties = Array.new
|
99
|
+
if @code.nil?
|
100
|
+
invalid_properties.push('invalid value for "code", code cannot be nil.')
|
101
|
+
end
|
102
|
+
|
103
|
+
if @message.nil?
|
104
|
+
invalid_properties.push('invalid value for "message", message cannot be nil.')
|
105
|
+
end
|
106
|
+
|
67
107
|
invalid_properties
|
68
108
|
end
|
69
109
|
|
70
110
|
# Check to see if the all the properties in the model are valid
|
71
111
|
# @return true if the model is valid
|
72
112
|
def valid?
|
113
|
+
return false if @code.nil?
|
114
|
+
return false if @message.nil?
|
73
115
|
true
|
74
116
|
end
|
75
117
|
|
@@ -78,9 +120,12 @@ module CyberSource
|
|
78
120
|
def ==(o)
|
79
121
|
return true if self.equal?(o)
|
80
122
|
self.class == o.class &&
|
81
|
-
|
123
|
+
code == o.code &&
|
82
124
|
message == o.message &&
|
83
|
-
|
125
|
+
localization_key == o.localization_key &&
|
126
|
+
correlation_id == o.correlation_id &&
|
127
|
+
detail == o.detail &&
|
128
|
+
fields == o.fields
|
84
129
|
end
|
85
130
|
|
86
131
|
# @see the `==` method
|
@@ -92,7 +137,7 @@ module CyberSource
|
|
92
137
|
# Calculates hash code according to all attributes.
|
93
138
|
# @return [Fixnum] Hash code
|
94
139
|
def hash
|
95
|
-
[
|
140
|
+
[code, message, localization_key, correlation_id, detail, fields].hash
|
96
141
|
end
|
97
142
|
|
98
143
|
# Builds the object from hash
|
@@ -13,47 +13,29 @@ Swagger Codegen version: 2.2.3
|
|
13
13
|
require 'date'
|
14
14
|
|
15
15
|
module CyberSource
|
16
|
-
# Error Bean
|
17
16
|
class InlineResponse4001
|
18
|
-
|
19
|
-
attr_accessor :code
|
17
|
+
attr_accessor :type
|
20
18
|
|
21
|
-
#
|
19
|
+
# The detailed message related to the type stated above.
|
22
20
|
attr_accessor :message
|
23
21
|
|
24
|
-
|
25
|
-
attr_accessor :localization_key
|
26
|
-
|
27
|
-
# Correlation Id
|
28
|
-
attr_accessor :correlation_id
|
29
|
-
|
30
|
-
# Error Detail
|
31
|
-
attr_accessor :detail
|
32
|
-
|
33
|
-
# Error fields List
|
34
|
-
attr_accessor :fields
|
22
|
+
attr_accessor :details
|
35
23
|
|
36
24
|
# Attribute mapping from ruby-style variable name to JSON key.
|
37
25
|
def self.attribute_map
|
38
26
|
{
|
39
|
-
:'
|
27
|
+
:'type' => :'type',
|
40
28
|
:'message' => :'message',
|
41
|
-
:'
|
42
|
-
:'correlation_id' => :'correlationId',
|
43
|
-
:'detail' => :'detail',
|
44
|
-
:'fields' => :'fields'
|
29
|
+
:'details' => :'details'
|
45
30
|
}
|
46
31
|
end
|
47
32
|
|
48
33
|
# Attribute type mapping.
|
49
34
|
def self.swagger_types
|
50
35
|
{
|
51
|
-
:'
|
36
|
+
:'type' => :'String',
|
52
37
|
:'message' => :'String',
|
53
|
-
:'
|
54
|
-
:'correlation_id' => :'String',
|
55
|
-
:'detail' => :'String',
|
56
|
-
:'fields' => :'Array<InlineResponse4001Fields>'
|
38
|
+
:'details' => :'Tmsv1instrumentidentifiersDetails'
|
57
39
|
}
|
58
40
|
end
|
59
41
|
|
@@ -65,30 +47,16 @@ module CyberSource
|
|
65
47
|
# convert string to symbol for hash key
|
66
48
|
attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
|
67
49
|
|
68
|
-
if attributes.has_key?(:'
|
69
|
-
self.
|
50
|
+
if attributes.has_key?(:'type')
|
51
|
+
self.type = attributes[:'type']
|
70
52
|
end
|
71
53
|
|
72
54
|
if attributes.has_key?(:'message')
|
73
55
|
self.message = attributes[:'message']
|
74
56
|
end
|
75
57
|
|
76
|
-
if attributes.has_key?(:'
|
77
|
-
self.
|
78
|
-
end
|
79
|
-
|
80
|
-
if attributes.has_key?(:'correlationId')
|
81
|
-
self.correlation_id = attributes[:'correlationId']
|
82
|
-
end
|
83
|
-
|
84
|
-
if attributes.has_key?(:'detail')
|
85
|
-
self.detail = attributes[:'detail']
|
86
|
-
end
|
87
|
-
|
88
|
-
if attributes.has_key?(:'fields')
|
89
|
-
if (value = attributes[:'fields']).is_a?(Array)
|
90
|
-
self.fields = value
|
91
|
-
end
|
58
|
+
if attributes.has_key?(:'details')
|
59
|
+
self.details = attributes[:'details']
|
92
60
|
end
|
93
61
|
end
|
94
62
|
|
@@ -96,22 +64,12 @@ module CyberSource
|
|
96
64
|
# @return Array for valid properties with the reasons
|
97
65
|
def list_invalid_properties
|
98
66
|
invalid_properties = Array.new
|
99
|
-
if @code.nil?
|
100
|
-
invalid_properties.push('invalid value for "code", code cannot be nil.')
|
101
|
-
end
|
102
|
-
|
103
|
-
if @message.nil?
|
104
|
-
invalid_properties.push('invalid value for "message", message cannot be nil.')
|
105
|
-
end
|
106
|
-
|
107
67
|
invalid_properties
|
108
68
|
end
|
109
69
|
|
110
70
|
# Check to see if the all the properties in the model are valid
|
111
71
|
# @return true if the model is valid
|
112
72
|
def valid?
|
113
|
-
return false if @code.nil?
|
114
|
-
return false if @message.nil?
|
115
73
|
true
|
116
74
|
end
|
117
75
|
|
@@ -120,12 +78,9 @@ module CyberSource
|
|
120
78
|
def ==(o)
|
121
79
|
return true if self.equal?(o)
|
122
80
|
self.class == o.class &&
|
123
|
-
|
81
|
+
type == o.type &&
|
124
82
|
message == o.message &&
|
125
|
-
|
126
|
-
correlation_id == o.correlation_id &&
|
127
|
-
detail == o.detail &&
|
128
|
-
fields == o.fields
|
83
|
+
details == o.details
|
129
84
|
end
|
130
85
|
|
131
86
|
# @see the `==` method
|
@@ -137,7 +92,7 @@ module CyberSource
|
|
137
92
|
# Calculates hash code according to all attributes.
|
138
93
|
# @return [Fixnum] Hash code
|
139
94
|
def hash
|
140
|
-
[
|
95
|
+
[type, message, details].hash
|
141
96
|
end
|
142
97
|
|
143
98
|
# Builds the object from hash
|
@@ -14,30 +14,19 @@ require 'date'
|
|
14
14
|
|
15
15
|
module CyberSource
|
16
16
|
class Link
|
17
|
-
# URI of the linked resource.
|
18
17
|
attr_accessor :href
|
19
18
|
|
20
|
-
# Label of the linked resource.
|
21
|
-
attr_accessor :title
|
22
|
-
|
23
|
-
# HTTP method of the linked resource.
|
24
|
-
attr_accessor :method
|
25
|
-
|
26
19
|
# Attribute mapping from ruby-style variable name to JSON key.
|
27
20
|
def self.attribute_map
|
28
21
|
{
|
29
|
-
:'href' => :'href'
|
30
|
-
:'title' => :'title',
|
31
|
-
:'method' => :'method'
|
22
|
+
:'href' => :'href'
|
32
23
|
}
|
33
24
|
end
|
34
25
|
|
35
26
|
# Attribute type mapping.
|
36
27
|
def self.swagger_types
|
37
28
|
{
|
38
|
-
:'href' => :'String'
|
39
|
-
:'title' => :'String',
|
40
|
-
:'method' => :'String'
|
29
|
+
:'href' => :'String'
|
41
30
|
}
|
42
31
|
end
|
43
32
|
|
@@ -52,14 +41,6 @@ module CyberSource
|
|
52
41
|
if attributes.has_key?(:'href')
|
53
42
|
self.href = attributes[:'href']
|
54
43
|
end
|
55
|
-
|
56
|
-
if attributes.has_key?(:'title')
|
57
|
-
self.title = attributes[:'title']
|
58
|
-
end
|
59
|
-
|
60
|
-
if attributes.has_key?(:'method')
|
61
|
-
self.method = attributes[:'method']
|
62
|
-
end
|
63
44
|
end
|
64
45
|
|
65
46
|
# Show invalid properties with the reasons. Usually used together with valid?
|
@@ -80,9 +61,7 @@ module CyberSource
|
|
80
61
|
def ==(o)
|
81
62
|
return true if self.equal?(o)
|
82
63
|
self.class == o.class &&
|
83
|
-
href == o.href
|
84
|
-
title == o.title &&
|
85
|
-
method == o.method
|
64
|
+
href == o.href
|
86
65
|
end
|
87
66
|
|
88
67
|
# @see the `==` method
|
@@ -94,7 +73,7 @@ module CyberSource
|
|
94
73
|
# Calculates hash code according to all attributes.
|
95
74
|
# @return [Fixnum] Hash code
|
96
75
|
def hash
|
97
|
-
[href
|
76
|
+
[href].hash
|
98
77
|
end
|
99
78
|
|
100
79
|
# Builds the object from hash
|
@@ -16,25 +16,25 @@ module CyberSource
|
|
16
16
|
class Links
|
17
17
|
attr_accessor :_self
|
18
18
|
|
19
|
-
attr_accessor :
|
19
|
+
attr_accessor :ancestor
|
20
20
|
|
21
|
-
attr_accessor :
|
21
|
+
attr_accessor :successor
|
22
22
|
|
23
23
|
# Attribute mapping from ruby-style variable name to JSON key.
|
24
24
|
def self.attribute_map
|
25
25
|
{
|
26
26
|
:'_self' => :'self',
|
27
|
-
:'
|
28
|
-
:'
|
27
|
+
:'ancestor' => :'ancestor',
|
28
|
+
:'successor' => :'successor'
|
29
29
|
}
|
30
30
|
end
|
31
31
|
|
32
32
|
# Attribute type mapping.
|
33
33
|
def self.swagger_types
|
34
34
|
{
|
35
|
-
:'_self' => :'
|
36
|
-
:'
|
37
|
-
:'
|
35
|
+
:'_self' => :'TmsV1InstrumentIdentifiersPost200ResponseLinksSelf',
|
36
|
+
:'ancestor' => :'TmsV1InstrumentIdentifiersPost200ResponseLinksSelf',
|
37
|
+
:'successor' => :'TmsV1InstrumentIdentifiersPost200ResponseLinksSelf'
|
38
38
|
}
|
39
39
|
end
|
40
40
|
|
@@ -50,16 +50,12 @@ module CyberSource
|
|
50
50
|
self._self = attributes[:'self']
|
51
51
|
end
|
52
52
|
|
53
|
-
if attributes.has_key?(:'
|
54
|
-
|
55
|
-
self.documentation = value
|
56
|
-
end
|
53
|
+
if attributes.has_key?(:'ancestor')
|
54
|
+
self.ancestor = attributes[:'ancestor']
|
57
55
|
end
|
58
56
|
|
59
|
-
if attributes.has_key?(:'
|
60
|
-
|
61
|
-
self._next = value
|
62
|
-
end
|
57
|
+
if attributes.has_key?(:'successor')
|
58
|
+
self.successor = attributes[:'successor']
|
63
59
|
end
|
64
60
|
end
|
65
61
|
|
@@ -82,8 +78,8 @@ module CyberSource
|
|
82
78
|
return true if self.equal?(o)
|
83
79
|
self.class == o.class &&
|
84
80
|
_self == o._self &&
|
85
|
-
|
86
|
-
|
81
|
+
ancestor == o.ancestor &&
|
82
|
+
successor == o.successor
|
87
83
|
end
|
88
84
|
|
89
85
|
# @see the `==` method
|
@@ -95,7 +91,7 @@ module CyberSource
|
|
95
91
|
# Calculates hash code according to all attributes.
|
96
92
|
# @return [Fixnum] Hash code
|
97
93
|
def hash
|
98
|
-
[_self,
|
94
|
+
[_self, ancestor, successor].hash
|
99
95
|
end
|
100
96
|
|
101
97
|
# Builds the object from hash
|