plenty_client 0.0.7 → 0.0.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
  SHA1:
3
- metadata.gz: ea9423f7820574f84a5db81a76266019cfab31ee
4
- data.tar.gz: 4b7ff9a57da2b049c64a005c89140a141046e441
3
+ metadata.gz: 1463527b7e80fe6476ed37306c75a42831021240
4
+ data.tar.gz: f43d9edc8a7e2599adffb1dfd538d3d169ef94ca
5
5
  SHA512:
6
- metadata.gz: 0751e8c157b9aac8dadccd5cf0253d5bb2c54680ed6ed02e5ab2ecbd1e4ab8a171103ff567559cd9f4dad7e6ab975b5a3f2b278fec98006438ccfc75b4c204cc
7
- data.tar.gz: 389ad689f6c626fc4fdbe2d4e6b35d7e895950528f2d9a4ebba0d5ec4083dba56ae81ca0b551300cf5bf195be4a8bf0ec2bc5ef255876bfb5718994f676cc5f9
6
+ metadata.gz: 8f06015594cd05a9ea1b604b69ac14b66e827b3a45762862c6f6f67b1ddec4fc952a16cbe83477594b8e1bab5d155a85070b7b5127ee7e96788e729f0ad6df69
7
+ data.tar.gz: b1f3987804dcdf652ae0edb5c6eea56d7d96106a46f144cca4f309c75be15c5388b16b7de9bf5f7184a7cab986ad6a0d632be0771a782b7208ba0a6a9b71f952
@@ -1,362 +1,364 @@
1
1
  module PlentyClient
2
- AVAILABLE_LANGS = %w(de en bg fr it es tr nl pl pt nn ro da se cz ru sk cn vn).freeze
2
+ class Constants
3
+ AVAILABLE_LANGS = %w(de en bg fr it es tr nl pl pt nn ro da se cz ru sk cn vn).freeze
3
4
 
4
- PAYMENT_STATUS_IDS = [
5
- 1, # Awaiting approval
6
- 2, # Approved
7
- 3, # Captured
8
- 4, # Partially captured
9
- 5, # Cancelled
10
- 6, # Refused
11
- 7, # Awaiting renewal
12
- 8, # Expired
13
- 9, # Refunded
14
- 10, # Partially refunded
15
- ].freeze
5
+ PAYMENT_STATUS_IDS = [
6
+ 1, # Awaiting approval
7
+ 2, # Approved
8
+ 3, # Captured
9
+ 4, # Partially captured
10
+ 5, # Cancelled
11
+ 6, # Refused
12
+ 7, # Awaiting renewal
13
+ 8, # Expired
14
+ 9, # Refunded
15
+ 10, # Partially refunded
16
+ ].freeze
16
17
 
17
- AVAILABLE_CURRENCYS = [
18
- 'AED', # United Arab Emirates dirham
19
- 'AUD', # Australian dollar
20
- 'BGN', # Bulgarian lev
21
- 'BRL', # Brazilian real
22
- 'CAD', # Canadian dollar
23
- 'CHF', # Swiss franc
24
- 'CNY', # Chinese Renminbi
25
- 'CZK', # Czech koruna
26
- 'DKK', # Danish krone
27
- 'EUR', # Euro
28
- 'GBP', # Pound sterling
29
- 'HKD', # Hong Kong dollar
30
- 'HUF', # Hungarian forint
31
- 'IDR', # Indonesian rupiah
32
- 'INR', # Indian rupee
33
- 'JPY', # Japanese yen
34
- 'MXN', # Mexican peso
35
- 'MYR', # Malaysian ringgit
36
- 'NOK', # Norwegian krone
37
- 'PHP', # Philippine peso
38
- 'PLN', # Polish zloty
39
- 'RON', # Romanian leu
40
- 'RUB', # Russian ruble
41
- 'SEK', # Swedish krona
42
- 'THB', # Thai baht
43
- 'TRY', # Turkish lira
44
- 'USD', # United States dollar
45
- 'VND', # Vietnamese dong
46
- 'ZAR', # South African rand
47
- ].freeze
18
+ AVAILABLE_CURRENCYS = [
19
+ 'AED', # United Arab Emirates dirham
20
+ 'AUD', # Australian dollar
21
+ 'BGN', # Bulgarian lev
22
+ 'BRL', # Brazilian real
23
+ 'CAD', # Canadian dollar
24
+ 'CHF', # Swiss franc
25
+ 'CNY', # Chinese Renminbi
26
+ 'CZK', # Czech koruna
27
+ 'DKK', # Danish krone
28
+ 'EUR', # Euro
29
+ 'GBP', # Pound sterling
30
+ 'HKD', # Hong Kong dollar
31
+ 'HUF', # Hungarian forint
32
+ 'IDR', # Indonesian rupiah
33
+ 'INR', # Indian rupee
34
+ 'JPY', # Japanese yen
35
+ 'MXN', # Mexican peso
36
+ 'MYR', # Malaysian ringgit
37
+ 'NOK', # Norwegian krone
38
+ 'PHP', # Philippine peso
39
+ 'PLN', # Polish zloty
40
+ 'RON', # Romanian leu
41
+ 'RUB', # Russian ruble
42
+ 'SEK', # Swedish krona
43
+ 'THB', # Thai baht
44
+ 'TRY', # Turkish lira
45
+ 'USD', # United States dollar
46
+ 'VND', # Vietnamese dong
47
+ 'ZAR', # South African rand
48
+ ].freeze
48
49
 
49
- AVAILABLE_UNITS = {
50
- 'C62' => 1, # Piece
51
- 'KGM' => 2, # Kilogram
52
- 'GRM' => 3, # Gram
53
- 'MGM' => 4, # Milligram
54
- 'LTR' => 5, # Litre
55
- 'DPC' => 6, # 12 pieces/dozen
56
- 'OP' => 7, # Two pack
57
- 'BL' => 8, # Bale
58
- 'DI' => 9, # Dispenser
59
- 'BG' => 10, # Bag
60
- 'ST' => 11, # Sheet
61
- 'D64' => 12, # Block
62
- 'PD' => 13, # Block
63
- 'QR' => 14, # Quire
64
- 'BX' => 15, # Box
65
- 'CL' => 16, # Coil
66
- 'CH' => 17, # Container
67
- 'TN' => 18, # Tin
68
- 'CA' => 19, # Can
69
- 'DZN' => 20, # Dozen
70
- 'BJ' => 21, # Bucket
71
- 'CS' => 22, # Case
72
- 'Z3' => 23, # Cask
73
- 'BO' => 24, # Bottle
74
- 'OZA' => 25, # Fluid ounce
75
- 'JR' => 26, # Jar
76
- 'CG' => 27, # Cardboard box
77
- 'CT' => 28, # Carton
78
- 'KT' => 29, # Kit
79
- 'AA' => 30, # Ball
80
- 'MTR' => 31, # Metre
81
- 'MLT' => 32, # Millilitre
82
- 'MMT' => 33, # Millimetre
83
- 'PR' => 34, # Pair
84
- 'PA' => 35, # Packet
85
- 'PK' => 36, # Bundle
86
- 'D97' => 37, # Pallet/unit load
87
- 'MTK' => 38, # Square metre
88
- 'CMK' => 39, # Square centimetre
89
- 'MMK' => 40, # Square millimetre
90
- 'SCM' => 41, # Square centimetre (non-standard)
91
- 'SMM' => 42, # Square millimetre (non-standard)
92
- 'RO' => 43, # Role
93
- 'SA' => 44, # Sack
94
- 'SET' => 45, # Set
95
- 'RL' => 46, # Reel
96
- 'EA' => 47, # Each
97
- 'TU' => 48, # Tube
98
- 'OZ' => 49, # Ounce
99
- 'WE' => 50, # Wet ton
100
- 'CMT' => 51, # Centimetre
101
- 'INH' => 52 # Inch
102
- }.freeze
50
+ AVAILABLE_UNITS = {
51
+ 'C62' => 1, # Piece
52
+ 'KGM' => 2, # Kilogram
53
+ 'GRM' => 3, # Gram
54
+ 'MGM' => 4, # Milligram
55
+ 'LTR' => 5, # Litre
56
+ 'DPC' => 6, # 12 pieces/dozen
57
+ 'OP' => 7, # Two pack
58
+ 'BL' => 8, # Bale
59
+ 'DI' => 9, # Dispenser
60
+ 'BG' => 10, # Bag
61
+ 'ST' => 11, # Sheet
62
+ 'D64' => 12, # Block
63
+ 'PD' => 13, # Block
64
+ 'QR' => 14, # Quire
65
+ 'BX' => 15, # Box
66
+ 'CL' => 16, # Coil
67
+ 'CH' => 17, # Container
68
+ 'TN' => 18, # Tin
69
+ 'CA' => 19, # Can
70
+ 'DZN' => 20, # Dozen
71
+ 'BJ' => 21, # Bucket
72
+ 'CS' => 22, # Case
73
+ 'Z3' => 23, # Cask
74
+ 'BO' => 24, # Bottle
75
+ 'OZA' => 25, # Fluid ounce
76
+ 'JR' => 26, # Jar
77
+ 'CG' => 27, # Cardboard box
78
+ 'CT' => 28, # Carton
79
+ 'KT' => 29, # Kit
80
+ 'AA' => 30, # Ball
81
+ 'MTR' => 31, # Metre
82
+ 'MLT' => 32, # Millilitre
83
+ 'MMT' => 33, # Millimetre
84
+ 'PR' => 34, # Pair
85
+ 'PA' => 35, # Packet
86
+ 'PK' => 36, # Bundle
87
+ 'D97' => 37, # Pallet/unit load
88
+ 'MTK' => 38, # Square metre
89
+ 'CMK' => 39, # Square centimetre
90
+ 'MMK' => 40, # Square millimetre
91
+ 'SCM' => 41, # Square centimetre (non-standard)
92
+ 'SMM' => 42, # Square millimetre (non-standard)
93
+ 'RO' => 43, # Role
94
+ 'SA' => 44, # Sack
95
+ 'SET' => 45, # Set
96
+ 'RL' => 46, # Reel
97
+ 'EA' => 47, # Each
98
+ 'TU' => 48, # Tube
99
+ 'OZ' => 49, # Ounce
100
+ 'WE' => 50, # Wet ton
101
+ 'CMT' => 51, # Centimetre
102
+ 'INH' => 52 # Inch
103
+ }.freeze
103
104
 
104
- AVAILABLE_COUNTRIES = {
105
- '' => 0, # Unknown
106
- 'DE' => 1, # Germany
107
- 'AT' => 2, # Austria
108
- 'BE' => 3, # Belgium
109
- 'CH' => 4, # Switzerland
110
- 'CY' => 5, # Cyprus
111
- 'CZ' => 6, # Czech Republic
112
- 'DK' => 7, # Denmark
113
- 'ES' => 8, # Spain
114
- 'EE' => 9, # Estonia
115
- 'FR' => 10, # France
116
- 'FI' => 11, # Finland
117
- 'GB' => 12, # United Kingdom
118
- 'GR' => 13, # Greece
119
- 'HU' => 14, # Hungary
120
- 'IT' => 15, # Italy
121
- 'IE' => 16, # Ireland
122
- 'LU' => 17, # Luxembourg
123
- 'LV' => 18, # Latvia
124
- 'MT' => 19, # Malta
125
- 'NO' => 20, # Norway
126
- 'NL' => 21, # Netherlands
127
- 'PT' => 22, # Portugal
128
- 'PL' => 23, # Poland
129
- 'SE' => 24, # Sweden
130
- 'SG' => 25, # Singapore
131
- 'SK' => 26, # Slovakia
132
- 'SI' => 27, # Slovenia
133
- 'US' => 28, # USA
134
- 'AU' => 29, # Australia
135
- 'CA' => 30, # Canada
136
- 'CN' => 31, # China
137
- 'JP' => 32, # Japan
138
- 'LT' => 33, # Lithuania
139
- 'LI' => 34, # Liechtenstein
140
- 'MC' => 35, # Monaco
141
- 'MX' => 36, # Mexico
142
- 'IC' => 37, # Canary Islands
143
- 'IN' => 38, # India
144
- 'BR' => 39, # Brazil
145
- 'RU' => 40, # Russia
146
- 'RO' => 41, # Romania
147
- 'EA' => 42, # Ceuta
148
- # 'EA' => 43, # Melilla
149
- 'BG' => 44, # Bulgaria
150
- 'XZ' => 45, # Kosovo
151
- 'KG' => 46, # Kyrgyzstan
152
- 'KZ' => 47, # Kazakhstan
153
- 'BY' => 48, # Belarus
154
- 'UZ' => 49, # Uzbekistan
155
- 'MA' => 50, # Morocco
156
- 'AM' => 51, # Armenia
157
- 'AL' => 52, # Albania
158
- 'EG' => 53, # Egypt
159
- 'HR' => 54, # Croatia
160
- 'MV' => 55, # Maldives
161
- 'MY' => 56, # Malaysia
162
- 'HK' => 57, # Hong Kong
163
- 'YE' => 58, # Yemen
164
- 'IL' => 59, # Israel
165
- 'TW' => 60, # Taiwan
166
- 'GP' => 61, # Guadeloupe
167
- 'TH' => 62, # Thailand
168
- 'TR' => 63, # Turkey
169
- # 'GR' => 64, # Greek Islands
170
- # 'ES' => 65, # Balearic Islands
171
- 'NZ' => 66, # New Zealand
172
- 'AF' => 67, # Afghanistan
173
- 'AX' => 68, # Aland Islands
174
- 'DZ' => 69, # Algeria
175
- 'AS' => 70, # American Samoa
176
- 'AD' => 71, # Andorra
177
- 'AO' => 72, # Angola
178
- 'AI' => 73, # Anguilla
179
- 'AQ' => 74, # Antarctica
180
- 'AG' => 75, # Antigua and Barbuda
181
- 'AR' => 76, # Argentina
182
- 'AW' => 77, # Aruba
183
- 'AZ' => 78, # Azerbaijan
184
- 'BS' => 79, # The Bahamas
185
- 'BH' => 80, # Bahrain
186
- 'BD' => 81, # Bangladesh
187
- 'BB' => 82, # Barbados
188
- 'BZ' => 83, # Belize
189
- 'BJ' => 84, # Benin
190
- 'BM' => 85, # Bermuda
191
- 'BT' => 86, # Bhutan
192
- 'BO' => 87, # Bolivia
193
- 'BA' => 88, # Bosnia and Herzegovina
194
- 'BW' => 89, # Botswana
195
- 'BV' => 90, # Bouvet Island
196
- 'IO' => 91, # British Indian Ocean Territory
197
- 'BN' => 92, # Brunei Darussalam
198
- 'BF' => 93, # Burkina Faso
199
- 'BI' => 94, # Burundi
200
- 'KH' => 95, # Cambodia
201
- 'CM' => 96, # Cameroon
202
- 'CV' => 97, # Cape Verde
203
- 'KY' => 98, # Cayman Islands
204
- 'CF' => 99, # Central African Republic
205
- 'TD' => 100, # Chad
206
- 'CL' => 101, # Chile
207
- 'CX' => 102, # Christmas Island
208
- 'CC' => 103, # Cocos Islands/Keeling Islands
209
- 'CO' => 104, # Columbia
210
- 'KM' => 105, # Comoros
211
- 'CG' => 106, # Congo
212
- 'CD' => 107, # Democratic Republic of the Congo
213
- 'CK' => 108, # Cook Islands
214
- 'CR' => 109, # Costa Rica
215
- 'CI' => 110, # Ivory coast
216
- 'CU' => 112, # Cuba
217
- 'DJ' => 113, # Djibouti
218
- 'DM' => 114, # Dominica
219
- 'DO' => 115, # Dominican Republic
220
- 'EC' => 116, # Ecuador
221
- 'SV' => 117, # El Salvador
222
- 'GQ' => 118, # Equatorial Guinea
223
- 'ER' => 119, # Eritrea
224
- 'ET' => 120, # Ethiopia
225
- 'FK' => 121, # Falkland Islands
226
- 'FO' => 122, # Faroe Islands
227
- 'FJ' => 123, # Fiji
228
- 'GF' => 124, # French Guiana
229
- 'PF' => 125, # French Polynesia
230
- 'TF' => 126, # French Southern and Antarctic Lands
231
- 'GA' => 127, # Gabon
232
- 'GM' => 128, # Gambia
233
- 'GE' => 129, # Georgia
234
- 'GH' => 130, # Ghana
235
- 'GI' => 131, # Gibraltar
236
- 'GL' => 132, # Greenland
237
- 'GD' => 133, # Grenada
238
- 'GU' => 134, # Guam
239
- 'GT' => 135, # Guatemala
240
- 'GG' => 136, # Guernsey
241
- 'GN' => 137, # Guinea
242
- 'GW' => 138, # Guinea-Bissau
243
- 'GY' => 139, # Guyana
244
- 'HT' => 140, # Haiti
245
- 'HM' => 141, # Heard Island and McDonald Islands
246
- 'VA' => 142, # Vatican City
247
- 'HN' => 143, # Honduras
248
- 'IS' => 144, # Iceland
249
- 'ID' => 145, # Indonesia
250
- 'IR' => 146, # Iran
251
- 'IQ' => 147, # Iraq
252
- 'IM' => 148, # Isle of Man
253
- 'JM' => 149, # Jamaica
254
- 'JE' => 150, # Jersey
255
- 'JO' => 151, # Jordan
256
- 'KE' => 152, # Kenya
257
- 'KI' => 153, # Kiribati
258
- 'KP' => 154, # Democratic People's Republic of Korea
259
- 'KR' => 155, # Republic of Korea
260
- 'KW' => 156, # Kuwait
261
- 'LA' => 158, # Laos
262
- 'LB' => 159, # Lebanon
263
- 'LS' => 160, # Lesotho
264
- 'LR' => 161, # Liberia
265
- 'LY' => 162, # Libya
266
- 'MO' => 163, # Macao
267
- 'MK' => 164, # Macedonia
268
- 'MG' => 165, # Madagascar
269
- 'MW' => 166, # Malawi
270
- 'ML' => 168, # Mali
271
- 'MH' => 169, # Marshall Islands
272
- 'MQ' => 170, # Martinique
273
- 'MR' => 171, # Mauritania
274
- 'MU' => 172, # Mauritius
275
- 'YT' => 173, # Mayotte
276
- 'FM' => 174, # Micronesia
277
- 'MD' => 175, # Moldova
278
- 'MN' => 176, # Mongolia
279
- 'ME' => 177, # Montenegro
280
- 'MS' => 178, # Montserrat
281
- 'MZ' => 179, # Mozambique
282
- 'MM' => 180, # Myanmar
283
- 'NA' => 181, # Namibia
284
- 'NR' => 182, # Nauru
285
- 'NP' => 183, # Nepal
286
- 'AN' => 184, # Netherlands Antilles
287
- 'NC' => 185, # New Caledonia
288
- 'NI' => 186, # Nicaragua
289
- 'NE' => 187, # Niger
290
- 'NG' => 188, # Nigeria
291
- 'NU' => 189, # Niue
292
- 'NF' => 190, # Norfolk Island
293
- 'MP' => 191, # Northern Mariana Islands
294
- 'OM' => 192, # Oman
295
- 'PK' => 193, # Pakistan
296
- 'PW' => 194, # Palau
297
- 'PS' => 195, # Palestinian territories
298
- 'PA' => 196, # Panama
299
- 'PG' => 197, # Papua New Guinea
300
- 'PY' => 198, # Paraguay
301
- 'PE' => 199, # Peru
302
- 'PH' => 200, # Philippines
303
- 'PN' => 201, # Pitcairn Islands
304
- 'PR' => 202, # Puerto Rico
305
- 'QA' => 203, # Qatar
306
- 'RE' => 204, # Reunion
307
- 'RW' => 205, # Rwanda
308
- 'SH' => 206, # Saint Helena
309
- 'KN' => 207, # Saint Kitts and Nevis
310
- 'LC' => 208, # Saint Lucia
311
- 'PM' => 209, # Saint Pierre and Miquelon
312
- 'VC' => 210, # Saint Vincent and the Grenadines
313
- 'WS' => 211, # Samoa
314
- 'SM' => 212, # San Marino
315
- 'ST' => 213, # Sao Tome and Principe
316
- 'SA' => 214, # Saudi Arabia
317
- 'SN' => 215, # Senegal
318
- 'RS' => 216, # Serbia
319
- 'SC' => 217, # Seychelles
320
- 'SL' => 218, # Sierra Leone
321
- 'SB' => 219, # Solomon Islands
322
- 'SO' => 220, # Somalia
323
- 'ZA' => 221, # South Africa
324
- 'GS' => 222, # South Georgia and the South Sandwich Islands
325
- 'LK' => 223, # Sri Lanka
326
- 'SD' => 224, # Sudan
327
- 'SR' => 225, # Suriname
328
- 'SJ' => 226, # Spitsbergen and Jan Mayen
329
- 'SZ' => 227, # Swaziland
330
- 'SY' => 228, # Syria
331
- 'TJ' => 229, # Tajikistan
332
- 'TZ' => 230, # Tanzania
333
- 'TL' => 231, # Timor-Leste
334
- 'TG' => 232, # Togo
335
- 'TK' => 233, # Tokelau
336
- 'TO' => 234, # Tonga
337
- 'TT' => 235, # Trinidad and Tobago
338
- 'TN' => 236, # Tunisia
339
- 'TM' => 237, # Turkmenistan
340
- 'TC' => 238, # Turks and Caicos Islands
341
- 'TV' => 239, # Tuvalu
342
- 'UG' => 240, # Uganda
343
- 'UA' => 241, # Ukraine
344
- 'UM' => 242, # United States Minor Outlying Islands
345
- 'UY' => 243, # Uruguay
346
- 'VU' => 244, # Vanuatu
347
- 'VE' => 245, # Venezuela
348
- 'VN' => 246, # Vietnam
349
- 'VG' => 247, # British Virgin Islands
350
- 'VI' => 248, # United States Virgin Islands
351
- 'WF' => 249, # Wallis and Futuna
352
- 'EH' => 250, # Western Sahara
353
- 'ZM' => 252, # Zambia
354
- 'ZW' => 253, # Zimbabwe
355
- 'AE' => 254, # United Arab Emirates
356
- # 'DE' => 255, # Helgoland
357
- # 'DE' => 256, # Buesingen
358
- # 'CUW' => 258, # Curacao
359
- 'SXM' => 259, # Sint Maarten
360
- 'BES' => 260, # BES Islands
361
- }.freeze
105
+ AVAILABLE_COUNTRIES = {
106
+ '' => 0, # Unknown
107
+ 'DE' => 1, # Germany
108
+ 'AT' => 2, # Austria
109
+ 'BE' => 3, # Belgium
110
+ 'CH' => 4, # Switzerland
111
+ 'CY' => 5, # Cyprus
112
+ 'CZ' => 6, # Czech Republic
113
+ 'DK' => 7, # Denmark
114
+ 'ES' => 8, # Spain
115
+ 'EE' => 9, # Estonia
116
+ 'FR' => 10, # France
117
+ 'FI' => 11, # Finland
118
+ 'GB' => 12, # United Kingdom
119
+ 'GR' => 13, # Greece
120
+ 'HU' => 14, # Hungary
121
+ 'IT' => 15, # Italy
122
+ 'IE' => 16, # Ireland
123
+ 'LU' => 17, # Luxembourg
124
+ 'LV' => 18, # Latvia
125
+ 'MT' => 19, # Malta
126
+ 'NO' => 20, # Norway
127
+ 'NL' => 21, # Netherlands
128
+ 'PT' => 22, # Portugal
129
+ 'PL' => 23, # Poland
130
+ 'SE' => 24, # Sweden
131
+ 'SG' => 25, # Singapore
132
+ 'SK' => 26, # Slovakia
133
+ 'SI' => 27, # Slovenia
134
+ 'US' => 28, # USA
135
+ 'AU' => 29, # Australia
136
+ 'CA' => 30, # Canada
137
+ 'CN' => 31, # China
138
+ 'JP' => 32, # Japan
139
+ 'LT' => 33, # Lithuania
140
+ 'LI' => 34, # Liechtenstein
141
+ 'MC' => 35, # Monaco
142
+ 'MX' => 36, # Mexico
143
+ 'IC' => 37, # Canary Islands
144
+ 'IN' => 38, # India
145
+ 'BR' => 39, # Brazil
146
+ 'RU' => 40, # Russia
147
+ 'RO' => 41, # Romania
148
+ 'EA' => 42, # Ceuta
149
+ # 'EA' => 43, # Melilla
150
+ 'BG' => 44, # Bulgaria
151
+ 'XZ' => 45, # Kosovo
152
+ 'KG' => 46, # Kyrgyzstan
153
+ 'KZ' => 47, # Kazakhstan
154
+ 'BY' => 48, # Belarus
155
+ 'UZ' => 49, # Uzbekistan
156
+ 'MA' => 50, # Morocco
157
+ 'AM' => 51, # Armenia
158
+ 'AL' => 52, # Albania
159
+ 'EG' => 53, # Egypt
160
+ 'HR' => 54, # Croatia
161
+ 'MV' => 55, # Maldives
162
+ 'MY' => 56, # Malaysia
163
+ 'HK' => 57, # Hong Kong
164
+ 'YE' => 58, # Yemen
165
+ 'IL' => 59, # Israel
166
+ 'TW' => 60, # Taiwan
167
+ 'GP' => 61, # Guadeloupe
168
+ 'TH' => 62, # Thailand
169
+ 'TR' => 63, # Turkey
170
+ # 'GR' => 64, # Greek Islands
171
+ # 'ES' => 65, # Balearic Islands
172
+ 'NZ' => 66, # New Zealand
173
+ 'AF' => 67, # Afghanistan
174
+ 'AX' => 68, # Aland Islands
175
+ 'DZ' => 69, # Algeria
176
+ 'AS' => 70, # American Samoa
177
+ 'AD' => 71, # Andorra
178
+ 'AO' => 72, # Angola
179
+ 'AI' => 73, # Anguilla
180
+ 'AQ' => 74, # Antarctica
181
+ 'AG' => 75, # Antigua and Barbuda
182
+ 'AR' => 76, # Argentina
183
+ 'AW' => 77, # Aruba
184
+ 'AZ' => 78, # Azerbaijan
185
+ 'BS' => 79, # The Bahamas
186
+ 'BH' => 80, # Bahrain
187
+ 'BD' => 81, # Bangladesh
188
+ 'BB' => 82, # Barbados
189
+ 'BZ' => 83, # Belize
190
+ 'BJ' => 84, # Benin
191
+ 'BM' => 85, # Bermuda
192
+ 'BT' => 86, # Bhutan
193
+ 'BO' => 87, # Bolivia
194
+ 'BA' => 88, # Bosnia and Herzegovina
195
+ 'BW' => 89, # Botswana
196
+ 'BV' => 90, # Bouvet Island
197
+ 'IO' => 91, # British Indian Ocean Territory
198
+ 'BN' => 92, # Brunei Darussalam
199
+ 'BF' => 93, # Burkina Faso
200
+ 'BI' => 94, # Burundi
201
+ 'KH' => 95, # Cambodia
202
+ 'CM' => 96, # Cameroon
203
+ 'CV' => 97, # Cape Verde
204
+ 'KY' => 98, # Cayman Islands
205
+ 'CF' => 99, # Central African Republic
206
+ 'TD' => 100, # Chad
207
+ 'CL' => 101, # Chile
208
+ 'CX' => 102, # Christmas Island
209
+ 'CC' => 103, # Cocos Islands/Keeling Islands
210
+ 'CO' => 104, # Columbia
211
+ 'KM' => 105, # Comoros
212
+ 'CG' => 106, # Congo
213
+ 'CD' => 107, # Democratic Republic of the Congo
214
+ 'CK' => 108, # Cook Islands
215
+ 'CR' => 109, # Costa Rica
216
+ 'CI' => 110, # Ivory coast
217
+ 'CU' => 112, # Cuba
218
+ 'DJ' => 113, # Djibouti
219
+ 'DM' => 114, # Dominica
220
+ 'DO' => 115, # Dominican Republic
221
+ 'EC' => 116, # Ecuador
222
+ 'SV' => 117, # El Salvador
223
+ 'GQ' => 118, # Equatorial Guinea
224
+ 'ER' => 119, # Eritrea
225
+ 'ET' => 120, # Ethiopia
226
+ 'FK' => 121, # Falkland Islands
227
+ 'FO' => 122, # Faroe Islands
228
+ 'FJ' => 123, # Fiji
229
+ 'GF' => 124, # French Guiana
230
+ 'PF' => 125, # French Polynesia
231
+ 'TF' => 126, # French Southern and Antarctic Lands
232
+ 'GA' => 127, # Gabon
233
+ 'GM' => 128, # Gambia
234
+ 'GE' => 129, # Georgia
235
+ 'GH' => 130, # Ghana
236
+ 'GI' => 131, # Gibraltar
237
+ 'GL' => 132, # Greenland
238
+ 'GD' => 133, # Grenada
239
+ 'GU' => 134, # Guam
240
+ 'GT' => 135, # Guatemala
241
+ 'GG' => 136, # Guernsey
242
+ 'GN' => 137, # Guinea
243
+ 'GW' => 138, # Guinea-Bissau
244
+ 'GY' => 139, # Guyana
245
+ 'HT' => 140, # Haiti
246
+ 'HM' => 141, # Heard Island and McDonald Islands
247
+ 'VA' => 142, # Vatican City
248
+ 'HN' => 143, # Honduras
249
+ 'IS' => 144, # Iceland
250
+ 'ID' => 145, # Indonesia
251
+ 'IR' => 146, # Iran
252
+ 'IQ' => 147, # Iraq
253
+ 'IM' => 148, # Isle of Man
254
+ 'JM' => 149, # Jamaica
255
+ 'JE' => 150, # Jersey
256
+ 'JO' => 151, # Jordan
257
+ 'KE' => 152, # Kenya
258
+ 'KI' => 153, # Kiribati
259
+ 'KP' => 154, # Democratic People's Republic of Korea
260
+ 'KR' => 155, # Republic of Korea
261
+ 'KW' => 156, # Kuwait
262
+ 'LA' => 158, # Laos
263
+ 'LB' => 159, # Lebanon
264
+ 'LS' => 160, # Lesotho
265
+ 'LR' => 161, # Liberia
266
+ 'LY' => 162, # Libya
267
+ 'MO' => 163, # Macao
268
+ 'MK' => 164, # Macedonia
269
+ 'MG' => 165, # Madagascar
270
+ 'MW' => 166, # Malawi
271
+ 'ML' => 168, # Mali
272
+ 'MH' => 169, # Marshall Islands
273
+ 'MQ' => 170, # Martinique
274
+ 'MR' => 171, # Mauritania
275
+ 'MU' => 172, # Mauritius
276
+ 'YT' => 173, # Mayotte
277
+ 'FM' => 174, # Micronesia
278
+ 'MD' => 175, # Moldova
279
+ 'MN' => 176, # Mongolia
280
+ 'ME' => 177, # Montenegro
281
+ 'MS' => 178, # Montserrat
282
+ 'MZ' => 179, # Mozambique
283
+ 'MM' => 180, # Myanmar
284
+ 'NA' => 181, # Namibia
285
+ 'NR' => 182, # Nauru
286
+ 'NP' => 183, # Nepal
287
+ 'AN' => 184, # Netherlands Antilles
288
+ 'NC' => 185, # New Caledonia
289
+ 'NI' => 186, # Nicaragua
290
+ 'NE' => 187, # Niger
291
+ 'NG' => 188, # Nigeria
292
+ 'NU' => 189, # Niue
293
+ 'NF' => 190, # Norfolk Island
294
+ 'MP' => 191, # Northern Mariana Islands
295
+ 'OM' => 192, # Oman
296
+ 'PK' => 193, # Pakistan
297
+ 'PW' => 194, # Palau
298
+ 'PS' => 195, # Palestinian territories
299
+ 'PA' => 196, # Panama
300
+ 'PG' => 197, # Papua New Guinea
301
+ 'PY' => 198, # Paraguay
302
+ 'PE' => 199, # Peru
303
+ 'PH' => 200, # Philippines
304
+ 'PN' => 201, # Pitcairn Islands
305
+ 'PR' => 202, # Puerto Rico
306
+ 'QA' => 203, # Qatar
307
+ 'RE' => 204, # Reunion
308
+ 'RW' => 205, # Rwanda
309
+ 'SH' => 206, # Saint Helena
310
+ 'KN' => 207, # Saint Kitts and Nevis
311
+ 'LC' => 208, # Saint Lucia
312
+ 'PM' => 209, # Saint Pierre and Miquelon
313
+ 'VC' => 210, # Saint Vincent and the Grenadines
314
+ 'WS' => 211, # Samoa
315
+ 'SM' => 212, # San Marino
316
+ 'ST' => 213, # Sao Tome and Principe
317
+ 'SA' => 214, # Saudi Arabia
318
+ 'SN' => 215, # Senegal
319
+ 'RS' => 216, # Serbia
320
+ 'SC' => 217, # Seychelles
321
+ 'SL' => 218, # Sierra Leone
322
+ 'SB' => 219, # Solomon Islands
323
+ 'SO' => 220, # Somalia
324
+ 'ZA' => 221, # South Africa
325
+ 'GS' => 222, # South Georgia and the South Sandwich Islands
326
+ 'LK' => 223, # Sri Lanka
327
+ 'SD' => 224, # Sudan
328
+ 'SR' => 225, # Suriname
329
+ 'SJ' => 226, # Spitsbergen and Jan Mayen
330
+ 'SZ' => 227, # Swaziland
331
+ 'SY' => 228, # Syria
332
+ 'TJ' => 229, # Tajikistan
333
+ 'TZ' => 230, # Tanzania
334
+ 'TL' => 231, # Timor-Leste
335
+ 'TG' => 232, # Togo
336
+ 'TK' => 233, # Tokelau
337
+ 'TO' => 234, # Tonga
338
+ 'TT' => 235, # Trinidad and Tobago
339
+ 'TN' => 236, # Tunisia
340
+ 'TM' => 237, # Turkmenistan
341
+ 'TC' => 238, # Turks and Caicos Islands
342
+ 'TV' => 239, # Tuvalu
343
+ 'UG' => 240, # Uganda
344
+ 'UA' => 241, # Ukraine
345
+ 'UM' => 242, # United States Minor Outlying Islands
346
+ 'UY' => 243, # Uruguay
347
+ 'VU' => 244, # Vanuatu
348
+ 'VE' => 245, # Venezuela
349
+ 'VN' => 246, # Vietnam
350
+ 'VG' => 247, # British Virgin Islands
351
+ 'VI' => 248, # United States Virgin Islands
352
+ 'WF' => 249, # Wallis and Futuna
353
+ 'EH' => 250, # Western Sahara
354
+ 'ZM' => 252, # Zambia
355
+ 'ZW' => 253, # Zimbabwe
356
+ 'AE' => 254, # United Arab Emirates
357
+ # 'DE' => 255, # Helgoland
358
+ # 'DE' => 256, # Buesingen
359
+ # 'CUW' => 258, # Curacao
360
+ 'SXM' => 259, # Sint Maarten
361
+ 'BES' => 260, # BES Islands
362
+ }.freeze
363
+ end
362
364
  end
@@ -24,11 +24,11 @@ module PlentyClient
24
24
  variation: variation_id), body)
25
25
  end
26
26
 
27
- def destroy(item_id, variation_id, marketplace_id)
27
+ def destroy(item_id, variation_id, plenty_id)
28
28
  delete(build_endpoint("#{ITEM_VARIATION_CLIENTS_PATH}#{DELETE_ITEM_VARIATIONS_CLIENTS}",
29
29
  item: item_id,
30
30
  variation: variation_id,
31
- marketplace: marketplace_id))
31
+ plenty_id: plenty_id))
32
32
  end
33
33
  end
34
34
  end
@@ -1,3 +1,3 @@
1
1
  module PlentyClient
2
- VERSION = '0.0.7'.freeze
2
+ VERSION = '0.0.8'.freeze
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: plenty_client
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.7
4
+ version: 0.0.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dariusch Ochlast
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2017-10-17 00:00:00.000000000 Z
11
+ date: 2017-10-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler