gotransverse-tract-api 0.13.0 → 0.14.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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 5edea5e3c7a131033fecd54de3044f897c46c0ef
4
- data.tar.gz: 014811ea06961c65d913a4a71c07711eae44798d
3
+ metadata.gz: 64289e542d606f9ea0932d2142fa6c2b510169f1
4
+ data.tar.gz: a0bc7904d2461d0d14fa5fe1ff58e1e2b4e42286
5
5
  SHA512:
6
- metadata.gz: f9c39ecf6405e6d73e84946f1691353225e480fc12c4312f3e655089521062dec184bf2bca687819ba2dec12aec4bf2e30865866fe33283ab672a536dd351933
7
- data.tar.gz: f1c88a6bbe0858967bcfc5c6d515e5e9478c666b24c857f358814acec706b3013385c7650aaded17e444cfe0e02cdab1eca9cb03e11a097073bd3221278e7d22
6
+ metadata.gz: 6c95dec28a080cec4bfee1c076be84f6b4fe6db40113864fccf5e9591cd81797d976d5e247847e32f0d023874e7af492254355aa821ab8f589b7126c6a4decf1
7
+ data.tar.gz: 9304d94815ba360bfb788af1634b4fa532ac30765dceed97128d1cac177d30114cfd87051306eba8b2f12858aa28079d66a0b35b89d2604e3d4320cd8d849dce
@@ -259,6 +259,15 @@ module GoTransverseTractApi
259
259
  agreement_configuration = AgreementConfiguration.get_agreement_conf(order_item[:agreement_configuration])
260
260
  end
261
261
 
262
+ if order_item.has_key?(:onetime_product_price)
263
+ # We can add later this one as a separate class for getting all other attributes
264
+ onetime_product_price = {
265
+ attributes: {
266
+ eid: order_item[:onetime_product_price][:eid]
267
+ }
268
+ }
269
+ end
270
+
262
271
 
263
272
  orderItem = {
264
273
  attributes: {
@@ -266,6 +275,7 @@ module GoTransverseTractApi
266
275
  requestedEffectiveDate: order_item[:requested_effective_date],
267
276
  unitPrice: order_item[:unit_price],
268
277
  recurringUnitPrice: order_item[:recurring_unit_price],
278
+ onetimeProductPrice: order_item[:one_time_product_price],
269
279
  quantity: order_item[:quantity],
270
280
  sequence: order_item[:sequence],
271
281
  description: order_item[:description],
@@ -273,6 +283,7 @@ module GoTransverseTractApi
273
283
  }.delete_if{|k,v| v.nil?},
274
284
  orderItemUsageRules: order_item_usage_rules,
275
285
  recurringProductPrice: Product::RecurringProductPrice.get_recurring_product_price(order_item[:recurring_product_price]),
286
+ onetimeProductPrice: onetime_product_price,
276
287
  customFieldValues: custom_field_values,
277
288
  product: Product::Product.get_product_info(order_item[:product]),
278
289
  priceList: price_list,
@@ -1,6 +1,6 @@
1
1
  module GoTransverseTractApi
2
2
 
3
- VERSION = "0.13.0"
3
+ VERSION = "0.14.0"
4
4
  TARGET_API_VERSION = "1.29"
5
5
 
6
6
  end
@@ -247,13 +247,15 @@ module GoTransverseTractApi
247
247
  },
248
248
  order_items: {
249
249
  order_item: [{
250
- recurring_unit_price: '100.00',
250
+ recurring_unit_price: '0.00',
251
+ one_time_product_price: '100.00',
251
252
  quantity: '1',
252
253
  sequence: '1',
253
254
  description: 'dsfsgegebdbb',
254
255
  product: { eid: '79' },
255
256
  selected_agreement: { eid: '15' },
256
257
  recurring_product_price: { eid: '174' },
258
+ onetime_product_price: { eid: '278' },
257
259
  custom_field_values: {
258
260
  custom_field_value: {
259
261
  value: 'JLS',
@@ -285,7 +287,7 @@ module GoTransverseTractApi
285
287
  },
286
288
  service_resources: {
287
289
  service_resource: {
288
- identifier: 'PCFC2000053761',
290
+ identifier: 'PCFC6000053765',
289
291
  category: { eid: '9' }
290
292
  }
291
293
  }
@@ -329,7 +331,7 @@ module GoTransverseTractApi
329
331
  },
330
332
  service_resources: {
331
333
  service_resource: {
332
- identifier: 'PCFC2004078764',
334
+ identifier: 'PCFC4004078766',
333
335
  category: { eid: '9' }
334
336
  }
335
337
  }
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gotransverse-tract-api
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.13.0
4
+ version: 0.14.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Julien DeFrance
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2016-05-11 00:00:00.000000000 Z
12
+ date: 2016-05-17 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: bundler