lime_light_platform 1.0.0.19 → 1.0.0.20

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: 52309598e5b22e72650c6dbdc94a824f535638e4e097c11d8bb8ede10d6b3cbd
4
- data.tar.gz: 9369cf060257d0094a565ad01b933af733dba6755bc2bcb806851080fb1d6980
3
+ metadata.gz: c010621746dd74207f7c14475d00f937797ea32c1bf29e6087f903258b867d77
4
+ data.tar.gz: 0b31c289371ee1c64cad541b8aa3103f7ac9e624650b4a80bbd6e66bf8cdbd93
5
5
  SHA512:
6
- metadata.gz: 9d5846862ab6d8275e4422b08289988b27bbb727433be02593c79ea6cde8d78d8a2917dfa066aa2506331896dfbab6d7e4292437ef79fc943c746af22494c4f1
7
- data.tar.gz: 0072d68acb6ea00d1c9f44b663037c60d69678321d08a6f8be29cba82dfca1940e8bdc54ea196fb189f590f2593c3efbf2f7e11c9f7286eb5ec68fcf2c7f9864
6
+ metadata.gz: 4cfeea69fbd8163d291be781a72835565626e647a870014bd198489669602456ca89265d40b78bf1ea71831709e86aaaf079adc875f8143f1e1b6be5de7c0d66
7
+ data.tar.gz: 845485c6bdd28aedd3b1337b2f4738e3ea8d1cbaf1d86147884fc2efec23677b53c0cb353fe33864f3d87e3d993766d5cee8e6fa929b5906827ee6c3d04aba0d
@@ -19,7 +19,7 @@ class LimeLightPlatform < AppBase
19
19
  # @param api_username [String] The CRM app key
20
20
  # @param api_password [String] The CRM app key
21
21
  # @param dev_subdirectory [String] Subdirectory for developer environments
22
- # @param debug [Boolean] Increses the log level of API requests and responses
22
+ # @param debug [Boolean] Increases the log level of API requests and responses
23
23
  def initialize app_key, api_username, api_password, dev_subdirectory='', debug=false
24
24
  super debug
25
25
 
@@ -386,6 +386,13 @@ class LimeLightPlatform < AppBase
386
386
  common_perform_post call_params
387
387
  end
388
388
 
389
+ # Retrieve payment router data based upon one or more payment router IDs
390
+ # @param payment_router_id [Array] Payment router IDs
391
+ # @return [Hash] Common response object
392
+ def payment_router_view payment_router_id=[]
393
+ common_entity_view_perform_post base_call_params(__method__), 'payment_router_id', payment_router_id
394
+ end
395
+
389
396
  # Retrieve the product variant attributes
390
397
  # @param request [Hash] Request payload hash
391
398
  # @return [Hash] Common response object
Binary file
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = 'lime_light_platform'
3
- s.version = '1.0.0.19'
3
+ s.version = '1.0.0.20'
4
4
  s.date = '2018-05-07'
5
5
  s.summary = "Official Lime Light eCommerce Platform API Ruby Gem (In Development)"
6
6
  s.description = "Official Lime Light eCommerce Platform API Ruby Gem (In Development)"
@@ -10,7 +10,7 @@ RSpec.describe LimeLightPlatform, "#authorize_payment" do
10
10
  ENV['API_USERNAME'],
11
11
  ENV['API_PASSWORD'],
12
12
  ENV['DEV_SUB'],
13
- true
13
+ false
14
14
  )
15
15
  response = lime_light.authorize_payment({
16
16
  'billing_first_name' => Faker::Name.first_name,
@@ -10,7 +10,7 @@ RSpec.describe LimeLightPlatform, "#NewOrderCardOnFile" do
10
10
  ENV['API_USERNAME'],
11
11
  ENV['API_PASSWORD'],
12
12
  ENV['DEV_SUB'],
13
- true
13
+ false
14
14
  )
15
15
  response = lime_light.new_order_card_on_file({
16
16
  'previous_order_id' => ENV['TEST_NEW_ORDER_CARD_ON_FILE_PREVIOUS_ORDER_ID'],
@@ -10,7 +10,7 @@ RSpec.describe LimeLightPlatform, "#NewOrderWithProspect" do
10
10
  ENV['API_USERNAME'],
11
11
  ENV['API_PASSWORD'],
12
12
  ENV['DEV_SUB'],
13
- true
13
+ false
14
14
  )
15
15
  response = lime_light.new_order_with_prospect({
16
16
  'prospect_id' => ENV['TEST_NEW_ORDER_WITH_PROSPECT_PROSPECT_ID'],
@@ -10,7 +10,7 @@ RSpec.describe LimeLightPlatform, "#NewProspect" do
10
10
  ENV['API_USERNAME'],
11
11
  ENV['API_PASSWORD'],
12
12
  ENV['DEV_SUB'],
13
- true
13
+ false
14
14
  )
15
15
  response = lime_light.new_prospect({
16
16
  'campaign_id' => ENV['TEST_NEW_PROSPECT_CAMPAIGN_ID'],
@@ -0,0 +1,20 @@
1
+ require 'spec_helper'
2
+
3
+ RSpec.describe LimeLightPlatform, "#payment_router_view" do
4
+ context "Lime Light Platform - Membership API - payment_router_view" do
5
+ it "Returns payment router data" do
6
+ lime_light = LimeLightPlatform.new(
7
+ ENV['APP_KEY'],
8
+ ENV['API_USERNAME'],
9
+ ENV['API_PASSWORD'],
10
+ ENV['DEV_SUB'],
11
+ true
12
+ )
13
+ response = lime_light.payment_router_view([
14
+ ENV['TEST_PAYMENT_ROUTER_VIEW_ROUTER_ID_1'],
15
+ ENV['TEST_PAYMENT_ROUTER_VIEW_ROUTER_ID_2']
16
+ ])
17
+ expect(response[:success]).to eq true
18
+ end
19
+ end
20
+ end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: lime_light_platform
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0.19
4
+ version: 1.0.0.20
5
5
  platform: ruby
6
6
  authors:
7
7
  - Marvin Titus-Casseus
@@ -29,6 +29,7 @@ files:
29
29
  - lime_light_platform-1.0.0.16.gem
30
30
  - lime_light_platform-1.0.0.17.gem
31
31
  - lime_light_platform-1.0.0.18.gem
32
+ - lime_light_platform-1.0.0.19.gem
32
33
  - lime_light_platform.gemspec
33
34
  - spec/authorize_payment_spec.rb
34
35
  - spec/billing_model_view_spec.rb
@@ -50,6 +51,7 @@ files:
50
51
  - spec/order_update_recurring_spec.rb
51
52
  - spec/order_update_spec.rb
52
53
  - spec/order_view_spec.rb
54
+ - spec/payment_router_view_spec.rb
53
55
  - spec/product_attribute_index_spec.rb
54
56
  - spec/product_bundle_index_spec.rb
55
57
  - spec/product_bundle_view_spec.rb