pcp-server-ruby-sdk 1.5.0 → 1.7.0

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 (39) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +10 -0
  3. data/Gemfile +1 -0
  4. data/api-definition.yaml +169 -18
  5. data/lib/PCP-server-Ruby-SDK/models/apple_payment_data_token_header_information.rb +2 -0
  6. data/lib/PCP-server-Ruby-SDK/models/apple_payment_data_token_information.rb +6 -0
  7. data/lib/PCP-server-Ruby-SDK/models/bank_account_information.rb +0 -2
  8. data/lib/PCP-server-Ruby-SDK/models/bank_payout_method_specific_input.rb +0 -4
  9. data/lib/PCP-server-Ruby-SDK/models/capture_payment_request.rb +13 -4
  10. data/lib/PCP-server-Ruby-SDK/models/capture_payment_response.rb +13 -4
  11. data/lib/PCP-server-Ruby-SDK/models/cart_item_input.rb +13 -4
  12. data/lib/PCP-server-Ruby-SDK/models/cart_item_patch.rb +13 -4
  13. data/lib/PCP-server-Ruby-SDK/models/cart_item_result.rb +13 -4
  14. data/lib/PCP-server-Ruby-SDK/models/cart_item_supplier_references.rb +200 -0
  15. data/lib/PCP-server-Ruby-SDK/models/complete_payment_product840_specific_input.rb +2 -0
  16. data/lib/PCP-server-Ruby-SDK/models/create_payment_response.rb +13 -4
  17. data/lib/PCP-server-Ruby-SDK/models/deliver_request.rb +12 -4
  18. data/lib/PCP-server-Ruby-SDK/models/fund_distribution.rb +272 -0
  19. data/lib/PCP-server-Ruby-SDK/models/fund_split.rb +211 -0
  20. data/lib/PCP-server-Ruby-SDK/models/mobile_payment_method_specific_input.rb +13 -4
  21. data/lib/PCP-server-Ruby-SDK/models/mobile_payment_method_specific_output.rb +1 -1
  22. data/lib/PCP-server-Ruby-SDK/models/{network.rb → mobile_payment_network.rb} +4 -4
  23. data/lib/PCP-server-Ruby-SDK/models/order_request.rb +12 -4
  24. data/lib/PCP-server-Ruby-SDK/models/pause_payment_request.rb +5 -38
  25. data/lib/PCP-server-Ruby-SDK/models/payment_execution.rb +15 -4
  26. data/lib/PCP-server-Ruby-SDK/models/payment_execution_specific_input.rb +13 -4
  27. data/lib/PCP-server-Ruby-SDK/models/payment_product302_specific_input.rb +1 -1
  28. data/lib/PCP-server-Ruby-SDK/models/payment_product5002_specific_input.rb +209 -0
  29. data/lib/PCP-server-Ruby-SDK/models/refund_payment_response.rb +12 -4
  30. data/lib/PCP-server-Ruby-SDK/models/refund_request.rb +13 -4
  31. data/lib/PCP-server-Ruby-SDK/models/return_request.rb +204 -191
  32. data/lib/PCP-server-Ruby-SDK/transformer/apple_pay_transformer.rb +2 -2
  33. data/lib/PCP-server-Ruby-SDK/version.rb +1 -1
  34. data/lib/PCP-server-Ruby-SDK.rb +5 -1
  35. data/package-lock.json +17 -18
  36. data/package.json +1 -1
  37. data/scripts.sh +2 -2
  38. data/spec/transformer/apple_pay_transformer_spec.rb +1 -1
  39. metadata +11 -7
@@ -0,0 +1,211 @@
1
+
2
+ require 'date'
3
+ require 'time'
4
+
5
+ module PCPServerSDK
6
+ module Models
7
+ # Object containing details on the fund split for a payment.
8
+ class FundSplit
9
+ # Unique ID of the fund split (read-only).
10
+ attr_accessor :id
11
+
12
+ # Unique ID of the payment event associated with this fund split (read-only).
13
+ attr_accessor :payment_event_id
14
+
15
+ attr_accessor :fund_distributions
16
+
17
+ # Attribute mapping from ruby-style variable name to JSON key.
18
+ def self.attribute_map
19
+ {
20
+ :'id' => :'id',
21
+ :'payment_event_id' => :'paymentEventId',
22
+ :'fund_distributions' => :'fundDistributions'
23
+ }
24
+ end
25
+
26
+ # Returns all the JSON keys this model knows about
27
+ def self.acceptable_attributes
28
+ attribute_map.values
29
+ end
30
+
31
+ # Attribute type mapping.
32
+ def self.openapi_types
33
+ {
34
+ :'id' => :'String',
35
+ :'payment_event_id' => :'String',
36
+ :'fund_distributions' => :'Array<FundDistribution>'
37
+ }
38
+ end
39
+
40
+ # List of attributes with nullable: true
41
+ def self.openapi_nullable
42
+ Set.new([
43
+ ])
44
+ end
45
+
46
+ # Initializes the object
47
+ # @param [Hash] attributes Model attributes in the form of hash
48
+ def initialize(attributes = {})
49
+ if (!attributes.is_a?(Hash))
50
+ fail ArgumentError, "The input argument (attributes) must be a hash in `FundSplit` initialize method"
51
+ end
52
+
53
+ # check to see if the attribute exists and convert string to symbol for hash key
54
+ attributes = attributes.each_with_object({}) { |(k, v), h|
55
+ if (!self.class.attribute_map.key?(k.to_sym))
56
+ fail ArgumentError, "`#{k}` is not a valid attribute in `FundSplit`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
57
+ end
58
+ h[k.to_sym] = v
59
+ }
60
+
61
+ if attributes.key?(:'id')
62
+ self.id = attributes[:'id']
63
+ end
64
+
65
+ if attributes.key?(:'payment_event_id')
66
+ self.payment_event_id = attributes[:'payment_event_id']
67
+ end
68
+
69
+ if attributes.key?(:'fund_distributions')
70
+ if (value = attributes[:'fund_distributions']).is_a?(Array)
71
+ self.fund_distributions = value
72
+ end
73
+ end
74
+ end
75
+
76
+ # Checks equality by comparing each attribute.
77
+ # @param [Object] Object to be compared
78
+ def ==(o)
79
+ return true if self.equal?(o)
80
+ self.class == o.class &&
81
+ id == o.id &&
82
+ payment_event_id == o.payment_event_id &&
83
+ fund_distributions == o.fund_distributions
84
+ end
85
+
86
+ # @see the `==` method
87
+ # @param [Object] Object to be compared
88
+ def eql?(o)
89
+ self == o
90
+ end
91
+
92
+ # Calculates hash code according to all attributes.
93
+ # @return [Integer] Hash code
94
+ def hash
95
+ [id, payment_event_id, fund_distributions].hash
96
+ end
97
+
98
+ # Builds the object from hash
99
+ # @param [Hash] attributes Model attributes in the form of hash
100
+ # @return [Object] Returns the model itself
101
+ def self.build_from_hash(attributes)
102
+ return nil unless attributes.is_a?(Hash)
103
+ attributes = attributes.transform_keys(&:to_sym)
104
+ transformed_hash = {}
105
+ openapi_types.each_pair do |key, type|
106
+ if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
107
+ transformed_hash["#{key}"] = nil
108
+ elsif type =~ /\AArray<(.*)>/i
109
+ # check to ensure the input is an array given that the attribute
110
+ # is documented as an array but the input is not
111
+ if attributes[attribute_map[key]].is_a?(Array)
112
+ transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
113
+ end
114
+ elsif !attributes[attribute_map[key]].nil?
115
+ transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
116
+ end
117
+ end
118
+ new(transformed_hash)
119
+ end
120
+
121
+ # Deserializes the data based on type
122
+ # @param string type Data type
123
+ # @param string value Value to be deserialized
124
+ # @return [Object] Deserialized data
125
+ def self._deserialize(type, value)
126
+ case type.to_sym
127
+ when :Time
128
+ Time.parse(value)
129
+ when :Date
130
+ Date.parse(value)
131
+ when :String
132
+ value.to_s
133
+ when :Integer
134
+ value.to_i
135
+ when :Float
136
+ value.to_f
137
+ when :Boolean
138
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
139
+ true
140
+ else
141
+ false
142
+ end
143
+ when :Object
144
+ # generic object (usually a Hash), return directly
145
+ value
146
+ when /\AArray<(?<inner_type>.+)>\z/
147
+ inner_type = Regexp.last_match[:inner_type]
148
+ value.map { |v| _deserialize(inner_type, v) }
149
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
150
+ k_type = Regexp.last_match[:k_type]
151
+ v_type = Regexp.last_match[:v_type]
152
+ {}.tap do |hash|
153
+ value.each do |k, v|
154
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
155
+ end
156
+ end
157
+ else # model
158
+ # models (e.g. Pet) or oneOf
159
+ klass = PCPServerSDK::Models.const_get(type)
160
+ klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
161
+ end
162
+ end
163
+
164
+ # Returns the string representation of the object
165
+ # @return [String] String presentation of the object
166
+ def to_s
167
+ to_hash.to_s
168
+ end
169
+
170
+ # to_body is an alias to to_hash (backward compatibility)
171
+ # @return [Hash] Returns the object in the form of hash
172
+ def to_body
173
+ to_hash
174
+ end
175
+
176
+ # Returns the object in the form of hash
177
+ # @return [Hash] Returns the object in the form of hash
178
+ def to_hash
179
+ hash = {}
180
+ self.class.attribute_map.each_pair do |attr, param|
181
+ value = self.send(attr)
182
+ if value.nil?
183
+ is_nullable = self.class.openapi_nullable.include?(attr)
184
+ next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
185
+ end
186
+
187
+ hash[param] = _to_hash(value)
188
+ end
189
+ hash
190
+ end
191
+
192
+ # Outputs non-array value in the form of hash
193
+ # For object, use to_hash. Otherwise, just return the value
194
+ # @param [Object] value Any valid value
195
+ # @return [Hash] Returns the value in the form of hash
196
+ def _to_hash(value)
197
+ if value.is_a?(Array)
198
+ value.compact.map { |v| _to_hash(v) }
199
+ elsif value.is_a?(Hash)
200
+ {}.tap do |hash|
201
+ value.each { |k, v| hash[k] = _to_hash(v) }
202
+ end
203
+ elsif value.respond_to? :to_hash
204
+ value.to_hash
205
+ else
206
+ value
207
+ end
208
+ end
209
+ end
210
+ end
211
+ end
@@ -26,6 +26,8 @@ module PCPServerSDK
26
26
 
27
27
  attr_accessor :payment_product302_specific_input
28
28
 
29
+ attr_accessor :payment_product5002_specific_input
30
+
29
31
  class EnumAttributeValidator
30
32
  attr_reader :datatype
31
33
  attr_reader :allowable_values
@@ -57,7 +59,8 @@ module PCPServerSDK
57
59
  :'public_key_hash' => :'publicKeyHash',
58
60
  :'ephemeral_key' => :'ephemeralKey',
59
61
  :'three_d_secure' => :'threeDSecure',
60
- :'payment_product302_specific_input' => :'paymentProduct302SpecificInput'
62
+ :'payment_product302_specific_input' => :'paymentProduct302SpecificInput',
63
+ :'payment_product5002_specific_input' => :'paymentProduct5002SpecificInput'
61
64
  }
62
65
  end
63
66
 
@@ -75,7 +78,8 @@ module PCPServerSDK
75
78
  :'public_key_hash' => :'String',
76
79
  :'ephemeral_key' => :'String',
77
80
  :'three_d_secure' => :'MobilePaymentThreeDSecure',
78
- :'payment_product302_specific_input' => :'PaymentProduct302SpecificInput'
81
+ :'payment_product302_specific_input' => :'PaymentProduct302SpecificInput',
82
+ :'payment_product5002_specific_input' => :'PaymentProduct5002SpecificInput'
79
83
  }
80
84
  end
81
85
 
@@ -126,6 +130,10 @@ module PCPServerSDK
126
130
  if attributes.key?(:'payment_product302_specific_input')
127
131
  self.payment_product302_specific_input = attributes[:'payment_product302_specific_input']
128
132
  end
133
+
134
+ if attributes.key?(:'payment_product5002_specific_input')
135
+ self.payment_product5002_specific_input = attributes[:'payment_product5002_specific_input']
136
+ end
129
137
  end
130
138
 
131
139
  # Checks equality by comparing each attribute.
@@ -139,7 +147,8 @@ module PCPServerSDK
139
147
  public_key_hash == o.public_key_hash &&
140
148
  ephemeral_key == o.ephemeral_key &&
141
149
  three_d_secure == o.three_d_secure &&
142
- payment_product302_specific_input == o.payment_product302_specific_input
150
+ payment_product302_specific_input == o.payment_product302_specific_input &&
151
+ payment_product5002_specific_input == o.payment_product5002_specific_input
143
152
  end
144
153
 
145
154
  def eql?(o)
@@ -147,7 +156,7 @@ module PCPServerSDK
147
156
  end
148
157
 
149
158
  def hash
150
- [payment_product_id, authorization_mode, encrypted_payment_data, public_key_hash, ephemeral_key, three_d_secure, payment_product302_specific_input].hash
159
+ [payment_product_id, authorization_mode, encrypted_payment_data, public_key_hash, ephemeral_key, three_d_secure, payment_product302_specific_input, payment_product5002_specific_input].hash
151
160
  end
152
161
 
153
162
  def self.build_from_hash(attributes)
@@ -42,7 +42,7 @@ module PCPServerSDK
42
42
  :'authorisation_code' => :'String',
43
43
  :'fraud_results' => :'CardFraudResults',
44
44
  :'three_d_secure_results' => :'ThreeDSecureResults',
45
- :'network' => :'String'
45
+ :'network' => :'MobilePaymentNetwork'
46
46
  }
47
47
  end
48
48
 
@@ -1,21 +1,21 @@
1
1
 
2
2
  module PCPServerSDK
3
3
  module Models
4
- class Network
5
- VISA = 'VISA'.freeze
4
+ class MobilePaymentNetwork
6
5
  MASTERCARD = 'MASTERCARD'.freeze
6
+ VISA = 'VISA'.freeze
7
7
  AMEX = 'AMEX'.freeze
8
8
  GIROCARD = 'GIROCARD'.freeze
9
9
  DISCOVER = 'DISCOVER'.freeze
10
10
  JCB = 'JCB'.freeze
11
11
 
12
12
  def self.all_networks
13
- [VISA, MASTERCARD, AMEX, GIROCARD, DISCOVER, JCB]
13
+ [MASTERCARD, VISA, AMEX, GIROCARD, DISCOVER, JCB]
14
14
  end
15
15
 
16
16
  def self.from_string(value)
17
17
  network = all_networks.find { |net| net.casecmp(value).zero? }
18
- raise TypeError, "'#{value}' can't represent a Network" unless network
18
+ raise TypeError, "'#{value}' can't represent a MobilePaymentNetwork" unless network
19
19
 
20
20
  network
21
21
  end
@@ -14,6 +14,7 @@ module PCPServerSDK
14
14
 
15
15
  attr_accessor :payment_method_specific_input
16
16
 
17
+ attr_accessor :fund_split
17
18
 
18
19
 
19
20
  class EnumAttributeValidator
@@ -44,7 +45,8 @@ module PCPServerSDK
44
45
  :'order_type' => :'orderType',
45
46
  :'order_references' => :'orderReferences',
46
47
  :'items' => :'items',
47
- :'payment_method_specific_input' => :'paymentMethodSpecificInput'
48
+ :'payment_method_specific_input' => :'paymentMethodSpecificInput',
49
+ :'fund_split' => :'fundSplit'
48
50
  }
49
51
  end
50
52
 
@@ -59,7 +61,8 @@ module PCPServerSDK
59
61
  :'order_type' => :'OrderType',
60
62
  :'order_references' => :'References',
61
63
  :'items' => :'Array<OrderItem>',
62
- :'payment_method_specific_input' => :'PaymentMethodSpecificInput'
64
+ :'payment_method_specific_input' => :'PaymentMethodSpecificInput',
65
+ :'fund_split' => :'FundSplit'
63
66
  }
64
67
  end
65
68
 
@@ -101,6 +104,10 @@ module PCPServerSDK
101
104
  if attributes.key?(:'payment_method_specific_input')
102
105
  self.payment_method_specific_input = attributes[:'payment_method_specific_input']
103
106
  end
107
+
108
+ if attributes.key?(:'fund_split')
109
+ self.fund_split = attributes[:'fund_split']
110
+ end
104
111
  end
105
112
 
106
113
  # Checks equality by comparing each attribute.
@@ -111,7 +118,8 @@ module PCPServerSDK
111
118
  order_type == o.order_type &&
112
119
  order_references == o.order_references &&
113
120
  items == o.items &&
114
- payment_method_specific_input == o.payment_method_specific_input
121
+ payment_method_specific_input == o.payment_method_specific_input &&
122
+ fund_split == o.fund_split
115
123
  end
116
124
 
117
125
  # @see the `==` method
@@ -123,7 +131,7 @@ module PCPServerSDK
123
131
  # Calculates hash code according to all attributes.
124
132
  # @return [Integer] Hash code
125
133
  def hash
126
- [order_type, order_references, items, payment_method_specific_input].hash
134
+ [order_type, order_references, items, payment_method_specific_input, fund_split].hash
127
135
  end
128
136
 
129
137
  # Builds the object from hash
@@ -1,39 +1,13 @@
1
1
  require 'date'
2
2
  require 'time'
3
3
 
4
- # Request to refresh the payment status of a specific payment.
4
+ # Request to pause a specific payment.
5
5
  module PCPServerSDK
6
6
  module Models
7
7
  class PausePaymentRequest
8
- attr_accessor :refresh_type
9
-
10
- class EnumAttributeValidator
11
- attr_reader :datatype
12
- attr_reader :allowable_values
13
-
14
- def initialize(datatype, allowable_values)
15
- @allowable_values = allowable_values.map do |value|
16
- case datatype.to_s
17
- when /Integer/i
18
- value.to_i
19
- when /Float/i
20
- value.to_f
21
- else
22
- value
23
- end
24
- end
25
- end
26
-
27
- def valid?(value)
28
- !value || allowable_values.include?(value)
29
- end
30
- end
31
-
32
8
  # Attribute mapping from ruby-style variable name to JSON key.
33
9
  def self.attribute_map
34
- {
35
- :'refresh_type' => :'refreshType'
36
- }
10
+ {}
37
11
  end
38
12
 
39
13
  # Returns all the JSON keys this model knows about
@@ -43,9 +17,7 @@ module PCPServerSDK
43
17
 
44
18
  # Attribute type mapping.
45
19
  def self.openapi_types
46
- {
47
- :'refresh_type' => :'RefreshType'
48
- }
20
+ {}
49
21
  end
50
22
 
51
23
  # List of attributes with nullable: true
@@ -66,18 +38,13 @@ module PCPServerSDK
66
38
  end
67
39
  h[k.to_sym] = v
68
40
  }
69
-
70
- if attributes.key?(:'refresh_type')
71
- self.refresh_type = attributes[:'refresh_type']
72
- end
73
41
  end
74
42
 
75
43
  # Checks equality by comparing each attribute.
76
44
  # @param [Object] Object to be compared
77
45
  def ==(o)
78
46
  return true if self.equal?(o)
79
- self.class == o.class &&
80
- refresh_type == o.refresh_type
47
+ self.class == o.class
81
48
  end
82
49
 
83
50
  # @see the `==` method
@@ -89,7 +56,7 @@ module PCPServerSDK
89
56
  # Calculates hash code according to all attributes.
90
57
  # @return [Integer] Hash code
91
58
  def hash
92
- [refresh_type].hash
59
+ [].hash
93
60
  end
94
61
 
95
62
  # Builds the object from hash
@@ -36,6 +36,8 @@ module PCPServerSDK
36
36
 
37
37
  attr_accessor :events
38
38
 
39
+ attr_accessor :fund_splits
40
+
39
41
  class EnumAttributeValidator
40
42
  attr_reader :datatype
41
43
  attr_reader :allowable_values
@@ -74,7 +76,8 @@ module PCPServerSDK
74
76
  :'previous_payment' => :'previousPayment',
75
77
  :'creation_date_time' => :'creationDateTime',
76
78
  :'last_updated' => :'lastUpdated',
77
- :'events' => :'events'
79
+ :'events' => :'events',
80
+ :'fund_splits' => :'fundSplits'
78
81
  }
79
82
  end
80
83
 
@@ -99,7 +102,8 @@ module PCPServerSDK
99
102
  :'previous_payment' => :'String',
100
103
  :'creation_date_time' => :'Time',
101
104
  :'last_updated' => :'Time',
102
- :'events' => :'Array<PaymentEvent>'
105
+ :'events' => :'Array<PaymentEvent>',
106
+ :'fund_splits' => :'Array<FundSplit>'
103
107
  }
104
108
  end
105
109
 
@@ -181,6 +185,12 @@ module PCPServerSDK
181
185
  self.events = value
182
186
  end
183
187
  end
188
+
189
+ if attributes.key?(:'fund_splits')
190
+ if (value = attributes[:'fund_splits']).is_a?(Array)
191
+ self.fund_splits = value
192
+ end
193
+ end
184
194
  end
185
195
 
186
196
  # Checks equality by comparing each attribute.
@@ -200,7 +210,8 @@ module PCPServerSDK
200
210
  previous_payment == o.previous_payment &&
201
211
  creation_date_time == o.creation_date_time &&
202
212
  last_updated == o.last_updated &&
203
- events == o.events
213
+ events == o.events &&
214
+ fund_splits == o.fund_splits
204
215
  end
205
216
 
206
217
  # @see the `==` method
@@ -213,7 +224,7 @@ module PCPServerSDK
213
224
  [payment_execution_id, payment_id, card_payment_method_specific_input, mobile_payment_method_specific_input,
214
225
  redirect_payment_method_specific_input, sepa_direct_debit_payment_method_specific_input,
215
226
  financing_payment_method_specific_input, bank_payout_method_specific_input, payment_channel, references,
216
- previous_payment, creation_date_time, last_updated, events].hash
227
+ previous_payment, creation_date_time, last_updated, events, fund_splits].hash
217
228
  end
218
229
 
219
230
  # Builds the object from hash
@@ -12,12 +12,15 @@ module PCPServerSDK
12
12
 
13
13
  attr_accessor :payment_references
14
14
 
15
+ attr_accessor :fund_split
16
+
15
17
  # Attribute mapping from ruby-style variable name to JSON key.
16
18
  def self.attribute_map
17
19
  {
18
20
  :'amount_of_money' => :'amountOfMoney',
19
21
  :'shopping_cart' => :'shoppingCart',
20
- :'payment_references' => :'paymentReferences'
22
+ :'payment_references' => :'paymentReferences',
23
+ :'fund_split' => :'fundSplit'
21
24
  }
22
25
  end
23
26
 
@@ -31,7 +34,8 @@ module PCPServerSDK
31
34
  {
32
35
  :'amount_of_money' => :'AmountOfMoney',
33
36
  :'shopping_cart' => :'ShoppingCartInput',
34
- :'payment_references' => :'References'
37
+ :'payment_references' => :'References',
38
+ :'fund_split' => :'FundSplit'
35
39
  }
36
40
  end
37
41
 
@@ -69,6 +73,10 @@ module PCPServerSDK
69
73
  else
70
74
  self.payment_references = nil
71
75
  end
76
+
77
+ if attributes.key?(:'fund_split')
78
+ self.fund_split = attributes[:'fund_split']
79
+ end
72
80
  end
73
81
 
74
82
  # Checks equality by comparing each attribute.
@@ -78,7 +86,8 @@ module PCPServerSDK
78
86
  self.class == o.class &&
79
87
  amount_of_money == o.amount_of_money &&
80
88
  shopping_cart == o.shopping_cart &&
81
- payment_references == o.payment_references
89
+ payment_references == o.payment_references &&
90
+ fund_split == o.fund_split
82
91
  end
83
92
 
84
93
  # @see the `==` method
@@ -90,7 +99,7 @@ module PCPServerSDK
90
99
  # Calculates hash code according to all attributes.
91
100
  # @return [Integer] Hash code
92
101
  def hash
93
- [amount_of_money, shopping_cart, payment_references].hash
102
+ [amount_of_money, shopping_cart, payment_references, fund_split].hash
94
103
  end
95
104
 
96
105
  # Builds the object from hash
@@ -62,7 +62,7 @@ module PCPServerSDK
62
62
  def self.openapi_types
63
63
  {
64
64
  :'integration_type' => :'String',
65
- :'network' => :'String',
65
+ :'network' => :'MobilePaymentNetwork',
66
66
  :'token' => :'ApplePaymentDataTokenInformation',
67
67
  :'domain_name' => :'String',
68
68
  :'display_name' => :'String'