ultracart_api 3.10.225 → 3.10.228

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 4bb966b86d46878c1462183bde9968d5203b230a599d3f3e891d861a2adcfa22
4
- data.tar.gz: 54bb8441772708dd2ed51a71e0409868459c360cce184633500a920b4bc3b794
3
+ metadata.gz: b2b1cf6556bbeaec42b2e3508de405a987b6ec176ae897d4be810c79f34053f6
4
+ data.tar.gz: a98b7d215f9fb76b5e3beed968a8ea727eeaf908be2495dca970b5418d4bc918
5
5
  SHA512:
6
- metadata.gz: 625a8b9ae4dd61218a4c35945c47af2d2f0abf518205db080e4e562e25caf409c3b5c4f6772a09efd04a10e9014e3e620e3dedec0b6a2e91c5f78b7088b21b8e
7
- data.tar.gz: 1e4d7b54c69b01cb1ebbe58e44d69a685057a38601a0e7f507f8031bae7a258edf87ed1cb3a1905e467eb6238e4f2cccff9161862add335de5883b28f3359e91
6
+ metadata.gz: fd080dc49192278f14dca51971e600fb90708f32fc23fb2416efc7f6e6bbae0fb673fcca8d1b10c7734e1f7ddfbf8fc17080c51f171d712a34172f2baf170047
7
+ data.tar.gz: 1da48822b4f2238e001679391eeb5dfca8f677da6193d3b86687ad621a53a89573f87c3064dae2e92961651ceb858b50db0c43c0917fa5535385917f7861cfeb
data/README.md CHANGED
@@ -7,7 +7,7 @@ UltraCart REST API Version 2
7
7
  This SDK is automatically generated by the [Swagger Codegen](https://github.com/swagger-api/swagger-codegen) project:
8
8
 
9
9
  - API version: 2.0.0
10
- - Package version: 3.10.225
10
+ - Package version: 3.10.228
11
11
  - Build package: io.swagger.codegen.languages.RubyClientCodegen
12
12
  For more information, please visit [http://www.ultracart.com](http://www.ultracart.com)
13
13
 
@@ -24,15 +24,15 @@ gem build ultracart_api.gemspec
24
24
  Then either install the gem locally:
25
25
 
26
26
  ```shell
27
- gem install ./ultracart_api-3.10.225.gem
27
+ gem install ./ultracart_api-3.10.228.gem
28
28
  ```
29
- (for development, run `gem install --dev ./ultracart_api-3.10.225.gem` to install the development dependencies)
29
+ (for development, run `gem install --dev ./ultracart_api-3.10.228.gem` to install the development dependencies)
30
30
 
31
31
  or publish the gem to a gem hosting service, e.g. [RubyGems](https://rubygems.org/).
32
32
 
33
33
  Finally add this to the Gemfile:
34
34
 
35
- gem 'ultracart_api', '~> 3.10.225'
35
+ gem 'ultracart_api', '~> 3.10.228'
36
36
 
37
37
  ### Install from Git
38
38
 
@@ -1238,6 +1238,7 @@ Class | Method | HTTP request | Description
1238
1238
  - [UltracartClient::OrderPaymentECheck](docs/OrderPaymentECheck.md)
1239
1239
  - [UltracartClient::OrderPaymentHealthBenefitCard](docs/OrderPaymentHealthBenefitCard.md)
1240
1240
  - [UltracartClient::OrderPaymentInsurance](docs/OrderPaymentInsurance.md)
1241
+ - [UltracartClient::OrderPaymentPayPal](docs/OrderPaymentPayPal.md)
1241
1242
  - [UltracartClient::OrderPaymentPurchaseOrder](docs/OrderPaymentPurchaseOrder.md)
1242
1243
  - [UltracartClient::OrderPaymentTransaction](docs/OrderPaymentTransaction.md)
1243
1244
  - [UltracartClient::OrderPaymentTransactionDetail](docs/OrderPaymentTransactionDetail.md)
@@ -1516,6 +1517,9 @@ Not every change is committed to every SDK.
1516
1517
 
1517
1518
  | Version | Date | Comments |
1518
1519
  | --: | :-: | --- |
1520
+ | 3.10.228 | 02/20/2025 | automation fix |
1521
+ | 3.10.227 | 02/20/2025 | no change, revving sdk to troubleshoot java deployment automation |
1522
+ | 3.10.226 | 02/20/2025 | no change, revving sdk to troubleshoot java deployment automation |
1519
1523
  | 3.10.225 | 02/18/2025 | small bug fixes for incorrect return types on several methods |
1520
1524
  | 3.10.224 | 02/06/2025 | added storefront_host_name to channel partner order object |
1521
1525
  | 3.10.223 | 01/09/2025 | fix for broken 4.0.39 due to incorrect query sig on getCustomers |
data/docs/OrderPayment.md CHANGED
@@ -14,6 +14,7 @@ Name | Type | Description | Notes
14
14
  **payment_method_accounting_code** | **String** | Payment method QuickBooks code | [optional]
15
15
  **payment_method_deposit_to_account** | **String** | Payment method QuickBooks deposit account | [optional]
16
16
  **payment_status** | **String** | Payment status | [optional]
17
+ **paypal** | [**OrderPaymentPayPal**](OrderPaymentPayPal.md) | | [optional]
17
18
  **purchase_order** | [**OrderPaymentPurchaseOrder**](OrderPaymentPurchaseOrder.md) | | [optional]
18
19
  **rotating_transaction_gateway_code** | **String** | Rotating transaction gateway code used to process this order | [optional]
19
20
  **surcharge** | [**Currency**](Currency.md) | | [optional]
@@ -0,0 +1,9 @@
1
+ # UltracartClient::OrderPaymentPayPal
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **customer_id** | **String** | PayPal Customer ID | [optional]
7
+ **vault_id** | **String** | PayPal Vault ID | [optional]
8
+
9
+
@@ -42,6 +42,8 @@ module UltracartClient
42
42
  # Payment status
43
43
  attr_accessor :payment_status
44
44
 
45
+ attr_accessor :paypal
46
+
45
47
  attr_accessor :purchase_order
46
48
 
47
49
  # Rotating transaction gateway code used to process this order
@@ -100,6 +102,7 @@ module UltracartClient
100
102
  :'payment_method_accounting_code' => :'payment_method_accounting_code',
101
103
  :'payment_method_deposit_to_account' => :'payment_method_deposit_to_account',
102
104
  :'payment_status' => :'payment_status',
105
+ :'paypal' => :'paypal',
103
106
  :'purchase_order' => :'purchase_order',
104
107
  :'rotating_transaction_gateway_code' => :'rotating_transaction_gateway_code',
105
108
  :'surcharge' => :'surcharge',
@@ -125,6 +128,7 @@ module UltracartClient
125
128
  :'payment_method_accounting_code' => :'String',
126
129
  :'payment_method_deposit_to_account' => :'String',
127
130
  :'payment_status' => :'String',
131
+ :'paypal' => :'OrderPaymentPayPal',
128
132
  :'purchase_order' => :'OrderPaymentPurchaseOrder',
129
133
  :'rotating_transaction_gateway_code' => :'String',
130
134
  :'surcharge' => :'Currency',
@@ -188,6 +192,10 @@ module UltracartClient
188
192
  self.payment_status = attributes[:'payment_status']
189
193
  end
190
194
 
195
+ if attributes.has_key?(:'paypal')
196
+ self.paypal = attributes[:'paypal']
197
+ end
198
+
191
199
  if attributes.has_key?(:'purchase_order')
192
200
  self.purchase_order = attributes[:'purchase_order']
193
201
  end
@@ -276,6 +284,7 @@ module UltracartClient
276
284
  payment_method_accounting_code == o.payment_method_accounting_code &&
277
285
  payment_method_deposit_to_account == o.payment_method_deposit_to_account &&
278
286
  payment_status == o.payment_status &&
287
+ paypal == o.paypal &&
279
288
  purchase_order == o.purchase_order &&
280
289
  rotating_transaction_gateway_code == o.rotating_transaction_gateway_code &&
281
290
  surcharge == o.surcharge &&
@@ -295,7 +304,7 @@ module UltracartClient
295
304
  # Calculates hash code according to all attributes.
296
305
  # @return [Fixnum] Hash code
297
306
  def hash
298
- [check, credit_card, echeck, health_benefit_card, hold_for_fraud_review, insurance, payment_dts, payment_method, payment_method_accounting_code, payment_method_deposit_to_account, payment_status, purchase_order, rotating_transaction_gateway_code, surcharge, surcharge_accounting_code, surcharge_transaction_fee, surcharge_transaction_percentage, test_order, transactions].hash
307
+ [check, credit_card, echeck, health_benefit_card, hold_for_fraud_review, insurance, payment_dts, payment_method, payment_method_accounting_code, payment_method_deposit_to_account, payment_status, paypal, purchase_order, rotating_transaction_gateway_code, surcharge, surcharge_accounting_code, surcharge_transaction_fee, surcharge_transaction_percentage, test_order, transactions].hash
299
308
  end
300
309
 
301
310
  # Builds the object from hash
@@ -0,0 +1,195 @@
1
+ =begin
2
+ #UltraCart Rest API V2
3
+
4
+ #UltraCart REST API Version 2
5
+
6
+ OpenAPI spec version: 2.0.0
7
+ Contact: support@ultracart.com
8
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
9
+ Swagger Codegen version: 2.4.15-SNAPSHOT
10
+
11
+ =end
12
+
13
+ require 'date'
14
+
15
+ module UltracartClient
16
+ class OrderPaymentPayPal
17
+ # PayPal Customer ID
18
+ attr_accessor :customer_id
19
+
20
+ # PayPal Vault ID
21
+ attr_accessor :vault_id
22
+
23
+ # Attribute mapping from ruby-style variable name to JSON key.
24
+ def self.attribute_map
25
+ {
26
+ :'customer_id' => :'customer_id',
27
+ :'vault_id' => :'vault_id'
28
+ }
29
+ end
30
+
31
+ # Attribute type mapping.
32
+ def self.swagger_types
33
+ {
34
+ :'customer_id' => :'String',
35
+ :'vault_id' => :'String'
36
+ }
37
+ end
38
+
39
+ # Initializes the object
40
+ # @param [Hash] attributes Model attributes in the form of hash
41
+ def initialize(attributes = {})
42
+ return unless attributes.is_a?(Hash)
43
+
44
+ # convert string to symbol for hash key
45
+ attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
46
+
47
+ if attributes.has_key?(:'customer_id')
48
+ self.customer_id = attributes[:'customer_id']
49
+ end
50
+
51
+ if attributes.has_key?(:'vault_id')
52
+ self.vault_id = attributes[:'vault_id']
53
+ end
54
+ end
55
+
56
+ # Show invalid properties with the reasons. Usually used together with valid?
57
+ # @return Array for valid properties with the reasons
58
+ def list_invalid_properties
59
+ invalid_properties = Array.new
60
+ invalid_properties
61
+ end
62
+
63
+ # Check to see if the all the properties in the model are valid
64
+ # @return true if the model is valid
65
+ def valid?
66
+ true
67
+ end
68
+
69
+ # Checks equality by comparing each attribute.
70
+ # @param [Object] Object to be compared
71
+ def ==(o)
72
+ return true if self.equal?(o)
73
+ self.class == o.class &&
74
+ customer_id == o.customer_id &&
75
+ vault_id == o.vault_id
76
+ end
77
+
78
+ # @see the `==` method
79
+ # @param [Object] Object to be compared
80
+ def eql?(o)
81
+ self == o
82
+ end
83
+
84
+ # Calculates hash code according to all attributes.
85
+ # @return [Fixnum] Hash code
86
+ def hash
87
+ [customer_id, vault_id].hash
88
+ end
89
+
90
+ # Builds the object from hash
91
+ # @param [Hash] attributes Model attributes in the form of hash
92
+ # @return [Object] Returns the model itself
93
+ def build_from_hash(attributes)
94
+ return nil unless attributes.is_a?(Hash)
95
+ self.class.swagger_types.each_pair do |key, type|
96
+ if type =~ /\AArray<(.*)>/i
97
+ # check to ensure the input is an array given that the attribute
98
+ # is documented as an array but the input is not
99
+ if attributes[self.class.attribute_map[key]].is_a?(Array)
100
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
101
+ end
102
+ elsif !attributes[self.class.attribute_map[key]].nil?
103
+ self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
104
+ end # or else data not found in attributes(hash), not an issue as the data can be optional
105
+ end
106
+
107
+ self
108
+ end
109
+
110
+ # Deserializes the data based on type
111
+ # @param string type Data type
112
+ # @param string value Value to be deserialized
113
+ # @return [Object] Deserialized data
114
+ def _deserialize(type, value)
115
+ case type.to_sym
116
+ when :DateTime
117
+ DateTime.parse(value)
118
+ when :Date
119
+ Date.parse(value)
120
+ when :String
121
+ value.to_s
122
+ when :Integer
123
+ value.to_i
124
+ when :Float
125
+ value.to_f
126
+ when :BOOLEAN
127
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
128
+ true
129
+ else
130
+ false
131
+ end
132
+ when :Object
133
+ # generic object (usually a Hash), return directly
134
+ value
135
+ when /\AArray<(?<inner_type>.+)>\z/
136
+ inner_type = Regexp.last_match[:inner_type]
137
+ value.map { |v| _deserialize(inner_type, v) }
138
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
139
+ k_type = Regexp.last_match[:k_type]
140
+ v_type = Regexp.last_match[:v_type]
141
+ {}.tap do |hash|
142
+ value.each do |k, v|
143
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
144
+ end
145
+ end
146
+ else # model
147
+ temp_model = UltracartClient.const_get(type).new
148
+ temp_model.build_from_hash(value)
149
+ end
150
+ end
151
+
152
+ # Returns the string representation of the object
153
+ # @return [String] String presentation of the object
154
+ def to_s
155
+ to_hash.to_s
156
+ end
157
+
158
+ # to_body is an alias to to_hash (backward compatibility)
159
+ # @return [Hash] Returns the object in the form of hash
160
+ def to_body
161
+ to_hash
162
+ end
163
+
164
+ # Returns the object in the form of hash
165
+ # @return [Hash] Returns the object in the form of hash
166
+ def to_hash
167
+ hash = {}
168
+ self.class.attribute_map.each_pair do |attr, param|
169
+ value = self.send(attr)
170
+ next if value.nil?
171
+ hash[param] = _to_hash(value)
172
+ end
173
+ hash
174
+ end
175
+
176
+ # Outputs non-array value in the form of hash
177
+ # For object, use to_hash. Otherwise, just return the value
178
+ # @param [Object] value Any valid value
179
+ # @return [Hash] Returns the value in the form of hash
180
+ def _to_hash(value)
181
+ if value.is_a?(Array)
182
+ value.compact.map { |v| _to_hash(v) }
183
+ elsif value.is_a?(Hash)
184
+ {}.tap do |hash|
185
+ value.each { |k, v| hash[k] = _to_hash(v) }
186
+ end
187
+ elsif value.respond_to? :to_hash
188
+ value.to_hash
189
+ else
190
+ value
191
+ end
192
+ end
193
+
194
+ end
195
+ end
@@ -11,5 +11,5 @@ Swagger Codegen version: 2.4.15-SNAPSHOT
11
11
  =end
12
12
 
13
13
  module UltracartClient
14
- VERSION = '3.10.225'
14
+ VERSION = '3.10.228'
15
15
  end
data/lib/ultracart_api.rb CHANGED
@@ -667,6 +667,7 @@ require 'ultracart_api/models/order_payment_credit_card_dual_vaulted_property'
667
667
  require 'ultracart_api/models/order_payment_e_check'
668
668
  require 'ultracart_api/models/order_payment_health_benefit_card'
669
669
  require 'ultracart_api/models/order_payment_insurance'
670
+ require 'ultracart_api/models/order_payment_pay_pal'
670
671
  require 'ultracart_api/models/order_payment_purchase_order'
671
672
  require 'ultracart_api/models/order_payment_transaction'
672
673
  require 'ultracart_api/models/order_payment_transaction_detail'
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ultracart_api
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.10.225
4
+ version: 3.10.228
5
5
  platform: ruby
6
6
  authors:
7
7
  - UltraCart
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2025-02-18 00:00:00.000000000 Z
11
+ date: 2025-02-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: typhoeus
@@ -886,6 +886,7 @@ files:
886
886
  - docs/OrderPaymentECheck.md
887
887
  - docs/OrderPaymentHealthBenefitCard.md
888
888
  - docs/OrderPaymentInsurance.md
889
+ - docs/OrderPaymentPayPal.md
889
890
  - docs/OrderPaymentPurchaseOrder.md
890
891
  - docs/OrderPaymentTransaction.md
891
892
  - docs/OrderPaymentTransactionDetail.md
@@ -1774,6 +1775,7 @@ files:
1774
1775
  - lib/ultracart_api/models/order_payment_e_check.rb
1775
1776
  - lib/ultracart_api/models/order_payment_health_benefit_card.rb
1776
1777
  - lib/ultracart_api/models/order_payment_insurance.rb
1778
+ - lib/ultracart_api/models/order_payment_pay_pal.rb
1777
1779
  - lib/ultracart_api/models/order_payment_purchase_order.rb
1778
1780
  - lib/ultracart_api/models/order_payment_transaction.rb
1779
1781
  - lib/ultracart_api/models/order_payment_transaction_detail.rb