plenty_client 0.0.7 → 0.0.8
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 +4 -4
- data/lib/plenty_client/constants.rb +358 -356
- data/lib/plenty_client/item/variation/client.rb +2 -2
- data/lib/plenty_client/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 1463527b7e80fe6476ed37306c75a42831021240
|
|
4
|
+
data.tar.gz: f43d9edc8a7e2599adffb1dfd538d3d169ef94ca
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 8f06015594cd05a9ea1b604b69ac14b66e827b3a45762862c6f6f67b1ddec4fc952a16cbe83477594b8e1bab5d155a85070b7b5127ee7e96788e729f0ad6df69
|
|
7
|
+
data.tar.gz: b1f3987804dcdf652ae0edb5c6eea56d7d96106a46f144cca4f309c75be15c5388b16b7de9bf5f7184a7cab986ad6a0d632be0771a782b7208ba0a6a9b71f952
|
|
@@ -1,362 +1,364 @@
|
|
|
1
1
|
module PlentyClient
|
|
2
|
-
|
|
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
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
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
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
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
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
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
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
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,
|
|
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
|
-
|
|
31
|
+
plenty_id: plenty_id))
|
|
32
32
|
end
|
|
33
33
|
end
|
|
34
34
|
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.
|
|
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-
|
|
11
|
+
date: 2017-10-19 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: bundler
|