ultracart_api 3.6.4 → 3.6.8

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 75947a7eeb0b2069a99895e6ad75b336ffdd3b6bdb772529681f9b8d426ac87b
4
- data.tar.gz: c25acf93d768b26f631907b80d427dcfd08dfd1cf3c4b67e16dc5b40f3e888f0
3
+ metadata.gz: 70e8d9ff7aaaa130bac8c2811cd111e80ae91d74a679105d098195497bc41055
4
+ data.tar.gz: f6dc9e8d459b524d534ce721824a3ebda619c7d79f1141627fd60c9c4e295fcd
5
5
  SHA512:
6
- metadata.gz: eb721e73723780a5d077ba5c927893b91157e80b8a27fdb601b52353f6581b1013da797e9b62917d0a9739bf65daba050bec4fdf87c07418d0f540cc7139233f
7
- data.tar.gz: 1166427bec5e43271bca12093994d7c333f0934bc98ef22ec917e3c6710f5c386b2e4fcb219b6d2896d4164b7f3e043a293ccf72e0dfcc27573b98adad380a59
6
+ metadata.gz: 7c3bc4f930eb753d77d9413a0e4cf83084d9c553b46e947099f09fb41dec3121ddefeaf197671bca2cc809e08193617a894f56144c3693cc7b037c3cee912374
7
+ data.tar.gz: 1cd287e7d2496768845a92f68f438bec9a4e2366b881a761f0cb7584274d6b98b09592c2d6ce35a7089e10478cf9bfda1aa8c192b1cad8dc2ef80e971675f587
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.6.4
10
+ - Package version: 3.6.8
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.6.4.gem
27
+ gem install ./ultracart_api-3.6.8.gem
28
28
  ```
29
- (for development, run `gem install --dev ./ultracart_api-3.6.4.gem` to install the development dependencies)
29
+ (for development, run `gem install --dev ./ultracart_api-3.6.8.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.6.4'
35
+ gem 'ultracart_api', '~> 3.6.8'
36
36
 
37
37
  ### Install from Git
38
38
 
@@ -1118,6 +1118,10 @@ Not every change is committed to every SDK.
1118
1118
 
1119
1119
  | Version | Date | Comments |
1120
1120
  | --: | :-: | --- |
1121
+ | 3.6.8 | 08/31/2021 | coupon query field to allow merchant code and description to be searched |
1122
+ | 3.6.7 | 08/27/2021 | customer profile affiliate information now contains affiliate first and last name |
1123
+ | 3.6.6 | 08/26/2021 | configuration api - more field changes for UI |
1124
+ | 3.6.5 | 08/25/2021 | configuration api - removed some internal fields from sdk |
1121
1125
  | 3.6.4 | 08/24/2021 | configuration api - new payment method named insurance |
1122
1126
  | 3.6.1 | 08/23/2021 | configuration api - enum problems, also added order.item.tracking_number to support line item tracking numbers |
1123
1127
  | 3.6.0 | 08/19/2021 | coupon api - changed tieredAmountOffItem to support mulitple items |
data/docs/CouponApi.md CHANGED
@@ -508,6 +508,7 @@ opts = {
508
508
  expiration_date_end: 'expiration_date_end_example', # String | Expiration date end
509
509
  affiliate_oid: 56, # Integer | Affiliate oid
510
510
  exclude_expired: true, # BOOLEAN | Exclude expired
511
+ merchant_code_or_description: 'merchant_code_or_description_example', # String | Merchant code or description
511
512
  _limit: 100, # Integer | The maximum number of records to return on this one API call. (Max 200)
512
513
  _offset: 0, # Integer | Pagination of the record set. Offset is a zero based index.
513
514
  _sort: '_sort_example', # String | The sort order of the coupons. See Sorting documentation for examples of using multiple values and sorting by ascending and descending.
@@ -536,6 +537,7 @@ Name | Type | Description | Notes
536
537
  **expiration_date_end** | **String**| Expiration date end | [optional]
537
538
  **affiliate_oid** | **Integer**| Affiliate oid | [optional]
538
539
  **exclude_expired** | **BOOLEAN**| Exclude expired | [optional]
540
+ **merchant_code_or_description** | **String**| Merchant code or description | [optional]
539
541
  **_limit** | **Integer**| The maximum number of records to return on this one API call. (Max 200) | [optional] [default to 100]
540
542
  **_offset** | **Integer**| Pagination of the record set. Offset is a zero based index. | [optional] [default to 0]
541
543
  **_sort** | **String**| The sort order of the coupons. See Sorting documentation for examples of using multiple values and sorting by ascending and descending. | [optional]
data/docs/CouponQuery.md CHANGED
@@ -10,6 +10,7 @@ Name | Type | Description | Notes
10
10
  **expiration_dts_begin** | **String** | Expiration date begin | [optional]
11
11
  **expiration_dts_end** | **String** | Expiration date begin | [optional]
12
12
  **merchant_code** | **String** | Merchant code is a unique character string for this coupon. | [optional]
13
+ **merchant_code_or_description** | **String** | Merchant code description used for searching | [optional]
13
14
  **start_dts_begin** | **String** | Start date begin | [optional]
14
15
  **start_dts_end** | **String** | Start date end | [optional]
15
16
 
@@ -5,5 +5,7 @@ Name | Type | Description | Notes
5
5
  ------------ | ------------- | ------------- | -------------
6
6
  **affiliate_oid** | **Integer** | Affiliate object identifier | [optional]
7
7
  **email** | **String** | email | [optional]
8
+ **first_name** | **String** | First name | [optional]
9
+ **last_name** | **String** | Last name | [optional]
8
10
 
9
11
 
@@ -18,8 +18,6 @@ Name | Type | Description | Notes
18
18
  **quote_request** | [**PaymentsConfigurationQuoteRequest**](PaymentsConfigurationQuoteRequest.md) | | [optional]
19
19
  **sezzle** | [**PaymentsConfigurationSezzle**](PaymentsConfigurationSezzle.md) | | [optional]
20
20
  **show_accounting_code** | **BOOLEAN** | Internal flag used to determine if accounting codes should be shown on the screen or not. This flag is true if the merchant has a Quickbooks integration configured. | [optional]
21
- **switch_to_sub_tab** | **String** | | [optional]
22
- **switch_to_tab** | **String** | | [optional]
23
21
  **ultracart_payments_wepay** | [**PaymentsConfigurationWePay**](PaymentsConfigurationWePay.md) | | [optional]
24
22
  **wire_transfer** | [**PaymentsConfigurationWireTransfer**](PaymentsConfigurationWireTransfer.md) | | [optional]
25
23
 
@@ -8,8 +8,8 @@ Name | Type | Description | Notes
8
8
  **accounting_code** | **String** | Optional accounting code for use with Quickbooks integrations | [optional]
9
9
  **amazon_merchant_id** | **String** | Amazon merchant ID | [optional]
10
10
  **deposit_to_account** | **String** | Optional deposit to account field for use with Quickbooks integrations | [optional]
11
+ **environment** | **String** | Environment | [optional]
11
12
  **restrictions** | [**PaymentsConfigurationRestrictions**](PaymentsConfigurationRestrictions.md) | | [optional]
12
- **sandbox** | **BOOLEAN** | True if transactions should run against the Amazon sandbox. Useful for testing not configurations | [optional]
13
13
  **secret_access_key** | **String** | Amazon secret access key | [optional]
14
14
 
15
15
 
@@ -8,7 +8,6 @@ Name | Type | Description | Notes
8
8
  **business_id** | **String** | Business ID | [optional]
9
9
  **deposit_to_account** | **String** | Optional Quickbooks Deposit to Account value | [optional]
10
10
  **environment** | **String** | Sezzle environment | [optional]
11
- **environments** | **Array<String>** | List of environments possible | [optional]
12
11
  **private_api_key** | **String** | Private API key | [optional]
13
12
  **public_api_key** | **String** | Public API key | [optional]
14
13
  **restrictions** | [**PaymentsConfigurationRestrictions**](PaymentsConfigurationRestrictions.md) | | [optional]
@@ -23,7 +23,6 @@ Name | Type | Description | Notes
23
23
  **owner_name** | **String** | Owner name | [optional]
24
24
  **owner_phone** | **String** | Owner phone | [optional]
25
25
  **postal_code** | **String** | Postal code | [optional]
26
- **remove_pay_pal_pro** | **BOOLEAN** | | [optional]
27
26
  **restrictions** | [**PaymentsConfigurationRestrictions**](PaymentsConfigurationRestrictions.md) | | [optional]
28
27
  **short_paypal_marketing_text** | **BOOLEAN** | Internal UI aid | [optional]
29
28
  **show_ultracart_payments_disabled** | **BOOLEAN** | Internal flag to aid UI | [optional]
@@ -548,6 +548,7 @@ module UltracartClient
548
548
  # @option opts [String] :expiration_date_end Expiration date end
549
549
  # @option opts [Integer] :affiliate_oid Affiliate oid
550
550
  # @option opts [BOOLEAN] :exclude_expired Exclude expired
551
+ # @option opts [String] :merchant_code_or_description Merchant code or description
551
552
  # @option opts [Integer] :_limit The maximum number of records to return on this one API call. (Max 200) (default to 100)
552
553
  # @option opts [Integer] :_offset Pagination of the record set. Offset is a zero based index. (default to 0)
553
554
  # @option opts [String] :_sort The sort order of the coupons. See Sorting documentation for examples of using multiple values and sorting by ascending and descending.
@@ -570,6 +571,7 @@ module UltracartClient
570
571
  # @option opts [String] :expiration_date_end Expiration date end
571
572
  # @option opts [Integer] :affiliate_oid Affiliate oid
572
573
  # @option opts [BOOLEAN] :exclude_expired Exclude expired
574
+ # @option opts [String] :merchant_code_or_description Merchant code or description
573
575
  # @option opts [Integer] :_limit The maximum number of records to return on this one API call. (Max 200)
574
576
  # @option opts [Integer] :_offset Pagination of the record set. Offset is a zero based index.
575
577
  # @option opts [String] :_sort The sort order of the coupons. See Sorting documentation for examples of using multiple values and sorting by ascending and descending.
@@ -593,6 +595,7 @@ module UltracartClient
593
595
  query_params[:'expiration_date_end'] = opts[:'expiration_date_end'] if !opts[:'expiration_date_end'].nil?
594
596
  query_params[:'affiliate_oid'] = opts[:'affiliate_oid'] if !opts[:'affiliate_oid'].nil?
595
597
  query_params[:'exclude_expired'] = opts[:'exclude_expired'] if !opts[:'exclude_expired'].nil?
598
+ query_params[:'merchant_code_or_description'] = opts[:'merchant_code_or_description'] if !opts[:'merchant_code_or_description'].nil?
596
599
  query_params[:'_limit'] = opts[:'_limit'] if !opts[:'_limit'].nil?
597
600
  query_params[:'_offset'] = opts[:'_offset'] if !opts[:'_offset'].nil?
598
601
  query_params[:'_sort'] = opts[:'_sort'] if !opts[:'_sort'].nil?
@@ -35,6 +35,9 @@ module UltracartClient
35
35
  # Merchant code is a unique character string for this coupon.
36
36
  attr_accessor :merchant_code
37
37
 
38
+ # Merchant code description used for searching
39
+ attr_accessor :merchant_code_or_description
40
+
38
41
  # Start date begin
39
42
  attr_accessor :start_dts_begin
40
43
 
@@ -51,6 +54,7 @@ module UltracartClient
51
54
  :'expiration_dts_begin' => :'expiration_dts_begin',
52
55
  :'expiration_dts_end' => :'expiration_dts_end',
53
56
  :'merchant_code' => :'merchant_code',
57
+ :'merchant_code_or_description' => :'merchant_code_or_description',
54
58
  :'start_dts_begin' => :'start_dts_begin',
55
59
  :'start_dts_end' => :'start_dts_end'
56
60
  }
@@ -66,6 +70,7 @@ module UltracartClient
66
70
  :'expiration_dts_begin' => :'String',
67
71
  :'expiration_dts_end' => :'String',
68
72
  :'merchant_code' => :'String',
73
+ :'merchant_code_or_description' => :'String',
69
74
  :'start_dts_begin' => :'String',
70
75
  :'start_dts_end' => :'String'
71
76
  }
@@ -107,6 +112,10 @@ module UltracartClient
107
112
  self.merchant_code = attributes[:'merchant_code']
108
113
  end
109
114
 
115
+ if attributes.has_key?(:'merchant_code_or_description')
116
+ self.merchant_code_or_description = attributes[:'merchant_code_or_description']
117
+ end
118
+
110
119
  if attributes.has_key?(:'start_dts_begin')
111
120
  self.start_dts_begin = attributes[:'start_dts_begin']
112
121
  end
@@ -141,6 +150,7 @@ module UltracartClient
141
150
  expiration_dts_begin == o.expiration_dts_begin &&
142
151
  expiration_dts_end == o.expiration_dts_end &&
143
152
  merchant_code == o.merchant_code &&
153
+ merchant_code_or_description == o.merchant_code_or_description &&
144
154
  start_dts_begin == o.start_dts_begin &&
145
155
  start_dts_end == o.start_dts_end
146
156
  end
@@ -154,7 +164,7 @@ module UltracartClient
154
164
  # Calculates hash code according to all attributes.
155
165
  # @return [Fixnum] Hash code
156
166
  def hash
157
- [affiliate_oid, coupon_type, description, exclude_expired, expiration_dts_begin, expiration_dts_end, merchant_code, start_dts_begin, start_dts_end].hash
167
+ [affiliate_oid, coupon_type, description, exclude_expired, expiration_dts_begin, expiration_dts_end, merchant_code, merchant_code_or_description, start_dts_begin, start_dts_end].hash
158
168
  end
159
169
 
160
170
  # Builds the object from hash
@@ -20,11 +20,19 @@ module UltracartClient
20
20
  # email
21
21
  attr_accessor :email
22
22
 
23
+ # First name
24
+ attr_accessor :first_name
25
+
26
+ # Last name
27
+ attr_accessor :last_name
28
+
23
29
  # Attribute mapping from ruby-style variable name to JSON key.
24
30
  def self.attribute_map
25
31
  {
26
32
  :'affiliate_oid' => :'affiliate_oid',
27
- :'email' => :'email'
33
+ :'email' => :'email',
34
+ :'first_name' => :'first_name',
35
+ :'last_name' => :'last_name'
28
36
  }
29
37
  end
30
38
 
@@ -32,7 +40,9 @@ module UltracartClient
32
40
  def self.swagger_types
33
41
  {
34
42
  :'affiliate_oid' => :'Integer',
35
- :'email' => :'String'
43
+ :'email' => :'String',
44
+ :'first_name' => :'String',
45
+ :'last_name' => :'String'
36
46
  }
37
47
  end
38
48
 
@@ -51,6 +61,14 @@ module UltracartClient
51
61
  if attributes.has_key?(:'email')
52
62
  self.email = attributes[:'email']
53
63
  end
64
+
65
+ if attributes.has_key?(:'first_name')
66
+ self.first_name = attributes[:'first_name']
67
+ end
68
+
69
+ if attributes.has_key?(:'last_name')
70
+ self.last_name = attributes[:'last_name']
71
+ end
54
72
  end
55
73
 
56
74
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -72,7 +90,9 @@ module UltracartClient
72
90
  return true if self.equal?(o)
73
91
  self.class == o.class &&
74
92
  affiliate_oid == o.affiliate_oid &&
75
- email == o.email
93
+ email == o.email &&
94
+ first_name == o.first_name &&
95
+ last_name == o.last_name
76
96
  end
77
97
 
78
98
  # @see the `==` method
@@ -84,7 +104,7 @@ module UltracartClient
84
104
  # Calculates hash code according to all attributes.
85
105
  # @return [Fixnum] Hash code
86
106
  def hash
87
- [affiliate_oid, email].hash
107
+ [affiliate_oid, email, first_name, last_name].hash
88
108
  end
89
109
 
90
110
  # Builds the object from hash
@@ -45,10 +45,6 @@ module UltracartClient
45
45
  # Internal flag used to determine if accounting codes should be shown on the screen or not. This flag is true if the merchant has a Quickbooks integration configured.
46
46
  attr_accessor :show_accounting_code
47
47
 
48
- attr_accessor :switch_to_sub_tab
49
-
50
- attr_accessor :switch_to_tab
51
-
52
48
  attr_accessor :ultracart_payments_wepay
53
49
 
54
50
  attr_accessor :wire_transfer
@@ -71,8 +67,6 @@ module UltracartClient
71
67
  :'quote_request' => :'quote_request',
72
68
  :'sezzle' => :'sezzle',
73
69
  :'show_accounting_code' => :'show_accounting_code',
74
- :'switch_to_sub_tab' => :'switchToSubTab',
75
- :'switch_to_tab' => :'switchToTab',
76
70
  :'ultracart_payments_wepay' => :'ultracart_payments_wepay',
77
71
  :'wire_transfer' => :'wire_transfer'
78
72
  }
@@ -96,8 +90,6 @@ module UltracartClient
96
90
  :'quote_request' => :'PaymentsConfigurationQuoteRequest',
97
91
  :'sezzle' => :'PaymentsConfigurationSezzle',
98
92
  :'show_accounting_code' => :'BOOLEAN',
99
- :'switch_to_sub_tab' => :'String',
100
- :'switch_to_tab' => :'String',
101
93
  :'ultracart_payments_wepay' => :'PaymentsConfigurationWePay',
102
94
  :'wire_transfer' => :'PaymentsConfigurationWireTransfer'
103
95
  }
@@ -171,14 +163,6 @@ module UltracartClient
171
163
  self.show_accounting_code = attributes[:'show_accounting_code']
172
164
  end
173
165
 
174
- if attributes.has_key?(:'switchToSubTab')
175
- self.switch_to_sub_tab = attributes[:'switchToSubTab']
176
- end
177
-
178
- if attributes.has_key?(:'switchToTab')
179
- self.switch_to_tab = attributes[:'switchToTab']
180
- end
181
-
182
166
  if attributes.has_key?(:'ultracart_payments_wepay')
183
167
  self.ultracart_payments_wepay = attributes[:'ultracart_payments_wepay']
184
168
  end
@@ -221,8 +205,6 @@ module UltracartClient
221
205
  quote_request == o.quote_request &&
222
206
  sezzle == o.sezzle &&
223
207
  show_accounting_code == o.show_accounting_code &&
224
- switch_to_sub_tab == o.switch_to_sub_tab &&
225
- switch_to_tab == o.switch_to_tab &&
226
208
  ultracart_payments_wepay == o.ultracart_payments_wepay &&
227
209
  wire_transfer == o.wire_transfer
228
210
  end
@@ -236,7 +218,7 @@ module UltracartClient
236
218
  # Calculates hash code according to all attributes.
237
219
  # @return [Fixnum] Hash code
238
220
  def hash
239
- [affirm, amazon, cash, check, cod, credit_card, echeck, insurance, loan_hero, money_order, paypal, purchase_order, quote_request, sezzle, show_accounting_code, switch_to_sub_tab, switch_to_tab, ultracart_payments_wepay, wire_transfer].hash
221
+ [affirm, amazon, cash, check, cod, credit_card, echeck, insurance, loan_hero, money_order, paypal, purchase_order, quote_request, sezzle, show_accounting_code, ultracart_payments_wepay, wire_transfer].hash
240
222
  end
241
223
 
242
224
  # Builds the object from hash
@@ -29,14 +29,36 @@ module UltracartClient
29
29
  # Optional deposit to account field for use with Quickbooks integrations
30
30
  attr_accessor :deposit_to_account
31
31
 
32
- attr_accessor :restrictions
32
+ # Environment
33
+ attr_accessor :environment
33
34
 
34
- # True if transactions should run against the Amazon sandbox. Useful for testing not configurations
35
- attr_accessor :sandbox
35
+ attr_accessor :restrictions
36
36
 
37
37
  # Amazon secret access key
38
38
  attr_accessor :secret_access_key
39
39
 
40
+ class EnumAttributeValidator
41
+ attr_reader :datatype
42
+ attr_reader :allowable_values
43
+
44
+ def initialize(datatype, allowable_values)
45
+ @allowable_values = allowable_values.map do |value|
46
+ case datatype.to_s
47
+ when /Integer/i
48
+ value.to_i
49
+ when /Float/i
50
+ value.to_f
51
+ else
52
+ value
53
+ end
54
+ end
55
+ end
56
+
57
+ def valid?(value)
58
+ !value || allowable_values.include?(value)
59
+ end
60
+ end
61
+
40
62
  # Attribute mapping from ruby-style variable name to JSON key.
41
63
  def self.attribute_map
42
64
  {
@@ -45,8 +67,8 @@ module UltracartClient
45
67
  :'accounting_code' => :'accounting_code',
46
68
  :'amazon_merchant_id' => :'amazon_merchant_id',
47
69
  :'deposit_to_account' => :'deposit_to_account',
70
+ :'environment' => :'environment',
48
71
  :'restrictions' => :'restrictions',
49
- :'sandbox' => :'sandbox',
50
72
  :'secret_access_key' => :'secret_access_key'
51
73
  }
52
74
  end
@@ -59,8 +81,8 @@ module UltracartClient
59
81
  :'accounting_code' => :'String',
60
82
  :'amazon_merchant_id' => :'String',
61
83
  :'deposit_to_account' => :'String',
84
+ :'environment' => :'String',
62
85
  :'restrictions' => :'PaymentsConfigurationRestrictions',
63
- :'sandbox' => :'BOOLEAN',
64
86
  :'secret_access_key' => :'String'
65
87
  }
66
88
  end
@@ -93,12 +115,12 @@ module UltracartClient
93
115
  self.deposit_to_account = attributes[:'deposit_to_account']
94
116
  end
95
117
 
96
- if attributes.has_key?(:'restrictions')
97
- self.restrictions = attributes[:'restrictions']
118
+ if attributes.has_key?(:'environment')
119
+ self.environment = attributes[:'environment']
98
120
  end
99
121
 
100
- if attributes.has_key?(:'sandbox')
101
- self.sandbox = attributes[:'sandbox']
122
+ if attributes.has_key?(:'restrictions')
123
+ self.restrictions = attributes[:'restrictions']
102
124
  end
103
125
 
104
126
  if attributes.has_key?(:'secret_access_key')
@@ -116,9 +138,21 @@ module UltracartClient
116
138
  # Check to see if the all the properties in the model are valid
117
139
  # @return true if the model is valid
118
140
  def valid?
141
+ environment_validator = EnumAttributeValidator.new('String', ['Live', 'Sandbox'])
142
+ return false unless environment_validator.valid?(@environment)
119
143
  true
120
144
  end
121
145
 
146
+ # Custom attribute writer method checking allowed values (enum).
147
+ # @param [Object] environment Object to be assigned
148
+ def environment=(environment)
149
+ validator = EnumAttributeValidator.new('String', ['Live', 'Sandbox'])
150
+ unless validator.valid?(environment)
151
+ fail ArgumentError, 'invalid value for "environment", must be one of #{validator.allowable_values}.'
152
+ end
153
+ @environment = environment
154
+ end
155
+
122
156
  # Checks equality by comparing each attribute.
123
157
  # @param [Object] Object to be compared
124
158
  def ==(o)
@@ -129,8 +163,8 @@ module UltracartClient
129
163
  accounting_code == o.accounting_code &&
130
164
  amazon_merchant_id == o.amazon_merchant_id &&
131
165
  deposit_to_account == o.deposit_to_account &&
166
+ environment == o.environment &&
132
167
  restrictions == o.restrictions &&
133
- sandbox == o.sandbox &&
134
168
  secret_access_key == o.secret_access_key
135
169
  end
136
170
 
@@ -143,7 +177,7 @@ module UltracartClient
143
177
  # Calculates hash code according to all attributes.
144
178
  # @return [Fixnum] Hash code
145
179
  def hash
146
- [accept_amazon, access_key_id, accounting_code, amazon_merchant_id, deposit_to_account, restrictions, sandbox, secret_access_key].hash
180
+ [accept_amazon, access_key_id, accounting_code, amazon_merchant_id, deposit_to_account, environment, restrictions, secret_access_key].hash
147
181
  end
148
182
 
149
183
  # Builds the object from hash
@@ -29,9 +29,6 @@ module UltracartClient
29
29
  # Sezzle environment
30
30
  attr_accessor :environment
31
31
 
32
- # List of environments possible
33
- attr_accessor :environments
34
-
35
32
  # Private API key
36
33
  attr_accessor :private_api_key
37
34
 
@@ -70,7 +67,6 @@ module UltracartClient
70
67
  :'business_id' => :'business_id',
71
68
  :'deposit_to_account' => :'deposit_to_account',
72
69
  :'environment' => :'environment',
73
- :'environments' => :'environments',
74
70
  :'private_api_key' => :'private_api_key',
75
71
  :'public_api_key' => :'public_api_key',
76
72
  :'restrictions' => :'restrictions'
@@ -85,7 +81,6 @@ module UltracartClient
85
81
  :'business_id' => :'String',
86
82
  :'deposit_to_account' => :'String',
87
83
  :'environment' => :'String',
88
- :'environments' => :'Array<String>',
89
84
  :'private_api_key' => :'String',
90
85
  :'public_api_key' => :'String',
91
86
  :'restrictions' => :'PaymentsConfigurationRestrictions'
@@ -120,12 +115,6 @@ module UltracartClient
120
115
  self.environment = attributes[:'environment']
121
116
  end
122
117
 
123
- if attributes.has_key?(:'environments')
124
- if (value = attributes[:'environments']).is_a?(Array)
125
- self.environments = value
126
- end
127
- end
128
-
129
118
  if attributes.has_key?(:'private_api_key')
130
119
  self.private_api_key = attributes[:'private_api_key']
131
120
  end
@@ -174,7 +163,6 @@ module UltracartClient
174
163
  business_id == o.business_id &&
175
164
  deposit_to_account == o.deposit_to_account &&
176
165
  environment == o.environment &&
177
- environments == o.environments &&
178
166
  private_api_key == o.private_api_key &&
179
167
  public_api_key == o.public_api_key &&
180
168
  restrictions == o.restrictions
@@ -189,7 +177,7 @@ module UltracartClient
189
177
  # Calculates hash code according to all attributes.
190
178
  # @return [Fixnum] Hash code
191
179
  def hash
192
- [accept_sezzle, accounting_code, business_id, deposit_to_account, environment, environments, private_api_key, public_api_key, restrictions].hash
180
+ [accept_sezzle, accounting_code, business_id, deposit_to_account, environment, private_api_key, public_api_key, restrictions].hash
193
181
  end
194
182
 
195
183
  # Builds the object from hash
@@ -74,8 +74,6 @@ module UltracartClient
74
74
  # Postal code
75
75
  attr_accessor :postal_code
76
76
 
77
- attr_accessor :remove_pay_pal_pro
78
-
79
77
  attr_accessor :restrictions
80
78
 
81
79
  # Internal UI aid
@@ -122,7 +120,6 @@ module UltracartClient
122
120
  :'owner_name' => :'owner_name',
123
121
  :'owner_phone' => :'owner_phone',
124
122
  :'postal_code' => :'postal_code',
125
- :'remove_pay_pal_pro' => :'removePayPalPro',
126
123
  :'restrictions' => :'restrictions',
127
124
  :'short_paypal_marketing_text' => :'short_paypal_marketing_text',
128
125
  :'show_ultracart_payments_disabled' => :'show_ultracart_payments_disabled',
@@ -157,7 +154,6 @@ module UltracartClient
157
154
  :'owner_name' => :'String',
158
155
  :'owner_phone' => :'String',
159
156
  :'postal_code' => :'String',
160
- :'remove_pay_pal_pro' => :'BOOLEAN',
161
157
  :'restrictions' => :'PaymentsConfigurationRestrictions',
162
158
  :'short_paypal_marketing_text' => :'BOOLEAN',
163
159
  :'show_ultracart_payments_disabled' => :'BOOLEAN',
@@ -257,10 +253,6 @@ module UltracartClient
257
253
  self.postal_code = attributes[:'postal_code']
258
254
  end
259
255
 
260
- if attributes.has_key?(:'removePayPalPro')
261
- self.remove_pay_pal_pro = attributes[:'removePayPalPro']
262
- end
263
-
264
256
  if attributes.has_key?(:'restrictions')
265
257
  self.restrictions = attributes[:'restrictions']
266
258
  end
@@ -332,7 +324,6 @@ module UltracartClient
332
324
  owner_name == o.owner_name &&
333
325
  owner_phone == o.owner_phone &&
334
326
  postal_code == o.postal_code &&
335
- remove_pay_pal_pro == o.remove_pay_pal_pro &&
336
327
  restrictions == o.restrictions &&
337
328
  short_paypal_marketing_text == o.short_paypal_marketing_text &&
338
329
  show_ultracart_payments_disabled == o.show_ultracart_payments_disabled &&
@@ -352,7 +343,7 @@ module UltracartClient
352
343
  # Calculates hash code according to all attributes.
353
344
  # @return [Fixnum] Hash code
354
345
  def hash
355
- [accept_wepay, account_update_uri, address1, address2, canada_accept_debit_cards, city, company, company_description, console_hostname, country, credit_card_rate, currency, expected_revenue, hide_credit_card_non_ultracart_payments, hide_surcharge_amount, industry, owner_email, owner_name, owner_phone, postal_code, remove_pay_pal_pro, restrictions, short_paypal_marketing_text, show_ultracart_payments_disabled, show_ultracart_payments_intro, show_ultracart_payments_verification, show_ultracart_payments_verified, state, website_url].hash
346
+ [accept_wepay, account_update_uri, address1, address2, canada_accept_debit_cards, city, company, company_description, console_hostname, country, credit_card_rate, currency, expected_revenue, hide_credit_card_non_ultracart_payments, hide_surcharge_amount, industry, owner_email, owner_name, owner_phone, postal_code, restrictions, short_paypal_marketing_text, show_ultracart_payments_disabled, show_ultracart_payments_intro, show_ultracart_payments_verification, show_ultracart_payments_verified, state, website_url].hash
356
347
  end
357
348
 
358
349
  # Builds the object from hash
@@ -11,5 +11,5 @@ Swagger Codegen version: 2.4.15-SNAPSHOT
11
11
  =end
12
12
 
13
13
  module UltracartClient
14
- VERSION = '3.6.4'
14
+ VERSION = '3.6.8'
15
15
  end
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.6.4
4
+ version: 3.6.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - UltraCart
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-08-24 00:00:00.000000000 Z
11
+ date: 2021-08-31 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: typhoeus