pcp-server-ruby-sdk 1.6.0 → 1.8.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 (47) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +12 -0
  3. data/api-definition.yaml +5012 -4842
  4. data/lib/PCP-server-Ruby-SDK/models/apple_payment_data_token_header_information.rb +2 -0
  5. data/lib/PCP-server-Ruby-SDK/models/apple_payment_data_token_information.rb +6 -0
  6. data/lib/PCP-server-Ruby-SDK/models/bank_account_information.rb +0 -2
  7. data/lib/PCP-server-Ruby-SDK/models/bank_payout_method_specific_input.rb +0 -4
  8. data/lib/PCP-server-Ruby-SDK/models/cancel_payment_request.rb +8 -0
  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_order_request.rb +187 -0
  16. data/lib/PCP-server-Ruby-SDK/models/complete_payment_product840_specific_input.rb +2 -0
  17. data/lib/PCP-server-Ruby-SDK/models/create_payment_response.rb +13 -4
  18. data/lib/PCP-server-Ruby-SDK/models/deliver_request.rb +12 -4
  19. data/lib/PCP-server-Ruby-SDK/models/fund_distribution.rb +272 -0
  20. data/lib/PCP-server-Ruby-SDK/models/fund_split.rb +211 -0
  21. data/lib/PCP-server-Ruby-SDK/models/mobile_payment_method_specific_input.rb +13 -4
  22. data/lib/PCP-server-Ruby-SDK/models/mobile_payment_method_specific_output.rb +1 -1
  23. data/lib/PCP-server-Ruby-SDK/models/{network.rb → mobile_payment_network.rb} +4 -4
  24. data/lib/PCP-server-Ruby-SDK/models/order_line_details_input.rb +2 -1
  25. data/lib/PCP-server-Ruby-SDK/models/order_line_details_patch.rb +11 -1
  26. data/lib/PCP-server-Ruby-SDK/models/order_line_details_result.rb +11 -1
  27. data/lib/PCP-server-Ruby-SDK/models/order_request.rb +12 -4
  28. data/lib/PCP-server-Ruby-SDK/models/pause_payment_request.rb +5 -38
  29. data/lib/PCP-server-Ruby-SDK/models/payment_event.rb +34 -4
  30. data/lib/PCP-server-Ruby-SDK/models/payment_execution.rb +15 -4
  31. data/lib/PCP-server-Ruby-SDK/models/payment_execution_specific_input.rb +13 -4
  32. data/lib/PCP-server-Ruby-SDK/models/payment_product302_specific_input.rb +1 -1
  33. data/lib/PCP-server-Ruby-SDK/models/payment_product5002_specific_input.rb +209 -0
  34. data/lib/PCP-server-Ruby-SDK/models/payment_references_for_refund.rb +198 -0
  35. data/lib/PCP-server-Ruby-SDK/models/redirect_payment_method_specific_input.rb +4 -14
  36. data/lib/PCP-server-Ruby-SDK/models/redirect_payment_method_specific_output.rb +4 -14
  37. data/lib/PCP-server-Ruby-SDK/models/refund_payment_response.rb +12 -4
  38. data/lib/PCP-server-Ruby-SDK/models/refund_request.rb +14 -5
  39. data/lib/PCP-server-Ruby-SDK/models/return_request.rb +204 -191
  40. data/lib/PCP-server-Ruby-SDK/transformer/apple_pay_transformer.rb +2 -2
  41. data/lib/PCP-server-Ruby-SDK/version.rb +1 -1
  42. data/lib/PCP-server-Ruby-SDK.rb +7 -1
  43. data/package-lock.json +16 -3
  44. data/package.json +1 -1
  45. data/scripts.sh +2 -2
  46. data/spec/transformer/apple_pay_transformer_spec.rb +1 -1
  47. metadata +13 -7
@@ -15,6 +15,7 @@ module PCPServerSDK
15
15
  # Unique payment transaction identifier of the payment gateway.
16
16
  attr_accessor :id
17
17
 
18
+ attr_accessor :fund_split
18
19
 
19
20
 
20
21
  class EnumAttributeValidator
@@ -45,7 +46,8 @@ module PCPServerSDK
45
46
  :'refund_output' => :'refundOutput',
46
47
  :'status' => :'status',
47
48
  :'status_output' => :'statusOutput',
48
- :'id' => :'id'
49
+ :'id' => :'id',
50
+ :'fund_split' => :'fundSplit'
49
51
  }
50
52
  end
51
53
 
@@ -60,7 +62,8 @@ module PCPServerSDK
60
62
  :'refund_output' => :'RefundOutput',
61
63
  :'status' => :'StatusValue',
62
64
  :'status_output' => :'PaymentStatusOutput',
63
- :'id' => :'String'
65
+ :'id' => :'String',
66
+ :'fund_split' => :'FundSplit'
64
67
  }
65
68
  end
66
69
 
@@ -100,6 +103,10 @@ module PCPServerSDK
100
103
  if attributes.key?(:'id')
101
104
  self.id = attributes[:'id']
102
105
  end
106
+
107
+ if attributes.key?(:'fund_split')
108
+ self.fund_split = attributes[:'fund_split']
109
+ end
103
110
  end
104
111
 
105
112
  # Checks equality by comparing each attribute.
@@ -110,7 +117,8 @@ module PCPServerSDK
110
117
  refund_output == o.refund_output &&
111
118
  status == o.status &&
112
119
  status_output == o.status_output &&
113
- id == o.id
120
+ id == o.id &&
121
+ fund_split == o.fund_split
114
122
  end
115
123
 
116
124
  # @see the `==` method
@@ -122,7 +130,7 @@ module PCPServerSDK
122
130
  # Calculates hash code according to all attributes.
123
131
  # @return [Integer] Hash code
124
132
  def hash
125
- [refund_output, status, status_output, id].hash
133
+ [refund_output, status, status_output, id, fund_split].hash
126
134
  end
127
135
 
128
136
  # Builds the object from hash
@@ -12,12 +12,15 @@ module PCPServerSDK
12
12
 
13
13
  attr_accessor :_return
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
  :'references' => :'references',
20
- :'_return' => :'return'
22
+ :'_return' => :'return',
23
+ :'fund_split' => :'fundSplit'
21
24
  }
22
25
  end
23
26
 
@@ -30,8 +33,9 @@ module PCPServerSDK
30
33
  def self.openapi_types
31
34
  {
32
35
  :'amount_of_money' => :'PositiveAmountOfMoney',
33
- :'references' => :'PaymentReferences',
34
- :'_return' => :'ReturnInformation'
36
+ :'references' => :'PaymentReferencesForRefund',
37
+ :'_return' => :'ReturnInformation',
38
+ :'fund_split' => :'FundSplit'
35
39
  }
36
40
  end
37
41
 
@@ -67,6 +71,10 @@ module PCPServerSDK
67
71
  if attributes.key?(:'_return')
68
72
  self._return = attributes[:'_return']
69
73
  end
74
+
75
+ if attributes.key?(:'fund_split')
76
+ self.fund_split = attributes[:'fund_split']
77
+ end
70
78
  end
71
79
 
72
80
  # Checks equality by comparing each attribute.
@@ -76,7 +84,8 @@ module PCPServerSDK
76
84
  self.class == o.class &&
77
85
  amount_of_money == o.amount_of_money &&
78
86
  references == o.references &&
79
- _return == o._return
87
+ _return == o._return &&
88
+ fund_split == o.fund_split
80
89
  end
81
90
 
82
91
  # @see the `==` method
@@ -88,7 +97,7 @@ module PCPServerSDK
88
97
  # Calculates hash code according to all attributes.
89
98
  # @return [Integer] Hash code
90
99
  def hash
91
- [amount_of_money, references, _return].hash
100
+ [amount_of_money, references, _return, fund_split].hash
92
101
  end
93
102
 
94
103
  # Builds the object from hash
@@ -3,226 +3,239 @@ require 'date'
3
3
  require 'time'
4
4
 
5
5
  # Request to mark items of the respective Checkout as returned and to automatically refund a payment for those items. A Return can be created for a full or the partial ShoppingCart of the Checkout. The platform will automatically calculate the respective amount to trigger the Refund. For a partial Return a list of items must be provided. The item details for the Refund will be automatically loaded from the Checkout. The returnReason can be provided for reporting and reconciliation purposes but is not mandatory.
6
- class ReturnRequest
7
- attr_accessor :return_type
8
-
9
- # Reason of the Refund (e.g. communicated by or to the consumer).
10
- attr_accessor :return_reason
11
-
12
- attr_accessor :return_items
13
-
14
- class EnumAttributeValidator
15
- attr_reader :datatype
16
- attr_reader :allowable_values
6
+ module PCPServerSDK
7
+ module Models
8
+ class ReturnRequest
9
+ attr_accessor :return_type
10
+
11
+ # Reason of the Refund (e.g. communicated by or to the consumer).
12
+ attr_accessor :return_reason
13
+
14
+ attr_accessor :return_items
15
+
16
+ attr_accessor :fund_split
17
+
18
+ class EnumAttributeValidator
19
+ attr_reader :datatype
20
+ attr_reader :allowable_values
21
+
22
+ def initialize(datatype, allowable_values)
23
+ @allowable_values = allowable_values.map do |value|
24
+ case datatype.to_s
25
+ when /Integer/i
26
+ value.to_i
27
+ when /Float/i
28
+ value.to_f
29
+ else
30
+ value
31
+ end
32
+ end
33
+ end
17
34
 
18
- def initialize(datatype, allowable_values)
19
- @allowable_values = allowable_values.map do |value|
20
- case datatype.to_s
21
- when /Integer/i
22
- value.to_i
23
- when /Float/i
24
- value.to_f
25
- else
26
- value
35
+ def valid?(value)
36
+ !value || allowable_values.include?(value)
27
37
  end
28
38
  end
29
- end
30
39
 
31
- def valid?(value)
32
- !value || allowable_values.include?(value)
33
- end
34
- end
40
+ # Attribute mapping from ruby-style variable name to JSON key.
41
+ def self.attribute_map
42
+ {
43
+ :'return_type' => :'returnType',
44
+ :'return_reason' => :'returnReason',
45
+ :'return_items' => :'returnItems',
46
+ :'fund_split' => :'fundSplit'
47
+ }
48
+ end
35
49
 
36
- # Attribute mapping from ruby-style variable name to JSON key.
37
- def self.attribute_map
38
- {
39
- :'return_type' => :'returnType',
40
- :'return_reason' => :'returnReason',
41
- :'return_items' => :'returnItems'
42
- }
43
- end
50
+ # Returns all the JSON keys this model knows about
51
+ def self.acceptable_attributes
52
+ attribute_map.values
53
+ end
44
54
 
45
- # Returns all the JSON keys this model knows about
46
- def self.acceptable_attributes
47
- attribute_map.values
48
- end
55
+ # Attribute type mapping.
56
+ def self.openapi_types
57
+ {
58
+ :'return_type' => :'ReturnType',
59
+ :'return_reason' => :'String',
60
+ :'return_items' => :'Array<ReturnItem>',
61
+ :'fund_split' => :'FundSplit'
62
+ }
63
+ end
49
64
 
50
- # Attribute type mapping.
51
- def self.openapi_types
52
- {
53
- :'return_type' => :'ReturnType',
54
- :'return_reason' => :'String',
55
- :'return_items' => :'Array<ReturnItem>'
56
- }
57
- end
65
+ # List of attributes with nullable: true
66
+ def self.openapi_nullable
67
+ Set.new([
68
+ ])
69
+ end
58
70
 
59
- # List of attributes with nullable: true
60
- def self.openapi_nullable
61
- Set.new([
62
- ])
63
- end
71
+ # Initializes the object
72
+ # @param [Hash] attributes Model attributes in the form of hash
73
+ def initialize(attributes = {})
74
+ if (!attributes.is_a?(Hash))
75
+ fail ArgumentError, "The input argument (attributes) must be a hash in `ReturnRequest` initialize method"
76
+ end
64
77
 
65
- # Initializes the object
66
- # @param [Hash] attributes Model attributes in the form of hash
67
- def initialize(attributes = {})
68
- if (!attributes.is_a?(Hash))
69
- fail ArgumentError, "The input argument (attributes) must be a hash in `ReturnRequest` initialize method"
70
- end
78
+ # check to see if the attribute exists and convert string to symbol for hash key
79
+ attributes = attributes.each_with_object({}) { |(k, v), h|
80
+ if (!self.class.attribute_map.key?(k.to_sym))
81
+ fail ArgumentError, "`#{k}` is not a valid attribute in `ReturnRequest`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
82
+ end
83
+ h[k.to_sym] = v
84
+ }
71
85
 
72
- # check to see if the attribute exists and convert string to symbol for hash key
73
- attributes = attributes.each_with_object({}) { |(k, v), h|
74
- if (!self.class.attribute_map.key?(k.to_sym))
75
- fail ArgumentError, "`#{k}` is not a valid attribute in `ReturnRequest`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
76
- end
77
- h[k.to_sym] = v
78
- }
86
+ if attributes.key?(:'return_type')
87
+ self.return_type = attributes[:'return_type']
88
+ end
79
89
 
80
- if attributes.key?(:'return_type')
81
- self.return_type = attributes[:'return_type']
82
- end
90
+ if attributes.key?(:'return_reason')
91
+ self.return_reason = attributes[:'return_reason']
92
+ end
83
93
 
84
- if attributes.key?(:'return_reason')
85
- self.return_reason = attributes[:'return_reason']
86
- end
94
+ if attributes.key?(:'return_items')
95
+ if (value = attributes[:'return_items']).is_a?(Array)
96
+ self.return_items = value
97
+ end
98
+ end
87
99
 
88
- if attributes.key?(:'return_items')
89
- if (value = attributes[:'return_items']).is_a?(Array)
90
- self.return_items = value
100
+ if attributes.key?(:'fund_split')
101
+ self.fund_split = attributes[:'fund_split']
102
+ end
91
103
  end
92
- end
93
- end
94
104
 
95
- # Checks equality by comparing each attribute.
96
- # @param [Object] Object to be compared
97
- def ==(o)
98
- return true if self.equal?(o)
99
- self.class == o.class &&
100
- return_type == o.return_type &&
101
- return_reason == o.return_reason &&
102
- return_items == o.return_items
103
- end
105
+ # Checks equality by comparing each attribute.
106
+ # @param [Object] Object to be compared
107
+ def ==(o)
108
+ return true if self.equal?(o)
109
+ self.class == o.class &&
110
+ return_type == o.return_type &&
111
+ return_reason == o.return_reason &&
112
+ return_items == o.return_items &&
113
+ fund_split == o.fund_split
114
+ end
104
115
 
105
- # @see the `==` method
106
- # @param [Object] Object to be compared
107
- def eql?(o)
108
- self == o
109
- end
116
+ # @see the `==` method
117
+ # @param [Object] Object to be compared
118
+ def eql?(o)
119
+ self == o
120
+ end
110
121
 
111
- # Calculates hash code according to all attributes.
112
- # @return [Integer] Hash code
113
- def hash
114
- [return_type, return_reason, return_items].hash
115
- end
122
+ # Calculates hash code according to all attributes.
123
+ # @return [Integer] Hash code
124
+ def hash
125
+ [return_type, return_reason, return_items, fund_split].hash
126
+ end
116
127
 
117
- # Builds the object from hash
118
- # @param [Hash] attributes Model attributes in the form of hash
119
- # @return [Object] Returns the model itself
120
- def self.build_from_hash(attributes)
121
- return nil unless attributes.is_a?(Hash)
122
- attributes = attributes.transform_keys(&:to_sym)
123
- transformed_hash = {}
124
- openapi_types.each_pair do |key, type|
125
- if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
126
- transformed_hash["#{key}"] = nil
127
- elsif type =~ /\AArray<(.*)>/i
128
- # check to ensure the input is an array given that the attribute
129
- # is documented as an array but the input is not
130
- if attributes[attribute_map[key]].is_a?(Array)
131
- transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
128
+ # Builds the object from hash
129
+ # @param [Hash] attributes Model attributes in the form of hash
130
+ # @return [Object] Returns the model itself
131
+ def self.build_from_hash(attributes)
132
+ return nil unless attributes.is_a?(Hash)
133
+ attributes = attributes.transform_keys(&:to_sym)
134
+ transformed_hash = {}
135
+ openapi_types.each_pair do |key, type|
136
+ if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
137
+ transformed_hash["#{key}"] = nil
138
+ elsif type =~ /\AArray<(.*)>/i
139
+ # check to ensure the input is an array given that the attribute
140
+ # is documented as an array but the input is not
141
+ if attributes[attribute_map[key]].is_a?(Array)
142
+ transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
143
+ end
144
+ elsif !attributes[attribute_map[key]].nil?
145
+ transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
146
+ end
132
147
  end
133
- elsif !attributes[attribute_map[key]].nil?
134
- transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
148
+ new(transformed_hash)
135
149
  end
136
- end
137
- new(transformed_hash)
138
- end
139
150
 
140
- # Deserializes the data based on type
141
- # @param string type Data type
142
- # @param string value Value to be deserialized
143
- # @return [Object] Deserialized data
144
- def self._deserialize(type, value)
145
- case type.to_sym
146
- when :Time
147
- Time.parse(value)
148
- when :Date
149
- Date.parse(value)
150
- when :String
151
- value.to_s
152
- when :Integer
153
- value.to_i
154
- when :Float
155
- value.to_f
156
- when :Boolean
157
- if value.to_s =~ /\A(true|t|yes|y|1)\z/i
158
- true
159
- else
160
- false
161
- end
162
- when :Object
163
- # generic object (usually a Hash), return directly
164
- value
165
- when /\AArray<(?<inner_type>.+)>\z/
166
- inner_type = Regexp.last_match[:inner_type]
167
- value.map { |v| _deserialize(inner_type, v) }
168
- when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
169
- k_type = Regexp.last_match[:k_type]
170
- v_type = Regexp.last_match[:v_type]
171
- {}.tap do |hash|
172
- value.each do |k, v|
173
- hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
151
+ # Deserializes the data based on type
152
+ # @param string type Data type
153
+ # @param string value Value to be deserialized
154
+ # @return [Object] Deserialized data
155
+ def self._deserialize(type, value)
156
+ case type.to_sym
157
+ when :Time
158
+ Time.parse(value)
159
+ when :Date
160
+ Date.parse(value)
161
+ when :String
162
+ value.to_s
163
+ when :Integer
164
+ value.to_i
165
+ when :Float
166
+ value.to_f
167
+ when :Boolean
168
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
169
+ true
170
+ else
171
+ false
172
+ end
173
+ when :Object
174
+ # generic object (usually a Hash), return directly
175
+ value
176
+ when /\AArray<(?<inner_type>.+)>\z/
177
+ inner_type = Regexp.last_match[:inner_type]
178
+ value.map { |v| _deserialize(inner_type, v) }
179
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
180
+ k_type = Regexp.last_match[:k_type]
181
+ v_type = Regexp.last_match[:v_type]
182
+ {}.tap do |hash|
183
+ value.each do |k, v|
184
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
185
+ end
186
+ end
187
+ else # model
188
+ # models (e.g. Pet) or oneOf
189
+ klass = PCPServerSDK::Models.const_get(type)
190
+ klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
174
191
  end
175
192
  end
176
- else # model
177
- # models (e.g. Pet) or oneOf
178
- klass = PCPServerSDK::Models.const_get(type)
179
- klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
180
- end
181
- end
182
-
183
- # Returns the string representation of the object
184
- # @return [String] String presentation of the object
185
- def to_s
186
- to_hash.to_s
187
- end
188
193
 
189
- # to_body is an alias to to_hash (backward compatibility)
190
- # @return [Hash] Returns the object in the form of hash
191
- def to_body
192
- to_hash
193
- end
194
+ # Returns the string representation of the object
195
+ # @return [String] String presentation of the object
196
+ def to_s
197
+ to_hash.to_s
198
+ end
194
199
 
195
- # Returns the object in the form of hash
196
- # @return [Hash] Returns the object in the form of hash
197
- def to_hash
198
- hash = {}
199
- self.class.attribute_map.each_pair do |attr, param|
200
- value = self.send(attr)
201
- if value.nil?
202
- is_nullable = self.class.openapi_nullable.include?(attr)
203
- next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
200
+ # to_body is an alias to to_hash (backward compatibility)
201
+ # @return [Hash] Returns the object in the form of hash
202
+ def to_body
203
+ to_hash
204
204
  end
205
205
 
206
- hash[param] = _to_hash(value)
207
- end
208
- hash
209
- end
206
+ # Returns the object in the form of hash
207
+ # @return [Hash] Returns the object in the form of hash
208
+ def to_hash
209
+ hash = {}
210
+ self.class.attribute_map.each_pair do |attr, param|
211
+ value = self.send(attr)
212
+ if value.nil?
213
+ is_nullable = self.class.openapi_nullable.include?(attr)
214
+ next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
215
+ end
216
+
217
+ hash[param] = _to_hash(value)
218
+ end
219
+ hash
220
+ end
210
221
 
211
- # Outputs non-array value in the form of hash
212
- # For object, use to_hash. Otherwise, just return the value
213
- # @param [Object] value Any valid value
214
- # @return [Hash] Returns the value in the form of hash
215
- def _to_hash(value)
216
- if value.is_a?(Array)
217
- value.compact.map { |v| _to_hash(v) }
218
- elsif value.is_a?(Hash)
219
- {}.tap do |hash|
220
- value.each { |k, v| hash[k] = _to_hash(v) }
222
+ # Outputs non-array value in the form of hash
223
+ # For object, use to_hash. Otherwise, just return the value
224
+ # @param [Object] value Any valid value
225
+ # @return [Hash] Returns the value in the form of hash
226
+ def _to_hash(value)
227
+ if value.is_a?(Array)
228
+ value.compact.map { |v| _to_hash(v) }
229
+ elsif value.is_a?(Hash)
230
+ {}.tap do |hash|
231
+ value.each { |k, v| hash[k] = _to_hash(v) }
232
+ end
233
+ elsif value.respond_to? :to_hash
234
+ value.to_hash
235
+ else
236
+ value
237
+ end
221
238
  end
222
- elsif value.respond_to? :to_hash
223
- value.to_hash
224
- else
225
- value
226
239
  end
227
240
  end
228
241
  end
@@ -7,7 +7,7 @@ require_relative '../models/applepay/apple_pay_payment_data'
7
7
  require_relative '../models/applepay/apple_pay_payment_data_header'
8
8
  require_relative '../models/applepay/apple_pay_payment_method'
9
9
  require_relative '../models/mobile_payment_method_specific_input'
10
- require_relative '../models/network'
10
+ require_relative '../models/mobile_payment_network'
11
11
  require_relative '../models/payment_product302_specific_input'
12
12
 
13
13
  module PCPServerSDK
@@ -26,7 +26,7 @@ module PCPServerSDK
26
26
  public_key_hash: header.public_key_hash,
27
27
  ephemeral_key: header.ephemeral_public_key,
28
28
  payment_product302_specific_input: PCPServerSDK::Models::PaymentProduct302SpecificInput.new(
29
- network: PCPServerSDK::Models::Network.from_string(payment_method.network.to_s),
29
+ network: PCPServerSDK::Models::MobilePaymentNetwork.from_string(payment_method.network.to_s),
30
30
  token: PCPServerSDK::Models::ApplePaymentDataTokenInformation.new(
31
31
  version: PCPServerSDK::Models::ApplePaymentTokenVersion.from_string(payment_data.version.to_s),
32
32
  signature: payment_data.signature,
@@ -1,4 +1,4 @@
1
1
 
2
2
  module PCPServerSDK
3
- VERSION = '1.6.0'
3
+ VERSION = '1.8.0'
4
4
  end
@@ -47,12 +47,14 @@ require_relative 'PCP-server-Ruby-SDK/models/cart_item_order_status'
47
47
  require_relative 'PCP-server-Ruby-SDK/models/cart_item_patch'
48
48
  require_relative 'PCP-server-Ruby-SDK/models/cart_item_result'
49
49
  require_relative 'PCP-server-Ruby-SDK/models/cart_item_status'
50
+ require_relative 'PCP-server-Ruby-SDK/models/cart_item_supplier_references'
50
51
  require_relative 'PCP-server-Ruby-SDK/models/checkout_references'
51
52
  require_relative 'PCP-server-Ruby-SDK/models/checkout_response'
52
53
  require_relative 'PCP-server-Ruby-SDK/models/checkouts_response'
53
54
  require_relative 'PCP-server-Ruby-SDK/models/commerce_case_response'
54
55
  require_relative 'PCP-server-Ruby-SDK/models/company_information'
55
56
  require_relative 'PCP-server-Ruby-SDK/models/complete_financing_payment_method_specific_input'
57
+ require_relative 'PCP-server-Ruby-SDK/models/complete_order_request'
56
58
  require_relative 'PCP-server-Ruby-SDK/models/complete_payment_method_specific_input'
57
59
  require_relative 'PCP-server-Ruby-SDK/models/complete_payment_request'
58
60
  require_relative 'PCP-server-Ruby-SDK/models/complete_payment_response'
@@ -73,6 +75,8 @@ require_relative 'PCP-server-Ruby-SDK/models/error_response'
73
75
  require_relative 'PCP-server-Ruby-SDK/models/extended_checkout_status'
74
76
  require_relative 'PCP-server-Ruby-SDK/models/financing_payment_method_specific_input'
75
77
  require_relative 'PCP-server-Ruby-SDK/models/financing_payment_method_specific_output'
78
+ require_relative 'PCP-server-Ruby-SDK/models/fund_distribution'
79
+ require_relative 'PCP-server-Ruby-SDK/models/fund_split'
76
80
  require_relative 'PCP-server-Ruby-SDK/models/installment_option'
77
81
  require_relative 'PCP-server-Ruby-SDK/models/link_information'
78
82
  require_relative 'PCP-server-Ruby-SDK/models/mandate_recurrence_type'
@@ -80,7 +84,7 @@ require_relative 'PCP-server-Ruby-SDK/models/merchant_action'
80
84
  require_relative 'PCP-server-Ruby-SDK/models/mobile_payment_three_dsecure'
81
85
  require_relative 'PCP-server-Ruby-SDK/models/mobile_payment_method_specific_input'
82
86
  require_relative 'PCP-server-Ruby-SDK/models/mobile_payment_method_specific_output'
83
- require_relative 'PCP-server-Ruby-SDK/models/network'
87
+ require_relative 'PCP-server-Ruby-SDK/models/mobile_payment_network'
84
88
  require_relative 'PCP-server-Ruby-SDK/models/order'
85
89
  require_relative 'PCP-server-Ruby-SDK/models/order_item'
86
90
  require_relative 'PCP-server-Ruby-SDK/models/order_line_details_input'
@@ -111,10 +115,12 @@ require_relative 'PCP-server-Ruby-SDK/models/payment_product302_specific_input'
111
115
  require_relative 'PCP-server-Ruby-SDK/models/payment_product3391_specific_input'
112
116
  require_relative 'PCP-server-Ruby-SDK/models/payment_product3391_specific_output'
113
117
  require_relative 'PCP-server-Ruby-SDK/models/payment_product3392_specific_input'
118
+ require_relative 'PCP-server-Ruby-SDK/models/payment_product5002_specific_input'
114
119
  require_relative 'PCP-server-Ruby-SDK/models/payment_product771_specific_output'
115
120
  require_relative 'PCP-server-Ruby-SDK/models/payment_product840_customer_account'
116
121
  require_relative 'PCP-server-Ruby-SDK/models/payment_product840_specific_output'
117
122
  require_relative 'PCP-server-Ruby-SDK/models/payment_references'
123
+ require_relative 'PCP-server-Ruby-SDK/models/payment_references_for_refund'
118
124
  require_relative 'PCP-server-Ruby-SDK/models/payment_response'
119
125
  require_relative 'PCP-server-Ruby-SDK/models/payment_status_output'
120
126
  require_relative 'PCP-server-Ruby-SDK/models/payment_type'
data/package-lock.json CHANGED
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "pcp-serversdk-ruby",
3
- "version": "1.6.0",
3
+ "version": "1.8.0",
4
4
  "lockfileVersion": 3,
5
5
  "requires": true,
6
6
  "packages": {
7
7
  "": {
8
8
  "name": "pcp-serversdk-ruby",
9
- "version": "1.6.0",
9
+ "version": "1.8.0",
10
10
  "devDependencies": {
11
11
  "@commitlint/cli": "19.4.0",
12
12
  "@commitlint/config-conventional": "19.2.2",
@@ -306,6 +306,20 @@
306
306
  "node": ">=10.13.0"
307
307
  }
308
308
  },
309
+ "node_modules/@simple-libs/stream-utils": {
310
+ "version": "1.2.0",
311
+ "resolved": "https://registry.npmjs.org/@simple-libs/stream-utils/-/stream-utils-1.2.0.tgz",
312
+ "integrity": "sha512-KxXvfapcixpz6rVEB6HPjOUZT22yN6v0vI0urQSk1L8MlEWPDFCZkhw2xmkyoTGYeFw7tWTZd7e3lVzRZRN/EA==",
313
+ "dev": true,
314
+ "license": "MIT",
315
+ "optional": true,
316
+ "engines": {
317
+ "node": ">=18"
318
+ },
319
+ "funding": {
320
+ "url": "https://ko-fi.com/dangreen"
321
+ }
322
+ },
309
323
  "node_modules/@types/conventional-commits-parser": {
310
324
  "version": "5.0.2",
311
325
  "resolved": "https://registry.npmjs.org/@types/conventional-commits-parser/-/conventional-commits-parser-5.0.2.tgz",
@@ -755,7 +769,6 @@
755
769
  "integrity": "sha512-tQMagCOC59EVgNZcC5zl7XqO30Wki9i9J3acbUvkaosCT6JX3EeFwJD7Qqp4MCikRnzS18WXV3BLIQ66ytu6+Q==",
756
770
  "dev": true,
757
771
  "license": "MIT",
758
- "peer": true,
759
772
  "engines": {
760
773
  "node": ">=18"
761
774
  }